Class ListContentLabelsResponse.Builder (0.39.0)

public static final class ListContentLabelsResponse.Builder extends GeneratedMessageV3.Builder<ListContentLabelsResponse.Builder> implements ListContentLabelsResponseOrBuilder

Response object for ListContentLabelsRequest containing matching ContentLabel objects.

Protobuf type google.ads.admanager.v1.ListContentLabelsResponse

Static Methods

getDescriptor()

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

Methods

addAllContentLabels(Iterable<? extends ContentLabel> values)

public ListContentLabelsResponse.Builder addAllContentLabels(Iterable<? extends ContentLabel> values)

The ContentLabel objects from the specified network.

repeated .google.ads.admanager.v1.ContentLabel content_labels = 1;

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

addContentLabels(ContentLabel value)

public ListContentLabelsResponse.Builder addContentLabels(ContentLabel value)

The ContentLabel objects from the specified network.

repeated .google.ads.admanager.v1.ContentLabel content_labels = 1;

Parameter
Name Description
value ContentLabel
Returns
Type Description
ListContentLabelsResponse.Builder

addContentLabels(ContentLabel.Builder builderForValue)

public ListContentLabelsResponse.Builder addContentLabels(ContentLabel.Builder builderForValue)

The ContentLabel objects from the specified network.

repeated .google.ads.admanager.v1.ContentLabel content_labels = 1;

Parameter
Name Description
builderForValue ContentLabel.Builder
Returns
Type Description
ListContentLabelsResponse.Builder

addContentLabels(int index, ContentLabel value)

public ListContentLabelsResponse.Builder addContentLabels(int index, ContentLabel value)

The ContentLabel objects from the specified network.

repeated .google.ads.admanager.v1.ContentLabel content_labels = 1;

Parameters
Name Description
index int
value ContentLabel
Returns
Type Description
ListContentLabelsResponse.Builder

addContentLabels(int index, ContentLabel.Builder builderForValue)

public ListContentLabelsResponse.Builder addContentLabels(int index, ContentLabel.Builder builderForValue)

The ContentLabel objects from the specified network.

repeated .google.ads.admanager.v1.ContentLabel content_labels = 1;

Parameters
Name Description
index int
builderForValue ContentLabel.Builder
Returns
Type Description
ListContentLabelsResponse.Builder

addContentLabelsBuilder()

public ContentLabel.Builder addContentLabelsBuilder()

The ContentLabel objects from the specified network.

repeated .google.ads.admanager.v1.ContentLabel content_labels = 1;

Returns
Type Description
ContentLabel.Builder

addContentLabelsBuilder(int index)

public ContentLabel.Builder addContentLabelsBuilder(int index)

The ContentLabel objects from the specified network.

repeated .google.ads.admanager.v1.ContentLabel content_labels = 1;

Parameter
Name Description
index int
Returns
Type Description
ContentLabel.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListContentLabelsResponse build()
Returns
Type Description
ListContentLabelsResponse

buildPartial()

public ListContentLabelsResponse buildPartial()
Returns
Type Description
ListContentLabelsResponse

clear()

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

clearContentLabels()

public ListContentLabelsResponse.Builder clearContentLabels()

The ContentLabel objects from the specified network.

repeated .google.ads.admanager.v1.ContentLabel content_labels = 1;

Returns
Type Description
ListContentLabelsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalSize()

public ListContentLabelsResponse.Builder clearTotalSize()

Total number of ContentLabel objects. 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
ListContentLabelsResponse.Builder

This builder for chaining.

clone()

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

getContentLabels(int index)

public ContentLabel getContentLabels(int index)

The ContentLabel objects from the specified network.

repeated .google.ads.admanager.v1.ContentLabel content_labels = 1;

Parameter
Name Description
index int
Returns
Type Description
ContentLabel

getContentLabelsBuilder(int index)

public ContentLabel.Builder getContentLabelsBuilder(int index)

The ContentLabel objects from the specified network.

repeated .google.ads.admanager.v1.ContentLabel content_labels = 1;

Parameter
Name Description
index int
Returns
Type Description
ContentLabel.Builder

getContentLabelsBuilderList()

public List<ContentLabel.Builder> getContentLabelsBuilderList()

The ContentLabel objects from the specified network.

repeated .google.ads.admanager.v1.ContentLabel content_labels = 1;

Returns
Type Description
List<Builder>

getContentLabelsCount()

public int getContentLabelsCount()

The ContentLabel objects from the specified network.

repeated .google.ads.admanager.v1.ContentLabel content_labels = 1;

Returns
Type Description
int

getContentLabelsList()

public List<ContentLabel> getContentLabelsList()

The ContentLabel objects from the specified network.

repeated .google.ads.admanager.v1.ContentLabel content_labels = 1;

Returns
Type Description
List<ContentLabel>

getContentLabelsOrBuilder(int index)

public ContentLabelOrBuilder getContentLabelsOrBuilder(int index)

The ContentLabel objects from the specified network.

repeated .google.ads.admanager.v1.ContentLabel content_labels = 1;

Parameter
Name Description
index int
Returns
Type Description
ContentLabelOrBuilder

getContentLabelsOrBuilderList()

public List<? extends ContentLabelOrBuilder> getContentLabelsOrBuilderList()

The ContentLabel objects from the specified network.

repeated .google.ads.admanager.v1.ContentLabel content_labels = 1;

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

getDefaultInstanceForType()

public ListContentLabelsResponse getDefaultInstanceForType()
Returns
Type Description
ListContentLabelsResponse

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 ContentLabel objects. 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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListContentLabelsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeContentLabels(int index)

public ListContentLabelsResponse.Builder removeContentLabels(int index)

The ContentLabel objects from the specified network.

repeated .google.ads.admanager.v1.ContentLabel content_labels = 1;

Parameter
Name Description
index int
Returns
Type Description
ListContentLabelsResponse.Builder

setContentLabels(int index, ContentLabel value)

public ListContentLabelsResponse.Builder setContentLabels(int index, ContentLabel value)

The ContentLabel objects from the specified network.

repeated .google.ads.admanager.v1.ContentLabel content_labels = 1;

Parameters
Name Description
index int
value ContentLabel
Returns
Type Description
ListContentLabelsResponse.Builder

setContentLabels(int index, ContentLabel.Builder builderForValue)

public ListContentLabelsResponse.Builder setContentLabels(int index, ContentLabel.Builder builderForValue)

The ContentLabel objects from the specified network.

repeated .google.ads.admanager.v1.ContentLabel content_labels = 1;

Parameters
Name Description
index int
builderForValue ContentLabel.Builder
Returns
Type Description
ListContentLabelsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

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

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

setTotalSize(int value)

public ListContentLabelsResponse.Builder setTotalSize(int value)

Total number of ContentLabel objects. 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
ListContentLabelsResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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