# Google Cloud Channel V1 Client - Class CloudIdentityCustomerAccount (2.4.1)

2.4.1 (latest) 2.4.0 2.3.1 2.2.1 2.1.4 2.0.0 1.9.5 1.8.2 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.1 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Channel V1 Client class CloudIdentityCustomerAccount.

Entity representing a Cloud Identity account that may be
associated with a Channel Services API partner.

Generated from protobuf message `google.cloud.channel.v1.CloudIdentityCustomerAccount`

## Namespace

Google \\ Cloud \\ Channel \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ existing` | `bool` Returns true if a Cloud Identity account exists for a specific domain. |
| `↳ owned` | `bool` Returns true if the Cloud Identity account is associated with a customer of the Channel Services partner (with active subscriptions or purchase consents). |
| `↳ customer_name` | `string` If owned = true, the name of the customer that owns the Cloud Identity account. Customer_name uses the format: accounts/{account_id}/customers/{customer_id} |
| `↳ customer_cloud_identity_id` | `string` If existing = true, the Cloud Identity ID of the customer. |
| `↳ customer_type` | `int` If existing = true, the type of the customer. |
| `↳ channel_partner_cloud_identity_id` | `string` If existing = true, and is 2-tier customer, the channel partner of the customer. |

### getExisting

Returns true if a Cloud Identity account exists for a specific domain.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setExisting

Returns true if a Cloud Identity account exists for a specific domain.

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

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

### getOwned

Returns true if the Cloud Identity account is associated with a customer
of the Channel Services partner (with active subscriptions or purchase
consents).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setOwned

Returns true if the Cloud Identity account is associated with a customer
of the Channel Services partner (with active subscriptions or purchase
consents).

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

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

### getCustomerName

If owned = true, the name of the customer that owns the Cloud Identity
account.

Customer_name uses the format:
accounts/{account_id}/customers/{customer_id}

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

### setCustomerName

If owned = true, the name of the customer that owns the Cloud Identity
account.

Customer_name uses the format:
accounts/{account_id}/customers/{customer_id}

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

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

### getCustomerCloudIdentityId

If existing = true, the Cloud Identity ID of the customer.

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

### setCustomerCloudIdentityId

If existing = true, the Cloud Identity ID of the customer.

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

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

### getCustomerType

If existing = true, the type of the customer.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [CustomerType](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.CloudIdentityInfo.CustomerType). |

### setCustomerType

If existing = true, the type of the customer.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [CustomerType](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.CloudIdentityInfo.CustomerType). |

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

### getChannelPartnerCloudIdentityId

If existing = true, and is 2-tier customer, the channel partner of the
customer.

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

### setChannelPartnerCloudIdentityId

If existing = true, and is 2-tier customer, the channel partner of the
customer.

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

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