Class ImportCustomerRequest.Builder (3.39.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportCustomerRequest build()
Returns
TypeDescription
ImportCustomerRequest

buildPartial()

public ImportCustomerRequest buildPartial()
Returns
TypeDescription
ImportCustomerRequest

clear()

public ImportCustomerRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ImportCustomerRequest.Builder

This builder for chaining.

clearCustomerIdentity()

public ImportCustomerRequest.Builder clearCustomerIdentity()
Returns
TypeDescription
ImportCustomerRequest.Builder

clearDomain()

public ImportCustomerRequest.Builder clearDomain()

Required. Customer domain.

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

Returns
TypeDescription
ImportCustomerRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportCustomerRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ImportCustomerRequest.Builder

This builder for chaining.

clone()

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

The cloudIdentityId.

getCloudIdentityIdBytes()

public ByteString getCloudIdentityIdBytes()

Required. Customer's Cloud Identity ID

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

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

The bytes for customer.

getCustomerIdentityCase()

public ImportCustomerRequest.CustomerIdentityCase getCustomerIdentityCase()
Returns
TypeDescription
ImportCustomerRequest.CustomerIdentityCase

getDefaultInstanceForType()

public ImportCustomerRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportCustomerRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDomain()

public String getDomain()

Required. Customer domain.

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

Returns
TypeDescription
String

The domain.

getDomainBytes()

public ByteString getDomainBytes()

Required. Customer domain.

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

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

Whether the cloudIdentityId field is set.

hasDomain()

public boolean hasDomain()

Required. Customer domain.

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

Returns
TypeDescription
boolean

Whether the domain field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImportCustomerRequest other)

public ImportCustomerRequest.Builder mergeFrom(ImportCustomerRequest other)
Parameter
NameDescription
otherImportCustomerRequest
Returns
TypeDescription
ImportCustomerRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportCustomerRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The authToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for authToken to set.

Returns
TypeDescription
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
NameDescription
valueString

The channelPartnerId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for channelPartnerId to set.

Returns
TypeDescription
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
NameDescription
valueString

The cloudIdentityId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for cloudIdentityId to set.

Returns
TypeDescription
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
NameDescription
valueString

The customer to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for customer to set.

Returns
TypeDescription
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
NameDescription
valueString

The domain to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for domain to set.

Returns
TypeDescription
ImportCustomerRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ImportCustomerRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The overwriteIfExists to set.

Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImportCustomerRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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