Class CloudIdentityCustomerAccount.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CloudIdentityCustomerAccount.Builder>
com.google.cloud.channel.v1.CloudIdentityCustomerAccount.Builder
All Implemented Interfaces:
CloudIdentityCustomerAccountOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CloudIdentityCustomerAccount

public static final class CloudIdentityCustomerAccount.Builder extends com.google.protobuf.GeneratedMessage.Builder<CloudIdentityCustomerAccount.Builder> implements CloudIdentityCustomerAccountOrBuilder
 Entity representing a Cloud Identity account that may be
 associated with a Channel Services API partner.
 
Protobuf type google.cloud.channel.v1.CloudIdentityCustomerAccount
  • 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<CloudIdentityCustomerAccount.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<CloudIdentityCustomerAccount.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<CloudIdentityCustomerAccount.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public CloudIdentityCustomerAccount.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<CloudIdentityCustomerAccount.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<CloudIdentityCustomerAccount.Builder>
    • mergeFrom

      public CloudIdentityCustomerAccount.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<CloudIdentityCustomerAccount.Builder>
      Throws:
      IOException
    • getExisting

      public boolean getExisting()
       Returns true if a Cloud Identity account exists for a specific domain.
       
      bool existing = 1;
      Specified by:
      getExisting in interface CloudIdentityCustomerAccountOrBuilder
      Returns:
      The existing.
    • setExisting

      public CloudIdentityCustomerAccount.Builder setExisting(boolean value)
       Returns true if a Cloud Identity account exists for a specific domain.
       
      bool existing = 1;
      Parameters:
      value - The existing to set.
      Returns:
      This builder for chaining.
    • clearExisting

      public CloudIdentityCustomerAccount.Builder clearExisting()
       Returns true if a Cloud Identity account exists for a specific domain.
       
      bool existing = 1;
      Returns:
      This builder for chaining.
    • getOwned

      public boolean getOwned()
       Returns true if the Cloud Identity account is associated with a customer
       of the Channel Services partner (with active subscriptions or purchase
       consents).
       
      bool owned = 2;
      Specified by:
      getOwned in interface CloudIdentityCustomerAccountOrBuilder
      Returns:
      The owned.
    • setOwned

      public CloudIdentityCustomerAccount.Builder setOwned(boolean value)
       Returns true if the Cloud Identity account is associated with a customer
       of the Channel Services partner (with active subscriptions or purchase
       consents).
       
      bool owned = 2;
      Parameters:
      value - The owned to set.
      Returns:
      This builder for chaining.
    • clearOwned

       Returns true if the Cloud Identity account is associated with a customer
       of the Channel Services partner (with active subscriptions or purchase
       consents).
       
      bool owned = 2;
      Returns:
      This builder for chaining.
    • getCustomerName

      public String getCustomerName()
       If owned = true, the name of the customer that owns the Cloud Identity
       account.
       Customer_name uses the format:
       accounts/{account_id}/customers/{customer_id}
       
      string customer_name = 3;
      Specified by:
      getCustomerName in interface CloudIdentityCustomerAccountOrBuilder
      Returns:
      The customerName.
    • getCustomerNameBytes

      public com.google.protobuf.ByteString getCustomerNameBytes()
       If owned = true, the name of the customer that owns the Cloud Identity
       account.
       Customer_name uses the format:
       accounts/{account_id}/customers/{customer_id}
       
      string customer_name = 3;
      Specified by:
      getCustomerNameBytes in interface CloudIdentityCustomerAccountOrBuilder
      Returns:
      The bytes for customerName.
    • setCustomerName

      public CloudIdentityCustomerAccount.Builder setCustomerName(String value)
       If owned = true, the name of the customer that owns the Cloud Identity
       account.
       Customer_name uses the format:
       accounts/{account_id}/customers/{customer_id}
       
      string customer_name = 3;
      Parameters:
      value - The customerName to set.
      Returns:
      This builder for chaining.
    • clearCustomerName

      public CloudIdentityCustomerAccount.Builder clearCustomerName()
       If owned = true, the name of the customer that owns the Cloud Identity
       account.
       Customer_name uses the format:
       accounts/{account_id}/customers/{customer_id}
       
      string customer_name = 3;
      Returns:
      This builder for chaining.
    • setCustomerNameBytes

      public CloudIdentityCustomerAccount.Builder setCustomerNameBytes(com.google.protobuf.ByteString value)
       If owned = true, the name of the customer that owns the Cloud Identity
       account.
       Customer_name uses the format:
       accounts/{account_id}/customers/{customer_id}
       
      string customer_name = 3;
      Parameters:
      value - The bytes for customerName to set.
      Returns:
      This builder for chaining.
    • getCustomerCloudIdentityId

      public String getCustomerCloudIdentityId()
       If existing = true, the Cloud Identity ID of the customer.
       
      string customer_cloud_identity_id = 4;
      Specified by:
      getCustomerCloudIdentityId in interface CloudIdentityCustomerAccountOrBuilder
      Returns:
      The customerCloudIdentityId.
    • getCustomerCloudIdentityIdBytes

      public com.google.protobuf.ByteString getCustomerCloudIdentityIdBytes()
       If existing = true, the Cloud Identity ID of the customer.
       
      string customer_cloud_identity_id = 4;
      Specified by:
      getCustomerCloudIdentityIdBytes in interface CloudIdentityCustomerAccountOrBuilder
      Returns:
      The bytes for customerCloudIdentityId.
    • setCustomerCloudIdentityId

      public CloudIdentityCustomerAccount.Builder setCustomerCloudIdentityId(String value)
       If existing = true, the Cloud Identity ID of the customer.
       
      string customer_cloud_identity_id = 4;
      Parameters:
      value - The customerCloudIdentityId to set.
      Returns:
      This builder for chaining.
    • clearCustomerCloudIdentityId

      public CloudIdentityCustomerAccount.Builder clearCustomerCloudIdentityId()
       If existing = true, the Cloud Identity ID of the customer.
       
      string customer_cloud_identity_id = 4;
      Returns:
      This builder for chaining.
    • setCustomerCloudIdentityIdBytes

      public CloudIdentityCustomerAccount.Builder setCustomerCloudIdentityIdBytes(com.google.protobuf.ByteString value)
       If existing = true, the Cloud Identity ID of the customer.
       
      string customer_cloud_identity_id = 4;
      Parameters:
      value - The bytes for customerCloudIdentityId to set.
      Returns:
      This builder for chaining.
    • getCustomerTypeValue

      public int getCustomerTypeValue()
       If existing = true, the type of the customer.
       
      .google.cloud.channel.v1.CloudIdentityInfo.CustomerType customer_type = 5;
      Specified by:
      getCustomerTypeValue in interface CloudIdentityCustomerAccountOrBuilder
      Returns:
      The enum numeric value on the wire for customerType.
    • setCustomerTypeValue

      public CloudIdentityCustomerAccount.Builder setCustomerTypeValue(int value)
       If existing = true, the type of the customer.
       
      .google.cloud.channel.v1.CloudIdentityInfo.CustomerType customer_type = 5;
      Parameters:
      value - The enum numeric value on the wire for customerType to set.
      Returns:
      This builder for chaining.
    • getCustomerType

      public CloudIdentityInfo.CustomerType getCustomerType()
       If existing = true, the type of the customer.
       
      .google.cloud.channel.v1.CloudIdentityInfo.CustomerType customer_type = 5;
      Specified by:
      getCustomerType in interface CloudIdentityCustomerAccountOrBuilder
      Returns:
      The customerType.
    • setCustomerType

       If existing = true, the type of the customer.
       
      .google.cloud.channel.v1.CloudIdentityInfo.CustomerType customer_type = 5;
      Parameters:
      value - The customerType to set.
      Returns:
      This builder for chaining.
    • clearCustomerType

      public CloudIdentityCustomerAccount.Builder clearCustomerType()
       If existing = true, the type of the customer.
       
      .google.cloud.channel.v1.CloudIdentityInfo.CustomerType customer_type = 5;
      Returns:
      This builder for chaining.
    • getChannelPartnerCloudIdentityId

      public String getChannelPartnerCloudIdentityId()
       If existing = true, and is 2-tier customer, the channel partner of the
       customer.
       
      string channel_partner_cloud_identity_id = 6;
      Specified by:
      getChannelPartnerCloudIdentityId in interface CloudIdentityCustomerAccountOrBuilder
      Returns:
      The channelPartnerCloudIdentityId.
    • getChannelPartnerCloudIdentityIdBytes

      public com.google.protobuf.ByteString getChannelPartnerCloudIdentityIdBytes()
       If existing = true, and is 2-tier customer, the channel partner of the
       customer.
       
      string channel_partner_cloud_identity_id = 6;
      Specified by:
      getChannelPartnerCloudIdentityIdBytes in interface CloudIdentityCustomerAccountOrBuilder
      Returns:
      The bytes for channelPartnerCloudIdentityId.
    • setChannelPartnerCloudIdentityId

      public CloudIdentityCustomerAccount.Builder setChannelPartnerCloudIdentityId(String value)
       If existing = true, and is 2-tier customer, the channel partner of the
       customer.
       
      string channel_partner_cloud_identity_id = 6;
      Parameters:
      value - The channelPartnerCloudIdentityId to set.
      Returns:
      This builder for chaining.
    • clearChannelPartnerCloudIdentityId

      public CloudIdentityCustomerAccount.Builder clearChannelPartnerCloudIdentityId()
       If existing = true, and is 2-tier customer, the channel partner of the
       customer.
       
      string channel_partner_cloud_identity_id = 6;
      Returns:
      This builder for chaining.
    • setChannelPartnerCloudIdentityIdBytes

      public CloudIdentityCustomerAccount.Builder setChannelPartnerCloudIdentityIdBytes(com.google.protobuf.ByteString value)
       If existing = true, and is 2-tier customer, the channel partner of the
       customer.
       
      string channel_partner_cloud_identity_id = 6;
      Parameters:
      value - The bytes for channelPartnerCloudIdentityId to set.
      Returns:
      This builder for chaining.