Class ListGlossariesResponse.Builder (2.28.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
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.v3beta1.Glossary glossaries = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.translate.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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
ListGlossariesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListGlossariesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListGlossariesResponse.Builder
Overrides

clone()

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

getDefaultInstanceForType()

public ListGlossariesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListGlossariesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Glossary.Builder

getGlossariesBuilderList()

public List<Glossary.Builder> getGlossariesBuilderList()

The list of glossaries for a project.

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

Returns
TypeDescription
List<Builder>

getGlossariesCount()

public int getGlossariesCount()

The list of glossaries for a project.

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

Returns
TypeDescription
int

getGlossariesList()

public List<Glossary> getGlossariesList()

The list of glossaries for a project.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
GlossaryOrBuilder

getGlossariesOrBuilderList()

public List<? extends GlossaryOrBuilder> getGlossariesOrBuilderList()

The list of glossaries for a project.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListGlossariesResponse other)

public ListGlossariesResponse.Builder mergeFrom(ListGlossariesResponse other)
Parameter
NameDescription
otherListGlossariesResponse
Returns
TypeDescription
ListGlossariesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListGlossariesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListGlossariesResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListGlossariesResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListGlossariesResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListGlossariesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListGlossariesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListGlossariesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueGlossary
Returns
TypeDescription
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
NameDescription
indexint
builderForValueGlossary.Builder
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListGlossariesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListGlossariesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListGlossariesResponse.Builder
Overrides