Class ListGlossariesResponse.Builder (2.9.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class ListGlossariesResponse.Builder extends GeneratedMessageV3.Builder<ListGlossariesResponse.Builder> implements ListGlossariesResponseOrBuilder

Response message for ListGlossaries.

Protobuf type google.cloud.translation.v3.ListGlossariesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllGlossaries(Iterable<? extends Glossary> values)

public ListGlossariesResponse.Builder addAllGlossaries(Iterable<? extends Glossary> values)

The list of glossaries for a project.

repeated .google.cloud.translation.v3.Glossary glossaries = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.translate.v3.Glossary>
Returns
TypeDescription
ListGlossariesResponse.Builder

addGlossaries(Glossary value)

public ListGlossariesResponse.Builder addGlossaries(Glossary value)

The list of glossaries for a project.

repeated .google.cloud.translation.v3.Glossary glossaries = 1;

Parameter
NameDescription
valueGlossary
Returns
TypeDescription
ListGlossariesResponse.Builder

addGlossaries(Glossary.Builder builderForValue)

public ListGlossariesResponse.Builder addGlossaries(Glossary.Builder builderForValue)

The list of glossaries for a project.

repeated .google.cloud.translation.v3.Glossary glossaries = 1;

Parameter
NameDescription
builderForValueGlossary.Builder
Returns
TypeDescription
ListGlossariesResponse.Builder

addGlossaries(int index, Glossary value)

public ListGlossariesResponse.Builder addGlossaries(int index, Glossary value)

The list of glossaries for a project.

repeated .google.cloud.translation.v3.Glossary glossaries = 1;

Parameters
NameDescription
indexint
valueGlossary
Returns
TypeDescription
ListGlossariesResponse.Builder

addGlossaries(int index, Glossary.Builder builderForValue)

public ListGlossariesResponse.Builder addGlossaries(int index, Glossary.Builder builderForValue)

The list of glossaries for a project.

repeated .google.cloud.translation.v3.Glossary glossaries = 1;

Parameters
NameDescription
indexint
builderForValueGlossary.Builder
Returns
TypeDescription
ListGlossariesResponse.Builder

addGlossariesBuilder()

public Glossary.Builder addGlossariesBuilder()

The list of glossaries for a project.

repeated .google.cloud.translation.v3.Glossary glossaries = 1;

Returns
TypeDescription
Glossary.Builder

addGlossariesBuilder(int index)

public Glossary.Builder addGlossariesBuilder(int index)

The list of glossaries for a project.

repeated .google.cloud.translation.v3.Glossary glossaries = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Glossary.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListGlossariesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListGlossariesResponse.Builder
Overrides

build()

public ListGlossariesResponse build()
Returns
TypeDescription
ListGlossariesResponse

buildPartial()

public ListGlossariesResponse buildPartial()
Returns
TypeDescription
ListGlossariesResponse

clear()

public ListGlossariesResponse.Builder clear()
Returns
TypeDescription
ListGlossariesResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListGlossariesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListGlossariesResponse.Builder
Overrides

clearGlossaries()

public ListGlossariesResponse.Builder clearGlossaries()

The list of glossaries for a project.

repeated .google.cloud.translation.v3.Glossary glossaries = 1;

Returns
TypeDescription
ListGlossariesResponse.Builder

clearNextPageToken()

public ListGlossariesResponse.Builder clearNextPageToken()

A token to retrieve a page of results. Pass this value in the [ListGlossariesRequest.page_token] field in the subsequent call to ListGlossaries method to retrieve the next page of results.

string next_page_token = 2;

Returns
TypeDescription
List