Class ListLabelsResponse.Builder (0.2.0)

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

Response object for ListLabelsRequest containing matching Label resources.

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

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

Parameter
Name Description
index int
Returns
Type Description
Label.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public ListLabelsResponse.Builder clearLabels()

The Label 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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalSize()

public ListLabelsResponse.Builder clearTotalSize()

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

This builder for chaining.

clone()

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

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

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

Returns
Type Description
List<Builder>

getLabelsCount()

public int getLabelsCount()

The Label from the specified network.

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

Returns
Type Description
int

getLabelsList()

public List<Label> getLabelsList()

The Label 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 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 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 Labels. 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(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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeLabels(int index)

public ListLabelsResponse.Builder removeLabels(int index)

The Label from the specified network.

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

Parameter
Name Description
index int
Returns
Type Description
ListLabelsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLabels(int index, Label value)

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

The Label 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 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.

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

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

setTotalSize(int value)

public ListLabelsResponse.Builder setTotalSize(int value)

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

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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