Package com.google.cloud.compute.v1
Class InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder>
com.google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder
- All Implemented Interfaces:
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelectionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection
public static final class InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder
extends com.google.protobuf.GeneratedMessage.Builder<InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder>
implements InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelectionOrBuilder
Protobuf type
google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection-
Method Summary
Modifier and TypeMethodDescriptionaddAllMachineTypes(Iterable<String> values) Full machine-type names, e.g.addMachineTypes(String value) Full machine-type names, e.g.addMachineTypesBytes(com.google.protobuf.ByteString value) Full machine-type names, e.g.build()clear()Full machine-type names, e.g.Preference of this instance selection.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetMachineTypes(int index) Full machine-type names, e.g.com.google.protobuf.ByteStringgetMachineTypesBytes(int index) Full machine-type names, e.g.intFull machine-type names, e.g.com.google.protobuf.ProtocolStringListFull machine-type names, e.g.intgetRank()Preference of this instance selection.booleanhasRank()Preference of this instance selection.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setMachineTypes(int index, String value) Full machine-type names, e.g.setRank(int value) Preference of this instance selection.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder>
-
mergeFrom
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder>- Throws:
IOException
-
getMachineTypesList
public com.google.protobuf.ProtocolStringList getMachineTypesList()Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 79720065;- Specified by:
getMachineTypesListin interfaceInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelectionOrBuilder- Returns:
- A list containing the machineTypes.
-
getMachineTypesCount
public int getMachineTypesCount()Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 79720065;- Specified by:
getMachineTypesCountin interfaceInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelectionOrBuilder- Returns:
- The count of machineTypes.
-
getMachineTypes
Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 79720065;- Specified by:
getMachineTypesin interfaceInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelectionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The machineTypes at the given index.
-
getMachineTypesBytes
public com.google.protobuf.ByteString getMachineTypesBytes(int index) Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 79720065;- Specified by:
getMachineTypesBytesin interfaceInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelectionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the machineTypes at the given index.
-
setMachineTypes
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder setMachineTypes(int index, String value) Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 79720065;- Parameters:
index- The index to set the value at.value- The machineTypes to set.- Returns:
- This builder for chaining.
-
addMachineTypes
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder addMachineTypes(String value) Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 79720065;- Parameters:
value- The machineTypes to add.- Returns:
- This builder for chaining.
-
addAllMachineTypes
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder addAllMachineTypes(Iterable<String> values) Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 79720065;- Parameters:
values- The machineTypes to add.- Returns:
- This builder for chaining.
-
clearMachineTypes
Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 79720065;- Returns:
- This builder for chaining.
-
addMachineTypesBytes
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder addMachineTypesBytes(com.google.protobuf.ByteString value) Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 79720065;- Parameters:
value- The bytes of the machineTypes to add.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasRankin interfaceInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelectionOrBuilder- Returns:
- Whether the rank field is set.
-
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;- Specified by:
getRankin interfaceInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelectionOrBuilder- Returns:
- The rank.
-
setRank
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;- Parameters:
value- The rank to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-