Class PrivateOffer.SingleProductOffer.PriceModel.FlatFee.Builder (0.1.0)

public static final class PrivateOffer.SingleProductOffer.PriceModel.FlatFee.Builder extends GeneratedMessage.Builder<PrivateOffer.SingleProductOffer.PriceModel.FlatFee.Builder> implements PrivateOffer.SingleProductOffer.PriceModel.FlatFeeOrBuilder

The price configurations for the flat fee subscriptions.

Protobuf type google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel.FlatFee

Static Methods

getDescriptor()

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

Methods

build()

public PrivateOffer.SingleProductOffer.PriceModel.FlatFee build()
Returns
Type Description
PrivateOffer.SingleProductOffer.PriceModel.FlatFee

buildPartial()

public PrivateOffer.SingleProductOffer.PriceModel.FlatFee buildPartial()
Returns
Type Description
PrivateOffer.SingleProductOffer.PriceModel.FlatFee

clear()

public PrivateOffer.SingleProductOffer.PriceModel.FlatFee.Builder clear()
Returns
Type Description
PrivateOffer.SingleProductOffer.PriceModel.FlatFee.Builder
Overrides

clearFlatFeeOverride()

public PrivateOffer.SingleProductOffer.PriceModel.FlatFee.Builder clearFlatFeeOverride()

Optional. Flat fee overriding the default flat fee in the base standard offer. Value cannot be negative. The currency must be "USD" and precision is limited to cents. Must be present to publish the offer, if the parent message is set. The maximum allowed value is 1,000,000,000 USD.

.google.type.Money flat_fee_override = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateOffer.SingleProductOffer.PriceModel.FlatFee.Builder

getDefaultInstanceForType()

public PrivateOffer.SingleProductOffer.PriceModel.FlatFee getDefaultInstanceForType()
Returns
Type Description
PrivateOffer.SingleProductOffer.PriceModel.FlatFee

getDescriptorForType()

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

getFlatFeeOverride()

public Money getFlatFeeOverride()

Optional. Flat fee overriding the default flat fee in the base standard offer. Value cannot be negative. The currency must be "USD" and precision is limited to cents. Must be present to publish the offer, if the parent message is set. The maximum allowed value is 1,000,000,000 USD.

.google.type.Money flat_fee_override = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.Money

The flatFeeOverride.

getFlatFeeOverrideBuilder()

public Money.Builder getFlatFeeOverrideBuilder()

Optional. Flat fee overriding the default flat fee in the base standard offer. Value cannot be negative. The currency must be "USD" and precision is limited to cents. Must be present to publish the offer, if the parent message is set. The maximum allowed value is 1,000,000,000 USD.

.google.type.Money flat_fee_override = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.Money.Builder

getFlatFeeOverrideOrBuilder()

public MoneyOrBuilder getFlatFeeOverrideOrBuilder()

Optional. Flat fee overriding the default flat fee in the base standard offer. Value cannot be negative. The currency must be "USD" and precision is limited to cents. Must be present to publish the offer, if the parent message is set. The maximum allowed value is 1,000,000,000 USD.

.google.type.Money flat_fee_override = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.MoneyOrBuilder

hasFlatFeeOverride()

public boolean hasFlatFeeOverride()

Optional. Flat fee overriding the default flat fee in the base standard offer. Value cannot be negative. The currency must be "USD" and precision is limited to cents. Must be present to publish the offer, if the parent message is set. The maximum allowed value is 1,000,000,000 USD.

.google.type.Money flat_fee_override = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the flatFeeOverride field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFlatFeeOverride(Money value)

public PrivateOffer.SingleProductOffer.PriceModel.FlatFee.Builder mergeFlatFeeOverride(Money value)

Optional. Flat fee overriding the default flat fee in the base standard offer. Value cannot be negative. The currency must be "USD" and precision is limited to cents. Must be present to publish the offer, if the parent message is set. The maximum allowed value is 1,000,000,000 USD.

.google.type.Money flat_fee_override = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
PrivateOffer.SingleProductOffer.PriceModel.FlatFee.Builder

mergeFrom(PrivateOffer.SingleProductOffer.PriceModel.FlatFee other)

public PrivateOffer.SingleProductOffer.PriceModel.FlatFee.Builder mergeFrom(PrivateOffer.SingleProductOffer.PriceModel.FlatFee other)
Parameter
Name Description
other PrivateOffer.SingleProductOffer.PriceModel.FlatFee
Returns
Type Description
PrivateOffer.SingleProductOffer.PriceModel.FlatFee.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public PrivateOffer.SingleProductOffer.PriceModel.FlatFee.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PrivateOffer.SingleProductOffer.PriceModel.FlatFee.Builder
Overrides

setFlatFeeOverride(Money value)

public PrivateOffer.SingleProductOffer.PriceModel.FlatFee.Builder setFlatFeeOverride(Money value)

Optional. Flat fee overriding the default flat fee in the base standard offer. Value cannot be negative. The currency must be "USD" and precision is limited to cents. Must be present to publish the offer, if the parent message is set. The maximum allowed value is 1,000,000,000 USD.

.google.type.Money flat_fee_override = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
PrivateOffer.SingleProductOffer.PriceModel.FlatFee.Builder

setFlatFeeOverride(Money.Builder builderForValue)

public PrivateOffer.SingleProductOffer.PriceModel.FlatFee.Builder setFlatFeeOverride(Money.Builder builderForValue)

Optional. Flat fee overriding the default flat fee in the base standard offer. Value cannot be negative. The currency must be "USD" and precision is limited to cents. Must be present to publish the offer, if the parent message is set. The maximum allowed value is 1,000,000,000 USD.

.google.type.Money flat_fee_override = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue com.google.type.Money.Builder
Returns
Type Description
PrivateOffer.SingleProductOffer.PriceModel.FlatFee.Builder