public static final class Sku.SkuPrice.TieredPrice.Builder extends GeneratedMessage.Builder<Sku.SkuPrice.TieredPrice.Builder> implements Sku.SkuPrice.TieredPriceOrBuilderPrice structure for a SKU charging a tiered price.
Protobuf type google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Sku.SkuPrice.TieredPrice.BuilderImplements
Sku.SkuPrice.TieredPriceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllPriceTiers(Iterable<? extends Sku.SkuPrice.TieredPrice.PriceTier> values)
public Sku.SkuPrice.TieredPrice.Builder addAllPriceTiers(Iterable<? extends Sku.SkuPrice.TieredPrice.PriceTier> values)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 |
values |
Iterable<? extends com.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice.PriceTier> |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.Builder |
|
addPriceTiers(Sku.SkuPrice.TieredPrice.PriceTier value)
public Sku.SkuPrice.TieredPrice.Builder addPriceTiers(Sku.SkuPrice.TieredPrice.PriceTier value)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 |
value |
Sku.SkuPrice.TieredPrice.PriceTier |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.Builder |
|
addPriceTiers(Sku.SkuPrice.TieredPrice.PriceTier.Builder builderForValue)
public Sku.SkuPrice.TieredPrice.Builder addPriceTiers(Sku.SkuPrice.TieredPrice.PriceTier.Builder builderForValue)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 |
builderForValue |
Sku.SkuPrice.TieredPrice.PriceTier.Builder |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.Builder |
|
addPriceTiers(int index, Sku.SkuPrice.TieredPrice.PriceTier value)
public Sku.SkuPrice.TieredPrice.Builder addPriceTiers(int index, Sku.SkuPrice.TieredPrice.PriceTier value)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Sku.SkuPrice.TieredPrice.PriceTier |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.Builder |
|
addPriceTiers(int index, Sku.SkuPrice.TieredPrice.PriceTier.Builder builderForValue)
public Sku.SkuPrice.TieredPrice.Builder addPriceTiers(int index, Sku.SkuPrice.TieredPrice.PriceTier.Builder builderForValue)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Sku.SkuPrice.TieredPrice.PriceTier.Builder |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.Builder |
|
addPriceTiersBuilder()
public Sku.SkuPrice.TieredPrice.PriceTier.Builder addPriceTiersBuilder()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 |
Sku.SkuPrice.TieredPrice.PriceTier.Builder |
|
addPriceTiersBuilder(int index)
public Sku.SkuPrice.TieredPrice.PriceTier.Builder addPriceTiersBuilder(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 |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.PriceTier.Builder |
|
build()
public Sku.SkuPrice.TieredPrice build()| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice |
|
buildPartial()
public Sku.SkuPrice.TieredPrice buildPartial()| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice |
|
clear()
public Sku.SkuPrice.TieredPrice.Builder clear()| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.Builder |
|
clearPriceTiers()
public Sku.SkuPrice.TieredPrice.Builder clearPriceTiers()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 |
Sku.SkuPrice.TieredPrice.Builder |
|
clearPriceUnitCount()
public Sku.SkuPrice.TieredPrice.Builder clearPriceUnitCount() 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 |
Sku.SkuPrice.TieredPrice.Builder |
|
clearUnit()
public Sku.SkuPrice.TieredPrice.Builder clearUnit()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 |
Sku.SkuPrice.TieredPrice.Builder |
This builder for chaining. |
clearUnitDescription()
public Sku.SkuPrice.TieredPrice.Builder clearUnitDescription()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 |
Sku.SkuPrice.TieredPrice.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Sku.SkuPrice.TieredPrice getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.PriceTier |
|
getPriceTiersBuilder(int index)
public Sku.SkuPrice.TieredPrice.PriceTier.Builder getPriceTiersBuilder(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 |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.PriceTier.Builder |
|
getPriceTiersBuilderList()
public List<Sku.SkuPrice.TieredPrice.PriceTier.Builder> getPriceTiersBuilderList()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<Builder> |
|
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];
| Returns | |
|---|---|
| Type | Description |
List<PriceTier> |
|
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 |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.PriceTierOrBuilder |
|
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. |
getPriceUnitCountBuilder()
public Decimal.Builder getPriceUnitCountBuilder() 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.Builder |
|
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 |
|
getUnit()
public String 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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Sku.SkuPrice.TieredPrice other)
public Sku.SkuPrice.TieredPrice.Builder mergeFrom(Sku.SkuPrice.TieredPrice other)| Parameter | |
|---|---|
| Name | Description |
other |
Sku.SkuPrice.TieredPrice |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Sku.SkuPrice.TieredPrice.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Sku.SkuPrice.TieredPrice.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.Builder |
|
mergePriceUnitCount(Decimal value)
public Sku.SkuPrice.TieredPrice.Builder mergePriceUnitCount(Decimal value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Decimal |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.Builder |
|
removePriceTiers(int index)
public Sku.SkuPrice.TieredPrice.Builder removePriceTiers(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 |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.Builder |
|
setPriceTiers(int index, Sku.SkuPrice.TieredPrice.PriceTier value)
public Sku.SkuPrice.TieredPrice.Builder setPriceTiers(int index, Sku.SkuPrice.TieredPrice.PriceTier value)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Sku.SkuPrice.TieredPrice.PriceTier |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.Builder |
|
setPriceTiers(int index, Sku.SkuPrice.TieredPrice.PriceTier.Builder builderForValue)
public Sku.SkuPrice.TieredPrice.Builder setPriceTiers(int index, Sku.SkuPrice.TieredPrice.PriceTier.Builder builderForValue)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Sku.SkuPrice.TieredPrice.PriceTier.Builder |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.Builder |
|
setPriceUnitCount(Decimal value)
public Sku.SkuPrice.TieredPrice.Builder setPriceUnitCount(Decimal value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Decimal |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.Builder |
|
setPriceUnitCount(Decimal.Builder builderForValue)
public Sku.SkuPrice.TieredPrice.Builder setPriceUnitCount(Decimal.Builder builderForValue) 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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.Decimal.Builder |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.Builder |
|
setUnit(String value)
public Sku.SkuPrice.TieredPrice.Builder setUnit(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe unit to set. |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.Builder |
This builder for chaining. |
setUnitBytes(ByteString value)
public Sku.SkuPrice.TieredPrice.Builder setUnitBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for unit to set. |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.Builder |
This builder for chaining. |
setUnitDescription(String value)
public Sku.SkuPrice.TieredPrice.Builder setUnitDescription(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe unitDescription to set. |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.Builder |
This builder for chaining. |
setUnitDescriptionBytes(ByteString value)
public Sku.SkuPrice.TieredPrice.Builder setUnitDescriptionBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for unitDescription to set. |
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.TieredPrice.Builder |
This builder for chaining. |