Enum GenerateContentResponse.UsageMetadata.TrafficType (3.88.0)

public enum GenerateContentResponse.UsageMetadata.TrafficType extends Enum<GenerateContentResponse.UsageMetadata.TrafficType> implements ProtocolMessageEnum

The type of traffic that this request was processed with, indicating which quota is consumed.

Protobuf enum google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata.TrafficType

Implements

ProtocolMessageEnum

Static Fields

Name Description
ON_DEMAND

The request was processed using Pay-As-You-Go quota.

ON_DEMAND = 1;

ON_DEMAND_FLEX

Type for Flex traffic.

ON_DEMAND_FLEX = 4;

ON_DEMAND_FLEX_VALUE

Type for Flex traffic.

ON_DEMAND_FLEX = 4;

ON_DEMAND_PRIORITY

Type for Priority Pay-As-You-Go traffic.

ON_DEMAND_PRIORITY = 3;

ON_DEMAND_PRIORITY_VALUE

Type for Priority Pay-As-You-Go traffic.

ON_DEMAND_PRIORITY = 3;

ON_DEMAND_VALUE

The request was processed using Pay-As-You-Go quota.

ON_DEMAND = 1;

PROVISIONED_THROUGHPUT

Type for Provisioned Throughput traffic.

PROVISIONED_THROUGHPUT = 2;

PROVISIONED_THROUGHPUT_VALUE

Type for Provisioned Throughput traffic.

PROVISIONED_THROUGHPUT = 2;

TRAFFIC_TYPE_UNSPECIFIED

Unspecified request traffic type.

TRAFFIC_TYPE_UNSPECIFIED = 0;

TRAFFIC_TYPE_UNSPECIFIED_VALUE

Unspecified request traffic type.

TRAFFIC_TYPE_UNSPECIFIED = 0;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()