Class PartnerProvidedIdData.Builder (0.20.0)

public static final class PartnerProvidedIdData.Builder extends GeneratedMessage.Builder<PartnerProvidedIdData.Builder> implements PartnerProvidedIdDataOrBuilder

Partner-provided data holding the partner-provided identifiers. At least one partner-provided identifier is required.

Protobuf type google.ads.datamanager.v1.PartnerProvidedIdData

Static Methods

getDescriptor()

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

Methods

addAllPartnerProvidedIds(Iterable<String> values)

public PartnerProvidedIdData.Builder addAllPartnerProvidedIds(Iterable<String> values)

Required. The list of partner-provided identifiers.

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

Parameter
Name Description
values Iterable<String>

The partnerProvidedIds to add.

Returns
Type Description
PartnerProvidedIdData.Builder

This builder for chaining.

addPartnerProvidedIds(String value)

public PartnerProvidedIdData.Builder addPartnerProvidedIds(String value)

Required. The list of partner-provided identifiers.

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

Parameter
Name Description
value String

The partnerProvidedIds to add.

Returns
Type Description
PartnerProvidedIdData.Builder

This builder for chaining.

addPartnerProvidedIdsBytes(ByteString value)

public PartnerProvidedIdData.Builder addPartnerProvidedIdsBytes(ByteString value)

Required. The list of partner-provided identifiers.

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

Parameter
Name Description
value ByteString

The bytes of the partnerProvidedIds to add.

Returns
Type Description
PartnerProvidedIdData.Builder

This builder for chaining.

build()

public PartnerProvidedIdData build()
Returns
Type Description
PartnerProvidedIdData

buildPartial()

public PartnerProvidedIdData buildPartial()
Returns
Type Description
PartnerProvidedIdData

clear()

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

clearPartnerProvidedIds()

public PartnerProvidedIdData.Builder clearPartnerProvidedIds()

Required. The list of partner-provided identifiers.

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

Returns
Type Description
PartnerProvidedIdData.Builder

This builder for chaining.

getDefaultInstanceForType()

public PartnerProvidedIdData getDefaultInstanceForType()
Returns
Type Description
PartnerProvidedIdData

getDescriptorForType()

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

getPartnerProvidedIds(int index)

public String getPartnerProvidedIds(int index)

Required. The list of partner-provided identifiers.

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The partnerProvidedIds at the given index.

getPartnerProvidedIdsBytes(int index)

public ByteString getPartnerProvidedIdsBytes(int index)

Required. The list of partner-provided identifiers.

repeated string partner_provided_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 partnerProvidedIds at the given index.

getPartnerProvidedIdsCount()

public int getPartnerProvidedIdsCount()

Required. The list of partner-provided identifiers.

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

Returns
Type Description
int

The count of partnerProvidedIds.

getPartnerProvidedIdsList()

public ProtocolStringList getPartnerProvidedIdsList()

Required. The list of partner-provided identifiers.

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

Returns
Type Description
ProtocolStringList

A list containing the partnerProvidedIds.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PartnerProvidedIdData other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setPartnerProvidedIds(int index, String value)

public PartnerProvidedIdData.Builder setPartnerProvidedIds(int index, String value)

Required. The list of partner-provided identifiers.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The partnerProvidedIds to set.

Returns
Type Description
PartnerProvidedIdData.Builder

This builder for chaining.