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.v15.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,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 typegoogle.ads.googleads.v15.common.UserData
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UserData.BuilderaddAllUserIdentifiers(java.lang.Iterable<? extends UserIdentifier> values)User identification info.UserData.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)UserData.BuilderaddUserIdentifiers(int index, UserIdentifier value)User identification info.UserData.BuilderaddUserIdentifiers(int index, UserIdentifier.Builder builderForValue)User identification info.UserData.BuilderaddUserIdentifiers(UserIdentifier value)User identification info.UserData.BuilderaddUserIdentifiers(UserIdentifier.Builder builderForValue)User identification info.UserIdentifier.BuilderaddUserIdentifiersBuilder()User identification info.UserIdentifier.BuilderaddUserIdentifiersBuilder(int index)User identification info.UserDatabuild()UserDatabuildPartial()UserData.Builderclear()UserData.BuilderclearConsent()The consent setting for the user.UserData.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)UserData.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)UserData.BuilderclearTransactionAttribute()Additional transactions/attributes associated with the user.UserData.BuilderclearUserAttribute()Additional attributes associated with the user.UserData.BuilderclearUserIdentifiers()User identification info.UserData.Builderclone()ConsentgetConsent()The consent setting for the user.Consent.BuildergetConsentBuilder()The consent setting for the user.ConsentOrBuildergetConsentOrBuilder()The consent setting for the user.UserDatagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()TransactionAttributegetTransactionAttribute()Additional transactions/attributes associated with the user.TransactionAttribute.BuildergetTransactionAttributeBuilder()Additional transactions/attributes associated with the user.TransactionAttributeOrBuildergetTransactionAttributeOrBuilder()Additional transactions/attributes associated with the user.UserAttributegetUserAttribute()Additional attributes associated with the user.UserAttribute.BuildergetUserAttributeBuilder()Additional attributes associated with the user.UserAttributeOrBuildergetUserAttributeOrBuilder()Additional attributes associated with the user.UserIdentifiergetUserIdentifiers(int index)User identification info.UserIdentifier.BuildergetUserIdentifiersBuilder(int index)User identification info.java.util.List<UserIdentifier.Builder>getUserIdentifiersBuilderList()User identification info.intgetUserIdentifiersCount()User identification info.java.util.List<UserIdentifier>getUserIdentifiersList()User identification info.UserIdentifierOrBuildergetUserIdentifiersOrBuilder(int index)User identification info.java.util.List<? extends UserIdentifierOrBuilder>getUserIdentifiersOrBuilderList()User identification info.booleanhasConsent()The consent setting for the user.booleanhasTransactionAttribute()Additional transactions/attributes associated with the user.booleanhasUserAttribute()Additional attributes associated with the user.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()UserData.BuildermergeConsent(Consent value)The consent setting for the user.UserData.BuildermergeFrom(UserData other)UserData.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)UserData.BuildermergeFrom(com.google.protobuf.Message other)UserData.BuildermergeTransactionAttribute(TransactionAttribute value)Additional transactions/attributes associated with the user.UserData.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)UserData.BuildermergeUserAttribute(UserAttribute value)Additional attributes associated with the user.UserData.BuilderremoveUserIdentifiers(int index)User identification info.UserData.BuildersetConsent(Consent value)The consent setting for the user.UserData.BuildersetConsent(Consent.Builder builderForValue)The consent setting for the user.UserData.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)UserData.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)UserData.BuildersetTransactionAttribute(TransactionAttribute value)Additional transactions/attributes associated with the user.UserData.BuildersetTransactionAttribute(TransactionAttribute.Builder builderForValue)Additional transactions/attributes associated with the user.UserData.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)UserData.BuildersetUserAttribute(UserAttribute value)Additional attributes associated with the user.UserData.BuildersetUserAttribute(UserAttribute.Builder builderForValue)Additional attributes associated with the user.UserData.BuildersetUserIdentifiers(int index, UserIdentifier value)User identification info.UserData.BuildersetUserIdentifiers(int index, UserIdentifier.Builder builderForValue)User identification info.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<UserData.Builder>
-
clear
public UserData.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<UserData.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<UserData.Builder>
-
getDefaultInstanceForType
public UserData getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public UserData build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public UserData buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public UserData.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<UserData.Builder>
-
setField
public UserData.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UserData.Builder>
-
clearField
public UserData.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UserData.Builder>
-
clearOneof
public UserData.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UserData.Builder>
-
addRepeatedField
public UserData.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UserData.Builder>
-
mergeFrom
public UserData.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UserData.Builder>
-
mergeFrom
public UserData.Builder mergeFrom(UserData other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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.v15.common.UserIdentifier user_identifiers = 1;- Specified by:
getUserIdentifiersListin interfaceUserDataOrBuilder
-
getUserIdentifiersCount
public int getUserIdentifiersCount()
User identification info. Required.
repeated .google.ads.googleads.v15.common.UserIdentifier user_identifiers = 1;- Specified by:
getUserIdentifiersCountin interfaceUserDataOrBuilder
-
getUserIdentifiers
public UserIdentifier getUserIdentifiers(int index)
User identification info. Required.
repeated .google.ads.googleads.v15.common.UserIdentifier user_identifiers = 1;- Specified by:
getUserIdentifiersin interfaceUserDataOrBuilder
-
setUserIdentifiers
public UserData.Builder setUserIdentifiers(int index, UserIdentifier value)
User identification info. Required.
repeated .google.ads.googleads.v15.common.UserIdentifier user_identifiers = 1;
-
setUserIdentifiers
public UserData.Builder setUserIdentifiers(int index, UserIdentifier.Builder builderForValue)
User identification info. Required.
repeated .google.ads.googleads.v15.common.UserIdentifier user_identifiers = 1;
-
addUserIdentifiers
public UserData.Builder addUserIdentifiers(UserIdentifier value)
User identification info. Required.
repeated .google.ads.googleads.v15.common.UserIdentifier user_identifiers = 1;
-
addUserIdentifiers
public UserData.Builder addUserIdentifiers(int index, UserIdentifier value)
User identification info. Required.
repeated .google.ads.googleads.v15.common.UserIdentifier user_identifiers = 1;
-
addUserIdentifiers
public UserData.Builder addUserIdentifiers(UserIdentifier.Builder builderForValue)
User identification info. Required.
repeated .google.ads.googleads.v15.common.UserIdentifier user_identifiers = 1;
-
addUserIdentifiers
public UserData.Builder addUserIdentifiers(int index, UserIdentifier.Builder builderForValue)
User identification info. Required.
repeated .google.ads.googleads.v15.common.UserIdentifier user_identifiers = 1;
-
addAllUserIdentifiers
public UserData.Builder addAllUserIdentifiers(java.lang.Iterable<? extends UserIdentifier> values)
User identification info. Required.
repeated .google.ads.googleads.v15.common.UserIdentifier user_identifiers = 1;
-
clearUserIdentifiers
public UserData.Builder clearUserIdentifiers()
User identification info. Required.
repeated .google.ads.googleads.v15.common.UserIdentifier user_identifiers = 1;
-
removeUserIdentifiers
public UserData.Builder removeUserIdentifiers(int index)
User identification info. Required.
repeated .google.ads.googleads.v15.common.UserIdentifier user_identifiers = 1;
-
getUserIdentifiersBuilder
public UserIdentifier.Builder getUserIdentifiersBuilder(int index)
User identification info. Required.
repeated .google.ads.googleads.v15.common.UserIdentifier user_identifiers = 1;
-
getUserIdentifiersOrBuilder
public UserIdentifierOrBuilder getUserIdentifiersOrBuilder(int index)
User identification info. Required.
repeated .google.ads.googleads.v15.common.UserIdentifier user_identifiers = 1;- Specified by:
getUserIdentifiersOrBuilderin interfaceUserDataOrBuilder
-
getUserIdentifiersOrBuilderList
public java.util.List<? extends UserIdentifierOrBuilder> getUserIdentifiersOrBuilderList()
User identification info. Required.
repeated .google.ads.googleads.v15.common.UserIdentifier user_identifiers = 1;- Specified by:
getUserIdentifiersOrBuilderListin interfaceUserDataOrBuilder
-
addUserIdentifiersBuilder
public UserIdentifier.Builder addUserIdentifiersBuilder()
User identification info. Required.
repeated .google.ads.googleads.v15.common.UserIdentifier user_identifiers = 1;
-
addUserIdentifiersBuilder
public UserIdentifier.Builder addUserIdentifiersBuilder(int index)
User identification info. Required.
repeated .google.ads.googleads.v15.common.UserIdentifier user_identifiers = 1;
-
getUserIdentifiersBuilderList
public java.util.List<UserIdentifier.Builder> getUserIdentifiersBuilderList()
User identification info. Required.
repeated .google.ads.googleads.v15.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.v15.common.TransactionAttribute transaction_attribute = 2;- Specified by:
hasTransactionAttributein interfaceUserDataOrBuilder- 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.v15.common.TransactionAttribute transaction_attribute = 2;- Specified by:
getTransactionAttributein interfaceUserDataOrBuilder- 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.v15.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.v15.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.v15.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.v15.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.v15.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.v15.common.TransactionAttribute transaction_attribute = 2;- Specified by:
getTransactionAttributeOrBuilderin interfaceUserDataOrBuilder
-
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.v15.common.UserAttribute user_attribute = 3;- Specified by:
hasUserAttributein interfaceUserDataOrBuilder- 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.v15.common.UserAttribute user_attribute = 3;- Specified by:
getUserAttributein interfaceUserDataOrBuilder- 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.v15.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.v15.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.v15.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.v15.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.v15.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.v15.common.UserAttribute user_attribute = 3;- Specified by:
getUserAttributeOrBuilderin interfaceUserDataOrBuilder
-
hasConsent
public boolean hasConsent()
The consent setting for the user. Customer match will ignore this field and return a warning.
optional .google.ads.googleads.v15.common.Consent consent = 4;- Specified by:
hasConsentin interfaceUserDataOrBuilder- Returns:
- Whether the consent field is set.
-
getConsent
public Consent getConsent()
The consent setting for the user. Customer match will ignore this field and return a warning.
optional .google.ads.googleads.v15.common.Consent consent = 4;- Specified by:
getConsentin interfaceUserDataOrBuilder- Returns:
- The consent.
-
setConsent
public UserData.Builder setConsent(Consent value)
The consent setting for the user. Customer match will ignore this field and return a warning.
optional .google.ads.googleads.v15.common.Consent consent = 4;
-
setConsent
public UserData.Builder setConsent(Consent.Builder builderForValue)
The consent setting for the user. Customer match will ignore this field and return a warning.
optional .google.ads.googleads.v15.common.Consent consent = 4;
-
mergeConsent
public UserData.Builder mergeConsent(Consent value)
The consent setting for the user. Customer match will ignore this field and return a warning.
optional .google.ads.googleads.v15.common.Consent consent = 4;
-
clearConsent
public UserData.Builder clearConsent()
The consent setting for the user. Customer match will ignore this field and return a warning.
optional .google.ads.googleads.v15.common.Consent consent = 4;
-
getConsentBuilder
public Consent.Builder getConsentBuilder()
The consent setting for the user. Customer match will ignore this field and return a warning.
optional .google.ads.googleads.v15.common.Consent consent = 4;
-
getConsentOrBuilder
public ConsentOrBuilder getConsentOrBuilder()
The consent setting for the user. Customer match will ignore this field and return a warning.
optional .google.ads.googleads.v15.common.Consent consent = 4;- Specified by:
getConsentOrBuilderin interfaceUserDataOrBuilder
-
setUnknownFields
public final UserData.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UserData.Builder>
-
mergeUnknownFields
public final UserData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UserData.Builder>
-
-