Google Cloud Commerce Producer V1beta Client - Class AiPlatformDeployedModelUsageFee (0.2.0)

Reference documentation and code samples for the Google Cloud Commerce Producer V1beta Client class AiPlatformDeployedModelUsageFee.

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

Generated from protobuf message google.cloud.commerceproducer.v1beta.Sku.SkuPrice.AiPlatformDeployedModelUsageFee

Namespace

Google \ Cloud \ CommerceProducer \ V1beta \ Sku \ SkuPrice

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ accelerator_type string

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.

↳ price_per_unit Google\Type\Money

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.

↳ unit string

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.

↳ usage_calculation int

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

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.

Returns
Type Description
string

hasAcceleratorType

setAcceleratorType

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.

Parameter
Name Description
var string
Returns
Type Description
$this

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.

Returns
Type Description
Google\Type\Money|null

hasPricePerUnit

setPricePerUnit

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.

Parameter
Name Description
var Google\Type\Money
Returns
Type Description
$this

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.

Returns
Type Description
string

setUnit

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.

Parameter
Name Description
var string
Returns
Type Description
$this

getUsageCalculation

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

Returns
Type Description
int Enum of type UsageCalculation.

setUsageCalculation

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

Parameter
Name Description
var int

Enum of type UsageCalculation.

Returns
Type Description
$this

getHardwareResource

Returns
Type Description
string

getPriceStructure

Returns
Type Description
string