public final class AutomatedDiscounts extends GeneratedMessage implements AutomatedDiscountsOrBuilder
Information regarding Automated Discounts.
Protobuf type google.shopping.merchant.products.v1.AutomatedDiscounts
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
public static final int GAD_PRICE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int PRIOR_PRICE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int PRIOR_PRICE_PROGRESSIVE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static AutomatedDiscounts getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static AutomatedDiscounts.Builder newBuilder()
public static AutomatedDiscounts.Builder newBuilder(AutomatedDiscounts prototype)
public static AutomatedDiscounts parseDelimitedFrom(InputStream input)
public static AutomatedDiscounts parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AutomatedDiscounts parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static AutomatedDiscounts parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AutomatedDiscounts parseFrom(ByteString data)
public static AutomatedDiscounts parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AutomatedDiscounts parseFrom(CodedInputStream input)
public static AutomatedDiscounts parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AutomatedDiscounts parseFrom(InputStream input)
public static AutomatedDiscounts parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AutomatedDiscounts parseFrom(ByteBuffer data)
public static AutomatedDiscounts parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<AutomatedDiscounts> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
public AutomatedDiscounts getDefaultInstanceForType()
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 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 Parser<AutomatedDiscounts> getParserForType()
Overrides
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 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 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 int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public AutomatedDiscounts.Builder newBuilderForType()
protected AutomatedDiscounts.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public AutomatedDiscounts.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides