Package com.google.cloud.channel.v1
Class ImportCustomerRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ImportCustomerRequest.Builder>
com.google.cloud.channel.v1.ImportCustomerRequest.Builder
- All Implemented Interfaces:
ImportCustomerRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ImportCustomerRequest
public static final class ImportCustomerRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ImportCustomerRequest.Builder>
implements ImportCustomerRequestOrBuilder
Request message for [CloudChannelService.ImportCustomer][google.cloud.channel.v1.CloudChannelService.ImportCustomer]Protobuf type
google.cloud.channel.v1.ImportCustomerRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Required.Optional.Required.Required.Required.Required.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Required.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.booleanRequired.Required.com.google.protobuf.ByteStringRequired.Required.com.google.protobuf.ByteStringRequired.booleanRequired.booleanRequired.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ImportCustomerRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAuthToken(String value) Optional.setAuthTokenBytes(com.google.protobuf.ByteString value) Optional.setChannelPartnerId(String value) Optional.setChannelPartnerIdBytes(com.google.protobuf.ByteString value) Optional.setCloudIdentityId(String value) Required.setCloudIdentityIdBytes(com.google.protobuf.ByteString value) Required.setCustomer(String value) Optional.setCustomerBytes(com.google.protobuf.ByteString value) Optional.Required.setDomainBytes(com.google.protobuf.ByteString value) Required.setOverwriteIfExists(boolean value) Required.Required.setParentBytes(com.google.protobuf.ByteString value) Required.setPrimaryAdminEmail(String value) Required.setPrimaryAdminEmailBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ImportCustomerRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ImportCustomerRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ImportCustomerRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImportCustomerRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ImportCustomerRequest.Builder>
-
mergeFrom
public ImportCustomerRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImportCustomerRequest.Builder>- Throws:
IOException
-
getCustomerIdentityCase
- Specified by:
getCustomerIdentityCasein interfaceImportCustomerRequestOrBuilder
-
clearCustomerIdentity
-
hasDomain
public boolean hasDomain()Required. Customer domain.
string domain = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasDomainin interfaceImportCustomerRequestOrBuilder- Returns:
- Whether the domain field is set.
-
getDomain
Required. Customer domain.
string domain = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDomainin interfaceImportCustomerRequestOrBuilder- Returns:
- The domain.
-
getDomainBytes
public com.google.protobuf.ByteString getDomainBytes()Required. Customer domain.
string domain = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDomainBytesin interfaceImportCustomerRequestOrBuilder- Returns:
- The bytes for domain.
-
setDomain
Required. Customer domain.
string domain = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The domain to set.- Returns:
- This builder for chaining.
-
clearDomain
Required. Customer domain.
string domain = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDomainBytes
Required. Customer domain.
string domain = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for domain to set.- Returns:
- This builder for chaining.
-
hasCloudIdentityId
public boolean hasCloudIdentityId()Required. Customer's Cloud Identity ID
string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasCloudIdentityIdin interfaceImportCustomerRequestOrBuilder- Returns:
- Whether the cloudIdentityId field is set.
-
getCloudIdentityId
Required. Customer's Cloud Identity ID
string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getCloudIdentityIdin interfaceImportCustomerRequestOrBuilder- Returns:
- The cloudIdentityId.
-
getCloudIdentityIdBytes
public com.google.protobuf.ByteString getCloudIdentityIdBytes()Required. Customer's Cloud Identity ID
string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getCloudIdentityIdBytesin interfaceImportCustomerRequestOrBuilder- Returns:
- The bytes for cloudIdentityId.
-
setCloudIdentityId
Required. Customer's Cloud Identity ID
string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The cloudIdentityId to set.- Returns:
- This builder for chaining.
-
clearCloudIdentityId
Required. Customer's Cloud Identity ID
string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setCloudIdentityIdBytes
Required. Customer's Cloud Identity ID
string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for cloudIdentityId to set.- Returns:
- This builder for chaining.
-
hasPrimaryAdminEmail
public boolean hasPrimaryAdminEmail()Required. Customer's primary admin email.
string primary_admin_email = 8 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasPrimaryAdminEmailin interfaceImportCustomerRequestOrBuilder- Returns:
- Whether the primaryAdminEmail field is set.
-
getPrimaryAdminEmail
Required. Customer's primary admin email.
string primary_admin_email = 8 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPrimaryAdminEmailin interfaceImportCustomerRequestOrBuilder- Returns:
- The primaryAdminEmail.
-
getPrimaryAdminEmailBytes
public com.google.protobuf.ByteString getPrimaryAdminEmailBytes()Required. Customer's primary admin email.
string primary_admin_email = 8 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPrimaryAdminEmailBytesin interfaceImportCustomerRequestOrBuilder- Returns:
- The bytes for primaryAdminEmail.
-
setPrimaryAdminEmail
Required. Customer's primary admin email.
string primary_admin_email = 8 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The primaryAdminEmail to set.- Returns:
- This builder for chaining.
-
clearPrimaryAdminEmail
Required. Customer's primary admin email.
string primary_admin_email = 8 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setPrimaryAdminEmailBytes
public ImportCustomerRequest.Builder setPrimaryAdminEmailBytes(com.google.protobuf.ByteString value) Required. Customer's primary admin email.
string primary_admin_email = 8 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for primaryAdminEmail to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getParentin interfaceImportCustomerRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.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];- Specified by:
getParentBytesin interfaceImportCustomerRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
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];- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setParentBytes
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];- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getAuthTokenin interfaceImportCustomerRequestOrBuilder- Returns:
- The authToken.
-
getAuthTokenBytes
public com.google.protobuf.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];- Specified by:
getAuthTokenBytesin interfaceImportCustomerRequestOrBuilder- Returns:
- The bytes for authToken.
-
setAuthToken
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];- Parameters:
value- The authToken to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setAuthTokenBytes
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];- Parameters:
value- The bytes for authToken to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getOverwriteIfExistsin interfaceImportCustomerRequestOrBuilder- Returns:
- The overwriteIfExists.
-
setOverwriteIfExists
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];- Parameters:
value- The overwriteIfExists to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
getChannelPartnerIdin interfaceImportCustomerRequestOrBuilder- Returns:
- The channelPartnerId.
-
getChannelPartnerIdBytes
public com.google.protobuf.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];- Specified by:
getChannelPartnerIdBytesin interfaceImportCustomerRequestOrBuilder- Returns:
- The bytes for channelPartnerId.
-
setChannelPartnerId
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];- Parameters:
value- The channelPartnerId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setChannelPartnerIdBytes
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];- Parameters:
value- The bytes for channelPartnerId to set.- Returns:
- This builder for chaining.
-
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) = { ... }- Specified by:
getCustomerin interfaceImportCustomerRequestOrBuilder- Returns:
- The customer.
-
getCustomerBytes
public com.google.protobuf.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) = { ... }- Specified by:
getCustomerBytesin interfaceImportCustomerRequestOrBuilder- Returns:
- The bytes for customer.
-
setCustomer
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) = { ... }- Parameters:
value- The customer to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setCustomerBytes
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) = { ... }- Parameters:
value- The bytes for customer to set.- Returns:
- This builder for chaining.
-