Class Customer.Builder (3.35.0)

public static final class Customer.Builder extends GeneratedMessageV3.Builder<Customer.Builder> implements CustomerOrBuilder

Entity representing a customer of a reseller or distributor.

Protobuf type google.cloud.channel.v1.Customer

Implements

CustomerOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Customer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Customer.Builder
Overrides

build()

public Customer build()
Returns
TypeDescription
Customer

buildPartial()

public Customer buildPartial()
Returns
TypeDescription
Customer

clear()

public Customer.Builder clear()
Returns
TypeDescription
Customer.Builder
Overrides

clearAlternateEmail()

public Customer.Builder clearAlternateEmail()

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

This builder for chaining.

clearChannelPartnerId()

public Customer.Builder clearChannelPartnerId()

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

This builder for chaining.

clearCloudIdentityId()

public Customer.Builder clearCloudIdentityId()

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

This builder for chaining.

clearCloudIdentityInfo()

public Customer.Builder clearCloudIdentityInfo()

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

clearCorrelationId()

public Customer.Builder clearCorrelationId()

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
TypeDescription
Customer.Builder

This builder for chaining.

clearCreateTime()

public Customer.Builder clearCreateTime()

Output only. Time when the customer was created.

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

Returns
TypeDescription
Customer.Builder

clearDomain()

public Customer.Builder clearDomain()

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

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

Returns
TypeDescription
Customer.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Customer.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Customer.Builder
Overrides

clearLanguageCode()

public Customer.Builder clearLanguageCode()

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

This builder for chaining.

clearName()

public Customer.Builder clearName()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Customer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Customer.Builder
Overrides

clearOrgDisplayName()

public Customer.Builder clearOrgDisplayName()

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

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

Returns
TypeDescription
Customer.Builder

This builder for chaining.

clearOrgPostalAddress()

public Customer.Builder clearOrgPostalAddress()

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
TypeDescription
Customer.Builder

clearPrimaryContactInfo()

public Customer.Builder clearPrimaryContactInfo()

Primary contact info.

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

Returns
TypeDescription
Customer.Builder

clearUpdateTime()

public Customer.Builder clearUpdateTime()

Output only. Time when the customer was updated.

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

Returns
TypeDescription
Customer.Builder

clone()

public Customer.Builder clone()
Returns
TypeDescription
Customer.Builder
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.

getCloudIdentityInfoBuilder()

public CloudIdentityInfo.Builder getCloudIdentityInfoBuilder()

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

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

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

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time when the customer was created.

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

Returns
TypeDescription
Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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, 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
TypeDescription
com.google.type.PostalAddress

The orgPostalAddress.

getOrgPostalAddressBuilder()

public PostalAddress.Builder getOrgPostalAddressBuilder()

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
TypeDescription
com.google.type.PostalAddress.Builder

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
TypeDescription
com.google.type.PostalAddressOrBuilder

getPrimaryContactInfo()

public ContactInfo getPrimaryContactInfo()

Primary contact info.

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

Returns
TypeDescription
ContactInfo

The primaryContactInfo.

getPrimaryContactInfoBuilder()

public ContactInfo.Builder getPrimaryContactInfoBuilder()

Primary contact info.

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

Returns
TypeDescription
ContactInfo.Builder

getPrimaryContactInfoOrBuilder()

public ContactInfoOrBuilder getPrimaryContactInfoOrBuilder()

Primary contact info.

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

Returns
TypeDescription
ContactInfoOrBuilder

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.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Time when the customer was updated.

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

Returns
TypeDescription
Builder

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCloudIdentityInfo(CloudIdentityInfo value)

public Customer.Builder mergeCloudIdentityInfo(CloudIdentityInfo value)

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];

Parameter
NameDescription
valueCloudIdentityInfo
Returns
TypeDescription
Customer.Builder

mergeCreateTime(Timestamp value)

public Customer.Builder mergeCreateTime(Timestamp value)

Output only. Time when the customer was created.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Customer.Builder

mergeFrom(Customer other)

public Customer.Builder mergeFrom(Customer other)
Parameter
NameDescription
otherCustomer
Returns
TypeDescription
Customer.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Customer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Customer.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Customer.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Customer.Builder
Overrides

mergeOrgPostalAddress(PostalAddress value)

public Customer.Builder mergeOrgPostalAddress(PostalAddress value)

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];

Parameter
NameDescription
valuecom.google.type.PostalAddress
Returns
TypeDescription
Customer.Builder

mergePrimaryContactInfo(ContactInfo value)

public Customer.Builder mergePrimaryContactInfo(ContactInfo value)

Primary contact info.

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

Parameter
NameDescription
valueContactInfo
Returns
TypeDescription
Customer.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Customer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Customer.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Customer.Builder mergeUpdateTime(Timestamp value)

Output only. Time when the customer was updated.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Customer.Builder

setAlternateEmail(String value)

public Customer.Builder setAlternateEmail(String value)

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;

Parameter
NameDescription
valueString

The alternateEmail to set.

Returns
TypeDescription
Customer.Builder

This builder for chaining.

setAlternateEmailBytes(ByteString value)

public Customer.Builder setAlternateEmailBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for alternateEmail to set.

Returns
TypeDescription
Customer.Builder

This builder for chaining.

setChannelPartnerId(String value)

public Customer.Builder setChannelPartnerId(String value)

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

string channel_partner_id = 13;

Parameter
NameDescription
valueString

The channelPartnerId to set.

Returns
TypeDescription
Customer.Builder

This builder for chaining.

setChannelPartnerIdBytes(ByteString value)

public Customer.Builder setChannelPartnerIdBytes(ByteString value)

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

string channel_partner_id = 13;

Parameter
NameDescription
valueByteString

The bytes for channelPartnerId to set.

Returns
TypeDescription
Customer.Builder

This builder for chaining.

setCloudIdentityId(String value)

public Customer.Builder setCloudIdentityId(String value)

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];

Parameter
NameDescription
valueString

The cloudIdentityId to set.

Returns
TypeDescription
Customer.Builder

This builder for chaining.

setCloudIdentityIdBytes(ByteString value)

public Customer.Builder setCloudIdentityIdBytes(ByteString value)

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];

Parameter
NameDescription
valueByteString

The bytes for cloudIdentityId to set.

Returns
TypeDescription
Customer.Builder

This builder for chaining.

setCloudIdentityInfo(CloudIdentityInfo value)

public Customer.Builder setCloudIdentityInfo(CloudIdentityInfo value)

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];

Parameter
NameDescription
valueCloudIdentityInfo
Returns
TypeDescription
Customer.Builder

setCloudIdentityInfo(CloudIdentityInfo.Builder builderForValue)

public Customer.Builder setCloudIdentityInfo(CloudIdentityInfo.Builder builderForValue)

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];

Parameter
NameDescription
builderForValueCloudIdentityInfo.Builder
Returns
TypeDescription
Customer.Builder

setCorrelationId(String value)

public Customer.Builder setCorrelationId(String value)

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];

Parameter
NameDescription
valueString

The correlationId to set.

Returns
TypeDescription
Customer.Builder

This builder for chaining.

setCorrelationIdBytes(ByteString value)

public Customer.Builder setCorrelationIdBytes(ByteString value)

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];

Parameter
NameDescription
valueByteString

The bytes for correlationId to set.

Returns
TypeDescription
Customer.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Customer.Builder setCreateTime(Timestamp value)

Output only. Time when the customer was created.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Customer.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Customer.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time when the customer was created.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Customer.Builder

setDomain(String value)

public Customer.Builder setDomain(String value)

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

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

Parameter
NameDescription
valueString

The domain to set.

Returns
TypeDescription
Customer.Builder

This builder for chaining.

setDomainBytes(ByteString value)

public Customer.Builder setDomainBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for domain to set.

Returns
TypeDescription
Customer.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Customer.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Customer.Builder
Overrides

setLanguageCode(String value)

public Customer.Builder setLanguageCode(String value)

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];

Parameter
NameDescription
valueString

The languageCode to set.

Returns
TypeDescription
Customer.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public Customer.Builder setLanguageCodeBytes(ByteString value)

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];

Parameter
NameDescription
valueByteString

The bytes for languageCode to set.

Returns
TypeDescription
Customer.Builder

This builder for chaining.

setName(String value)

public Customer.Builder setName(String value)

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

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Customer.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Customer.Builder setNameBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Customer.Builder

This builder for chaining.

setOrgDisplayName(String value)

public Customer.Builder setOrgDisplayName(String value)

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

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

Parameter
NameDescription
valueString

The orgDisplayName to set.

Returns
TypeDescription
Customer.Builder

This builder for chaining.

setOrgDisplayNameBytes(ByteString value)

public Customer.Builder setOrgDisplayNameBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for orgDisplayName to set.

Returns
TypeDescription
Customer.Builder

This builder for chaining.

setOrgPostalAddress(PostalAddress value)

public Customer.Builder setOrgPostalAddress(PostalAddress value)

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];

Parameter
NameDescription
valuecom.google.type.PostalAddress
Returns
TypeDescription
Customer.Builder

setOrgPostalAddress(PostalAddress.Builder builderForValue)

public Customer.Builder setOrgPostalAddress(PostalAddress.Builder builderForValue)

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];

Parameter
NameDescription
builderForValuecom.google.type.PostalAddress.Builder
Returns
TypeDescription
Customer.Builder

setPrimaryContactInfo(ContactInfo value)

public Customer.Builder setPrimaryContactInfo(ContactInfo value)

Primary contact info.

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

Parameter
NameDescription
valueContactInfo
Returns
TypeDescription
Customer.Builder

setPrimaryContactInfo(ContactInfo.Builder builderForValue)

public Customer.Builder setPrimaryContactInfo(ContactInfo.Builder builderForValue)

Primary contact info.

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

Parameter
NameDescription
builderForValueContactInfo.Builder
Returns
TypeDescription
Customer.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Customer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Customer.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Customer.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Customer.Builder
Overrides

setUpdateTime(Timestamp value)

public Customer.Builder setUpdateTime(Timestamp value)

Output only. Time when the customer was updated.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Customer.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Customer.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Time when the customer was updated.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Customer.Builder