Class LocalInventoryAttributes.Builder (1.23.0)

public static final class LocalInventoryAttributes.Builder extends GeneratedMessage.Builder<LocalInventoryAttributes.Builder> implements LocalInventoryAttributesOrBuilder

Local inventory attributes.

Protobuf type google.shopping.merchant.inventories.v1.LocalInventoryAttributes

Static Methods

getDescriptor()

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

Methods

addAllCustomAttributes(Iterable<? extends CustomAttribute> values)

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

Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.

repeated .google.shopping.type.CustomAttribute custom_attributes = 11 [(.google.api.field_behavior) = OPTIONAL];

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

addAllLoyaltyPrograms(Iterable<? extends InventoryLoyaltyProgram> values)

public LocalInventoryAttributes.Builder addAllLoyaltyPrograms(Iterable<? extends InventoryLoyaltyProgram> values)

Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store.

This field is used to show store-specific member prices on Local Inventory Ads (LIA).

To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.

See Loyalty program for details on supported countries and loyalty program configuration. For local inventory specific details, see the Local inventory data specification.

repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram>
Returns
Type Description
LocalInventoryAttributes.Builder

addCustomAttributes(CustomAttribute value)

public LocalInventoryAttributes.Builder addCustomAttributes(CustomAttribute value)

Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.

repeated .google.shopping.type.CustomAttribute custom_attributes = 11 [(.google.api.field_behavior) = OPTIONAL];

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

addCustomAttributes(CustomAttribute.Builder builderForValue)

public LocalInventoryAttributes.Builder addCustomAttributes(CustomAttribute.Builder builderForValue)

Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.

repeated .google.shopping.type.CustomAttribute custom_attributes = 11 [(.google.api.field_behavior) = OPTIONAL];

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

addCustomAttributes(int index, CustomAttribute value)

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

Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.

repeated .google.shopping.type.CustomAttribute custom_attributes = 11 [(.google.api.field_behavior) = OPTIONAL];

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

addCustomAttributes(int index, CustomAttribute.Builder builderForValue)

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

Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.

repeated .google.shopping.type.CustomAttribute custom_attributes = 11 [(.google.api.field_behavior) = OPTIONAL];

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

addCustomAttributesBuilder()

public CustomAttribute.Builder addCustomAttributesBuilder()

Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.

repeated .google.shopping.type.CustomAttribute custom_attributes = 11 [(.google.api.field_behavior) = OPTIONAL];

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

addCustomAttributesBuilder(int index)

public CustomAttribute.Builder addCustomAttributesBuilder(int index)

Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.

repeated .google.shopping.type.CustomAttribute custom_attributes = 11 [(.google.api.field_behavior) = OPTIONAL];

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

addLoyaltyPrograms(InventoryLoyaltyProgram value)

public LocalInventoryAttributes.Builder addLoyaltyPrograms(InventoryLoyaltyProgram value)

Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store.

This field is used to show store-specific member prices on Local Inventory Ads (LIA).

To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.

See Loyalty program for details on supported countries and loyalty program configuration. For local inventory specific details, see the Local inventory data specification.

repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value InventoryLoyaltyProgram
Returns
Type Description
LocalInventoryAttributes.Builder

addLoyaltyPrograms(InventoryLoyaltyProgram.Builder builderForValue)

public LocalInventoryAttributes.Builder addLoyaltyPrograms(InventoryLoyaltyProgram.Builder builderForValue)

Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store.

This field is used to show store-specific member prices on Local Inventory Ads (LIA).

To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.

See Loyalty program for details on supported countries and loyalty program configuration. For local inventory specific details, see the Local inventory data specification.

repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue InventoryLoyaltyProgram.Builder
Returns
Type Description
LocalInventoryAttributes.Builder

addLoyaltyPrograms(int index, InventoryLoyaltyProgram value)

public LocalInventoryAttributes.Builder addLoyaltyPrograms(int index, InventoryLoyaltyProgram value)

Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store.

This field is used to show store-specific member prices on Local Inventory Ads (LIA).

To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.

See Loyalty program for details on supported countries and loyalty program configuration. For local inventory specific details, see the Local inventory data specification.

repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value InventoryLoyaltyProgram
Returns
Type Description
LocalInventoryAttributes.Builder

addLoyaltyPrograms(int index, InventoryLoyaltyProgram.Builder builderForValue)

public LocalInventoryAttributes.Builder addLoyaltyPrograms(int index, InventoryLoyaltyProgram.Builder builderForValue)

Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store.

This field is used to show store-specific member prices on Local Inventory Ads (LIA).

To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.

See Loyalty program for details on supported countries and loyalty program configuration. For local inventory specific details, see the Local inventory data specification.

repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue InventoryLoyaltyProgram.Builder
Returns
Type Description
LocalInventoryAttributes.Builder

addLoyaltyProgramsBuilder()

public InventoryLoyaltyProgram.Builder addLoyaltyProgramsBuilder()

Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store.

This field is used to show store-specific member prices on Local Inventory Ads (LIA).

To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.

See Loyalty program for details on supported countries and loyalty program configuration. For local inventory specific details, see the Local inventory data specification.

repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InventoryLoyaltyProgram.Builder

addLoyaltyProgramsBuilder(int index)

public InventoryLoyaltyProgram.Builder addLoyaltyProgramsBuilder(int index)

Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store.

This field is used to show store-specific member prices on Local Inventory Ads (LIA).

To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.

See Loyalty program for details on supported countries and loyalty program configuration. For local inventory specific details, see the Local inventory data specification.

repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
InventoryLoyaltyProgram.Builder

build()

public LocalInventoryAttributes build()
Returns
Type Description
LocalInventoryAttributes

buildPartial()

public LocalInventoryAttributes buildPartial()
Returns
Type Description
LocalInventoryAttributes

clear()

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

clearAvailability()

public LocalInventoryAttributes.Builder clearAvailability()

Availability of the product at this store.

optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.Availability availability = 4;

Returns
Type Description
LocalInventoryAttributes.Builder

This builder for chaining.

clearCustomAttributes()

public LocalInventoryAttributes.Builder clearCustomAttributes()

Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.

repeated .google.shopping.type.CustomAttribute custom_attributes = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LocalInventoryAttributes.Builder

clearInstoreProductLocation()

public LocalInventoryAttributes.Builder clearInstoreProductLocation()

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

optional string instore_product_location = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LocalInventoryAttributes.Builder

This builder for chaining.

clearLocalShippingLabel()

public LocalInventoryAttributes.Builder clearLocalShippingLabel()

Optional. Specifies a label associated with the shipping for the LocalInventory resource. Can be used to group local shipping services to this particular inventory item. For accepted field format, see the Local delivery

optional string local_shipping_label = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LocalInventoryAttributes.Builder

This builder for chaining.

clearLoyaltyPrograms()

public LocalInventoryAttributes.Builder clearLoyaltyPrograms()

Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store.

This field is used to show store-specific member prices on Local Inventory Ads (LIA).

To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.

See Loyalty program for details on supported countries and loyalty program configuration. For local inventory specific details, see the Local inventory data specification.

repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LocalInventoryAttributes.Builder

clearPickupMethod()

public LocalInventoryAttributes.Builder clearPickupMethod()

Optional. Supported pickup method for this product. Unless the value is "not supported", this field must be submitted together with pickupSla.

optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.PickupMethod pickup_method = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LocalInventoryAttributes.Builder

This builder for chaining.

clearPickupSla()

public LocalInventoryAttributes.Builder clearPickupSla()

Optional. 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. See more details here.

optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.PickupSla pickup_sla = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LocalInventoryAttributes.Builder

This builder for chaining.

clearPrice()

public LocalInventoryAttributes.Builder clearPrice()

Optional. Price of the product at this store.

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

Returns
Type Description
LocalInventoryAttributes.Builder

clearQuantity()

public LocalInventoryAttributes.Builder clearQuantity()

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

optional int64 quantity = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LocalInventoryAttributes.Builder

This builder for chaining.

clearSalePrice()

public LocalInventoryAttributes.Builder clearSalePrice()

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

.google.shopping.type.Price sale_price = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LocalInventoryAttributes.Builder

clearSalePriceEffectiveDate()

public LocalInventoryAttributes.Builder clearSalePriceEffectiveDate()

Optional. The TimePeriod of the sale at this store.

.google.type.Interval sale_price_effective_date = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LocalInventoryAttributes.Builder

getAvailability()

public LocalInventoryAttributes.Availability getAvailability()

Availability of the product at this store.

optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.Availability availability = 4;

Returns
Type Description
LocalInventoryAttributes.Availability

The availability.

getAvailabilityValue()

public int getAvailabilityValue()

Availability of the product at this store.

optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.Availability availability = 4;

Returns
Type Description
int

The enum numeric value on the wire for availability.

getCustomAttributes(int index)

public CustomAttribute getCustomAttributes(int index)

Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.

repeated .google.shopping.type.CustomAttribute custom_attributes = 11 [(.google.api.field_behavior) = OPTIONAL];

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

getCustomAttributesBuilder(int index)

public CustomAttribute.Builder getCustomAttributesBuilder(int index)

Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.

repeated .google.shopping.type.CustomAttribute custom_attributes = 11 [(.google.api.field_behavior) = OPTIONAL];

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

getCustomAttributesBuilderList()

public List<CustomAttribute.Builder> getCustomAttributesBuilderList()

Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.

repeated .google.shopping.type.CustomAttribute custom_attributes = 11 [(.google.api.field_behavior) = OPTIONAL];

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

getCustomAttributesCount()

public int getCustomAttributesCount()

Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.

repeated .google.shopping.type.CustomAttribute custom_attributes = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getCustomAttributesList()

public List<CustomAttribute> getCustomAttributesList()

Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.

repeated .google.shopping.type.CustomAttribute custom_attributes = 11 [(.google.api.field_behavior) = OPTIONAL];

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

getCustomAttributesOrBuilder(int index)

public CustomAttributeOrBuilder getCustomAttributesOrBuilder(int index)

Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.

repeated .google.shopping.type.CustomAttribute custom_attributes = 11 [(.google.api.field_behavior) = OPTIONAL];

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

getCustomAttributesOrBuilderList()

public List<? extends CustomAttributeOrBuilder> getCustomAttributesOrBuilderList()

Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.

repeated .google.shopping.type.CustomAttribute custom_attributes = 11 [(.google.api.field_behavior) = OPTIONAL];

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

getDefaultInstanceForType()

public LocalInventoryAttributes getDefaultInstanceForType()
Returns
Type Description
LocalInventoryAttributes

getDescriptorForType()

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

getInstoreProductLocation()

public String getInstoreProductLocation()

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

optional string instore_product_location = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The instoreProductLocation.

getInstoreProductLocationBytes()

public ByteString getInstoreProductLocationBytes()

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

optional string instore_product_location = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for instoreProductLocation.

getLocalShippingLabel()

public String getLocalShippingLabel()

Optional. Specifies a label associated with the shipping for the LocalInventory resource. Can be used to group local shipping services to this particular inventory item. For accepted field format, see the Local delivery

optional string local_shipping_label = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The localShippingLabel.

getLocalShippingLabelBytes()

public ByteString getLocalShippingLabelBytes()

Optional. Specifies a label associated with the shipping for the LocalInventory resource. Can be used to group local shipping services to this particular inventory item. For accepted field format, see the Local delivery

optional string local_shipping_label = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for localShippingLabel.

getLoyaltyPrograms(int index)

public InventoryLoyaltyProgram getLoyaltyPrograms(int index)

Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store.

This field is used to show store-specific member prices on Local Inventory Ads (LIA).

To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.

See Loyalty program for details on supported countries and loyalty program configuration. For local inventory specific details, see the Local inventory data specification.

repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
InventoryLoyaltyProgram

getLoyaltyProgramsBuilder(int index)

public InventoryLoyaltyProgram.Builder getLoyaltyProgramsBuilder(int index)

Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store.

This field is used to show store-specific member prices on Local Inventory Ads (LIA).

To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.

See Loyalty program for details on supported countries and loyalty program configuration. For local inventory specific details, see the Local inventory data specification.

repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
InventoryLoyaltyProgram.Builder

getLoyaltyProgramsBuilderList()

public List<InventoryLoyaltyProgram.Builder> getLoyaltyProgramsBuilderList()

Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store.

This field is used to show store-specific member prices on Local Inventory Ads (LIA).

To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.

See Loyalty program for details on supported countries and loyalty program configuration. For local inventory specific details, see the Local inventory data specification.

repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getLoyaltyProgramsCount()

public int getLoyaltyProgramsCount()

Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store.

This field is used to show store-specific member prices on Local Inventory Ads (LIA).

To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.

See Loyalty program for details on supported countries and loyalty program configuration. For local inventory specific details, see the Local inventory data specification.

repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLoyaltyProgramsList()

public List<InventoryLoyaltyProgram> getLoyaltyProgramsList()

Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store.

This field is used to show store-specific member prices on Local Inventory Ads (LIA).

To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.

See Loyalty program for details on supported countries and loyalty program configuration. For local inventory specific details, see the Local inventory data specification.

repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<InventoryLoyaltyProgram>

getLoyaltyProgramsOrBuilder(int index)

public InventoryLoyaltyProgramOrBuilder getLoyaltyProgramsOrBuilder(int index)

Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store.

This field is used to show store-specific member prices on Local Inventory Ads (LIA).

To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.

See Loyalty program for details on supported countries and loyalty program configuration. For local inventory specific details, see the Local inventory data specification.

repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
InventoryLoyaltyProgramOrBuilder

getLoyaltyProgramsOrBuilderList()

public List<? extends InventoryLoyaltyProgramOrBuilder> getLoyaltyProgramsOrBuilderList()

Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store.

This field is used to show store-specific member prices on Local Inventory Ads (LIA).

To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.

See Loyalty program for details on supported countries and loyalty program configuration. For local inventory specific details, see the Local inventory data specification.

repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder>

getPickupMethod()

public LocalInventoryAttributes.PickupMethod getPickupMethod()

Optional. Supported pickup method for this product. Unless the value is "not supported", this field must be submitted together with pickupSla.

optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.PickupMethod pickup_method = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LocalInventoryAttributes.PickupMethod

The pickupMethod.

getPickupMethodValue()

public int getPickupMethodValue()

Optional. Supported pickup method for this product. Unless the value is "not supported", this field must be submitted together with pickupSla.

optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.PickupMethod pickup_method = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for pickupMethod.

getPickupSla()

public LocalInventoryAttributes.PickupSla getPickupSla()

Optional. 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. See more details here.

optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.PickupSla pickup_sla = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LocalInventoryAttributes.PickupSla

The pickupSla.

getPickupSlaValue()

public int getPickupSlaValue()

Optional. 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. See more details here.

optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.PickupSla pickup_sla = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for pickupSla.

getPrice()

public Price getPrice()

Optional. Price of the product at this store.

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

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

The price.

getPriceBuilder()

public Price.Builder getPriceBuilder()

Optional. Price of the product at this store.

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

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

getPriceOrBuilder()

public PriceOrBuilder getPriceOrBuilder()

Optional. Price of the product at this store.

.google.shopping.type.Price price = 1 [(.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 = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The quantity.

getSalePrice()

public Price getSalePrice()

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

.google.shopping.type.Price sale_price = 2 [(.google.api.field_behavior) = OPTIONAL];

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

The salePrice.

getSalePriceBuilder()

public Price.Builder getSalePriceBuilder()

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

.google.shopping.type.Price sale_price = 2 [(.google.api.field_behavior) = OPTIONAL];

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

getSalePriceEffectiveDate()

public Interval getSalePriceEffectiveDate()

Optional. The TimePeriod of the sale at this store.

.google.type.Interval sale_price_effective_date = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.Interval

The salePriceEffectiveDate.

getSalePriceEffectiveDateBuilder()

public Interval.Builder getSalePriceEffectiveDateBuilder()

Optional. The TimePeriod of the sale at this store.

.google.type.Interval sale_price_effective_date = 3 [(.google.api.field_behavior) = OPTIONAL];

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

getSalePriceEffectiveDateOrBuilder()

public IntervalOrBuilder getSalePriceEffectiveDateOrBuilder()

Optional. The TimePeriod of the sale at this store.

.google.type.Interval sale_price_effective_date = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.IntervalOrBuilder

getSalePriceOrBuilder()

public PriceOrBuilder getSalePriceOrBuilder()

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

.google.shopping.type.Price sale_price = 2 [(.google.api.field_behavior) = OPTIONAL];

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

hasAvailability()

public boolean hasAvailability()

Availability of the product at this store.

optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.Availability availability = 4;

Returns
Type Description
boolean

Whether the availability field is set.

hasInstoreProductLocation()

public boolean hasInstoreProductLocation()

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

optional string instore_product_location = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the instoreProductLocation field is set.

hasLocalShippingLabel()

public boolean hasLocalShippingLabel()

Optional. Specifies a label associated with the shipping for the LocalInventory resource. Can be used to group local shipping services to this particular inventory item. For accepted field format, see the Local delivery

optional string local_shipping_label = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the localShippingLabel field is set.

hasPickupMethod()

public boolean hasPickupMethod()

Optional. Supported pickup method for this product. Unless the value is "not supported", this field must be submitted together with pickupSla.

optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.PickupMethod pickup_method = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the pickupMethod field is set.

hasPickupSla()

public boolean hasPickupSla()

Optional. 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. See more details here.

optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.PickupSla pickup_sla = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the pickupSla field is set.

hasPrice()

public boolean hasPrice()

Optional. Price of the product at this store.

.google.shopping.type.Price price = 1 [(.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 = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the quantity field is set.

hasSalePrice()

public boolean hasSalePrice()

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

.google.shopping.type.Price sale_price = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the salePrice field is set.

hasSalePriceEffectiveDate()

public boolean hasSalePriceEffectiveDate()

Optional. The TimePeriod of the sale at this store.

.google.type.Interval sale_price_effective_date = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the salePriceEffectiveDate field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(LocalInventoryAttributes other)

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

mergePrice(Price value)

public LocalInventoryAttributes.Builder mergePrice(Price value)

Optional. Price of the product at this store.

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

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

mergeSalePrice(Price value)

public LocalInventoryAttributes.Builder mergeSalePrice(Price value)

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

.google.shopping.type.Price sale_price = 2 [(.google.api.field_behavior) = OPTIONAL];

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

mergeSalePriceEffectiveDate(Interval value)

public LocalInventoryAttributes.Builder mergeSalePriceEffectiveDate(Interval value)

Optional. The TimePeriod of the sale at this store.

.google.type.Interval sale_price_effective_date = 3 [(.google.api.field_behavior) = OPTIONAL];

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

removeCustomAttributes(int index)

public LocalInventoryAttributes.Builder removeCustomAttributes(int index)

Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.

repeated .google.shopping.type.CustomAttribute custom_attributes = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
LocalInventoryAttributes.Builder

removeLoyaltyPrograms(int index)

public LocalInventoryAttributes.Builder removeLoyaltyPrograms(int index)

Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store.

This field is used to show store-specific member prices on Local Inventory Ads (LIA).

To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.

See Loyalty program for details on supported countries and loyalty program configuration. For local inventory specific details, see the Local inventory data specification.

repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
LocalInventoryAttributes.Builder

setAvailability(LocalInventoryAttributes.Availability value)

public LocalInventoryAttributes.Builder setAvailability(LocalInventoryAttributes.Availability value)

Availability of the product at this store.

optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.Availability availability = 4;

Parameter
Name Description
value LocalInventoryAttributes.Availability

The availability to set.

Returns
Type Description
LocalInventoryAttributes.Builder

This builder for chaining.

setAvailabilityValue(int value)

public LocalInventoryAttributes.Builder setAvailabilityValue(int value)

Availability of the product at this store.

optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.Availability availability = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for availability to set.

Returns
Type Description
LocalInventoryAttributes.Builder

This builder for chaining.

setCustomAttributes(int index, CustomAttribute value)

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

Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.

repeated .google.shopping.type.CustomAttribute custom_attributes = 11 [(.google.api.field_behavior) = OPTIONAL];

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

setCustomAttributes(int index, CustomAttribute.Builder builderForValue)

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

Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.

repeated .google.shopping.type.CustomAttribute custom_attributes = 11 [(.google.api.field_behavior) = OPTIONAL];

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

setInstoreProductLocation(String value)

public LocalInventoryAttributes.Builder setInstoreProductLocation(String value)

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

optional string instore_product_location = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The instoreProductLocation to set.

Returns
Type Description
LocalInventoryAttributes.Builder

This builder for chaining.

setInstoreProductLocationBytes(ByteString value)

public LocalInventoryAttributes.Builder setInstoreProductLocationBytes(ByteString value)

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

optional string instore_product_location = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for instoreProductLocation to set.

Returns
Type Description
LocalInventoryAttributes.Builder

This builder for chaining.

setLocalShippingLabel(String value)

public LocalInventoryAttributes.Builder setLocalShippingLabel(String value)

Optional. Specifies a label associated with the shipping for the LocalInventory resource. Can be used to group local shipping services to this particular inventory item. For accepted field format, see the Local delivery

optional string local_shipping_label = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The localShippingLabel to set.

Returns
Type Description
LocalInventoryAttributes.Builder

This builder for chaining.

setLocalShippingLabelBytes(ByteString value)

public LocalInventoryAttributes.Builder setLocalShippingLabelBytes(ByteString value)

Optional. Specifies a label associated with the shipping for the LocalInventory resource. Can be used to group local shipping services to this particular inventory item. For accepted field format, see the Local delivery

optional string local_shipping_label = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for localShippingLabel to set.

Returns
Type Description
LocalInventoryAttributes.Builder

This builder for chaining.

setLoyaltyPrograms(int index, InventoryLoyaltyProgram value)

public LocalInventoryAttributes.Builder setLoyaltyPrograms(int index, InventoryLoyaltyProgram value)

Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store.

This field is used to show store-specific member prices on Local Inventory Ads (LIA).

To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.

See Loyalty program for details on supported countries and loyalty program configuration. For local inventory specific details, see the Local inventory data specification.

repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value InventoryLoyaltyProgram
Returns
Type Description
LocalInventoryAttributes.Builder

setLoyaltyPrograms(int index, InventoryLoyaltyProgram.Builder builderForValue)

public LocalInventoryAttributes.Builder setLoyaltyPrograms(int index, InventoryLoyaltyProgram.Builder builderForValue)

Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store.

This field is used to show store-specific member prices on Local Inventory Ads (LIA).

To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.

See Loyalty program for details on supported countries and loyalty program configuration. For local inventory specific details, see the Local inventory data specification.

repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue InventoryLoyaltyProgram.Builder
Returns
Type Description
LocalInventoryAttributes.Builder

setPickupMethod(LocalInventoryAttributes.PickupMethod value)

public LocalInventoryAttributes.Builder setPickupMethod(LocalInventoryAttributes.PickupMethod value)

Optional. Supported pickup method for this product. Unless the value is "not supported", this field must be submitted together with pickupSla.

optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.PickupMethod pickup_method = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value LocalInventoryAttributes.PickupMethod

The pickupMethod to set.

Returns
Type Description
LocalInventoryAttributes.Builder

This builder for chaining.

setPickupMethodValue(int value)

public LocalInventoryAttributes.Builder setPickupMethodValue(int value)

Optional. Supported pickup method for this product. Unless the value is "not supported", this field must be submitted together with pickupSla.

optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.PickupMethod pickup_method = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for pickupMethod to set.

Returns
Type Description
LocalInventoryAttributes.Builder

This builder for chaining.

setPickupSla(LocalInventoryAttributes.PickupSla value)

public LocalInventoryAttributes.Builder setPickupSla(LocalInventoryAttributes.PickupSla value)

Optional. 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. See more details here.

optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.PickupSla pickup_sla = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value LocalInventoryAttributes.PickupSla

The pickupSla to set.

Returns
Type Description
LocalInventoryAttributes.Builder

This builder for chaining.

setPickupSlaValue(int value)

public LocalInventoryAttributes.Builder setPickupSlaValue(int value)

Optional. 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. See more details here.

optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.PickupSla pickup_sla = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for pickupSla to set.

Returns
Type Description
LocalInventoryAttributes.Builder

This builder for chaining.

setPrice(Price value)

public LocalInventoryAttributes.Builder setPrice(Price value)

Optional. Price of the product at this store.

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

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

setPrice(Price.Builder builderForValue)

public LocalInventoryAttributes.Builder setPrice(Price.Builder builderForValue)

Optional. Price of the product at this store.

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

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

setQuantity(long value)

public LocalInventoryAttributes.Builder setQuantity(long value)

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

optional int64 quantity = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The quantity to set.

Returns
Type Description
LocalInventoryAttributes.Builder

This builder for chaining.

setSalePrice(Price value)

public LocalInventoryAttributes.Builder setSalePrice(Price value)

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

.google.shopping.type.Price sale_price = 2 [(.google.api.field_behavior) = OPTIONAL];

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

setSalePrice(Price.Builder builderForValue)

public LocalInventoryAttributes.Builder setSalePrice(Price.Builder builderForValue)

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

.google.shopping.type.Price sale_price = 2 [(.google.api.field_behavior) = OPTIONAL];

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

setSalePriceEffectiveDate(Interval value)

public LocalInventoryAttributes.Builder setSalePriceEffectiveDate(Interval value)

Optional. The TimePeriod of the sale at this store.

.google.type.Interval sale_price_effective_date = 3 [(.google.api.field_behavior) = OPTIONAL];

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

setSalePriceEffectiveDate(Interval.Builder builderForValue)

public LocalInventoryAttributes.Builder setSalePriceEffectiveDate(Interval.Builder builderForValue)

Optional. The TimePeriod of the sale at this store.

.google.type.Interval sale_price_effective_date = 3 [(.google.api.field_behavior) = OPTIONAL];

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