Class Customer (3.53.0)

public final class Customer extends GeneratedMessageV3 implements CustomerOrBuilder

Entity representing a customer of a reseller or distributor.

Protobuf type google.cloud.channel.v1.Customer

Implements

CustomerOrBuilder

Static Fields

ALTERNATE_EMAIL_FIELD_NUMBER

public static final int ALTERNATE_EMAIL_FIELD_NUMBER
Field Value
Type Description
int

CHANNEL_PARTNER_ID_FIELD_NUMBER

public static final int CHANNEL_PARTNER_ID_FIELD_NUMBER
Field Value
Type Description
int

CLOUD_IDENTITY_ID_FIELD_NUMBER

public static final int CLOUD_IDENTITY_ID_FIELD_NUMBER
Field Value
Type Description
int

CLOUD_IDENTITY_INFO_FIELD_NUMBER

public static final int CLOUD_IDENTITY_INFO_FIELD_NUMBER
Field Value
Type Description
int

CORRELATION_ID_FIELD_NUMBER

public static final int CORRELATION_ID_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DOMAIN_FIELD_NUMBER

public static final int DOMAIN_FIELD_NUMBER
Field Value
Type Description
int

LANGUAGE_CODE_FIELD_NUMBER

public static final int LANGUAGE_CODE_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

ORG_DISPLAY_NAME_FIELD_NUMBER

public static final int ORG_DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

ORG_POSTAL_ADDRESS_FIELD_NUMBER

public static final int ORG_POSTAL_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

PRIMARY_CONTACT_INFO_FIELD_NUMBER

public static final int PRIMARY_CONTACT_INFO_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Customer getDefaultInstance()
Returns
Type Description
Customer

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Customer.Builder newBuilder()
Returns
Type Description
Customer.Builder

newBuilder(Customer prototype)

public static Customer.Builder newBuilder(Customer prototype)
Parameter
Name Description
prototype Customer
Returns
Type Description
Customer.Builder

parseDelimitedFrom(InputStream input)

public static Customer parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Customer
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Customer parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Customer
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Customer parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Customer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Customer parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Customer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Customer parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Customer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Customer parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Customer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Customer parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Customer
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Customer parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Customer
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Customer parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Customer
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Customer parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Customer
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Customer parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Customer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Customer parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Customer
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Customer> parser()
Returns
Type Description
Parser<Customer>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAlternateEmail()

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

The alternateEmail.

getAlternateEmailBytes()

public 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
ByteString

The bytes for alternateEmail.

getChannelPartnerId()

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

The channelPartnerId.

getChannelPartnerIdBytes()

public 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
ByteString

The bytes for channelPartnerId.

getCloudIdentityId()

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

The cloudIdentityId.

getCloudIdentityIdBytes()

public 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
ByteString

The bytes for cloudIdentityId.

getCloudIdentityInfo()

public 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
CloudIdentityInfo

The cloudIdentityInfo.

getCloudIdentityInfoOrBuilder()

public 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
CloudIdentityInfoOrBuilder

getCorrelationId()

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

The correlationId.

getCorrelationIdBytes()

public 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
ByteString

The bytes for correlationId.

getCreateTime()

public 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
Timestamp

The createTime.

getCreateTimeOrBuilder()

public 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
TimestampOrBuilder

getDefaultInstanceForType()

public Customer getDefaultInstanceForType()
Returns
Type Description
Customer

getDomain()

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

The domain.

getDomainBytes()

public 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
ByteString

The bytes for domain.

getLanguageCode()

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

The languageCode.

getLanguageCodeBytes()

public 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
ByteString

The bytes for languageCode.

getName()

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

The name.

getNameBytes()

public 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
ByteString

The bytes for name.

getOrgDisplayName()

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

The orgDisplayName.

getOrgDisplayNameBytes()

public 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
ByteString

The bytes for orgDisplayName.

getOrgPostalAddress()

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

getParserForType()

public Parser<Customer> getParserForType()
Returns
Type Description
Parser<Customer>
Overrides

getPrimaryContactInfo()

public ContactInfo getPrimaryContactInfo()

Primary contact info.

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

Returns
Type Description
ContactInfo

The primaryContactInfo.

getPrimaryContactInfoOrBuilder()

public ContactInfoOrBuilder getPrimaryContactInfoOrBuilder()

Primary contact info.

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

Returns
Type Description
ContactInfoOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUpdateTime()

public 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
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public 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
TimestampOrBuilder

hasCloudIdentityInfo()

public 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
boolean

Whether the cloudIdentityInfo field is set.

hasCreateTime()

public 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
boolean

Whether the createTime field is set.

hasOrgPostalAddress()

public 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
boolean

Whether the orgPostalAddress field is set.

hasPrimaryContactInfo()

public boolean hasPrimaryContactInfo()

Primary contact info.

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

Returns
Type Description
boolean

Whether the primaryContactInfo field is set.

hasUpdateTime()

public 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
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Customer.Builder newBuilderForType()
Returns
Type Description
Customer.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Customer.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Customer.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Customer.Builder toBuilder()
Returns
Type Description
Customer.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException