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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InstanceFlexibilityPolicy.ProvisioningModelMix.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public InstanceFlexibilityPolicy.ProvisioningModelMix build()
buildPartial()
public InstanceFlexibilityPolicy.ProvisioningModelMix buildPartial()
clear()
public InstanceFlexibilityPolicy.ProvisioningModelMix.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public InstanceFlexibilityPolicy.ProvisioningModelMix.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public InstanceFlexibilityPolicy.ProvisioningModelMix.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
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];
clone()
public InstanceFlexibilityPolicy.ProvisioningModelMix.Builder clone()
Overrides
getDefaultInstanceForType()
public InstanceFlexibilityPolicy.ProvisioningModelMix getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(InstanceFlexibilityPolicy.ProvisioningModelMix other)
public InstanceFlexibilityPolicy.ProvisioningModelMix.Builder mergeFrom(InstanceFlexibilityPolicy.ProvisioningModelMix other)
public InstanceFlexibilityPolicy.ProvisioningModelMix.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public InstanceFlexibilityPolicy.ProvisioningModelMix.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InstanceFlexibilityPolicy.ProvisioningModelMix.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public InstanceFlexibilityPolicy.ProvisioningModelMix.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InstanceFlexibilityPolicy.ProvisioningModelMix.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final InstanceFlexibilityPolicy.ProvisioningModelMix.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides