Class ListAdUnitsResponse.Builder (0.12.0)

public static final class ListAdUnitsResponse.Builder extends GeneratedMessageV3.Builder<ListAdUnitsResponse.Builder> implements ListAdUnitsResponseOrBuilder

Response object for ListAdUnitsRequest containing matching AdUnit resources.

Protobuf type google.ads.admanager.v1.ListAdUnitsResponse

Static Methods

getDescriptor()

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

Methods

addAdUnits(AdUnit value)

public ListAdUnitsResponse.Builder addAdUnits(AdUnit value)

The AdUnit from the specified network.

repeated .google.ads.admanager.v1.AdUnit ad_units = 1;

Parameter
Name Description
value AdUnit
Returns
Type Description
ListAdUnitsResponse.Builder

addAdUnits(AdUnit.Builder builderForValue)

public ListAdUnitsResponse.Builder addAdUnits(AdUnit.Builder builderForValue)

The AdUnit from the specified network.

repeated .google.ads.admanager.v1.AdUnit ad_units = 1;

Parameter
Name Description
builderForValue AdUnit.Builder
Returns
Type Description
ListAdUnitsResponse.Builder

addAdUnits(int index, AdUnit value)

public ListAdUnitsResponse.Builder addAdUnits(int index, AdUnit value)

The AdUnit from the specified network.

repeated .google.ads.admanager.v1.AdUnit ad_units = 1;

Parameters
Name Description
index int
value AdUnit
Returns
Type Description
ListAdUnitsResponse.Builder

addAdUnits(int index, AdUnit.Builder builderForValue)

public ListAdUnitsResponse.Builder addAdUnits(int index, AdUnit.Builder builderForValue)

The AdUnit from the specified network.

repeated .google.ads.admanager.v1.AdUnit ad_units = 1;

Parameters
Name Description
index int
builderForValue AdUnit.Builder
Returns
Type Description
ListAdUnitsResponse.Builder

addAdUnitsBuilder()

public AdUnit.Builder addAdUnitsBuilder()

The AdUnit from the specified network.

repeated .google.ads.admanager.v1.AdUnit ad_units = 1;

Returns
Type Description
AdUnit.Builder

addAdUnitsBuilder(int index)

public AdUnit.Builder addAdUnitsBuilder(int index)

The AdUnit from the specified network.

repeated .google.ads.admanager.v1.AdUnit ad_units = 1;

Parameter
Name Description
index int
Returns
Type Description
AdUnit.Builder

addAllAdUnits(Iterable<? extends AdUnit> values)

public ListAdUnitsResponse.Builder addAllAdUnits(Iterable<? extends AdUnit> values)

The AdUnit from the specified network.

repeated .google.ads.admanager.v1.AdUnit ad_units = 1;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListAdUnitsResponse build()
Returns
Type Description
ListAdUnitsResponse

buildPartial()

public ListAdUnitsResponse buildPartial()
Returns
Type Description
ListAdUnitsResponse

clear()

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

clearAdUnits()

public ListAdUnitsResponse.Builder clearAdUnits()

The AdUnit from the specified network.

repeated .google.ads.admanager.v1.AdUnit ad_units = 1;

Returns
Type Description
ListAdUnitsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListAdUnitsResponse.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
ListAdUnitsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalSize()

public ListAdUnitsResponse.Builder clearTotalSize()

Total number of AdUnits. 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
ListAdUnitsResponse.Builder

This builder for chaining.

clone()

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

getAdUnits(int index)

public AdUnit getAdUnits(int index)

The AdUnit from the specified network.

repeated .google.ads.admanager.v1.AdUnit ad_units = 1;

Parameter
Name Description
index int
Returns
Type Description
AdUnit

getAdUnitsBuilder(int index)

public AdUnit.Builder getAdUnitsBuilder(int index)

The AdUnit from the specified network.

repeated .google.ads.admanager.v1.AdUnit ad_units = 1;

Parameter
Name Description
index int
Returns
Type Description
AdUnit.Builder

getAdUnitsBuilderList()

public List<AdUnit.Builder> getAdUnitsBuilderList()

The AdUnit from the specified network.

repeated .google.ads.admanager.v1.AdUnit ad_units = 1;

Returns
Type Description
List<Builder>

getAdUnitsCount()

public int getAdUnitsCount()

The AdUnit from the specified network.

repeated .google.ads.admanager.v1.AdUnit ad_units = 1;

Returns
Type Description
int

getAdUnitsList()

public List<AdUnit> getAdUnitsList()

The AdUnit from the specified network.

repeated .google.ads.admanager.v1.AdUnit ad_units = 1;

Returns
Type Description
List<AdUnit>

getAdUnitsOrBuilder(int index)

public AdUnitOrBuilder getAdUnitsOrBuilder(int index)

The AdUnit from the specified network.

repeated .google.ads.admanager.v1.AdUnit ad_units = 1;

Parameter
Name Description
index int
Returns
Type Description
AdUnitOrBuilder

getAdUnitsOrBuilderList()

public List<? extends AdUnitOrBuilder> getAdUnitsOrBuilderList()

The AdUnit from the specified network.

repeated .google.ads.admanager.v1.AdUnit ad_units = 1;

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

getDefaultInstanceForType()

public ListAdUnitsResponse getDefaultInstanceForType()
Returns
Type Description
ListAdUnitsResponse

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 AdUnits. 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(ListAdUnitsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAdUnits(int index)

public ListAdUnitsResponse.Builder removeAdUnits(int index)

The AdUnit from the specified network.

repeated .google.ads.admanager.v1.AdUnit ad_units = 1;

Parameter
Name Description
index int
Returns
Type Description
ListAdUnitsResponse.Builder

setAdUnits(int index, AdUnit value)

public ListAdUnitsResponse.Builder setAdUnits(int index, AdUnit value)

The AdUnit from the specified network.

repeated .google.ads.admanager.v1.AdUnit ad_units = 1;

Parameters
Name Description
index int
value AdUnit
Returns
Type Description
ListAdUnitsResponse.Builder

setAdUnits(int index, AdUnit.Builder builderForValue)

public ListAdUnitsResponse.Builder setAdUnits(int index, AdUnit.Builder builderForValue)

The AdUnit from the specified network.

repeated .google.ads.admanager.v1.AdUnit ad_units = 1;

Parameters
Name Description
index int
builderForValue AdUnit.Builder
Returns
Type Description
ListAdUnitsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListAdUnitsResponse.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
ListAdUnitsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListAdUnitsResponse.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
ListAdUnitsResponse.Builder

This builder for chaining.

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

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

setTotalSize(int value)

public ListAdUnitsResponse.Builder setTotalSize(int value)

Total number of AdUnits. 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
ListAdUnitsResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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