Class Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder (0.1.0)

public static final class Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder extends GeneratedMessage.Builder<Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder> implements Sku.SkuPrice.KubernetesEnginePodUsageFeeOrBuilder

Details about a SKU pricing usage of software running on a Kubernetes Engine pod.

The SKU applies to pods annotated with the SKU's parent service name, and may be further scoped to a k8s pod resource type (e.g. "CPU") and size range for that resource type. Running pods annotated with the parent service's service name and matching the pod resource type size range will be charged by the SKU. A service may be priced by multiple SKUs covering different combinations of pod resource type and size range, allowing a single running pod to be charged by up to one SKU per pod resource type, with pricing tiered according to pod shape.

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

Static Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

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

clearPodResource()

public Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder clearPodResource()

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

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResource pod_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder

This builder for chaining.

clearPodResourceRange()

public Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder clearPodResourceRange()

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

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

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRange pod_resource_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder

clearPricePerUnit()

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

clearPriceStructure()

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

clearUnit()

public Sku.SkuPrice.KubernetesEnginePodUsageFee.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, GPU, and TPU 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.KubernetesEnginePodUsageFee.Builder

This builder for chaining.

clearUsageCalculation()

public Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder clearUsageCalculation()

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

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

Returns
Type Description
Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder

This builder for chaining.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getPodResource()

public Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResource getPodResource()

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

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResource pod_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResource

The podResource.

getPodResourceRange()

public Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRange getPodResourceRange()

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

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

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRange pod_resource_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRange

The podResourceRange.

getPodResourceRangeBuilder()

public Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRange.Builder getPodResourceRangeBuilder()

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

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

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRange pod_resource_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRange.Builder

getPodResourceRangeOrBuilder()

public Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRangeOrBuilder getPodResourceRangeOrBuilder()

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

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

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRange pod_resource_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRangeOrBuilder

getPodResourceValue()

public int getPodResourceValue()

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

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResource pod_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for podResource.

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.KubernetesEnginePodUsageFee.PriceStructureCase getPriceStructureCase()
Returns
Type Description
Sku.SkuPrice.KubernetesEnginePodUsageFee.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, GPU, and TPU 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, GPU, and TPU 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.KubernetesEnginePodUsageFee.UsageCalculation getUsageCalculation()

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

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

Returns
Type Description
Sku.SkuPrice.KubernetesEnginePodUsageFee.UsageCalculation

The usageCalculation.

getUsageCalculationValue()

public int getUsageCalculationValue()

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

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

Returns
Type Description
int

The enum numeric value on the wire for usageCalculation.

hasPodResourceRange()

public boolean hasPodResourceRange()

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

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

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRange pod_resource_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the podResourceRange 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.KubernetesEnginePodUsageFee other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePodResourceRange(Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRange value)

public Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder mergePodResourceRange(Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRange value)

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

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

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRange pod_resource_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRange
Returns
Type Description
Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder

mergePricePerUnit(Money value)

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

setPodResource(Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResource value)

public Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder setPodResource(Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResource value)

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

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResource pod_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResource

The podResource to set.

Returns
Type Description
Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder

This builder for chaining.

setPodResourceRange(Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRange value)

public Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder setPodResourceRange(Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRange value)

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

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

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRange pod_resource_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRange
Returns
Type Description
Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder

setPodResourceRange(Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRange.Builder builderForValue)

public Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder setPodResourceRange(Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRange.Builder builderForValue)

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

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

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRange pod_resource_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRange.Builder
Returns
Type Description
Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder

setPodResourceValue(int value)

public Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder setPodResourceValue(int value)

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

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResource pod_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder

This builder for chaining.

setPricePerUnit(Money value)

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

setPricePerUnit(Money.Builder builderForValue)

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

setUnit(String value)

public Sku.SkuPrice.KubernetesEnginePodUsageFee.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, GPU, and TPU 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.KubernetesEnginePodUsageFee.Builder

This builder for chaining.

setUnitBytes(ByteString value)

public Sku.SkuPrice.KubernetesEnginePodUsageFee.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, GPU, and TPU 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.KubernetesEnginePodUsageFee.Builder

This builder for chaining.

setUsageCalculation(Sku.SkuPrice.KubernetesEnginePodUsageFee.UsageCalculation value)

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

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

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

Parameter
Name Description
value Sku.SkuPrice.KubernetesEnginePodUsageFee.UsageCalculation

The usageCalculation to set.

Returns
Type Description
Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder

This builder for chaining.

setUsageCalculationValue(int value)

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

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

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

This builder for chaining.