Class Sku.SkuPrice.ManagedServiceMetricUsageFee (0.1.0)

public static final class Sku.SkuPrice.ManagedServiceMetricUsageFee extends GeneratedMessage 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

Inheritance

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

Static Fields

CANONICAL_METRIC_FIELD_NUMBER

public static final int CANONICAL_METRIC_FIELD_NUMBER
Field Value
Type Description
int

TIERED_PRICE_FIELD_NUMBER

public static final int TIERED_PRICE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Sku.SkuPrice.ManagedServiceMetricUsageFee getDefaultInstance()
Returns
Type Description
Sku.SkuPrice.ManagedServiceMetricUsageFee

getDescriptor()

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

newBuilder()

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

newBuilder(Sku.SkuPrice.ManagedServiceMetricUsageFee prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

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

getParserForType()

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

getPriceStructureCase()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

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.ManagedServiceMetricUsageFee.Builder newBuilderForType()
Returns
Type Description
Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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