Class ListCreativesResponse.Builder (0.62.0)

public static final class ListCreativesResponse.Builder extends GeneratedMessage.Builder<ListCreativesResponse.Builder> implements ListCreativesResponseOrBuilder

Response object for ListCreativesRequest containing matching Creative objects.

Protobuf type google.ads.admanager.v1.ListCreativesResponse

Static Methods

getDescriptor()

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

Methods

addAllCreatives(Iterable<? extends Creative> values)

public ListCreativesResponse.Builder addAllCreatives(Iterable<? extends Creative> values)

The Creative objects from the specified network.

repeated .google.ads.admanager.v1.Creative creatives = 1;

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

addCreatives(Creative value)

public ListCreativesResponse.Builder addCreatives(Creative value)

The Creative objects from the specified network.

repeated .google.ads.admanager.v1.Creative creatives = 1;

Parameter
Name Description
value Creative
Returns
Type Description
ListCreativesResponse.Builder

addCreatives(Creative.Builder builderForValue)

public ListCreativesResponse.Builder addCreatives(Creative.Builder builderForValue)

The Creative objects from the specified network.

repeated .google.ads.admanager.v1.Creative creatives = 1;

Parameter
Name Description
builderForValue Creative.Builder
Returns
Type Description
ListCreativesResponse.Builder

addCreatives(int index, Creative value)

public ListCreativesResponse.Builder addCreatives(int index, Creative value)

The Creative objects from the specified network.

repeated .google.ads.admanager.v1.Creative creatives = 1;

Parameters
Name Description
index int
value Creative
Returns
Type Description
ListCreativesResponse.Builder

addCreatives(int index, Creative.Builder builderForValue)

public ListCreativesResponse.Builder addCreatives(int index, Creative.Builder builderForValue)

The Creative objects from the specified network.

repeated .google.ads.admanager.v1.Creative creatives = 1;

Parameters
Name Description
index int
builderForValue Creative.Builder
Returns
Type Description
ListCreativesResponse.Builder

addCreativesBuilder()

public Creative.Builder addCreativesBuilder()

The Creative objects from the specified network.

repeated .google.ads.admanager.v1.Creative creatives = 1;

Returns
Type Description
Creative.Builder

addCreativesBuilder(int index)

public Creative.Builder addCreativesBuilder(int index)

The Creative objects from the specified network.

repeated .google.ads.admanager.v1.Creative creatives = 1;

Parameter
Name Description
index int
Returns
Type Description
Creative.Builder

build()

public ListCreativesResponse build()
Returns
Type Description
ListCreativesResponse

buildPartial()

public ListCreativesResponse buildPartial()
Returns
Type Description
ListCreativesResponse

clear()

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

clearCreatives()

public ListCreativesResponse.Builder clearCreatives()

The Creative objects from the specified network.

repeated .google.ads.admanager.v1.Creative creatives = 1;

Returns
Type Description
ListCreativesResponse.Builder

clearNextPageToken()

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

This builder for chaining.

clearTotalSize()

public ListCreativesResponse.Builder clearTotalSize()

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

total_size won't 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
ListCreativesResponse.Builder

This builder for chaining.

getCreatives(int index)

public Creative getCreatives(int index)

The Creative objects from the specified network.

repeated .google.ads.admanager.v1.Creative creatives = 1;

Parameter
Name Description
index int
Returns
Type Description
Creative

getCreativesBuilder(int index)

public Creative.Builder getCreativesBuilder(int index)

The Creative objects from the specified network.

repeated .google.ads.admanager.v1.Creative creatives = 1;

Parameter
Name Description
index int
Returns
Type Description
Creative.Builder

getCreativesBuilderList()

public List<Creative.Builder> getCreativesBuilderList()

The Creative objects from the specified network.

repeated .google.ads.admanager.v1.Creative creatives = 1;

Returns
Type Description
List<Builder>

getCreativesCount()

public int getCreativesCount()

The Creative objects from the specified network.

repeated .google.ads.admanager.v1.Creative creatives = 1;

Returns
Type Description
int

getCreativesList()

public List<Creative> getCreativesList()

The Creative objects from the specified network.

repeated .google.ads.admanager.v1.Creative creatives = 1;

Returns
Type Description
List<Creative>

getCreativesOrBuilder(int index)

public CreativeOrBuilder getCreativesOrBuilder(int index)

The Creative objects from the specified network.

repeated .google.ads.admanager.v1.Creative creatives = 1;

Parameter
Name Description
index int
Returns
Type Description
CreativeOrBuilder

getCreativesOrBuilderList()

public List<? extends CreativeOrBuilder> getCreativesOrBuilderList()

The Creative objects from the specified network.

repeated .google.ads.admanager.v1.Creative creatives = 1;

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

getDefaultInstanceForType()

public ListCreativesResponse getDefaultInstanceForType()
Returns
Type Description
ListCreativesResponse

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 Creatives. If a filter was included in the request, this reflects the total number after the filtering is applied.

total_size won't 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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListCreativesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeCreatives(int index)

public ListCreativesResponse.Builder removeCreatives(int index)

The Creative objects from the specified network.

repeated .google.ads.admanager.v1.Creative creatives = 1;

Parameter
Name Description
index int
Returns
Type Description
ListCreativesResponse.Builder

setCreatives(int index, Creative value)

public ListCreativesResponse.Builder setCreatives(int index, Creative value)

The Creative objects from the specified network.

repeated .google.ads.admanager.v1.Creative creatives = 1;

Parameters
Name Description
index int
value Creative
Returns
Type Description
ListCreativesResponse.Builder

setCreatives(int index, Creative.Builder builderForValue)

public ListCreativesResponse.Builder setCreatives(int index, Creative.Builder builderForValue)

The Creative objects from the specified network.

repeated .google.ads.admanager.v1.Creative creatives = 1;

Parameters
Name Description
index int
builderForValue Creative.Builder
Returns
Type Description
ListCreativesResponse.Builder

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

setTotalSize(int value)

public ListCreativesResponse.Builder setTotalSize(int value)

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

total_size won't 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
ListCreativesResponse.Builder

This builder for chaining.