# Google Shopping Merchant Lfp V1 Client - Class LfpMerchantState (1.2.1)

1.2.1 (latest) 1.2.0 1.1.3 1.0.0 0.4.0 0.3.2 0.2.0 0.1.3 Reference documentation and code samples for the Google Shopping Merchant Lfp V1 Client class LfpMerchantState.

The LFP state of a merchant.

Generated from protobuf message `google.shopping.merchant.lfp.v1.LfpMerchantState`

## Namespace

Google \\ Shopping \\ Merchant \\ Lfp \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The name of the `LfpMerchantState` resource. Format: `accounts/{account}/lfpMerchantStates/{target_merchant}`. For example, `accounts/123456/lfpMerchantStates/567890`. |
| `↳ linked_gbps` | `int|string` Number of [GBPs](https://www.google.com/business/) this merchant has access to. |
| `↳ store_states` | `array<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-lfp/latest/V1.LfpMerchantState.LfpStoreState>` Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP. |
| `↳ inventory_stats` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-lfp/latest/V1.LfpMerchantState.InventoryStats` The inventory statistics for the merchant. The field will be absent if the merchant has no inventory submitted through LFP. |
| `↳ country_settings` | `array<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-lfp/latest/V1.LfpMerchantState.CountrySettings>` Country-specific settings for the merchant. |

### getName

Identifier. The name of the `LfpMerchantState` resource. Format:
`accounts/{account}/lfpMerchantStates/{target_merchant}`. For example,
`accounts/123456/lfpMerchantStates/567890`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Identifier. The name of the `LfpMerchantState` resource. Format:
`accounts/{account}/lfpMerchantStates/{target_merchant}`. For example,
`accounts/123456/lfpMerchantStates/567890`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLinkedGbps

Number of [GBPs](https://www.google.com/business/) this merchant has access
to.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setLinkedGbps

Number of [GBPs](https://www.google.com/business/) this merchant has access
to.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getStoreStates

Output only. The state per store from the specified merchant. The field
will be absent if the merchant has no stores submitted through LFP.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-lfp/latest/V1.LfpMerchantState.LfpStoreState>` |   |

### setStoreStates

Output only. The state per store from the specified merchant. The field
will be absent if the merchant has no stores submitted through LFP.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-lfp/latest/V1.LfpMerchantState.LfpStoreState>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getInventoryStats

The inventory statistics for the merchant. The field will be absent if the
merchant has no inventory submitted through LFP.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-lfp/latest/V1.LfpMerchantState.InventoryStats|null` |   |

### hasInventoryStats

### clearInventoryStats

### setInventoryStats

The inventory statistics for the merchant. The field will be absent if the
merchant has no inventory submitted through LFP.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-lfp/latest/V1.LfpMerchantState.InventoryStats` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCountrySettings

Country-specific settings for the merchant.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-lfp/latest/V1.LfpMerchantState.CountrySettings>` |   |

### setCountrySettings

Country-specific settings for the merchant.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-lfp/latest/V1.LfpMerchantState.CountrySettings>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |