Class ImportCustomerRequest.Builder (3.47.0)

public static final class ImportCustomerRequest.Builder extends GeneratedMessageV3.Builder<ImportCustomerRequest.Builder> implements ImportCustomerRequestOrBuilder

Request message for CloudChannelService.ImportCustomer

Protobuf type google.cloud.channel.v1.ImportCustomerRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImportCustomerRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImportCustomerRequest.Builder
Overrides

build()

public ImportCustomerRequest build()
Returns
Type Description
ImportCustomerRequest

buildPartial()

public ImportCustomerRequest buildPartial()
Returns
Type Description
ImportCustomerRequest

clear()

public ImportCustomerRequest.Builder clear()
Returns
Type Description
ImportCustomerRequest.Builder
Overrides

clearAuthToken()

public ImportCustomerRequest.Builder clearAuthToken()

Optional. The super admin of the resold customer generates this token to authorize a reseller to access their Cloud Identity and purchase entitlements on their behalf. You can omit this token after authorization. See https://support.google.com/a/answer/7643790 for more details.

string auth_token = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImportCustomerRequest.Builder

This builder for chaining.

clearChannelPartnerId()

public ImportCustomerRequest.Builder clearChannelPartnerId()

Optional. Cloud Identity ID of a channel partner who will be the direct reseller for the customer's order. This field is required for 2-tier transfer scenarios and can be provided via the request Parent binding as well.

string channel_partner_id = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImportCustomerRequest.Builder

This builder for chaining.

clearCloudIdentityId()

public ImportCustomerRequest.Builder clearCloudIdentityId()

Required. Customer's Cloud Identity ID

string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportCustomerRequest.Builder

This builder for chaining.

clearCustomer()

public ImportCustomerRequest.Builder clearCustomer()

Optional. Specifies the customer that will receive imported Cloud Identity information. Format: accounts/{account_id}/customers/{customer_id}

string customer = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ImportCustomerRequest.Builder

This builder for chaining.

clearCustomerIdentity()

public ImportCustomerRequest.Builder clearCustomerIdentity()
Returns
Type Description
ImportCustomerRequest.Builder

clearDomain()

public ImportCustomerRequest.Builder clearDomain()

Required. Customer domain.

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

Returns
Type Description
ImportCustomerRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ImportCustomerRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ImportCustomerRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportCustomerRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ImportCustomerRequest.Builder
Overrides

clearOverwriteIfExists()

public ImportCustomerRequest.Builder clearOverwriteIfExists()

Required. Choose to overwrite an existing customer if found. This must be set to true if there is an existing customer with a conflicting region code or domain.

bool overwrite_if_exists = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportCustomerRequest.Builder

This builder for chaining.

clearParent()

public ImportCustomerRequest.Builder clearParent()

Required. The resource name of the reseller's account. Parent takes the format: accounts/{account_id} or accounts/{account_id}/channelPartnerLinks/{channel_partner_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportCustomerRequest.Builder

This builder for chaining.

clone()

public ImportCustomerRequest.Builder clone()
Returns
Type Description
ImportCustomerRequest.Builder
Overrides

getAuthToken()

public String getAuthToken()

Optional. The super admin of the resold customer generates this token to authorize a reseller to access their Cloud Identity and purchase entitlements on their behalf. You can omit this token after authorization. See https://support.google.com/a/answer/7643790 for more details.

string auth_token = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The authToken.

getAuthTokenBytes()

public ByteString getAuthTokenBytes()

Optional. The super admin of the resold customer generates this token to authorize a reseller to access their Cloud Identity and purchase entitlements on their behalf. You can omit this token after authorization. See https://support.google.com/a/answer/7643790 for more details.

string auth_token = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for authToken.

getChannelPartnerId()

public String getChannelPartnerId()

Optional. Cloud Identity ID of a channel partner who will be the direct reseller for the customer's order. This field is required for 2-tier transfer scenarios and can be provided via the request Parent binding as well.

string channel_partner_id = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The channelPartnerId.

getChannelPartnerIdBytes()

public ByteString getChannelPartnerIdBytes()

Optional. Cloud Identity ID of a channel partner who will be the direct reseller for the customer's order. This field is required for 2-tier transfer scenarios and can be provided via the request Parent binding as well.

string channel_partner_id = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for channelPartnerId.

getCloudIdentityId()

public String getCloudIdentityId()

Required. Customer's Cloud Identity ID

string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The cloudIdentityId.

getCloudIdentityIdBytes()

public ByteString getCloudIdentityIdBytes()

Required. Customer's Cloud Identity ID

string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for cloudIdentityId.

getCustomer()

public String getCustomer()

Optional. Specifies the customer that will receive imported Cloud Identity information. Format: accounts/{account_id}/customers/{customer_id}

string customer = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The customer.

getCustomerBytes()

public ByteString getCustomerBytes()

Optional. Specifies the customer that will receive imported Cloud Identity information. Format: accounts/{account_id}/customers/{customer_id}

string customer = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for customer.

getCustomerIdentityCase()

public ImportCustomerRequest.CustomerIdentityCase getCustomerIdentityCase()
Returns
Type Description
ImportCustomerRequest.CustomerIdentityCase

getDefaultInstanceForType()

public ImportCustomerRequest getDefaultInstanceForType()
Returns
Type Description
ImportCustomerRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDomain()

public String getDomain()

Required. Customer domain.

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

Returns
Type Description
String

The domain.

getDomainBytes()

public ByteString getDomainBytes()

Required. Customer domain.

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

Returns
Type Description
ByteString

The bytes for domain.

getOverwriteIfExists()

public boolean getOverwriteIfExists()

Required. Choose to overwrite an existing customer if found. This must be set to true if there is an existing customer with a conflicting region code or domain.

bool overwrite_if_exists = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

The overwriteIfExists.

getParent()

public String getParent()

Required. The resource name of the reseller's account. Parent takes the format: accounts/{account_id} or accounts/{account_id}/channelPartnerLinks/{channel_partner_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the reseller's account. Parent takes the format: accounts/{account_id} or accounts/{account_id}/channelPartnerLinks/{channel_partner_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for parent.

hasCloudIdentityId()

public boolean hasCloudIdentityId()

Required. Customer's Cloud Identity ID

string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the cloudIdentityId field is set.

hasDomain()

public boolean hasDomain()

Required. Customer domain.

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

Returns
Type Description
boolean

Whether the domain field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportCustomerRequest other)

public ImportCustomerRequest.Builder mergeFrom(ImportCustomerRequest other)
Parameter
Name Description
other ImportCustomerRequest
Returns
Type Description
ImportCustomerRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImportCustomerRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportCustomerRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ImportCustomerRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ImportCustomerRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportCustomerRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImportCustomerRequest.Builder
Overrides

setAuthToken(String value)

public ImportCustomerRequest.Builder setAuthToken(String value)

Optional. The super admin of the resold customer generates this token to authorize a reseller to access their Cloud Identity and purchase entitlements on their behalf. You can omit this token after authorization. See https://support.google.com/a/answer/7643790 for more details.

string auth_token = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The authToken to set.

Returns
Type Description
ImportCustomerRequest.Builder

This builder for chaining.

setAuthTokenBytes(ByteString value)

public ImportCustomerRequest.Builder setAuthTokenBytes(ByteString value)

Optional. The super admin of the resold customer generates this token to authorize a reseller to access their Cloud Identity and purchase entitlements on their behalf. You can omit this token after authorization. See https://support.google.com/a/answer/7643790 for more details.

string auth_token = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for authToken to set.

Returns
Type Description
ImportCustomerRequest.Builder

This builder for chaining.

setChannelPartnerId(String value)

public ImportCustomerRequest.Builder setChannelPartnerId(String value)

Optional. Cloud Identity ID of a channel partner who will be the direct reseller for the customer's order. This field is required for 2-tier transfer scenarios and can be provided via the request Parent binding as well.

string channel_partner_id = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The channelPartnerId to set.

Returns
Type Description
ImportCustomerRequest.Builder

This builder for chaining.

setChannelPartnerIdBytes(ByteString value)

public ImportCustomerRequest.Builder setChannelPartnerIdBytes(ByteString value)

Optional. Cloud Identity ID of a channel partner who will be the direct reseller for the customer's order. This field is required for 2-tier transfer scenarios and can be provided via the request Parent binding as well.

string channel_partner_id = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for channelPartnerId to set.

Returns
Type Description
ImportCustomerRequest.Builder

This builder for chaining.

setCloudIdentityId(String value)

public ImportCustomerRequest.Builder setCloudIdentityId(String value)

Required. Customer's Cloud Identity ID

string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The cloudIdentityId to set.

Returns
Type Description
ImportCustomerRequest.Builder

This builder for chaining.

setCloudIdentityIdBytes(ByteString value)

public ImportCustomerRequest.Builder setCloudIdentityIdBytes(ByteString value)

Required. Customer's Cloud Identity ID

string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for cloudIdentityId to set.

Returns
Type Description
ImportCustomerRequest.Builder

This builder for chaining.

setCustomer(String value)

public ImportCustomerRequest.Builder setCustomer(String value)

Optional. Specifies the customer that will receive imported Cloud Identity information. Format: accounts/{account_id}/customers/{customer_id}

string customer = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The customer to set.

Returns
Type Description
ImportCustomerRequest.Builder

This builder for chaining.

setCustomerBytes(ByteString value)

public ImportCustomerRequest.Builder setCustomerBytes(ByteString value)

Optional. Specifies the customer that will receive imported Cloud Identity information. Format: accounts/{account_id}/customers/{customer_id}

string customer = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for customer to set.

Returns
Type Description
ImportCustomerRequest.Builder

This builder for chaining.

setDomain(String value)

public ImportCustomerRequest.Builder setDomain(String value)

Required. Customer domain.

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

Parameter
Name Description
value String

The domain to set.

Returns
Type Description
ImportCustomerRequest.Builder

This builder for chaining.

setDomainBytes(ByteString value)

public ImportCustomerRequest.Builder setDomainBytes(ByteString value)

Required. Customer domain.

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

Parameter
Name Description
value ByteString

The bytes for domain to set.

Returns
Type Description
ImportCustomerRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ImportCustomerRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImportCustomerRequest.Builder
Overrides

setOverwriteIfExists(boolean value)

public ImportCustomerRequest.Builder setOverwriteIfExists(boolean value)

Required. Choose to overwrite an existing customer if found. This must be set to true if there is an existing customer with a conflicting region code or domain.

bool overwrite_if_exists = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value boolean

The overwriteIfExists to set.

Returns
Type Description
ImportCustomerRequest.Builder

This builder for chaining.

setParent(String value)

public ImportCustomerRequest.Builder setParent(String value)

Required. The resource name of the reseller's account. Parent takes the format: accounts/{account_id} or accounts/{account_id}/channelPartnerLinks/{channel_partner_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ImportCustomerRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ImportCustomerRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the reseller's account. Parent takes the format: accounts/{account_id} or accounts/{account_id}/channelPartnerLinks/{channel_partner_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ImportCustomerRequest.Builder

This builder for chaining.

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

public ImportCustomerRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ImportCustomerRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportCustomerRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImportCustomerRequest.Builder
Overrides