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

Request message for the GetLfpMerchantState method.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The name of the state to retrieve. Format: `accounts/{account}/lfpMerchantStates/{target_merchant}`. For example, `accounts/123456/lfpMerchantStates/567890`. |

### getName

Required. The name of the state to retrieve.

Format: `accounts/{account}/lfpMerchantStates/{target_merchant}`. For
example, `accounts/123456/lfpMerchantStates/567890`.

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

### setName

Required. The name of the state to retrieve.

Format: `accounts/{account}/lfpMerchantStates/{target_merchant}`. For
example, `accounts/123456/lfpMerchantStates/567890`.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the state to retrieve. Format: `accounts/{account}/lfpMerchantStates/{target_merchant}`. For example, `accounts/123456/lfpMerchantStates/567890`. Please see LfpMerchantStateServiceClient::lfpMerchantStateName() for help formatting this field. |

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