public static enum Commitment.Category extends Enum<Commitment.Category> implements com.google.protobuf.ProtocolMessageEnum
The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified.Protobuf enum
google.cloud.compute.v1.Commitment.Category| Enum Constant and Description |
|---|
CATEGORY_UNSPECIFIED
CATEGORY_UNSPECIFIED = 509189462; |
LICENSE
LICENSE = 347869217; |
MACHINE
MACHINE = 469553191; |
UNDEFINED_CATEGORY
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
CATEGORY_UNSPECIFIED_VALUE
CATEGORY_UNSPECIFIED = 509189462; |
static int |
LICENSE_VALUE
LICENSE = 347869217; |
static int |
MACHINE_VALUE
MACHINE = 469553191; |
static int |
UNDEFINED_CATEGORY_VALUE
A value indicating that the enum field is not set.
|
| Modifier and Type | Method and Description |
|---|---|
static Commitment.Category |
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.Category> |
internalGetValueMap() |
static Commitment.Category |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Commitment.Category |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Commitment.Category |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Commitment.Category[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Commitment.Category UNDEFINED_CATEGORY
A value indicating that the enum field is not set.
UNDEFINED_CATEGORY = 0;public static final Commitment.Category CATEGORY_UNSPECIFIED
CATEGORY_UNSPECIFIED = 509189462;public static final Commitment.Category LICENSE
LICENSE = 347869217;public static final Commitment.Category MACHINE
MACHINE = 469553191;public static final Commitment.Category UNRECOGNIZED
public static final int UNDEFINED_CATEGORY_VALUE
A value indicating that the enum field is not set.
UNDEFINED_CATEGORY = 0;public static final int CATEGORY_UNSPECIFIED_VALUE
CATEGORY_UNSPECIFIED = 509189462;public static final int LICENSE_VALUE
LICENSE = 347869217;public static final int MACHINE_VALUE
MACHINE = 469553191;public static Commitment.Category[] values()
for (Commitment.Category c : Commitment.Category.values()) System.out.println(c);
public static Commitment.Category 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.Category valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Commitment.Category forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Commitment.Category> 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.Category valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.