Class ListCreativesResponse.Builder (0.4.0)

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

Response object for ListCreativesRequest containing matching Creative resources.

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 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 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 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 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 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 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 from the specified network.

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

Parameter
Name Description
index int
Returns
Type Description
Creative.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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 from the specified network.

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

Returns
Type Description
ListCreativesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

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

This builder for chaining.

clone()

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

getCreatives(int index)

public Creative getCreatives(int index)

The Creative 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 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 from the specified network.

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

Returns
Type Description
List<Builder>

getCreativesCount()

public int getCreativesCount()

The Creative from the specified network.

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

Returns
Type Description
int

getCreativesList()

public List<Creative> getCreativesList()

The Creative 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 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 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 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(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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCreatives(int index)

public ListCreativesResponse.Builder removeCreatives(int index)

The Creative 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 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 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

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

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

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

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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