Send feedback
Class InstanceFlexibilityPolicy.InstanceSelection (4.46.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 4.46.0 keyboard_arrow_down
public static final class InstanceFlexibilityPolicy . InstanceSelection extends GeneratedMessageV3 implements InstanceFlexibilityPolicy . InstanceSelectionOrBuilder
Defines machines types and a rank to which the machines types belong.
Protobuf type google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelection
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
MACHINE_TYPES_FIELD_NUMBER
public static final int MACHINE_TYPES_FIELD_NUMBER
Field Value
Type
Description
int
RANK_FIELD_NUMBER
public static final int RANK_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static InstanceFlexibilityPolicy . InstanceSelection getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static InstanceFlexibilityPolicy . InstanceSelection . Builder newBuilder ()
newBuilder(InstanceFlexibilityPolicy.InstanceSelection prototype)
public static InstanceFlexibilityPolicy . InstanceSelection . Builder newBuilder ( InstanceFlexibilityPolicy . InstanceSelection prototype )
public static InstanceFlexibilityPolicy . InstanceSelection parseDelimitedFrom ( InputStream input )
public static InstanceFlexibilityPolicy . InstanceSelection parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static InstanceFlexibilityPolicy . InstanceSelection parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static InstanceFlexibilityPolicy . InstanceSelection parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static InstanceFlexibilityPolicy . InstanceSelection parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static InstanceFlexibilityPolicy . InstanceSelection parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static InstanceFlexibilityPolicy . InstanceSelection parseFrom ( CodedInputStream input )
public static InstanceFlexibilityPolicy . InstanceSelection parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static InstanceFlexibilityPolicy . InstanceSelection parseFrom ( InputStream input )
public static InstanceFlexibilityPolicy . InstanceSelection parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static InstanceFlexibilityPolicy . InstanceSelection parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static InstanceFlexibilityPolicy . InstanceSelection parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<InstanceFlexibilityPolicy . InstanceSelection > parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getDefaultInstanceForType()
public InstanceFlexibilityPolicy . InstanceSelection getDefaultInstanceForType ()
getMachineTypes(int index)
public String getMachineTypes ( int index )
Optional. Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 1 [(.google.api.field_behavior) = OPTIONAL];
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 )
Optional. Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 1 [(.google.api.field_behavior) = OPTIONAL];
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 ()
Optional. Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
int
The count of machineTypes.
getMachineTypesList()
public ProtocolStringList getMachineTypesList ()
Optional. Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 1 [(.google.api.field_behavior) = OPTIONAL];
getParserForType()
public Parser<InstanceFlexibilityPolicy . InstanceSelection > getParserForType ()
Overrides
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
Type
Description
int
The rank.
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public InstanceFlexibilityPolicy . InstanceSelection . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected InstanceFlexibilityPolicy . InstanceSelection . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public InstanceFlexibilityPolicy . InstanceSelection . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
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-01-27 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-01-27 UTC."],[],[]]