public static enum ResourceCommitment.Type extends Enum<ResourceCommitment.Type> implements com.google.protobuf.ProtocolMessageEnum
Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.Protobuf enum
google.cloud.compute.v1.ResourceCommitment.Type| Enum Constant and Description |
|---|
ACCELERATOR
ACCELERATOR = 429815371; |
LOCAL_SSD
LOCAL_SSD = 508934896; |
MEMORY
MEMORY = 123056385; |
UNDEFINED_TYPE
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
UNSPECIFIED
UNSPECIFIED = 526786327; |
VCPU
VCPU = 2628978; |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACCELERATOR_VALUE
ACCELERATOR = 429815371; |
static int |
LOCAL_SSD_VALUE
LOCAL_SSD = 508934896; |
static int |
MEMORY_VALUE
MEMORY = 123056385; |
static int |
UNDEFINED_TYPE_VALUE
A value indicating that the enum field is not set.
|
static int |
UNSPECIFIED_VALUE
UNSPECIFIED = 526786327; |
static int |
VCPU_VALUE
VCPU = 2628978; |
| Modifier and Type | Method and Description |
|---|---|
static ResourceCommitment.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<ResourceCommitment.Type> |
internalGetValueMap() |
static ResourceCommitment.Type |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ResourceCommitment.Type |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ResourceCommitment.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResourceCommitment.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResourceCommitment.Type UNDEFINED_TYPE
A value indicating that the enum field is not set.
UNDEFINED_TYPE = 0;public static final ResourceCommitment.Type ACCELERATOR
ACCELERATOR = 429815371;public static final ResourceCommitment.Type LOCAL_SSD
LOCAL_SSD = 508934896;public static final ResourceCommitment.Type MEMORY
MEMORY = 123056385;public static final ResourceCommitment.Type UNSPECIFIED
UNSPECIFIED = 526786327;public static final ResourceCommitment.Type VCPU
VCPU = 2628978;public static final ResourceCommitment.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_VALUE
ACCELERATOR = 429815371;public static final int LOCAL_SSD_VALUE
LOCAL_SSD = 508934896;public static final int MEMORY_VALUE
MEMORY = 123056385;public static final int UNSPECIFIED_VALUE
UNSPECIFIED = 526786327;public static final int VCPU_VALUE
VCPU = 2628978;public static ResourceCommitment.Type[] values()
for (ResourceCommitment.Type c : ResourceCommitment.Type.values()) System.out.println(c);
public static ResourceCommitment.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 ResourceCommitment.Type valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static ResourceCommitment.Type forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ResourceCommitment.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 ResourceCommitment.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.