Class InstanceFlexibilityPolicy.Builder (4.42.0)

public static final class InstanceFlexibilityPolicy.Builder extends GeneratedMessageV3.Builder<InstanceFlexibilityPolicy.Builder> implements InstanceFlexibilityPolicyOrBuilder

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

Protobuf type google.cloud.dataproc.v1.InstanceFlexibilityPolicy

Static Methods

getDescriptor()

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

Methods

addAllInstanceSelectionList(Iterable<? extends InstanceFlexibilityPolicy.InstanceSelection> values)

public InstanceFlexibilityPolicy.Builder addAllInstanceSelectionList(Iterable<? extends InstanceFlexibilityPolicy.InstanceSelection> values)

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
values Iterable<? extends com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelection>
Returns
Type Description
InstanceFlexibilityPolicy.Builder

addAllInstanceSelectionResults(Iterable<? extends InstanceFlexibilityPolicy.InstanceSelectionResult> values)

public InstanceFlexibilityPolicy.Builder addAllInstanceSelectionResults(Iterable<? extends InstanceFlexibilityPolicy.InstanceSelectionResult> values)

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
values Iterable<? extends com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelectionResult>
Returns
Type Description
InstanceFlexibilityPolicy.Builder

addInstanceSelectionList(InstanceFlexibilityPolicy.InstanceSelection value)

public InstanceFlexibilityPolicy.Builder addInstanceSelectionList(InstanceFlexibilityPolicy.InstanceSelection value)

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
value InstanceFlexibilityPolicy.InstanceSelection
Returns
Type Description
InstanceFlexibilityPolicy.Builder

addInstanceSelectionList(InstanceFlexibilityPolicy.InstanceSelection.Builder builderForValue)

public InstanceFlexibilityPolicy.Builder addInstanceSelectionList(InstanceFlexibilityPolicy.InstanceSelection.Builder builderForValue)

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
builderForValue InstanceFlexibilityPolicy.InstanceSelection.Builder
Returns
Type Description
InstanceFlexibilityPolicy.Builder

addInstanceSelectionList(int index, InstanceFlexibilityPolicy.InstanceSelection value)

public InstanceFlexibilityPolicy.Builder addInstanceSelectionList(int index, InstanceFlexibilityPolicy.InstanceSelection value)

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];

Parameters
Name Description
index int
value InstanceFlexibilityPolicy.InstanceSelection
Returns
Type Description
InstanceFlexibilityPolicy.Builder

addInstanceSelectionList(int index, InstanceFlexibilityPolicy.InstanceSelection.Builder builderForValue)

public InstanceFlexibilityPolicy.Builder addInstanceSelectionList(int index, InstanceFlexibilityPolicy.InstanceSelection.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue InstanceFlexibilityPolicy.InstanceSelection.Builder
Returns
Type Description
InstanceFlexibilityPolicy.Builder

addInstanceSelectionListBuilder()

public InstanceFlexibilityPolicy.InstanceSelection.Builder addInstanceSelectionListBuilder()

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
InstanceFlexibilityPolicy.InstanceSelection.Builder

addInstanceSelectionListBuilder(int index)

public InstanceFlexibilityPolicy.InstanceSelection.Builder addInstanceSelectionListBuilder(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.Builder

addInstanceSelectionResults(InstanceFlexibilityPolicy.InstanceSelectionResult value)

public InstanceFlexibilityPolicy.Builder addInstanceSelectionResults(InstanceFlexibilityPolicy.InstanceSelectionResult value)

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
value InstanceFlexibilityPolicy.InstanceSelectionResult
Returns
Type Description
InstanceFlexibilityPolicy.Builder

addInstanceSelectionResults(InstanceFlexibilityPolicy.InstanceSelectionResult.Builder builderForValue)

public InstanceFlexibilityPolicy.Builder addInstanceSelectionResults(InstanceFlexibilityPolicy.InstanceSelectionResult.Builder builderForValue)

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
builderForValue InstanceFlexibilityPolicy.InstanceSelectionResult.Builder
Returns
Type Description
InstanceFlexibilityPolicy.Builder

addInstanceSelectionResults(int index, InstanceFlexibilityPolicy.InstanceSelectionResult value)

public InstanceFlexibilityPolicy.Builder addInstanceSelectionResults(int index, InstanceFlexibilityPolicy.InstanceSelectionResult value)

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];

Parameters
Name Description
index int
value InstanceFlexibilityPolicy.InstanceSelectionResult
Returns
Type Description
InstanceFlexibilityPolicy.Builder

addInstanceSelectionResults(int index, InstanceFlexibilityPolicy.InstanceSelectionResult.Builder builderForValue)

public InstanceFlexibilityPolicy.Builder addInstanceSelectionResults(int index, InstanceFlexibilityPolicy.InstanceSelectionResult.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue InstanceFlexibilityPolicy.InstanceSelectionResult.Builder
Returns
Type Description
InstanceFlexibilityPolicy.Builder

addInstanceSelectionResultsBuilder()

public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder addInstanceSelectionResultsBuilder()

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
InstanceFlexibilityPolicy.InstanceSelectionResult.Builder

addInstanceSelectionResultsBuilder(int index)

public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder addInstanceSelectionResultsBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InstanceFlexibilityPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InstanceFlexibilityPolicy.Builder
Overrides

build()

public InstanceFlexibilityPolicy build()
Returns
Type Description
InstanceFlexibilityPolicy

buildPartial()

public InstanceFlexibilityPolicy buildPartial()
Returns
Type Description
InstanceFlexibilityPolicy

clear()

public InstanceFlexibilityPolicy.Builder clear()
Returns
Type Description
InstanceFlexibilityPolicy.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public InstanceFlexibilityPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InstanceFlexibilityPolicy.Builder
Overrides

clearInstanceSelectionList()

public InstanceFlexibilityPolicy.Builder clearInstanceSelectionList()

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
InstanceFlexibilityPolicy.Builder

clearInstanceSelectionResults()

public InstanceFlexibilityPolicy.Builder clearInstanceSelectionResults()

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
InstanceFlexibilityPolicy.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public InstanceFlexibilityPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
InstanceFlexibilityPolicy.Builder
Overrides

clone()

public InstanceFlexibilityPolicy.Builder clone()
Returns
Type Description
InstanceFlexibilityPolicy.Builder
Overrides

getDefaultInstanceForType()

public InstanceFlexibilityPolicy getDefaultInstanceForType()
Returns
Type Description
InstanceFlexibilityPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

getInstanceSelectionListBuilder(int index)

public InstanceFlexibilityPolicy.InstanceSelection.Builder getInstanceSelectionListBuilder(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.Builder

getInstanceSelectionListBuilderList()

public List<InstanceFlexibilityPolicy.InstanceSelection.Builder> getInstanceSelectionListBuilderList()

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<Builder>

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

getInstanceSelectionResultsBuilder(int index)

public InstanceFlexibilityPolicy.InstanceSelectionResult.Builder getInstanceSelectionResultsBuilder(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.Builder

getInstanceSelectionResultsBuilderList()

public List<InstanceFlexibilityPolicy.InstanceSelectionResult.Builder> getInstanceSelectionResultsBuilderList()

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<Builder>

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>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InstanceFlexibilityPolicy other)

public InstanceFlexibilityPolicy.Builder mergeFrom(InstanceFlexibilityPolicy other)
Parameter
Name Description
other InstanceFlexibilityPolicy
Returns
Type Description
InstanceFlexibilityPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstanceFlexibilityPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceFlexibilityPolicy.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InstanceFlexibilityPolicy.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InstanceFlexibilityPolicy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceFlexibilityPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InstanceFlexibilityPolicy.Builder
Overrides

removeInstanceSelectionList(int index)

public InstanceFlexibilityPolicy.Builder removeInstanceSelectionList(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.Builder

removeInstanceSelectionResults(int index)

public InstanceFlexibilityPolicy.Builder removeInstanceSelectionResults(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.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public InstanceFlexibilityPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InstanceFlexibilityPolicy.Builder
Overrides

setInstanceSelectionList(int index, InstanceFlexibilityPolicy.InstanceSelection value)

public InstanceFlexibilityPolicy.Builder setInstanceSelectionList(int index, InstanceFlexibilityPolicy.InstanceSelection value)

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];

Parameters
Name Description
index int
value InstanceFlexibilityPolicy.InstanceSelection
Returns
Type Description
InstanceFlexibilityPolicy.Builder

setInstanceSelectionList(int index, InstanceFlexibilityPolicy.InstanceSelection.Builder builderForValue)

public InstanceFlexibilityPolicy.Builder setInstanceSelectionList(int index, InstanceFlexibilityPolicy.InstanceSelection.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue InstanceFlexibilityPolicy.InstanceSelection.Builder
Returns
Type Description
InstanceFlexibilityPolicy.Builder

setInstanceSelectionResults(int index, InstanceFlexibilityPolicy.InstanceSelectionResult value)

public InstanceFlexibilityPolicy.Builder setInstanceSelectionResults(int index, InstanceFlexibilityPolicy.InstanceSelectionResult value)

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];

Parameters
Name Description
index int
value InstanceFlexibilityPolicy.InstanceSelectionResult
Returns
Type Description
InstanceFlexibilityPolicy.Builder

setInstanceSelectionResults(int index, InstanceFlexibilityPolicy.InstanceSelectionResult.Builder builderForValue)

public InstanceFlexibilityPolicy.Builder setInstanceSelectionResults(int index, InstanceFlexibilityPolicy.InstanceSelectionResult.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue InstanceFlexibilityPolicy.InstanceSelectionResult.Builder
Returns
Type Description
InstanceFlexibilityPolicy.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public InstanceFlexibilityPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InstanceFlexibilityPolicy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final InstanceFlexibilityPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InstanceFlexibilityPolicy.Builder
Overrides