public static final class Sku.SkuPrice.TieredPrice.PriceTier.Builder extends GeneratedMessage.Builder<Sku.SkuPrice.TieredPrice.PriceTier.Builder> implements Sku.SkuPrice.TieredPrice.PriceTierOrBuilderA 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
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Sku.SkuPrice.TieredPrice.PriceTier.BuilderImplements
Sku.SkuPrice.TieredPrice.PriceTierOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Sku.SkuPrice.TieredPrice.PriceTier build()| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.PriceTier |
|
buildPartial()
public Sku.SkuPrice.TieredPrice.PriceTier buildPartial()| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.PriceTier |
|
clear()
public Sku.SkuPrice.TieredPrice.PriceTier.Builder clear()| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.PriceTier.Builder |
|
clearPrice()
public Sku.SkuPrice.TieredPrice.PriceTier.Builder clearPrice() 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 |
Sku.SkuPrice.TieredPrice.PriceTier.Builder |
|
clearStartAmount()
public Sku.SkuPrice.TieredPrice.PriceTier.Builder clearStartAmount() 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 |
Sku.SkuPrice.TieredPrice.PriceTier.Builder |
|
getDefaultInstanceForType()
public Sku.SkuPrice.TieredPrice.PriceTier getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.PriceTier |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
getPriceBuilder()
public Money.Builder getPriceBuilder() 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.Builder |
|
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 |
|
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. |
getStartAmountBuilder()
public Decimal.Builder getStartAmountBuilder() 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.Builder |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Sku.SkuPrice.TieredPrice.PriceTier other)
public Sku.SkuPrice.TieredPrice.PriceTier.Builder mergeFrom(Sku.SkuPrice.TieredPrice.PriceTier other)| Parameter | |
|---|---|
| Name | Description |
other |
Sku.SkuPrice.TieredPrice.PriceTier |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.PriceTier.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Sku.SkuPrice.TieredPrice.PriceTier.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.PriceTier.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Sku.SkuPrice.TieredPrice.PriceTier.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.PriceTier.Builder |
|
mergePrice(Money value)
public Sku.SkuPrice.TieredPrice.PriceTier.Builder mergePrice(Money value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Money |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.PriceTier.Builder |
|
mergeStartAmount(Decimal value)
public Sku.SkuPrice.TieredPrice.PriceTier.Builder mergeStartAmount(Decimal value) Output only. Inclusive lower bound of the tier interval, denominated
in unit.
.google.type.Decimal start_amount = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Decimal |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.PriceTier.Builder |
|
setPrice(Money value)
public Sku.SkuPrice.TieredPrice.PriceTier.Builder setPrice(Money value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Money |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.PriceTier.Builder |
|
setPrice(Money.Builder builderForValue)
public Sku.SkuPrice.TieredPrice.PriceTier.Builder setPrice(Money.Builder builderForValue) 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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.Money.Builder |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.PriceTier.Builder |
|
setStartAmount(Decimal value)
public Sku.SkuPrice.TieredPrice.PriceTier.Builder setStartAmount(Decimal value) Output only. Inclusive lower bound of the tier interval, denominated
in unit.
.google.type.Decimal start_amount = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Decimal |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.PriceTier.Builder |
|
setStartAmount(Decimal.Builder builderForValue)
public Sku.SkuPrice.TieredPrice.PriceTier.Builder setStartAmount(Decimal.Builder builderForValue) Output only. Inclusive lower bound of the tier interval, denominated
in unit.
.google.type.Decimal start_amount = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.Decimal.Builder |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.PriceTier.Builder |
|