Class Sku.SkuPrice.AiPlatformProvisionedThroughputFee (0.1.0)

public static final class Sku.SkuPrice.AiPlatformProvisionedThroughputFee extends GeneratedMessage implements Sku.SkuPrice.AiPlatformProvisionedThroughputFeeOrBuilder

Details about a SKU pricing reservation of AI Platform Provisioned Throughput.

Customers may purchase provisioned throughput reservations for AI Platform managed model products. This provides the customer with provisioned throughput quota for a particular model and location. Model usage below the provisioned throughput quota threshold is voided and is not charged by the product's managed model usage fees.

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

Inheritance

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

Static Fields

GSU_PRICE_PER_UNIT_FIELD_NUMBER

public static final int GSU_PRICE_PER_UNIT_FIELD_NUMBER
Field Value
Type Description
int

LOCATION_FIELD_NUMBER

public static final int LOCATION_FIELD_NUMBER
Field Value
Type Description
int

TERM_DURATION_MONTHS_FIELD_NUMBER

public static final int TERM_DURATION_MONTHS_FIELD_NUMBER
Field Value
Type Description
int

UNIT_FIELD_NUMBER

public static final int UNIT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(Sku.SkuPrice.AiPlatformProvisionedThroughputFee prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getGsuPricePerUnit()

public Money getGsuPricePerUnit()

The price per Generative AI Scale Unit (GSU) per unit. A provisioned throughput reservation reserves a certain number of GSUs, and the customer is billed for those GSUs on a continuous basis for the duration of the reservation.

.google.type.Money gsu_price_per_unit = 4;

Returns
Type Description
com.google.type.Money

The gsuPricePerUnit.

getGsuPricePerUnitOrBuilder()

public MoneyOrBuilder getGsuPricePerUnitOrBuilder()

The price per Generative AI Scale Unit (GSU) per unit. A provisioned throughput reservation reserves a certain number of GSUs, and the customer is billed for those GSUs on a continuous basis for the duration of the reservation.

.google.type.Money gsu_price_per_unit = 4;

Returns
Type Description
com.google.type.MoneyOrBuilder

getLocation()

public Sku.SkuPrice.AiPlatformManagedModelEndpointLocation getLocation()

Output only. The location where provisioned throughput is priced by this SKU.

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

Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelEndpointLocation

The location.

getLocationOrBuilder()

public Sku.SkuPrice.AiPlatformManagedModelEndpointLocationOrBuilder getLocationOrBuilder()

Output only. The location where provisioned throughput is priced by this SKU.

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

Returns
Type Description
Sku.SkuPrice.AiPlatformManagedModelEndpointLocationOrBuilder

getParserForType()

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

getPriceStructureCase()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTermCase()

public Sku.SkuPrice.AiPlatformProvisionedThroughputFee.TermCase getTermCase()
Returns
Type Description
Sku.SkuPrice.AiPlatformProvisionedThroughputFee.TermCase

getTermDurationMonths()

public int getTermDurationMonths()

Output only. The duration of the provisioned throughput reservation in months.

int32 term_duration_months = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The termDurationMonths.

getUnit()

public String getUnit()

Output only. The price unit of the SKU. See https://ucum.org/ucum.html for the format of the price unit. Since provisioned throughput reservations are billed by duration, this will always be a time unit. The price unit of a provisioned throughput SKU is not necessarily the same as the reservation term. This field is unrelated to the Generative AI Scale Unit (GSU).

Currently the unit is always months ('mo'). Additional time units may be supported in future.

The customary unit month ('mo') requires special handling to account for the variable duration of months. A price may be denominated in units of months, but the duration the reservation is active is measured in metric time and customers are billed on that basis. The exact hourly or per-second price can be calculated by dividing the monthly price by the number of hours or seconds in the desired month. A reservation active for N months is rarely billed exactly N times the monthly price. This is intended and is not a billing error.

string unit = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The unit.

getUnitBytes()

public ByteString getUnitBytes()

Output only. The price unit of the SKU. See https://ucum.org/ucum.html for the format of the price unit. Since provisioned throughput reservations are billed by duration, this will always be a time unit. The price unit of a provisioned throughput SKU is not necessarily the same as the reservation term. This field is unrelated to the Generative AI Scale Unit (GSU).

Currently the unit is always months ('mo'). Additional time units may be supported in future.

The customary unit month ('mo') requires special handling to account for the variable duration of months. A price may be denominated in units of months, but the duration the reservation is active is measured in metric time and customers are billed on that basis. The exact hourly or per-second price can be calculated by dividing the monthly price by the number of hours or seconds in the desired month. A reservation active for N months is rarely billed exactly N times the monthly price. This is intended and is not a billing error.

string unit = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for unit.

hasGsuPricePerUnit()

public boolean hasGsuPricePerUnit()

The price per Generative AI Scale Unit (GSU) per unit. A provisioned throughput reservation reserves a certain number of GSUs, and the customer is billed for those GSUs on a continuous basis for the duration of the reservation.

.google.type.Money gsu_price_per_unit = 4;

Returns
Type Description
boolean

Whether the gsuPricePerUnit field is set.

hasLocation()

public boolean hasLocation()

Output only. The location where provisioned throughput is priced by this SKU.

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

Returns
Type Description
boolean

Whether the location field is set.

hasTermDurationMonths()

public boolean hasTermDurationMonths()

Output only. The duration of the provisioned throughput reservation in months.

int32 term_duration_months = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the termDurationMonths 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.AiPlatformProvisionedThroughputFee.Builder newBuilderForType()
Returns
Type Description
Sku.SkuPrice.AiPlatformProvisionedThroughputFee.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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