Class ListLabelsResponse.Builder (0.52.0)

public static final class ListLabelsResponse.Builder extends GeneratedMessage.Builder<ListLabelsResponse.Builder> implements ListLabelsResponseOrBuilder

Response object for ListLabelsRequest containing matching Label objects.

Protobuf type google.ads.admanager.v1.ListLabelsResponse

Static Methods

getDescriptor()

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

Methods

addAllLabels(Iterable<? extends Label> values)

public ListLabelsResponse.Builder addAllLabels(Iterable<? extends Label> values)

The Label objects from the specified network.

repeated .google.ads.admanager.v1.Label labels = 1;

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

addLabels(Label value)

public ListLabelsResponse.Builder addLabels(Label value)

The Label objects from the specified network.

repeated .google.ads.admanager.v1.Label labels = 1;

Parameter
Name Description
value Label
Returns
Type Description
ListLabelsResponse.Builder

addLabels(Label.Builder builderForValue)

public ListLabelsResponse.Builder addLabels(Label.Builder builderForValue)

The Label objects from the specified network.

repeated .google.ads.admanager.v1.Label labels = 1;

Parameter
Name Description
builderForValue Label.Builder
Returns
Type Description
ListLabelsResponse.Builder

addLabels(int index, Label value)

public ListLabelsResponse.Builder addLabels(int index, Label value)

The Label objects from the specified network.

repeated .google.ads.admanager.v1.Label labels = 1;

Parameters
Name Description
index int
value Label
Returns
Type Description
ListLabelsResponse.Builder

addLabels(int index, Label.Builder builderForValue)

public ListLabelsResponse.Builder addLabels(int index, Label.Builder builderForValue)

The Label objects from the specified network.

repeated .google.ads.admanager.v1.Label labels = 1;

Parameters
Name Description
index int
builderForValue Label.Builder
Returns
Type Description
ListLabelsResponse.Builder

addLabelsBuilder()

public Label.Builder addLabelsBuilder()

The Label objects from the specified network.

repeated .google.ads.admanager.v1.Label labels = 1;

Returns
Type Description
Label.Builder

addLabelsBuilder(int index)

public Label.Builder addLabelsBuilder(int index)

The Label objects from the specified network.

repeated .google.ads.admanager.v1.Label labels = 1;

Parameter
Name Description
index int
Returns
Type Description
Label.Builder

build()

public ListLabelsResponse build()
Returns
Type Description
ListLabelsResponse

buildPartial()

public ListLabelsResponse buildPartial()
Returns
Type Description
ListLabelsResponse

clear()

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

clearLabels()

public ListLabelsResponse.Builder clearLabels()

The Label objects from the specified network.

repeated .google.ads.admanager.v1.Label labels = 1;

Returns
Type Description
ListLabelsResponse.Builder

clearNextPageToken()

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

This builder for chaining.

clearTotalSize()

public ListLabelsResponse.Builder clearTotalSize()

Total number of Label 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
ListLabelsResponse.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListLabelsResponse getDefaultInstanceForType()
Returns
Type Description
ListLabelsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLabels(int index)

public Label getLabels(int index)

The Label objects from the specified network.

repeated .google.ads.admanager.v1.Label labels = 1;

Parameter
Name Description
index int
Returns
Type Description
Label

getLabelsBuilder(int index)

public Label.Builder getLabelsBuilder(int index)

The Label objects from the specified network.

repeated .google.ads.admanager.v1.Label labels = 1;

Parameter
Name Description
index int
Returns
Type Description
Label.Builder

getLabelsBuilderList()

public List<Label.Builder> getLabelsBuilderList()

The Label objects from the specified network.

repeated .google.ads.admanager.v1.Label labels = 1;

Returns
Type Description
List<Builder>

getLabelsCount()

public int getLabelsCount()

The Label objects from the specified network.

repeated .google.ads.admanager.v1.Label labels = 1;

Returns
Type Description
int

getLabelsList()

public List<Label> getLabelsList()

The Label objects from the specified network.

repeated .google.ads.admanager.v1.Label labels = 1;

Returns
Type Description
List<Label>

getLabelsOrBuilder(int index)

public LabelOrBuilder getLabelsOrBuilder(int index)

The Label objects from the specified network.

repeated .google.ads.admanager.v1.Label labels = 1;

Parameter
Name Description
index int
Returns
Type Description
LabelOrBuilder

getLabelsOrBuilderList()

public List<? extends LabelOrBuilder> getLabelsOrBuilderList()

The Label objects from the specified network.

repeated .google.ads.admanager.v1.Label labels = 1;

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

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 Label 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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListLabelsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeLabels(int index)

public ListLabelsResponse.Builder removeLabels(int index)

The Label objects from the specified network.

repeated .google.ads.admanager.v1.Label labels = 1;

Parameter
Name Description
index int
Returns
Type Description
ListLabelsResponse.Builder

setLabels(int index, Label value)

public ListLabelsResponse.Builder setLabels(int index, Label value)

The Label objects from the specified network.

repeated .google.ads.admanager.v1.Label labels = 1;

Parameters
Name Description
index int
value Label
Returns
Type Description
ListLabelsResponse.Builder

setLabels(int index, Label.Builder builderForValue)

public ListLabelsResponse.Builder setLabels(int index, Label.Builder builderForValue)

The Label objects from the specified network.

repeated .google.ads.admanager.v1.Label labels = 1;

Parameters
Name Description
index int
builderForValue Label.Builder
Returns
Type Description
ListLabelsResponse.Builder

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

setTotalSize(int value)

public ListLabelsResponse.Builder setTotalSize(int value)

Total number of Label 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
ListLabelsResponse.Builder

This builder for chaining.