public static enum AllocationAggregateReservation.WorkloadType extends Enum<AllocationAggregateReservation.WorkloadType> implements com.google.protobuf.ProtocolMessageEnum
The workload type of the instances that will target this reservation.Protobuf enum
google.cloud.compute.v1.AllocationAggregateReservation.WorkloadType| Enum Constant and Description |
|---|
BATCH
Reserved resources will be optimized for BATCH workloads, such as ML training.
|
SERVING
Reserved resources will be optimized for SERVING workloads, such as ML inference.
|
UNDEFINED_WORKLOAD_TYPE
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
UNSPECIFIED
UNSPECIFIED = 526786327; |
| Modifier and Type | Field and Description |
|---|---|
static int |
BATCH_VALUE
Reserved resources will be optimized for BATCH workloads, such as ML training.
|
static int |
SERVING_VALUE
Reserved resources will be optimized for SERVING workloads, such as ML inference.
|
static int |
UNDEFINED_WORKLOAD_TYPE_VALUE
A value indicating that the enum field is not set.
|
static int |
UNSPECIFIED_VALUE
UNSPECIFIED = 526786327; |
| Modifier and Type | Method and Description |
|---|---|
static AllocationAggregateReservation.WorkloadType |
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<AllocationAggregateReservation.WorkloadType> |
internalGetValueMap() |
static AllocationAggregateReservation.WorkloadType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static AllocationAggregateReservation.WorkloadType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static AllocationAggregateReservation.WorkloadType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AllocationAggregateReservation.WorkloadType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AllocationAggregateReservation.WorkloadType UNDEFINED_WORKLOAD_TYPE
A value indicating that the enum field is not set.
UNDEFINED_WORKLOAD_TYPE = 0;public static final AllocationAggregateReservation.WorkloadType BATCH
Reserved resources will be optimized for BATCH workloads, such as ML training.
BATCH = 62971674;public static final AllocationAggregateReservation.WorkloadType SERVING
Reserved resources will be optimized for SERVING workloads, such as ML inference.
SERVING = 17781740;public static final AllocationAggregateReservation.WorkloadType UNSPECIFIED
UNSPECIFIED = 526786327;public static final AllocationAggregateReservation.WorkloadType UNRECOGNIZED
public static final int UNDEFINED_WORKLOAD_TYPE_VALUE
A value indicating that the enum field is not set.
UNDEFINED_WORKLOAD_TYPE = 0;public static final int BATCH_VALUE
Reserved resources will be optimized for BATCH workloads, such as ML training.
BATCH = 62971674;public static final int SERVING_VALUE
Reserved resources will be optimized for SERVING workloads, such as ML inference.
SERVING = 17781740;public static final int UNSPECIFIED_VALUE
UNSPECIFIED = 526786327;public static AllocationAggregateReservation.WorkloadType[] values()
for (AllocationAggregateReservation.WorkloadType c : AllocationAggregateReservation.WorkloadType.values()) System.out.println(c);
public static AllocationAggregateReservation.WorkloadType 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 AllocationAggregateReservation.WorkloadType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static AllocationAggregateReservation.WorkloadType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<AllocationAggregateReservation.WorkloadType> 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 AllocationAggregateReservation.WorkloadType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.