Class Customer (3.7.6)

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
TypeDescription
int

CHANNEL_PARTNER_ID_FIELD_NUMBER

public static final int CHANNEL_PARTNER_ID_FIELD_NUMBER
Field Value
TypeDescription
int

CLOUD_IDENTITY_ID_FIELD_NUMBER

public static final int CLOUD_IDENTITY_ID_FIELD_NUMBER
Field Value
TypeDescription
int

CLOUD_IDENTITY_INFO_FIELD_NUMBER

public static final int CLOUD_IDENTITY_INFO_FIELD_NUMBER
Field Value
TypeDescription
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

DOMAIN_FIELD_NUMBER

public static final int DOMAIN_FIELD_NUMBER
Field Value
TypeDescription
int

LANGUAGE_CODE_FIELD_NUMBER

public static final int LANGUAGE_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

ORG_DISPLAY_NAME_FIELD_NUMBER

public static final int ORG_DISPLAY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

ORG_POSTAL_ADDRESS_FIELD_NUMBER

public static final int ORG_POSTAL_ADDRESS_FIELD_NUMBER
Field Value
TypeDescription
int

PRIMARY_CONTACT_INFO_FIELD_NUMBER

public static final int PRIMARY_CONTACT_INFO_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Customer getDefaultInstance()
Returns
TypeDescription
Customer

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Customer.Builder newBuilder()
Returns
TypeDescription
Customer.Builder

newBuilder(Customer prototype)

public static Customer.Builder newBuilder(Customer prototype)
Parameter
NameDescription
prototypeCustomer
Returns
TypeDescription
Customer.Builder

parseDelimitedFrom(InputStream input)

public static Customer parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Customer
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Customer parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Customer
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Customer parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Customer
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Customer parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Customer
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Customer parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Customer
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Customer parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Customer
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Customer parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Customer
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Customer parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Customer
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Customer parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Customer
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Customer parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Customer
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Customer parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Customer
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Customer parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Customer
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Customer> parser()
Returns
TypeDescription
Parser<Customer>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CloudIdentityInfoOrBuilder

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

getDefaultInstanceForType()

public Customer getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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 and zip code. 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
TypeDescription
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 and zip code. 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
TypeDescription
com.google.type.PostalAddressOrBuilder

getParserForType()

public Parser<Customer> getParserForType()
Returns
TypeDescription
Parser<Customer>
Overrides

getPrimaryContactInfo()

public ContactInfo getPrimaryContactInfo()

Primary contact info.

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

Returns
TypeDescription
ContactInfo

The primaryContactInfo.

getPrimaryContactInfoOrBuilder()

public ContactInfoOrBuilder getPrimaryContactInfoOrBuilder()

Primary contact info.

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

Returns
TypeDescription
ContactInfoOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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 and zip code. 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
TypeDescription
boolean

Whether the orgPostalAddress field is set.

hasPrimaryContactInfo()

public boolean hasPrimaryContactInfo()

Primary contact info.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Customer.Builder newBuilderForType()
Returns
TypeDescription
Customer.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Customer.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Customer.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Customer.Builder toBuilder()
Returns
TypeDescription
Customer.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException