Package com.google.cloud.compute.v1
Interface InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelectionOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection,InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder
@Generated
public interface InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelectionOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetMachineTypes(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.Full machine-type names, e.g.intgetRank()Preference of this instance selection.booleanhasRank()Preference of this instance selection.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getMachineTypesList
Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 79720065;- Returns:
- A list containing the machineTypes.
-
getMachineTypesCount
int getMachineTypesCount()Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 79720065;- Returns:
- The count of machineTypes.
-
getMachineTypes
Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 79720065;- Parameters:
index- The index of the element to return.- Returns:
- The machineTypes at the given index.
-
getMachineTypesBytes
com.google.protobuf.ByteString getMachineTypesBytes(int index) Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 79720065;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the machineTypes at the given index.
-
hasRank
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:
- Whether the rank field is set.
-
getRank
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:
- The rank.
-