Class InstanceFlexibilityPolicy.InstanceSelectionResult.Builder (4.41.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder clone()
Returns
Type Description
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder
Overrides

getDefaultInstanceForType()

public InstanceFlexibilityPolicy.InstanceSelectionResult getDefaultInstanceForType()
Returns
Type Description
InstanceFlexibilityPolicy.InstanceSelectionResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
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
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceFlexibilityPolicy.InstanceSelectionResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The 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 ByteString

The bytes for machineType to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

The vmCount to set.

Returns
Type Description
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder

This builder for chaining.