Class SourceCode.CloudStorageSource.Builder (0.83.0)

public static final class SourceCode.CloudStorageSource.Builder extends GeneratedMessage.Builder<SourceCode.CloudStorageSource.Builder> implements SourceCode.CloudStorageSourceOrBuilder

Cloud Storage source.

Protobuf type google.cloud.run.v2.SourceCode.CloudStorageSource

Static Methods

getDescriptor()

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

Methods

build()

public SourceCode.CloudStorageSource build()
Returns
Type Description
SourceCode.CloudStorageSource

buildPartial()

public SourceCode.CloudStorageSource buildPartial()
Returns
Type Description
SourceCode.CloudStorageSource

clear()

public SourceCode.CloudStorageSource.Builder clear()
Returns
Type Description
SourceCode.CloudStorageSource.Builder
Overrides

clearBucket()

public SourceCode.CloudStorageSource.Builder clearBucket()

Required. The Cloud Storage bucket name.

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

Returns
Type Description
SourceCode.CloudStorageSource.Builder

This builder for chaining.

clearGeneration()

public SourceCode.CloudStorageSource.Builder clearGeneration()

Optional. The Cloud Storage object generation.

int64 generation = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SourceCode.CloudStorageSource.Builder

This builder for chaining.

clearObject()

public SourceCode.CloudStorageSource.Builder clearObject()

Required. The Cloud Storage object name.

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

Returns
Type Description
SourceCode.CloudStorageSource.Builder

This builder for chaining.

getBucket()

public String getBucket()

Required. The Cloud Storage bucket name.

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

Returns
Type Description
String

The bucket.

getBucketBytes()

public ByteString getBucketBytes()

Required. The Cloud Storage bucket name.

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

Returns
Type Description
ByteString

The bytes for bucket.

getDefaultInstanceForType()

public SourceCode.CloudStorageSource getDefaultInstanceForType()
Returns
Type Description
SourceCode.CloudStorageSource

getDescriptorForType()

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

getGeneration()

public long getGeneration()

Optional. The Cloud Storage object generation.

int64 generation = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The generation.

getObject()

public String getObject()

Required. The Cloud Storage object name.

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

Returns
Type Description
String

The object.

getObjectBytes()

public ByteString getObjectBytes()

Required. The Cloud Storage object name.

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(SourceCode.CloudStorageSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setBucket(String value)

public SourceCode.CloudStorageSource.Builder setBucket(String value)

Required. The Cloud Storage bucket name.

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

Parameter
Name Description
value String

The bucket to set.

Returns
Type Description
SourceCode.CloudStorageSource.Builder

This builder for chaining.

setBucketBytes(ByteString value)

public SourceCode.CloudStorageSource.Builder setBucketBytes(ByteString value)

Required. The Cloud Storage bucket name.

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

Parameter
Name Description
value ByteString

The bytes for bucket to set.

Returns
Type Description
SourceCode.CloudStorageSource.Builder

This builder for chaining.

setGeneration(long value)

public SourceCode.CloudStorageSource.Builder setGeneration(long value)

Optional. The Cloud Storage object generation.

int64 generation = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The generation to set.

Returns
Type Description
SourceCode.CloudStorageSource.Builder

This builder for chaining.

setObject(String value)

public SourceCode.CloudStorageSource.Builder setObject(String value)

Required. The Cloud Storage object name.

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

Parameter
Name Description
value String

The object to set.

Returns
Type Description
SourceCode.CloudStorageSource.Builder

This builder for chaining.

setObjectBytes(ByteString value)

public SourceCode.CloudStorageSource.Builder setObjectBytes(ByteString value)

Required. The Cloud Storage object name.

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

Parameter
Name Description
value ByteString

The bytes for object to set.

Returns
Type Description
SourceCode.CloudStorageSource.Builder

This builder for chaining.