Class InstanceFlexibilityPolicy (4.26.0)

public final class InstanceFlexibilityPolicy extends GeneratedMessageV3 implements InstanceFlexibilityPolicyOrBuilder

Instance flexibility Policy allowing a mixture of VM shapes and provisioning models.

Protobuf type google.cloud.dataproc.v1.InstanceFlexibilityPolicy

Static Fields

INSTANCE_SELECTION_LIST_FIELD_NUMBER

public static final int INSTANCE_SELECTION_LIST_FIELD_NUMBER
Field Value
TypeDescription
int

INSTANCE_SELECTION_RESULTS_FIELD_NUMBER

public static final int INSTANCE_SELECTION_RESULTS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static InstanceFlexibilityPolicy getDefaultInstance()
Returns
TypeDescription
InstanceFlexibilityPolicy

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static InstanceFlexibilityPolicy.Builder newBuilder()
Returns
TypeDescription
InstanceFlexibilityPolicy.Builder

newBuilder(InstanceFlexibilityPolicy prototype)

public static InstanceFlexibilityPolicy.Builder newBuilder(InstanceFlexibilityPolicy prototype)
Parameter
NameDescription
prototypeInstanceFlexibilityPolicy
Returns
TypeDescription
InstanceFlexibilityPolicy.Builder

parseDelimitedFrom(InputStream input)

public static InstanceFlexibilityPolicy parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
InstanceFlexibilityPolicy
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InstanceFlexibilityPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstanceFlexibilityPolicy
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static InstanceFlexibilityPolicy parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
InstanceFlexibilityPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static InstanceFlexibilityPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstanceFlexibilityPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static InstanceFlexibilityPolicy parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
InstanceFlexibilityPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static InstanceFlexibilityPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstanceFlexibilityPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static InstanceFlexibilityPolicy parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
InstanceFlexibilityPolicy
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static InstanceFlexibilityPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstanceFlexibilityPolicy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static InstanceFlexibilityPolicy parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
InstanceFlexibilityPolicy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InstanceFlexibilityPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstanceFlexibilityPolicy
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static InstanceFlexibilityPolicy parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
InstanceFlexibilityPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static InstanceFlexibilityPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstanceFlexibilityPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<InstanceFlexibilityPolicy> parser()
Returns
TypeDescription
Parser<InstanceFlexibilityPolicy>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public InstanceFlexibilityPolicy getDefaultInstanceForType()
Returns
TypeDescription
InstanceFlexibilityPolicy

getInstanceSelectionList(int index)

public InstanceFlexibilityPolicy.InstanceSelection getInstanceSelectionList(int index)

Optional. List of instance selection options that the group will use when creating new VMs.

repeated .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelection instance_selection_list = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceFlexibilityPolicy.InstanceSelection

getInstanceSelectionListCount()

public int getInstanceSelectionListCount()

Optional. List of instance selection options that the group will use when creating new VMs.

repeated .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelection instance_selection_list = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getInstanceSelectionListList()

public List<InstanceFlexibilityPolicy.InstanceSelection> getInstanceSelectionListList()

Optional. List of instance selection options that the group will use when creating new VMs.

repeated .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelection instance_selection_list = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<InstanceSelection>

getInstanceSelectionListOrBuilder(int index)

public InstanceFlexibilityPolicy.InstanceSelectionOrBuilder getInstanceSelectionListOrBuilder(int index)

Optional. List of instance selection options that the group will use when creating new VMs.

repeated .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelection instance_selection_list = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceFlexibilityPolicy.InstanceSelectionOrBuilder

getInstanceSelectionListOrBuilderList()

public List<? extends InstanceFlexibilityPolicy.InstanceSelectionOrBuilder> getInstanceSelectionListOrBuilderList()

Optional. List of instance selection options that the group will use when creating new VMs.

repeated .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelection instance_selection_list = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelectionOrBuilder>

getInstanceSelectionResults(int index)

public InstanceFlexibilityPolicy.InstanceSelectionResult getInstanceSelectionResults(int index)

Output only. A list of instance selection results in the group.

repeated .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelectionResult instance_selection_results = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceFlexibilityPolicy.InstanceSelectionResult

getInstanceSelectionResultsCount()

public int getInstanceSelectionResultsCount()

Output only. A list of instance selection results in the group.

repeated .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelectionResult instance_selection_results = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getInstanceSelectionResultsList()

public List<InstanceFlexibilityPolicy.InstanceSelectionResult> getInstanceSelectionResultsList()

Output only. A list of instance selection results in the group.

repeated .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelectionResult instance_selection_results = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<InstanceSelectionResult>

getInstanceSelectionResultsOrBuilder(int index)

public InstanceFlexibilityPolicy.InstanceSelectionResultOrBuilder getInstanceSelectionResultsOrBuilder(int index)

Output only. A list of instance selection results in the group.

repeated .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelectionResult instance_selection_results = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceFlexibilityPolicy.InstanceSelectionResultOrBuilder

getInstanceSelectionResultsOrBuilderList()

public List<? extends InstanceFlexibilityPolicy.InstanceSelectionResultOrBuilder> getInstanceSelectionResultsOrBuilderList()

Output only. A list of instance selection results in the group.

repeated .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelectionResult instance_selection_results = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelectionResultOrBuilder>

getParserForType()

public Parser<InstanceFlexibilityPolicy> getParserForType()
Returns
TypeDescription
Parser<InstanceFlexibilityPolicy>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public InstanceFlexibilityPolicy.Builder newBuilderForType()
Returns
TypeDescription
InstanceFlexibilityPolicy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected InstanceFlexibilityPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
InstanceFlexibilityPolicy.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public InstanceFlexibilityPolicy.Builder toBuilder()
Returns
TypeDescription
InstanceFlexibilityPolicy.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException