public static final class InstanceFlexibilityPolicy.InstanceSelectionResult.Builder extends GeneratedMessage.Builder<InstanceFlexibilityPolicy.InstanceSelectionResult.Builder> implements InstanceFlexibilityPolicy.InstanceSelectionResultOrBuilderDefines a mapping from machine types to the number of VMs that are created with each machine type.
Protobuf type
google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelectionResult
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > InstanceFlexibilityPolicy.InstanceSelectionResult.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public InstanceFlexibilityPolicy.InstanceSelectionResult build()| Returns | |
|---|---|
| Type | Description |
InstanceFlexibilityPolicy.InstanceSelectionResult |
|
buildPartial()
public InstanceFlexibilityPolicy.InstanceSelectionResult buildPartial()| Returns | |
|---|---|
| Type | Description |
InstanceFlexibilityPolicy.InstanceSelectionResult |
|
clear()
public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder clear()| Returns | |
|---|---|
| Type | Description |
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder |
|
clearMachineType()
public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder clearMachineType()Output only. Full machine-type names, e.g. "n1-standard-16".
optional string machine_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder |
This builder for chaining. |
clearVmCount()
public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder clearVmCount()Output only. Number of VM provisioned with the machine_type.
optional int32 vm_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public InstanceFlexibilityPolicy.InstanceSelectionResult getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
InstanceFlexibilityPolicy.InstanceSelectionResult |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMachineType()
public String getMachineType()Output only. Full machine-type names, e.g. "n1-standard-16".
optional string machine_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The machineType. |
getMachineTypeBytes()
public ByteString getMachineTypeBytes()Output only. Full machine-type names, e.g. "n1-standard-16".
optional string machine_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for machineType. |
getVmCount()
public int getVmCount()Output only. Number of VM provisioned with the machine_type.
optional int32 vm_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The vmCount. |
hasMachineType()
public boolean hasMachineType()Output only. Full machine-type names, e.g. "n1-standard-16".
optional string machine_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the machineType field is set. |
hasVmCount()
public boolean hasVmCount()Output only. Number of VM provisioned with the machine_type.
optional int32 vm_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the vmCount field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(InstanceFlexibilityPolicy.InstanceSelectionResult other)
public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder mergeFrom(InstanceFlexibilityPolicy.InstanceSelectionResult other)| Parameter | |
|---|---|
| Name | Description |
other |
InstanceFlexibilityPolicy.InstanceSelectionResult |
| Returns | |
|---|---|
| Type | Description |
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder |
|
setMachineType(String value)
public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder setMachineType(String value)Output only. Full machine-type names, e.g. "n1-standard-16".
optional string machine_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe machineType to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder |
This builder for chaining. |
setMachineTypeBytes(ByteString value)
public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder setMachineTypeBytes(ByteString value)Output only. Full machine-type names, e.g. "n1-standard-16".
optional string machine_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for machineType to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder |
This builder for chaining. |
setVmCount(int value)
public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder setVmCount(int value)Output only. Number of VM provisioned with the machine_type.
optional int32 vm_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe vmCount to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder |
This builder for chaining. |