Class GCSVolumeSource (0.73.0)

publicfinalclass GCSVolumeSourceextendsGeneratedMessageV3implementsGCSVolumeSourceOrBuilder

Represents a volume backed by a Cloud Storage bucket using Cloud Storage FUSE.

Protobuf type google.cloud.run.v2.GCSVolumeSource

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

BUCKET_FIELD_NUMBER

publicstaticfinalintBUCKET_FIELD_NUMBER
Field Value
Type Description
int

MOUNT_OPTIONS_FIELD_NUMBER

publicstaticfinalintMOUNT_OPTIONS_FIELD_NUMBER
Field Value
Type Description
int

READ_ONLY_FIELD_NUMBER

publicstaticfinalintREAD_ONLY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticGCSVolumeSourcegetDefaultInstance()
Returns
Type Description
GCSVolumeSource

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticGCSVolumeSource.BuildernewBuilder()
Returns
Type Description
GCSVolumeSource.Builder

newBuilder(GCSVolumeSource prototype)

publicstaticGCSVolumeSource.BuildernewBuilder(GCSVolumeSourceprototype)
Parameter
Name Description
prototype GCSVolumeSource
Returns
Type Description
GCSVolumeSource.Builder

parseDelimitedFrom(InputStream input)

publicstaticGCSVolumeSourceparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
GCSVolumeSource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticGCSVolumeSourceparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GCSVolumeSource
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticGCSVolumeSourceparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
GCSVolumeSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticGCSVolumeSourceparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GCSVolumeSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticGCSVolumeSourceparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
GCSVolumeSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticGCSVolumeSourceparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GCSVolumeSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticGCSVolumeSourceparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GCSVolumeSource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticGCSVolumeSourceparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GCSVolumeSource
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticGCSVolumeSourceparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
GCSVolumeSource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticGCSVolumeSourceparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GCSVolumeSource
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticGCSVolumeSourceparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GCSVolumeSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticGCSVolumeSourceparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GCSVolumeSource
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<GCSVolumeSource>parser()
Returns
Type Description
Parser<GCSVolumeSource>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBucket()

publicStringgetBucket()

Cloud Storage Bucket name.

string bucket = 1;

Returns
Type Description
String

The bucket.

getBucketBytes()

publicByteStringgetBucketBytes()

Cloud Storage Bucket name.

string bucket = 1;

Returns
Type Description
ByteString

The bytes for bucket.

getDefaultInstanceForType()

publicGCSVolumeSourcegetDefaultInstanceForType()
Returns
Type Description
GCSVolumeSource

getMountOptions(int index)

publicStringgetMountOptions(intindex)

A list of additional flags to pass to the gcsfuse CLI. Options should be specified without the leading "--".

repeated string mount_options = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The mountOptions at the given index.

getMountOptionsBytes(int index)

publicByteStringgetMountOptionsBytes(intindex)

A list of additional flags to pass to the gcsfuse CLI. Options should be specified without the leading "--".

repeated string mount_options = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the mountOptions at the given index.

getMountOptionsCount()

publicintgetMountOptionsCount()

A list of additional flags to pass to the gcsfuse CLI. Options should be specified without the leading "--".

repeated string mount_options = 3;

Returns
Type Description
int

The count of mountOptions.

getMountOptionsList()

publicProtocolStringListgetMountOptionsList()

A list of additional flags to pass to the gcsfuse CLI. Options should be specified without the leading "--".

repeated string mount_options = 3;

Returns
Type Description
ProtocolStringList

A list containing the mountOptions.

getParserForType()

publicParser<GCSVolumeSource>getParserForType()
Returns
Type Description
Parser<GCSVolumeSource>
Overrides

getReadOnly()

publicbooleangetReadOnly()

If true, the volume will be mounted as read only for all mounts.

bool read_only = 2;

Returns
Type Description
boolean

The readOnly.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicGCSVolumeSource.BuildernewBuilderForType()
Returns
Type Description
GCSVolumeSource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedGCSVolumeSource.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GCSVolumeSource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicGCSVolumeSource.BuildertoBuilder()
Returns
Type Description
GCSVolumeSource.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.