public final class LfpInventory extends GeneratedMessageV3 implements LfpInventoryOrBuilder
Local Inventory for the merchant.
Protobuf type google.shopping.merchant.lfp.v1beta.LfpInventory
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
public static final int AVAILABILITY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int COLLECTION_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
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 PICKUP_METHOD_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int PICKUP_SLA_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 STORE_CODE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int TARGET_ACCOUNT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static LfpInventory getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static LfpInventory.Builder newBuilder()
public static LfpInventory.Builder newBuilder(LfpInventory prototype)
public static LfpInventory parseDelimitedFrom(InputStream input)
public static LfpInventory parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static LfpInventory parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static LfpInventory parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LfpInventory parseFrom(ByteString data)
public static LfpInventory parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LfpInventory parseFrom(CodedInputStream input)
public static LfpInventory parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static LfpInventory parseFrom(InputStream input)
public static LfpInventory parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static LfpInventory parseFrom(ByteBuffer data)
public static LfpInventory parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<LfpInventory> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public String getAvailability()
Returns |
Type |
Description |
String |
The availability.
|
public ByteString getAvailabilityBytes()
Returns |
Type |
Description |
ByteString |
The bytes for availability.
|
public Timestamp getCollectionTime()
Optional. The time when the inventory is collected. If not set, it will be
set to the time when the inventory is submitted.
.google.protobuf.Timestamp collection_time = 11 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
Timestamp |
The collectionTime.
|
public TimestampOrBuilder getCollectionTimeOrBuilder()
Optional. The time when the inventory is collected. If not set, it will be
set to the time when the inventory is submitted.
.google.protobuf.Timestamp collection_time = 11 [(.google.api.field_behavior) = OPTIONAL];
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 LfpInventory 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 = 14 [(.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 = 14 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for feedLabel.
|
Optional. The Global Trade Item Number of the product.
optional string gtin = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The gtin.
|
public ByteString getGtinBytes()
Optional. The Global Trade Item Number of the product.
optional string gtin = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for gtin.
|
Output only. Identifier. The name for the LfpInventory
resource.
Format:
accounts/{account}/lfpInventories/{target_merchant}~{store_code}~{offer}
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 for the LfpInventory
resource.
Format:
accounts/{account}/lfpInventories/{target_merchant}~{store_code}~{offer}
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. Immutable. 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, (.google.api.field_behavior) = IMMUTABLE];
Returns |
Type |
Description |
String |
The offerId.
|
public ByteString getOfferIdBytes()
Required. Immutable. 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, (.google.api.field_behavior) = IMMUTABLE];
Returns |
Type |
Description |
ByteString |
The bytes for offerId.
|
public Parser<LfpInventory> getParserForType()
Overrides
public String getPickupMethod()
Optional. Supported pickup method for this offer. Unless the value is "not
supported", this field must be submitted together with pickupSla
. For
accepted attribute values, see the local product inventory data
specification.
optional string pickup_method = 12 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The pickupMethod.
|
public ByteString getPickupMethodBytes()
Optional. Supported pickup method for this offer. Unless the value is "not
supported", this field must be submitted together with pickupSla
. For
accepted attribute values, see the local product inventory data
specification.
optional string pickup_method = 12 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for pickupMethod.
|
public String getPickupSla()
Optional. Expected date that an order will be ready for pickup relative to
the order date. Must be submitted together with pickupMethod
. For
accepted attribute values, see the local product inventory data
specification.
optional string pickup_sla = 13 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The pickupSla.
|
public ByteString getPickupSlaBytes()
Optional. Expected date that an order will be ready for pickup relative to
the order date. Must be submitted together with pickupMethod
. For
accepted attribute values, see the local product inventory data
specification.
optional string pickup_sla = 13 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for pickupSla.
|
Optional. The current price of the product.
.google.shopping.type.Price price = 8 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
com.google.shopping.type.Price |
The price.
|
public PriceOrBuilder getPriceOrBuilder()
Optional. The current price of the product.
.google.shopping.type.Price price = 8 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
com.google.shopping.type.PriceOrBuilder |
|
public long getQuantity()
Optional. Quantity of the product available at this store. Must be greater
than or equal to zero.
optional int64 quantity = 10 [(.google.api.field_behavior) = OPTIONAL];
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 int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
public String getStoreCode()
Required. The identifier of the merchant's store. Either the store code
inserted through InsertLfpStore
or the store code 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 the store code
inserted through InsertLfpStore
or the store code 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 inventory
for.
int64 target_account = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
long |
The targetAccount.
|
public boolean hasCollectionTime()
Optional. The time when the inventory is collected. If not set, it will be
set to the time when the inventory is submitted.
.google.protobuf.Timestamp collection_time = 11 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the collectionTime field is set.
|
public boolean hasFeedLabel()
Optional. The feed
label
for the product. If this is not set, it will default to regionCode
.
optional string feed_label = 14 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the feedLabel field is set.
|
Optional. The Global Trade Item Number of the product.
optional string gtin = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the gtin field is set.
|
public boolean hasPickupMethod()
Optional. Supported pickup method for this offer. Unless the value is "not
supported", this field must be submitted together with pickupSla
. For
accepted attribute values, see the local product inventory data
specification.
optional string pickup_method = 12 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the pickupMethod field is set.
|
public boolean hasPickupSla()
Optional. Expected date that an order will be ready for pickup relative to
the order date. Must be submitted together with pickupMethod
. For
accepted attribute values, see the local product inventory data
specification.
optional string pickup_sla = 13 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the pickupSla field is set.
|
public boolean hasPrice()
Optional. The current price of the product.
.google.shopping.type.Price price = 8 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the price field is set.
|
public boolean hasQuantity()
Optional. Quantity of the product available at this store. Must be greater
than or equal to zero.
optional int64 quantity = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the quantity field is set.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public LfpInventory.Builder newBuilderForType()
protected LfpInventory.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public LfpInventory.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides