Class InstanceFlexibilityPolicy.InstanceSelectionResult.Builder (4.34.0)

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

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > InstanceFlexibilityPolicy.InstanceSelectionResult.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InstanceFlexibilityPolicy.InstanceSelectionResult build()
Returns
TypeDescription
InstanceFlexibilityPolicy.InstanceSelectionResult

buildPartial()

public InstanceFlexibilityPolicy.InstanceSelectionResult buildPartial()
Returns
TypeDescription
InstanceFlexibilityPolicy.InstanceSelectionResult

clear()

public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder clear()
Returns
TypeDescription
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder
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];

Returns
TypeDescription
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder
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];

Returns
TypeDescription
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder

This builder for chaining.

clone()

public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder clone()
Returns
TypeDescription
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder
Overrides

getDefaultInstanceForType()

public InstanceFlexibilityPolicy.InstanceSelectionResult getDefaultInstanceForType()
Returns
TypeDescription
InstanceFlexibilityPolicy.InstanceSelectionResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the vmCount field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InstanceFlexibilityPolicy.InstanceSelectionResult other)

public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder mergeFrom(InstanceFlexibilityPolicy.InstanceSelectionResult other)
Parameter
NameDescription
otherInstanceFlexibilityPolicy.InstanceSelectionResult
Returns
TypeDescription
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder
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
NameDescription
valueString

The machineType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for machineType to set.

Returns
TypeDescription
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final InstanceFlexibilityPolicy.InstanceSelectionResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder
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
NameDescription
valueint

The vmCount to set.

Returns
TypeDescription
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder

This builder for chaining.