# Google Shopping Merchant Lfp V1 Client - Class LfpStore (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 LfpStore.

A store for the merchant. This will be used to match to a store under the
Google Business Profile of the target merchant. If a matching store can't be
found, the inventories or sales submitted with the store code will not be
used.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. Identifier. The name of the `LfpStore` resource. Format: `accounts/{account}/lfpStores/{target_merchant}~{store_code}` |
| `↳ target_account` | `int|string` Required. The Merchant Center id of the merchant to submit the store for. |
| `↳ store_code` | `string` Required. Immutable. A store identifier that is unique for the target merchant. |
| `↳ store_address` | `string` Required. The street address of the store. Example: 1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA. |
| `↳ store_name` | `string` Optional. The merchant or store name. |
| `↳ phone_number` | `string` Optional. The store phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format. Example: `+15556767888` |
| `↳ website_uri` | `string` Optional. The website URL for the store or merchant. |
| `↳ gcid_category` | `string[]` Optional. [Google My Business category id](https://gcid-explorer.corp.google.com/static/gcid.html). |
| `↳ place_id` | `string` Optional. The [Google Place Id](https://developers.google.com/maps/documentation/places/web-service/place-id#id-overview) of the store location. |
| `↳ matching_state` | `int` Optional. Output only. The state of matching to a Google Business Profile. See [matchingStateHint](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-lfp/latest/V1.LfpStore#_Google_Shopping_Merchant_Lfp_V1_LfpStore__getMatchingStateHint__) for further details if no match is found. |
| `↳ matching_state_hint` | `string` Optional. Output only. The hint of why the matching has failed. This is only set when [matchingState](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-lfp/latest/V1.LfpStore#_Google_Shopping_Merchant_Lfp_V1_LfpStore__getMatchingState__)=`STORE_MATCHING_STATE_FAILED`. Possible values are: - "`linked-store-not-found`": There aren't any Google Business Profile stores available for matching. - "`store-match-not-found`": The provided `LfpStore` couldn't be matched to any of the connected Google Business Profile stores. Merchant Center account is connected correctly and stores are available on Google Business Profile, but the `LfpStore` location address does not match with Google Business Profile stores' addresses. Update the `LfpStore` address or Google Business Profile store address to match correctly. - "`store-match-unverified`": The provided `LfpStore` couldn't be matched to any of the connected Google Business Profile stores, as the matched Google Business Profile store is unverified. Go through the Google Business Profile verification process to match correctly. |

### getName

Output only. Identifier. The name of the `LfpStore` resource.

Format: `accounts/{account}/lfpStores/{target_merchant}~{store_code}`

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

### setName

Output only. Identifier. The name of the `LfpStore` resource.

Format: `accounts/{account}/lfpStores/{target_merchant}~{store_code}`

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

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

### getTargetAccount

Required. The Merchant Center id of the merchant to submit the store for.

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

### setTargetAccount

Required. The Merchant Center id of the merchant to submit the store for.

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

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

### getStoreCode

Required. Immutable. A store identifier that is unique for the target
merchant.

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

### setStoreCode

Required. Immutable. A store identifier that is unique for the target
merchant.

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

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

### getStoreAddress

Required. The street address of the store.

Example: 1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA.

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

### setStoreAddress

Required. The street address of the store.

Example: 1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA.

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

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

### getStoreName

Optional. The merchant or store name.

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

### hasStoreName

### clearStoreName

### setStoreName

Optional. The merchant or store name.

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

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

### getPhoneNumber

Optional. The store phone number in
[E.164](https://en.wikipedia.org/wiki/E.164) format. Example:
`+15556767888`

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

### hasPhoneNumber

### clearPhoneNumber

### setPhoneNumber

Optional. The store phone number in
[E.164](https://en.wikipedia.org/wiki/E.164) format. Example:
`+15556767888`

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

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

### getWebsiteUri

Optional. The website URL for the store or merchant.

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

### hasWebsiteUri

### clearWebsiteUri

### setWebsiteUri

Optional. The website URL for the store or merchant.

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

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

### getGcidCategory

Optional. [Google My Business category
id](https://gcid-explorer.corp.google.com/static/gcid.html).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setGcidCategory

Optional. [Google My Business category
id](https://gcid-explorer.corp.google.com/static/gcid.html).

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

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

### getPlaceId

Optional. The [Google Place
Id](https://developers.google.com/maps/documentation/places/web-service/place-id#id-overview)
of the store location.

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

### hasPlaceId

### clearPlaceId

### setPlaceId

Optional. The [Google Place
Id](https://developers.google.com/maps/documentation/places/web-service/place-id#id-overview)
of the store location.

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

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

### getMatchingState

Optional. Output only. The state of matching to a Google Business Profile.

See
[matchingStateHint](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-lfp/latest/V1.LfpStore#_Google_Shopping_Merchant_Lfp_V1_LfpStore__getMatchingStateHint__)
for further details if no match is found.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [StoreMatchingState](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-lfp/latest/V1.LfpStore.StoreMatchingState). |

### setMatchingState

Optional. Output only. The state of matching to a Google Business Profile.

See
[matchingStateHint](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-lfp/latest/V1.LfpStore#_Google_Shopping_Merchant_Lfp_V1_LfpStore__getMatchingStateHint__)
for further details if no match is found.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [StoreMatchingState](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-lfp/latest/V1.LfpStore.StoreMatchingState). |

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

### getMatchingStateHint

Optional. Output only. The hint of why the matching has failed. This is
only set when
[matchingState](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-lfp/latest/V1.LfpStore#_Google_Shopping_Merchant_Lfp_V1_LfpStore__getMatchingState__)=`STORE_MATCHING_STATE_FAILED`.

Possible values are:

- "`linked-store-not-found`": There aren't any Google Business Profile stores available for matching.
- "`store-match-not-found`": The provided `LfpStore` couldn't be matched to any of the connected Google Business Profile stores. Merchant Center account is connected correctly and stores are available on Google Business Profile, but the `LfpStore` location address does not match with Google Business Profile stores' addresses. Update the `LfpStore` address or Google Business Profile store address to match correctly.
- "`store-match-unverified`": The provided `LfpStore` couldn't be matched to any of the connected Google Business Profile stores, as the matched Google Business Profile store is unverified. Go through the Google Business Profile verification process to match correctly.

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

### hasMatchingStateHint

### clearMatchingStateHint

### setMatchingStateHint

Optional. Output only. The hint of why the matching has failed. This is
only set when
[matchingState](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-lfp/latest/V1.LfpStore#_Google_Shopping_Merchant_Lfp_V1_LfpStore__getMatchingState__)=`STORE_MATCHING_STATE_FAILED`.

Possible values are:

- "`linked-store-not-found`": There aren't any Google Business Profile stores available for matching.
- "`store-match-not-found`": The provided `LfpStore` couldn't be matched to any of the connected Google Business Profile stores. Merchant Center account is connected correctly and stores are available on Google Business Profile, but the `LfpStore` location address does not match with Google Business Profile stores' addresses. Update the `LfpStore` address or Google Business Profile store address to match correctly.
- "`store-match-unverified`": The provided `LfpStore` couldn't be matched to any of the connected Google Business Profile stores, as the matched Google Business Profile store is unverified. Go through the Google Business Profile verification process to match correctly.

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

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