Interface PrivateOffer.SingleProductOffer.PriceModelOrBuilder (0.1.0)

public static interface PrivateOffer.SingleProductOffer.PriceModelOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCommitment()

public abstract PrivateOffer.SingleProductOffer.PriceModel.Commitment getCommitment()

Optional. The price configurations for the commitment based subscription. Must be unset when the base standard offer's price model includes subscription SKUs.

.google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel.Commitment commitment = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateOffer.SingleProductOffer.PriceModel.Commitment

The commitment.

getCommitmentOrBuilder()

public abstract PrivateOffer.SingleProductOffer.PriceModel.CommitmentOrBuilder getCommitmentOrBuilder()

Optional. The price configurations for the commitment based subscription. Must be unset when the base standard offer's price model includes subscription SKUs.

.google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel.Commitment commitment = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateOffer.SingleProductOffer.PriceModel.CommitmentOrBuilder

getFlatFee()

public abstract PrivateOffer.SingleProductOffer.PriceModel.FlatFee getFlatFee()

Optional. The price configurations for the flat fee subscription. Must be unset when the base standard offer's price model does not include subscription SKUs.

.google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel.FlatFee flat_fee = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateOffer.SingleProductOffer.PriceModel.FlatFee

The flatFee.

getFlatFeeOrBuilder()

public abstract PrivateOffer.SingleProductOffer.PriceModel.FlatFeeOrBuilder getFlatFeeOrBuilder()

Optional. The price configurations for the flat fee subscription. Must be unset when the base standard offer's price model does not include subscription SKUs.

.google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel.FlatFee flat_fee = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateOffer.SingleProductOffer.PriceModel.FlatFeeOrBuilder

getSubscriptionCase()

public abstract PrivateOffer.SingleProductOffer.PriceModel.SubscriptionCase getSubscriptionCase()
Returns
Type Description
PrivateOffer.SingleProductOffer.PriceModel.SubscriptionCase

getUsage()

public abstract PrivateOffer.SingleProductOffer.PriceModel.Usage getUsage()

Optional. The price configurations for the usage part. If this field is set, the Commitment.discount_percent must be unset. A private offer can apply a discount to all usage or to a usage commitment, but not both. Must be unset when the base standard offer's price model includes no usage SKUs.

.google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel.Usage usage = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateOffer.SingleProductOffer.PriceModel.Usage

The usage.

getUsageOrBuilder()

public abstract PrivateOffer.SingleProductOffer.PriceModel.UsageOrBuilder getUsageOrBuilder()

Optional. The price configurations for the usage part. If this field is set, the Commitment.discount_percent must be unset. A private offer can apply a discount to all usage or to a usage commitment, but not both. Must be unset when the base standard offer's price model includes no usage SKUs.

.google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel.Usage usage = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateOffer.SingleProductOffer.PriceModel.UsageOrBuilder

hasCommitment()

public abstract boolean hasCommitment()

Optional. The price configurations for the commitment based subscription. Must be unset when the base standard offer's price model includes subscription SKUs.

.google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel.Commitment commitment = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the commitment field is set.

hasFlatFee()

public abstract boolean hasFlatFee()

Optional. The price configurations for the flat fee subscription. Must be unset when the base standard offer's price model does not include subscription SKUs.

.google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel.FlatFee flat_fee = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the flatFee field is set.

hasUsage()

public abstract boolean hasUsage()

Optional. The price configurations for the usage part. If this field is set, the Commitment.discount_percent must be unset. A private offer can apply a discount to all usage or to a usage commitment, but not both. Must be unset when the base standard offer's price model includes no usage SKUs.

.google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel.Usage usage = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the usage field is set.