public static final class InstanceFlexibilityPolicy.ProvisioningModelMix extends GeneratedMessageV3 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.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
STANDARD_CAPACITY_BASE_FIELD_NUMBER
public static final int STANDARD_CAPACITY_BASE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
STANDARD_CAPACITY_PERCENT_ABOVE_BASE_FIELD_NUMBER
public static final int STANDARD_CAPACITY_PERCENT_ABOVE_BASE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static InstanceFlexibilityPolicy.ProvisioningModelMix getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static InstanceFlexibilityPolicy.ProvisioningModelMix.Builder newBuilder()
newBuilder(InstanceFlexibilityPolicy.ProvisioningModelMix prototype)
public static InstanceFlexibilityPolicy.ProvisioningModelMix.Builder newBuilder(InstanceFlexibilityPolicy.ProvisioningModelMix prototype)
public static InstanceFlexibilityPolicy.ProvisioningModelMix parseDelimitedFrom(InputStream input)
public static InstanceFlexibilityPolicy.ProvisioningModelMix parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static InstanceFlexibilityPolicy.ProvisioningModelMix parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static InstanceFlexibilityPolicy.ProvisioningModelMix parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static InstanceFlexibilityPolicy.ProvisioningModelMix parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static InstanceFlexibilityPolicy.ProvisioningModelMix parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static InstanceFlexibilityPolicy.ProvisioningModelMix parseFrom(CodedInputStream input)
public static InstanceFlexibilityPolicy.ProvisioningModelMix parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static InstanceFlexibilityPolicy.ProvisioningModelMix parseFrom(InputStream input)
public static InstanceFlexibilityPolicy.ProvisioningModelMix parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static InstanceFlexibilityPolicy.ProvisioningModelMix parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static InstanceFlexibilityPolicy.ProvisioningModelMix parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<InstanceFlexibilityPolicy.ProvisioningModelMix> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public InstanceFlexibilityPolicy.ProvisioningModelMix getDefaultInstanceForType()
getParserForType()
public Parser<InstanceFlexibilityPolicy.ProvisioningModelMix> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
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.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public InstanceFlexibilityPolicy.ProvisioningModelMix.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected InstanceFlexibilityPolicy.ProvisioningModelMix.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public InstanceFlexibilityPolicy.ProvisioningModelMix.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides