Class Volume.Builder (0.1.1)

public static final class Volume.Builder extends GeneratedMessageV3.Builder<Volume.Builder> implements VolumeOrBuilder

Volume and mount parameters to be associated with a TaskSpec. A TaskSpec might describe zero, one, or multiple volumes to be mounted as part of the task.

Protobuf type google.cloud.batch.v1.Volume

Implements

VolumeOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllMountOptions(Iterable<String> values)

public Volume.Builder addAllMountOptions(Iterable<String> values)

Mount options For Google Cloud Storage, mount options are the global options supported by gcsfuse tool. Batch will use them to mount the volume with the following command: "gcsfuse [global options] bucket mountpoint". For PD, NFS, mount options are these supported by /etc/fstab. Batch will use Fstab to mount such volumes. https://help.ubuntu.com/community/Fstab

repeated string mount_options = 5;

Parameter
NameDescription
valuesIterable<String>

The mountOptions to add.

Returns
TypeDescription
Volume.Builder

This builder for chaining.

addMountOptions(String value)

public Volume.Builder addMountOptions(String value)

Mount options For Google Cloud Storage, mount options are the global options supported by gcsfuse tool. Batch will use them to mount the volume with the following command: "gcsfuse [global options] bucket mountpoint". For PD, NFS, mount options are these supported by /etc/fstab. Batch will use Fstab to mount such volumes. https://help.ubuntu.com/community/Fstab

repeated string mount_options = 5;

Parameter
NameDescription
valueString

The mountOptions to add.

Returns
TypeDescription
Volume.Builder

This builder for chaining.

addMountOptionsBytes(ByteString value)

public Volume.Builder addMountOptionsBytes(ByteString value)

Mount options For Google Cloud Storage, mount options are the global options supported by gcsfuse tool. Batch will use them to mount the volume with the following command: "gcsfuse [global options] bucket mountpoint". For PD, NFS, mount options are these supported by /etc/fstab. Batch will use Fstab to mount such volumes. https://help.ubuntu.com/community/Fstab

repeated string mount_options = 5;

Parameter
NameDescription
valueByteString

The bytes of the mountOptions to add.

Returns
TypeDescription
Volume.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Volume.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Volume.Builder
Overrides

build()

public Volume build()
Returns
TypeDescription
Volume

buildPartial()

public Volume buildPartial()
Returns
TypeDescription
Volume

clear()

public Volume.Builder clear()
Returns
TypeDescription
Volume.Builder
Overrides

clearDeviceName()

public Volume.Builder clearDeviceName()

Device name of an attached disk

string device_name = 6;

Returns
TypeDescription
Volume.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Volume.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Volume.Builder
Overrides

clearGcs()

public Volume.Builder clearGcs()

A Google Cloud Storage source for the volume.

.google.cloud.batch.v1.GCS gcs = 3;

Returns
TypeDescription
Volume.Builder

clearMountOptions()

public Volume.Builder clearMountOptions()

Mount options For Google Cloud Storage, mount options are the global options supported by gcsfuse tool. Batch will use them to mount the volume with the following command: "gcsfuse [global options] bucket mountpoint". For PD, NFS, mount options are these supported by /etc/fstab. Batch will use Fstab to mount such volumes. https://help.ubuntu.com/community/Fstab

repeated string mount_options = 5;

Returns
TypeDescription
Volume.Builder

This builder for chaining.

clearMountPath()

public Volume.Builder clearMountPath()

Mount path for the volume, e.g. /mnt/share

string mount_path = 4;

Returns
TypeDescription
Volume.Builder

This builder for chaining.

clearNfs()

public Volume.Builder clearNfs()

An NFS source for the volume (could be a Filestore, for example).

.google.cloud.batch.v1.NFS nfs = 1;

Returns
TypeDescription
Volume.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Volume.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Volume.Builder
Overrides

clearSource()

public Volume.Builder clearSource()
Returns
TypeDescription
Volume.Builder

clone()

public Volume.Builder clone()
Returns
TypeDescription
Volume.Builder
Overrides

getDefaultInstanceForType()

public Volume getDefaultInstanceForType()
Returns
TypeDescription
Volume

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDeviceName()

public String getDeviceName()

Device name of an attached disk

string device_name = 6;

Returns
TypeDescription
String

The deviceName.

getDeviceNameBytes()

public ByteString getDeviceNameBytes()

Device name of an attached disk

string device_name = 6;

Returns
TypeDescription
ByteString

The bytes for deviceName.

getGcs()

public GCS getGcs()

A Google Cloud Storage source for the volume.

.google.cloud.batch.v1.GCS gcs = 3;

Returns
TypeDescription
GCS

The gcs.

getGcsBuilder()

public GCS.Builder getGcsBuilder()

A Google Cloud Storage source for the volume.

.google.cloud.batch.v1.GCS gcs = 3;

Returns
TypeDescription
GCS.Builder

getGcsOrBuilder()

public GCSOrBuilder getGcsOrBuilder()

A Google Cloud Storage source for the volume.

.google.cloud.batch.v1.GCS gcs = 3;

Returns
TypeDescription
GCSOrBuilder

getMountOptions(int index)

public String getMountOptions(int index)

Mount options For Google Cloud Storage, mount options are the global options supported by gcsfuse tool. Batch will use them to mount the volume with the following command: "gcsfuse [global options] bucket mountpoint". For PD, NFS, mount options are these supported by /etc/fstab. Batch will use Fstab to mount such volumes. https://help.ubuntu.com/community/Fstab

repeated string mount_options = 5;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The mountOptions at the given index.

getMountOptionsBytes(int index)

public ByteString getMountOptionsBytes(int index)

Mount options For Google Cloud Storage, mount options are the global options supported by gcsfuse tool. Batch will use them to mount the volume with the following command: "gcsfuse [global options] bucket mountpoint". For PD, NFS, mount options are these supported by /etc/fstab. Batch will use Fstab to mount such volumes. https://help.ubuntu.com/community/Fstab

repeated string mount_options = 5;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the mountOptions at the given index.

getMountOptionsCount()

public int getMountOptionsCount()

Mount options For Google Cloud Storage, mount options are the global options supported by gcsfuse tool. Batch will use them to mount the volume with the following command: "gcsfuse [global options] bucket mountpoint". For PD, NFS, mount options are these supported by /etc/fstab. Batch will use Fstab to mount such volumes. https://help.ubuntu.com/community/Fstab

repeated string mount_options = 5;

Returns
TypeDescription
int

The count of mountOptions.

getMountOptionsList()

public ProtocolStringList getMountOptionsList()

Mount options For Google Cloud Storage, mount options are the global options supported by gcsfuse tool. Batch will use them to mount the volume with the following command: "gcsfuse [global options] bucket mountpoint". For PD, NFS, mount options are these supported by /etc/fstab. Batch will use Fstab to mount such volumes. https://help.ubuntu.com/community/Fstab

repeated string mount_options = 5;

Returns
TypeDescription
ProtocolStringList

A list containing the mountOptions.

getMountPath()

public String getMountPath()

Mount path for the volume, e.g. /mnt/share

string mount_path = 4;

Returns
TypeDescription
String

The mountPath.

getMountPathBytes()

public ByteString getMountPathBytes()

Mount path for the volume, e.g. /mnt/share

string mount_path = 4;

Returns
TypeDescription
ByteString

The bytes for mountPath.

getNfs()

public NFS getNfs()

An NFS source for the volume (could be a Filestore, for example).

.google.cloud.batch.v1.NFS nfs = 1;

Returns
TypeDescription
NFS

The nfs.

getNfsBuilder()

public NFS.Builder getNfsBuilder()

An NFS source for the volume (could be a Filestore, for example).

.google.cloud.batch.v1.NFS nfs = 1;

Returns
TypeDescription
NFS.Builder

getNfsOrBuilder()

public NFSOrBuilder getNfsOrBuilder()

An NFS source for the volume (could be a Filestore, for example).

.google.cloud.batch.v1.NFS nfs = 1;

Returns
TypeDescription
NFSOrBuilder

getSourceCase()

public Volume.SourceCase getSourceCase()
Returns
TypeDescription
Volume.SourceCase

hasDeviceName()

public boolean hasDeviceName()

Device name of an attached disk

string device_name = 6;

Returns
TypeDescription
boolean

Whether the deviceName field is set.

hasGcs()

public boolean hasGcs()

A Google Cloud Storage source for the volume.

.google.cloud.batch.v1.GCS gcs = 3;

Returns
TypeDescription
boolean

Whether the gcs field is set.

hasNfs()

public boolean hasNfs()

An NFS source for the volume (could be a Filestore, for example).

.google.cloud.batch.v1.NFS nfs = 1;

Returns
TypeDescription
boolean

Whether the nfs field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Volume other)

public Volume.Builder mergeFrom(Volume other)
Parameter
NameDescription
otherVolume
Returns
TypeDescription
Volume.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Volume.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Volume.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Volume.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Volume.Builder
Overrides

mergeGcs(GCS value)

public Volume.Builder mergeGcs(GCS value)

A Google Cloud Storage source for the volume.

.google.cloud.batch.v1.GCS gcs = 3;

Parameter
NameDescription
valueGCS
Returns
TypeDescription
Volume.Builder

mergeNfs(NFS value)

public Volume.Builder mergeNfs(NFS value)

An NFS source for the volume (could be a Filestore, for example).

.google.cloud.batch.v1.NFS nfs = 1;

Parameter
NameDescription
valueNFS
Returns
TypeDescription
Volume.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Volume.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Volume.Builder
Overrides

setDeviceName(String value)

public Volume.Builder setDeviceName(String value)

Device name of an attached disk

string device_name = 6;

Parameter
NameDescription
valueString

The deviceName to set.

Returns
TypeDescription
Volume.Builder

This builder for chaining.

setDeviceNameBytes(ByteString value)

public Volume.Builder setDeviceNameBytes(ByteString value)

Device name of an attached disk

string device_name = 6;

Parameter
NameDescription
valueByteString

The bytes for deviceName to set.

Returns
TypeDescription
Volume.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Volume.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Volume.Builder
Overrides

setGcs(GCS value)

public Volume.Builder setGcs(GCS value)

A Google Cloud Storage source for the volume.

.google.cloud.batch.v1.GCS gcs = 3;

Parameter
NameDescription
valueGCS
Returns
TypeDescription
Volume.Builder

setGcs(GCS.Builder builderForValue)

public Volume.Builder setGcs(GCS.Builder builderForValue)

A Google Cloud Storage source for the volume.

.google.cloud.batch.v1.GCS gcs = 3;

Parameter
NameDescription
builderForValueGCS.Builder
Returns
TypeDescription
Volume.Builder

setMountOptions(int index, String value)

public Volume.Builder setMountOptions(int index, String value)

Mount options For Google Cloud Storage, mount options are the global options supported by gcsfuse tool. Batch will use them to mount the volume with the following command: "gcsfuse [global options] bucket mountpoint". For PD, NFS, mount options are these supported by /etc/fstab. Batch will use Fstab to mount such volumes. https://help.ubuntu.com/community/Fstab

repeated string mount_options = 5;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The mountOptions to set.

Returns
TypeDescription
Volume.Builder

This builder for chaining.

setMountPath(String value)

public Volume.Builder setMountPath(String value)

Mount path for the volume, e.g. /mnt/share

string mount_path = 4;

Parameter
NameDescription
valueString

The mountPath to set.

Returns
TypeDescription
Volume.Builder

This builder for chaining.

setMountPathBytes(ByteString value)

public Volume.Builder setMountPathBytes(ByteString value)

Mount path for the volume, e.g. /mnt/share

string mount_path = 4;

Parameter
NameDescription
valueByteString

The bytes for mountPath to set.

Returns
TypeDescription
Volume.Builder

This builder for chaining.

setNfs(NFS value)

public Volume.Builder setNfs(NFS value)

An NFS source for the volume (could be a Filestore, for example).

.google.cloud.batch.v1.NFS nfs = 1;

Parameter
NameDescription
valueNFS
Returns
TypeDescription
Volume.Builder

setNfs(NFS.Builder builderForValue)

public Volume.Builder setNfs(NFS.Builder builderForValue)

An NFS source for the volume (could be a Filestore, for example).

.google.cloud.batch.v1.NFS nfs = 1;

Parameter
NameDescription
builderForValueNFS.Builder
Returns
TypeDescription
Volume.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Volume.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Volume.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Volume.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Volume.Builder
Overrides