# Interface LocalInventoryAttributesOrBuilder (1.21.0)

1.21.0 (latest) 1.19.0 1.16.0 1.15.0 1.13.0 1.11.0 1.10.0 1.8.0 1.6.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.46.0 0.44.0 0.43.0 0.40.0 0.39.0 0.38.0 0.36.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0

    public interface LocalInventoryAttributesOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getAvailability()

    public abstract LocalInventoryAttributes.Availability getAvailability()

[Availability](https://support.google.com/merchants/answer/3061342) of the
product at this store.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-inventories/latest/com.google.shopping.merchant.inventories.v1.LocalInventoryAttributes.Availability` | The availability. |

### getAvailabilityValue()

    public abstract int getAvailabilityValue()

[Availability](https://support.google.com/merchants/answer/3061342) of the
product at this store.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for availability. |

### getInstoreProductLocation()

    public abstract 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The instoreProductLocation. |

### getInstoreProductLocationBytes()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for instoreProductLocation. |

### getLoyaltyPrograms(int index)

    public abstract 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](https://support.google.com/merchants/answer/12922446)
for details on supported countries and loyalty program configuration.
For local inventory specific details, see the [Local inventory data
specification](https://support.google.com/merchants/answer/3061342).

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-inventories/latest/com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram` |   |

### getLoyaltyProgramsCount()

    public abstract 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](https://support.google.com/merchants/answer/12922446)
for details on supported countries and loyalty program configuration.
For local inventory specific details, see the [Local inventory data
specification](https://support.google.com/merchants/answer/3061342).

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getLoyaltyProgramsList()

    public abstract 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](https://support.google.com/merchants/answer/12922446)
for details on supported countries and loyalty program configuration.
For local inventory specific details, see the [Local inventory data
specification](https://support.google.com/merchants/answer/3061342).

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-inventories/latest/com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram>` |   |

### getLoyaltyProgramsOrBuilder(int index)

    public abstract 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](https://support.google.com/merchants/answer/12922446)
for details on supported countries and loyalty program configuration.
For local inventory specific details, see the [Local inventory data
specification](https://support.google.com/merchants/answer/3061342).

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-inventories/latest/com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder` |   |

### getLoyaltyProgramsOrBuilderList()

    public abstract 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](https://support.google.com/merchants/answer/12922446)
for details on supported countries and loyalty program configuration.
For local inventory specific details, see the [Local inventory data
specification](https://support.google.com/merchants/answer/3061342).

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder>` |   |

### getPickupMethod()

    public abstract LocalInventoryAttributes.PickupMethod getPickupMethod()

Optional. Supported [pickup
method](https://support.google.com/merchants/answer/3061342) 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** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-inventories/latest/com.google.shopping.merchant.inventories.v1.LocalInventoryAttributes.PickupMethod` | The pickupMethod. |

### getPickupMethodValue()

    public abstract int getPickupMethodValue()

Optional. Supported [pickup
method](https://support.google.com/merchants/answer/3061342) 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for pickupMethod. |

### getPickupSla()

    public abstract 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](https://support.google.com/merchants/answer/3061342).

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-inventories/latest/com.google.shopping.merchant.inventories.v1.LocalInventoryAttributes.PickupSla` | The pickupSla. |

### getPickupSlaValue()

    public abstract 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](https://support.google.com/merchants/answer/3061342).

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for pickupSla. |

### getPrice()

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

### getPriceOrBuilder()

    public abstract 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 abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The quantity. |

### getSalePrice()

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

### getSalePriceEffectiveDate()

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

### getSalePriceEffectiveDateOrBuilder()

    public abstract 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 abstract 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 abstract boolean hasAvailability()

[Availability](https://support.google.com/merchants/answer/3061342) of the
product at this store.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the availability field is set. |

### hasInstoreProductLocation()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the instoreProductLocation field is set. |

### hasPickupMethod()

    public abstract boolean hasPickupMethod()

Optional. Supported [pickup
method](https://support.google.com/merchants/answer/3061342) 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the pickupMethod field is set. |

### hasPickupSla()

    public abstract 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](https://support.google.com/merchants/answer/3061342).

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the pickupSla field is set. |

### hasPrice()

    public abstract boolean hasPrice()

Optional. Price of the product at this store.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the price field is set. |

### hasQuantity()

    public abstract boolean hasQuantity()

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

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the quantity field is set. |

### hasSalePrice()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the salePrice field is set. |

### hasSalePriceEffectiveDate()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the salePriceEffectiveDate field is set. |