Class DataDiskAssignment.Builder (0.57.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
Type Description
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
Name Description
values Iterable<String>

The dataDisks to add.

Returns
Type Description
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
Name Description
value String

The dataDisks to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the dataDisks to add.

Returns
Type Description
DataDiskAssignment.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataDiskAssignment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataDiskAssignment.Builder
Overrides

build()

public DataDiskAssignment build()
Returns
Type Description
DataDiskAssignment

buildPartial()

public DataDiskAssignment buildPartial()
Returns
Type Description
DataDiskAssignment

clear()

public DataDiskAssignment.Builder clear()
Returns
Type Description
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
Type Description
DataDiskAssignment.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DataDiskAssignment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DataDiskAssignment.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DataDiskAssignment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
DataDiskAssignment.Builder

This builder for chaining.

clone()

public DataDiskAssignment.Builder clone()
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the dataDisks.

getDefaultInstanceForType()

public DataDiskAssignment getDefaultInstanceForType()
Returns
Type Description
DataDiskAssignment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for vmInstance.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DataDiskAssignment other)

public DataDiskAssignment.Builder mergeFrom(DataDiskAssignment other)
Parameter
Name Description
other DataDiskAssignment
Returns
Type Description
DataDiskAssignment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataDiskAssignment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataDiskAssignment.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DataDiskAssignment.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DataDiskAssignment.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataDiskAssignment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The dataDisks to set.

Returns
Type Description
DataDiskAssignment.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DataDiskAssignment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataDiskAssignment.Builder
Overrides

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

public DataDiskAssignment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DataDiskAssignment.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DataDiskAssignment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value String

The vmInstance to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for vmInstance to set.

Returns
Type Description
DataDiskAssignment.Builder

This builder for chaining.