Class LfpInventory.Builder (0.3.0)

public static final class LfpInventory.Builder extends GeneratedMessageV3.Builder<LfpInventory.Builder> implements LfpInventoryOrBuilder

Local Inventory for the merchant.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LfpInventory.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LfpInventory.Builder
Overrides

build()

public LfpInventory build()
Returns
Type Description
LfpInventory

buildPartial()

public LfpInventory buildPartial()
Returns
Type Description
LfpInventory

clear()

public LfpInventory.Builder clear()
Returns
Type Description
LfpInventory.Builder
Overrides

clearAvailability()

public LfpInventory.Builder clearAvailability()

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

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

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

clearCollectionTime()

public LfpInventory.Builder clearCollectionTime()

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
LfpInventory.Builder

clearContentLanguage()

public LfpInventory.Builder clearContentLanguage()

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

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

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

clearFeedLabel()

public LfpInventory.Builder clearFeedLabel()

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
LfpInventory.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public LfpInventory.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LfpInventory.Builder
Overrides

clearGtin()

public LfpInventory.Builder clearGtin()

Optional. The Global Trade Item Number of the product.

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

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

clearName()

public LfpInventory.Builder clearName()

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
LfpInventory.Builder

This builder for chaining.

clearOfferId()

public LfpInventory.Builder clearOfferId()

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
LfpInventory.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LfpInventory.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LfpInventory.Builder
Overrides

clearPickupMethod()

public LfpInventory.Builder clearPickupMethod()

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
LfpInventory.Builder

This builder for chaining.

clearPickupSla()

public LfpInventory.Builder clearPickupSla()

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
LfpInventory.Builder

This builder for chaining.

clearPrice()

public LfpInventory.Builder clearPrice()

Optional. The current price of the product.

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

Returns
Type Description
LfpInventory.Builder

clearQuantity()

public LfpInventory.Builder clearQuantity()

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
LfpInventory.Builder

This builder for chaining.

clearRegionCode()

public LfpInventory.Builder clearRegionCode()

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
LfpInventory.Builder

This builder for chaining.

clearStoreCode()

public LfpInventory.Builder clearStoreCode()

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
LfpInventory.Builder

This builder for chaining.

clearTargetAccount()

public LfpInventory.Builder clearTargetAccount()

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
LfpInventory.Builder

This builder for chaining.

clone()

public LfpInventory.Builder clone()
Returns
Type Description
LfpInventory.Builder
Overrides

getAvailability()

public String getAvailability()

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

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

Returns
Type Description
String

The availability.

getAvailabilityBytes()

public ByteString getAvailabilityBytes()

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

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

Returns
Type Description
ByteString

The bytes for availability.

getCollectionTime()

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.

getCollectionTimeBuilder()

public Timestamp.Builder getCollectionTimeBuilder()

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
Builder

getCollectionTimeOrBuilder()

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

Returns
Type Description
TimestampOrBuilder

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 LfpInventory getDefaultInstanceForType()
Returns
Type Description
LfpInventory

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 = 14 [(.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 = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for feedLabel.

getGtin()

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

getPickupMethodBytes()

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.

getPickupSla()

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.

getPickupSlaBytes()

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.

getPrice()

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

getPriceBuilder()

public Price.Builder getPriceBuilder()

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.Builder

getPriceOrBuilder()

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

getQuantity()

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.

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.

getStoreCode()

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.

getStoreCodeBytes()

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.

getTargetAccount()

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.

hasCollectionTime()

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.

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 = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the feedLabel field is set.

hasGtin()

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

hasPickupSla()

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.

hasPrice()

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.

hasQuantity()

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCollectionTime(Timestamp value)

public LfpInventory.Builder mergeCollectionTime(Timestamp value)

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

Parameter
Name Description
value Timestamp
Returns
Type Description
LfpInventory.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LfpInventory.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LfpInventory.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LfpInventory.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LfpInventory.Builder
Overrides

mergeFrom(LfpInventory other)

public LfpInventory.Builder mergeFrom(LfpInventory other)
Parameter
Name Description
other LfpInventory
Returns
Type Description
LfpInventory.Builder

mergePrice(Price value)

public LfpInventory.Builder mergePrice(Price value)

Optional. The current price of the product.

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

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
LfpInventory.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LfpInventory.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LfpInventory.Builder
Overrides

setAvailability(String value)

public LfpInventory.Builder setAvailability(String value)

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

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

Parameter
Name Description
value String

The availability to set.

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

setAvailabilityBytes(ByteString value)

public LfpInventory.Builder setAvailabilityBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for availability to set.

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

setCollectionTime(Timestamp value)

public LfpInventory.Builder setCollectionTime(Timestamp value)

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

Parameter
Name Description
value Timestamp
Returns
Type Description
LfpInventory.Builder

setCollectionTime(Timestamp.Builder builderForValue)

public LfpInventory.Builder setCollectionTime(Timestamp.Builder builderForValue)

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LfpInventory.Builder

setContentLanguage(String value)

public LfpInventory.Builder setContentLanguage(String value)

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

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

Parameter
Name Description
value String

The contentLanguage to set.

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

setContentLanguageBytes(ByteString value)

public LfpInventory.Builder setContentLanguageBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for contentLanguage to set.

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

setFeedLabel(String value)

public LfpInventory.Builder setFeedLabel(String value)

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

Parameter
Name Description
value String

The feedLabel to set.

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

setFeedLabelBytes(ByteString value)

public LfpInventory.Builder setFeedLabelBytes(ByteString value)

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

Parameter
Name Description
value ByteString

The bytes for feedLabel to set.

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public LfpInventory.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LfpInventory.Builder
Overrides

setGtin(String value)

public LfpInventory.Builder setGtin(String value)

Optional. The Global Trade Item Number of the product.

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

Parameter
Name Description
value String

The gtin to set.

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

setGtinBytes(ByteString value)

public LfpInventory.Builder setGtinBytes(ByteString value)

Optional. The Global Trade Item Number of the product.

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

Parameter
Name Description
value ByteString

The bytes for gtin to set.

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

setName(String value)

public LfpInventory.Builder setName(String value)

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

setNameBytes(ByteString value)

public LfpInventory.Builder setNameBytes(ByteString value)

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

setOfferId(String value)

public LfpInventory.Builder setOfferId(String value)

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

Parameter
Name Description
value String

The offerId to set.

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

setOfferIdBytes(ByteString value)

public LfpInventory.Builder setOfferIdBytes(ByteString value)

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

Parameter
Name Description
value ByteString

The bytes for offerId to set.

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

setPickupMethod(String value)

public LfpInventory.Builder setPickupMethod(String value)

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

Parameter
Name Description
value String

The pickupMethod to set.

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

setPickupMethodBytes(ByteString value)

public LfpInventory.Builder setPickupMethodBytes(ByteString value)

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

Parameter
Name Description
value ByteString

The bytes for pickupMethod to set.

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

setPickupSla(String value)

public LfpInventory.Builder setPickupSla(String value)

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

Parameter
Name Description
value String

The pickupSla to set.

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

setPickupSlaBytes(ByteString value)

public LfpInventory.Builder setPickupSlaBytes(ByteString value)

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

Parameter
Name Description
value ByteString

The bytes for pickupSla to set.

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

setPrice(Price value)

public LfpInventory.Builder setPrice(Price value)

Optional. The current price of the product.

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

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
LfpInventory.Builder

setPrice(Price.Builder builderForValue)

public LfpInventory.Builder setPrice(Price.Builder builderForValue)

Optional. The current price of the product.

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

Parameter
Name Description
builderForValue com.google.shopping.type.Price.Builder
Returns
Type Description
LfpInventory.Builder

setQuantity(long value)

public LfpInventory.Builder setQuantity(long value)

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

Parameter
Name Description
value long

The quantity to set.

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

setRegionCode(String value)

public LfpInventory.Builder setRegionCode(String value)

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

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

Parameter
Name Description
value String

The regionCode to set.

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

setRegionCodeBytes(ByteString value)

public LfpInventory.Builder setRegionCodeBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for regionCode to set.

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LfpInventory.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LfpInventory.Builder
Overrides

setStoreCode(String value)

public LfpInventory.Builder setStoreCode(String value)

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

Parameter
Name Description
value String

The storeCode to set.

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

setStoreCodeBytes(ByteString value)

public LfpInventory.Builder setStoreCodeBytes(ByteString value)

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

Parameter
Name Description
value ByteString

The bytes for storeCode to set.

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

setTargetAccount(long value)

public LfpInventory.Builder setTargetAccount(long value)

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

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

Parameter
Name Description
value long

The targetAccount to set.

Returns
Type Description
LfpInventory.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final LfpInventory.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LfpInventory.Builder
Overrides