public interface VolumeOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
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
|
List<String> |
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.
|
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.
|
boolean |
hasNfs()
A Network File System (NFS) volume.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean hasNfs()
A Network File System (NFS) volume. For example, a Filestore file share.
.google.cloud.batch.v1.NFS nfs = 1;NFS getNfs()
A Network File System (NFS) volume. For example, a Filestore file share.
.google.cloud.batch.v1.NFS nfs = 1;NFSOrBuilder getNfsOrBuilder()
A Network File System (NFS) volume. For example, a Filestore file share.
.google.cloud.batch.v1.NFS nfs = 1;boolean hasGcs()
A Google Cloud Storage (GCS) volume.
.google.cloud.batch.v1.GCS gcs = 3;GCS getGcs()
A Google Cloud Storage (GCS) volume.
.google.cloud.batch.v1.GCS gcs = 3;GCSOrBuilder getGcsOrBuilder()
A Google Cloud Storage (GCS) volume.
.google.cloud.batch.v1.GCS gcs = 3;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;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;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;String getMountPath()
The mount path for the volume, e.g. /mnt/disks/share.
string mount_path = 4;com.google.protobuf.ByteString getMountPathBytes()
The mount path for the volume, e.g. /mnt/disks/share.
string mount_path = 4;List<String> 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;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;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;index - The index of the element to return.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;index - The index of the value to return.Volume.SourceCase getSourceCase()
Copyright © 2025 Google LLC. All rights reserved.