Class LocalInventory.Builder (0.11.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.shopping.type.CustomAttribute>
Returns
TypeDescription
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
NameDescription
valueCustomAttribute
Returns
TypeDescription
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
NameDescription
builderForValueCustomAttribute.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueCustomAttribute
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCustomAttribute.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
CustomAttribute.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LocalInventory.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LocalInventory.Builder
Overrides

build()

public LocalInventory build()
Returns
TypeDescription
LocalInventory

buildPartial()

public LocalInventory buildPartial()
Returns
TypeDescription
LocalInventory

clear()

public LocalInventory.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
LocalInventory.Builder

clearField(Descriptors.FieldDescriptor field)

public LocalInventory.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
LocalInventory.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LocalInventory.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
LocalInventory.Builder

clearSalePriceEffectiveDate()

public LocalInventory.Builder clearSalePriceEffectiveDate()

The TimePeriod of the sale at this store.

.google.type.Interval sale_price_effective_date = 6;

Returns
TypeDescription
LocalInventory.Builder

clearStoreCode()

public LocalInventory.Builder clearStoreCode()

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

Returns
TypeDescription
LocalInventory.Builder

This builder for chaining.

clone()

public LocalInventory.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<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
TypeDescription
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
TypeDescription
List<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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.shopping.type.CustomAttributeOrBuilder>

getDefaultInstanceForType()

public LocalInventory getDefaultInstanceForType()
Returns
TypeDescription
LocalInventory

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for pickupSla.

getPrice()

public Price getPrice()

Price of the product at this store.

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

Returns
TypeDescription
Price

The price.

getPriceBuilder()

public Price.Builder getPriceBuilder()

Price of the product at this store.

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

Returns
TypeDescription
Price.Builder

getPriceOrBuilder()

public PriceOrBuilder getPriceOrBuilder()

Price of the product at this store.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Price.Builder

getSalePriceEffectiveDate()

public Interval getSalePriceEffectiveDate()

The TimePeriod of the sale at this store.

.google.type.Interval sale_price_effective_date = 6;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
PriceOrBuilder

getStoreCode()

public String getStoreCode()

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

Returns
TypeDescription
String

The storeCode.

getStoreCodeBytes()

public ByteString getStoreCodeBytes()

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the salePriceEffectiveDate field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LocalInventory.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocalInventory.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LocalInventory.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
LocalInventory.Builder
Overrides

mergeFrom(LocalInventory other)

public LocalInventory.Builder mergeFrom(LocalInventory other)
Parameter
NameDescription
otherLocalInventory
Returns
TypeDescription
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
NameDescription
valuePrice
Returns
TypeDescription
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
NameDescription
valuePrice
Returns
TypeDescription
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
NameDescription
valuecom.google.type.Interval
Returns
TypeDescription
LocalInventory.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LocalInventory.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuelong

The account to set.

Returns
TypeDescription
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
NameDescription
valueString

The availability to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for availability to set.

Returns
TypeDescription
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
NameDescription
indexint
valueCustomAttribute
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCustomAttribute.Builder
Returns
TypeDescription
LocalInventory.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public LocalInventory.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The instoreProductLocation to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for instoreProductLocation to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueString

The pickupMethod to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for pickupMethod to set.

Returns
TypeDescription
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
NameDescription
valueString

The pickupSla to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for pickupSla to set.

Returns
TypeDescription
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
NameDescription
valuePrice
Returns
TypeDescription
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
NameDescription
builderForValuePrice.Builder
Returns
TypeDescription
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
NameDescription
valuelong

The quantity to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valuePrice
Returns
TypeDescription
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
NameDescription
builderForValuePrice.Builder
Returns
TypeDescription
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
NameDescription
valuecom.google.type.Interval
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.type.Interval.Builder
Returns
TypeDescription
LocalInventory.Builder

setStoreCode(String value)

public LocalInventory.Builder setStoreCode(String value)

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

Parameter
NameDescription
valueString

The storeCode to set.

Returns
TypeDescription
LocalInventory.Builder

This builder for chaining.

setStoreCodeBytes(ByteString value)

public LocalInventory.Builder setStoreCodeBytes(ByteString value)

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

Parameter
NameDescription
valueByteString

The bytes for storeCode to set.

Returns
TypeDescription
LocalInventory.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final LocalInventory.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LocalInventory.Builder
Overrides