Class Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder (0.1.0)

public static final class Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder extends GeneratedMessage.Builder<Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder> implements Sku.SkuPrice.ComputeEngineLicenseUsageFeeOrBuilder

Details about a SKU pricing usage of a Compute Engine License.

The SKU applies to a single license, and may be further scoped to a Compute Engine VM Instance machine resource type (e.g. "vCPU") and size range for that machine resource. Instances deployed from Compute Engine Images incorporating the target license and (if applicable) matching the machine resource type size range will be charged by the SKU. A single license may be priced by multiple SKUs covering different combinations of machine resource type and size range, allowing a single running instance to be charged by up to one SKU per machine resource type, with pricing tiered according to machine shape.

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

Static Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

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

clearLicenseCode()

public Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder clearLicenseCode()

Output only. The license code of the target Compute Engine License. Note that this is the numeric license code itself in uint64 format used to reference licenses attached to images, not the resource name of the related Compute Engine LicenseCode resource.

Example: "1234567890123456789"

string license_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder

This builder for chaining.

clearMachineResource()

public Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder clearMachineResource()

Output only. The machine resource type that the SKU applies to, if any. SKUs with a non-default value are referred to as "resource-based" SKUs.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResource machine_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder

This builder for chaining.

clearMachineResourceRange()

public Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder clearMachineResourceRange()

Output only. The range of machine resource values that the SKU applies to. Unset when the SKU is not scoped to a particular machine resource type. The collection of SKUs in effect at any given time targeting the same license and machine resource type will cover all possible values for that machine resource type without overlap. Such a collection of SKUs form a "tiered" price structure over the possible values of the machine resource, with each SKU acting as a "tier".

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

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange machine_resource_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder

clearPricePerUnit()

public Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder clearPricePerUnit()

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 = 6;

Returns
Type Description
Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder

clearPriceStructure()

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

clearUnit()

public Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder clearUnit()

Output only. The price unit of the SKU. See https://ucum.org/ucum.html for the format of the price unit. For linear-priced memory SKUs, the price unit is 'GiBy.h'. For all other SKUs, the price unit is 'h'. This includes linear-priced vCPU and GPU SKUs because these resources have unitless dimensions and the application of these scaling factors does not change the price unit.

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

Returns
Type Description
Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder

This builder for chaining.

clearUsageCalculation()

public Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder clearUsageCalculation()

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

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

Returns
Type Description
Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder

This builder for chaining.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getLicenseCode()

public String getLicenseCode()

Output only. The license code of the target Compute Engine License. Note that this is the numeric license code itself in uint64 format used to reference licenses attached to images, not the resource name of the related Compute Engine LicenseCode resource.

Example: "1234567890123456789"

string license_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The licenseCode.

getLicenseCodeBytes()

public ByteString getLicenseCodeBytes()

Output only. The license code of the target Compute Engine License. Note that this is the numeric license code itself in uint64 format used to reference licenses attached to images, not the resource name of the related Compute Engine LicenseCode resource.

Example: "1234567890123456789"

string license_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for licenseCode.

getMachineResource()

public Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResource getMachineResource()

Output only. The machine resource type that the SKU applies to, if any. SKUs with a non-default value are referred to as "resource-based" SKUs.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResource machine_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResource

The machineResource.

getMachineResourceRange()

public Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange getMachineResourceRange()

Output only. The range of machine resource values that the SKU applies to. Unset when the SKU is not scoped to a particular machine resource type. The collection of SKUs in effect at any given time targeting the same license and machine resource type will cover all possible values for that machine resource type without overlap. Such a collection of SKUs form a "tiered" price structure over the possible values of the machine resource, with each SKU acting as a "tier".

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

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange machine_resource_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange

The machineResourceRange.

getMachineResourceRangeBuilder()

public Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange.Builder getMachineResourceRangeBuilder()

Output only. The range of machine resource values that the SKU applies to. Unset when the SKU is not scoped to a particular machine resource type. The collection of SKUs in effect at any given time targeting the same license and machine resource type will cover all possible values for that machine resource type without overlap. Such a collection of SKUs form a "tiered" price structure over the possible values of the machine resource, with each SKU acting as a "tier".

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

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange machine_resource_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange.Builder

getMachineResourceRangeOrBuilder()

public Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRangeOrBuilder getMachineResourceRangeOrBuilder()

Output only. The range of machine resource values that the SKU applies to. Unset when the SKU is not scoped to a particular machine resource type. The collection of SKUs in effect at any given time targeting the same license and machine resource type will cover all possible values for that machine resource type without overlap. Such a collection of SKUs form a "tiered" price structure over the possible values of the machine resource, with each SKU acting as a "tier".

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

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange machine_resource_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRangeOrBuilder

getMachineResourceValue()

public int getMachineResourceValue()

Output only. The machine resource type that the SKU applies to, if any. SKUs with a non-default value are referred to as "resource-based" SKUs.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResource machine_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for machineResource.

getPricePerUnit()

public Money getPricePerUnit()

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 = 6;

Returns
Type Description
com.google.type.Money

The pricePerUnit.

getPricePerUnitBuilder()

public Money.Builder getPricePerUnitBuilder()

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 = 6;

Returns
Type Description
com.google.type.Money.Builder

getPricePerUnitOrBuilder()

public MoneyOrBuilder getPricePerUnitOrBuilder()

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 = 6;

Returns
Type Description
com.google.type.MoneyOrBuilder

getPriceStructureCase()

public Sku.SkuPrice.ComputeEngineLicenseUsageFee.PriceStructureCase getPriceStructureCase()
Returns
Type Description
Sku.SkuPrice.ComputeEngineLicenseUsageFee.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. For linear-priced memory SKUs, the price unit is 'GiBy.h'. For all other SKUs, the price unit is 'h'. This includes linear-priced vCPU and GPU SKUs because these resources have unitless dimensions and the application of these scaling factors does not change the price unit.

string unit = 5 [(.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. For linear-priced memory SKUs, the price unit is 'GiBy.h'. For all other SKUs, the price unit is 'h'. This includes linear-priced vCPU and GPU SKUs because these resources have unitless dimensions and the application of these scaling factors does not change the price unit.

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

Returns
Type Description
ByteString

The bytes for unit.

getUsageCalculation()

public Sku.SkuPrice.ComputeEngineLicenseUsageFee.UsageCalculation getUsageCalculation()

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

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

Returns
Type Description
Sku.SkuPrice.ComputeEngineLicenseUsageFee.UsageCalculation

The usageCalculation.

getUsageCalculationValue()

public int getUsageCalculationValue()

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

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

Returns
Type Description
int

The enum numeric value on the wire for usageCalculation.

hasMachineResourceRange()

public boolean hasMachineResourceRange()

Output only. The range of machine resource values that the SKU applies to. Unset when the SKU is not scoped to a particular machine resource type. The collection of SKUs in effect at any given time targeting the same license and machine resource type will cover all possible values for that machine resource type without overlap. Such a collection of SKUs form a "tiered" price structure over the possible values of the machine resource, with each SKU acting as a "tier".

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

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange machine_resource_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the machineResourceRange field is set.

hasPricePerUnit()

public boolean hasPricePerUnit()

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 = 6;

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.ComputeEngineLicenseUsageFee other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMachineResourceRange(Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange value)

public Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder mergeMachineResourceRange(Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange value)

Output only. The range of machine resource values that the SKU applies to. Unset when the SKU is not scoped to a particular machine resource type. The collection of SKUs in effect at any given time targeting the same license and machine resource type will cover all possible values for that machine resource type without overlap. Such a collection of SKUs form a "tiered" price structure over the possible values of the machine resource, with each SKU acting as a "tier".

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

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange machine_resource_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange
Returns
Type Description
Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder

mergePricePerUnit(Money value)

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

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 = 6;

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

setLicenseCode(String value)

public Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder setLicenseCode(String value)

Output only. The license code of the target Compute Engine License. Note that this is the numeric license code itself in uint64 format used to reference licenses attached to images, not the resource name of the related Compute Engine LicenseCode resource.

Example: "1234567890123456789"

string license_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The licenseCode to set.

Returns
Type Description
Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder

This builder for chaining.

setLicenseCodeBytes(ByteString value)

public Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder setLicenseCodeBytes(ByteString value)

Output only. The license code of the target Compute Engine License. Note that this is the numeric license code itself in uint64 format used to reference licenses attached to images, not the resource name of the related Compute Engine LicenseCode resource.

Example: "1234567890123456789"

string license_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for licenseCode to set.

Returns
Type Description
Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder

This builder for chaining.

setMachineResource(Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResource value)

public Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder setMachineResource(Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResource value)

Output only. The machine resource type that the SKU applies to, if any. SKUs with a non-default value are referred to as "resource-based" SKUs.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResource machine_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResource

The machineResource to set.

Returns
Type Description
Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder

This builder for chaining.

setMachineResourceRange(Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange value)

public Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder setMachineResourceRange(Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange value)

Output only. The range of machine resource values that the SKU applies to. Unset when the SKU is not scoped to a particular machine resource type. The collection of SKUs in effect at any given time targeting the same license and machine resource type will cover all possible values for that machine resource type without overlap. Such a collection of SKUs form a "tiered" price structure over the possible values of the machine resource, with each SKU acting as a "tier".

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

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange machine_resource_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange
Returns
Type Description
Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder

setMachineResourceRange(Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange.Builder builderForValue)

public Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder setMachineResourceRange(Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange.Builder builderForValue)

Output only. The range of machine resource values that the SKU applies to. Unset when the SKU is not scoped to a particular machine resource type. The collection of SKUs in effect at any given time targeting the same license and machine resource type will cover all possible values for that machine resource type without overlap. Such a collection of SKUs form a "tiered" price structure over the possible values of the machine resource, with each SKU acting as a "tier".

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

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange machine_resource_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange.Builder
Returns
Type Description
Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder

setMachineResourceValue(int value)

public Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder setMachineResourceValue(int value)

Output only. The machine resource type that the SKU applies to, if any. SKUs with a non-default value are referred to as "resource-based" SKUs.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResource machine_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder

This builder for chaining.

setPricePerUnit(Money value)

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

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 = 6;

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

setPricePerUnit(Money.Builder builderForValue)

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

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 = 6;

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

setUnit(String value)

public Sku.SkuPrice.ComputeEngineLicenseUsageFee.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. For linear-priced memory SKUs, the price unit is 'GiBy.h'. For all other SKUs, the price unit is 'h'. This includes linear-priced vCPU and GPU SKUs because these resources have unitless dimensions and the application of these scaling factors does not change the price unit.

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

Parameter
Name Description
value String

The unit to set.

Returns
Type Description
Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder

This builder for chaining.

setUnitBytes(ByteString value)

public Sku.SkuPrice.ComputeEngineLicenseUsageFee.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. For linear-priced memory SKUs, the price unit is 'GiBy.h'. For all other SKUs, the price unit is 'h'. This includes linear-priced vCPU and GPU SKUs because these resources have unitless dimensions and the application of these scaling factors does not change the price unit.

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

Parameter
Name Description
value ByteString

The bytes for unit to set.

Returns
Type Description
Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder

This builder for chaining.

setUsageCalculation(Sku.SkuPrice.ComputeEngineLicenseUsageFee.UsageCalculation value)

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

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

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

Parameter
Name Description
value Sku.SkuPrice.ComputeEngineLicenseUsageFee.UsageCalculation

The usageCalculation to set.

Returns
Type Description
Sku.SkuPrice.ComputeEngineLicenseUsageFee.Builder

This builder for chaining.

setUsageCalculationValue(int value)

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

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

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ComputeEngineLicenseUsageFee.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.ComputeEngineLicenseUsageFee.Builder

This builder for chaining.