public static final class Sku.SkuPrice.TieredPrice extends GeneratedMessage implements Sku.SkuPrice.TieredPriceOrBuilder
Price structure for a SKU charging a tiered
price.
Protobuf type google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice
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
PRICE_TIERS_FIELD_NUMBER
public static final int PRICE_TIERS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PRICE_UNIT_COUNT_FIELD_NUMBER
public static final int PRICE_UNIT_COUNT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
UNIT_DESCRIPTION_FIELD_NUMBER
public static final int UNIT_DESCRIPTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
UNIT_FIELD_NUMBER
public static final int UNIT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Sku.SkuPrice.TieredPrice getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Sku.SkuPrice.TieredPrice.Builder newBuilder()
newBuilder(Sku.SkuPrice.TieredPrice prototype)
public static Sku.SkuPrice.TieredPrice.Builder newBuilder(Sku.SkuPrice.TieredPrice prototype)
public static Sku.SkuPrice.TieredPrice parseDelimitedFrom(InputStream input)
public static Sku.SkuPrice.TieredPrice parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Sku.SkuPrice.TieredPrice parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Sku.SkuPrice.TieredPrice parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Sku.SkuPrice.TieredPrice parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Sku.SkuPrice.TieredPrice parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Sku.SkuPrice.TieredPrice parseFrom(CodedInputStream input)
public static Sku.SkuPrice.TieredPrice parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Sku.SkuPrice.TieredPrice parseFrom(InputStream input)
public static Sku.SkuPrice.TieredPrice parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Sku.SkuPrice.TieredPrice parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Sku.SkuPrice.TieredPrice parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Sku.SkuPrice.TieredPrice> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Sku.SkuPrice.TieredPrice getDefaultInstanceForType()
getParserForType()
public Parser<Sku.SkuPrice.TieredPrice> getParserForType()
Overrides
getPriceTiers(int index)
public Sku.SkuPrice.TieredPrice.PriceTier getPriceTiers(int index)
Output only. The list of price tiers for the SKU, ordered by the
start_amount.
The tiers are non-overlapping and are collectively bounded below by
zero and unbounded above to cover the entire range of possible metric
usage. Each tier is bounded below inclusively by its start_amount and
bounded above exclusively by the start_amount of the next tier, or else
unbounded above if there is no next tier.
Usage of the metric is aggregated by customer billing account on a
monthly basis and billed in a graduated manner according to the price
tiers, with each marginal unit of usage priced accoring to the tier in
which it falls.
repeated .google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice.PriceTier price_tiers = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
getPriceTiersCount()
public int getPriceTiersCount()
Output only. The list of price tiers for the SKU, ordered by the
start_amount.
The tiers are non-overlapping and are collectively bounded below by
zero and unbounded above to cover the entire range of possible metric
usage. Each tier is bounded below inclusively by its start_amount and
bounded above exclusively by the start_amount of the next tier, or else
unbounded above if there is no next tier.
Usage of the metric is aggregated by customer billing account on a
monthly basis and billed in a graduated manner according to the price
tiers, with each marginal unit of usage priced accoring to the tier in
which it falls.
repeated .google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice.PriceTier price_tiers = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
|
getPriceTiersList()
public List<Sku.SkuPrice.TieredPrice.PriceTier> getPriceTiersList()
Output only. The list of price tiers for the SKU, ordered by the
start_amount.
The tiers are non-overlapping and are collectively bounded below by
zero and unbounded above to cover the entire range of possible metric
usage. Each tier is bounded below inclusively by its start_amount and
bounded above exclusively by the start_amount of the next tier, or else
unbounded above if there is no next tier.
Usage of the metric is aggregated by customer billing account on a
monthly basis and billed in a graduated manner according to the price
tiers, with each marginal unit of usage priced accoring to the tier in
which it falls.
repeated .google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice.PriceTier price_tiers = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getPriceTiersOrBuilder(int index)
public Sku.SkuPrice.TieredPrice.PriceTierOrBuilder getPriceTiersOrBuilder(int index)
Output only. The list of price tiers for the SKU, ordered by the
start_amount.
The tiers are non-overlapping and are collectively bounded below by
zero and unbounded above to cover the entire range of possible metric
usage. Each tier is bounded below inclusively by its start_amount and
bounded above exclusively by the start_amount of the next tier, or else
unbounded above if there is no next tier.
Usage of the metric is aggregated by customer billing account on a
monthly basis and billed in a graduated manner according to the price
tiers, with each marginal unit of usage priced accoring to the tier in
which it falls.
repeated .google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice.PriceTier price_tiers = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
getPriceTiersOrBuilderList()
public List<? extends Sku.SkuPrice.TieredPrice.PriceTierOrBuilder> getPriceTiersOrBuilderList()
Output only. The list of price tiers for the SKU, ordered by the
start_amount.
The tiers are non-overlapping and are collectively bounded below by
zero and unbounded above to cover the entire range of possible metric
usage. Each tier is bounded below inclusively by its start_amount and
bounded above exclusively by the start_amount of the next tier, or else
unbounded above if there is no next tier.
Usage of the metric is aggregated by customer billing account on a
monthly basis and billed in a graduated manner according to the price
tiers, with each marginal unit of usage priced accoring to the tier in
which it falls.
repeated .google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice.PriceTier price_tiers = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice.PriceTierOrBuilder> |
|
getPriceUnitCount()
public Decimal getPriceUnitCount()
Output only. Scaling the unit by the price_unit_count forms the
composite "price unit" which is priced by the price tiers.
This scaling factor is in addition to any numerical prefix symbol on
the unit, so the same composite "price unit" can be represented in
several ways, differing only in their presentation to users.
Examples:
- $1 per 1 bytes : unit = By, price_unit_count = 1
- $1000 per 1 kilobytes : unit = kBy, price_unit_count = 1
- $5000 per 5 kilobytes : unit = kBy, price_unit_count = 5
.google.type.Decimal price_unit_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
com.google.type.Decimal |
The priceUnitCount.
|
getPriceUnitCountOrBuilder()
public DecimalOrBuilder getPriceUnitCountOrBuilder()
Output only. Scaling the unit by the price_unit_count forms the
composite "price unit" which is priced by the price tiers.
This scaling factor is in addition to any numerical prefix symbol on
the unit, so the same composite "price unit" can be represented in
several ways, differing only in their presentation to users.
Examples:
- $1 per 1 bytes : unit = By, price_unit_count = 1
- $1000 per 1 kilobytes : unit = kBy, price_unit_count = 1
- $5000 per 5 kilobytes : unit = kBy, price_unit_count = 5
.google.type.Decimal price_unit_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
com.google.type.DecimalOrBuilder |
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getUnit()
Output only. Usage unit used for defining price tiers and for scaling
with the price_unit_count to form the composite price unit.
See https://ucum.org/ucum.html for the format of the price unit.
A unitless dimension, such as a count, is represented as 1.
string unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
String |
The unit.
|
getUnitBytes()
public ByteString getUnitBytes()
Output only. Usage unit used for defining price tiers and for scaling
with the price_unit_count to form the composite price unit.
See https://ucum.org/ucum.html for the format of the price unit.
A unitless dimension, such as a count, is represented as 1.
string unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
ByteString |
The bytes for unit.
|
getUnitDescription()
public String getUnitDescription()
Output only. The display description of the unit, supplied at time of
onboarding. This value is recommended to be set at least for
dimensionless metrics, but may be empty if no description was provided
at time of onboarding.
string unit_description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
String |
The unitDescription.
|
getUnitDescriptionBytes()
public ByteString getUnitDescriptionBytes()
Output only. The display description of the unit, supplied at time of
onboarding. This value is recommended to be set at least for
dimensionless metrics, but may be empty if no description was provided
at time of onboarding.
string unit_description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
ByteString |
The bytes for unitDescription.
|
hasPriceUnitCount()
public boolean hasPriceUnitCount()
Output only. Scaling the unit by the price_unit_count forms the
composite "price unit" which is priced by the price tiers.
This scaling factor is in addition to any numerical prefix symbol on
the unit, so the same composite "price unit" can be represented in
several ways, differing only in their presentation to users.
Examples:
- $1 per 1 bytes : unit = By, price_unit_count = 1
- $1000 per 1 kilobytes : unit = kBy, price_unit_count = 1
- $5000 per 5 kilobytes : unit = kBy, price_unit_count = 5
.google.type.Decimal price_unit_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the priceUnitCount 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.TieredPrice.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Sku.SkuPrice.TieredPrice.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Sku.SkuPrice.TieredPrice.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides