Package com.google.cloud.dataproc.v1
Interface InstanceFlexibilityPolicy.InstanceSelectionOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
InstanceFlexibilityPolicy.InstanceSelection
,InstanceFlexibilityPolicy.InstanceSelection.Builder
- Enclosing class:
- InstanceFlexibilityPolicy
public static interface InstanceFlexibilityPolicy.InstanceSelectionOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getMachineTypes(int index)
Optional.com.google.protobuf.ByteString
getMachineTypesBytes(int index)
Optional.int
getMachineTypesCount()
Optional.List<String>
getMachineTypesList()
Optional.int
getRank()
Optional.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getMachineTypesList
List<String> getMachineTypesList()
Optional. Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 1 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- A list containing the machineTypes.
-
getMachineTypesCount
int getMachineTypesCount()
Optional. Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 1 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The count of machineTypes.
-
getMachineTypes
String getMachineTypes(int index)
Optional. Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 1 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
index
- The index of the element to return.- Returns:
- The machineTypes at the given index.
-
getMachineTypesBytes
com.google.protobuf.ByteString getMachineTypesBytes(int index)
Optional. Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 1 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the machineTypes at the given index.
-
getRank
int getRank()
Optional. Preference of this instance selection. Lower number means higher preference. Dataproc will first try to create a VM based on the machine-type with priority rank and fallback to next rank based on availability. Machine types and instance selections with the same priority have the same preference.
int32 rank = 2 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The rank.
-
-