Class InstanceFlexibilityPolicy.ProvisioningModelMix.Builder (4.51.0)

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

Defines how Dataproc should create VMs with a mixture of provisioning models.

Protobuf type google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > InstanceFlexibilityPolicy.ProvisioningModelMix.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InstanceFlexibilityPolicy.ProvisioningModelMix build()
Returns
Type Description
InstanceFlexibilityPolicy.ProvisioningModelMix

buildPartial()

public InstanceFlexibilityPolicy.ProvisioningModelMix buildPartial()
Returns
Type Description
InstanceFlexibilityPolicy.ProvisioningModelMix

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStandardCapacityBase()

public InstanceFlexibilityPolicy.ProvisioningModelMix.Builder clearStandardCapacityBase()

Optional. The base capacity that will always use Standard VMs to avoid risk of more preemption than the minimum capacity you need. Dataproc will create only standard VMs until it reaches standard_capacity_base, then it will start using standard_capacity_percent_above_base to mix Spot with Standard VMs. eg. If 15 instances are requested and standard_capacity_base is 5, Dataproc will create 5 standard VMs and then start mixing spot and standard VMs for remaining 10 instances.

optional int32 standard_capacity_base = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InstanceFlexibilityPolicy.ProvisioningModelMix.Builder

This builder for chaining.

clearStandardCapacityPercentAboveBase()

public InstanceFlexibilityPolicy.ProvisioningModelMix.Builder clearStandardCapacityPercentAboveBase()

Optional. The percentage of target capacity that should use Standard VM. The remaining percentage will use Spot VMs. The percentage applies only to the capacity above standard_capacity_base. eg. If 15 instances are requested and standard_capacity_base is 5 and standard_capacity_percent_above_base is 30, Dataproc will create 5 standard VMs and then start mixing spot and standard VMs for remaining 10 instances. The mix will be 30% standard and 70% spot.

optional int32 standard_capacity_percent_above_base = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InstanceFlexibilityPolicy.ProvisioningModelMix.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public InstanceFlexibilityPolicy.ProvisioningModelMix getDefaultInstanceForType()
Returns
Type Description
InstanceFlexibilityPolicy.ProvisioningModelMix

getDescriptorForType()

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

getStandardCapacityBase()

public int getStandardCapacityBase()

Optional. The base capacity that will always use Standard VMs to avoid risk of more preemption than the minimum capacity you need. Dataproc will create only standard VMs until it reaches standard_capacity_base, then it will start using standard_capacity_percent_above_base to mix Spot with Standard VMs. eg. If 15 instances are requested and standard_capacity_base is 5, Dataproc will create 5 standard VMs and then start mixing spot and standard VMs for remaining 10 instances.

optional int32 standard_capacity_base = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The standardCapacityBase.

getStandardCapacityPercentAboveBase()

public int getStandardCapacityPercentAboveBase()

Optional. The percentage of target capacity that should use Standard VM. The remaining percentage will use Spot VMs. The percentage applies only to the capacity above standard_capacity_base. eg. If 15 instances are requested and standard_capacity_base is 5 and standard_capacity_percent_above_base is 30, Dataproc will create 5 standard VMs and then start mixing spot and standard VMs for remaining 10 instances. The mix will be 30% standard and 70% spot.

optional int32 standard_capacity_percent_above_base = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The standardCapacityPercentAboveBase.

hasStandardCapacityBase()

public boolean hasStandardCapacityBase()

Optional. The base capacity that will always use Standard VMs to avoid risk of more preemption than the minimum capacity you need. Dataproc will create only standard VMs until it reaches standard_capacity_base, then it will start using standard_capacity_percent_above_base to mix Spot with Standard VMs. eg. If 15 instances are requested and standard_capacity_base is 5, Dataproc will create 5 standard VMs and then start mixing spot and standard VMs for remaining 10 instances.

optional int32 standard_capacity_base = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the standardCapacityBase field is set.

hasStandardCapacityPercentAboveBase()

public boolean hasStandardCapacityPercentAboveBase()

Optional. The percentage of target capacity that should use Standard VM. The remaining percentage will use Spot VMs. The percentage applies only to the capacity above standard_capacity_base. eg. If 15 instances are requested and standard_capacity_base is 5 and standard_capacity_percent_above_base is 30, Dataproc will create 5 standard VMs and then start mixing spot and standard VMs for remaining 10 instances. The mix will be 30% standard and 70% spot.

optional int32 standard_capacity_percent_above_base = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the standardCapacityPercentAboveBase field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InstanceFlexibilityPolicy.ProvisioningModelMix other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStandardCapacityBase(int value)

public InstanceFlexibilityPolicy.ProvisioningModelMix.Builder setStandardCapacityBase(int value)

Optional. The base capacity that will always use Standard VMs to avoid risk of more preemption than the minimum capacity you need. Dataproc will create only standard VMs until it reaches standard_capacity_base, then it will start using standard_capacity_percent_above_base to mix Spot with Standard VMs. eg. If 15 instances are requested and standard_capacity_base is 5, Dataproc will create 5 standard VMs and then start mixing spot and standard VMs for remaining 10 instances.

optional int32 standard_capacity_base = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The standardCapacityBase to set.

Returns
Type Description
InstanceFlexibilityPolicy.ProvisioningModelMix.Builder

This builder for chaining.

setStandardCapacityPercentAboveBase(int value)

public InstanceFlexibilityPolicy.ProvisioningModelMix.Builder setStandardCapacityPercentAboveBase(int value)

Optional. The percentage of target capacity that should use Standard VM. The remaining percentage will use Spot VMs. The percentage applies only to the capacity above standard_capacity_base. eg. If 15 instances are requested and standard_capacity_base is 5 and standard_capacity_percent_above_base is 30, Dataproc will create 5 standard VMs and then start mixing spot and standard VMs for remaining 10 instances. The mix will be 30% standard and 70% spot.

optional int32 standard_capacity_percent_above_base = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The standardCapacityPercentAboveBase to set.

Returns
Type Description
InstanceFlexibilityPolicy.ProvisioningModelMix.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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