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.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 TypeMethodDescriptionaddAllMountOptions(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 supportedaddMountOptions(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 supportedaddMountOptionsBytes(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 supportedbuild()clear()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.clearGcs()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 supportedThe mount path for the volume, e.g.clearNfs()A Network File System (NFS) volume.clearPd()Deprecated.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDevice 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.ByteStringDevice 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.getGcs()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 supportedcom.google.protobuf.ByteStringgetMountOptionsBytes(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 supportedintMount 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 supportedcom.google.protobuf.ProtocolStringListMount 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 supportedThe mount path for the volume, e.g.com.google.protobuf.ByteStringThe mount path for the volume, e.g.getNfs()A Network File System (NFS) volume.A Network File System (NFS) volume.A Network File System (NFS) volume.getPd()Deprecated.google.cloud.batch.v1alpha.Volume.pd is deprecated.Deprecated.Deprecated.booleanDevice 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.booleanhasGcs()A Google Cloud Storage (GCS) volume.booleanhasNfs()A Network File System (NFS) volume.booleanhasPd()Deprecated.google.cloud.batch.v1alpha.Volume.pd is deprecated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) A Google Cloud Storage (GCS) volume.A Network File System (NFS) volume.Deprecated.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.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.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 supportedsetMountPath(String value) The mount path for the volume, e.g.setMountPathBytes(com.google.protobuf.ByteString value) The mount path for the volume, e.g.A Network File System (NFS) volume.setNfs(NFS.Builder builderForValue) A Network File System (NFS) volume.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Volume.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Volume.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Volume.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Volume.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Volume.Builder>- Throws:
IOException
-
getSourceCase
- Specified by:
getSourceCasein interfaceVolumeOrBuilder
-
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:
hasNfsin interfaceVolumeOrBuilder- Returns:
- Whether the nfs field is set.
-
getNfs
A Network File System (NFS) volume. For example, a Filestore file share.
.google.cloud.batch.v1alpha.NFS nfs = 1;- Specified by:
getNfsin interfaceVolumeOrBuilder- Returns:
- The nfs.
-
setNfs
A Network File System (NFS) volume. For example, a Filestore file share.
.google.cloud.batch.v1alpha.NFS nfs = 1; -
setNfs
A Network File System (NFS) volume. For example, a Filestore file share.
.google.cloud.batch.v1alpha.NFS nfs = 1; -
mergeNfs
A Network File System (NFS) volume. For example, a Filestore file share.
.google.cloud.batch.v1alpha.NFS nfs = 1; -
clearNfs
A Network File System (NFS) volume. For example, a Filestore file share.
.google.cloud.batch.v1alpha.NFS nfs = 1; -
getNfsBuilder
A Network File System (NFS) volume. For example, a Filestore file share.
.google.cloud.batch.v1alpha.NFS nfs = 1; -
getNfsOrBuilder
A Network File System (NFS) volume. For example, a Filestore file share.
.google.cloud.batch.v1alpha.NFS nfs = 1;- Specified by:
getNfsOrBuilderin interfaceVolumeOrBuilder
-
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:
hasPdin interfaceVolumeOrBuilder- Returns:
- Whether the pd field is set.
-
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:
getPdin interfaceVolumeOrBuilder- Returns:
- The pd.
-
setPd
Deprecated.Deprecated: please use device_name instead.
.google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true]; -
setPd
Deprecated.Deprecated: please use device_name instead.
.google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true]; -
mergePd
Deprecated.Deprecated: please use device_name instead.
.google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true]; -
clearPd
Deprecated.Deprecated: please use device_name instead.
.google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true]; -
getPdBuilder
Deprecated.Deprecated: please use device_name instead.
.google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true]; -
getPdOrBuilder
Deprecated.Deprecated: please use device_name instead.
.google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true];- Specified by:
getPdOrBuilderin interfaceVolumeOrBuilder
-
hasGcs
public boolean hasGcs()A Google Cloud Storage (GCS) volume.
.google.cloud.batch.v1alpha.GCS gcs = 3;- Specified by:
hasGcsin interfaceVolumeOrBuilder- Returns:
- Whether the gcs field is set.
-
getGcs
A Google Cloud Storage (GCS) volume.
.google.cloud.batch.v1alpha.GCS gcs = 3;- Specified by:
getGcsin interfaceVolumeOrBuilder- Returns:
- The gcs.
-
setGcs
A Google Cloud Storage (GCS) volume.
.google.cloud.batch.v1alpha.GCS gcs = 3; -
setGcs
A Google Cloud Storage (GCS) volume.
.google.cloud.batch.v1alpha.GCS gcs = 3; -
mergeGcs
A Google Cloud Storage (GCS) volume.
.google.cloud.batch.v1alpha.GCS gcs = 3; -
clearGcs
A Google Cloud Storage (GCS) volume.
.google.cloud.batch.v1alpha.GCS gcs = 3; -
getGcsBuilder
A Google Cloud Storage (GCS) volume.
.google.cloud.batch.v1alpha.GCS gcs = 3; -
getGcsOrBuilder
A Google Cloud Storage (GCS) volume.
.google.cloud.batch.v1alpha.GCS gcs = 3;- Specified by:
getGcsOrBuilderin 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:
hasDeviceNamein interfaceVolumeOrBuilder- Returns:
- Whether the deviceName field is set.
-
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:
getDeviceNamein 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:
getDeviceNameBytesin interfaceVolumeOrBuilder- Returns:
- The bytes for deviceName.
-
setDeviceName
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
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
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
The mount path for the volume, e.g. /mnt/disks/share.
string mount_path = 4;- Specified by:
getMountPathin 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:
getMountPathBytesin interfaceVolumeOrBuilder- Returns:
- The bytes for mountPath.
-
setMountPath
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
The mount path for the volume, e.g. /mnt/disks/share.
string mount_path = 4;- Returns:
- This builder for chaining.
-
setMountPathBytes
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:
getMountOptionsListin interfaceVolumeOrBuilder- 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:
getMountOptionsCountin interfaceVolumeOrBuilder- Returns:
- The count of mountOptions.
-
getMountOptions
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:
getMountOptionsin 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) 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:
getMountOptionsBytesin interfaceVolumeOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the mountOptions at the given index.
-
setMountOptions
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
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
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
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
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.
-