Class InstanceFlexibilityPolicy (4.50.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
Type Description
int

INSTANCE_SELECTION_RESULTS_FIELD_NUMBER

public static final int INSTANCE_SELECTION_RESULTS_FIELD_NUMBER
Field Value
Type Description
int

PROVISIONING_MODEL_MIX_FIELD_NUMBER

public static final int PROVISIONING_MODEL_MIX_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static InstanceFlexibilityPolicy getDefaultInstance()
Returns
Type Description
InstanceFlexibilityPolicy

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static InstanceFlexibilityPolicy.Builder newBuilder()
Returns
Type Description
InstanceFlexibilityPolicy.Builder

newBuilder(InstanceFlexibilityPolicy prototype)

public static InstanceFlexibilityPolicy.Builder newBuilder(InstanceFlexibilityPolicy prototype)
Parameter
Name Description
prototype InstanceFlexibilityPolicy
Returns
Type Description
InstanceFlexibilityPolicy.Builder

parseDelimitedFrom(InputStream input)

public static InstanceFlexibilityPolicy parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
InstanceFlexibilityPolicy
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InstanceFlexibilityPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceFlexibilityPolicy
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static InstanceFlexibilityPolicy parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
InstanceFlexibilityPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static InstanceFlexibilityPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceFlexibilityPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static InstanceFlexibilityPolicy parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
InstanceFlexibilityPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static InstanceFlexibilityPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceFlexibilityPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static InstanceFlexibilityPolicy parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
InstanceFlexibilityPolicy
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static InstanceFlexibilityPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceFlexibilityPolicy
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static InstanceFlexibilityPolicy parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
InstanceFlexibilityPolicy
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InstanceFlexibilityPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceFlexibilityPolicy
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static InstanceFlexibilityPolicy parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
InstanceFlexibilityPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static InstanceFlexibilityPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceFlexibilityPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<InstanceFlexibilityPolicy> parser()
Returns
Type Description
Parser<InstanceFlexibilityPolicy>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public InstanceFlexibilityPolicy getDefaultInstanceForType()
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelectionResultOrBuilder>

getParserForType()

public Parser<InstanceFlexibilityPolicy> getParserForType()
Returns
Type Description
Parser<InstanceFlexibilityPolicy>
Overrides

getProvisioningModelMix()

public InstanceFlexibilityPolicy.ProvisioningModelMix getProvisioningModelMix()

Optional. Defines how the Group selects the provisioning model to ensure required reliability.

.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix provisioning_model_mix = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InstanceFlexibilityPolicy.ProvisioningModelMix

The provisioningModelMix.

getProvisioningModelMixOrBuilder()

public InstanceFlexibilityPolicy.ProvisioningModelMixOrBuilder getProvisioningModelMixOrBuilder()

Optional. Defines how the Group selects the provisioning model to ensure required reliability.

.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix provisioning_model_mix = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InstanceFlexibilityPolicy.ProvisioningModelMixOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasProvisioningModelMix()

public boolean hasProvisioningModelMix()

Optional. Defines how the Group selects the provisioning model to ensure required reliability.

.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix provisioning_model_mix = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the provisioningModelMix field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public InstanceFlexibilityPolicy.Builder newBuilderForType()
Returns
Type Description
InstanceFlexibilityPolicy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected InstanceFlexibilityPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
InstanceFlexibilityPolicy.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public InstanceFlexibilityPolicy.Builder toBuilder()
Returns
Type Description
InstanceFlexibilityPolicy.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException