Send feedback
Class InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder (1.66.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.66.0 keyboard_arrow_down
public static final class InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection . Builder extends GeneratedMessageV3 . Builder<InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection . Builder > implements InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelectionOrBuilder
Protobuf type
google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection
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
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.
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.
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.
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection build ()
buildPartial()
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection buildPartial ()
clear()
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearMachineTypes()
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection . Builder clearMachineTypes ()
Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 79720065;
clearOneof(Descriptors.OneofDescriptor oneof)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
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;
clone()
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection . Builder clone ()
Overrides
getDefaultInstanceForType()
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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;
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()
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection other)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection . Builder mergeFrom ( InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection other )
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection . Builder setField ( Descriptors . FieldDescriptor field , Object value )
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.
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.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-04 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-04 UTC."],[],[]]