# Interface CustomerOrBuilder (3.97.0)

3.97.0 (latest) 3.95.0 3.92.0 3.91.0 3.89.0 3.87.0 3.86.0 3.85.0 3.84.0 3.82.0 3.80.0 3.79.0 3.78.0 3.77.0 3.76.0 3.74.0 3.72.0 3.71.0 3.68.0 3.67.0 3.66.0 3.64.0 3.63.0 3.62.0 3.61.0 3.60.0 3.59.0 3.58.0 3.57.0 3.56.0 3.55.0 3.53.0 3.52.0 3.51.0 3.50.0 3.49.0 3.48.0 3.47.0 3.46.0 3.45.0 3.44.0 3.43.0 3.41.0 3.40.0 3.39.0 3.38.0 3.37.0 3.36.0 3.35.0 3.34.0 3.33.0 3.32.0 3.31.0 3.28.0 3.27.0 3.26.0 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.6 3.6.1 3.5.1 3.3.1

    public interface CustomerOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getAlternateEmail()

    public abstract String 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.

`string alternate_email = 5;`

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

### getAlternateEmailBytes()

    public abstract ByteString getAlternateEmailBytes()

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.

`string alternate_email = 5;`

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

### getChannelPartnerId()

    public abstract String getChannelPartnerId()

Cloud Identity ID of the customer's channel partner.
Populated only if a channel partner exists for this customer.

`string channel_partner_id = 13;`

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

### getChannelPartnerIdBytes()

    public abstract ByteString getChannelPartnerIdBytes()

Cloud Identity ID of the customer's channel partner.
Populated only if a channel partner exists for this customer.

`string channel_partner_id = 13;`

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

### getCloudIdentityId()

    public abstract String getCloudIdentityId()

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

`string cloud_identity_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getCloudIdentityIdBytes()

    public abstract ByteString getCloudIdentityIdBytes()

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

`string cloud_identity_id = 9 [(.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 cloudIdentityId. |

### getCloudIdentityInfo()

    public abstract CloudIdentityInfo getCloudIdentityInfo()

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

`
.google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-channel/latest/com.google.cloud.channel.v1.CloudIdentityInfo` | The cloudIdentityInfo. |

### getCloudIdentityInfoOrBuilder()

    public abstract CloudIdentityInfoOrBuilder getCloudIdentityInfoOrBuilder()

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

`
.google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-channel/latest/com.google.cloud.channel.v1.CloudIdentityInfoOrBuilder` |   |

### getCorrelationId()

    public abstract String getCorrelationId()

Optional. External CRM ID for the customer.
Populated only if a CRM ID exists for this customer.

`string correlation_id = 14 [(.google.api.field_behavior) = OPTIONAL];`

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

### getCorrelationIdBytes()

    public abstract ByteString getCorrelationIdBytes()

Optional. External CRM ID for the customer.
Populated only if a CRM ID exists for this customer.

`string correlation_id = 14 [(.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 correlationId. |

### getCreateTime()

    public abstract Timestamp getCreateTime()

Output only. Time when the customer was created.

`.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The createTime. |

### getCreateTimeOrBuilder()

    public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time when the customer was created.

`.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getCustomerAttestationState()

    public abstract Customer.CustomerAttestationState getCustomerAttestationState()

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

`
.google.cloud.channel.v1.Customer.CustomerAttestationState customer_attestation_state = 16 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-channel/latest/com.google.cloud.channel.v1.Customer.CustomerAttestationState` | The customerAttestationState. |

### getCustomerAttestationStateValue()

    public abstract int getCustomerAttestationStateValue()

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

`
.google.cloud.channel.v1.Customer.CustomerAttestationState customer_attestation_state = 16 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getDomain()

    public abstract String getDomain()

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

`string domain = 6 [(.google.api.field_behavior) = REQUIRED];`

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

### getDomainBytes()

    public abstract ByteString getDomainBytes()

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

`string domain = 6 [(.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 domain. |

### getLanguageCode()

    public abstract String 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>.

`string language_code = 10 [(.google.api.field_behavior) = OPTIONAL];`

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

### getLanguageCodeBytes()

    public abstract ByteString getLanguageCodeBytes()

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>.

`string language_code = 10 [(.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 languageCode. |

### getName()

    public abstract String getName()

Output only. Resource name of the customer.
Format: accounts/{account_id}/customers/{customer_id}

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

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

### getNameBytes()

    public abstract ByteString getNameBytes()

Output only. Resource name of the customer.
Format: accounts/{account_id}/customers/{customer_id}

`string name = 1 [(.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 name. |

### getOrgDisplayName()

    public abstract String getOrgDisplayName()

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

`string org_display_name = 2 [(.google.api.field_behavior) = REQUIRED];`

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

### getOrgDisplayNameBytes()

    public abstract ByteString getOrgDisplayNameBytes()

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

`string org_display_name = 2 [(.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 orgDisplayName. |

### getOrgPostalAddress()

    public abstract PostalAddress 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.

`
.google.type.PostalAddress org_postal_address = 3 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.type.PostalAddress` | The orgPostalAddress. |

### getOrgPostalAddressOrBuilder()

    public abstract PostalAddressOrBuilder getOrgPostalAddressOrBuilder()

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.

`
.google.type.PostalAddress org_postal_address = 3 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.type.PostalAddressOrBuilder` |   |

### getPrimaryContactInfo()

    public abstract ContactInfo getPrimaryContactInfo()

Primary contact info.

`.google.cloud.channel.v1.ContactInfo primary_contact_info = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-channel/latest/com.google.cloud.channel.v1.ContactInfo` | The primaryContactInfo. |

### getPrimaryContactInfoOrBuilder()

    public abstract ContactInfoOrBuilder getPrimaryContactInfoOrBuilder()

Primary contact info.

`.google.cloud.channel.v1.ContactInfo primary_contact_info = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-channel/latest/com.google.cloud.channel.v1.ContactInfoOrBuilder` |   |

### getUpdateTime()

    public abstract Timestamp getUpdateTime()

Output only. Time when the customer was updated.

`.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The updateTime. |

### getUpdateTimeOrBuilder()

    public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time when the customer was updated.

`.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### hasCloudIdentityInfo()

    public abstract boolean hasCloudIdentityInfo()

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

`
.google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasCreateTime()

    public abstract boolean hasCreateTime()

Output only. Time when the customer was created.

`.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasOrgPostalAddress()

    public abstract boolean hasOrgPostalAddress()

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.

`
.google.type.PostalAddress org_postal_address = 3 [(.google.api.field_behavior) = REQUIRED];
`

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

### hasPrimaryContactInfo()

    public abstract boolean hasPrimaryContactInfo()

Primary contact info.

`.google.cloud.channel.v1.ContactInfo primary_contact_info = 4;`

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

### hasUpdateTime()

    public abstract boolean hasUpdateTime()

Output only. Time when the customer was updated.

`.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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