Interface LfpInventoryOrBuilder (0.1.0)

public interface LfpInventoryOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAvailability()

public abstract String getAvailability()

Required. Availability of the product at this store. For accepted attribute values, see the local product inventory feed specification

string availability = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The availability.

getAvailabilityBytes()

public abstract ByteString getAvailabilityBytes()

Required. Availability of the product at this store. For accepted attribute values, see the local product inventory feed specification

string availability = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for availability.

getCollectionTime()

public abstract 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.

getCollectionTimeOrBuilder()

public abstract 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];

Returns
Type Description
TimestampOrBuilder

getContentLanguage()

public abstract 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 abstract 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.

getFeedLabel()

public abstract 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.

getFeedLabelBytes()

public abstract 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.

getGtin()

public abstract String getGtin()

Optional. The Global Trade Item Number of the product.

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

Returns
Type Description
String

The gtin.

getGtinBytes()

public abstract 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.

getName()

public abstract String getName()

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.

getNameBytes()

public abstract 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.

getOfferId()

public abstract 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.

getOfferIdBytes()

public abstract 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.

getPickupMethod()

public abstract 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 feed specification.

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

Returns
Type Description
String

The pickupMethod.

getPickupMethodBytes()

public abstract 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 feed specification.

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

Returns
Type Description
ByteString

The bytes for pickupMethod.

getPickupSla()

public abstract 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 feed specification.

optional string pickup_sla = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The pickupSla.

getPickupSlaBytes()

public abstract 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 feed specification.

optional string pickup_sla = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for pickupSla.

getPrice()

public abstract Price getPrice()

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.

getPriceOrBuilder()

public abstract 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

getQuantity()

public abstract 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.

getRegionCode()

public abstract 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 abstract 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.

getStoreCode()

public abstract 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.

getStoreCodeBytes()

public abstract 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.

getTargetAccount()

public abstract 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.

hasCollectionTime()

public abstract 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.

hasFeedLabel()

public abstract 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.

hasGtin()

public abstract boolean hasGtin()

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.

hasPickupMethod()

public abstract 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 feed specification.

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

Returns
Type Description
boolean

Whether the pickupMethod field is set.

hasPickupSla()

public abstract 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 feed specification.

optional string pickup_sla = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the pickupSla field is set.

hasPrice()

public abstract 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.

hasQuantity()

public abstract 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.