Class 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.GeneratedMessageV3.Builder<ImportCustomerRequest.Builder>
    implements ImportCustomerRequestOrBuilder
     Request message for
     [CloudChannelService.ImportCustomer][google.cloud.channel.v1.CloudChannelService.ImportCustomer]
     
    Protobuf type google.cloud.channel.v1.ImportCustomerRequest
    • Method Detail

      • getDescriptor

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

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public ImportCustomerRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ImportCustomerRequest.Builder>
      • clearField

        public ImportCustomerRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ImportCustomerRequest.Builder>
      • clearOneof

        public ImportCustomerRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ImportCustomerRequest.Builder>
      • setRepeatedField

        public ImportCustomerRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              int index,
                                                              Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ImportCustomerRequest.Builder>
      • addRepeatedField

        public ImportCustomerRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ImportCustomerRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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.
      • 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.
      • 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.
      • setUnknownFields

        public final ImportCustomerRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ImportCustomerRequest.Builder>
      • mergeUnknownFields

        public final ImportCustomerRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ImportCustomerRequest.Builder>