Package com.google.cloud.batch.v1alpha
Class Volume.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Volume.Builder> implements VolumeOrBuilder
Volume describes a volume and parameters for it to be mounted to a VM.
Protobuf typegoogle.cloud.batch.v1alpha.Volume
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated 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
clearPd()
Deprecated.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.PD
getPd()
Deprecated.google.cloud.batch.v1alpha.Volume.pd is deprecated.PD.Builder
getPdBuilder()
Deprecated.PDOrBuilder
getPdOrBuilder()
Deprecated.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.boolean
hasPd()
Deprecated.google.cloud.batch.v1alpha.Volume.pd is deprecated.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
mergePd(PD value)
Deprecated.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
setPd(PD value)
Deprecated.Volume.Builder
setPd(PD.Builder builderForValue)
Deprecated.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 class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
clear
public Volume.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
getDefaultInstanceForType
public Volume getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Volume build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Volume buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Volume.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
setField
public Volume.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
clearField
public Volume.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
clearOneof
public Volume.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
addRepeatedField
public Volume.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
mergeFrom
public Volume.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Volume.Builder>
-
mergeFrom
public Volume.Builder mergeFrom(Volume other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Volume.Builder>
- Throws:
IOException
-
getSourceCase
public Volume.SourceCase getSourceCase()
- Specified by:
getSourceCase
in interfaceVolumeOrBuilder
-
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 interfaceVolumeOrBuilder
- 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 interfaceVolumeOrBuilder
- 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 interfaceVolumeOrBuilder
-
hasPd
@Deprecated public boolean hasPd()
Deprecated.google.cloud.batch.v1alpha.Volume.pd is deprecated. See google/cloud/batch/v1alpha/volume.proto;l=36Deprecated: please use device_name instead.
.google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true];
- Specified by:
hasPd
in interfaceVolumeOrBuilder
- 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=36Deprecated: please use device_name instead.
.google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true];
- Specified by:
getPd
in interfaceVolumeOrBuilder
- 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 interfaceVolumeOrBuilder
-
hasGcs
public boolean hasGcs()
A Google Cloud Storage (GCS) volume.
.google.cloud.batch.v1alpha.GCS gcs = 3;
- Specified by:
hasGcs
in interfaceVolumeOrBuilder
- 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 interfaceVolumeOrBuilder
- 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 interfaceVolumeOrBuilder
-
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 interfaceVolumeOrBuilder
- 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 interfaceVolumeOrBuilder
- 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 interfaceVolumeOrBuilder
- 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 interfaceVolumeOrBuilder
- 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 interfaceVolumeOrBuilder
- 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 interfaceVolumeOrBuilder
- 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 interfaceVolumeOrBuilder
- 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 interfaceVolumeOrBuilder
- 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 interfaceVolumeOrBuilder
- 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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
mergeUnknownFields
public final Volume.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
-