Class ListAdPartnersResponse.Builder (0.7.0)

public static final class ListAdPartnersResponse.Builder extends GeneratedMessageV3.Builder<ListAdPartnersResponse.Builder> implements ListAdPartnersResponseOrBuilder

Response object for ListAdPartnersRequest containing matching AdPartner resources.

Protobuf type google.ads.admanager.v1.ListAdPartnersResponse

Static Methods

getDescriptor()

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

Methods

addAdPartners(AdPartner value)

public ListAdPartnersResponse.Builder addAdPartners(AdPartner value)

The AdPartner from the specified network.

repeated .google.ads.admanager.v1.AdPartner ad_partners = 1;

Parameter
Name Description
value AdPartner
Returns
Type Description
ListAdPartnersResponse.Builder

addAdPartners(AdPartner.Builder builderForValue)

public ListAdPartnersResponse.Builder addAdPartners(AdPartner.Builder builderForValue)

The AdPartner from the specified network.

repeated .google.ads.admanager.v1.AdPartner ad_partners = 1;

Parameter
Name Description
builderForValue AdPartner.Builder
Returns
Type Description
ListAdPartnersResponse.Builder

addAdPartners(int index, AdPartner value)

public ListAdPartnersResponse.Builder addAdPartners(int index, AdPartner value)

The AdPartner from the specified network.

repeated .google.ads.admanager.v1.AdPartner ad_partners = 1;

Parameters
Name Description
index int
value AdPartner
Returns
Type Description
ListAdPartnersResponse.Builder

addAdPartners(int index, AdPartner.Builder builderForValue)

public ListAdPartnersResponse.Builder addAdPartners(int index, AdPartner.Builder builderForValue)

The AdPartner from the specified network.

repeated .google.ads.admanager.v1.AdPartner ad_partners = 1;

Parameters
Name Description
index int
builderForValue AdPartner.Builder
Returns
Type Description
ListAdPartnersResponse.Builder

addAdPartnersBuilder()

public AdPartner.Builder addAdPartnersBuilder()

The AdPartner from the specified network.

repeated .google.ads.admanager.v1.AdPartner ad_partners = 1;

Returns
Type Description
AdPartner.Builder

addAdPartnersBuilder(int index)

public AdPartner.Builder addAdPartnersBuilder(int index)

The AdPartner from the specified network.

repeated .google.ads.admanager.v1.AdPartner ad_partners = 1;

Parameter
Name Description
index int
Returns
Type Description
AdPartner.Builder

addAllAdPartners(Iterable<? extends AdPartner> values)

public ListAdPartnersResponse.Builder addAllAdPartners(Iterable<? extends AdPartner> values)

The AdPartner from the specified network.

repeated .google.ads.admanager.v1.AdPartner ad_partners = 1;

Parameter
Name Description
values Iterable<? extends com.google.ads.admanager.v1.AdPartner>
Returns
Type Description
ListAdPartnersResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListAdPartnersResponse build()
Returns
Type Description
ListAdPartnersResponse

buildPartial()

public ListAdPartnersResponse buildPartial()
Returns
Type Description
ListAdPartnersResponse

clear()

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

clearAdPartners()

public ListAdPartnersResponse.Builder clearAdPartners()

The AdPartner from the specified network.

repeated .google.ads.admanager.v1.AdPartner ad_partners = 1;

Returns
Type Description
ListAdPartnersResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListAdPartnersResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ListAdPartnersResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalSize()

public ListAdPartnersResponse.Builder clearTotalSize()

Total number of AdPartners. If a filter was included in the request, this reflects the total number after the filtering is applied.

total_size will not be calculated in the response unless it has been included in a response field mask. The response field mask can be provided to the method by using the URL parameter $fields or fields, or by using the HTTP/gRPC header X-Goog-FieldMask.

For more information, see https://developers.google.com/ad-manager/api/beta/field-masks

int32 total_size = 3;

Returns
Type Description
ListAdPartnersResponse.Builder

This builder for chaining.

clone()

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

getAdPartners(int index)

public AdPartner getAdPartners(int index)

The AdPartner from the specified network.

repeated .google.ads.admanager.v1.AdPartner ad_partners = 1;

Parameter
Name Description
index int
Returns
Type Description
AdPartner

getAdPartnersBuilder(int index)

public AdPartner.Builder getAdPartnersBuilder(int index)

The AdPartner from the specified network.

repeated .google.ads.admanager.v1.AdPartner ad_partners = 1;

Parameter
Name Description
index int
Returns
Type Description
AdPartner.Builder

getAdPartnersBuilderList()

public List<AdPartner.Builder> getAdPartnersBuilderList()

The AdPartner from the specified network.

repeated .google.ads.admanager.v1.AdPartner ad_partners = 1;

Returns
Type Description
List<Builder>

getAdPartnersCount()

public int getAdPartnersCount()

The AdPartner from the specified network.

repeated .google.ads.admanager.v1.AdPartner ad_partners = 1;

Returns
Type Description
int

getAdPartnersList()

public List<AdPartner> getAdPartnersList()

The AdPartner from the specified network.

repeated .google.ads.admanager.v1.AdPartner ad_partners = 1;

Returns
Type Description
List<AdPartner>

getAdPartnersOrBuilder(int index)

public AdPartnerOrBuilder getAdPartnersOrBuilder(int index)

The AdPartner from the specified network.

repeated .google.ads.admanager.v1.AdPartner ad_partners = 1;

Parameter
Name Description
index int
Returns
Type Description
AdPartnerOrBuilder

getAdPartnersOrBuilderList()

public List<? extends AdPartnerOrBuilder> getAdPartnersOrBuilderList()

The AdPartner from the specified network.

repeated .google.ads.admanager.v1.AdPartner ad_partners = 1;

Returns
Type Description
List<? extends com.google.ads.admanager.v1.AdPartnerOrBuilder>

getDefaultInstanceForType()

public ListAdPartnersResponse getDefaultInstanceForType()
Returns
Type Description
ListAdPartnersResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getTotalSize()

public int getTotalSize()

Total number of AdPartners. If a filter was included in the request, this reflects the total number after the filtering is applied.

total_size will not be calculated in the response unless it has been included in a response field mask. The response field mask can be provided to the method by using the URL parameter $fields or fields, or by using the HTTP/gRPC header X-Goog-FieldMask.

For more information, see https://developers.google.com/ad-manager/api/beta/field-masks

int32 total_size = 3;

Returns
Type Description
int

The totalSize.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListAdPartnersResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAdPartners(int index)

public ListAdPartnersResponse.Builder removeAdPartners(int index)

The AdPartner from the specified network.

repeated .google.ads.admanager.v1.AdPartner ad_partners = 1;

Parameter
Name Description
index int
Returns
Type Description
ListAdPartnersResponse.Builder

setAdPartners(int index, AdPartner value)

public ListAdPartnersResponse.Builder setAdPartners(int index, AdPartner value)

The AdPartner from the specified network.

repeated .google.ads.admanager.v1.AdPartner ad_partners = 1;

Parameters
Name Description
index int
value AdPartner
Returns
Type Description
ListAdPartnersResponse.Builder

setAdPartners(int index, AdPartner.Builder builderForValue)

public ListAdPartnersResponse.Builder setAdPartners(int index, AdPartner.Builder builderForValue)

The AdPartner from the specified network.

repeated .google.ads.admanager.v1.AdPartner ad_partners = 1;

Parameters
Name Description
index int
builderForValue AdPartner.Builder
Returns
Type Description
ListAdPartnersResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListAdPartnersResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListAdPartnersResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListAdPartnersResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListAdPartnersResponse.Builder

This builder for chaining.

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

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

setTotalSize(int value)

public ListAdPartnersResponse.Builder setTotalSize(int value)

Total number of AdPartners. If a filter was included in the request, this reflects the total number after the filtering is applied.

total_size will not be calculated in the response unless it has been included in a response field mask. The response field mask can be provided to the method by using the URL parameter $fields or fields, or by using the HTTP/gRPC header X-Goog-FieldMask.

For more information, see https://developers.google.com/ad-manager/api/beta/field-masks

int32 total_size = 3;

Parameter
Name Description
value int

The totalSize to set.

Returns
Type Description
ListAdPartnersResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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