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
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder newBuilder()
newBuilder(Sku.SkuPrice.KubernetesEnginePodUsageFee prototype)
public static Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder newBuilder(Sku.SkuPrice.KubernetesEnginePodUsageFee prototype)
public static Sku.SkuPrice.KubernetesEnginePodUsageFee parseDelimitedFrom(InputStream input)
public static Sku.SkuPrice.KubernetesEnginePodUsageFee parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Sku.SkuPrice.KubernetesEnginePodUsageFee parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Sku.SkuPrice.KubernetesEnginePodUsageFee parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Sku.SkuPrice.KubernetesEnginePodUsageFee parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Sku.SkuPrice.KubernetesEnginePodUsageFee parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Sku.SkuPrice.KubernetesEnginePodUsageFee parseFrom(CodedInputStream input)
public static Sku.SkuPrice.KubernetesEnginePodUsageFee parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Sku.SkuPrice.KubernetesEnginePodUsageFee parseFrom(InputStream input)
public static Sku.SkuPrice.KubernetesEnginePodUsageFee parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Sku.SkuPrice.KubernetesEnginePodUsageFee parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Sku.SkuPrice.KubernetesEnginePodUsageFee parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Sku.SkuPrice.KubernetesEnginePodUsageFee> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Sku.SkuPrice.KubernetesEnginePodUsageFee getDefaultInstanceForType()
getParserForType()
public Parser<Sku.SkuPrice.KubernetesEnginePodUsageFee> getParserForType()
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];
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];
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];
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()
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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];
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()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Sku.SkuPrice.KubernetesEnginePodUsageFee.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides