Class UserData.Builder (0.1.0)

public static final class UserData.Builder extends GeneratedMessageV3.Builder<UserData.Builder> implements UserDataOrBuilder

Data that identifies the user. At least one identifier is required.

Protobuf type google.ads.datamanager.v1.UserData

Implements

UserDataOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllUserIdentifiers(Iterable<? extends UserIdentifier> values)

public UserData.Builder addAllUserIdentifiers(Iterable<? extends UserIdentifier> values)

Required. The identifiers for the user. It's possible to provide multiple instances of the same type of data (for example, multiple email addresses). To increase the likelihood of a match, provide as many identifiers as possible. At most 10 userIdentifiers can be provided in a single AudienceMember or Event.

repeated .google.ads.datamanager.v1.UserIdentifier user_identifiers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.ads.datamanager.v1.UserIdentifier>
Returns
Type Description
UserData.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UserData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UserData.Builder
Overrides

addUserIdentifiers(UserIdentifier value)

public UserData.Builder addUserIdentifiers(UserIdentifier value)

Required. The identifiers for the user. It's possible to provide multiple instances of the same type of data (for example, multiple email addresses). To increase the likelihood of a match, provide as many identifiers as possible. At most 10 userIdentifiers can be provided in a single AudienceMember or Event.

repeated .google.ads.datamanager.v1.UserIdentifier user_identifiers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value UserIdentifier
Returns
Type Description
UserData.Builder

addUserIdentifiers(UserIdentifier.Builder builderForValue)

public UserData.Builder addUserIdentifiers(UserIdentifier.Builder builderForValue)

Required. The identifiers for the user. It's possible to provide multiple instances of the same type of data (for example, multiple email addresses). To increase the likelihood of a match, provide as many identifiers as possible. At most 10 userIdentifiers can be provided in a single AudienceMember or Event.

repeated .google.ads.datamanager.v1.UserIdentifier user_identifiers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue UserIdentifier.Builder
Returns
Type Description
UserData.Builder

addUserIdentifiers(int index, UserIdentifier value)

public UserData.Builder addUserIdentifiers(int index, UserIdentifier value)

Required. The identifiers for the user. It's possible to provide multiple instances of the same type of data (for example, multiple email addresses). To increase the likelihood of a match, provide as many identifiers as possible. At most 10 userIdentifiers can be provided in a single AudienceMember or Event.

repeated .google.ads.datamanager.v1.UserIdentifier user_identifiers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value UserIdentifier
Returns
Type Description
UserData.Builder

addUserIdentifiers(int index, UserIdentifier.Builder builderForValue)

public UserData.Builder addUserIdentifiers(int index, UserIdentifier.Builder builderForValue)

Required. The identifiers for the user. It's possible to provide multiple instances of the same type of data (for example, multiple email addresses). To increase the likelihood of a match, provide as many identifiers as possible. At most 10 userIdentifiers can be provided in a single AudienceMember or Event.

repeated .google.ads.datamanager.v1.UserIdentifier user_identifiers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue UserIdentifier.Builder
Returns
Type Description
UserData.Builder

addUserIdentifiersBuilder()

public UserIdentifier.Builder addUserIdentifiersBuilder()

Required. The identifiers for the user. It's possible to provide multiple instances of the same type of data (for example, multiple email addresses). To increase the likelihood of a match, provide as many identifiers as possible. At most 10 userIdentifiers can be provided in a single AudienceMember or Event.

repeated .google.ads.datamanager.v1.UserIdentifier user_identifiers = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserIdentifier.Builder

addUserIdentifiersBuilder(int index)

public UserIdentifier.Builder addUserIdentifiersBuilder(int index)

Required. The identifiers for the user. It's possible to provide multiple instances of the same type of data (for example, multiple email addresses). To increase the likelihood of a match, provide as many identifiers as possible. At most 10 userIdentifiers can be provided in a single AudienceMember or Event.

repeated .google.ads.datamanager.v1.UserIdentifier user_identifiers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
UserIdentifier.Builder

build()

public UserData build()
Returns
Type Description
UserData

buildPartial()

public UserData buildPartial()
Returns
Type Description
UserData

clear()

public UserData.Builder clear()
Returns
Type Description
UserData.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UserData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UserData.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UserData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UserData.Builder
Overrides

clearUserIdentifiers()

public UserData.Builder clearUserIdentifiers()

Required. The identifiers for the user. It's possible to provide multiple instances of the same type of data (for example, multiple email addresses). To increase the likelihood of a match, provide as many identifiers as possible. At most 10 userIdentifiers can be provided in a single AudienceMember or Event.

repeated .google.ads.datamanager.v1.UserIdentifier user_identifiers = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserData.Builder

clone()

public UserData.Builder clone()
Returns
Type Description
UserData.Builder
Overrides

getDefaultInstanceForType()

public UserData getDefaultInstanceForType()
Returns
Type Description
UserData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getUserIdentifiers(int index)

public UserIdentifier getUserIdentifiers(int index)

Required. The identifiers for the user. It's possible to provide multiple instances of the same type of data (for example, multiple email addresses). To increase the likelihood of a match, provide as many identifiers as possible. At most 10 userIdentifiers can be provided in a single AudienceMember or Event.

repeated .google.ads.datamanager.v1.UserIdentifier user_identifiers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
UserIdentifier

getUserIdentifiersBuilder(int index)

public UserIdentifier.Builder getUserIdentifiersBuilder(int index)

Required. The identifiers for the user. It's possible to provide multiple instances of the same type of data (for example, multiple email addresses). To increase the likelihood of a match, provide as many identifiers as possible. At most 10 userIdentifiers can be provided in a single AudienceMember or Event.

repeated .google.ads.datamanager.v1.UserIdentifier user_identifiers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
UserIdentifier.Builder

getUserIdentifiersBuilderList()

public List<UserIdentifier.Builder> getUserIdentifiersBuilderList()

Required. The identifiers for the user. It's possible to provide multiple instances of the same type of data (for example, multiple email addresses). To increase the likelihood of a match, provide as many identifiers as possible. At most 10 userIdentifiers can be provided in a single AudienceMember or Event.

repeated .google.ads.datamanager.v1.UserIdentifier user_identifiers = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getUserIdentifiersCount()

public int getUserIdentifiersCount()

Required. The identifiers for the user. It's possible to provide multiple instances of the same type of data (for example, multiple email addresses). To increase the likelihood of a match, provide as many identifiers as possible. At most 10 userIdentifiers can be provided in a single AudienceMember or Event.

repeated .google.ads.datamanager.v1.UserIdentifier user_identifiers = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getUserIdentifiersList()

public List<UserIdentifier> getUserIdentifiersList()

Required. The identifiers for the user. It's possible to provide multiple instances of the same type of data (for example, multiple email addresses). To increase the likelihood of a match, provide as many identifiers as possible. At most 10 userIdentifiers can be provided in a single AudienceMember or Event.

repeated .google.ads.datamanager.v1.UserIdentifier user_identifiers = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<UserIdentifier>

getUserIdentifiersOrBuilder(int index)

public UserIdentifierOrBuilder getUserIdentifiersOrBuilder(int index)

Required. The identifiers for the user. It's possible to provide multiple instances of the same type of data (for example, multiple email addresses). To increase the likelihood of a match, provide as many identifiers as possible. At most 10 userIdentifiers can be provided in a single AudienceMember or Event.

repeated .google.ads.datamanager.v1.UserIdentifier user_identifiers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
UserIdentifierOrBuilder

getUserIdentifiersOrBuilderList()

public List<? extends UserIdentifierOrBuilder> getUserIdentifiersOrBuilderList()

Required. The identifiers for the user. It's possible to provide multiple instances of the same type of data (for example, multiple email addresses). To increase the likelihood of a match, provide as many identifiers as possible. At most 10 userIdentifiers can be provided in a single AudienceMember or Event.

repeated .google.ads.datamanager.v1.UserIdentifier user_identifiers = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.ads.datamanager.v1.UserIdentifierOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UserData other)

public UserData.Builder mergeFrom(UserData other)
Parameter
Name Description
other UserData
Returns
Type Description
UserData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UserData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UserData.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UserData.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UserData.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UserData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UserData.Builder
Overrides

removeUserIdentifiers(int index)

public UserData.Builder removeUserIdentifiers(int index)

Required. The identifiers for the user. It's possible to provide multiple instances of the same type of data (for example, multiple email addresses). To increase the likelihood of a match, provide as many identifiers as possible. At most 10 userIdentifiers can be provided in a single AudienceMember or Event.

repeated .google.ads.datamanager.v1.UserIdentifier user_identifiers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
UserData.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UserData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UserData.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UserData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UserData.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UserData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UserData.Builder
Overrides

setUserIdentifiers(int index, UserIdentifier value)

public UserData.Builder setUserIdentifiers(int index, UserIdentifier value)

Required. The identifiers for the user. It's possible to provide multiple instances of the same type of data (for example, multiple email addresses). To increase the likelihood of a match, provide as many identifiers as possible. At most 10 userIdentifiers can be provided in a single AudienceMember or Event.

repeated .google.ads.datamanager.v1.UserIdentifier user_identifiers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value UserIdentifier
Returns
Type Description
UserData.Builder

setUserIdentifiers(int index, UserIdentifier.Builder builderForValue)

public UserData.Builder setUserIdentifiers(int index, UserIdentifier.Builder builderForValue)

Required. The identifiers for the user. It's possible to provide multiple instances of the same type of data (for example, multiple email addresses). To increase the likelihood of a match, provide as many identifiers as possible. At most 10 userIdentifiers can be provided in a single AudienceMember or Event.

repeated .google.ads.datamanager.v1.UserIdentifier user_identifiers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue UserIdentifier.Builder
Returns
Type Description
UserData.Builder