Package com.google.cloud.compute.v1
Enum 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; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following:ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.Protobuf enum
google.cloud.compute.v1.Commitment.Type-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionACCELERATOR_OPTIMIZED = 280848403;ACCELERATOR_OPTIMIZED_A3 = 158574526;ACCELERATOR_OPTIMIZED_A3_MEGA = 156517459;ACCELERATOR_OPTIMIZED_A3_ULTRA = 27812811;ACCELERATOR_OPTIMIZED_A4 = 158574527;COMPUTE_OPTIMIZED = 158349023;COMPUTE_OPTIMIZED_C2D = 383246453;COMPUTE_OPTIMIZED_C3 = 428004784;COMPUTE_OPTIMIZED_C3D = 383246484;COMPUTE_OPTIMIZED_H3 = 428004939;COMPUTE_OPTIMIZED_H4D = 383251320;GENERAL_PURPOSE = 299793543;GENERAL_PURPOSE_C4 = 301911817;GENERAL_PURPOSE_C4A = 232460888;GENERAL_PURPOSE_C4D = 232460891;GENERAL_PURPOSE_E2 = 301911877;GENERAL_PURPOSE_N2 = 301912156;GENERAL_PURPOSE_N2D = 232471400;GENERAL_PURPOSE_N4 = 301912158;GENERAL_PURPOSE_N4A = 232471459;GENERAL_PURPOSE_N4D = 232471462;GENERAL_PURPOSE_T2D = 232477166;GRAPHICS_OPTIMIZED = 68500563;GRAPHICS_OPTIMIZED_G4 = 54029369;MEMORY_OPTIMIZED = 281753417;MEMORY_OPTIMIZED_M3 = 276301372;MEMORY_OPTIMIZED_M4 = 276301373;MEMORY_OPTIMIZED_M4_6TB = 210543650;CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.MEMORY_OPTIMIZED_X4_16TB = 183089120;CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.MEMORY_OPTIMIZED_X4_24TB = 183116989;MEMORY_OPTIMIZED_X4_32TB = 183144858;CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.STORAGE_OPTIMIZED_Z3 = 316796085;Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition.A value indicating that the enum field is not set. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intACCELERATOR_OPTIMIZED_A3_MEGA = 156517459;static final intACCELERATOR_OPTIMIZED_A3_ULTRA = 27812811;static final intACCELERATOR_OPTIMIZED_A3 = 158574526;static final intACCELERATOR_OPTIMIZED_A4 = 158574527;static final intACCELERATOR_OPTIMIZED = 280848403;static final intCOMPUTE_OPTIMIZED_C2D = 383246453;static final intCOMPUTE_OPTIMIZED_C3 = 428004784;static final intCOMPUTE_OPTIMIZED_C3D = 383246484;static final intCOMPUTE_OPTIMIZED_H3 = 428004939;static final intCOMPUTE_OPTIMIZED_H4D = 383251320;static final intCOMPUTE_OPTIMIZED = 158349023;static final intGENERAL_PURPOSE_C4 = 301911817;static final intGENERAL_PURPOSE_C4A = 232460888;static final intGENERAL_PURPOSE_C4D = 232460891;static final intGENERAL_PURPOSE_E2 = 301911877;static final intGENERAL_PURPOSE_N2 = 301912156;static final intGENERAL_PURPOSE_N2D = 232471400;static final intGENERAL_PURPOSE_N4 = 301912158;static final intGENERAL_PURPOSE_N4A = 232471459;static final intGENERAL_PURPOSE_N4D = 232471462;static final intGENERAL_PURPOSE_T2D = 232477166;static final intGENERAL_PURPOSE = 299793543;static final intGRAPHICS_OPTIMIZED_G4 = 54029369;static final intGRAPHICS_OPTIMIZED = 68500563;static final intMEMORY_OPTIMIZED_M3 = 276301372;static final intMEMORY_OPTIMIZED_M4_6TB = 210543650;static final intMEMORY_OPTIMIZED_M4 = 276301373;static final intMEMORY_OPTIMIZED = 281753417;static final intCUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.static final intMEMORY_OPTIMIZED_X4_16TB = 183089120;static final intCUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.static final intMEMORY_OPTIMIZED_X4_24TB = 183116989;static final intMEMORY_OPTIMIZED_X4_32TB = 183144858;static final intCUD bucket for X4 machine with 480 vCPUs and 6TB of memory.static final intCUD bucket for X4 machine with 480 vCPUs and 8TB of memory.static final intCUD bucket for X4 machine with 960 vCPUs and 12TB of memory.static final intCUD bucket for X4 machine with 960 vCPUs and 16TB of memory.static final intSTORAGE_OPTIMIZED_Z3 = 316796085;static final intNote for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition.static final intA value indicating that the enum field is not set. -
Method Summary
Modifier and TypeMethodDescriptionstatic Commitment.TypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Commitment.Type>static Commitment.TypevalueOf(int value) Deprecated.static Commitment.TypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Commitment.TypeReturns 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 Details
-
UNDEFINED_TYPE
A value indicating that the enum field is not set.
UNDEFINED_TYPE = 0; -
ACCELERATOR_OPTIMIZED
ACCELERATOR_OPTIMIZED = 280848403; -
ACCELERATOR_OPTIMIZED_A3
ACCELERATOR_OPTIMIZED_A3 = 158574526; -
ACCELERATOR_OPTIMIZED_A3_MEGA
ACCELERATOR_OPTIMIZED_A3_MEGA = 156517459; -
ACCELERATOR_OPTIMIZED_A3_ULTRA
ACCELERATOR_OPTIMIZED_A3_ULTRA = 27812811; -
ACCELERATOR_OPTIMIZED_A4
ACCELERATOR_OPTIMIZED_A4 = 158574527; -
COMPUTE_OPTIMIZED
COMPUTE_OPTIMIZED = 158349023; -
COMPUTE_OPTIMIZED_C2D
COMPUTE_OPTIMIZED_C2D = 383246453; -
COMPUTE_OPTIMIZED_C3
COMPUTE_OPTIMIZED_C3 = 428004784; -
COMPUTE_OPTIMIZED_C3D
COMPUTE_OPTIMIZED_C3D = 383246484; -
COMPUTE_OPTIMIZED_H3
COMPUTE_OPTIMIZED_H3 = 428004939; -
COMPUTE_OPTIMIZED_H4D
COMPUTE_OPTIMIZED_H4D = 383251320; -
GENERAL_PURPOSE
GENERAL_PURPOSE = 299793543; -
GENERAL_PURPOSE_C4
GENERAL_PURPOSE_C4 = 301911817; -
GENERAL_PURPOSE_C4A
GENERAL_PURPOSE_C4A = 232460888; -
GENERAL_PURPOSE_C4D
GENERAL_PURPOSE_C4D = 232460891; -
GENERAL_PURPOSE_E2
GENERAL_PURPOSE_E2 = 301911877; -
GENERAL_PURPOSE_N2
GENERAL_PURPOSE_N2 = 301912156; -
GENERAL_PURPOSE_N2D
GENERAL_PURPOSE_N2D = 232471400; -
GENERAL_PURPOSE_N4
GENERAL_PURPOSE_N4 = 301912158; -
GENERAL_PURPOSE_N4A
GENERAL_PURPOSE_N4A = 232471459; -
GENERAL_PURPOSE_N4D
GENERAL_PURPOSE_N4D = 232471462; -
GENERAL_PURPOSE_T2D
GENERAL_PURPOSE_T2D = 232477166; -
GRAPHICS_OPTIMIZED
GRAPHICS_OPTIMIZED = 68500563; -
GRAPHICS_OPTIMIZED_G4
GRAPHICS_OPTIMIZED_G4 = 54029369; -
MEMORY_OPTIMIZED
MEMORY_OPTIMIZED = 281753417; -
MEMORY_OPTIMIZED_M3
MEMORY_OPTIMIZED_M3 = 276301372; -
MEMORY_OPTIMIZED_M4
MEMORY_OPTIMIZED_M4 = 276301373; -
MEMORY_OPTIMIZED_M4_6TB
MEMORY_OPTIMIZED_M4_6TB = 210543650; -
MEMORY_OPTIMIZED_X4_1440_24T
CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
MEMORY_OPTIMIZED_X4_1440_24T = 206669823; -
MEMORY_OPTIMIZED_X4_16TB
MEMORY_OPTIMIZED_X4_16TB = 183089120; -
MEMORY_OPTIMIZED_X4_1920_32T
CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
MEMORY_OPTIMIZED_X4_1920_32T = 291963529; -
MEMORY_OPTIMIZED_X4_24TB
MEMORY_OPTIMIZED_X4_24TB = 183116989; -
MEMORY_OPTIMIZED_X4_32TB
MEMORY_OPTIMIZED_X4_32TB = 183144858; -
MEMORY_OPTIMIZED_X4_480_6T
CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
MEMORY_OPTIMIZED_X4_480_6T = 478547742; -
MEMORY_OPTIMIZED_X4_480_8T
CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
MEMORY_OPTIMIZED_X4_480_8T = 478547804; -
MEMORY_OPTIMIZED_X4_960_12T
CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
MEMORY_OPTIMIZED_X4_960_12T = 424752410; -
MEMORY_OPTIMIZED_X4_960_16T
CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
MEMORY_OPTIMIZED_X4_960_16T = 424752534; -
STORAGE_OPTIMIZED_Z3
STORAGE_OPTIMIZED_Z3 = 316796085; -
TYPE_UNSPECIFIED
Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
TYPE_UNSPECIFIED = 437714322; -
UNRECOGNIZED
-
-
Field Details
-
UNDEFINED_TYPE_VALUE
public static final int UNDEFINED_TYPE_VALUEA value indicating that the enum field is not set.
UNDEFINED_TYPE = 0;- See Also:
-
ACCELERATOR_OPTIMIZED_VALUE
public static final int ACCELERATOR_OPTIMIZED_VALUEACCELERATOR_OPTIMIZED = 280848403;- See Also:
-
ACCELERATOR_OPTIMIZED_A3_VALUE
public static final int ACCELERATOR_OPTIMIZED_A3_VALUEACCELERATOR_OPTIMIZED_A3 = 158574526;- See Also:
-
ACCELERATOR_OPTIMIZED_A3_MEGA_VALUE
public static final int ACCELERATOR_OPTIMIZED_A3_MEGA_VALUEACCELERATOR_OPTIMIZED_A3_MEGA = 156517459;- See Also:
-
ACCELERATOR_OPTIMIZED_A3_ULTRA_VALUE
public static final int ACCELERATOR_OPTIMIZED_A3_ULTRA_VALUEACCELERATOR_OPTIMIZED_A3_ULTRA = 27812811;- See Also:
-
ACCELERATOR_OPTIMIZED_A4_VALUE
public static final int ACCELERATOR_OPTIMIZED_A4_VALUEACCELERATOR_OPTIMIZED_A4 = 158574527;- See Also:
-
COMPUTE_OPTIMIZED_VALUE
public static final int COMPUTE_OPTIMIZED_VALUECOMPUTE_OPTIMIZED = 158349023;- See Also:
-
COMPUTE_OPTIMIZED_C2D_VALUE
public static final int COMPUTE_OPTIMIZED_C2D_VALUECOMPUTE_OPTIMIZED_C2D = 383246453;- See Also:
-
COMPUTE_OPTIMIZED_C3_VALUE
public static final int COMPUTE_OPTIMIZED_C3_VALUECOMPUTE_OPTIMIZED_C3 = 428004784;- See Also:
-
COMPUTE_OPTIMIZED_C3D_VALUE
public static final int COMPUTE_OPTIMIZED_C3D_VALUECOMPUTE_OPTIMIZED_C3D = 383246484;- See Also:
-
COMPUTE_OPTIMIZED_H3_VALUE
public static final int COMPUTE_OPTIMIZED_H3_VALUECOMPUTE_OPTIMIZED_H3 = 428004939;- See Also:
-
COMPUTE_OPTIMIZED_H4D_VALUE
public static final int COMPUTE_OPTIMIZED_H4D_VALUECOMPUTE_OPTIMIZED_H4D = 383251320;- See Also:
-
GENERAL_PURPOSE_VALUE
public static final int GENERAL_PURPOSE_VALUEGENERAL_PURPOSE = 299793543;- See Also:
-
GENERAL_PURPOSE_C4_VALUE
public static final int GENERAL_PURPOSE_C4_VALUEGENERAL_PURPOSE_C4 = 301911817;- See Also:
-
GENERAL_PURPOSE_C4A_VALUE
public static final int GENERAL_PURPOSE_C4A_VALUEGENERAL_PURPOSE_C4A = 232460888;- See Also:
-
GENERAL_PURPOSE_C4D_VALUE
public static final int GENERAL_PURPOSE_C4D_VALUEGENERAL_PURPOSE_C4D = 232460891;- See Also:
-
GENERAL_PURPOSE_E2_VALUE
public static final int GENERAL_PURPOSE_E2_VALUEGENERAL_PURPOSE_E2 = 301911877;- See Also:
-
GENERAL_PURPOSE_N2_VALUE
public static final int GENERAL_PURPOSE_N2_VALUEGENERAL_PURPOSE_N2 = 301912156;- See Also:
-
GENERAL_PURPOSE_N2D_VALUE
public static final int GENERAL_PURPOSE_N2D_VALUEGENERAL_PURPOSE_N2D = 232471400;- See Also:
-
GENERAL_PURPOSE_N4_VALUE
public static final int GENERAL_PURPOSE_N4_VALUEGENERAL_PURPOSE_N4 = 301912158;- See Also:
-
GENERAL_PURPOSE_N4A_VALUE
public static final int GENERAL_PURPOSE_N4A_VALUEGENERAL_PURPOSE_N4A = 232471459;- See Also:
-
GENERAL_PURPOSE_N4D_VALUE
public static final int GENERAL_PURPOSE_N4D_VALUEGENERAL_PURPOSE_N4D = 232471462;- See Also:
-
GENERAL_PURPOSE_T2D_VALUE
public static final int GENERAL_PURPOSE_T2D_VALUEGENERAL_PURPOSE_T2D = 232477166;- See Also:
-
GRAPHICS_OPTIMIZED_VALUE
public static final int GRAPHICS_OPTIMIZED_VALUEGRAPHICS_OPTIMIZED = 68500563;- See Also:
-
GRAPHICS_OPTIMIZED_G4_VALUE
public static final int GRAPHICS_OPTIMIZED_G4_VALUEGRAPHICS_OPTIMIZED_G4 = 54029369;- See Also:
-
MEMORY_OPTIMIZED_VALUE
public static final int MEMORY_OPTIMIZED_VALUEMEMORY_OPTIMIZED = 281753417;- See Also:
-
MEMORY_OPTIMIZED_M3_VALUE
public static final int MEMORY_OPTIMIZED_M3_VALUEMEMORY_OPTIMIZED_M3 = 276301372;- See Also:
-
MEMORY_OPTIMIZED_M4_VALUE
public static final int MEMORY_OPTIMIZED_M4_VALUEMEMORY_OPTIMIZED_M4 = 276301373;- See Also:
-
MEMORY_OPTIMIZED_M4_6TB_VALUE
public static final int MEMORY_OPTIMIZED_M4_6TB_VALUEMEMORY_OPTIMIZED_M4_6TB = 210543650;- See Also:
-
MEMORY_OPTIMIZED_X4_1440_24T_VALUE
public static final int MEMORY_OPTIMIZED_X4_1440_24T_VALUECUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
MEMORY_OPTIMIZED_X4_1440_24T = 206669823;- See Also:
-
MEMORY_OPTIMIZED_X4_16TB_VALUE
public static final int MEMORY_OPTIMIZED_X4_16TB_VALUEMEMORY_OPTIMIZED_X4_16TB = 183089120;- See Also:
-
MEMORY_OPTIMIZED_X4_1920_32T_VALUE
public static final int MEMORY_OPTIMIZED_X4_1920_32T_VALUECUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
MEMORY_OPTIMIZED_X4_1920_32T = 291963529;- See Also:
-
MEMORY_OPTIMIZED_X4_24TB_VALUE
public static final int MEMORY_OPTIMIZED_X4_24TB_VALUEMEMORY_OPTIMIZED_X4_24TB = 183116989;- See Also:
-
MEMORY_OPTIMIZED_X4_32TB_VALUE
public static final int MEMORY_OPTIMIZED_X4_32TB_VALUEMEMORY_OPTIMIZED_X4_32TB = 183144858;- See Also:
-
MEMORY_OPTIMIZED_X4_480_6T_VALUE
public static final int MEMORY_OPTIMIZED_X4_480_6T_VALUECUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
MEMORY_OPTIMIZED_X4_480_6T = 478547742;- See Also:
-
MEMORY_OPTIMIZED_X4_480_8T_VALUE
public static final int MEMORY_OPTIMIZED_X4_480_8T_VALUECUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
MEMORY_OPTIMIZED_X4_480_8T = 478547804;- See Also:
-
MEMORY_OPTIMIZED_X4_960_12T_VALUE
public static final int MEMORY_OPTIMIZED_X4_960_12T_VALUECUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
MEMORY_OPTIMIZED_X4_960_12T = 424752410;- See Also:
-
MEMORY_OPTIMIZED_X4_960_16T_VALUE
public static final int MEMORY_OPTIMIZED_X4_960_16T_VALUECUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
MEMORY_OPTIMIZED_X4_960_16T = 424752534;- See Also:
-
STORAGE_OPTIMIZED_Z3_VALUE
public static final int STORAGE_OPTIMIZED_Z3_VALUESTORAGE_OPTIMIZED_Z3 = 316796085;- See Also:
-
TYPE_UNSPECIFIED_VALUE
public static final int TYPE_UNSPECIFIED_VALUENote for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
TYPE_UNSPECIFIED = 437714322;- 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
-