Class UserData.Builder

  • All Implemented Interfaces:
    UserDataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.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.v10.common.UserData
    • 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<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,
                                         java.lang.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,
                                                 java.lang.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,
                                                 java.lang.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>
      • 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 java.io.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:
        java.io.IOException
      • getUserIdentifiersList

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

        public int getUserIdentifiersCount()
         User identification info. Required.
         
        repeated .google.ads.googleads.v10.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.v10.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.v10.common.UserIdentifier user_identifiers = 1;
      • setUserIdentifiers

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

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

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

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

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

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

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

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

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

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

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

        public java.util.List<UserIdentifier.Builder> getUserIdentifiersBuilderList()
         User identification info. Required.
         
        repeated .google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.common.TransactionAttribute transaction_attribute = 2;
      • 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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.common.UserAttribute user_attribute = 3;
        Specified by:
        getUserAttributeOrBuilder 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>