Package com.google.cloud.aiplatform.v1
Enum Scheduling.Strategy
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Scheduling.Strategy>
- Enclosing class:
- Scheduling
public static enum Scheduling.Strategy
extends Enum<Scheduling.Strategy>
implements com.google.protobuf.ProtocolMessageEnum
Optional. This determines which type of scheduling strategy to use. Right now users have two options such as STANDARD which will use regular on demand resources to schedule the job, the other is SPOT which would leverage spot resources alongwith regular resources to schedule the job.Protobuf enum
google.cloud.aiplatform.v1.Scheduling.Strategy-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFlex Start strategy uses DWS to queue for resources.Deprecated.Deprecated.Spot provisioning strategy uses spot resources.Standard provisioning strategy uses regular on-demand resources.Strategy will default to STANDARD. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFlex Start strategy uses DWS to queue for resources.static final intDeprecated.static final intDeprecated.static final intSpot provisioning strategy uses spot resources.static final intStandard provisioning strategy uses regular on-demand resources.static final intStrategy will default to STANDARD. -
Method Summary
Modifier and TypeMethodDescriptionstatic Scheduling.StrategyforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Scheduling.Strategy>static Scheduling.StrategyvalueOf(int value) Deprecated.static Scheduling.StrategyvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Scheduling.StrategyReturns the enum constant of this type with the specified name.static Scheduling.Strategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STRATEGY_UNSPECIFIED
Strategy will default to STANDARD.
STRATEGY_UNSPECIFIED = 0; -
ON_DEMAND
Deprecated.Deprecated. Regular on-demand provisioning strategy.
ON_DEMAND = 1 [deprecated = true]; -
LOW_COST
Deprecated.Deprecated. Low cost by making potential use of spot resources.
LOW_COST = 2 [deprecated = true]; -
STANDARD
Standard provisioning strategy uses regular on-demand resources.
STANDARD = 3; -
SPOT
Spot provisioning strategy uses spot resources.
SPOT = 4; -
FLEX_START
Flex Start strategy uses DWS to queue for resources.
FLEX_START = 6; -
UNRECOGNIZED
-
-
Field Details
-
STRATEGY_UNSPECIFIED_VALUE
public static final int STRATEGY_UNSPECIFIED_VALUEStrategy will default to STANDARD.
STRATEGY_UNSPECIFIED = 0;- See Also:
-
ON_DEMAND_VALUE
Deprecated.Deprecated. Regular on-demand provisioning strategy.
ON_DEMAND = 1 [deprecated = true];- See Also:
-
LOW_COST_VALUE
Deprecated.Deprecated. Low cost by making potential use of spot resources.
LOW_COST = 2 [deprecated = true];- See Also:
-
STANDARD_VALUE
public static final int STANDARD_VALUEStandard provisioning strategy uses regular on-demand resources.
STANDARD = 3;- See Also:
-
SPOT_VALUE
public static final int SPOT_VALUESpot provisioning strategy uses spot resources.
SPOT = 4;- See Also:
-
FLEX_START_VALUE
public static final int FLEX_START_VALUEFlex Start strategy uses DWS to queue for resources.
FLEX_START = 6;- 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
-
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
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
-