# Google Shopping Merchant Accounts V1 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 Reference documentation and code samples for the Google Shopping Merchant Accounts V1 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.v1.BusinessIdentity`

## Namespace

Google \\ Shopping \\ Merchant \\ Accounts \\ V1

## 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` Required. Whether the identity attributes may be used for promotions. |
| `↳ black_owned` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1.BusinessIdentity.IdentityAttribute` Optional. Specifies whether the business identifies itself as being black-owned. This optional field will only be available for businesses with the 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/V1.BusinessIdentity.IdentityAttribute` Optional. Specifies whether the business identifies itself as being women-owned. This optional field will only be available for businesses 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/V1.BusinessIdentity.IdentityAttribute` Optional. Specifies whether the business identifies itself as being veteran-owned. This optional field will only be available for businesses 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/V1.BusinessIdentity.IdentityAttribute` Optional. Specifies whether the business identifies itself as being latino-owned. This optional field will only be available for businesses with the 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/V1.BusinessIdentity.IdentityAttribute` Optional. Specifies whether the business identifies itself as a small business. This optional field will only be available for businesses 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

Required. 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/V1.BusinessIdentity.PromotionsConsent). |

### setPromotionsConsent

Required. 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/V1.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 businesses with
the 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/V1.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 businesses with
the 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/V1.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 businesses 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/V1.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 businesses 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/V1.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 businesses
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/V1.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 businesses
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/V1.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 businesses
with the 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/V1.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 businesses
with the 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/V1.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 businesses 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/V1.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 businesses 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/V1.BusinessIdentity.IdentityAttribute` |

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