Class StandardOffer.PriceModel (0.1.0)

public static final class StandardOffer.PriceModel extends GeneratedMessage implements StandardOffer.PriceModelOrBuilder

Price model of the offer.

Protobuf type google.cloud.commerceproducer.v1beta.StandardOffer.PriceModel

Static Fields

FLAT_FEE_FIELD_NUMBER

public static final int FLAT_FEE_FIELD_NUMBER
Field Value
Type Description
int

USAGE_FIELD_NUMBER

public static final int USAGE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static StandardOffer.PriceModel getDefaultInstance()
Returns
Type Description
StandardOffer.PriceModel

getDescriptor()

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

newBuilder()

public static StandardOffer.PriceModel.Builder newBuilder()
Returns
Type Description
StandardOffer.PriceModel.Builder

newBuilder(StandardOffer.PriceModel prototype)

public static StandardOffer.PriceModel.Builder newBuilder(StandardOffer.PriceModel prototype)
Parameter
Name Description
prototype StandardOffer.PriceModel
Returns
Type Description
StandardOffer.PriceModel.Builder

parseDelimitedFrom(InputStream input)

public static StandardOffer.PriceModel parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StandardOffer.PriceModel
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StandardOffer.PriceModel parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StandardOffer.PriceModel
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static StandardOffer.PriceModel parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
StandardOffer.PriceModel
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static StandardOffer.PriceModel parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
StandardOffer.PriceModel
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StandardOffer.PriceModel parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StandardOffer.PriceModel
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StandardOffer.PriceModel parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
StandardOffer.PriceModel
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StandardOffer.PriceModel parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StandardOffer.PriceModel
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static StandardOffer.PriceModel parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StandardOffer.PriceModel
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StandardOffer.PriceModel parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StandardOffer.PriceModel
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static StandardOffer.PriceModel parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
StandardOffer.PriceModel
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StandardOffer.PriceModel parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StandardOffer.PriceModel
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<StandardOffer.PriceModel> parser()
Returns
Type Description
Parser<PriceModel>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public StandardOffer.PriceModel getDefaultInstanceForType()
Returns
Type Description
StandardOffer.PriceModel

getFlatFee()

public StandardOffer.PriceModel.FlatFeeSubscription getFlatFee()

Output only. Price configurations for the flat fee subscription.

.google.cloud.commerceproducer.v1beta.StandardOffer.PriceModel.FlatFeeSubscription flat_fee = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StandardOffer.PriceModel.FlatFeeSubscription

The flatFee.

getFlatFeeOrBuilder()

public StandardOffer.PriceModel.FlatFeeSubscriptionOrBuilder getFlatFeeOrBuilder()

Output only. Price configurations for the flat fee subscription.

.google.cloud.commerceproducer.v1beta.StandardOffer.PriceModel.FlatFeeSubscription flat_fee = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StandardOffer.PriceModel.FlatFeeSubscriptionOrBuilder

getParserForType()

public Parser<StandardOffer.PriceModel> getParserForType()
Returns
Type Description
Parser<PriceModel>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSubscriptionCase()

public StandardOffer.PriceModel.SubscriptionCase getSubscriptionCase()
Returns
Type Description
StandardOffer.PriceModel.SubscriptionCase

getUsage()

public StandardOffer.PriceModel.Usage getUsage()

Output only. Price configurations for the usage part.

.google.cloud.commerceproducer.v1beta.StandardOffer.PriceModel.Usage usage = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StandardOffer.PriceModel.Usage

The usage.

getUsageOrBuilder()

public StandardOffer.PriceModel.UsageOrBuilder getUsageOrBuilder()

Output only. Price configurations for the usage part.

.google.cloud.commerceproducer.v1beta.StandardOffer.PriceModel.Usage usage = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StandardOffer.PriceModel.UsageOrBuilder

hasFlatFee()

public boolean hasFlatFee()

Output only. Price configurations for the flat fee subscription.

.google.cloud.commerceproducer.v1beta.StandardOffer.PriceModel.FlatFeeSubscription flat_fee = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the flatFee field is set.

hasUsage()

public boolean hasUsage()

Output only. Price configurations for the usage part.

.google.cloud.commerceproducer.v1beta.StandardOffer.PriceModel.Usage usage = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the usage 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 StandardOffer.PriceModel.Builder newBuilderForType()
Returns
Type Description
StandardOffer.PriceModel.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected StandardOffer.PriceModel.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
StandardOffer.PriceModel.Builder
Overrides

toBuilder()

public StandardOffer.PriceModel.Builder toBuilder()
Returns
Type Description
StandardOffer.PriceModel.Builder

writeTo(CodedOutputStream output)

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