public static final class Sku.SkuPrice.FlatSubscriptionFee extends GeneratedMessage implements Sku.SkuPrice.FlatSubscriptionFeeOrBuilder
Details about a SKU charging a flat subscription fee.
Protobuf type google.cloud.commerceproducer.v1beta.Sku.SkuPrice.FlatSubscriptionFee
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
PRICE_PER_UNIT_FIELD_NUMBER
public static final int PRICE_PER_UNIT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
UNIT_FIELD_NUMBER
public static final int UNIT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Sku.SkuPrice.FlatSubscriptionFee getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Sku.SkuPrice.FlatSubscriptionFee.Builder newBuilder()
newBuilder(Sku.SkuPrice.FlatSubscriptionFee prototype)
public static Sku.SkuPrice.FlatSubscriptionFee.Builder newBuilder(Sku.SkuPrice.FlatSubscriptionFee prototype)
public static Sku.SkuPrice.FlatSubscriptionFee parseDelimitedFrom(InputStream input)
public static Sku.SkuPrice.FlatSubscriptionFee parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Sku.SkuPrice.FlatSubscriptionFee parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Sku.SkuPrice.FlatSubscriptionFee parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Sku.SkuPrice.FlatSubscriptionFee parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Sku.SkuPrice.FlatSubscriptionFee parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Sku.SkuPrice.FlatSubscriptionFee parseFrom(CodedInputStream input)
public static Sku.SkuPrice.FlatSubscriptionFee parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Sku.SkuPrice.FlatSubscriptionFee parseFrom(InputStream input)
public static Sku.SkuPrice.FlatSubscriptionFee parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Sku.SkuPrice.FlatSubscriptionFee parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Sku.SkuPrice.FlatSubscriptionFee parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Sku.SkuPrice.FlatSubscriptionFee> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Sku.SkuPrice.FlatSubscriptionFee getDefaultInstanceForType()
getParserForType()
public Parser<Sku.SkuPrice.FlatSubscriptionFee> getParserForType()
Overrides
getPricePerUnit()
public Money getPricePerUnit()
Output only. The price per time unit the subscription is active.
.google.type.Money price_per_unit = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
com.google.type.Money |
The pricePerUnit.
|
getPricePerUnitOrBuilder()
public MoneyOrBuilder getPricePerUnitOrBuilder()
Output only. The price per time unit the subscription is active.
.google.type.Money price_per_unit = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
com.google.type.MoneyOrBuilder |
|
getPriceStructureCase()
public Sku.SkuPrice.FlatSubscriptionFee.PriceStructureCase getPriceStructureCase()
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getUnit()
Output only. The unit of the subscription SKU.
See https://ucum.org/ucum.html for the format of the price unit.
Since subscriptions are billed by duration, this will always be a time
unit. The price unit of a subscription SKU is not necessarily the same
as the subscription period of the corresponding StandardOffers.
Currently the unit is always months ('mo').
Additional time units may be supported in future.
The unit month ('mo') is a customary time unit and requires special
handling to account for the variable duration of months. A price may be
denominated in units of months, but the duration the subscription is
active is measured in metric time and customers are billed on that
basis. The exact hourly or per-second price can be calculated by
dividing the monthly price by the number of hours or seconds in the
desired month. A subscription active for N months is rarely billed
exactly N times the monthly price. This is intended and is not a
billing error.
string unit = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
String |
The unit.
|
getUnitBytes()
public ByteString getUnitBytes()
Output only. The unit of the subscription SKU.
See https://ucum.org/ucum.html for the format of the price unit.
Since subscriptions are billed by duration, this will always be a time
unit. The price unit of a subscription SKU is not necessarily the same
as the subscription period of the corresponding StandardOffers.
Currently the unit is always months ('mo').
Additional time units may be supported in future.
The unit month ('mo') is a customary time unit and requires special
handling to account for the variable duration of months. A price may be
denominated in units of months, but the duration the subscription is
active is measured in metric time and customers are billed on that
basis. The exact hourly or per-second price can be calculated by
dividing the monthly price by the number of hours or seconds in the
desired month. A subscription active for N months is rarely billed
exactly N times the monthly price. This is intended and is not a
billing error.
string unit = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
ByteString |
The bytes for unit.
|
hasPricePerUnit()
public boolean hasPricePerUnit()
Output only. The price per time unit the subscription is active.
.google.type.Money price_per_unit = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the pricePerUnit 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.FlatSubscriptionFee.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Sku.SkuPrice.FlatSubscriptionFee.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Sku.SkuPrice.FlatSubscriptionFee.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides