Class ListAdUnitSizesResponse.Builder (0.11.0)

public static final class ListAdUnitSizesResponse.Builder extends GeneratedMessageV3.Builder<ListAdUnitSizesResponse.Builder> implements ListAdUnitSizesResponseOrBuilder

Response object for ListAdUnitSizesRequest containing matching AdUnitSizes.

Protobuf type google.ads.admanager.v1.ListAdUnitSizesResponse

Static Methods

getDescriptor()

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

Methods

addAdUnitSizes(AdUnitSize value)

public ListAdUnitSizesResponse.Builder addAdUnitSizes(AdUnitSize value)

The AdUnitSizes from the specified network.

repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1;

Parameter
Name Description
value AdUnitSize
Returns
Type Description
ListAdUnitSizesResponse.Builder

addAdUnitSizes(AdUnitSize.Builder builderForValue)

public ListAdUnitSizesResponse.Builder addAdUnitSizes(AdUnitSize.Builder builderForValue)

The AdUnitSizes from the specified network.

repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1;

Parameter
Name Description
builderForValue AdUnitSize.Builder
Returns
Type Description
ListAdUnitSizesResponse.Builder

addAdUnitSizes(int index, AdUnitSize value)

public ListAdUnitSizesResponse.Builder addAdUnitSizes(int index, AdUnitSize value)

The AdUnitSizes from the specified network.

repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1;

Parameters
Name Description
index int
value AdUnitSize
Returns
Type Description
ListAdUnitSizesResponse.Builder

addAdUnitSizes(int index, AdUnitSize.Builder builderForValue)

public ListAdUnitSizesResponse.Builder addAdUnitSizes(int index, AdUnitSize.Builder builderForValue)

The AdUnitSizes from the specified network.

repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1;

Parameters
Name Description
index int
builderForValue AdUnitSize.Builder
Returns
Type Description
ListAdUnitSizesResponse.Builder

addAdUnitSizesBuilder()

public AdUnitSize.Builder addAdUnitSizesBuilder()

The AdUnitSizes from the specified network.

repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1;

Returns
Type Description
AdUnitSize.Builder

addAdUnitSizesBuilder(int index)

public AdUnitSize.Builder addAdUnitSizesBuilder(int index)

The AdUnitSizes from the specified network.

repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1;

Parameter
Name Description
index int
Returns
Type Description
AdUnitSize.Builder

addAllAdUnitSizes(Iterable<? extends AdUnitSize> values)

public ListAdUnitSizesResponse.Builder addAllAdUnitSizes(Iterable<? extends AdUnitSize> values)

The AdUnitSizes from the specified network.

repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListAdUnitSizesResponse build()
Returns
Type Description
ListAdUnitSizesResponse

buildPartial()

public ListAdUnitSizesResponse buildPartial()
Returns
Type Description
ListAdUnitSizesResponse

clear()

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

clearAdUnitSizes()

public ListAdUnitSizesResponse.Builder clearAdUnitSizes()

The AdUnitSizes from the specified network.

repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1;

Returns
Type Description
ListAdUnitSizesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalSize()

public ListAdUnitSizesResponse.Builder clearTotalSize()

Total number of AdUnitSizes. 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
ListAdUnitSizesResponse.Builder

This builder for chaining.

clone()

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

getAdUnitSizes(int index)

public AdUnitSize getAdUnitSizes(int index)

The AdUnitSizes from the specified network.

repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1;

Parameter
Name Description
index int
Returns
Type Description
AdUnitSize

getAdUnitSizesBuilder(int index)

public AdUnitSize.Builder getAdUnitSizesBuilder(int index)

The AdUnitSizes from the specified network.

repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1;

Parameter
Name Description
index int
Returns
Type Description
AdUnitSize.Builder

getAdUnitSizesBuilderList()

public List<AdUnitSize.Builder> getAdUnitSizesBuilderList()

The AdUnitSizes from the specified network.

repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1;

Returns
Type Description
List<Builder>

getAdUnitSizesCount()

public int getAdUnitSizesCount()

The AdUnitSizes from the specified network.

repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1;

Returns
Type Description
int

getAdUnitSizesList()

public List<AdUnitSize> getAdUnitSizesList()

The AdUnitSizes from the specified network.

repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1;

Returns
Type Description
List<AdUnitSize>

getAdUnitSizesOrBuilder(int index)

public AdUnitSizeOrBuilder getAdUnitSizesOrBuilder(int index)

The AdUnitSizes from the specified network.

repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1;

Parameter
Name Description
index int
Returns
Type Description
AdUnitSizeOrBuilder

getAdUnitSizesOrBuilderList()

public List<? extends AdUnitSizeOrBuilder> getAdUnitSizesOrBuilderList()

The AdUnitSizes from the specified network.

repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1;

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

getDefaultInstanceForType()

public ListAdUnitSizesResponse getDefaultInstanceForType()
Returns
Type Description
ListAdUnitSizesResponse

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 AdUnitSizes. 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(ListAdUnitSizesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAdUnitSizes(int index)

public ListAdUnitSizesResponse.Builder removeAdUnitSizes(int index)

The AdUnitSizes from the specified network.

repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1;

Parameter
Name Description
index int
Returns
Type Description
ListAdUnitSizesResponse.Builder

setAdUnitSizes(int index, AdUnitSize value)

public ListAdUnitSizesResponse.Builder setAdUnitSizes(int index, AdUnitSize value)

The AdUnitSizes from the specified network.

repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1;

Parameters
Name Description
index int
value AdUnitSize
Returns
Type Description
ListAdUnitSizesResponse.Builder

setAdUnitSizes(int index, AdUnitSize.Builder builderForValue)

public ListAdUnitSizesResponse.Builder setAdUnitSizes(int index, AdUnitSize.Builder builderForValue)

The AdUnitSizes from the specified network.

repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1;

Parameters
Name Description
index int
builderForValue AdUnitSize.Builder
Returns
Type Description
ListAdUnitSizesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

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

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

setTotalSize(int value)

public ListAdUnitSizesResponse.Builder setTotalSize(int value)

Total number of AdUnitSizes. 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
ListAdUnitSizesResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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