public static final class InstanceFlexibilityPolicy.InstanceSelectionResult.Builder extends GeneratedMessageV3.Builder<InstanceFlexibilityPolicy.InstanceSelectionResult.Builder> implements InstanceFlexibilityPolicy.InstanceSelectionResultOrBuilder
Defines 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public InstanceFlexibilityPolicy.InstanceSelectionResult build()
buildPartial()
public InstanceFlexibilityPolicy.InstanceSelectionResult buildPartial()
clear()
public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
clone()
public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder clone()
Overrides
getDefaultInstanceForType()
public InstanceFlexibilityPolicy.InstanceSelectionResult getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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()
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(InstanceFlexibilityPolicy.InstanceSelectionResult other)
public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder mergeFrom(InstanceFlexibilityPolicy.InstanceSelectionResult other)
public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InstanceFlexibilityPolicy.InstanceSelectionResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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 | String
The machineType to set.
|
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 | ByteString
The bytes for machineType to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final InstanceFlexibilityPolicy.InstanceSelectionResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
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 | int
The vmCount to set.
|