# Google Shopping Merchant Accounts V1beta Client - Class BusinessIdentity (1.4.1)

1.4.1 (latest) 1.4.0 1.3.1 1.2.2 1.1.0 1.0.0 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.3 0.2.0 0.1.0

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Shopping Merchant Accounts V1beta Client class BusinessIdentity.

Collection of information related to the [identity of a
business](https://support.google.com/merchants/answer/12564247).

Generated from protobuf message `google.shopping.merchant.accounts.v1beta.BusinessIdentity`

## Namespace

Google \\ Shopping \\ Merchant \\ Accounts \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The resource name of the business identity. Format: `accounts/{account}/businessIdentity` |
| `↳ promotions_consent` | `int` Optional. Whether the identity attributes may be used for promotions. |
| `↳ black_owned` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.BusinessIdentity.IdentityAttribute` Optional. Specifies whether the business identifies itself as being black-owned. This optional field will only be available for merchants with a business country set to `US`. It is also not applicable for marketplaces or marketplace sellers. |
| `↳ women_owned` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.BusinessIdentity.IdentityAttribute` Optional. Specifies whether the business identifies itself as being women-owned. This optional field will only be available for merchants with a business country set to `US`. It is also not applicable for marketplaces or marketplace sellers. |
| `↳ veteran_owned` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.BusinessIdentity.IdentityAttribute` Optional. Specifies whether the business identifies itself as being veteran-owned. This optional field will only be available for merchants with a business country set to `US`. It is also not applicable for marketplaces or marketplace sellers. |
| `↳ latino_owned` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.BusinessIdentity.IdentityAttribute` Optional. Specifies whether the business identifies itself as being latino-owned. This optional field will only be available for merchants with a business country set to `US`. It is also not applicable for marketplaces or marketplace sellers. |
| `↳ small_business` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.BusinessIdentity.IdentityAttribute` Optional. Specifies whether the business identifies itself as a small business. This optional field will only be available for merchants with a business country set to `US`. It is also not applicable for marketplaces. |

### getName

Identifier. The resource name of the business identity.

Format: `accounts/{account}/businessIdentity`

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

### setName

Identifier. The resource name of the business identity.

Format: `accounts/{account}/businessIdentity`

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

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

### getPromotionsConsent

Optional. Whether the identity attributes may be used for promotions.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [PromotionsConsent](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.BusinessIdentity.PromotionsConsent). |

### setPromotionsConsent

Optional. Whether the identity attributes may be used for promotions.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [PromotionsConsent](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.BusinessIdentity.PromotionsConsent). |

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

### getBlackOwned

Optional. Specifies whether the business identifies itself as being
black-owned. This optional field will only be available for merchants with
a business country set to `US`. It is also not applicable for marketplaces
or marketplace sellers.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.BusinessIdentity.IdentityAttribute|null` |   |

### hasBlackOwned

### clearBlackOwned

### setBlackOwned

Optional. Specifies whether the business identifies itself as being
black-owned. This optional field will only be available for merchants with
a business country set to `US`. It is also not applicable for marketplaces
or marketplace sellers.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.BusinessIdentity.IdentityAttribute` |

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

### getWomenOwned

Optional. Specifies whether the business identifies itself as being
women-owned. This optional field will only be available for merchants with
a business country set to `US`. It is also not applicable for marketplaces
or marketplace sellers.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.BusinessIdentity.IdentityAttribute|null` |   |

### hasWomenOwned

### clearWomenOwned

### setWomenOwned

Optional. Specifies whether the business identifies itself as being
women-owned. This optional field will only be available for merchants with
a business country set to `US`. It is also not applicable for marketplaces
or marketplace sellers.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.BusinessIdentity.IdentityAttribute` |

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

### getVeteranOwned

Optional. Specifies whether the business identifies itself as being
veteran-owned. This optional field will only be available for merchants
with a business country set to `US`. It is also not applicable for
marketplaces or marketplace sellers.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.BusinessIdentity.IdentityAttribute|null` |   |

### hasVeteranOwned

### clearVeteranOwned

### setVeteranOwned

Optional. Specifies whether the business identifies itself as being
veteran-owned. This optional field will only be available for merchants
with a business country set to `US`. It is also not applicable for
marketplaces or marketplace sellers.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.BusinessIdentity.IdentityAttribute` |

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

### getLatinoOwned

Optional. Specifies whether the business identifies itself as being
latino-owned. This optional field will only be available for merchants with
a business country set to `US`. It is also not applicable for marketplaces
or marketplace sellers.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.BusinessIdentity.IdentityAttribute|null` |   |

### hasLatinoOwned

### clearLatinoOwned

### setLatinoOwned

Optional. Specifies whether the business identifies itself as being
latino-owned. This optional field will only be available for merchants with
a business country set to `US`. It is also not applicable for marketplaces
or marketplace sellers.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.BusinessIdentity.IdentityAttribute` |

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

### getSmallBusiness

Optional. Specifies whether the business identifies itself as a small
business. This optional field will only be available for merchants with a
business country set to `US`. It is also not applicable for marketplaces.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.BusinessIdentity.IdentityAttribute|null` |   |

### hasSmallBusiness

### clearSmallBusiness

### setSmallBusiness

Optional. Specifies whether the business identifies itself as a small
business. This optional field will only be available for merchants with a
business country set to `US`. It is also not applicable for marketplaces.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.BusinessIdentity.IdentityAttribute` |

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