Class Sku.SkuPrice.TieredPrice.PriceTier (0.1.0)

public static final class Sku.SkuPrice.TieredPrice.PriceTier extends GeneratedMessage implements Sku.SkuPrice.TieredPrice.PriceTierOrBuilder

A price tier pricing metric usage within a range.

Each marginal unit of usage is priced according to the price tier in which it falls.

Protobuf type google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice.PriceTier

Inheritance

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

Static Fields

PRICE_FIELD_NUMBER

public static final int PRICE_FIELD_NUMBER
Field Value
Type Description
int

START_AMOUNT_FIELD_NUMBER

public static final int START_AMOUNT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Sku.SkuPrice.TieredPrice.PriceTier getDefaultInstance()
Returns
Type Description
Sku.SkuPrice.TieredPrice.PriceTier

getDescriptor()

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

newBuilder()

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

newBuilder(Sku.SkuPrice.TieredPrice.PriceTier prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Sku.SkuPrice.TieredPrice.PriceTier getDefaultInstanceForType()
Returns
Type Description
Sku.SkuPrice.TieredPrice.PriceTier

getParserForType()

public Parser<Sku.SkuPrice.TieredPrice.PriceTier> getParserForType()
Returns
Type Description
Parser<PriceTier>
Overrides

getPrice()

public Money getPrice()

Output only. The price per price_unit_count of unit in the tier. The price is applied fractionally if the customer's usage within the tier is not an integer multiple of price_unit_count.

.google.type.Money price = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Money

The price.

getPriceOrBuilder()

public MoneyOrBuilder getPriceOrBuilder()

Output only. The price per price_unit_count of unit in the tier. The price is applied fractionally if the customer's usage within the tier is not an integer multiple of price_unit_count.

.google.type.Money price = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.MoneyOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStartAmount()

public Decimal getStartAmount()

Output only. Inclusive lower bound of the tier interval, denominated in unit.

.google.type.Decimal start_amount = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Decimal

The startAmount.

getStartAmountOrBuilder()

public DecimalOrBuilder getStartAmountOrBuilder()

Output only. Inclusive lower bound of the tier interval, denominated in unit.

.google.type.Decimal start_amount = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.DecimalOrBuilder

hasPrice()

public boolean hasPrice()

Output only. The price per price_unit_count of unit in the tier. The price is applied fractionally if the customer's usage within the tier is not an integer multiple of price_unit_count.

.google.type.Money price = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the price field is set.

hasStartAmount()

public boolean hasStartAmount()

Output only. Inclusive lower bound of the tier interval, denominated in unit.

.google.type.Decimal start_amount = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the startAmount 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.TieredPrice.PriceTier.Builder newBuilderForType()
Returns
Type Description
Sku.SkuPrice.TieredPrice.PriceTier.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

public Sku.SkuPrice.TieredPrice.PriceTier.Builder toBuilder()
Returns
Type Description
Sku.SkuPrice.TieredPrice.PriceTier.Builder

writeTo(CodedOutputStream output)

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