Package com.google.cloud.compute.v1
Enum Commitment.Type
- java.lang.Object
-
- java.lang.Enum<Commitment.Type>
-
- com.google.cloud.compute.v1.Commitment.Type
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<Commitment.Type>
- Enclosing class:
- Commitment
public static enum Commitment.Type extends Enum<Commitment.Type> implements com.google.protobuf.ProtocolMessageEnum
The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines.
Protobuf enumgoogle.cloud.compute.v1.Commitment.Type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCELERATOR_OPTIMIZED
ACCELERATOR_OPTIMIZED = 280848403;
COMPUTE_OPTIMIZED
COMPUTE_OPTIMIZED = 158349023;
COMPUTE_OPTIMIZED_C2D
COMPUTE_OPTIMIZED_C2D = 383246453;
COMPUTE_OPTIMIZED_C3
COMPUTE_OPTIMIZED_C3 = 428004784;
GENERAL_PURPOSE
GENERAL_PURPOSE = 299793543;
GENERAL_PURPOSE_E2
GENERAL_PURPOSE_E2 = 301911877;
GENERAL_PURPOSE_N2
GENERAL_PURPOSE_N2 = 301912156;
GENERAL_PURPOSE_N2D
GENERAL_PURPOSE_N2D = 232471400;
GENERAL_PURPOSE_T2D
GENERAL_PURPOSE_T2D = 232477166;
GRAPHICS_OPTIMIZED
GRAPHICS_OPTIMIZED = 68500563;
MEMORY_OPTIMIZED
MEMORY_OPTIMIZED = 281753417;
MEMORY_OPTIMIZED_M3
MEMORY_OPTIMIZED_M3 = 276301372;
TYPE_UNSPECIFIED
TYPE_UNSPECIFIED = 437714322;
UNDEFINED_TYPE
A value indicating that the enum field is not set.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
ACCELERATOR_OPTIMIZED_VALUE
ACCELERATOR_OPTIMIZED = 280848403;
static int
COMPUTE_OPTIMIZED_C2D_VALUE
COMPUTE_OPTIMIZED_C2D = 383246453;
static int
COMPUTE_OPTIMIZED_C3_VALUE
COMPUTE_OPTIMIZED_C3 = 428004784;
static int
COMPUTE_OPTIMIZED_VALUE
COMPUTE_OPTIMIZED = 158349023;
static int
GENERAL_PURPOSE_E2_VALUE
GENERAL_PURPOSE_E2 = 301911877;
static int
GENERAL_PURPOSE_N2_VALUE
GENERAL_PURPOSE_N2 = 301912156;
static int
GENERAL_PURPOSE_N2D_VALUE
GENERAL_PURPOSE_N2D = 232471400;
static int
GENERAL_PURPOSE_T2D_VALUE
GENERAL_PURPOSE_T2D = 232477166;
static int
GENERAL_PURPOSE_VALUE
GENERAL_PURPOSE = 299793543;
static int
GRAPHICS_OPTIMIZED_VALUE
GRAPHICS_OPTIMIZED = 68500563;
static int
MEMORY_OPTIMIZED_M3_VALUE
MEMORY_OPTIMIZED_M3 = 276301372;
static int
MEMORY_OPTIMIZED_VALUE
MEMORY_OPTIMIZED = 281753417;
static int
TYPE_UNSPECIFIED_VALUE
TYPE_UNSPECIFIED = 437714322;
static int
UNDEFINED_TYPE_VALUE
A value indicating that the enum field is not set.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Commitment.Type
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<Commitment.Type>
internalGetValueMap()
static Commitment.Type
valueOf(int value)
Deprecated.static Commitment.Type
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Commitment.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static Commitment.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDEFINED_TYPE
public static final Commitment.Type UNDEFINED_TYPE
A value indicating that the enum field is not set.
UNDEFINED_TYPE = 0;
-
ACCELERATOR_OPTIMIZED
public static final Commitment.Type ACCELERATOR_OPTIMIZED
ACCELERATOR_OPTIMIZED = 280848403;
-
COMPUTE_OPTIMIZED
public static final Commitment.Type COMPUTE_OPTIMIZED
COMPUTE_OPTIMIZED = 158349023;
-
COMPUTE_OPTIMIZED_C2D
public static final Commitment.Type COMPUTE_OPTIMIZED_C2D
COMPUTE_OPTIMIZED_C2D = 383246453;
-
COMPUTE_OPTIMIZED_C3
public static final Commitment.Type COMPUTE_OPTIMIZED_C3
COMPUTE_OPTIMIZED_C3 = 428004784;
-
GENERAL_PURPOSE
public static final Commitment.Type GENERAL_PURPOSE
GENERAL_PURPOSE = 299793543;
-
GENERAL_PURPOSE_E2
public static final Commitment.Type GENERAL_PURPOSE_E2
GENERAL_PURPOSE_E2 = 301911877;
-
GENERAL_PURPOSE_N2
public static final Commitment.Type GENERAL_PURPOSE_N2
GENERAL_PURPOSE_N2 = 301912156;
-
GENERAL_PURPOSE_N2D
public static final Commitment.Type GENERAL_PURPOSE_N2D
GENERAL_PURPOSE_N2D = 232471400;
-
GENERAL_PURPOSE_T2D
public static final Commitment.Type GENERAL_PURPOSE_T2D
GENERAL_PURPOSE_T2D = 232477166;
-
GRAPHICS_OPTIMIZED
public static final Commitment.Type GRAPHICS_OPTIMIZED
GRAPHICS_OPTIMIZED = 68500563;
-
MEMORY_OPTIMIZED
public static final Commitment.Type MEMORY_OPTIMIZED
MEMORY_OPTIMIZED = 281753417;
-
MEMORY_OPTIMIZED_M3
public static final Commitment.Type MEMORY_OPTIMIZED_M3
MEMORY_OPTIMIZED_M3 = 276301372;
-
TYPE_UNSPECIFIED
public static final Commitment.Type TYPE_UNSPECIFIED
TYPE_UNSPECIFIED = 437714322;
-
UNRECOGNIZED
public static final Commitment.Type UNRECOGNIZED
-
-
Field Detail
-
UNDEFINED_TYPE_VALUE
public static final int UNDEFINED_TYPE_VALUE
A value indicating that the enum field is not set.
UNDEFINED_TYPE = 0;
- See Also:
- Constant Field Values
-
ACCELERATOR_OPTIMIZED_VALUE
public static final int ACCELERATOR_OPTIMIZED_VALUE
ACCELERATOR_OPTIMIZED = 280848403;
- See Also:
- Constant Field Values
-
COMPUTE_OPTIMIZED_VALUE
public static final int COMPUTE_OPTIMIZED_VALUE
COMPUTE_OPTIMIZED = 158349023;
- See Also:
- Constant Field Values
-
COMPUTE_OPTIMIZED_C2D_VALUE
public static final int COMPUTE_OPTIMIZED_C2D_VALUE
COMPUTE_OPTIMIZED_C2D = 383246453;
- See Also:
- Constant Field Values
-
COMPUTE_OPTIMIZED_C3_VALUE
public static final int COMPUTE_OPTIMIZED_C3_VALUE
COMPUTE_OPTIMIZED_C3 = 428004784;
- See Also:
- Constant Field Values
-
GENERAL_PURPOSE_VALUE
public static final int GENERAL_PURPOSE_VALUE
GENERAL_PURPOSE = 299793543;
- See Also:
- Constant Field Values
-
GENERAL_PURPOSE_E2_VALUE
public static final int GENERAL_PURPOSE_E2_VALUE
GENERAL_PURPOSE_E2 = 301911877;
- See Also:
- Constant Field Values
-
GENERAL_PURPOSE_N2_VALUE
public static final int GENERAL_PURPOSE_N2_VALUE
GENERAL_PURPOSE_N2 = 301912156;
- See Also:
- Constant Field Values
-
GENERAL_PURPOSE_N2D_VALUE
public static final int GENERAL_PURPOSE_N2D_VALUE
GENERAL_PURPOSE_N2D = 232471400;
- See Also:
- Constant Field Values
-
GENERAL_PURPOSE_T2D_VALUE
public static final int GENERAL_PURPOSE_T2D_VALUE
GENERAL_PURPOSE_T2D = 232477166;
- See Also:
- Constant Field Values
-
GRAPHICS_OPTIMIZED_VALUE
public static final int GRAPHICS_OPTIMIZED_VALUE
GRAPHICS_OPTIMIZED = 68500563;
- See Also:
- Constant Field Values
-
MEMORY_OPTIMIZED_VALUE
public static final int MEMORY_OPTIMIZED_VALUE
MEMORY_OPTIMIZED = 281753417;
- See Also:
- Constant Field Values
-
MEMORY_OPTIMIZED_M3_VALUE
public static final int MEMORY_OPTIMIZED_M3_VALUE
MEMORY_OPTIMIZED_M3 = 276301372;
- See Also:
- Constant Field Values
-
TYPE_UNSPECIFIED_VALUE
public static final int TYPE_UNSPECIFIED_VALUE
TYPE_UNSPECIFIED = 437714322;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Commitment.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Commitment.Type c : Commitment.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Commitment.Type valueOf(String name)
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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static Commitment.Type valueOf(int value)
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
public static Commitment.Type forNumber(int value)
- 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<Commitment.Type> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static Commitment.Type 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
-
-