public final class Volume extends com.google.protobuf.GeneratedMessageV3 implements VolumeOrBuilder
Volume describes a volume and parameters for it to be mounted to a VM.Protobuf type
google.cloud.batch.v1.Volume| Modifier and Type | Class and Description |
|---|---|
static class |
Volume.Builder
Volume describes a volume and parameters for it to be mounted to a VM.
|
static class |
Volume.SourceCase |
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 |
DEVICE_NAME_FIELD_NUMBER |
static int |
GCS_FIELD_NUMBER |
static int |
MOUNT_OPTIONS_FIELD_NUMBER |
static int |
MOUNT_PATH_FIELD_NUMBER |
static int |
NFS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Volume |
getDefaultInstance() |
Volume |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDeviceName()
Device name of an attached disk volume, which should align with a
device_name specified by
job.allocation_policy.instances[0].policy.disks[i].device_name or
defined by the given instance template in
job.allocation_policy.instances[0].instance_template.
|
com.google.protobuf.ByteString |
getDeviceNameBytes()
Device name of an attached disk volume, which should align with a
device_name specified by
job.allocation_policy.instances[0].policy.disks[i].device_name or
defined by the given instance template in
job.allocation_policy.instances[0].instance_template.
|
GCS |
getGcs()
A Google Cloud Storage (GCS) volume.
|
GCSOrBuilder |
getGcsOrBuilder()
A Google Cloud Storage (GCS) volume.
|
String |
getMountOptions(int index)
Mount options vary based on the type of storage volume:
* For a Cloud Storage bucket, all the mount options provided
by
the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
are supported
|
com.google.protobuf.ByteString |
getMountOptionsBytes(int index)
Mount options vary based on the type of storage volume:
* For a Cloud Storage bucket, all the mount options provided
by
the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
are supported
|
int |
getMountOptionsCount()
Mount options vary based on the type of storage volume:
* For a Cloud Storage bucket, all the mount options provided
by
the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
are supported
|
com.google.protobuf.ProtocolStringList |
getMountOptionsList()
Mount options vary based on the type of storage volume:
* For a Cloud Storage bucket, all the mount options provided
by
the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
are supported
|
String |
getMountPath()
The mount path for the volume, e.g.
|
com.google.protobuf.ByteString |
getMountPathBytes()
The mount path for the volume, e.g.
|
NFS |
getNfs()
A Network File System (NFS) volume.
|
NFSOrBuilder |
getNfsOrBuilder()
A Network File System (NFS) volume.
|
com.google.protobuf.Parser<Volume> |
getParserForType() |
int |
getSerializedSize() |
Volume.SourceCase |
getSourceCase() |
boolean |
hasDeviceName()
Device name of an attached disk volume, which should align with a
device_name specified by
job.allocation_policy.instances[0].policy.disks[i].device_name or
defined by the given instance template in
job.allocation_policy.instances[0].instance_template.
|
boolean |
hasGcs()
A Google Cloud Storage (GCS) volume.
|
int |
hashCode() |
boolean |
hasNfs()
A Network File System (NFS) 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 NFS_FIELD_NUMBER
public static final int GCS_FIELD_NUMBER
public static final int DEVICE_NAME_FIELD_NUMBER
public static final int MOUNT_PATH_FIELD_NUMBER
public static final int MOUNT_OPTIONS_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.SourceCase getSourceCase()
getSourceCase in interface VolumeOrBuilderpublic boolean hasNfs()
A Network File System (NFS) volume. For example, a Filestore file share.
.google.cloud.batch.v1.NFS nfs = 1;hasNfs in interface VolumeOrBuilderpublic NFS getNfs()
A Network File System (NFS) volume. For example, a Filestore file share.
.google.cloud.batch.v1.NFS nfs = 1;getNfs in interface VolumeOrBuilderpublic NFSOrBuilder getNfsOrBuilder()
A Network File System (NFS) volume. For example, a Filestore file share.
.google.cloud.batch.v1.NFS nfs = 1;getNfsOrBuilder in interface VolumeOrBuilderpublic boolean hasGcs()
A Google Cloud Storage (GCS) volume.
.google.cloud.batch.v1.GCS gcs = 3;hasGcs in interface VolumeOrBuilderpublic GCS getGcs()
A Google Cloud Storage (GCS) volume.
.google.cloud.batch.v1.GCS gcs = 3;getGcs in interface VolumeOrBuilderpublic GCSOrBuilder getGcsOrBuilder()
A Google Cloud Storage (GCS) volume.
.google.cloud.batch.v1.GCS gcs = 3;getGcsOrBuilder in interface VolumeOrBuilderpublic boolean hasDeviceName()
Device name of an attached disk volume, which should align with a device_name specified by job.allocation_policy.instances[0].policy.disks[i].device_name or defined by the given instance template in job.allocation_policy.instances[0].instance_template.
string device_name = 6;hasDeviceName in interface VolumeOrBuilderpublic String getDeviceName()
Device name of an attached disk volume, which should align with a device_name specified by job.allocation_policy.instances[0].policy.disks[i].device_name or defined by the given instance template in job.allocation_policy.instances[0].instance_template.
string device_name = 6;getDeviceName in interface VolumeOrBuilderpublic com.google.protobuf.ByteString getDeviceNameBytes()
Device name of an attached disk volume, which should align with a device_name specified by job.allocation_policy.instances[0].policy.disks[i].device_name or defined by the given instance template in job.allocation_policy.instances[0].instance_template.
string device_name = 6;getDeviceNameBytes in interface VolumeOrBuilderpublic String getMountPath()
The mount path for the volume, e.g. /mnt/disks/share.
string mount_path = 4;getMountPath in interface VolumeOrBuilderpublic com.google.protobuf.ByteString getMountPathBytes()
The mount path for the volume, e.g. /mnt/disks/share.
string mount_path = 4;getMountPathBytes in interface VolumeOrBuilderpublic com.google.protobuf.ProtocolStringList getMountOptionsList()
Mount options vary based on the type of storage volume: * For a Cloud Storage bucket, all the mount options provided by the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli) are supported. * For an existing persistent disk, all mount options provided by the [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html) except writing are supported. This is due to restrictions of [multi-writer mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms). * For any other disk or a Network File System (NFS), all the mount options provided by the `mount` command are supported.
repeated string mount_options = 5;getMountOptionsList in interface VolumeOrBuilderpublic int getMountOptionsCount()
Mount options vary based on the type of storage volume: * For a Cloud Storage bucket, all the mount options provided by the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli) are supported. * For an existing persistent disk, all mount options provided by the [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html) except writing are supported. This is due to restrictions of [multi-writer mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms). * For any other disk or a Network File System (NFS), all the mount options provided by the `mount` command are supported.
repeated string mount_options = 5;getMountOptionsCount in interface VolumeOrBuilderpublic String getMountOptions(int index)
Mount options vary based on the type of storage volume: * For a Cloud Storage bucket, all the mount options provided by the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli) are supported. * For an existing persistent disk, all mount options provided by the [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html) except writing are supported. This is due to restrictions of [multi-writer mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms). * For any other disk or a Network File System (NFS), all the mount options provided by the `mount` command are supported.
repeated string mount_options = 5;getMountOptions in interface VolumeOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getMountOptionsBytes(int index)
Mount options vary based on the type of storage volume: * For a Cloud Storage bucket, all the mount options provided by the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli) are supported. * For an existing persistent disk, all mount options provided by the [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html) except writing are supported. This is due to restrictions of [multi-writer mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms). * For any other disk or a Network File System (NFS), all the mount options provided by the `mount` command are supported.
repeated string mount_options = 5;getMountOptionsBytes in interface VolumeOrBuilderindex - The index of the value to return.public 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.