Class Sku.SkuPrice.AiPlatformDeployedModelUsageFee (0.1.0)

public static final class Sku.SkuPrice.AiPlatformDeployedModelUsageFee extends GeneratedMessage implements Sku.SkuPrice.AiPlatformDeployedModelUsageFeeOrBuilder

Details about a SKU pricing usage of an AI Platform Self Deployed Model.

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

Inheritance

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

Static Fields

ACCELERATOR_TYPE_FIELD_NUMBER

public static final int ACCELERATOR_TYPE_FIELD_NUMBER
Field Value
Type Description
int

PRICE_PER_UNIT_FIELD_NUMBER

public static final int PRICE_PER_UNIT_FIELD_NUMBER
Field Value
Type Description
int

UNIT_FIELD_NUMBER

public static final int UNIT_FIELD_NUMBER
Field Value
Type Description
int

USAGE_CALCULATION_FIELD_NUMBER

public static final int USAGE_CALCULATION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(Sku.SkuPrice.AiPlatformDeployedModelUsageFee prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAcceleratorType()

public String getAcceleratorType()

Output only. The SKU applies to a specific accelerator type. Contains the name of the matching AI Platform AcceleratorType. The corresponding linear scaling value is the dimensionless accelerator_count.

string accelerator_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The acceleratorType.

getAcceleratorTypeBytes()

public ByteString getAcceleratorTypeBytes()

Output only. The SKU applies to a specific accelerator type. Contains the name of the matching AI Platform AcceleratorType. The corresponding linear scaling value is the dimensionless accelerator_count.

string accelerator_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for acceleratorType.

getDefaultInstanceForType()

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

getHardwareResourceCase()

public Sku.SkuPrice.AiPlatformDeployedModelUsageFee.HardwareResourceCase getHardwareResourceCase()
Returns
Type Description
Sku.SkuPrice.AiPlatformDeployedModelUsageFee.HardwareResourceCase

getParserForType()

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

getPricePerUnit()

public Money getPricePerUnit()

Output only. The price per unit of usage. The customer's usage charge is computed by measuring the customer's consumption denominated in price units and multiplying by this price.

.google.type.Money price_per_unit = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Money

The pricePerUnit.

getPricePerUnitOrBuilder()

public MoneyOrBuilder getPricePerUnitOrBuilder()

Output only. The price per unit of usage. The customer's usage charge is computed by measuring the customer's consumption denominated in price units and multiplying by this price.

.google.type.Money price_per_unit = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.MoneyOrBuilder

getPriceStructureCase()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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. Currently the unit is always hours ('h'). This may change in future.

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. Currently the unit is always hours ('h'). This may change in future.

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

Returns
Type Description
ByteString

The bytes for unit.

getUsageCalculation()

public Sku.SkuPrice.AiPlatformDeployedModelUsageFee.UsageCalculation getUsageCalculation()

Output only. Determines how the customer's usage is calculated.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.AiPlatformDeployedModelUsageFee.UsageCalculation usage_calculation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.AiPlatformDeployedModelUsageFee.UsageCalculation

The usageCalculation.

getUsageCalculationValue()

public int getUsageCalculationValue()

Output only. Determines how the customer's usage is calculated.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.AiPlatformDeployedModelUsageFee.UsageCalculation usage_calculation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for usageCalculation.

hasAcceleratorType()

public boolean hasAcceleratorType()

Output only. The SKU applies to a specific accelerator type. Contains the name of the matching AI Platform AcceleratorType. The corresponding linear scaling value is the dimensionless accelerator_count.

string accelerator_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the acceleratorType field is set.

hasPricePerUnit()

public boolean hasPricePerUnit()

Output only. The price per unit of usage. The customer's usage charge is computed by measuring the customer's consumption denominated in price units and multiplying by this price.

.google.type.Money price_per_unit = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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