Class PpidData.Builder (0.8.0)

public static final class PpidData.Builder extends GeneratedMessage.Builder<PpidData.Builder> implements PpidDataOrBuilder

Publisher provided identifiers data holding the ppids. At least one ppid is required.

This feature is only available to data partners.

Protobuf type google.ads.datamanager.v1.PpidData

Implements

PpidDataOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllPpids(Iterable<String> values)

public PpidData.Builder addAllPpids(Iterable<String> values)

Required. The list of publisher provided identifiers for a user.

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

Parameter
Name Description
values Iterable<String>

The ppids to add.

Returns
Type Description
PpidData.Builder

This builder for chaining.

addPpids(String value)

public PpidData.Builder addPpids(String value)

Required. The list of publisher provided identifiers for a user.

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

Parameter
Name Description
value String

The ppids to add.

Returns
Type Description
PpidData.Builder

This builder for chaining.

addPpidsBytes(ByteString value)

public PpidData.Builder addPpidsBytes(ByteString value)

Required. The list of publisher provided identifiers for a user.

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

Parameter
Name Description
value ByteString

The bytes of the ppids to add.

Returns
Type Description
PpidData.Builder

This builder for chaining.

build()

public PpidData build()
Returns
Type Description
PpidData

buildPartial()

public PpidData buildPartial()
Returns
Type Description
PpidData

clear()

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

clearPpids()

public PpidData.Builder clearPpids()

Required. The list of publisher provided identifiers for a user.

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

Returns
Type Description
PpidData.Builder

This builder for chaining.

getDefaultInstanceForType()

public PpidData getDefaultInstanceForType()
Returns
Type Description
PpidData

getDescriptorForType()

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

getPpids(int index)

public String getPpids(int index)

Required. The list of publisher provided identifiers for a user.

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The ppids at the given index.

getPpidsBytes(int index)

public ByteString getPpidsBytes(int index)

Required. The list of publisher provided identifiers for a user.

repeated string ppids = 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 ppids at the given index.

getPpidsCount()

public int getPpidsCount()

Required. The list of publisher provided identifiers for a user.

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

Returns
Type Description
int

The count of ppids.

getPpidsList()

public ProtocolStringList getPpidsList()

Required. The list of publisher provided identifiers for a user.

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

Returns
Type Description
ProtocolStringList

A list containing the ppids.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PpidData other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setPpids(int index, String value)

public PpidData.Builder setPpids(int index, String value)

Required. The list of publisher provided identifiers for a user.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The ppids to set.

Returns
Type Description
PpidData.Builder

This builder for chaining.