Class UserIdentifier.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<UserIdentifier.Builder>
com.google.ads.googleads.v18.common.UserIdentifier.Builder
All Implemented Interfaces:
UserIdentifierOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
UserIdentifier

public static final class UserIdentifier.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UserIdentifier.Builder> implements UserIdentifierOrBuilder
 User identifying information.
 
Protobuf type google.ads.googleads.v18.common.UserIdentifier
  • Method Details

    • 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<UserIdentifier.Builder>
    • clear

      public UserIdentifier.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<UserIdentifier.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<UserIdentifier.Builder>
    • getDefaultInstanceForType

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

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

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

      public UserIdentifier.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<UserIdentifier.Builder>
    • setField

      public UserIdentifier.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<UserIdentifier.Builder>
    • clearField

      public UserIdentifier.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<UserIdentifier.Builder>
    • clearOneof

      public UserIdentifier.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<UserIdentifier.Builder>
    • setRepeatedField

      public UserIdentifier.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<UserIdentifier.Builder>
    • addRepeatedField

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

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

      public UserIdentifier.Builder mergeFrom(UserIdentifier other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<UserIdentifier.Builder>
    • mergeFrom

      public UserIdentifier.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<UserIdentifier.Builder>
      Throws:
      IOException
    • getIdentifierCase

      public UserIdentifier.IdentifierCase getIdentifierCase()
      Specified by:
      getIdentifierCase in interface UserIdentifierOrBuilder
    • clearIdentifier

      public UserIdentifier.Builder clearIdentifier()
    • getUserIdentifierSourceValue

      public int getUserIdentifierSourceValue()
       Source of the user identifier when the upload is from Store Sales,
       ConversionUploadService, or ConversionAdjustmentUploadService.
       
      .google.ads.googleads.v18.enums.UserIdentifierSourceEnum.UserIdentifierSource user_identifier_source = 6;
      Specified by:
      getUserIdentifierSourceValue in interface UserIdentifierOrBuilder
      Returns:
      The enum numeric value on the wire for userIdentifierSource.
    • setUserIdentifierSourceValue

      public UserIdentifier.Builder setUserIdentifierSourceValue(int value)
       Source of the user identifier when the upload is from Store Sales,
       ConversionUploadService, or ConversionAdjustmentUploadService.
       
      .google.ads.googleads.v18.enums.UserIdentifierSourceEnum.UserIdentifierSource user_identifier_source = 6;
      Parameters:
      value - The enum numeric value on the wire for userIdentifierSource to set.
      Returns:
      This builder for chaining.
    • getUserIdentifierSource

      public UserIdentifierSourceEnum.UserIdentifierSource getUserIdentifierSource()
       Source of the user identifier when the upload is from Store Sales,
       ConversionUploadService, or ConversionAdjustmentUploadService.
       
      .google.ads.googleads.v18.enums.UserIdentifierSourceEnum.UserIdentifierSource user_identifier_source = 6;
      Specified by:
      getUserIdentifierSource in interface UserIdentifierOrBuilder
      Returns:
      The userIdentifierSource.
    • setUserIdentifierSource

       Source of the user identifier when the upload is from Store Sales,
       ConversionUploadService, or ConversionAdjustmentUploadService.
       
      .google.ads.googleads.v18.enums.UserIdentifierSourceEnum.UserIdentifierSource user_identifier_source = 6;
      Parameters:
      value - The userIdentifierSource to set.
      Returns:
      This builder for chaining.
    • clearUserIdentifierSource

      public UserIdentifier.Builder clearUserIdentifierSource()
       Source of the user identifier when the upload is from Store Sales,
       ConversionUploadService, or ConversionAdjustmentUploadService.
       
      .google.ads.googleads.v18.enums.UserIdentifierSourceEnum.UserIdentifierSource user_identifier_source = 6;
      Returns:
      This builder for chaining.
    • hasHashedEmail

      public boolean hasHashedEmail()
       Hashed email address using SHA-256 hash function after normalization.
       Accepted for Customer Match, Store Sales, ConversionUploadService, and
       ConversionAdjustmentUploadService.
       
      string hashed_email = 7;
      Specified by:
      hasHashedEmail in interface UserIdentifierOrBuilder
      Returns:
      Whether the hashedEmail field is set.
    • getHashedEmail

      public String getHashedEmail()
       Hashed email address using SHA-256 hash function after normalization.
       Accepted for Customer Match, Store Sales, ConversionUploadService, and
       ConversionAdjustmentUploadService.
       
      string hashed_email = 7;
      Specified by:
      getHashedEmail in interface UserIdentifierOrBuilder
      Returns:
      The hashedEmail.
    • getHashedEmailBytes

      public com.google.protobuf.ByteString getHashedEmailBytes()
       Hashed email address using SHA-256 hash function after normalization.
       Accepted for Customer Match, Store Sales, ConversionUploadService, and
       ConversionAdjustmentUploadService.
       
      string hashed_email = 7;
      Specified by:
      getHashedEmailBytes in interface UserIdentifierOrBuilder
      Returns:
      The bytes for hashedEmail.
    • setHashedEmail

      public UserIdentifier.Builder setHashedEmail(String value)
       Hashed email address using SHA-256 hash function after normalization.
       Accepted for Customer Match, Store Sales, ConversionUploadService, and
       ConversionAdjustmentUploadService.
       
      string hashed_email = 7;
      Parameters:
      value - The hashedEmail to set.
      Returns:
      This builder for chaining.
    • clearHashedEmail

      public UserIdentifier.Builder clearHashedEmail()
       Hashed email address using SHA-256 hash function after normalization.
       Accepted for Customer Match, Store Sales, ConversionUploadService, and
       ConversionAdjustmentUploadService.
       
      string hashed_email = 7;
      Returns:
      This builder for chaining.
    • setHashedEmailBytes

      public UserIdentifier.Builder setHashedEmailBytes(com.google.protobuf.ByteString value)
       Hashed email address using SHA-256 hash function after normalization.
       Accepted for Customer Match, Store Sales, ConversionUploadService, and
       ConversionAdjustmentUploadService.
       
      string hashed_email = 7;
      Parameters:
      value - The bytes for hashedEmail to set.
      Returns:
      This builder for chaining.
    • hasHashedPhoneNumber

      public boolean hasHashedPhoneNumber()
       Hashed phone number using SHA-256 hash function after normalization
       (E164 standard). Accepted for Customer Match, Store Sales,
       ConversionUploadService, and ConversionAdjustmentUploadService.
       
      string hashed_phone_number = 8;
      Specified by:
      hasHashedPhoneNumber in interface UserIdentifierOrBuilder
      Returns:
      Whether the hashedPhoneNumber field is set.
    • getHashedPhoneNumber

      public String getHashedPhoneNumber()
       Hashed phone number using SHA-256 hash function after normalization
       (E164 standard). Accepted for Customer Match, Store Sales,
       ConversionUploadService, and ConversionAdjustmentUploadService.
       
      string hashed_phone_number = 8;
      Specified by:
      getHashedPhoneNumber in interface UserIdentifierOrBuilder
      Returns:
      The hashedPhoneNumber.
    • getHashedPhoneNumberBytes

      public com.google.protobuf.ByteString getHashedPhoneNumberBytes()
       Hashed phone number using SHA-256 hash function after normalization
       (E164 standard). Accepted for Customer Match, Store Sales,
       ConversionUploadService, and ConversionAdjustmentUploadService.
       
      string hashed_phone_number = 8;
      Specified by:
      getHashedPhoneNumberBytes in interface UserIdentifierOrBuilder
      Returns:
      The bytes for hashedPhoneNumber.
    • setHashedPhoneNumber

      public UserIdentifier.Builder setHashedPhoneNumber(String value)
       Hashed phone number using SHA-256 hash function after normalization
       (E164 standard). Accepted for Customer Match, Store Sales,
       ConversionUploadService, and ConversionAdjustmentUploadService.
       
      string hashed_phone_number = 8;
      Parameters:
      value - The hashedPhoneNumber to set.
      Returns:
      This builder for chaining.
    • clearHashedPhoneNumber

      public UserIdentifier.Builder clearHashedPhoneNumber()
       Hashed phone number using SHA-256 hash function after normalization
       (E164 standard). Accepted for Customer Match, Store Sales,
       ConversionUploadService, and ConversionAdjustmentUploadService.
       
      string hashed_phone_number = 8;
      Returns:
      This builder for chaining.
    • setHashedPhoneNumberBytes

      public UserIdentifier.Builder setHashedPhoneNumberBytes(com.google.protobuf.ByteString value)
       Hashed phone number using SHA-256 hash function after normalization
       (E164 standard). Accepted for Customer Match, Store Sales,
       ConversionUploadService, and ConversionAdjustmentUploadService.
       
      string hashed_phone_number = 8;
      Parameters:
      value - The bytes for hashedPhoneNumber to set.
      Returns:
      This builder for chaining.
    • hasMobileId

      public boolean hasMobileId()
       Mobile device ID (advertising ID/IDFA). Accepted only for Customer Match.
       
      string mobile_id = 9;
      Specified by:
      hasMobileId in interface UserIdentifierOrBuilder
      Returns:
      Whether the mobileId field is set.
    • getMobileId

      public String getMobileId()
       Mobile device ID (advertising ID/IDFA). Accepted only for Customer Match.
       
      string mobile_id = 9;
      Specified by:
      getMobileId in interface UserIdentifierOrBuilder
      Returns:
      The mobileId.
    • getMobileIdBytes

      public com.google.protobuf.ByteString getMobileIdBytes()
       Mobile device ID (advertising ID/IDFA). Accepted only for Customer Match.
       
      string mobile_id = 9;
      Specified by:
      getMobileIdBytes in interface UserIdentifierOrBuilder
      Returns:
      The bytes for mobileId.
    • setMobileId

      public UserIdentifier.Builder setMobileId(String value)
       Mobile device ID (advertising ID/IDFA). Accepted only for Customer Match.
       
      string mobile_id = 9;
      Parameters:
      value - The mobileId to set.
      Returns:
      This builder for chaining.
    • clearMobileId

      public UserIdentifier.Builder clearMobileId()
       Mobile device ID (advertising ID/IDFA). Accepted only for Customer Match.
       
      string mobile_id = 9;
      Returns:
      This builder for chaining.
    • setMobileIdBytes

      public UserIdentifier.Builder setMobileIdBytes(com.google.protobuf.ByteString value)
       Mobile device ID (advertising ID/IDFA). Accepted only for Customer Match.
       
      string mobile_id = 9;
      Parameters:
      value - The bytes for mobileId to set.
      Returns:
      This builder for chaining.
    • hasThirdPartyUserId

      public boolean hasThirdPartyUserId()
       Advertiser-assigned user ID for Customer Match upload, or
       third-party-assigned user ID for Store Sales. Accepted only for Customer
       Match and Store Sales.
       
      string third_party_user_id = 10;
      Specified by:
      hasThirdPartyUserId in interface UserIdentifierOrBuilder
      Returns:
      Whether the thirdPartyUserId field is set.
    • getThirdPartyUserId

      public String getThirdPartyUserId()
       Advertiser-assigned user ID for Customer Match upload, or
       third-party-assigned user ID for Store Sales. Accepted only for Customer
       Match and Store Sales.
       
      string third_party_user_id = 10;
      Specified by:
      getThirdPartyUserId in interface UserIdentifierOrBuilder
      Returns:
      The thirdPartyUserId.
    • getThirdPartyUserIdBytes

      public com.google.protobuf.ByteString getThirdPartyUserIdBytes()
       Advertiser-assigned user ID for Customer Match upload, or
       third-party-assigned user ID for Store Sales. Accepted only for Customer
       Match and Store Sales.
       
      string third_party_user_id = 10;
      Specified by:
      getThirdPartyUserIdBytes in interface UserIdentifierOrBuilder
      Returns:
      The bytes for thirdPartyUserId.
    • setThirdPartyUserId

      public UserIdentifier.Builder setThirdPartyUserId(String value)
       Advertiser-assigned user ID for Customer Match upload, or
       third-party-assigned user ID for Store Sales. Accepted only for Customer
       Match and Store Sales.
       
      string third_party_user_id = 10;
      Parameters:
      value - The thirdPartyUserId to set.
      Returns:
      This builder for chaining.
    • clearThirdPartyUserId

      public UserIdentifier.Builder clearThirdPartyUserId()
       Advertiser-assigned user ID for Customer Match upload, or
       third-party-assigned user ID for Store Sales. Accepted only for Customer
       Match and Store Sales.
       
      string third_party_user_id = 10;
      Returns:
      This builder for chaining.
    • setThirdPartyUserIdBytes

      public UserIdentifier.Builder setThirdPartyUserIdBytes(com.google.protobuf.ByteString value)
       Advertiser-assigned user ID for Customer Match upload, or
       third-party-assigned user ID for Store Sales. Accepted only for Customer
       Match and Store Sales.
       
      string third_party_user_id = 10;
      Parameters:
      value - The bytes for thirdPartyUserId to set.
      Returns:
      This builder for chaining.
    • hasAddressInfo

      public boolean hasAddressInfo()
       Address information. Accepted only for Customer Match, Store Sales, and
       ConversionAdjustmentUploadService.
       
      .google.ads.googleads.v18.common.OfflineUserAddressInfo address_info = 5;
      Specified by:
      hasAddressInfo in interface UserIdentifierOrBuilder
      Returns:
      Whether the addressInfo field is set.
    • getAddressInfo

      public OfflineUserAddressInfo getAddressInfo()
       Address information. Accepted only for Customer Match, Store Sales, and
       ConversionAdjustmentUploadService.
       
      .google.ads.googleads.v18.common.OfflineUserAddressInfo address_info = 5;
      Specified by:
      getAddressInfo in interface UserIdentifierOrBuilder
      Returns:
      The addressInfo.
    • setAddressInfo

      public UserIdentifier.Builder setAddressInfo(OfflineUserAddressInfo value)
       Address information. Accepted only for Customer Match, Store Sales, and
       ConversionAdjustmentUploadService.
       
      .google.ads.googleads.v18.common.OfflineUserAddressInfo address_info = 5;
    • setAddressInfo

      public UserIdentifier.Builder setAddressInfo(OfflineUserAddressInfo.Builder builderForValue)
       Address information. Accepted only for Customer Match, Store Sales, and
       ConversionAdjustmentUploadService.
       
      .google.ads.googleads.v18.common.OfflineUserAddressInfo address_info = 5;
    • mergeAddressInfo

      public UserIdentifier.Builder mergeAddressInfo(OfflineUserAddressInfo value)
       Address information. Accepted only for Customer Match, Store Sales, and
       ConversionAdjustmentUploadService.
       
      .google.ads.googleads.v18.common.OfflineUserAddressInfo address_info = 5;
    • clearAddressInfo

      public UserIdentifier.Builder clearAddressInfo()
       Address information. Accepted only for Customer Match, Store Sales, and
       ConversionAdjustmentUploadService.
       
      .google.ads.googleads.v18.common.OfflineUserAddressInfo address_info = 5;
    • getAddressInfoBuilder

      public OfflineUserAddressInfo.Builder getAddressInfoBuilder()
       Address information. Accepted only for Customer Match, Store Sales, and
       ConversionAdjustmentUploadService.
       
      .google.ads.googleads.v18.common.OfflineUserAddressInfo address_info = 5;
    • getAddressInfoOrBuilder

      public OfflineUserAddressInfoOrBuilder getAddressInfoOrBuilder()
       Address information. Accepted only for Customer Match, Store Sales, and
       ConversionAdjustmentUploadService.
       
      .google.ads.googleads.v18.common.OfflineUserAddressInfo address_info = 5;
      Specified by:
      getAddressInfoOrBuilder in interface UserIdentifierOrBuilder
    • setUnknownFields

      public final UserIdentifier.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<UserIdentifier.Builder>
    • mergeUnknownFields

      public final UserIdentifier.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<UserIdentifier.Builder>