Class Volume.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Volume.Builder>
com.google.cloud.batch.v1alpha.Volume.Builder
All Implemented Interfaces:
VolumeOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Volume

public static final class Volume.Builder extends com.google.protobuf.GeneratedMessage.Builder<Volume.Builder> implements VolumeOrBuilder
 Volume describes a volume and parameters for it to be mounted to a VM.
 
Protobuf type google.cloud.batch.v1alpha.Volume
  • Method Summary

    Modifier and Type
    Method
    Description
    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
    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
    addMountOptionsBytes(com.google.protobuf.ByteString value)
    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
     
     
     
    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.
    A Google Cloud Storage (GCS) volume.
    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
    The mount path for the volume, e.g.
    A Network File System (NFS) volume.
    Deprecated.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    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
    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.
    A Google Cloud Storage (GCS) volume.
    A Google Cloud Storage (GCS) volume.
    A Google Cloud Storage (GCS) volume.
    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
    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
    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
    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
    The mount path for the volume, e.g.
    com.google.protobuf.ByteString
    The mount path for the volume, e.g.
    A Network File System (NFS) volume.
    A Network File System (NFS) volume.
    A Network File System (NFS) volume.
    Deprecated.
    google.cloud.batch.v1alpha.Volume.pd is deprecated.
    Deprecated.
    Deprecated.
     
    boolean
    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
    A Google Cloud Storage (GCS) volume.
    boolean
    A Network File System (NFS) volume.
    boolean
    Deprecated.
    google.cloud.batch.v1alpha.Volume.pd is deprecated.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergeGcs(GCS value)
    A Google Cloud Storage (GCS) volume.
    mergeNfs(NFS value)
    A Network File System (NFS) volume.
    mergePd(PD value)
    Deprecated.
    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.
    setDeviceNameBytes(com.google.protobuf.ByteString value)
    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.
    setGcs(GCS value)
    A Google Cloud Storage (GCS) volume.
    setGcs(GCS.Builder builderForValue)
    A Google Cloud Storage (GCS) volume.
    setMountOptions(int index, String value)
    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
    The mount path for the volume, e.g.
    setMountPathBytes(com.google.protobuf.ByteString value)
    The mount path for the volume, e.g.
    setNfs(NFS value)
    A Network File System (NFS) volume.
    setNfs(NFS.Builder builderForValue)
    A Network File System (NFS) volume.
    setPd(PD value)
    Deprecated.
    setPd(PD.Builder builderForValue)
    Deprecated.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Volume.Builder>
    • clear

      public Volume.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Volume.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Volume.Builder>
    • getDefaultInstanceForType

      public Volume getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Volume build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Volume buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Volume.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Volume.Builder>
    • mergeFrom

      public Volume.Builder mergeFrom(Volume other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Volume.Builder>
    • mergeFrom

      public Volume.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Volume.Builder>
      Throws:
      IOException
    • getSourceCase

      public Volume.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface VolumeOrBuilder
    • clearSource

      public Volume.Builder clearSource()
    • hasNfs

      public boolean hasNfs()
       A Network File System (NFS) volume. For example, a
       Filestore file share.
       
      .google.cloud.batch.v1alpha.NFS nfs = 1;
      Specified by:
      hasNfs in interface VolumeOrBuilder
      Returns:
      Whether the nfs field is set.
    • getNfs

      public NFS getNfs()
       A Network File System (NFS) volume. For example, a
       Filestore file share.
       
      .google.cloud.batch.v1alpha.NFS nfs = 1;
      Specified by:
      getNfs in interface VolumeOrBuilder
      Returns:
      The nfs.
    • setNfs

      public Volume.Builder setNfs(NFS value)
       A Network File System (NFS) volume. For example, a
       Filestore file share.
       
      .google.cloud.batch.v1alpha.NFS nfs = 1;
    • setNfs

      public Volume.Builder setNfs(NFS.Builder builderForValue)
       A Network File System (NFS) volume. For example, a
       Filestore file share.
       
      .google.cloud.batch.v1alpha.NFS nfs = 1;
    • mergeNfs

      public Volume.Builder mergeNfs(NFS value)
       A Network File System (NFS) volume. For example, a
       Filestore file share.
       
      .google.cloud.batch.v1alpha.NFS nfs = 1;
    • clearNfs

      public Volume.Builder clearNfs()
       A Network File System (NFS) volume. For example, a
       Filestore file share.
       
      .google.cloud.batch.v1alpha.NFS nfs = 1;
    • getNfsBuilder

      public NFS.Builder getNfsBuilder()
       A Network File System (NFS) volume. For example, a
       Filestore file share.
       
      .google.cloud.batch.v1alpha.NFS nfs = 1;
    • getNfsOrBuilder

      public NFSOrBuilder getNfsOrBuilder()
       A Network File System (NFS) volume. For example, a
       Filestore file share.
       
      .google.cloud.batch.v1alpha.NFS nfs = 1;
      Specified by:
      getNfsOrBuilder in interface VolumeOrBuilder
    • hasPd

      @Deprecated public boolean hasPd()
      Deprecated.
      google.cloud.batch.v1alpha.Volume.pd is deprecated. See google/cloud/batch/v1alpha/volume.proto;l=36
       Deprecated: please use device_name instead.
       
      .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true];
      Specified by:
      hasPd in interface VolumeOrBuilder
      Returns:
      Whether the pd field is set.
    • getPd

      @Deprecated public PD getPd()
      Deprecated.
      google.cloud.batch.v1alpha.Volume.pd is deprecated. See google/cloud/batch/v1alpha/volume.proto;l=36
       Deprecated: please use device_name instead.
       
      .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true];
      Specified by:
      getPd in interface VolumeOrBuilder
      Returns:
      The pd.
    • setPd

      @Deprecated public Volume.Builder setPd(PD value)
      Deprecated.
       Deprecated: please use device_name instead.
       
      .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true];
    • setPd

      @Deprecated public Volume.Builder setPd(PD.Builder builderForValue)
      Deprecated.
       Deprecated: please use device_name instead.
       
      .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true];
    • mergePd

      @Deprecated public Volume.Builder mergePd(PD value)
      Deprecated.
       Deprecated: please use device_name instead.
       
      .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true];
    • clearPd

      @Deprecated public Volume.Builder clearPd()
      Deprecated.
       Deprecated: please use device_name instead.
       
      .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true];
    • getPdBuilder

      @Deprecated public PD.Builder getPdBuilder()
      Deprecated.
       Deprecated: please use device_name instead.
       
      .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true];
    • getPdOrBuilder

      @Deprecated public PDOrBuilder getPdOrBuilder()
      Deprecated.
       Deprecated: please use device_name instead.
       
      .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true];
      Specified by:
      getPdOrBuilder in interface VolumeOrBuilder
    • hasGcs

      public boolean hasGcs()
       A Google Cloud Storage (GCS) volume.
       
      .google.cloud.batch.v1alpha.GCS gcs = 3;
      Specified by:
      hasGcs in interface VolumeOrBuilder
      Returns:
      Whether the gcs field is set.
    • getGcs

      public GCS getGcs()
       A Google Cloud Storage (GCS) volume.
       
      .google.cloud.batch.v1alpha.GCS gcs = 3;
      Specified by:
      getGcs in interface VolumeOrBuilder
      Returns:
      The gcs.
    • setGcs

      public Volume.Builder setGcs(GCS value)
       A Google Cloud Storage (GCS) volume.
       
      .google.cloud.batch.v1alpha.GCS gcs = 3;
    • setGcs

      public Volume.Builder setGcs(GCS.Builder builderForValue)
       A Google Cloud Storage (GCS) volume.
       
      .google.cloud.batch.v1alpha.GCS gcs = 3;
    • mergeGcs

      public Volume.Builder mergeGcs(GCS value)
       A Google Cloud Storage (GCS) volume.
       
      .google.cloud.batch.v1alpha.GCS gcs = 3;
    • clearGcs

      public Volume.Builder clearGcs()
       A Google Cloud Storage (GCS) volume.
       
      .google.cloud.batch.v1alpha.GCS gcs = 3;
    • getGcsBuilder

      public GCS.Builder getGcsBuilder()
       A Google Cloud Storage (GCS) volume.
       
      .google.cloud.batch.v1alpha.GCS gcs = 3;
    • getGcsOrBuilder

      public GCSOrBuilder getGcsOrBuilder()
       A Google Cloud Storage (GCS) volume.
       
      .google.cloud.batch.v1alpha.GCS gcs = 3;
      Specified by:
      getGcsOrBuilder in interface VolumeOrBuilder
    • hasDeviceName

      public 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;
      Specified by:
      hasDeviceName in interface VolumeOrBuilder
      Returns:
      Whether the deviceName field is set.
    • getDeviceName

      public 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;
      Specified by:
      getDeviceName in interface VolumeOrBuilder
      Returns:
      The deviceName.
    • getDeviceNameBytes

      public 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;
      Specified by:
      getDeviceNameBytes in interface VolumeOrBuilder
      Returns:
      The bytes for deviceName.
    • setDeviceName

      public Volume.Builder setDeviceName(String value)
       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;
      Parameters:
      value - The deviceName to set.
      Returns:
      This builder for chaining.
    • clearDeviceName

      public Volume.Builder clearDeviceName()
       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;
      Returns:
      This builder for chaining.
    • setDeviceNameBytes

      public Volume.Builder setDeviceNameBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for deviceName to set.
      Returns:
      This builder for chaining.
    • getMountPath

      public String getMountPath()
       The mount path for the volume, e.g. /mnt/disks/share.
       
      string mount_path = 4;
      Specified by:
      getMountPath in interface VolumeOrBuilder
      Returns:
      The mountPath.
    • getMountPathBytes

      public com.google.protobuf.ByteString getMountPathBytes()
       The mount path for the volume, e.g. /mnt/disks/share.
       
      string mount_path = 4;
      Specified by:
      getMountPathBytes in interface VolumeOrBuilder
      Returns:
      The bytes for mountPath.
    • setMountPath

      public Volume.Builder setMountPath(String value)
       The mount path for the volume, e.g. /mnt/disks/share.
       
      string mount_path = 4;
      Parameters:
      value - The mountPath to set.
      Returns:
      This builder for chaining.
    • clearMountPath

      public Volume.Builder clearMountPath()
       The mount path for the volume, e.g. /mnt/disks/share.
       
      string mount_path = 4;
      Returns:
      This builder for chaining.
    • setMountPathBytes

      public Volume.Builder setMountPathBytes(com.google.protobuf.ByteString value)
       The mount path for the volume, e.g. /mnt/disks/share.
       
      string mount_path = 4;
      Parameters:
      value - The bytes for mountPath to set.
      Returns:
      This builder for chaining.
    • getMountOptionsList

      public 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;
      Specified by:
      getMountOptionsList in interface VolumeOrBuilder
      Returns:
      A list containing the mountOptions.
    • getMountOptionsCount

      public 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;
      Specified by:
      getMountOptionsCount in interface VolumeOrBuilder
      Returns:
      The count of mountOptions.
    • getMountOptions

      public 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;
      Specified by:
      getMountOptions in interface VolumeOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The mountOptions at the given index.
    • getMountOptionsBytes

      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;
      Specified by:
      getMountOptionsBytes in interface VolumeOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the mountOptions at the given index.
    • setMountOptions

      public Volume.Builder setMountOptions(int index, String value)
       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;
      Parameters:
      index - The index to set the value at.
      value - The mountOptions to set.
      Returns:
      This builder for chaining.
    • addMountOptions

      public Volume.Builder addMountOptions(String value)
       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;
      Parameters:
      value - The mountOptions to add.
      Returns:
      This builder for chaining.
    • addAllMountOptions

      public Volume.Builder addAllMountOptions(Iterable<String> values)
       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;
      Parameters:
      values - The mountOptions to add.
      Returns:
      This builder for chaining.
    • clearMountOptions

      public Volume.Builder clearMountOptions()
       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;
      Returns:
      This builder for chaining.
    • addMountOptionsBytes

      public Volume.Builder addMountOptionsBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes of the mountOptions to add.
      Returns:
      This builder for chaining.