# Interface LfpStoreOrBuilder (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.29.0 0.27.0 0.26.0 0.23.0 0.22.0 0.21.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface LfpStoreOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getGcidCategory(int index)

    public abstract String getGcidCategory(int index)

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

`repeated string gcid_category = 8 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The gcidCategory at the given index. |

### getGcidCategoryBytes(int index)

    public abstract ByteString getGcidCategoryBytes(int index)

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

`repeated string gcid_category = 8 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the gcidCategory at the given index. |

### getGcidCategoryCount()

    public abstract int getGcidCategoryCount()

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

`repeated string gcid_category = 8 [(.google.api.field_behavior) = OPTIONAL];`

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

### getGcidCategoryList()

    public abstract List<String> getGcidCategoryList()

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

`repeated string gcid_category = 8 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the gcidCategory. |

### getMatchingState()

    public abstract LfpStore.StoreMatchingState getMatchingState()

Optional. Output only. The state of matching to a Google Business Profile.
See
matchingStateHint
for further details if no match is found.

`
.google.shopping.merchant.lfp.v1beta.LfpStore.StoreMatchingState matching_state = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-lfp/latest/com.google.shopping.merchant.lfp.v1beta.LfpStore.StoreMatchingState` | The matchingState. |

### getMatchingStateHint()

    public abstract String getMatchingStateHint()

Optional. Output only. The hint of why the matching has failed. This is
only set when
matchingState=`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.

`
optional string matching_state_hint = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The matchingStateHint. |

### getMatchingStateHintBytes()

    public abstract ByteString getMatchingStateHintBytes()

Optional. Output only. The hint of why the matching has failed. This is
only set when
matchingState=`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.

`
optional string matching_state_hint = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for matchingStateHint. |

### getMatchingStateValue()

    public abstract int getMatchingStateValue()

Optional. Output only. The state of matching to a Google Business Profile.
See
matchingStateHint
for further details if no match is found.

`
.google.shopping.merchant.lfp.v1beta.LfpStore.StoreMatchingState matching_state = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getName()

    public abstract String getName()

Output only. Identifier. The name of the `LfpStore` resource.
Format: `accounts/{account}/lfpStores/{target_merchant}~{store_code}`

`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract ByteString getNameBytes()

Output only. Identifier. The name of the `LfpStore` resource.
Format: `accounts/{account}/lfpStores/{target_merchant}~{store_code}`

`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getPhoneNumber()

    public abstract String getPhoneNumber()

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

`optional string phone_number = 6 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The phoneNumber. |

### getPhoneNumberBytes()

    public abstract ByteString getPhoneNumberBytes()

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

`optional string phone_number = 6 [(.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 phoneNumber. |

### getPlaceId()

    public abstract String getPlaceId()

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

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The placeId. |

### getPlaceIdBytes()

    public abstract ByteString getPlaceIdBytes()

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

`optional string place_id = 9 [(.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 placeId. |

### getStoreAddress()

    public abstract String getStoreAddress()

Required. The street address of the store.
Example: 1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA.

`string store_address = 4 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The storeAddress. |

### getStoreAddressBytes()

    public abstract ByteString getStoreAddressBytes()

Required. The street address of the store.
Example: 1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA.

`string store_address = 4 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for storeAddress. |

### getStoreCode()

    public abstract String getStoreCode()

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

`
string store_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The storeCode. |

### getStoreCodeBytes()

    public abstract ByteString getStoreCodeBytes()

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

`
string store_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for storeCode. |

### getStoreName()

    public abstract String getStoreName()

Optional. The merchant or store name.

`optional string store_name = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The storeName. |

### getStoreNameBytes()

    public abstract ByteString getStoreNameBytes()

Optional. The merchant or store name.

`optional string store_name = 5 [(.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 storeName. |

### getTargetAccount()

    public abstract long getTargetAccount()

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

`int64 target_account = 2 [(.google.api.field_behavior) = REQUIRED];`

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

### getWebsiteUri()

    public abstract String getWebsiteUri()

Optional. The website URL for the store or merchant.

`optional string website_uri = 7 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The websiteUri. |

### getWebsiteUriBytes()

    public abstract ByteString getWebsiteUriBytes()

Optional. The website URL for the store or merchant.

`optional string website_uri = 7 [(.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 websiteUri. |

### hasMatchingStateHint()

    public abstract boolean hasMatchingStateHint()

Optional. Output only. The hint of why the matching has failed. This is
only set when
matchingState=`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.

`
optional string matching_state_hint = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasPhoneNumber()

    public abstract boolean hasPhoneNumber()

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

`optional string phone_number = 6 [(.google.api.field_behavior) = OPTIONAL];`

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

### hasPlaceId()

    public abstract boolean hasPlaceId()

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

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

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

### hasStoreName()

    public abstract boolean hasStoreName()

Optional. The merchant or store name.

`optional string store_name = 5 [(.google.api.field_behavior) = OPTIONAL];`

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

### hasWebsiteUri()

    public abstract boolean hasWebsiteUri()

Optional. The website URL for the store or merchant.

`optional string website_uri = 7 [(.google.api.field_behavior) = OPTIONAL];`

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