# Google Cloud Channel V1 Client - Class Customer (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 Customer.

Entity representing a customer of a reseller or distributor.

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

## Namespace

Google \\ Cloud \\ Channel \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. Resource name of the customer. Format: accounts/{account_id}/customers/{customer_id} |
| `↳ org_display_name` | `string` Required. Name of the organization that the customer entity represents. |
| `↳ org_postal_address` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.PostalAddress.html` Required. The organization address for the customer. To enforce US laws and embargoes, we require a region, postal code, and address lines. You must provide valid addresses for every customer. To set the customer's language, use the Customer-level language code. |
| `↳ primary_contact_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.ContactInfo` Primary contact info. |
| `↳ alternate_email` | `string` Secondary contact email. You need to provide an alternate email to create different domains if a primary contact email already exists. Users will receive a notification with credentials when you create an admin.google.com account. Secondary emails are also recovery email addresses. Alternate emails are optional when you create Team customers. |
| `↳ domain` | `string` Required. The customer's primary domain. Must match the primary contact email's domain. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time when the customer was created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time when the customer was updated. |
| `↳ cloud_identity_id` | `string` Output only. The customer's Cloud Identity ID if the customer has a Cloud Identity resource. |
| `↳ language_code` | `string` Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see <https://www.unicode.org/reports/tr35/#Unicode_locale_identifier>. |
| `↳ cloud_identity_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.CloudIdentityInfo` Output only. Cloud Identity information for the customer. Populated only if a Cloud Identity account exists for this customer. |
| `↳ channel_partner_id` | `string` Cloud Identity ID of the customer's channel partner. Populated only if a channel partner exists for this customer. |
| `↳ correlation_id` | `string` Optional. External CRM ID for the customer. Populated only if a CRM ID exists for this customer. |
| `↳ customer_attestation_state` | `int` Optional. Indicate if a customer is attesting about the correctness of provided information. Only required if creating a GCP Entitlement. |

### getName

Output only. Resource name of the customer.

Format: accounts/{account_id}/customers/{customer_id}

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

### setName

Output only. Resource name of the customer.

Format: accounts/{account_id}/customers/{customer_id}

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

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

### getOrgDisplayName

Required. Name of the organization that the customer entity represents.

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

### setOrgDisplayName

Required. Name of the organization that the customer entity represents.

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

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

### getOrgPostalAddress

Required. The organization address for the customer. To enforce US laws and
embargoes, we require a region, postal code, and address lines. You must
provide valid addresses for every customer. To set the customer's
language, use the Customer-level language code.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.PostalAddress.html|null` |   |

### hasOrgPostalAddress

### clearOrgPostalAddress

### setOrgPostalAddress

Required. The organization address for the customer. To enforce US laws and
embargoes, we require a region, postal code, and address lines. You must
provide valid addresses for every customer. To set the customer's
language, use the Customer-level language code.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.PostalAddress.html` |

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

### getPrimaryContactInfo

Primary contact info.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.ContactInfo|null` |   |

### hasPrimaryContactInfo

### clearPrimaryContactInfo

### setPrimaryContactInfo

Primary contact info.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.ContactInfo` |

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

### getAlternateEmail

Secondary contact email. You need to provide an alternate email to create
different domains if a primary contact email already exists. Users will
receive a notification with credentials when you create an admin.google.com
account. Secondary emails are also recovery email addresses. Alternate
emails are optional when you create Team customers.

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

### setAlternateEmail

Secondary contact email. You need to provide an alternate email to create
different domains if a primary contact email already exists. Users will
receive a notification with credentials when you create an admin.google.com
account. Secondary emails are also recovery email addresses. Alternate
emails are optional when you create Team customers.

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

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

### getDomain

Required. The customer's primary domain. Must match the primary contact
email's domain.

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

### setDomain

Required. The customer's primary domain. Must match the primary contact
email's domain.

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

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

### getCreateTime

Output only. Time when the customer was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Time when the customer was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. Time when the customer was updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Time when the customer was updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getCloudIdentityId

Output only. The customer's Cloud Identity ID if the customer has a Cloud
Identity resource.

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

### setCloudIdentityId

Output only. The customer's Cloud Identity ID if the customer has a Cloud
Identity resource.

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

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

### getLanguageCode

Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
information, see
<https://www.unicode.org/reports/tr35/#Unicode_locale_identifier>.

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

### setLanguageCode

Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
information, see
<https://www.unicode.org/reports/tr35/#Unicode_locale_identifier>.

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

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

### getCloudIdentityInfo

Output only. Cloud Identity information for the customer.

Populated only if a Cloud Identity account exists for this customer.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.CloudIdentityInfo|null` |   |

### hasCloudIdentityInfo

### clearCloudIdentityInfo

### setCloudIdentityInfo

Output only. Cloud Identity information for the customer.

Populated only if a Cloud Identity account exists for this customer.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.CloudIdentityInfo` |

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

### getChannelPartnerId

Cloud Identity ID of the customer's channel partner.

Populated only if a channel partner exists for this customer.

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

### setChannelPartnerId

Cloud Identity ID of the customer's channel partner.

Populated only if a channel partner exists for this customer.

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

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

### getCorrelationId

Optional. External CRM ID for the customer.

Populated only if a CRM ID exists for this customer.

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

### setCorrelationId

Optional. External CRM ID for the customer.

Populated only if a CRM ID exists for this customer.

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

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

### getCustomerAttestationState

Optional. Indicate if a customer is attesting about the correctness of
provided information. Only required if creating a GCP Entitlement.

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

### setCustomerAttestationState

Optional. Indicate if a customer is attesting about the correctness of
provided information. Only required if creating a GCP Entitlement.

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

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