Class LocalInventory.Builder (0.18.0)

public static final class LocalInventory.Builder extends GeneratedMessageV3.Builder<LocalInventory.Builder> implements LocalInventoryOrBuilder

Local inventory information for the product. Represents in-store information for a specific product at the store specified by storeCode. For a list of all accepted attribute values, see the local product inventory feed specification.

Protobuf type google.shopping.merchant.inventories.v1beta.LocalInventory

Static Methods

getDescriptor()

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

Methods

addAllCustomAttributes(Iterable<? extends CustomAttribute> values)

public LocalInventory.Builder addAllCustomAttributes(Iterable<? extends CustomAttribute> values)

A list of custom (merchant-provided) attributes. You can also use CustomAttribute to submit any attribute of the feed specification in its generic form.

repeated .google.shopping.type.CustomAttribute custom_attributes = 12;

Parameter
Name Description
values Iterable<? extends com.google.shopping.type.CustomAttribute>
Returns
Type Description
LocalInventory.Builder

addCustomAttributes(CustomAttribute value)

public LocalInventory.Builder addCustomAttributes(CustomAttribute value)

A list of custom (merchant-provided) attributes. You can also use CustomAttribute to submit any attribute of the feed specification in its generic form.

repeated .google.shopping.type.CustomAttribute custom_attributes = 12;

Parameter
Name Description
value com.google.shopping.type.CustomAttribute
Returns
Type Description
LocalInventory.Builder

addCustomAttributes(CustomAttribute.Builder builderForValue)

public LocalInventory.Builder addCustomAttributes(CustomAttribute.Builder builderForValue)

A list of custom (merchant-provided) attributes. You can also use CustomAttribute to submit any attribute of the feed specification in its generic form.

repeated .google.shopping.type.CustomAttribute custom_attributes = 12;

Parameter
Name Description
builderForValue com.google.shopping.type.CustomAttribute.Builder
Returns
Type Description
LocalInventory.Builder

addCustomAttributes(int index, CustomAttribute value)

public LocalInventory.Builder addCustomAttributes(int index, CustomAttribute value)

A list of custom (merchant-provided) attributes. You can also use CustomAttribute to submit any attribute of the feed specification in its generic form.

repeated .google.shopping.type.CustomAttribute custom_attributes = 12;

Parameters
Name Description
index int
value com.google.shopping.type.CustomAttribute
Returns
Type Description
LocalInventory.Builder

addCustomAttributes(int index, CustomAttribute.Builder builderForValue)

public LocalInventory.Builder addCustomAttributes(int index, CustomAttribute.Builder builderForValue)

A list of custom (merchant-provided) attributes. You can also use CustomAttribute to submit any attribute of the feed specification in its generic form.

repeated .google.shopping.type.CustomAttribute custom_attributes = 12;

Parameters
Name Description
index int
builderForValue com.google.shopping.type.CustomAttribute.Builder
Returns
Type Description
LocalInventory.Builder

addCustomAttributesBuilder()

public CustomAttribute.Builder addCustomAttributesBuilder()

A list of custom (merchant-provided) attributes. You can also use CustomAttribute to submit any attribute of the feed specification in its generic form.

repeated .google.shopping.type.CustomAttribute custom_attributes = 12;

Returns
Type Description
com.google.shopping.type.CustomAttribute.Builder

addCustomAttributesBuilder(int index)

public CustomAttribute.Builder addCustomAttributesBuilder(int index)

A list of custom (merchant-provided) attributes. You can also use CustomAttribute to submit any attribute of the feed specification in its generic form.

repeated .google.shopping.type.CustomAttribute custom_attributes = 12;

Parameter
Name Description
index int
Returns
Type Description
com.google.shopping.type.CustomAttribute.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LocalInventory build()
Returns
Type Description
LocalInventory

buildPartial()

public LocalInventory buildPartial()
Returns
Type Description
LocalInventory

clear()

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

clearAccount()

public LocalInventory.Builder clearAccount()

Output only. The account that owns the product. This field will be ignored if set by the client.

int64 account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LocalInventory.Builder

This builder for chaining.

clearAvailability()

public LocalInventory.Builder clearAvailability()

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

optional string availability = 7;

Returns
Type Description
LocalInventory.Builder

This builder for chaining.

clearCustomAttributes()

public LocalInventory.Builder clearCustomAttributes()

A list of custom (merchant-provided) attributes. You can also use CustomAttribute to submit any attribute of the feed specification in its generic form.

repeated .google.shopping.type.CustomAttribute custom_attributes = 12;

Returns
Type Description
LocalInventory.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearInstoreProductLocation()

public LocalInventory.Builder clearInstoreProductLocation()

Location of the product inside the store. Maximum length is 20 bytes.

optional string instore_product_location = 11;

Returns
Type Description
LocalInventory.Builder

This builder for chaining.

clearName()

public LocalInventory.Builder clearName()

Output only. The name of the LocalInventory resource. Format: accounts/{account}/products/{product}/localInventories/{store_code}

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

Returns
Type Description
LocalInventory.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPickupMethod()

public LocalInventory.Builder clearPickupMethod()

Supported pickup method for this product. 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 = 9;

Returns
Type Description
LocalInventory.Builder

This builder for chaining.

clearPickupSla()

public LocalInventory.Builder clearPickupSla()

Relative time period from the order date for an order for this product, from this store, to be ready for pickup. Must be submitted with pickupMethod. For accepted attribute values, see the local product inventory feed specification

optional string pickup_sla = 10;

Returns
Type Description
LocalInventory.Builder

This builder for chaining.

clearPrice()

public LocalInventory.Builder clearPrice()

Price of the product at this store.

.google.shopping.type.Price price = 4;

Returns
Type Description
LocalInventory.Builder

clearQuantity()

public LocalInventory.Builder clearQuantity()

Quantity of the product available at this store. Must be greater than or equal to zero.

optional int64 quantity = 8;

Returns
Type Description
LocalInventory.Builder

This builder for chaining.

clearSalePrice()

public LocalInventory.Builder clearSalePrice()

Sale price of the product at this store. Mandatory if salePriceEffectiveDate is defined.

.google.shopping.type.Price sale_price = 5;

Returns
Type Description
LocalInventory.Builder

clearSalePriceEffectiveDate()

public LocalInventory.Builder clearSalePriceEffectiveDate()

The TimePeriod of the sale at this store.

.google.type.Interval sale_price_effective_date = 6;

Returns
Type Description
LocalInventory.Builder

clearStoreCode()

public LocalInventory.Builder clearStoreCode()

Required. Immutable. Store code (the store ID from your Business Profile) of the physical store the product is sold in. See the Local product inventory feed specification for more information.

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

Returns
Type Description
LocalInventory.Builder

This builder for chaining.

clone()

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

getAccount()

public long getAccount()

Output only. The account that owns the product. This field will be ignored if set by the client.

int64 account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The account.

getAvailability()

public String getAvailability()

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

optional string availability = 7;

Returns
Type Description
String

The availability.

getAvailabilityBytes()

public ByteString getAvailabilityBytes()

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

optional string availability = 7;

Returns
Type Description
ByteString

The bytes for availability.

getCustomAttributes(int index)

public CustomAttribute getCustomAttributes(int index)

A list of custom (merchant-provided) attributes. You can also use CustomAttribute to submit any attribute of the feed specification in its generic form.

repeated .google.shopping.type.CustomAttribute custom_attributes = 12;

Parameter
Name Description
index int
Returns
Type Description
com.google.shopping.type.CustomAttribute

getCustomAttributesBuilder(int index)

public CustomAttribute.Builder getCustomAttributesBuilder(int index)

A list of custom (merchant-provided) attributes. You can also use CustomAttribute to submit any attribute of the feed specification in its generic form.

repeated .google.shopping.type.CustomAttribute custom_attributes = 12;

Parameter
Name Description
index int
Returns
Type Description
com.google.shopping.type.CustomAttribute.Builder

getCustomAttributesBuilderList()

public List<CustomAttribute.Builder> getCustomAttributesBuilderList()

A list of custom (merchant-provided) attributes. You can also use CustomAttribute to submit any attribute of the feed specification in its generic form.

repeated .google.shopping.type.CustomAttribute custom_attributes = 12;

Returns
Type Description
List<com.google.shopping.type.CustomAttribute.Builder>

getCustomAttributesCount()

public int getCustomAttributesCount()

A list of custom (merchant-provided) attributes. You can also use CustomAttribute to submit any attribute of the feed specification in its generic form.

repeated .google.shopping.type.CustomAttribute custom_attributes = 12;

Returns
Type Description
int

getCustomAttributesList()

public List<CustomAttribute> getCustomAttributesList()

A list of custom (merchant-provided) attributes. You can also use CustomAttribute to submit any attribute of the feed specification in its generic form.

repeated .google.shopping.type.CustomAttribute custom_attributes = 12;

Returns
Type Description
List<com.google.shopping.type.CustomAttribute>

getCustomAttributesOrBuilder(int index)

public CustomAttributeOrBuilder getCustomAttributesOrBuilder(int index)

A list of custom (merchant-provided) attributes. You can also use CustomAttribute to submit any attribute of the feed specification in its generic form.

repeated .google.shopping.type.CustomAttribute custom_attributes = 12;

Parameter
Name Description
index int
Returns
Type Description
com.google.shopping.type.CustomAttributeOrBuilder

getCustomAttributesOrBuilderList()

public List<? extends CustomAttributeOrBuilder> getCustomAttributesOrBuilderList()

A list of custom (merchant-provided) attributes. You can also use CustomAttribute to submit any attribute of the feed specification in its generic form.

repeated .google.shopping.type.CustomAttribute custom_attributes = 12;

Returns
Type Description
List<? extends com.google.shopping.type.CustomAttributeOrBuilder>

getDefaultInstanceForType()

public LocalInventory getDefaultInstanceForType()
Returns
Type Description
LocalInventory

getDescriptorForType()

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

getInstoreProductLocation()

public String getInstoreProductLocation()

Location of the product inside the store. Maximum length is 20 bytes.

optional string instore_product_location = 11;

Returns
Type Description
String

The instoreProductLocation.

getInstoreProductLocationBytes()

public ByteString getInstoreProductLocationBytes()

Location of the product inside the store. Maximum length is 20 bytes.

optional string instore_product_location = 11;

Returns
Type Description
ByteString

The bytes for instoreProductLocation.

getName()

public String getName()

Output only. The name of the LocalInventory resource. Format: accounts/{account}/products/{product}/localInventories/{store_code}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the LocalInventory resource. Format: accounts/{account}/products/{product}/localInventories/{store_code}

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

Returns
Type Description
ByteString

The bytes for name.

getPickupMethod()

public String getPickupMethod()

Supported pickup method for this product. 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 = 9;

Returns
Type Description
String

The pickupMethod.

getPickupMethodBytes()

public ByteString getPickupMethodBytes()

Supported pickup method for this product. 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 = 9;

Returns
Type Description
ByteString

The bytes for pickupMethod.

getPickupSla()

public String getPickupSla()

Relative time period from the order date for an order for this product, from this store, to be ready for pickup. Must be submitted with pickupMethod. For accepted attribute values, see the local product inventory feed specification

optional string pickup_sla = 10;

Returns
Type Description
String

The pickupSla.

getPickupSlaBytes()

public ByteString getPickupSlaBytes()

Relative time period from the order date for an order for this product, from this store, to be ready for pickup. Must be submitted with pickupMethod. For accepted attribute values, see the local product inventory feed specification

optional string pickup_sla = 10;

Returns
Type Description
ByteString

The bytes for pickupSla.

getPrice()

public Price getPrice()

Price of the product at this store.

.google.shopping.type.Price price = 4;

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

The price.

getPriceBuilder()

public Price.Builder getPriceBuilder()

Price of the product at this store.

.google.shopping.type.Price price = 4;

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

getPriceOrBuilder()

public PriceOrBuilder getPriceOrBuilder()

Price of the product at this store.

.google.shopping.type.Price price = 4;

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

getQuantity()

public long getQuantity()

Quantity of the product available at this store. Must be greater than or equal to zero.

optional int64 quantity = 8;

Returns
Type Description
long

The quantity.

getSalePrice()

public Price getSalePrice()

Sale price of the product at this store. Mandatory if salePriceEffectiveDate is defined.

.google.shopping.type.Price sale_price = 5;

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

The salePrice.

getSalePriceBuilder()

public Price.Builder getSalePriceBuilder()

Sale price of the product at this store. Mandatory if salePriceEffectiveDate is defined.

.google.shopping.type.Price sale_price = 5;

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

getSalePriceEffectiveDate()

public Interval getSalePriceEffectiveDate()

The TimePeriod of the sale at this store.

.google.type.Interval sale_price_effective_date = 6;

Returns
Type Description
com.google.type.Interval

The salePriceEffectiveDate.

getSalePriceEffectiveDateBuilder()

public Interval.Builder getSalePriceEffectiveDateBuilder()

The TimePeriod of the sale at this store.

.google.type.Interval sale_price_effective_date = 6;

Returns
Type Description
com.google.type.Interval.Builder

getSalePriceEffectiveDateOrBuilder()

public IntervalOrBuilder getSalePriceEffectiveDateOrBuilder()

The TimePeriod of the sale at this store.

.google.type.Interval sale_price_effective_date = 6;

Returns
Type Description
com.google.type.IntervalOrBuilder

getSalePriceOrBuilder()

public PriceOrBuilder getSalePriceOrBuilder()

Sale price of the product at this store. Mandatory if salePriceEffectiveDate is defined.

.google.shopping.type.Price sale_price = 5;

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

getStoreCode()

public String getStoreCode()

Required. Immutable. Store code (the store ID from your Business Profile) of the physical store the product is sold in. See the Local product inventory feed specification for more information.

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

Returns
Type Description
String

The storeCode.

getStoreCodeBytes()

public ByteString getStoreCodeBytes()

Required. Immutable. Store code (the store ID from your Business Profile) of the physical store the product is sold in. See the Local product inventory feed specification for more information.

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

Returns
Type Description
ByteString

The bytes for storeCode.

hasAvailability()

public boolean hasAvailability()

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

optional string availability = 7;

Returns
Type Description
boolean

Whether the availability field is set.

hasInstoreProductLocation()

public boolean hasInstoreProductLocation()

Location of the product inside the store. Maximum length is 20 bytes.

optional string instore_product_location = 11;

Returns
Type Description
boolean

Whether the instoreProductLocation field is set.

hasPickupMethod()

public boolean hasPickupMethod()

Supported pickup method for this product. 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 = 9;

Returns
Type Description
boolean

Whether the pickupMethod field is set.

hasPickupSla()

public boolean hasPickupSla()

Relative time period from the order date for an order for this product, from this store, to be ready for pickup. Must be submitted with pickupMethod. For accepted attribute values, see the local product inventory feed specification

optional string pickup_sla = 10;

Returns
Type Description
boolean

Whether the pickupSla field is set.

hasPrice()

public boolean hasPrice()

Price of the product at this store.

.google.shopping.type.Price price = 4;

Returns
Type Description
boolean

Whether the price field is set.

hasQuantity()

public boolean hasQuantity()

Quantity of the product available at this store. Must be greater than or equal to zero.

optional int64 quantity = 8;

Returns
Type Description
boolean

Whether the quantity field is set.

hasSalePrice()

public boolean hasSalePrice()

Sale price of the product at this store. Mandatory if salePriceEffectiveDate is defined.

.google.shopping.type.Price sale_price = 5;

Returns
Type Description
boolean

Whether the salePrice field is set.

hasSalePriceEffectiveDate()

public boolean hasSalePriceEffectiveDate()

The TimePeriod of the sale at this store.

.google.type.Interval sale_price_effective_date = 6;

Returns
Type Description
boolean

Whether the salePriceEffectiveDate field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(LocalInventory other)

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

mergePrice(Price value)

public LocalInventory.Builder mergePrice(Price value)

Price of the product at this store.

.google.shopping.type.Price price = 4;

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

mergeSalePrice(Price value)

public LocalInventory.Builder mergeSalePrice(Price value)

Sale price of the product at this store. Mandatory if salePriceEffectiveDate is defined.

.google.shopping.type.Price sale_price = 5;

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

mergeSalePriceEffectiveDate(Interval value)

public LocalInventory.Builder mergeSalePriceEffectiveDate(Interval value)

The TimePeriod of the sale at this store.

.google.type.Interval sale_price_effective_date = 6;

Parameter
Name Description
value com.google.type.Interval
Returns
Type Description
LocalInventory.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCustomAttributes(int index)

public LocalInventory.Builder removeCustomAttributes(int index)

A list of custom (merchant-provided) attributes. You can also use CustomAttribute to submit any attribute of the feed specification in its generic form.

repeated .google.shopping.type.CustomAttribute custom_attributes = 12;

Parameter
Name Description
index int
Returns
Type Description
LocalInventory.Builder

setAccount(long value)

public LocalInventory.Builder setAccount(long value)

Output only. The account that owns the product. This field will be ignored if set by the client.

int64 account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The account to set.

Returns
Type Description
LocalInventory.Builder

This builder for chaining.

setAvailability(String value)

public LocalInventory.Builder setAvailability(String value)

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

optional string availability = 7;

Parameter
Name Description
value String

The availability to set.

Returns
Type Description
LocalInventory.Builder

This builder for chaining.

setAvailabilityBytes(ByteString value)

public LocalInventory.Builder setAvailabilityBytes(ByteString value)

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

optional string availability = 7;

Parameter
Name Description
value ByteString

The bytes for availability to set.

Returns
Type Description
LocalInventory.Builder

This builder for chaining.

setCustomAttributes(int index, CustomAttribute value)

public LocalInventory.Builder setCustomAttributes(int index, CustomAttribute value)

A list of custom (merchant-provided) attributes. You can also use CustomAttribute to submit any attribute of the feed specification in its generic form.

repeated .google.shopping.type.CustomAttribute custom_attributes = 12;

Parameters
Name Description
index int
value com.google.shopping.type.CustomAttribute
Returns
Type Description
LocalInventory.Builder

setCustomAttributes(int index, CustomAttribute.Builder builderForValue)

public LocalInventory.Builder setCustomAttributes(int index, CustomAttribute.Builder builderForValue)

A list of custom (merchant-provided) attributes. You can also use CustomAttribute to submit any attribute of the feed specification in its generic form.

repeated .google.shopping.type.CustomAttribute custom_attributes = 12;

Parameters
Name Description
index int
builderForValue com.google.shopping.type.CustomAttribute.Builder
Returns
Type Description
LocalInventory.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstoreProductLocation(String value)

public LocalInventory.Builder setInstoreProductLocation(String value)

Location of the product inside the store. Maximum length is 20 bytes.

optional string instore_product_location = 11;

Parameter
Name Description
value String

The instoreProductLocation to set.

Returns
Type Description
LocalInventory.Builder

This builder for chaining.

setInstoreProductLocationBytes(ByteString value)

public LocalInventory.Builder setInstoreProductLocationBytes(ByteString value)

Location of the product inside the store. Maximum length is 20 bytes.

optional string instore_product_location = 11;

Parameter
Name Description
value ByteString

The bytes for instoreProductLocation to set.

Returns
Type Description
LocalInventory.Builder

This builder for chaining.

setName(String value)

public LocalInventory.Builder setName(String value)

Output only. The name of the LocalInventory resource. Format: accounts/{account}/products/{product}/localInventories/{store_code}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
LocalInventory.Builder

This builder for chaining.

setNameBytes(ByteString value)

public LocalInventory.Builder setNameBytes(ByteString value)

Output only. The name of the LocalInventory resource. Format: accounts/{account}/products/{product}/localInventories/{store_code}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
LocalInventory.Builder

This builder for chaining.

setPickupMethod(String value)

public LocalInventory.Builder setPickupMethod(String value)

Supported pickup method for this product. 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 = 9;

Parameter
Name Description
value String

The pickupMethod to set.

Returns
Type Description
LocalInventory.Builder

This builder for chaining.

setPickupMethodBytes(ByteString value)

public LocalInventory.Builder setPickupMethodBytes(ByteString value)

Supported pickup method for this product. 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 = 9;

Parameter
Name Description
value ByteString

The bytes for pickupMethod to set.

Returns
Type Description
LocalInventory.Builder

This builder for chaining.

setPickupSla(String value)

public LocalInventory.Builder setPickupSla(String value)

Relative time period from the order date for an order for this product, from this store, to be ready for pickup. Must be submitted with pickupMethod. For accepted attribute values, see the local product inventory feed specification

optional string pickup_sla = 10;

Parameter
Name Description
value String

The pickupSla to set.

Returns
Type Description
LocalInventory.Builder

This builder for chaining.

setPickupSlaBytes(ByteString value)

public LocalInventory.Builder setPickupSlaBytes(ByteString value)

Relative time period from the order date for an order for this product, from this store, to be ready for pickup. Must be submitted with pickupMethod. For accepted attribute values, see the local product inventory feed specification

optional string pickup_sla = 10;

Parameter
Name Description
value ByteString

The bytes for pickupSla to set.

Returns
Type Description
LocalInventory.Builder

This builder for chaining.

setPrice(Price value)

public LocalInventory.Builder setPrice(Price value)

Price of the product at this store.

.google.shopping.type.Price price = 4;

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

setPrice(Price.Builder builderForValue)

public LocalInventory.Builder setPrice(Price.Builder builderForValue)

Price of the product at this store.

.google.shopping.type.Price price = 4;

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

setQuantity(long value)

public LocalInventory.Builder setQuantity(long value)

Quantity of the product available at this store. Must be greater than or equal to zero.

optional int64 quantity = 8;

Parameter
Name Description
value long

The quantity to set.

Returns
Type Description
LocalInventory.Builder

This builder for chaining.

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

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

setSalePrice(Price value)

public LocalInventory.Builder setSalePrice(Price value)

Sale price of the product at this store. Mandatory if salePriceEffectiveDate is defined.

.google.shopping.type.Price sale_price = 5;

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

setSalePrice(Price.Builder builderForValue)

public LocalInventory.Builder setSalePrice(Price.Builder builderForValue)

Sale price of the product at this store. Mandatory if salePriceEffectiveDate is defined.

.google.shopping.type.Price sale_price = 5;

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

setSalePriceEffectiveDate(Interval value)

public LocalInventory.Builder setSalePriceEffectiveDate(Interval value)

The TimePeriod of the sale at this store.

.google.type.Interval sale_price_effective_date = 6;

Parameter
Name Description
value com.google.type.Interval
Returns
Type Description
LocalInventory.Builder

setSalePriceEffectiveDate(Interval.Builder builderForValue)

public LocalInventory.Builder setSalePriceEffectiveDate(Interval.Builder builderForValue)

The TimePeriod of the sale at this store.

.google.type.Interval sale_price_effective_date = 6;

Parameter
Name Description
builderForValue com.google.type.Interval.Builder
Returns
Type Description
LocalInventory.Builder

setStoreCode(String value)

public LocalInventory.Builder setStoreCode(String value)

Required. Immutable. Store code (the store ID from your Business Profile) of the physical store the product is sold in. See the Local product inventory feed specification for more information.

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

Parameter
Name Description
value String

The storeCode to set.

Returns
Type Description
LocalInventory.Builder

This builder for chaining.

setStoreCodeBytes(ByteString value)

public LocalInventory.Builder setStoreCodeBytes(ByteString value)

Required. Immutable. Store code (the store ID from your Business Profile) of the physical store the product is sold in. See the Local product inventory feed specification for more information.

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

Parameter
Name Description
value ByteString

The bytes for storeCode to set.

Returns
Type Description
LocalInventory.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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