Class Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder (0.1.0)

public static final class Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder extends GeneratedMessage.Builder<Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder> 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

Static Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

public Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder clear()
Returns
Type Description
Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder
Overrides

clearAcceleratorType()

public Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder clearAcceleratorType()

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
Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder

This builder for chaining.

clearHardwareResource()

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

clearPricePerUnit()

public Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder clearPricePerUnit()

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
Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder

clearPriceStructure()

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

clearUnit()

public Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder clearUnit()

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
Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder

This builder for chaining.

clearUsageCalculation()

public Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder clearUsageCalculation()

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.Builder

This builder for chaining.

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHardwareResourceCase()

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

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.

getPricePerUnitBuilder()

public Money.Builder getPricePerUnitBuilder()

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.Builder

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Sku.SkuPrice.AiPlatformDeployedModelUsageFee other)

public Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder mergeFrom(Sku.SkuPrice.AiPlatformDeployedModelUsageFee other)
Parameter
Name Description
other Sku.SkuPrice.AiPlatformDeployedModelUsageFee
Returns
Type Description
Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder
Overrides

mergePricePerUnit(Money value)

public Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder mergePricePerUnit(Money value)

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];

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder

setAcceleratorType(String value)

public Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder setAcceleratorType(String value)

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];

Parameter
Name Description
value String

The acceleratorType to set.

Returns
Type Description
Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder

This builder for chaining.

setAcceleratorTypeBytes(ByteString value)

public Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder setAcceleratorTypeBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for acceleratorType to set.

Returns
Type Description
Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder

This builder for chaining.

setPricePerUnit(Money value)

public Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder setPricePerUnit(Money value)

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];

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder

setPricePerUnit(Money.Builder builderForValue)

public Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder setPricePerUnit(Money.Builder builderForValue)

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];

Parameter
Name Description
builderForValue com.google.type.Money.Builder
Returns
Type Description
Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder

setUnit(String value)

public Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder setUnit(String value)

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];

Parameter
Name Description
value String

The unit to set.

Returns
Type Description
Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder

This builder for chaining.

setUnitBytes(ByteString value)

public Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder setUnitBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for unit to set.

Returns
Type Description
Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder

This builder for chaining.

setUsageCalculation(Sku.SkuPrice.AiPlatformDeployedModelUsageFee.UsageCalculation value)

public Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder setUsageCalculation(Sku.SkuPrice.AiPlatformDeployedModelUsageFee.UsageCalculation value)

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];

Parameter
Name Description
value Sku.SkuPrice.AiPlatformDeployedModelUsageFee.UsageCalculation

The usageCalculation to set.

Returns
Type Description
Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder

This builder for chaining.

setUsageCalculationValue(int value)

public Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder setUsageCalculationValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for usageCalculation to set.

Returns
Type Description
Sku.SkuPrice.AiPlatformDeployedModelUsageFee.Builder

This builder for chaining.