Class Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder (0.1.0)

public static final class Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder extends GeneratedMessage.Builder<Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder> implements Sku.SkuPrice.ManagedServiceMetricUsageFeeOrBuilder

Details about a SKU pricing usage of a partner-reported custom billing metric defined by the partner in the Service Management API and reported using the Service Control API.

The customer's usage charge is computed by converting the customer's reported consumption to the SKU's composite price unit and applying the graduated price from the appropriate price tier.

Protobuf type google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ManagedServiceMetricUsageFee

Static Methods

getDescriptor()

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

Methods

build()

public Sku.SkuPrice.ManagedServiceMetricUsageFee build()
Returns
Type Description
Sku.SkuPrice.ManagedServiceMetricUsageFee

buildPartial()

public Sku.SkuPrice.ManagedServiceMetricUsageFee buildPartial()
Returns
Type Description
Sku.SkuPrice.ManagedServiceMetricUsageFee

clear()

public Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder clear()
Returns
Type Description
Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder
Overrides

clearCanonicalMetric()

public Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder clearCanonicalMetric()

Output only. The name of the metric, in canonical format.

Note that in the canonical format the first character of the path component of the metric name is always uppercase, which may differ from the metric name in the service config. For example, a metric appearing in the service config as 'example.com/example_metric' will appear here in the SKU as 'example.com/Example_metric'. In the Service Management and Service Control APIs these two metric names are considered distinct, either or both may be defined, and usage must be reported using a name matching the name of a metric defined in the service config. But for billing purposes usage reported using either name will be aggregated under the canonical metric name.

Example: "example.com/Example_metric"

string canonical_metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder

This builder for chaining.

clearPriceStructure()

public Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder clearPriceStructure()
Returns
Type Description
Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder

clearTieredPrice()

public Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder clearTieredPrice()

Output only. Tiered pricing of the SKU.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice tiered_price = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder

getCanonicalMetric()

public String getCanonicalMetric()

Output only. The name of the metric, in canonical format.

Note that in the canonical format the first character of the path component of the metric name is always uppercase, which may differ from the metric name in the service config. For example, a metric appearing in the service config as 'example.com/example_metric' will appear here in the SKU as 'example.com/Example_metric'. In the Service Management and Service Control APIs these two metric names are considered distinct, either or both may be defined, and usage must be reported using a name matching the name of a metric defined in the service config. But for billing purposes usage reported using either name will be aggregated under the canonical metric name.

Example: "example.com/Example_metric"

string canonical_metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The canonicalMetric.

getCanonicalMetricBytes()

public ByteString getCanonicalMetricBytes()

Output only. The name of the metric, in canonical format.

Note that in the canonical format the first character of the path component of the metric name is always uppercase, which may differ from the metric name in the service config. For example, a metric appearing in the service config as 'example.com/example_metric' will appear here in the SKU as 'example.com/Example_metric'. In the Service Management and Service Control APIs these two metric names are considered distinct, either or both may be defined, and usage must be reported using a name matching the name of a metric defined in the service config. But for billing purposes usage reported using either name will be aggregated under the canonical metric name.

Example: "example.com/Example_metric"

string canonical_metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for canonicalMetric.

getDefaultInstanceForType()

public Sku.SkuPrice.ManagedServiceMetricUsageFee getDefaultInstanceForType()
Returns
Type Description
Sku.SkuPrice.ManagedServiceMetricUsageFee

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPriceStructureCase()

public Sku.SkuPrice.ManagedServiceMetricUsageFee.PriceStructureCase getPriceStructureCase()
Returns
Type Description
Sku.SkuPrice.ManagedServiceMetricUsageFee.PriceStructureCase

getTieredPrice()

public Sku.SkuPrice.TieredPrice getTieredPrice()

Output only. Tiered pricing of the SKU.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice tiered_price = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.TieredPrice

The tieredPrice.

getTieredPriceBuilder()

public Sku.SkuPrice.TieredPrice.Builder getTieredPriceBuilder()

Output only. Tiered pricing of the SKU.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice tiered_price = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.TieredPrice.Builder

getTieredPriceOrBuilder()

public Sku.SkuPrice.TieredPriceOrBuilder getTieredPriceOrBuilder()

Output only. Tiered pricing of the SKU.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice tiered_price = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Sku.SkuPrice.TieredPriceOrBuilder

hasTieredPrice()

public boolean hasTieredPrice()

Output only. Tiered pricing of the SKU.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice tiered_price = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the tieredPrice field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Sku.SkuPrice.ManagedServiceMetricUsageFee other)

public Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder mergeFrom(Sku.SkuPrice.ManagedServiceMetricUsageFee other)
Parameter
Name Description
other Sku.SkuPrice.ManagedServiceMetricUsageFee
Returns
Type Description
Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder
Overrides

mergeTieredPrice(Sku.SkuPrice.TieredPrice value)

public Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder mergeTieredPrice(Sku.SkuPrice.TieredPrice value)

Output only. Tiered pricing of the SKU.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice tiered_price = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Sku.SkuPrice.TieredPrice
Returns
Type Description
Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder

setCanonicalMetric(String value)

public Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder setCanonicalMetric(String value)

Output only. The name of the metric, in canonical format.

Note that in the canonical format the first character of the path component of the metric name is always uppercase, which may differ from the metric name in the service config. For example, a metric appearing in the service config as 'example.com/example_metric' will appear here in the SKU as 'example.com/Example_metric'. In the Service Management and Service Control APIs these two metric names are considered distinct, either or both may be defined, and usage must be reported using a name matching the name of a metric defined in the service config. But for billing purposes usage reported using either name will be aggregated under the canonical metric name.

Example: "example.com/Example_metric"

string canonical_metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The canonicalMetric to set.

Returns
Type Description
Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder

This builder for chaining.

setCanonicalMetricBytes(ByteString value)

public Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder setCanonicalMetricBytes(ByteString value)

Output only. The name of the metric, in canonical format.

Note that in the canonical format the first character of the path component of the metric name is always uppercase, which may differ from the metric name in the service config. For example, a metric appearing in the service config as 'example.com/example_metric' will appear here in the SKU as 'example.com/Example_metric'. In the Service Management and Service Control APIs these two metric names are considered distinct, either or both may be defined, and usage must be reported using a name matching the name of a metric defined in the service config. But for billing purposes usage reported using either name will be aggregated under the canonical metric name.

Example: "example.com/Example_metric"

string canonical_metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for canonicalMetric to set.

Returns
Type Description
Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder

This builder for chaining.

setTieredPrice(Sku.SkuPrice.TieredPrice value)

public Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder setTieredPrice(Sku.SkuPrice.TieredPrice value)

Output only. Tiered pricing of the SKU.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice tiered_price = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Sku.SkuPrice.TieredPrice
Returns
Type Description
Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder

setTieredPrice(Sku.SkuPrice.TieredPrice.Builder builderForValue)

public Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder setTieredPrice(Sku.SkuPrice.TieredPrice.Builder builderForValue)

Output only. Tiered pricing of the SKU.

.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice tiered_price = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Sku.SkuPrice.TieredPrice.Builder
Returns
Type Description
Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder