Class Sku.SkuPrice.AiPlatformManagedModelUsageFee (0.1.0)

public static final class Sku.SkuPrice.AiPlatformManagedModelUsageFee extends GeneratedMessage implements Sku.SkuPrice.AiPlatformManagedModelUsageFeeOrBuilder

Details about a SKU pricing usage of an AI Platform Managed Model (MaaS).

Protobuf type google.cloud.commerceproducer.v1beta.Sku.SkuPrice.AiPlatformManagedModelUsageFee

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > Sku.SkuPrice.AiPlatformManagedModelUsageFee

Static Fields

COMBINED_REQUEST_INPUT_TOKENS_RANGE_FIELD_NUMBER

public static final int COMBINED_REQUEST_INPUT_TOKENS_RANGE_FIELD_NUMBER
Field Value
Type Description
int

LOCATION_FIELD_NUMBER

public static final int LOCATION_FIELD_NUMBER
Field Value
Type Description
int

PREDICTION_MODE_FIELD_NUMBER

public static final int PREDICTION_MODE_FIELD_NUMBER
Field Value
Type Description
int

PROVISIONED_THROUGHPUT_OVERAGE_FIELD_NUMBER

public static final int PROVISIONED_THROUGHPUT_OVERAGE_FIELD_NUMBER
Field Value
Type Description
int

TIERED_PRICE_FIELD_NUMBER

public static final int TIERED_PRICE_FIELD_NUMBER
Field Value
Type Description
int

USAGE_METRIC_FIELD_NUMBER

public static final int USAGE_METRIC_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Sku.SkuPrice.AiPlatformManagedModelUsageFee getDefaultInstance()
Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Sku.SkuPrice.AiPlatformManagedModelUsageFee.Builder newBuilder()
Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee.Builder

newBuilder(Sku.SkuPrice.AiPlatformManagedModelUsageFee prototype)

public static Sku.SkuPrice.AiPlatformManagedModelUsageFee.Builder newBuilder(Sku.SkuPrice.AiPlatformManagedModelUsageFee prototype)
Parameter
Name Description
prototype Sku.SkuPrice.AiPlatformManagedModelUsageFee
Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee.Builder

parseDelimitedFrom(InputStream input)

public static Sku.SkuPrice.AiPlatformManagedModelUsageFee parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Sku.SkuPrice.AiPlatformManagedModelUsageFee parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Sku.SkuPrice.AiPlatformManagedModelUsageFee parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Sku.SkuPrice.AiPlatformManagedModelUsageFee parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Sku.SkuPrice.AiPlatformManagedModelUsageFee parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Sku.SkuPrice.AiPlatformManagedModelUsageFee parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Sku.SkuPrice.AiPlatformManagedModelUsageFee parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Sku.SkuPrice.AiPlatformManagedModelUsageFee parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Sku.SkuPrice.AiPlatformManagedModelUsageFee parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Sku.SkuPrice.AiPlatformManagedModelUsageFee parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Sku.SkuPrice.AiPlatformManagedModelUsageFee parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Sku.SkuPrice.AiPlatformManagedModelUsageFee parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Sku.SkuPrice.AiPlatformManagedModelUsageFee> parser()
Returns
Type Description
Parser<AiPlatformManagedModelUsageFee>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCombinedRequestInputTokensRange()

public Sku.SkuPrice.AiPlatformManagedModelUsageFee.CombinedRequestInputTokensRange getCombinedRequestInputTokensRange()

Output only. The range of aggregated input token values covered by the SKU. Unset if the SKU is not scoped to a particular range. A request is in scope for this SKU if its aggregated input token value falls within the range. The collection of SKUs in effect at any given time scoped to a particular aggregated input token value range will cover all possible values without overlap. Such a collection of SKUs form a "tiered" price structure over the possible value, with each SKU acting as a "tier".

NOTE: This is distinct from a SKU with tiered pricing.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.AiPlatformManagedModelUsageFee.CombinedRequestInputTokensRange combined_request_input_tokens_range = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee.CombinedRequestInputTokensRange

The combinedRequestInputTokensRange.

getCombinedRequestInputTokensRangeOrBuilder()

public Sku.SkuPrice.AiPlatformManagedModelUsageFee.CombinedRequestInputTokensRangeOrBuilder getCombinedRequestInputTokensRangeOrBuilder()

Output only. The range of aggregated input token values covered by the SKU. Unset if the SKU is not scoped to a particular range. A request is in scope for this SKU if its aggregated input token value falls within the range. The collection of SKUs in effect at any given time scoped to a particular aggregated input token value range will cover all possible values without overlap. Such a collection of SKUs form a "tiered" price structure over the possible value, with each SKU acting as a "tier".

NOTE: This is distinct from a SKU with tiered pricing.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.AiPlatformManagedModelUsageFee.CombinedRequestInputTokensRange combined_request_input_tokens_range = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee.CombinedRequestInputTokensRangeOrBuilder

getDefaultInstanceForType()

public Sku.SkuPrice.AiPlatformManagedModelUsageFee getDefaultInstanceForType()
Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee

getLocation()

public Sku.SkuPrice.AiPlatformManagedModelEndpointLocation getLocation()

Output only. The model endpoint location where usage is priced by this SKU. If no location is specified, the SKU applies to usage in all locations.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.AiPlatformManagedModelEndpointLocation location = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelEndpointLocation

The location.

getLocationOrBuilder()

public Sku.SkuPrice.AiPlatformManagedModelEndpointLocationOrBuilder getLocationOrBuilder()

Output only. The model endpoint location where usage is priced by this SKU. If no location is specified, the SKU applies to usage in all locations.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.AiPlatformManagedModelEndpointLocation location = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelEndpointLocationOrBuilder

getParserForType()

public Parser<Sku.SkuPrice.AiPlatformManagedModelUsageFee> getParserForType()
Returns
Type Description
Parser<AiPlatformManagedModelUsageFee>
Overrides

getPredictionMode()

public Sku.SkuPrice.AiPlatformManagedModelUsageFee.PredictionMode getPredictionMode()

Output only. The prediction mode of requests that the SKU applies to.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.AiPlatformManagedModelUsageFee.PredictionMode prediction_mode = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee.PredictionMode

The predictionMode.

getPredictionModeValue()

public int getPredictionModeValue()

Output only. The prediction mode of requests that the SKU applies to.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.AiPlatformManagedModelUsageFee.PredictionMode prediction_mode = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for predictionMode.

getPriceStructureCase()

public Sku.SkuPrice.AiPlatformManagedModelUsageFee.PriceStructureCase getPriceStructureCase()
Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee.PriceStructureCase

getProvisionedThroughputOverage()

public Sku.SkuPrice.AiPlatformManagedModelUsageFee.ProvisionedThroughputOverage getProvisionedThroughputOverage()

Output only. Set when the SKU is a historical provisioned throughput overage SKU. Starting 2025-08-26 such SKUs have no effect, and usage in excess of provisioned throughput quota is now metered as standard usage. This field is set only in historical SKU timeline entries for overage SKUs belonging to partners that offered provisioned throughput for AI Platform managed model products prior to the unification of standard usage and provisioned throughput overage metering.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.AiPlatformManagedModelUsageFee.ProvisionedThroughputOverage provisioned_throughput_overage = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee.ProvisionedThroughputOverage

The provisionedThroughputOverage.

getProvisionedThroughputOverageOrBuilder()

public Sku.SkuPrice.AiPlatformManagedModelUsageFee.ProvisionedThroughputOverageOrBuilder getProvisionedThroughputOverageOrBuilder()

Output only. Set when the SKU is a historical provisioned throughput overage SKU. Starting 2025-08-26 such SKUs have no effect, and usage in excess of provisioned throughput quota is now metered as standard usage. This field is set only in historical SKU timeline entries for overage SKUs belonging to partners that offered provisioned throughput for AI Platform managed model products prior to the unification of standard usage and provisioned throughput overage metering.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.AiPlatformManagedModelUsageFee.ProvisionedThroughputOverage provisioned_throughput_overage = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee.ProvisionedThroughputOverageOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTieredPrice()

public Sku.SkuPrice.TieredPrice getTieredPrice()

Output only. Tiered pricing of the SKU.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice tiered_price = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.TieredPrice

The tieredPrice.

getTieredPriceOrBuilder()

public Sku.SkuPrice.TieredPriceOrBuilder getTieredPriceOrBuilder()

Output only. Tiered pricing of the SKU.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice tiered_price = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.TieredPriceOrBuilder

getUsageMetric()

public Sku.SkuPrice.AiPlatformManagedModelUsageFee.AiPlatformManagedModelUsageMetric getUsageMetric()

Output only. The usage metric that the SKU applies to.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.AiPlatformManagedModelUsageFee.AiPlatformManagedModelUsageMetric usage_metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee.AiPlatformManagedModelUsageMetric

The usageMetric.

getUsageMetricOrBuilder()

public Sku.SkuPrice.AiPlatformManagedModelUsageFee.AiPlatformManagedModelUsageMetricOrBuilder getUsageMetricOrBuilder()

Output only. The usage metric that the SKU applies to.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.AiPlatformManagedModelUsageFee.AiPlatformManagedModelUsageMetric usage_metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee.AiPlatformManagedModelUsageMetricOrBuilder

hasCombinedRequestInputTokensRange()

public boolean hasCombinedRequestInputTokensRange()

Output only. The range of aggregated input token values covered by the SKU. Unset if the SKU is not scoped to a particular range. A request is in scope for this SKU if its aggregated input token value falls within the range. The collection of SKUs in effect at any given time scoped to a particular aggregated input token value range will cover all possible values without overlap. Such a collection of SKUs form a "tiered" price structure over the possible value, with each SKU acting as a "tier".

NOTE: This is distinct from a SKU with tiered pricing.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.AiPlatformManagedModelUsageFee.CombinedRequestInputTokensRange combined_request_input_tokens_range = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the combinedRequestInputTokensRange field is set.

hasLocation()

public boolean hasLocation()

Output only. The model endpoint location where usage is priced by this SKU. If no location is specified, the SKU applies to usage in all locations.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.AiPlatformManagedModelEndpointLocation location = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the location field is set.

hasProvisionedThroughputOverage()

public boolean hasProvisionedThroughputOverage()

Output only. Set when the SKU is a historical provisioned throughput overage SKU. Starting 2025-08-26 such SKUs have no effect, and usage in excess of provisioned throughput quota is now metered as standard usage. This field is set only in historical SKU timeline entries for overage SKUs belonging to partners that offered provisioned throughput for AI Platform managed model products prior to the unification of standard usage and provisioned throughput overage metering.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.AiPlatformManagedModelUsageFee.ProvisionedThroughputOverage provisioned_throughput_overage = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the provisionedThroughputOverage field is set.

hasTieredPrice()

public boolean hasTieredPrice()

Output only. Tiered pricing of the SKU.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice tiered_price = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the tieredPrice field is set.

hasUsageMetric()

public boolean hasUsageMetric()

Output only. The usage metric that the SKU applies to.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.AiPlatformManagedModelUsageFee.AiPlatformManagedModelUsageMetric usage_metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the usageMetric field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Sku.SkuPrice.AiPlatformManagedModelUsageFee.Builder newBuilderForType()
Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Sku.SkuPrice.AiPlatformManagedModelUsageFee.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee.Builder
Overrides

toBuilder()

public Sku.SkuPrice.AiPlatformManagedModelUsageFee.Builder toBuilder()
Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelUsageFee.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException