public final class LfpSale extends GeneratedMessageV3 implements LfpSaleOrBuilder
A sale for the merchant.
Protobuf type google.shopping.merchant.lfp.v1beta.LfpSale
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CONTENT_LANGUAGE_FIELD_NUMBER
public static final int CONTENT_LANGUAGE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int FEED_LABEL_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int GTIN_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int OFFER_ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int PRICE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int QUANTITY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int REGION_CODE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SALE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int STORE_CODE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int TARGET_ACCOUNT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int UID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static LfpSale getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static LfpSale.Builder newBuilder()
public static LfpSale.Builder newBuilder(LfpSale prototype)
Parameter |
Name |
Description |
prototype |
LfpSale
|
public static LfpSale parseDelimitedFrom(InputStream input)
public static LfpSale parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static LfpSale parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static LfpSale parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LfpSale parseFrom(ByteString data)
public static LfpSale parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LfpSale parseFrom(CodedInputStream input)
public static LfpSale parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static LfpSale parseFrom(InputStream input)
public static LfpSale parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static LfpSale parseFrom(ByteBuffer data)
public static LfpSale parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<LfpSale> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
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.
|
public LfpSale getDefaultInstanceForType()
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.
|
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.
|
Required. The Global Trade Item Number of the sold product.
string gtin = 7 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The gtin.
|
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.
|
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.
|
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.
|
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.
|
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.
|
public Parser<LfpSale> getParserForType()
Overrides
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.
|
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 |
|
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.
|
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.
|
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.
|
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.
|
public TimestampOrBuilder getSaleTimeOrBuilder()
Required. The timestamp for the sale.
.google.protobuf.Timestamp sale_time = 10 [(.google.api.field_behavior) = REQUIRED];
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public LfpSale.Builder newBuilderForType()
protected LfpSale.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public LfpSale.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides