Class AutomatedDiscounts.Builder (1.13.0)

public static final class AutomatedDiscounts.Builder extends GeneratedMessage.Builder<AutomatedDiscounts.Builder> implements AutomatedDiscountsOrBuilder

Information regarding Automated Discounts.

Protobuf type google.shopping.merchant.products.v1beta.AutomatedDiscounts

Static Methods

getDescriptor()

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

Methods

build()

public AutomatedDiscounts build()
Returns
Type Description
AutomatedDiscounts

buildPartial()

public AutomatedDiscounts buildPartial()
Returns
Type Description
AutomatedDiscounts

clear()

public AutomatedDiscounts.Builder clear()
Returns
Type Description
AutomatedDiscounts.Builder
Overrides

clearGadPrice()

public AutomatedDiscounts.Builder clearGadPrice()

The current sale price for products with a price optimized using Google Automated Discounts (GAD). Absent if the information about the GAD_price of the product is not available.

.google.shopping.type.Price gad_price = 3;

Returns
Type Description
AutomatedDiscounts.Builder

clearPriorPrice()

public AutomatedDiscounts.Builder clearPriorPrice()

The price prior to the application of the first price reduction. Absent if the information about the prior price of the product is not available.

.google.shopping.type.Price prior_price = 1;

Returns
Type Description
AutomatedDiscounts.Builder

clearPriorPriceProgressive()

public AutomatedDiscounts.Builder clearPriorPriceProgressive()

The price prior to the application of consecutive price reductions. Absent if the information about the prior price of the product is not available.

.google.shopping.type.Price prior_price_progressive = 2;

Returns
Type Description
AutomatedDiscounts.Builder

getDefaultInstanceForType()

public AutomatedDiscounts getDefaultInstanceForType()
Returns
Type Description
AutomatedDiscounts

getDescriptorForType()

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

getGadPrice()

public Price getGadPrice()

The current sale price for products with a price optimized using Google Automated Discounts (GAD). Absent if the information about the GAD_price of the product is not available.

.google.shopping.type.Price gad_price = 3;

Returns
Type Description
com.google.shopping.type.Price

The gadPrice.

getGadPriceBuilder()

public Price.Builder getGadPriceBuilder()

The current sale price for products with a price optimized using Google Automated Discounts (GAD). Absent if the information about the GAD_price of the product is not available.

.google.shopping.type.Price gad_price = 3;

Returns
Type Description
com.google.shopping.type.Price.Builder

getGadPriceOrBuilder()

public PriceOrBuilder getGadPriceOrBuilder()

The current sale price for products with a price optimized using Google Automated Discounts (GAD). Absent if the information about the GAD_price of the product is not available.

.google.shopping.type.Price gad_price = 3;

Returns
Type Description
com.google.shopping.type.PriceOrBuilder

getPriorPrice()

public Price getPriorPrice()

The price prior to the application of the first price reduction. Absent if the information about the prior price of the product is not available.

.google.shopping.type.Price prior_price = 1;

Returns
Type Description
com.google.shopping.type.Price

The priorPrice.

getPriorPriceBuilder()

public Price.Builder getPriorPriceBuilder()

The price prior to the application of the first price reduction. Absent if the information about the prior price of the product is not available.

.google.shopping.type.Price prior_price = 1;

Returns
Type Description
com.google.shopping.type.Price.Builder

getPriorPriceOrBuilder()

public PriceOrBuilder getPriorPriceOrBuilder()

The price prior to the application of the first price reduction. Absent if the information about the prior price of the product is not available.

.google.shopping.type.Price prior_price = 1;

Returns
Type Description
com.google.shopping.type.PriceOrBuilder

getPriorPriceProgressive()

public Price getPriorPriceProgressive()

The price prior to the application of consecutive price reductions. Absent if the information about the prior price of the product is not available.

.google.shopping.type.Price prior_price_progressive = 2;

Returns
Type Description
com.google.shopping.type.Price

The priorPriceProgressive.

getPriorPriceProgressiveBuilder()

public Price.Builder getPriorPriceProgressiveBuilder()

The price prior to the application of consecutive price reductions. Absent if the information about the prior price of the product is not available.

.google.shopping.type.Price prior_price_progressive = 2;

Returns
Type Description
com.google.shopping.type.Price.Builder

getPriorPriceProgressiveOrBuilder()

public PriceOrBuilder getPriorPriceProgressiveOrBuilder()

The price prior to the application of consecutive price reductions. Absent if the information about the prior price of the product is not available.

.google.shopping.type.Price prior_price_progressive = 2;

Returns
Type Description
com.google.shopping.type.PriceOrBuilder

hasGadPrice()

public boolean hasGadPrice()

The current sale price for products with a price optimized using Google Automated Discounts (GAD). Absent if the information about the GAD_price of the product is not available.

.google.shopping.type.Price gad_price = 3;

Returns
Type Description
boolean

Whether the gadPrice field is set.

hasPriorPrice()

public boolean hasPriorPrice()

The price prior to the application of the first price reduction. Absent if the information about the prior price of the product is not available.

.google.shopping.type.Price prior_price = 1;

Returns
Type Description
boolean

Whether the priorPrice field is set.

hasPriorPriceProgressive()

public boolean hasPriorPriceProgressive()

The price prior to the application of consecutive price reductions. Absent if the information about the prior price of the product is not available.

.google.shopping.type.Price prior_price_progressive = 2;

Returns
Type Description
boolean

Whether the priorPriceProgressive field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(AutomatedDiscounts other)

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

mergeGadPrice(Price value)

public AutomatedDiscounts.Builder mergeGadPrice(Price value)

The current sale price for products with a price optimized using Google Automated Discounts (GAD). Absent if the information about the GAD_price of the product is not available.

.google.shopping.type.Price gad_price = 3;

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
AutomatedDiscounts.Builder

mergePriorPrice(Price value)

public AutomatedDiscounts.Builder mergePriorPrice(Price value)

The price prior to the application of the first price reduction. Absent if the information about the prior price of the product is not available.

.google.shopping.type.Price prior_price = 1;

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
AutomatedDiscounts.Builder

mergePriorPriceProgressive(Price value)

public AutomatedDiscounts.Builder mergePriorPriceProgressive(Price value)

The price prior to the application of consecutive price reductions. Absent if the information about the prior price of the product is not available.

.google.shopping.type.Price prior_price_progressive = 2;

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
AutomatedDiscounts.Builder

setGadPrice(Price value)

public AutomatedDiscounts.Builder setGadPrice(Price value)

The current sale price for products with a price optimized using Google Automated Discounts (GAD). Absent if the information about the GAD_price of the product is not available.

.google.shopping.type.Price gad_price = 3;

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
AutomatedDiscounts.Builder

setGadPrice(Price.Builder builderForValue)

public AutomatedDiscounts.Builder setGadPrice(Price.Builder builderForValue)

The current sale price for products with a price optimized using Google Automated Discounts (GAD). Absent if the information about the GAD_price of the product is not available.

.google.shopping.type.Price gad_price = 3;

Parameter
Name Description
builderForValue com.google.shopping.type.Price.Builder
Returns
Type Description
AutomatedDiscounts.Builder

setPriorPrice(Price value)

public AutomatedDiscounts.Builder setPriorPrice(Price value)

The price prior to the application of the first price reduction. Absent if the information about the prior price of the product is not available.

.google.shopping.type.Price prior_price = 1;

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
AutomatedDiscounts.Builder

setPriorPrice(Price.Builder builderForValue)

public AutomatedDiscounts.Builder setPriorPrice(Price.Builder builderForValue)

The price prior to the application of the first price reduction. Absent if the information about the prior price of the product is not available.

.google.shopping.type.Price prior_price = 1;

Parameter
Name Description
builderForValue com.google.shopping.type.Price.Builder
Returns
Type Description
AutomatedDiscounts.Builder

setPriorPriceProgressive(Price value)

public AutomatedDiscounts.Builder setPriorPriceProgressive(Price value)

The price prior to the application of consecutive price reductions. Absent if the information about the prior price of the product is not available.

.google.shopping.type.Price prior_price_progressive = 2;

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
AutomatedDiscounts.Builder

setPriorPriceProgressive(Price.Builder builderForValue)

public AutomatedDiscounts.Builder setPriorPriceProgressive(Price.Builder builderForValue)

The price prior to the application of consecutive price reductions. Absent if the information about the prior price of the product is not available.

.google.shopping.type.Price prior_price_progressive = 2;

Parameter
Name Description
builderForValue com.google.shopping.type.Price.Builder
Returns
Type Description
AutomatedDiscounts.Builder