Class MobileData.Builder (0.6.0)

public static final class MobileData.Builder extends GeneratedMessage.Builder<MobileData.Builder> implements MobileDataOrBuilder

Mobile IDs for the audience. At least one mobile ID is required.

Protobuf type google.ads.datamanager.v1.MobileData

Implements

MobileDataOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllMobileIds(Iterable<String> values)

public MobileData.Builder addAllMobileIds(Iterable<String> values)

Required. The list of mobile device IDs (advertising ID/IDFA). At most 10 mobileIds can be provided in a single AudienceMember.

repeated string mobile_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The mobileIds to add.

Returns
Type Description
MobileData.Builder

This builder for chaining.

addMobileIds(String value)

public MobileData.Builder addMobileIds(String value)

Required. The list of mobile device IDs (advertising ID/IDFA). At most 10 mobileIds can be provided in a single AudienceMember.

repeated string mobile_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The mobileIds to add.

Returns
Type Description
MobileData.Builder

This builder for chaining.

addMobileIdsBytes(ByteString value)

public MobileData.Builder addMobileIdsBytes(ByteString value)

Required. The list of mobile device IDs (advertising ID/IDFA). At most 10 mobileIds can be provided in a single AudienceMember.

repeated string mobile_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the mobileIds to add.

Returns
Type Description
MobileData.Builder

This builder for chaining.

build()

public MobileData build()
Returns
Type Description
MobileData

buildPartial()

public MobileData buildPartial()
Returns
Type Description
MobileData

clear()

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

clearMobileIds()

public MobileData.Builder clearMobileIds()

Required. The list of mobile device IDs (advertising ID/IDFA). At most 10 mobileIds can be provided in a single AudienceMember.

repeated string mobile_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MobileData.Builder

This builder for chaining.

getDefaultInstanceForType()

public MobileData getDefaultInstanceForType()
Returns
Type Description
MobileData

getDescriptorForType()

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

getMobileIds(int index)

public String getMobileIds(int index)

Required. The list of mobile device IDs (advertising ID/IDFA). At most 10 mobileIds can be provided in a single AudienceMember.

repeated string mobile_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The mobileIds at the given index.

getMobileIdsBytes(int index)

public ByteString getMobileIdsBytes(int index)

Required. The list of mobile device IDs (advertising ID/IDFA). At most 10 mobileIds can be provided in a single AudienceMember.

repeated string mobile_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the mobileIds at the given index.

getMobileIdsCount()

public int getMobileIdsCount()

Required. The list of mobile device IDs (advertising ID/IDFA). At most 10 mobileIds can be provided in a single AudienceMember.

repeated string mobile_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of mobileIds.

getMobileIdsList()

public ProtocolStringList getMobileIdsList()

Required. The list of mobile device IDs (advertising ID/IDFA). At most 10 mobileIds can be provided in a single AudienceMember.

repeated string mobile_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the mobileIds.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MobileData other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setMobileIds(int index, String value)

public MobileData.Builder setMobileIds(int index, String value)

Required. The list of mobile device IDs (advertising ID/IDFA). At most 10 mobileIds can be provided in a single AudienceMember.

repeated string mobile_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The mobileIds to set.

Returns
Type Description
MobileData.Builder

This builder for chaining.