Class ListGlossariesResponse.Builder (2.43.0)

public static final class ListGlossariesResponse.Builder extends GeneratedMessageV3.Builder<ListGlossariesResponse.Builder> implements ListGlossariesResponseOrBuilder

Response message for ListGlossaries.

Protobuf type google.cloud.translation.v3beta1.ListGlossariesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
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.v3beta1.Glossary glossaries = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.translate.v3beta1.Glossary>
Returns
Type Description
ListGlossariesResponse.Builder

addGlossaries(Glossary value)

public ListGlossariesResponse.Builder addGlossaries(Glossary value)

The list of glossaries for a project.

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

Parameter
Name Description
value Glossary
Returns
Type Description
ListGlossariesResponse.Builder

addGlossaries(Glossary.Builder builderForValue)

public ListGlossariesResponse.Builder addGlossaries(Glossary.Builder builderForValue)

The list of glossaries for a project.

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

Parameter
Name Description
builderForValue Glossary.Builder
Returns
Type Description
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.v3beta1.Glossary glossaries = 1;

Parameters
Name Description
index int
value Glossary
Returns
Type Description
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.v3beta1.Glossary glossaries = 1;

Parameters
Name Description
index int
builderForValue Glossary.Builder
Returns
Type Description
ListGlossariesResponse.Builder

addGlossariesBuilder()

public Glossary.Builder addGlossariesBuilder()

The list of glossaries for a project.

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

Returns
Type Description
Glossary.Builder

addGlossariesBuilder(int index)

public Glossary.Builder addGlossariesBuilder(int index)

The list of glossaries for a project.

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

Parameter
Name Description
index int
Returns
Type Description
Glossary.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListGlossariesResponse build()
Returns
Type Description
ListGlossariesResponse

buildPartial()

public ListGlossariesResponse buildPartial()
Returns
Type Description
ListGlossariesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGlossaries()

public ListGlossariesResponse.Builder clearGlossaries()

The list of glossaries for a project.

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

Returns
Type Description
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
Type Description
ListGlossariesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListGlossariesResponse getDefaultInstanceForType()
Returns
Type Description
ListGlossariesResponse

getDescriptorForType()

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

getGlossaries(int index)

public Glossary getGlossaries(int index)

The list of glossaries for a project.

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

Parameter
Name Description
index int
Returns
Type Description
Glossary

getGlossariesBuilder(int index)

public Glossary.Builder getGlossariesBuilder(int index)

The list of glossaries for a project.

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

Parameter
Name Description
index int
Returns
Type Description
Glossary.Builder

getGlossariesBuilderList()

public List<Glossary.Builder> getGlossariesBuilderList()

The list of glossaries for a project.

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

Returns
Type Description
List<Builder>

getGlossariesCount()

public int getGlossariesCount()

The list of glossaries for a project.

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

Returns
Type Description
int

getGlossariesList()

public List<Glossary> getGlossariesList()

The list of glossaries for a project.

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

Returns
Type Description
List<Glossary>

getGlossariesOrBuilder(int index)

public GlossaryOrBuilder getGlossariesOrBuilder(int index)

The list of glossaries for a project.

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

Parameter
Name Description
index int
Returns
Type Description
GlossaryOrBuilder

getGlossariesOrBuilderList()

public List<? extends GlossaryOrBuilder> getGlossariesOrBuilderList()

The list of glossaries for a project.

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

Returns
Type Description
List<? extends com.google.cloud.translate.v3beta1.GlossaryOrBuilder>

getNextPageToken()

public String getNextPageToken()

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
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

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
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListGlossariesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeGlossaries(int index)

public ListGlossariesResponse.Builder removeGlossaries(int index)

The list of glossaries for a project.

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

Parameter
Name Description
index int
Returns
Type Description
ListGlossariesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGlossaries(int index, Glossary value)

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

The list of glossaries for a project.

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

Parameters
Name Description
index int
value Glossary
Returns
Type Description
ListGlossariesResponse.Builder

setGlossaries(int index, Glossary.Builder builderForValue)

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

The list of glossaries for a project.

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

Parameters
Name Description
index int
builderForValue Glossary.Builder
Returns
Type Description
ListGlossariesResponse.Builder

setNextPageToken(String value)

public ListGlossariesResponse.Builder setNextPageToken(String value)

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;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListGlossariesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListGlossariesResponse.Builder setNextPageTokenBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListGlossariesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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