Class AutomatedDiscounts (0.18.0)

public final class AutomatedDiscounts extends GeneratedMessageV3 implements AutomatedDiscountsOrBuilder

Information regarding Automated Discounts.

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

Static Fields

GAD_PRICE_FIELD_NUMBER

public static final int GAD_PRICE_FIELD_NUMBER
Field Value
Type Description
int

PRIOR_PRICE_FIELD_NUMBER

public static final int PRIOR_PRICE_FIELD_NUMBER
Field Value
Type Description
int

PRIOR_PRICE_PROGRESSIVE_FIELD_NUMBER

public static final int PRIOR_PRICE_PROGRESSIVE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AutomatedDiscounts getDefaultInstance()
Returns
Type Description
AutomatedDiscounts

getDescriptor()

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

newBuilder()

public static AutomatedDiscounts.Builder newBuilder()
Returns
Type Description
AutomatedDiscounts.Builder

newBuilder(AutomatedDiscounts prototype)

public static AutomatedDiscounts.Builder newBuilder(AutomatedDiscounts prototype)
Parameter
Name Description
prototype AutomatedDiscounts
Returns
Type Description
AutomatedDiscounts.Builder

parseDelimitedFrom(InputStream input)

public static AutomatedDiscounts parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AutomatedDiscounts
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AutomatedDiscounts parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutomatedDiscounts
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AutomatedDiscounts parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AutomatedDiscounts
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AutomatedDiscounts parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutomatedDiscounts
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AutomatedDiscounts parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AutomatedDiscounts
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AutomatedDiscounts parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutomatedDiscounts
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AutomatedDiscounts parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AutomatedDiscounts
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AutomatedDiscounts parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutomatedDiscounts
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AutomatedDiscounts parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AutomatedDiscounts
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AutomatedDiscounts parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutomatedDiscounts
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AutomatedDiscounts parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AutomatedDiscounts
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AutomatedDiscounts parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutomatedDiscounts
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AutomatedDiscounts> parser()
Returns
Type Description
Parser<AutomatedDiscounts>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public AutomatedDiscounts getDefaultInstanceForType()
Returns
Type Description
AutomatedDiscounts

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.

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

getParserForType()

public Parser<AutomatedDiscounts> getParserForType()
Returns
Type Description
Parser<AutomatedDiscounts>
Overrides

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.

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AutomatedDiscounts.Builder newBuilderForType()
Returns
Type Description
AutomatedDiscounts.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AutomatedDiscounts.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AutomatedDiscounts.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AutomatedDiscounts.Builder toBuilder()
Returns
Type Description
AutomatedDiscounts.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException