Class ListGlossaryEntriesResponse.Builder (2.49.0)

public static final class ListGlossaryEntriesResponse.Builder extends GeneratedMessageV3.Builder<ListGlossaryEntriesResponse.Builder> implements ListGlossaryEntriesResponseOrBuilder

Response message for ListGlossaryEntries

Protobuf type google.cloud.translation.v3.ListGlossaryEntriesResponse

Static Methods

getDescriptor()

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

Methods

addAllGlossaryEntries(Iterable<? extends GlossaryEntry> values)

public ListGlossaryEntriesResponse.Builder addAllGlossaryEntries(Iterable<? extends GlossaryEntry> values)

Optional. The Glossary Entries

repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.translate.v3.GlossaryEntry>
Returns
Type Description
ListGlossaryEntriesResponse.Builder

addGlossaryEntries(GlossaryEntry value)

public ListGlossaryEntriesResponse.Builder addGlossaryEntries(GlossaryEntry value)

Optional. The Glossary Entries

repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value GlossaryEntry
Returns
Type Description
ListGlossaryEntriesResponse.Builder

addGlossaryEntries(GlossaryEntry.Builder builderForValue)

public ListGlossaryEntriesResponse.Builder addGlossaryEntries(GlossaryEntry.Builder builderForValue)

Optional. The Glossary Entries

repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue GlossaryEntry.Builder
Returns
Type Description
ListGlossaryEntriesResponse.Builder

addGlossaryEntries(int index, GlossaryEntry value)

public ListGlossaryEntriesResponse.Builder addGlossaryEntries(int index, GlossaryEntry value)

Optional. The Glossary Entries

repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value GlossaryEntry
Returns
Type Description
ListGlossaryEntriesResponse.Builder

addGlossaryEntries(int index, GlossaryEntry.Builder builderForValue)

public ListGlossaryEntriesResponse.Builder addGlossaryEntries(int index, GlossaryEntry.Builder builderForValue)

Optional. The Glossary Entries

repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue GlossaryEntry.Builder
Returns
Type Description
ListGlossaryEntriesResponse.Builder

addGlossaryEntriesBuilder()

public GlossaryEntry.Builder addGlossaryEntriesBuilder()

Optional. The Glossary Entries

repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GlossaryEntry.Builder

addGlossaryEntriesBuilder(int index)

public GlossaryEntry.Builder addGlossaryEntriesBuilder(int index)

Optional. The Glossary Entries

repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
GlossaryEntry.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListGlossaryEntriesResponse build()
Returns
Type Description
ListGlossaryEntriesResponse

buildPartial()

public ListGlossaryEntriesResponse buildPartial()
Returns
Type Description
ListGlossaryEntriesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGlossaryEntries()

public ListGlossaryEntriesResponse.Builder clearGlossaryEntries()

Optional. The Glossary Entries

repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListGlossaryEntriesResponse.Builder

clearNextPageToken()

public ListGlossaryEntriesResponse.Builder clearNextPageToken()

Optional. A token to retrieve a page of results. Pass this value in the [ListGLossaryEntriesRequest.page_token] field in the subsequent calls.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListGlossaryEntriesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListGlossaryEntriesResponse getDefaultInstanceForType()
Returns
Type Description
ListGlossaryEntriesResponse

getDescriptorForType()

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

getGlossaryEntries(int index)

public GlossaryEntry getGlossaryEntries(int index)

Optional. The Glossary Entries

repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
GlossaryEntry

getGlossaryEntriesBuilder(int index)

public GlossaryEntry.Builder getGlossaryEntriesBuilder(int index)

Optional. The Glossary Entries

repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
GlossaryEntry.Builder

getGlossaryEntriesBuilderList()

public List<GlossaryEntry.Builder> getGlossaryEntriesBuilderList()

Optional. The Glossary Entries

repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getGlossaryEntriesCount()

public int getGlossaryEntriesCount()

Optional. The Glossary Entries

repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getGlossaryEntriesList()

public List<GlossaryEntry> getGlossaryEntriesList()

Optional. The Glossary Entries

repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<GlossaryEntry>

getGlossaryEntriesOrBuilder(int index)

public GlossaryEntryOrBuilder getGlossaryEntriesOrBuilder(int index)

Optional. The Glossary Entries

repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
GlossaryEntryOrBuilder

getGlossaryEntriesOrBuilderList()

public List<? extends GlossaryEntryOrBuilder> getGlossaryEntriesOrBuilderList()

Optional. The Glossary Entries

repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.translate.v3.GlossaryEntryOrBuilder>

getNextPageToken()

public String getNextPageToken()

Optional. A token to retrieve a page of results. Pass this value in the [ListGLossaryEntriesRequest.page_token] field in the subsequent calls.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Optional. A token to retrieve a page of results. Pass this value in the [ListGLossaryEntriesRequest.page_token] field in the subsequent calls.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

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(ListGlossaryEntriesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeGlossaryEntries(int index)

public ListGlossaryEntriesResponse.Builder removeGlossaryEntries(int index)

Optional. The Glossary Entries

repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ListGlossaryEntriesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGlossaryEntries(int index, GlossaryEntry value)

public ListGlossaryEntriesResponse.Builder setGlossaryEntries(int index, GlossaryEntry value)

Optional. The Glossary Entries

repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value GlossaryEntry
Returns
Type Description
ListGlossaryEntriesResponse.Builder

setGlossaryEntries(int index, GlossaryEntry.Builder builderForValue)

public ListGlossaryEntriesResponse.Builder setGlossaryEntries(int index, GlossaryEntry.Builder builderForValue)

Optional. The Glossary Entries

repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue GlossaryEntry.Builder
Returns
Type Description
ListGlossaryEntriesResponse.Builder

setNextPageToken(String value)

public ListGlossaryEntriesResponse.Builder setNextPageToken(String value)

Optional. A token to retrieve a page of results. Pass this value in the [ListGLossaryEntriesRequest.page_token] field in the subsequent calls.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListGlossaryEntriesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListGlossaryEntriesResponse.Builder setNextPageTokenBytes(ByteString value)

Optional. A token to retrieve a page of results. Pass this value in the [ListGLossaryEntriesRequest.page_token] field in the subsequent calls.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListGlossaryEntriesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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