Class UserData.Builder

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

public static final class UserData.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UserData.Builder> implements UserDataOrBuilder
 User data holding user identifiers and attributes.
 
Protobuf type google.ads.googleads.v18.common.UserData
  • 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<UserData.Builder>
    • clear

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

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

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

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

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

      public UserData.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<UserData.Builder>
    • clearField

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

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

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

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

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

      public UserData.Builder mergeFrom(UserData other)
    • isInitialized

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

      public UserData.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<UserData.Builder>
      Throws:
      IOException
    • getUserIdentifiersList

      public List<UserIdentifier> getUserIdentifiersList()
       User identification info. Required.
       
      repeated .google.ads.googleads.v18.common.UserIdentifier user_identifiers = 1;
      Specified by:
      getUserIdentifiersList in interface UserDataOrBuilder
    • getUserIdentifiersCount

      public int getUserIdentifiersCount()
       User identification info. Required.
       
      repeated .google.ads.googleads.v18.common.UserIdentifier user_identifiers = 1;
      Specified by:
      getUserIdentifiersCount in interface UserDataOrBuilder
    • getUserIdentifiers

      public UserIdentifier getUserIdentifiers(int index)
       User identification info. Required.
       
      repeated .google.ads.googleads.v18.common.UserIdentifier user_identifiers = 1;
      Specified by:
      getUserIdentifiers in interface UserDataOrBuilder
    • setUserIdentifiers

      public UserData.Builder setUserIdentifiers(int index, UserIdentifier value)
       User identification info. Required.
       
      repeated .google.ads.googleads.v18.common.UserIdentifier user_identifiers = 1;
    • setUserIdentifiers

      public UserData.Builder setUserIdentifiers(int index, UserIdentifier.Builder builderForValue)
       User identification info. Required.
       
      repeated .google.ads.googleads.v18.common.UserIdentifier user_identifiers = 1;
    • addUserIdentifiers

      public UserData.Builder addUserIdentifiers(UserIdentifier value)
       User identification info. Required.
       
      repeated .google.ads.googleads.v18.common.UserIdentifier user_identifiers = 1;
    • addUserIdentifiers

      public UserData.Builder addUserIdentifiers(int index, UserIdentifier value)
       User identification info. Required.
       
      repeated .google.ads.googleads.v18.common.UserIdentifier user_identifiers = 1;
    • addUserIdentifiers

      public UserData.Builder addUserIdentifiers(UserIdentifier.Builder builderForValue)
       User identification info. Required.
       
      repeated .google.ads.googleads.v18.common.UserIdentifier user_identifiers = 1;
    • addUserIdentifiers

      public UserData.Builder addUserIdentifiers(int index, UserIdentifier.Builder builderForValue)
       User identification info. Required.
       
      repeated .google.ads.googleads.v18.common.UserIdentifier user_identifiers = 1;
    • addAllUserIdentifiers

      public UserData.Builder addAllUserIdentifiers(Iterable<? extends UserIdentifier> values)
       User identification info. Required.
       
      repeated .google.ads.googleads.v18.common.UserIdentifier user_identifiers = 1;
    • clearUserIdentifiers

      public UserData.Builder clearUserIdentifiers()
       User identification info. Required.
       
      repeated .google.ads.googleads.v18.common.UserIdentifier user_identifiers = 1;
    • removeUserIdentifiers

      public UserData.Builder removeUserIdentifiers(int index)
       User identification info. Required.
       
      repeated .google.ads.googleads.v18.common.UserIdentifier user_identifiers = 1;
    • getUserIdentifiersBuilder

      public UserIdentifier.Builder getUserIdentifiersBuilder(int index)
       User identification info. Required.
       
      repeated .google.ads.googleads.v18.common.UserIdentifier user_identifiers = 1;
    • getUserIdentifiersOrBuilder

      public UserIdentifierOrBuilder getUserIdentifiersOrBuilder(int index)
       User identification info. Required.
       
      repeated .google.ads.googleads.v18.common.UserIdentifier user_identifiers = 1;
      Specified by:
      getUserIdentifiersOrBuilder in interface UserDataOrBuilder
    • getUserIdentifiersOrBuilderList

      public List<? extends UserIdentifierOrBuilder> getUserIdentifiersOrBuilderList()
       User identification info. Required.
       
      repeated .google.ads.googleads.v18.common.UserIdentifier user_identifiers = 1;
      Specified by:
      getUserIdentifiersOrBuilderList in interface UserDataOrBuilder
    • addUserIdentifiersBuilder

      public UserIdentifier.Builder addUserIdentifiersBuilder()
       User identification info. Required.
       
      repeated .google.ads.googleads.v18.common.UserIdentifier user_identifiers = 1;
    • addUserIdentifiersBuilder

      public UserIdentifier.Builder addUserIdentifiersBuilder(int index)
       User identification info. Required.
       
      repeated .google.ads.googleads.v18.common.UserIdentifier user_identifiers = 1;
    • getUserIdentifiersBuilderList

      public List<UserIdentifier.Builder> getUserIdentifiersBuilderList()
       User identification info. Required.
       
      repeated .google.ads.googleads.v18.common.UserIdentifier user_identifiers = 1;
    • hasTransactionAttribute

      public boolean hasTransactionAttribute()
       Additional transactions/attributes associated with the user.
       Required when updating store sales data.
       
      .google.ads.googleads.v18.common.TransactionAttribute transaction_attribute = 2;
      Specified by:
      hasTransactionAttribute in interface UserDataOrBuilder
      Returns:
      Whether the transactionAttribute field is set.
    • getTransactionAttribute

      public TransactionAttribute getTransactionAttribute()
       Additional transactions/attributes associated with the user.
       Required when updating store sales data.
       
      .google.ads.googleads.v18.common.TransactionAttribute transaction_attribute = 2;
      Specified by:
      getTransactionAttribute in interface UserDataOrBuilder
      Returns:
      The transactionAttribute.
    • setTransactionAttribute

      public UserData.Builder setTransactionAttribute(TransactionAttribute value)
       Additional transactions/attributes associated with the user.
       Required when updating store sales data.
       
      .google.ads.googleads.v18.common.TransactionAttribute transaction_attribute = 2;
    • setTransactionAttribute

      public UserData.Builder setTransactionAttribute(TransactionAttribute.Builder builderForValue)
       Additional transactions/attributes associated with the user.
       Required when updating store sales data.
       
      .google.ads.googleads.v18.common.TransactionAttribute transaction_attribute = 2;
    • mergeTransactionAttribute

      public UserData.Builder mergeTransactionAttribute(TransactionAttribute value)
       Additional transactions/attributes associated with the user.
       Required when updating store sales data.
       
      .google.ads.googleads.v18.common.TransactionAttribute transaction_attribute = 2;
    • clearTransactionAttribute

      public UserData.Builder clearTransactionAttribute()
       Additional transactions/attributes associated with the user.
       Required when updating store sales data.
       
      .google.ads.googleads.v18.common.TransactionAttribute transaction_attribute = 2;
    • getTransactionAttributeBuilder

      public TransactionAttribute.Builder getTransactionAttributeBuilder()
       Additional transactions/attributes associated with the user.
       Required when updating store sales data.
       
      .google.ads.googleads.v18.common.TransactionAttribute transaction_attribute = 2;
    • getTransactionAttributeOrBuilder

      public TransactionAttributeOrBuilder getTransactionAttributeOrBuilder()
       Additional transactions/attributes associated with the user.
       Required when updating store sales data.
       
      .google.ads.googleads.v18.common.TransactionAttribute transaction_attribute = 2;
      Specified by:
      getTransactionAttributeOrBuilder in interface UserDataOrBuilder
    • hasUserAttribute

      public boolean hasUserAttribute()
       Additional attributes associated with the user. Required when updating
       customer match attributes. These have an expiration of 540 days.
       
      .google.ads.googleads.v18.common.UserAttribute user_attribute = 3;
      Specified by:
      hasUserAttribute in interface UserDataOrBuilder
      Returns:
      Whether the userAttribute field is set.
    • getUserAttribute

      public UserAttribute getUserAttribute()
       Additional attributes associated with the user. Required when updating
       customer match attributes. These have an expiration of 540 days.
       
      .google.ads.googleads.v18.common.UserAttribute user_attribute = 3;
      Specified by:
      getUserAttribute in interface UserDataOrBuilder
      Returns:
      The userAttribute.
    • setUserAttribute

      public UserData.Builder setUserAttribute(UserAttribute value)
       Additional attributes associated with the user. Required when updating
       customer match attributes. These have an expiration of 540 days.
       
      .google.ads.googleads.v18.common.UserAttribute user_attribute = 3;
    • setUserAttribute

      public UserData.Builder setUserAttribute(UserAttribute.Builder builderForValue)
       Additional attributes associated with the user. Required when updating
       customer match attributes. These have an expiration of 540 days.
       
      .google.ads.googleads.v18.common.UserAttribute user_attribute = 3;
    • mergeUserAttribute

      public UserData.Builder mergeUserAttribute(UserAttribute value)
       Additional attributes associated with the user. Required when updating
       customer match attributes. These have an expiration of 540 days.
       
      .google.ads.googleads.v18.common.UserAttribute user_attribute = 3;
    • clearUserAttribute

      public UserData.Builder clearUserAttribute()
       Additional attributes associated with the user. Required when updating
       customer match attributes. These have an expiration of 540 days.
       
      .google.ads.googleads.v18.common.UserAttribute user_attribute = 3;
    • getUserAttributeBuilder

      public UserAttribute.Builder getUserAttributeBuilder()
       Additional attributes associated with the user. Required when updating
       customer match attributes. These have an expiration of 540 days.
       
      .google.ads.googleads.v18.common.UserAttribute user_attribute = 3;
    • getUserAttributeOrBuilder

      public UserAttributeOrBuilder getUserAttributeOrBuilder()
       Additional attributes associated with the user. Required when updating
       customer match attributes. These have an expiration of 540 days.
       
      .google.ads.googleads.v18.common.UserAttribute user_attribute = 3;
      Specified by:
      getUserAttributeOrBuilder in interface UserDataOrBuilder
    • hasConsent

      public boolean hasConsent()
       The consent setting for the user. If set, will override the job level
       consent for this user.
       
      optional .google.ads.googleads.v18.common.Consent consent = 4;
      Specified by:
      hasConsent in interface UserDataOrBuilder
      Returns:
      Whether the consent field is set.
    • getConsent

      public Consent getConsent()
       The consent setting for the user. If set, will override the job level
       consent for this user.
       
      optional .google.ads.googleads.v18.common.Consent consent = 4;
      Specified by:
      getConsent in interface UserDataOrBuilder
      Returns:
      The consent.
    • setConsent

      public UserData.Builder setConsent(Consent value)
       The consent setting for the user. If set, will override the job level
       consent for this user.
       
      optional .google.ads.googleads.v18.common.Consent consent = 4;
    • setConsent

      public UserData.Builder setConsent(Consent.Builder builderForValue)
       The consent setting for the user. If set, will override the job level
       consent for this user.
       
      optional .google.ads.googleads.v18.common.Consent consent = 4;
    • mergeConsent

      public UserData.Builder mergeConsent(Consent value)
       The consent setting for the user. If set, will override the job level
       consent for this user.
       
      optional .google.ads.googleads.v18.common.Consent consent = 4;
    • clearConsent

      public UserData.Builder clearConsent()
       The consent setting for the user. If set, will override the job level
       consent for this user.
       
      optional .google.ads.googleads.v18.common.Consent consent = 4;
    • getConsentBuilder

      public Consent.Builder getConsentBuilder()
       The consent setting for the user. If set, will override the job level
       consent for this user.
       
      optional .google.ads.googleads.v18.common.Consent consent = 4;
    • getConsentOrBuilder

      public ConsentOrBuilder getConsentOrBuilder()
       The consent setting for the user. If set, will override the job level
       consent for this user.
       
      optional .google.ads.googleads.v18.common.Consent consent = 4;
      Specified by:
      getConsentOrBuilder in interface UserDataOrBuilder
    • setUnknownFields

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

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