Class StandardOffer.PriceModel.Builder (0.1.0)

public static final class StandardOffer.PriceModel.Builder extends GeneratedMessage.Builder<StandardOffer.PriceModel.Builder> implements StandardOffer.PriceModelOrBuilder

Price model of the offer.

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

Static Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

public StandardOffer.PriceModel.Builder clear()
Returns
Type Description
StandardOffer.PriceModel.Builder
Overrides

clearFlatFee()

public StandardOffer.PriceModel.Builder clearFlatFee()

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.Builder

clearSubscription()

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

clearUsage()

public StandardOffer.PriceModel.Builder clearUsage()

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.Builder

getDefaultInstanceForType()

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

getDescriptorForType()

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

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.

getFlatFeeBuilder()

public StandardOffer.PriceModel.FlatFeeSubscription.Builder getFlatFeeBuilder()

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.Builder

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

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.

getUsageBuilder()

public StandardOffer.PriceModel.Usage.Builder getUsageBuilder()

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.Builder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFlatFee(StandardOffer.PriceModel.FlatFeeSubscription value)

public StandardOffer.PriceModel.Builder mergeFlatFee(StandardOffer.PriceModel.FlatFeeSubscription value)

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];

Parameter
Name Description
value StandardOffer.PriceModel.FlatFeeSubscription
Returns
Type Description
StandardOffer.PriceModel.Builder

mergeFrom(StandardOffer.PriceModel other)

public StandardOffer.PriceModel.Builder mergeFrom(StandardOffer.PriceModel other)
Parameter
Name Description
other StandardOffer.PriceModel
Returns
Type Description
StandardOffer.PriceModel.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StandardOffer.PriceModel.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StandardOffer.PriceModel.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StandardOffer.PriceModel.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StandardOffer.PriceModel.Builder
Overrides

mergeUsage(StandardOffer.PriceModel.Usage value)

public StandardOffer.PriceModel.Builder mergeUsage(StandardOffer.PriceModel.Usage value)

Output only. Price configurations for the usage part.

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

Parameter
Name Description
value StandardOffer.PriceModel.Usage
Returns
Type Description
StandardOffer.PriceModel.Builder

setFlatFee(StandardOffer.PriceModel.FlatFeeSubscription value)

public StandardOffer.PriceModel.Builder setFlatFee(StandardOffer.PriceModel.FlatFeeSubscription value)

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];

Parameter
Name Description
value StandardOffer.PriceModel.FlatFeeSubscription
Returns
Type Description
StandardOffer.PriceModel.Builder

setFlatFee(StandardOffer.PriceModel.FlatFeeSubscription.Builder builderForValue)

public StandardOffer.PriceModel.Builder setFlatFee(StandardOffer.PriceModel.FlatFeeSubscription.Builder builderForValue)

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];

Parameter
Name Description
builderForValue StandardOffer.PriceModel.FlatFeeSubscription.Builder
Returns
Type Description
StandardOffer.PriceModel.Builder

setUsage(StandardOffer.PriceModel.Usage value)

public StandardOffer.PriceModel.Builder setUsage(StandardOffer.PriceModel.Usage value)

Output only. Price configurations for the usage part.

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

Parameter
Name Description
value StandardOffer.PriceModel.Usage
Returns
Type Description
StandardOffer.PriceModel.Builder

setUsage(StandardOffer.PriceModel.Usage.Builder builderForValue)

public StandardOffer.PriceModel.Builder setUsage(StandardOffer.PriceModel.Usage.Builder builderForValue)

Output only. Price configurations for the usage part.

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

Parameter
Name Description
builderForValue StandardOffer.PriceModel.Usage.Builder
Returns
Type Description
StandardOffer.PriceModel.Builder