public static final class AutomatedDiscounts.Builder extends GeneratedMessageV3.Builder<AutomatedDiscounts.Builder> implements AutomatedDiscountsOrBuilder
Information regarding Automated Discounts.
Protobuf type google.shopping.merchant.products.v1beta.AutomatedDiscounts
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public AutomatedDiscounts.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public AutomatedDiscounts build()
public AutomatedDiscounts buildPartial()
public AutomatedDiscounts.Builder clear()
Overrides
public AutomatedDiscounts.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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;
public AutomatedDiscounts.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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;
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;
public AutomatedDiscounts.Builder clone()
Overrides
public AutomatedDiscounts getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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 |
|
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 |
|
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.
|
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 |
|
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 |
|
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.
|
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 |
|
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 |
|
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.
|
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public AutomatedDiscounts.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public AutomatedDiscounts.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public AutomatedDiscounts.Builder mergeFrom(AutomatedDiscounts other)
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
|
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
|
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
|
public final AutomatedDiscounts.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public AutomatedDiscounts.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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
|
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
|
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
|
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
|
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
|
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
|
public AutomatedDiscounts.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final AutomatedDiscounts.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides