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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ImportCustomerRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ImportCustomerRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ImportCustomerRequest.Builder>
    • getDefaultInstanceForType

      public ImportCustomerRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ImportCustomerRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ImportCustomerRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ImportCustomerRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImportCustomerRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImportCustomerRequest.Builder>
      Throws:
      IOException
    • getCustomerIdentityCase

      public ImportCustomerRequest.CustomerIdentityCase getCustomerIdentityCase()
      Specified by:
      getCustomerIdentityCase in interface ImportCustomerRequestOrBuilder
    • clearCustomerIdentity

      public ImportCustomerRequest.Builder clearCustomerIdentity()
    • hasDomain

      public boolean hasDomain()
       Required. Customer domain.
       
      string domain = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasDomain in interface ImportCustomerRequestOrBuilder
      Returns:
      Whether the domain field is set.
    • getDomain

      public String getDomain()
       Required. Customer domain.
       
      string domain = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDomain in interface ImportCustomerRequestOrBuilder
      Returns:
      The domain.
    • getDomainBytes

      public com.google.protobuf.ByteString getDomainBytes()
       Required. Customer domain.
       
      string domain = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDomainBytes in interface ImportCustomerRequestOrBuilder
      Returns:
      The bytes for domain.
    • setDomain

      public ImportCustomerRequest.Builder setDomain(String value)
       Required. Customer domain.
       
      string domain = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The domain to set.
      Returns:
      This builder for chaining.
    • clearDomain

      public ImportCustomerRequest.Builder clearDomain()
       Required. Customer domain.
       
      string domain = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDomainBytes

      public ImportCustomerRequest.Builder setDomainBytes(com.google.protobuf.ByteString value)
       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:
      hasCloudIdentityId in interface ImportCustomerRequestOrBuilder
      Returns:
      Whether the cloudIdentityId field is set.
    • getCloudIdentityId

      public String getCloudIdentityId()
       Required. Customer's Cloud Identity ID
       
      string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCloudIdentityId in interface ImportCustomerRequestOrBuilder
      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:
      getCloudIdentityIdBytes in interface ImportCustomerRequestOrBuilder
      Returns:
      The bytes for cloudIdentityId.
    • setCloudIdentityId

      public ImportCustomerRequest.Builder setCloudIdentityId(String value)
       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

      public ImportCustomerRequest.Builder clearCloudIdentityId()
       Required. Customer's Cloud Identity ID
       
      string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setCloudIdentityIdBytes

      public ImportCustomerRequest.Builder setCloudIdentityIdBytes(com.google.protobuf.ByteString value)
       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:
      hasPrimaryAdminEmail in interface ImportCustomerRequestOrBuilder
      Returns:
      Whether the primaryAdminEmail field is set.
    • getPrimaryAdminEmail

      public String getPrimaryAdminEmail()
       Required. Customer's primary admin email.
       
      string primary_admin_email = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPrimaryAdminEmail in interface ImportCustomerRequestOrBuilder
      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:
      getPrimaryAdminEmailBytes in interface ImportCustomerRequestOrBuilder
      Returns:
      The bytes for primaryAdminEmail.
    • setPrimaryAdminEmail

      public ImportCustomerRequest.Builder setPrimaryAdminEmail(String value)
       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

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

      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];
      Specified by:
      getParent in interface ImportCustomerRequestOrBuilder
      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:
      getParentBytes in interface ImportCustomerRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      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];
      Parameters:
      value - The parent to set.
      Returns:
      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:
      This builder for chaining.
    • setParentBytes

      public ImportCustomerRequest.Builder setParentBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getAuthToken in interface ImportCustomerRequestOrBuilder
      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:
      getAuthTokenBytes in interface ImportCustomerRequestOrBuilder
      Returns:
      The bytes for authToken.
    • setAuthToken

      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];
      Parameters:
      value - The authToken to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setAuthTokenBytes

      public ImportCustomerRequest.Builder setAuthTokenBytes(com.google.protobuf.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];
      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:
      getOverwriteIfExists in interface ImportCustomerRequestOrBuilder
      Returns:
      The overwriteIfExists.
    • setOverwriteIfExists

      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];
      Parameters:
      value - The overwriteIfExists to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • 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];
      Specified by:
      getChannelPartnerId in interface ImportCustomerRequestOrBuilder
      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:
      getChannelPartnerIdBytes in interface ImportCustomerRequestOrBuilder
      Returns:
      The bytes for channelPartnerId.
    • setChannelPartnerId

      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];
      Parameters:
      value - The channelPartnerId to set.
      Returns:
      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:
      This builder for chaining.
    • setChannelPartnerIdBytes

      public ImportCustomerRequest.Builder setChannelPartnerIdBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for channelPartnerId to set.
      Returns:
      This builder for chaining.
    • 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) = { ... }
      Specified by:
      getCustomer in interface ImportCustomerRequestOrBuilder
      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:
      getCustomerBytes in interface ImportCustomerRequestOrBuilder
      Returns:
      The bytes for customer.
    • setCustomer

      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) = { ... }
      Parameters:
      value - The customer to set.
      Returns:
      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:
      This builder for chaining.
    • setCustomerBytes

      public ImportCustomerRequest.Builder setCustomerBytes(com.google.protobuf.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) = { ... }
      Parameters:
      value - The bytes for customer to set.
      Returns:
      This builder for chaining.