Class LfpSale (0.6.0)

public final class LfpSale extends GeneratedMessageV3 implements LfpSaleOrBuilder

A sale for the merchant.

Protobuf type google.shopping.merchant.lfp.v1beta.LfpSale

Implements

LfpSaleOrBuilder

Static Fields

CONTENT_LANGUAGE_FIELD_NUMBER

public static final int CONTENT_LANGUAGE_FIELD_NUMBER
Field Value
Type Description
int

FEED_LABEL_FIELD_NUMBER

public static final int FEED_LABEL_FIELD_NUMBER
Field Value
Type Description
int

GTIN_FIELD_NUMBER

public static final int GTIN_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

OFFER_ID_FIELD_NUMBER

public static final int OFFER_ID_FIELD_NUMBER
Field Value
Type Description
int

PRICE_FIELD_NUMBER

public static final int PRICE_FIELD_NUMBER
Field Value
Type Description
int

QUANTITY_FIELD_NUMBER

public static final int QUANTITY_FIELD_NUMBER
Field Value
Type Description
int

REGION_CODE_FIELD_NUMBER

public static final int REGION_CODE_FIELD_NUMBER
Field Value
Type Description
int

SALE_TIME_FIELD_NUMBER

public static final int SALE_TIME_FIELD_NUMBER
Field Value
Type Description
int

STORE_CODE_FIELD_NUMBER

public static final int STORE_CODE_FIELD_NUMBER
Field Value
Type Description
int

TARGET_ACCOUNT_FIELD_NUMBER

public static final int TARGET_ACCOUNT_FIELD_NUMBER
Field Value
Type Description
int

UID_FIELD_NUMBER

public static final int UID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static LfpSale getDefaultInstance()
Returns
Type Description
LfpSale

getDescriptor()

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

newBuilder()

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

newBuilder(LfpSale prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getContentLanguage()

public String getContentLanguage()

Required. The two-letter ISO 639-1 language code for the item.

string content_language = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The contentLanguage.

getContentLanguageBytes()

public ByteString getContentLanguageBytes()

Required. The two-letter ISO 639-1 language code for the item.

string content_language = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for contentLanguage.

getDefaultInstanceForType()

public LfpSale getDefaultInstanceForType()
Returns
Type Description
LfpSale

getFeedLabel()

public String getFeedLabel()

Optional. The feed label for the product. If this is not set, it will default to regionCode.

optional string feed_label = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The feedLabel.

getFeedLabelBytes()

public ByteString getFeedLabelBytes()

Optional. The feed label for the product. If this is not set, it will default to regionCode.

optional string feed_label = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for feedLabel.

getGtin()

public String getGtin()

Required. The Global Trade Item Number of the sold product.

string gtin = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The gtin.

getGtinBytes()

public ByteString getGtinBytes()

Required. The Global Trade Item Number of the sold product.

string gtin = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for gtin.

getName()

public String getName()

Output only. Identifier. The name of the LfpSale resource. Format: accounts/{account}/lfpSales/{sale}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Identifier. The name of the LfpSale resource. Format: accounts/{account}/lfpSales/{sale}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getOfferId()

public String getOfferId()

Required. A unique identifier for the product. If both inventories and sales are submitted for a merchant, this id should match for the same product.

Note: if the merchant sells the same product new and used, they should have different IDs.

string offer_id = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The offerId.

getOfferIdBytes()

public ByteString getOfferIdBytes()

Required. A unique identifier for the product. If both inventories and sales are submitted for a merchant, this id should match for the same product.

Note: if the merchant sells the same product new and used, they should have different IDs.

string offer_id = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for offerId.

getParserForType()

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

getPrice()

public Price getPrice()

Required. The unit price of the product.

.google.shopping.type.Price price = 8 [(.google.api.field_behavior) = REQUIRED];

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

The price.

getPriceOrBuilder()

public PriceOrBuilder getPriceOrBuilder()

Required. The unit price of the product.

.google.shopping.type.Price price = 8 [(.google.api.field_behavior) = REQUIRED];

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

getQuantity()

public long getQuantity()

Required. The relative change of the available quantity. Negative for items returned.

int64 quantity = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The quantity.

getRegionCode()

public String getRegionCode()

Required. The CLDR territory code for the country where the product is sold.

string region_code = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The regionCode.

getRegionCodeBytes()

public ByteString getRegionCodeBytes()

Required. The CLDR territory code for the country where the product is sold.

string region_code = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for regionCode.

getSaleTime()

public Timestamp getSaleTime()

Required. The timestamp for the sale.

.google.protobuf.Timestamp sale_time = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The saleTime.

getSaleTimeOrBuilder()

public TimestampOrBuilder getSaleTimeOrBuilder()

Required. The timestamp for the sale.

.google.protobuf.Timestamp sale_time = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStoreCode()

public String getStoreCode()

Required. The identifier of the merchant's store. Either a storeCode inserted through the API or the code of the store in the Business Profile.

string store_code = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The storeCode.

getStoreCodeBytes()

public ByteString getStoreCodeBytes()

Required. The identifier of the merchant's store. Either a storeCode inserted through the API or the code of the store in the Business Profile.

string store_code = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for storeCode.

getTargetAccount()

public long getTargetAccount()

Required. The Merchant Center ID of the merchant to submit the sale for.

int64 target_account = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The targetAccount.

getUid()

public String getUid()

Output only. System generated globally unique ID for the LfpSale.

optional string uid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. System generated globally unique ID for the LfpSale.

optional string uid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for uid.

hasFeedLabel()

public boolean hasFeedLabel()

Optional. The feed label for the product. If this is not set, it will default to regionCode.

optional string feed_label = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the feedLabel field is set.

hasPrice()

public boolean hasPrice()

Required. The unit price of the product.

.google.shopping.type.Price price = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the price field is set.

hasSaleTime()

public boolean hasSaleTime()

Required. The timestamp for the sale.

.google.protobuf.Timestamp sale_time = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the saleTime field is set.

hasUid()

public boolean hasUid()

Output only. System generated globally unique ID for the LfpSale.

optional string uid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
boolean

Whether the uid 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 LfpSale.Builder newBuilderForType()
Returns
Type Description
LfpSale.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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