Class InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder (1.65.0)

public static final class InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder extends GeneratedMessageV3.Builder<InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder> implements InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelectionOrBuilder

Protobuf type google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllMachineTypes(Iterable<String> values)

public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder addAllMachineTypes(Iterable<String> values)

Full machine-type names, e.g. "n1-standard-16".

repeated string machine_types = 79720065;

Parameter
Name Description
values Iterable<String>

The machineTypes to add.

Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder

This builder for chaining.

addMachineTypes(String value)

public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder addMachineTypes(String value)

Full machine-type names, e.g. "n1-standard-16".

repeated string machine_types = 79720065;

Parameter
Name Description
value String

The machineTypes to add.

Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder

This builder for chaining.

addMachineTypesBytes(ByteString value)

public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder addMachineTypesBytes(ByteString value)

Full machine-type names, e.g. "n1-standard-16".

repeated string machine_types = 79720065;

Parameter
Name Description
value ByteString

The bytes of the machineTypes to add.

Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection build()
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection

buildPartial()

public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection buildPartial()
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection

clear()

public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder clear()
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder
Overrides

clearMachineTypes()

public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder clearMachineTypes()

Full machine-type names, e.g. "n1-standard-16".

repeated string machine_types = 79720065;

Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder
Overrides

clearRank()

public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder clearRank()

Preference of this instance selection. Lower number means higher preference. MIG will first try to create a VM based on the machine-type with lowest rank and fallback to next rank based on availability. Machine types and instance selections with the same rank have the same preference.

optional int32 rank = 3492908;

Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder

This builder for chaining.

clone()

public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder clone()
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder
Overrides

getDefaultInstanceForType()

public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection getDefaultInstanceForType()
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMachineTypes(int index)

public String getMachineTypes(int index)

Full machine-type names, e.g. "n1-standard-16".

repeated string machine_types = 79720065;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The machineTypes at the given index.

getMachineTypesBytes(int index)

public ByteString getMachineTypesBytes(int index)

Full machine-type names, e.g. "n1-standard-16".

repeated string machine_types = 79720065;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the machineTypes at the given index.

getMachineTypesCount()

public int getMachineTypesCount()

Full machine-type names, e.g. "n1-standard-16".

repeated string machine_types = 79720065;

Returns
Type Description
int

The count of machineTypes.

getMachineTypesList()

public ProtocolStringList getMachineTypesList()

Full machine-type names, e.g. "n1-standard-16".

repeated string machine_types = 79720065;

Returns
Type Description
ProtocolStringList

A list containing the machineTypes.

getRank()

public int getRank()

Preference of this instance selection. Lower number means higher preference. MIG will first try to create a VM based on the machine-type with lowest rank and fallback to next rank based on availability. Machine types and instance selections with the same rank have the same preference.

optional int32 rank = 3492908;

Returns
Type Description
int

The rank.

hasRank()

public boolean hasRank()

Preference of this instance selection. Lower number means higher preference. MIG will first try to create a VM based on the machine-type with lowest rank and fallback to next rank based on availability. Machine types and instance selections with the same rank have the same preference.

optional int32 rank = 3492908;

Returns
Type Description
boolean

Whether the rank field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection other)

public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder mergeFrom(InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection other)
Parameter
Name Description
other InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder
Overrides

setMachineTypes(int index, String value)

public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder setMachineTypes(int index, String value)

Full machine-type names, e.g. "n1-standard-16".

repeated string machine_types = 79720065;

Parameters
Name Description
index int

The index to set the value at.

value String

The machineTypes to set.

Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder

This builder for chaining.

setRank(int value)

public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder setRank(int value)

Preference of this instance selection. Lower number means higher preference. MIG will first try to create a VM based on the machine-type with lowest rank and fallback to next rank based on availability. Machine types and instance selections with the same rank have the same preference.

optional int32 rank = 3492908;

Parameter
Name Description
value int

The rank to set.

Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder

This builder for chaining.

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

public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder
Overrides