Class StorageSourceManifest.Builder (3.85.0)

public static final class StorageSourceManifest.Builder extends GeneratedMessage.Builder<StorageSourceManifest.Builder> implements StorageSourceManifestOrBuilder

Location of the source manifest in Cloud Storage. This feature is in Preview; see description here.

Protobuf type google.devtools.cloudbuild.v1.StorageSourceManifest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public StorageSourceManifest build()
Returns
Type Description
StorageSourceManifest

buildPartial()

public StorageSourceManifest buildPartial()
Returns
Type Description
StorageSourceManifest

clear()

public StorageSourceManifest.Builder clear()
Returns
Type Description
StorageSourceManifest.Builder
Overrides

clearBucket()

public StorageSourceManifest.Builder clearBucket()

Required. Cloud Storage bucket containing the source manifest (see Bucket Name Requirements).

string bucket = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StorageSourceManifest.Builder

This builder for chaining.

clearGeneration()

public StorageSourceManifest.Builder clearGeneration()

Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.

int64 generation = 3;

Returns
Type Description
StorageSourceManifest.Builder

This builder for chaining.

clearObject()

public StorageSourceManifest.Builder clearObject()

Required. Cloud Storage object containing the source manifest.

This object must be a JSON file.

string object = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StorageSourceManifest.Builder

This builder for chaining.

getBucket()

public String getBucket()

Required. Cloud Storage bucket containing the source manifest (see Bucket Name Requirements).

string bucket = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The bucket.

getBucketBytes()

public ByteString getBucketBytes()

Required. Cloud Storage bucket containing the source manifest (see Bucket Name Requirements).

string bucket = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for bucket.

getDefaultInstanceForType()

public StorageSourceManifest getDefaultInstanceForType()
Returns
Type Description
StorageSourceManifest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGeneration()

public long getGeneration()

Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.

int64 generation = 3;

Returns
Type Description
long

The generation.

getObject()

public String getObject()

Required. Cloud Storage object containing the source manifest.

This object must be a JSON file.

string object = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The object.

getObjectBytes()

public ByteString getObjectBytes()

Required. Cloud Storage object containing the source manifest.

This object must be a JSON file.

string object = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for object.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StorageSourceManifest other)

public StorageSourceManifest.Builder mergeFrom(StorageSourceManifest other)
Parameter
Name Description
other StorageSourceManifest
Returns
Type Description
StorageSourceManifest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StorageSourceManifest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StorageSourceManifest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StorageSourceManifest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StorageSourceManifest.Builder
Overrides

setBucket(String value)

public StorageSourceManifest.Builder setBucket(String value)

Required. Cloud Storage bucket containing the source manifest (see Bucket Name Requirements).

string bucket = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The bucket to set.

Returns
Type Description
StorageSourceManifest.Builder

This builder for chaining.

setBucketBytes(ByteString value)

public StorageSourceManifest.Builder setBucketBytes(ByteString value)

Required. Cloud Storage bucket containing the source manifest (see Bucket Name Requirements).

string bucket = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for bucket to set.

Returns
Type Description
StorageSourceManifest.Builder

This builder for chaining.

setGeneration(long value)

public StorageSourceManifest.Builder setGeneration(long value)

Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.

int64 generation = 3;

Parameter
Name Description
value long

The generation to set.

Returns
Type Description
StorageSourceManifest.Builder

This builder for chaining.

setObject(String value)

public StorageSourceManifest.Builder setObject(String value)

Required. Cloud Storage object containing the source manifest.

This object must be a JSON file.

string object = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The object to set.

Returns
Type Description
StorageSourceManifest.Builder

This builder for chaining.

setObjectBytes(ByteString value)

public StorageSourceManifest.Builder setObjectBytes(ByteString value)

Required. Cloud Storage object containing the source manifest.

This object must be a JSON file.

string object = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for object to set.

Returns
Type Description
StorageSourceManifest.Builder

This builder for chaining.