Class Sku.SkuPrice.KubernetesEnginePodUsageFee (0.1.0)

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

Inheritance

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

Static Fields

POD_RESOURCE_FIELD_NUMBER

public static final int POD_RESOURCE_FIELD_NUMBER
Field Value
Type Description
int

POD_RESOURCE_RANGE_FIELD_NUMBER

public static final int POD_RESOURCE_RANGE_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.KubernetesEnginePodUsageFee getDefaultInstance()
Returns
Type Description
Sku.SkuPrice.KubernetesEnginePodUsageFee

getDescriptor()

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

newBuilder()

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

newBuilder(Sku.SkuPrice.KubernetesEnginePodUsageFee prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getParserForType()

public Parser<Sku.SkuPrice.KubernetesEnginePodUsageFee> getParserForType()
Returns
Type Description
Parser<KubernetesEnginePodUsageFee>
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.

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.

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

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

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.KubernetesEnginePodUsageFee.Builder newBuilderForType()
Returns
Type Description
Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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