Package com.google.cloud.batch.v1alpha
Enum AllocationPolicy.ProvisioningModel
java.lang.Object
java.lang.Enum<AllocationPolicy.ProvisioningModel>
com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<AllocationPolicy.ProvisioningModel>
- Enclosing class:
- AllocationPolicy
public static enum AllocationPolicy.ProvisioningModel
extends Enum<AllocationPolicy.ProvisioningModel>
implements com.google.protobuf.ProtocolMessageEnum
Compute Engine VM instance provisioning model.Protobuf enum
google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInstance is provisioned with DWS Flex Start and has limited max run duration.Deprecated.Unspecified.Bound to the lifecycle of the reservation in which it is provisioned.SPOT VM.Standard VM. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intInstance is provisioned with DWS Flex Start and has limited max run duration.static final intDeprecated.static final intUnspecified.static final intBound to the lifecycle of the reservation in which it is provisioned.static final intSPOT VM.static final intStandard VM. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<AllocationPolicy.ProvisioningModel>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.static AllocationPolicy.ProvisioningModel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PROVISIONING_MODEL_UNSPECIFIED
Unspecified.
PROVISIONING_MODEL_UNSPECIFIED = 0; -
STANDARD
Standard VM.
STANDARD = 1; -
SPOT
SPOT VM.
SPOT = 2; -
PREEMPTIBLE
Deprecated.Preemptible VM (PVM). Above SPOT VM is the preferable model for preemptible VM instances: the old preemptible VM model (indicated by this field) is the older model, and has been migrated to use the SPOT model as the underlying technology. This old model will still be supported.
PREEMPTIBLE = 3 [deprecated = true]; -
RESERVATION_BOUND
Bound to the lifecycle of the reservation in which it is provisioned.
RESERVATION_BOUND = 4; -
FLEX_START
Instance is provisioned with DWS Flex Start and has limited max run duration.
FLEX_START = 5; -
UNRECOGNIZED
-
-
Field Details
-
PROVISIONING_MODEL_UNSPECIFIED_VALUE
public static final int PROVISIONING_MODEL_UNSPECIFIED_VALUEUnspecified.
PROVISIONING_MODEL_UNSPECIFIED = 0;- See Also:
-
STANDARD_VALUE
public static final int STANDARD_VALUEStandard VM.
STANDARD = 1;- See Also:
-
SPOT_VALUE
public static final int SPOT_VALUESPOT VM.
SPOT = 2;- See Also:
-
PREEMPTIBLE_VALUE
Deprecated.Preemptible VM (PVM). Above SPOT VM is the preferable model for preemptible VM instances: the old preemptible VM model (indicated by this field) is the older model, and has been migrated to use the SPOT model as the underlying technology. This old model will still be supported.
PREEMPTIBLE = 3 [deprecated = true];- See Also:
-
RESERVATION_BOUND_VALUE
public static final int RESERVATION_BOUND_VALUEBound to the lifecycle of the reservation in which it is provisioned.
RESERVATION_BOUND = 4;- See Also:
-
FLEX_START_VALUE
public static final int FLEX_START_VALUEInstance is provisioned with DWS Flex Start and has limited max run duration.
FLEX_START = 5;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<AllocationPolicy.ProvisioningModel> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static AllocationPolicy.ProvisioningModel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-