Google Cloud Ai Platform V1 Client - Class TrafficType (1.52.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class TrafficType.

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

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

Namespace

Google \ Cloud \ AIPlatform \ V1 \ GenerateContentResponse \ UsageMetadata

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

TRAFFIC_TYPE_UNSPECIFIED

Value: 0

Unspecified request traffic type.

Generated from protobuf enum TRAFFIC_TYPE_UNSPECIFIED = 0;

ON_DEMAND

Value: 1

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

Generated from protobuf enum ON_DEMAND = 1;

ON_DEMAND_PRIORITY

Value: 3

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

Generated from protobuf enum ON_DEMAND_PRIORITY = 3;

ON_DEMAND_FLEX

Value: 4

Type for Flex traffic.

Generated from protobuf enum ON_DEMAND_FLEX = 4;

PROVISIONED_THROUGHPUT

Value: 2

Type for Provisioned Throughput traffic.

Generated from protobuf enum PROVISIONED_THROUGHPUT = 2;