public static enum UsageMetadata.TrafficType extends Enum<UsageMetadata.TrafficType> implements com.google.protobuf.ProtocolMessageEnum
The type of traffic that this request was processed with, indicating which quota gets consumed.Protobuf enum
google.cloud.aiplatform.v1.UsageMetadata.TrafficType| Enum Constant and Description |
|---|
ON_DEMAND
Type for Pay-As-You-Go traffic.
|
PROVISIONED_THROUGHPUT
Type for Provisioned Throughput traffic.
|
TRAFFIC_TYPE_UNSPECIFIED
Unspecified request traffic type.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ON_DEMAND_VALUE
Type for Pay-As-You-Go traffic.
|
static int |
PROVISIONED_THROUGHPUT_VALUE
Type for Provisioned Throughput traffic.
|
static int |
TRAFFIC_TYPE_UNSPECIFIED_VALUE
Unspecified request traffic type.
|
| Modifier and Type | Method and Description |
|---|---|
static UsageMetadata.TrafficType |
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<UsageMetadata.TrafficType> |
internalGetValueMap() |
static UsageMetadata.TrafficType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static UsageMetadata.TrafficType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static UsageMetadata.TrafficType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UsageMetadata.TrafficType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UsageMetadata.TrafficType TRAFFIC_TYPE_UNSPECIFIED
Unspecified request traffic type.
TRAFFIC_TYPE_UNSPECIFIED = 0;public static final UsageMetadata.TrafficType ON_DEMAND
Type for Pay-As-You-Go traffic.
ON_DEMAND = 1;public static final UsageMetadata.TrafficType PROVISIONED_THROUGHPUT
Type for Provisioned Throughput traffic.
PROVISIONED_THROUGHPUT = 2;public static final UsageMetadata.TrafficType UNRECOGNIZED
public static final int TRAFFIC_TYPE_UNSPECIFIED_VALUE
Unspecified request traffic type.
TRAFFIC_TYPE_UNSPECIFIED = 0;public static final int ON_DEMAND_VALUE
Type for Pay-As-You-Go traffic.
ON_DEMAND = 1;public static final int PROVISIONED_THROUGHPUT_VALUE
Type for Provisioned Throughput traffic.
PROVISIONED_THROUGHPUT = 2;public static UsageMetadata.TrafficType[] values()
for (UsageMetadata.TrafficType c : UsageMetadata.TrafficType.values()) System.out.println(c);
public static UsageMetadata.TrafficType 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 UsageMetadata.TrafficType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static UsageMetadata.TrafficType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<UsageMetadata.TrafficType> 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static UsageMetadata.TrafficType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2026 Google LLC. All rights reserved.