Class 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.GeneratedMessageV3.Builder<Volume.Builder>
    implements VolumeOrBuilder
     Volume describes a volume and parameters for it to be mounted to a VM.
     
    Protobuf type google.cloud.batch.v1.Volume
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Volume.Builder addAllMountOptions​(Iterable<String> values)
      For Google Cloud Storage (GCS), mount options are the options supported by the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
      Volume.Builder addMountOptions​(String value)
      For Google Cloud Storage (GCS), mount options are the options supported by the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
      Volume.Builder addMountOptionsBytes​(com.google.protobuf.ByteString value)
      For Google Cloud Storage (GCS), mount options are the options supported by the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
      Volume.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      Volume build()  
      Volume buildPartial()  
      Volume.Builder clear()  
      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.
      Volume.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)  
      Volume.Builder clearGcs()
      A Google Cloud Storage (GCS) volume.
      Volume.Builder clearMountOptions()
      For Google Cloud Storage (GCS), mount options are the options supported by the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
      Volume.Builder clearMountPath()
      The mount path for the volume, e.g.
      Volume.Builder clearNfs()
      A Network File System (NFS) volume.
      Volume.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)  
      Volume.Builder clearSource()  
      Volume.Builder clone()  
      Volume getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      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.
      GCS.Builder getGcsBuilder()
      A Google Cloud Storage (GCS) volume.
      GCSOrBuilder getGcsOrBuilder()
      A Google Cloud Storage (GCS) volume.
      String getMountOptions​(int index)
      For Google Cloud Storage (GCS), mount options are the options supported by the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
      com.google.protobuf.ByteString getMountOptionsBytes​(int index)
      For Google Cloud Storage (GCS), mount options are the options supported by the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
      int getMountOptionsCount()
      For Google Cloud Storage (GCS), mount options are the options supported by the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
      com.google.protobuf.ProtocolStringList getMountOptionsList()
      For Google Cloud Storage (GCS), mount options are the options supported by the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
      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.
      NFS.Builder getNfsBuilder()
      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.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      Volume.Builder mergeFrom​(Volume other)  
      Volume.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      Volume.Builder mergeFrom​(com.google.protobuf.Message other)  
      Volume.Builder mergeGcs​(GCS value)
      A Google Cloud Storage (GCS) volume.
      Volume.Builder mergeNfs​(NFS value)
      A Network File System (NFS) volume.
      Volume.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      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.
      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.
      Volume.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      Volume.Builder setGcs​(GCS value)
      A Google Cloud Storage (GCS) volume.
      Volume.Builder setGcs​(GCS.Builder builderForValue)
      A Google Cloud Storage (GCS) volume.
      Volume.Builder setMountOptions​(int index, String value)
      For Google Cloud Storage (GCS), mount options are the options supported by the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
      Volume.Builder setMountPath​(String value)
      The mount path for the volume, e.g.
      Volume.Builder setMountPathBytes​(com.google.protobuf.ByteString value)
      The mount path for the volume, e.g.
      Volume.Builder setNfs​(NFS value)
      A Network File System (NFS) volume.
      Volume.Builder setNfs​(NFS.Builder builderForValue)
      A Network File System (NFS) volume.
      Volume.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)  
      Volume.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder

        getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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 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 Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Volume.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
      • setField

        public Volume.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                       Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
      • clearField

        public Volume.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
      • clearOneof

        public Volume.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
      • setRepeatedField

        public Volume.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               int index,
                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
      • addRepeatedField

        public Volume.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • hasNfs

        public boolean hasNfs()
         A Network File System (NFS) volume. For example, a
         Filestore file share.
         
        .google.cloud.batch.v1.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.v1.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.v1.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.v1.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.v1.NFS nfs = 1;
      • clearNfs

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

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

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

        public boolean hasGcs()
         A Google Cloud Storage (GCS) volume.
         
        .google.cloud.batch.v1.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.v1.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.v1.GCS gcs = 3;
      • setGcs

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

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

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

        public GCS.Builder getGcsBuilder()
         A Google Cloud Storage (GCS) volume.
         
        .google.cloud.batch.v1.GCS gcs = 3;
      • 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()
         For Google Cloud Storage (GCS), mount options are the options supported by
         the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
         For existing persistent disks, 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 other attached disks and Network File System (NFS), mount options are
         these supported by the mount command
         (https://man7.org/linux/man-pages/man8/mount.8.html).
         
        repeated string mount_options = 5;
        Specified by:
        getMountOptionsList in interface VolumeOrBuilder
        Returns:
        A list containing the mountOptions.
      • getMountOptionsCount

        public int getMountOptionsCount()
         For Google Cloud Storage (GCS), mount options are the options supported by
         the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
         For existing persistent disks, 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 other attached disks and Network File System (NFS), mount options are
         these supported by the mount command
         (https://man7.org/linux/man-pages/man8/mount.8.html).
         
        repeated string mount_options = 5;
        Specified by:
        getMountOptionsCount in interface VolumeOrBuilder
        Returns:
        The count of mountOptions.
      • getMountOptions

        public String getMountOptions​(int index)
         For Google Cloud Storage (GCS), mount options are the options supported by
         the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
         For existing persistent disks, 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 other attached disks and Network File System (NFS), mount options are
         these supported by the mount command
         (https://man7.org/linux/man-pages/man8/mount.8.html).
         
        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)
         For Google Cloud Storage (GCS), mount options are the options supported by
         the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
         For existing persistent disks, 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 other attached disks and Network File System (NFS), mount options are
         these supported by the mount command
         (https://man7.org/linux/man-pages/man8/mount.8.html).
         
        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)
         For Google Cloud Storage (GCS), mount options are the options supported by
         the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
         For existing persistent disks, 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 other attached disks and Network File System (NFS), mount options are
         these supported by the mount command
         (https://man7.org/linux/man-pages/man8/mount.8.html).
         
        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)
         For Google Cloud Storage (GCS), mount options are the options supported by
         the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
         For existing persistent disks, 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 other attached disks and Network File System (NFS), mount options are
         these supported by the mount command
         (https://man7.org/linux/man-pages/man8/mount.8.html).
         
        repeated string mount_options = 5;
        Parameters:
        value - The mountOptions to add.
        Returns:
        This builder for chaining.
      • addAllMountOptions

        public Volume.Builder addAllMountOptions​(Iterable<String> values)
         For Google Cloud Storage (GCS), mount options are the options supported by
         the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
         For existing persistent disks, 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 other attached disks and Network File System (NFS), mount options are
         these supported by the mount command
         (https://man7.org/linux/man-pages/man8/mount.8.html).
         
        repeated string mount_options = 5;
        Parameters:
        values - The mountOptions to add.
        Returns:
        This builder for chaining.
      • clearMountOptions

        public Volume.Builder clearMountOptions()
         For Google Cloud Storage (GCS), mount options are the options supported by
         the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
         For existing persistent disks, 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 other attached disks and Network File System (NFS), mount options are
         these supported by the mount command
         (https://man7.org/linux/man-pages/man8/mount.8.html).
         
        repeated string mount_options = 5;
        Returns:
        This builder for chaining.
      • addMountOptionsBytes

        public Volume.Builder addMountOptionsBytes​(com.google.protobuf.ByteString value)
         For Google Cloud Storage (GCS), mount options are the options supported by
         the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
         For existing persistent disks, 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 other attached disks and Network File System (NFS), mount options are
         these supported by the mount command
         (https://man7.org/linux/man-pages/man8/mount.8.html).
         
        repeated string mount_options = 5;
        Parameters:
        value - The bytes of the mountOptions to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Volume.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
      • mergeUnknownFields

        public final Volume.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>