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 enum
google.cloud.compute.v1.Commitment.Type| Enum Constant and Description |
|---|
ACCELERATOR_OPTIMIZED
ACCELERATOR_OPTIMIZED = 280848403; |
COMPUTE_OPTIMIZED
COMPUTE_OPTIMIZED = 158349023; |
COMPUTE_OPTIMIZED_C2D
COMPUTE_OPTIMIZED_C2D = 383246453; |
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; |
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 |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACCELERATOR_OPTIMIZED_VALUE
ACCELERATOR_OPTIMIZED = 280848403; |
static int |
COMPUTE_OPTIMIZED_C2D_VALUE
COMPUTE_OPTIMIZED_C2D = 383246453; |
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 |
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.
|
| Modifier and Type | Method and 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(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Commitment.Type |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
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.
|
public static final Commitment.Type UNDEFINED_TYPE
A value indicating that the enum field is not set.
UNDEFINED_TYPE = 0;public static final Commitment.Type ACCELERATOR_OPTIMIZED
ACCELERATOR_OPTIMIZED = 280848403;public static final Commitment.Type COMPUTE_OPTIMIZED
COMPUTE_OPTIMIZED = 158349023;public static final Commitment.Type COMPUTE_OPTIMIZED_C2D
COMPUTE_OPTIMIZED_C2D = 383246453;public static final Commitment.Type GENERAL_PURPOSE
GENERAL_PURPOSE = 299793543;public static final Commitment.Type GENERAL_PURPOSE_E2
GENERAL_PURPOSE_E2 = 301911877;public static final Commitment.Type GENERAL_PURPOSE_N2
GENERAL_PURPOSE_N2 = 301912156;public static final Commitment.Type GENERAL_PURPOSE_N2D
GENERAL_PURPOSE_N2D = 232471400;public static final Commitment.Type GENERAL_PURPOSE_T2D
GENERAL_PURPOSE_T2D = 232477166;public static final Commitment.Type MEMORY_OPTIMIZED
MEMORY_OPTIMIZED = 281753417;public static final Commitment.Type MEMORY_OPTIMIZED_M3
MEMORY_OPTIMIZED_M3 = 276301372;public static final Commitment.Type TYPE_UNSPECIFIED
TYPE_UNSPECIFIED = 437714322;public static final Commitment.Type UNRECOGNIZED
public static final int UNDEFINED_TYPE_VALUE
A value indicating that the enum field is not set.
UNDEFINED_TYPE = 0;public static final int ACCELERATOR_OPTIMIZED_VALUE
ACCELERATOR_OPTIMIZED = 280848403;public static final int COMPUTE_OPTIMIZED_VALUE
COMPUTE_OPTIMIZED = 158349023;public static final int COMPUTE_OPTIMIZED_C2D_VALUE
COMPUTE_OPTIMIZED_C2D = 383246453;public static final int GENERAL_PURPOSE_VALUE
GENERAL_PURPOSE = 299793543;public static final int GENERAL_PURPOSE_E2_VALUE
GENERAL_PURPOSE_E2 = 301911877;public static final int GENERAL_PURPOSE_N2_VALUE
GENERAL_PURPOSE_N2 = 301912156;public static final int GENERAL_PURPOSE_N2D_VALUE
GENERAL_PURPOSE_N2D = 232471400;public static final int GENERAL_PURPOSE_T2D_VALUE
GENERAL_PURPOSE_T2D = 232477166;public static final int MEMORY_OPTIMIZED_VALUE
MEMORY_OPTIMIZED = 281753417;public static final int MEMORY_OPTIMIZED_M3_VALUE
MEMORY_OPTIMIZED_M3 = 276301372;public static final int TYPE_UNSPECIFIED_VALUE
TYPE_UNSPECIFIED = 437714322;public static Commitment.Type[] values()
for (Commitment.Type c : Commitment.Type.values()) System.out.println(c);
public static Commitment.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Commitment.Type valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Commitment.Type forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Commitment.Type> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Commitment.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.