public final class Volume extends com.google.protobuf.GeneratedMessageV3 implements VolumeOrBuilder
Volume represents a named volume in a container.Protobuf type
google.cloud.run.v2.Volume| Modifier and Type | Class and Description |
|---|---|
static class |
Volume.Builder
Volume represents a named volume in a container.
|
static class |
Volume.VolumeTypeCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CLOUD_SQL_INSTANCE_FIELD_NUMBER |
static int |
EMPTY_DIR_FIELD_NUMBER |
static int |
GCS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
NFS_FIELD_NUMBER |
static int |
SECRET_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
CloudSqlInstance |
getCloudSqlInstance()
For Cloud SQL volumes, contains the specific instances that should be
mounted.
|
CloudSqlInstanceOrBuilder |
getCloudSqlInstanceOrBuilder()
For Cloud SQL volumes, contains the specific instances that should be
mounted.
|
static Volume |
getDefaultInstance() |
Volume |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
EmptyDirVolumeSource |
getEmptyDir()
Ephemeral storage used as a shared volume.
|
EmptyDirVolumeSourceOrBuilder |
getEmptyDirOrBuilder()
Ephemeral storage used as a shared volume.
|
GCSVolumeSource |
getGcs()
Persistent storage backed by a Google Cloud Storage bucket.
|
GCSVolumeSourceOrBuilder |
getGcsOrBuilder()
Persistent storage backed by a Google Cloud Storage bucket.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
NFSVolumeSource |
getNfs()
For NFS Voumes, contains the path to the nfs Volume
.google.cloud.run.v2.NFSVolumeSource nfs = 5; |
NFSVolumeSourceOrBuilder |
getNfsOrBuilder()
For NFS Voumes, contains the path to the nfs Volume
.google.cloud.run.v2.NFSVolumeSource nfs = 5; |
com.google.protobuf.Parser<Volume> |
getParserForType() |
SecretVolumeSource |
getSecret()
Secret represents a secret that should populate this volume.
|
SecretVolumeSourceOrBuilder |
getSecretOrBuilder()
Secret represents a secret that should populate this volume.
|
int |
getSerializedSize() |
Volume.VolumeTypeCase |
getVolumeTypeCase() |
boolean |
hasCloudSqlInstance()
For Cloud SQL volumes, contains the specific instances that should be
mounted.
|
boolean |
hasEmptyDir()
Ephemeral storage used as a shared volume.
|
boolean |
hasGcs()
Persistent storage backed by a Google Cloud Storage bucket.
|
int |
hashCode() |
boolean |
hasNfs()
For NFS Voumes, contains the path to the nfs Volume
.google.cloud.run.v2.NFSVolumeSource nfs = 5; |
boolean |
hasSecret()
Secret represents a secret that should populate this volume.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Volume.Builder |
newBuilder() |
static Volume.Builder |
newBuilder(Volume prototype) |
Volume.Builder |
newBuilderForType() |
protected Volume.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Volume |
parseDelimitedFrom(InputStream input) |
static Volume |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Volume |
parseFrom(byte[] data) |
static Volume |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Volume |
parseFrom(ByteBuffer data) |
static Volume |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Volume |
parseFrom(com.google.protobuf.ByteString data) |
static Volume |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Volume |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Volume |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Volume |
parseFrom(InputStream input) |
static Volume |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Volume> |
parser() |
Volume.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int SECRET_FIELD_NUMBER
public static final int CLOUD_SQL_INSTANCE_FIELD_NUMBER
public static final int EMPTY_DIR_FIELD_NUMBER
public static final int NFS_FIELD_NUMBER
public static final int GCS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public Volume.VolumeTypeCase getVolumeTypeCase()
getVolumeTypeCase in interface VolumeOrBuilderpublic String getName()
Required. Volume's name.
string name = 1 [(.google.api.field_behavior) = REQUIRED];getName in interface VolumeOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required. Volume's name.
string name = 1 [(.google.api.field_behavior) = REQUIRED];getNameBytes in interface VolumeOrBuilderpublic boolean hasSecret()
Secret represents a secret that should populate this volume.
.google.cloud.run.v2.SecretVolumeSource secret = 2;hasSecret in interface VolumeOrBuilderpublic SecretVolumeSource getSecret()
Secret represents a secret that should populate this volume.
.google.cloud.run.v2.SecretVolumeSource secret = 2;getSecret in interface VolumeOrBuilderpublic SecretVolumeSourceOrBuilder getSecretOrBuilder()
Secret represents a secret that should populate this volume.
.google.cloud.run.v2.SecretVolumeSource secret = 2;getSecretOrBuilder in interface VolumeOrBuilderpublic boolean hasCloudSqlInstance()
For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run.
.google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3;hasCloudSqlInstance in interface VolumeOrBuilderpublic CloudSqlInstance getCloudSqlInstance()
For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run.
.google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3;getCloudSqlInstance in interface VolumeOrBuilderpublic CloudSqlInstanceOrBuilder getCloudSqlInstanceOrBuilder()
For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run.
.google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3;getCloudSqlInstanceOrBuilder in interface VolumeOrBuilderpublic boolean hasEmptyDir()
Ephemeral storage used as a shared volume.
.google.cloud.run.v2.EmptyDirVolumeSource empty_dir = 4;hasEmptyDir in interface VolumeOrBuilderpublic EmptyDirVolumeSource getEmptyDir()
Ephemeral storage used as a shared volume.
.google.cloud.run.v2.EmptyDirVolumeSource empty_dir = 4;getEmptyDir in interface VolumeOrBuilderpublic EmptyDirVolumeSourceOrBuilder getEmptyDirOrBuilder()
Ephemeral storage used as a shared volume.
.google.cloud.run.v2.EmptyDirVolumeSource empty_dir = 4;getEmptyDirOrBuilder in interface VolumeOrBuilderpublic boolean hasNfs()
For NFS Voumes, contains the path to the nfs Volume
.google.cloud.run.v2.NFSVolumeSource nfs = 5;hasNfs in interface VolumeOrBuilderpublic NFSVolumeSource getNfs()
For NFS Voumes, contains the path to the nfs Volume
.google.cloud.run.v2.NFSVolumeSource nfs = 5;getNfs in interface VolumeOrBuilderpublic NFSVolumeSourceOrBuilder getNfsOrBuilder()
For NFS Voumes, contains the path to the nfs Volume
.google.cloud.run.v2.NFSVolumeSource nfs = 5;getNfsOrBuilder in interface VolumeOrBuilderpublic boolean hasGcs()
Persistent storage backed by a Google Cloud Storage bucket.
.google.cloud.run.v2.GCSVolumeSource gcs = 6;hasGcs in interface VolumeOrBuilderpublic GCSVolumeSource getGcs()
Persistent storage backed by a Google Cloud Storage bucket.
.google.cloud.run.v2.GCSVolumeSource gcs = 6;getGcs in interface VolumeOrBuilderpublic GCSVolumeSourceOrBuilder getGcsOrBuilder()
Persistent storage backed by a Google Cloud Storage bucket.
.google.cloud.run.v2.GCSVolumeSource gcs = 6;getGcsOrBuilder in interface VolumeOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Volume parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Volume parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Volume parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Volume parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Volume parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Volume parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Volume parseFrom(InputStream input) throws IOException
IOExceptionpublic static Volume parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Volume parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Volume parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Volume parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Volume parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Volume.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Volume.Builder newBuilder()
public static Volume.Builder newBuilder(Volume prototype)
public Volume.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Volume.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Volume getDefaultInstance()
public static com.google.protobuf.Parser<Volume> parser()
public com.google.protobuf.Parser<Volume> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Volume getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.