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
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder newBuilder()
newBuilder(Sku.SkuPrice.ManagedServiceMetricUsageFee prototype)
public static Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder newBuilder(Sku.SkuPrice.ManagedServiceMetricUsageFee prototype)
public static Sku.SkuPrice.ManagedServiceMetricUsageFee parseDelimitedFrom(InputStream input)
public static Sku.SkuPrice.ManagedServiceMetricUsageFee parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Sku.SkuPrice.ManagedServiceMetricUsageFee parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Sku.SkuPrice.ManagedServiceMetricUsageFee parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Sku.SkuPrice.ManagedServiceMetricUsageFee parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Sku.SkuPrice.ManagedServiceMetricUsageFee parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Sku.SkuPrice.ManagedServiceMetricUsageFee parseFrom(CodedInputStream input)
public static Sku.SkuPrice.ManagedServiceMetricUsageFee parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Sku.SkuPrice.ManagedServiceMetricUsageFee parseFrom(InputStream input)
public static Sku.SkuPrice.ManagedServiceMetricUsageFee parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Sku.SkuPrice.ManagedServiceMetricUsageFee parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Sku.SkuPrice.ManagedServiceMetricUsageFee parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Sku.SkuPrice.ManagedServiceMetricUsageFee> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
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()
getParserForType()
public Parser<Sku.SkuPrice.ManagedServiceMetricUsageFee> getParserForType()
Overrides
getPriceStructureCase()
public Sku.SkuPrice.ManagedServiceMetricUsageFee.PriceStructureCase getPriceStructureCase()
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];
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];
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()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Sku.SkuPrice.ManagedServiceMetricUsageFee.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides