Class PrivateOffer.SingleProductOffer.StandardIntervalPrice.Builder (0.1.0)

public static final class PrivateOffer.SingleProductOffer.StandardIntervalPrice.Builder extends GeneratedMessage.Builder<PrivateOffer.SingleProductOffer.StandardIntervalPrice.Builder> implements PrivateOffer.SingleProductOffer.StandardIntervalPriceOrBuilder

Price configurations for offers with standard intervals.

Protobuf type google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.StandardIntervalPrice

Inheritance

java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PrivateOffer.SingleProductOffer.StandardIntervalPrice.Builder

Static Methods

getDescriptor()

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

Methods

build()

public PrivateOffer.SingleProductOffer.StandardIntervalPrice build()
Returns
Type Description
PrivateOffer.SingleProductOffer.StandardIntervalPrice

buildPartial()

public PrivateOffer.SingleProductOffer.StandardIntervalPrice buildPartial()
Returns
Type Description
PrivateOffer.SingleProductOffer.StandardIntervalPrice

clear()

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

clearPriceModel()

public PrivateOffer.SingleProductOffer.StandardIntervalPrice.Builder clearPriceModel()

Optional. The price model of the offer. Must be present to publish the offer.

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

Returns
Type Description
PrivateOffer.SingleProductOffer.StandardIntervalPrice.Builder

clearStandardInterval()

public PrivateOffer.SingleProductOffer.StandardIntervalPrice.Builder clearStandardInterval()

Optional. The standard interval of the offer. Must be present to publish unless the price model is usage-only.

.google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.StandardIntervalPrice.StandardInterval standard_interval = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateOffer.SingleProductOffer.StandardIntervalPrice.Builder

This builder for chaining.

getDefaultInstanceForType()

public PrivateOffer.SingleProductOffer.StandardIntervalPrice getDefaultInstanceForType()
Returns
Type Description
PrivateOffer.SingleProductOffer.StandardIntervalPrice

getDescriptorForType()

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

getPriceModel()

public PrivateOffer.SingleProductOffer.PriceModel getPriceModel()

Optional. The price model of the offer. Must be present to publish the offer.

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

Returns
Type Description
PrivateOffer.SingleProductOffer.PriceModel

The priceModel.

getPriceModelBuilder()

public PrivateOffer.SingleProductOffer.PriceModel.Builder getPriceModelBuilder()

Optional. The price model of the offer. Must be present to publish the offer.

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

Returns
Type Description
PrivateOffer.SingleProductOffer.PriceModel.Builder

getPriceModelOrBuilder()

public PrivateOffer.SingleProductOffer.PriceModelOrBuilder getPriceModelOrBuilder()

Optional. The price model of the offer. Must be present to publish the offer.

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

Returns
Type Description
PrivateOffer.SingleProductOffer.PriceModelOrBuilder

getStandardInterval()

public PrivateOffer.SingleProductOffer.StandardIntervalPrice.StandardInterval getStandardInterval()

Optional. The standard interval of the offer. Must be present to publish unless the price model is usage-only.

.google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.StandardIntervalPrice.StandardInterval standard_interval = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateOffer.SingleProductOffer.StandardIntervalPrice.StandardInterval

The standardInterval.

getStandardIntervalValue()

public int getStandardIntervalValue()

Optional. The standard interval of the offer. Must be present to publish unless the price model is usage-only.

.google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.StandardIntervalPrice.StandardInterval standard_interval = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for standardInterval.

hasPriceModel()

public boolean hasPriceModel()

Optional. The price model of the offer. Must be present to publish the offer.

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

Returns
Type Description
boolean

Whether the priceModel field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PrivateOffer.SingleProductOffer.StandardIntervalPrice other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePriceModel(PrivateOffer.SingleProductOffer.PriceModel value)

public PrivateOffer.SingleProductOffer.StandardIntervalPrice.Builder mergePriceModel(PrivateOffer.SingleProductOffer.PriceModel value)

Optional. The price model of the offer. Must be present to publish the offer.

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

Parameter
Name Description
value PrivateOffer.SingleProductOffer.PriceModel
Returns
Type Description
PrivateOffer.SingleProductOffer.StandardIntervalPrice.Builder

setPriceModel(PrivateOffer.SingleProductOffer.PriceModel value)

public PrivateOffer.SingleProductOffer.StandardIntervalPrice.Builder setPriceModel(PrivateOffer.SingleProductOffer.PriceModel value)

Optional. The price model of the offer. Must be present to publish the offer.

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

Parameter
Name Description
value PrivateOffer.SingleProductOffer.PriceModel
Returns
Type Description
PrivateOffer.SingleProductOffer.StandardIntervalPrice.Builder

setPriceModel(PrivateOffer.SingleProductOffer.PriceModel.Builder builderForValue)

public PrivateOffer.SingleProductOffer.StandardIntervalPrice.Builder setPriceModel(PrivateOffer.SingleProductOffer.PriceModel.Builder builderForValue)

Optional. The price model of the offer. Must be present to publish the offer.

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

Parameter
Name Description
builderForValue PrivateOffer.SingleProductOffer.PriceModel.Builder
Returns
Type Description
PrivateOffer.SingleProductOffer.StandardIntervalPrice.Builder

setStandardInterval(PrivateOffer.SingleProductOffer.StandardIntervalPrice.StandardInterval value)

public PrivateOffer.SingleProductOffer.StandardIntervalPrice.Builder setStandardInterval(PrivateOffer.SingleProductOffer.StandardIntervalPrice.StandardInterval value)

Optional. The standard interval of the offer. Must be present to publish unless the price model is usage-only.

.google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.StandardIntervalPrice.StandardInterval standard_interval = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PrivateOffer.SingleProductOffer.StandardIntervalPrice.StandardInterval

The standardInterval to set.

Returns
Type Description
PrivateOffer.SingleProductOffer.StandardIntervalPrice.Builder

This builder for chaining.

setStandardIntervalValue(int value)

public PrivateOffer.SingleProductOffer.StandardIntervalPrice.Builder setStandardIntervalValue(int value)

Optional. The standard interval of the offer. Must be present to publish unless the price model is usage-only.

.google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.StandardIntervalPrice.StandardInterval standard_interval = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for standardInterval to set.

Returns
Type Description
PrivateOffer.SingleProductOffer.StandardIntervalPrice.Builder

This builder for chaining.