public static final class DataDiskAssignment.Builder extends GeneratedMessage.Builder<DataDiskAssignment.Builder> implements DataDiskAssignmentOrBuilderData disk assignment for a given VM instance.
Protobuf type google.dataflow.v1beta3.DataDiskAssignment
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DataDiskAssignment.BuilderImplements
DataDiskAssignmentOrBuilderStatic 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 |
StringThe 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 |
ByteStringThe bytes of the dataDisks to add. |
| Returns | |
|---|---|
| Type | Description |
DataDiskAssignment.Builder |
This builder for chaining. |
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 |
|
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. |
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. |
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 |
intThe 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 |
intThe 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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DataDiskAssignment.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DataDiskAssignment.Builder |
|
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 |
intThe index to set the value at. |
value |
StringThe dataDisks to set. |
| Returns | |
|---|---|
| Type | Description |
DataDiskAssignment.Builder |
This builder for chaining. |
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 |
StringThe 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 |
ByteStringThe bytes for vmInstance to set. |
| Returns | |
|---|---|
| Type | Description |
DataDiskAssignment.Builder |
This builder for chaining. |