Class Customer

  • All Implemented Interfaces:
    CustomerOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Customer
    extends com.google.protobuf.GeneratedMessageV3
    implements CustomerOrBuilder
     Entity representing a customer of a reseller or distributor.
     
    Protobuf type google.cloud.channel.v1.Customer
    See Also:
    Serialized Form
    • Field Detail

      • ORG_DISPLAY_NAME_FIELD_NUMBER

        public static final int ORG_DISPLAY_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ORG_POSTAL_ADDRESS_FIELD_NUMBER

        public static final int ORG_POSTAL_ADDRESS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PRIMARY_CONTACT_INFO_FIELD_NUMBER

        public static final int PRIMARY_CONTACT_INFO_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ALTERNATE_EMAIL_FIELD_NUMBER

        public static final int ALTERNATE_EMAIL_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CREATE_TIME_FIELD_NUMBER

        public static final int CREATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • UPDATE_TIME_FIELD_NUMBER

        public static final int UPDATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CLOUD_IDENTITY_ID_FIELD_NUMBER

        public static final int CLOUD_IDENTITY_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LANGUAGE_CODE_FIELD_NUMBER

        public static final int LANGUAGE_CODE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CLOUD_IDENTITY_INFO_FIELD_NUMBER

        public static final int CLOUD_IDENTITY_INFO_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CHANNEL_PARTNER_ID_FIELD_NUMBER

        public static final int CHANNEL_PARTNER_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CORRELATION_ID_FIELD_NUMBER

        public static final int CORRELATION_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • getName

        public String getName()
         Output only. Resource name of the customer.
         Format: accounts/{account_id}/customers/{customer_id}
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface CustomerOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. Resource name of the customer.
         Format: accounts/{account_id}/customers/{customer_id}
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface CustomerOrBuilder
        Returns:
        The bytes for name.
      • getOrgDisplayName

        public String getOrgDisplayName()
         Required. Name of the organization that the customer entity represents.
         
        string org_display_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getOrgDisplayName in interface CustomerOrBuilder
        Returns:
        The orgDisplayName.
      • getOrgDisplayNameBytes

        public com.google.protobuf.ByteString getOrgDisplayNameBytes()
         Required. Name of the organization that the customer entity represents.
         
        string org_display_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getOrgDisplayNameBytes in interface CustomerOrBuilder
        Returns:
        The bytes for orgDisplayName.
      • hasOrgPostalAddress

        public boolean hasOrgPostalAddress()
         Required. The organization address for the customer. To enforce US laws and
         embargoes, we require a region, postal code, and address lines. You must
         provide valid addresses for every customer. To set the customer's
         language, use the Customer-level language code.
         
        .google.type.PostalAddress org_postal_address = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasOrgPostalAddress in interface CustomerOrBuilder
        Returns:
        Whether the orgPostalAddress field is set.
      • getOrgPostalAddress

        public com.google.type.PostalAddress getOrgPostalAddress()
         Required. The organization address for the customer. To enforce US laws and
         embargoes, we require a region, postal code, and address lines. You must
         provide valid addresses for every customer. To set the customer's
         language, use the Customer-level language code.
         
        .google.type.PostalAddress org_postal_address = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getOrgPostalAddress in interface CustomerOrBuilder
        Returns:
        The orgPostalAddress.
      • getOrgPostalAddressOrBuilder

        public com.google.type.PostalAddressOrBuilder getOrgPostalAddressOrBuilder()
         Required. The organization address for the customer. To enforce US laws and
         embargoes, we require a region, postal code, and address lines. You must
         provide valid addresses for every customer. To set the customer's
         language, use the Customer-level language code.
         
        .google.type.PostalAddress org_postal_address = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getOrgPostalAddressOrBuilder in interface CustomerOrBuilder
      • hasPrimaryContactInfo

        public boolean hasPrimaryContactInfo()
         Primary contact info.
         
        .google.cloud.channel.v1.ContactInfo primary_contact_info = 4;
        Specified by:
        hasPrimaryContactInfo in interface CustomerOrBuilder
        Returns:
        Whether the primaryContactInfo field is set.
      • getPrimaryContactInfo

        public ContactInfo getPrimaryContactInfo()
         Primary contact info.
         
        .google.cloud.channel.v1.ContactInfo primary_contact_info = 4;
        Specified by:
        getPrimaryContactInfo in interface CustomerOrBuilder
        Returns:
        The primaryContactInfo.
      • getAlternateEmail

        public String getAlternateEmail()
         Secondary contact email. You need to provide an alternate email to create
         different domains if a primary contact email already exists. Users will
         receive a notification with credentials when you create an admin.google.com
         account. Secondary emails are also recovery email addresses. Alternate
         emails are optional when you create Team customers.
         
        string alternate_email = 5;
        Specified by:
        getAlternateEmail in interface CustomerOrBuilder
        Returns:
        The alternateEmail.
      • getAlternateEmailBytes

        public com.google.protobuf.ByteString getAlternateEmailBytes()
         Secondary contact email. You need to provide an alternate email to create
         different domains if a primary contact email already exists. Users will
         receive a notification with credentials when you create an admin.google.com
         account. Secondary emails are also recovery email addresses. Alternate
         emails are optional when you create Team customers.
         
        string alternate_email = 5;
        Specified by:
        getAlternateEmailBytes in interface CustomerOrBuilder
        Returns:
        The bytes for alternateEmail.
      • getDomain

        public String getDomain()
         Required. The customer's primary domain. Must match the primary contact
         email's domain.
         
        string domain = 6 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDomain in interface CustomerOrBuilder
        Returns:
        The domain.
      • getDomainBytes

        public com.google.protobuf.ByteString getDomainBytes()
         Required. The customer's primary domain. Must match the primary contact
         email's domain.
         
        string domain = 6 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDomainBytes in interface CustomerOrBuilder
        Returns:
        The bytes for domain.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. Time when the customer was created.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface CustomerOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. Time when the customer was created.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface CustomerOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. Time when the customer was created.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface CustomerOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. Time when the customer was updated.
         
        .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface CustomerOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. Time when the customer was updated.
         
        .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface CustomerOrBuilder
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. Time when the customer was updated.
         
        .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface CustomerOrBuilder
      • getCloudIdentityId

        public String getCloudIdentityId()
         Output only. The customer's Cloud Identity ID if the customer has a Cloud
         Identity resource.
         
        string cloud_identity_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCloudIdentityId in interface CustomerOrBuilder
        Returns:
        The cloudIdentityId.
      • getCloudIdentityIdBytes

        public com.google.protobuf.ByteString getCloudIdentityIdBytes()
         Output only. The customer's Cloud Identity ID if the customer has a Cloud
         Identity resource.
         
        string cloud_identity_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCloudIdentityIdBytes in interface CustomerOrBuilder
        Returns:
        The bytes for cloudIdentityId.
      • getLanguageCode

        public String getLanguageCode()
         Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
         information, see
         https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
         
        string language_code = 10 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLanguageCode in interface CustomerOrBuilder
        Returns:
        The languageCode.
      • getLanguageCodeBytes

        public com.google.protobuf.ByteString getLanguageCodeBytes()
         Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
         information, see
         https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
         
        string language_code = 10 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLanguageCodeBytes in interface CustomerOrBuilder
        Returns:
        The bytes for languageCode.
      • hasCloudIdentityInfo

        public boolean hasCloudIdentityInfo()
         Output only. Cloud Identity information for the customer.
         Populated only if a Cloud Identity account exists for this customer.
         
        .google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCloudIdentityInfo in interface CustomerOrBuilder
        Returns:
        Whether the cloudIdentityInfo field is set.
      • getCloudIdentityInfo

        public CloudIdentityInfo getCloudIdentityInfo()
         Output only. Cloud Identity information for the customer.
         Populated only if a Cloud Identity account exists for this customer.
         
        .google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCloudIdentityInfo in interface CustomerOrBuilder
        Returns:
        The cloudIdentityInfo.
      • getCloudIdentityInfoOrBuilder

        public CloudIdentityInfoOrBuilder getCloudIdentityInfoOrBuilder()
         Output only. Cloud Identity information for the customer.
         Populated only if a Cloud Identity account exists for this customer.
         
        .google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCloudIdentityInfoOrBuilder in interface CustomerOrBuilder
      • getChannelPartnerId

        public String getChannelPartnerId()
         Cloud Identity ID of the customer's channel partner.
         Populated only if a channel partner exists for this customer.
         
        string channel_partner_id = 13;
        Specified by:
        getChannelPartnerId in interface CustomerOrBuilder
        Returns:
        The channelPartnerId.
      • getChannelPartnerIdBytes

        public com.google.protobuf.ByteString getChannelPartnerIdBytes()
         Cloud Identity ID of the customer's channel partner.
         Populated only if a channel partner exists for this customer.
         
        string channel_partner_id = 13;
        Specified by:
        getChannelPartnerIdBytes in interface CustomerOrBuilder
        Returns:
        The bytes for channelPartnerId.
      • getCorrelationId

        public String getCorrelationId()
         Optional. External CRM ID for the customer.
         Populated only if a CRM ID exists for this customer.
         
        string correlation_id = 14 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCorrelationId in interface CustomerOrBuilder
        Returns:
        The correlationId.
      • getCorrelationIdBytes

        public com.google.protobuf.ByteString getCorrelationIdBytes()
         Optional. External CRM ID for the customer.
         Populated only if a CRM ID exists for this customer.
         
        string correlation_id = 14 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCorrelationIdBytes in interface CustomerOrBuilder
        Returns:
        The bytes for correlationId.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Customer parseFrom​(ByteBuffer data)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Customer parseFrom​(ByteBuffer data,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Customer parseFrom​(com.google.protobuf.ByteString data)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Customer parseFrom​(com.google.protobuf.ByteString data,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Customer parseFrom​(byte[] data)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Customer parseFrom​(byte[] data,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Customer parseFrom​(com.google.protobuf.CodedInputStream input,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Customer.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Customer.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Customer.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Customer getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Customer> parser()
      • getParserForType

        public com.google.protobuf.Parser<Customer> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Customer getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder