Class GCSVolumeSource.Builder (0.37.0)

public static final class GCSVolumeSource.Builder extends GeneratedMessageV3.Builder<GCSVolumeSource.Builder> implements GCSVolumeSourceOrBuilder

Represents a GCS Bucket mounted as a volume.

Protobuf type google.cloud.run.v2.GCSVolumeSource

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GCSVolumeSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GCSVolumeSource.Builder
Overrides

build()

public GCSVolumeSource build()
Returns
TypeDescription
GCSVolumeSource

buildPartial()

public GCSVolumeSource buildPartial()
Returns
TypeDescription
GCSVolumeSource

clear()

public GCSVolumeSource.Builder clear()
Returns
TypeDescription
GCSVolumeSource.Builder
Overrides

clearBucket()

public GCSVolumeSource.Builder clearBucket()

GCS Bucket name

string bucket = 1;

Returns
TypeDescription
GCSVolumeSource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public GCSVolumeSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GCSVolumeSource.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GCSVolumeSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GCSVolumeSource.Builder
Overrides

clearReadOnly()

public GCSVolumeSource.Builder clearReadOnly()

If true, mount the GCS bucket as read-only

bool read_only = 2;

Returns
TypeDescription
GCSVolumeSource.Builder

This builder for chaining.

clone()

public GCSVolumeSource.Builder clone()
Returns
TypeDescription
GCSVolumeSource.Builder
Overrides

getBucket()

public String getBucket()

GCS Bucket name

string bucket = 1;

Returns
TypeDescription
String

The bucket.

getBucketBytes()

public ByteString getBucketBytes()

GCS Bucket name

string bucket = 1;

Returns
TypeDescription
ByteString

The bytes for bucket.

getDefaultInstanceForType()

public GCSVolumeSource getDefaultInstanceForType()
Returns
TypeDescription
GCSVolumeSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getReadOnly()

public boolean getReadOnly()

If true, mount the GCS bucket as read-only

bool read_only = 2;

Returns
TypeDescription
boolean

The readOnly.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GCSVolumeSource other)

public GCSVolumeSource.Builder mergeFrom(GCSVolumeSource other)
Parameter
NameDescription
otherGCSVolumeSource
Returns
TypeDescription
GCSVolumeSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GCSVolumeSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GCSVolumeSource.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GCSVolumeSource.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GCSVolumeSource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GCSVolumeSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GCSVolumeSource.Builder
Overrides

setBucket(String value)

public GCSVolumeSource.Builder setBucket(String value)

GCS Bucket name

string bucket = 1;

Parameter
NameDescription
valueString

The bucket to set.

Returns
TypeDescription
GCSVolumeSource.Builder

This builder for chaining.

setBucketBytes(ByteString value)

public GCSVolumeSource.Builder setBucketBytes(ByteString value)

GCS Bucket name

string bucket = 1;

Parameter
NameDescription
valueByteString

The bytes for bucket to set.

Returns
TypeDescription
GCSVolumeSource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public GCSVolumeSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GCSVolumeSource.Builder
Overrides

setReadOnly(boolean value)

public GCSVolumeSource.Builder setReadOnly(boolean value)

If true, mount the GCS bucket as read-only

bool read_only = 2;

Parameter
NameDescription
valueboolean

The readOnly to set.

Returns
TypeDescription
GCSVolumeSource.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GCSVolumeSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GCSVolumeSource.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GCSVolumeSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GCSVolumeSource.Builder
Overrides