public static final class MobileData.Builder extends GeneratedMessage.Builder<MobileData.Builder> implements MobileDataOrBuilderMobile IDs for the audience. At least one mobile ID is required.
Protobuf type google.ads.datamanager.v1.MobileData
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > MobileData.BuilderImplements
MobileDataOrBuilderStatic 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 |
StringThe 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 |
ByteStringThe 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 |
|
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 |
|
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 |
intThe 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 |
intThe 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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public MobileData.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
MobileData.Builder |
|
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 |
intThe index to set the value at. |
value |
StringThe mobileIds to set. |
| Returns | |
|---|---|
| Type | Description |
MobileData.Builder |
This builder for chaining. |