Class DataDiskAssignment.Builder (0.43.0)

public static final class DataDiskAssignment.Builder extends GeneratedMessageV3.Builder<DataDiskAssignment.Builder> implements DataDiskAssignmentOrBuilder

Data disk assignment for a given VM instance.

Protobuf type google.dataflow.v1beta3.DataDiskAssignment

Static Methods

getDescriptor()

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

Methods

addAllDataDisks(Iterable<String> values)

public DataDiskAssignment.Builder addAllDataDisks(Iterable<String> values)

Mounted data disks. The order is important a data disk's 0-based index in this list defines which persistent directory the disk is mounted to, for example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" }, { "myproject-1014-104817-4c2-harness-0-disk-1" }.

repeated string data_disks = 2;

Parameter
NameDescription
valuesIterable<String>

The dataDisks to add.

Returns
TypeDescription
DataDiskAssignment.Builder

This builder for chaining.

addDataDisks(String value)

public DataDiskAssignment.Builder addDataDisks(String value)

Mounted data disks. The order is important a data disk's 0-based index in this list defines which persistent directory the disk is mounted to, for example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" }, { "myproject-1014-104817-4c2-harness-0-disk-1" }.

repeated string data_disks = 2;

Parameter
NameDescription
valueString

The dataDisks to add.

Returns
TypeDescription
DataDiskAssignment.Builder

This builder for chaining.

addDataDisksBytes(ByteString value)

public DataDiskAssignment.Builder addDataDisksBytes(ByteString value)

Mounted data disks. The order is important a data disk's 0-based index in this list defines which persistent directory the disk is mounted to, for example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" }, { "myproject-1014-104817-4c2-harness-0-disk-1" }.

repeated string data_disks = 2;

Parameter
NameDescription
valueByteString

The bytes of the dataDisks to add.

Returns
TypeDescription
DataDiskAssignment.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DataDiskAssignment build()
Returns
TypeDescription
DataDiskAssignment

buildPartial()

public DataDiskAssignment buildPartial()
Returns
TypeDescription
DataDiskAssignment

clear()

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

clearDataDisks()

public DataDiskAssignment.Builder clearDataDisks()

Mounted data disks. The order is important a data disk's 0-based index in this list defines which persistent directory the disk is mounted to, for example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" }, { "myproject-1014-104817-4c2-harness-0-disk-1" }.

repeated string data_disks = 2;

Returns
TypeDescription
DataDiskAssignment.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVmInstance()

public DataDiskAssignment.Builder clearVmInstance()

VM instance name the data disks mounted to, for example "myproject-1014-104817-4c2-harness-0".

string vm_instance = 1;

Returns
TypeDescription
DataDiskAssignment.Builder

This builder for chaining.

clone()

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

getDataDisks(int index)

public String getDataDisks(int index)

Mounted data disks. The order is important a data disk's 0-based index in this list defines which persistent directory the disk is mounted to, for example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" }, { "myproject-1014-104817-4c2-harness-0-disk-1" }.

repeated string data_disks = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The dataDisks at the given index.

getDataDisksBytes(int index)

public ByteString getDataDisksBytes(int index)

Mounted data disks. The order is important a data disk's 0-based index in this list defines which persistent directory the disk is mounted to, for example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" }, { "myproject-1014-104817-4c2-harness-0-disk-1" }.

repeated string data_disks = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the dataDisks at the given index.

getDataDisksCount()

public int getDataDisksCount()

Mounted data disks. The order is important a data disk's 0-based index in this list defines which persistent directory the disk is mounted to, for example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" }, { "myproject-1014-104817-4c2-harness-0-disk-1" }.

repeated string data_disks = 2;

Returns
TypeDescription
int

The count of dataDisks.

getDataDisksList()

public ProtocolStringList getDataDisksList()

Mounted data disks. The order is important a data disk's 0-based index in this list defines which persistent directory the disk is mounted to, for example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" }, { "myproject-1014-104817-4c2-harness-0-disk-1" }.

repeated string data_disks = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the dataDisks.

getDefaultInstanceForType()

public DataDiskAssignment getDefaultInstanceForType()
Returns
TypeDescription
DataDiskAssignment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getVmInstance()

public String getVmInstance()

VM instance name the data disks mounted to, for example "myproject-1014-104817-4c2-harness-0".

string vm_instance = 1;

Returns
TypeDescription
String

The vmInstance.

getVmInstanceBytes()

public ByteString getVmInstanceBytes()

VM instance name the data disks mounted to, for example "myproject-1014-104817-4c2-harness-0".

string vm_instance = 1;

Returns
TypeDescription
ByteString

The bytes for vmInstance.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DataDiskAssignment other)

public DataDiskAssignment.Builder mergeFrom(DataDiskAssignment other)
Parameter
NameDescription
otherDataDiskAssignment
Returns
TypeDescription
DataDiskAssignment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDataDisks(int index, String value)

public DataDiskAssignment.Builder setDataDisks(int index, String value)

Mounted data disks. The order is important a data disk's 0-based index in this list defines which persistent directory the disk is mounted to, for example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" }, { "myproject-1014-104817-4c2-harness-0-disk-1" }.

repeated string data_disks = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The dataDisks to set.

Returns
TypeDescription
DataDiskAssignment.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVmInstance(String value)

public DataDiskAssignment.Builder setVmInstance(String value)

VM instance name the data disks mounted to, for example "myproject-1014-104817-4c2-harness-0".

string vm_instance = 1;

Parameter
NameDescription
valueString

The vmInstance to set.

Returns
TypeDescription
DataDiskAssignment.Builder

This builder for chaining.

setVmInstanceBytes(ByteString value)

public DataDiskAssignment.Builder setVmInstanceBytes(ByteString value)

VM instance name the data disks mounted to, for example "myproject-1014-104817-4c2-harness-0".

string vm_instance = 1;

Parameter
NameDescription
valueByteString

The bytes for vmInstance to set.

Returns
TypeDescription
DataDiskAssignment.Builder

This builder for chaining.