Class ListExamplesResponse.Builder (2.55.0)

public static final class ListExamplesResponse.Builder extends GeneratedMessageV3.Builder<ListExamplesResponse.Builder> implements ListExamplesResponseOrBuilder

Response message for ListExamples.

Protobuf type google.cloud.translation.v3.ListExamplesResponse

Static Methods

getDescriptor()

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

Methods

addAllExamples(Iterable<? extends Example> values)

public ListExamplesResponse.Builder addAllExamples(Iterable<? extends Example> values)

The sentence pairs.

repeated .google.cloud.translation.v3.Example examples = 1;

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

addExamples(Example value)

public ListExamplesResponse.Builder addExamples(Example value)

The sentence pairs.

repeated .google.cloud.translation.v3.Example examples = 1;

Parameter
Name Description
value Example
Returns
Type Description
ListExamplesResponse.Builder

addExamples(Example.Builder builderForValue)

public ListExamplesResponse.Builder addExamples(Example.Builder builderForValue)

The sentence pairs.

repeated .google.cloud.translation.v3.Example examples = 1;

Parameter
Name Description
builderForValue Example.Builder
Returns
Type Description
ListExamplesResponse.Builder

addExamples(int index, Example value)

public ListExamplesResponse.Builder addExamples(int index, Example value)

The sentence pairs.

repeated .google.cloud.translation.v3.Example examples = 1;

Parameters
Name Description
index int
value Example
Returns
Type Description
ListExamplesResponse.Builder

addExamples(int index, Example.Builder builderForValue)

public ListExamplesResponse.Builder addExamples(int index, Example.Builder builderForValue)

The sentence pairs.

repeated .google.cloud.translation.v3.Example examples = 1;

Parameters
Name Description
index int
builderForValue Example.Builder
Returns
Type Description
ListExamplesResponse.Builder

addExamplesBuilder()

public Example.Builder addExamplesBuilder()

The sentence pairs.

repeated .google.cloud.translation.v3.Example examples = 1;

Returns
Type Description
Example.Builder

addExamplesBuilder(int index)

public Example.Builder addExamplesBuilder(int index)

The sentence pairs.

repeated .google.cloud.translation.v3.Example examples = 1;

Parameter
Name Description
index int
Returns
Type Description
Example.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListExamplesResponse build()
Returns
Type Description
ListExamplesResponse

buildPartial()

public ListExamplesResponse buildPartial()
Returns
Type Description
ListExamplesResponse

clear()

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

clearExamples()

public ListExamplesResponse.Builder clearExamples()

The sentence pairs.

repeated .google.cloud.translation.v3.Example examples = 1;

Returns
Type Description
ListExamplesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListExamplesResponse.Builder clearNextPageToken()

A token to retrieve next page of results. Pass this token to the page_token field in the ListExamplesRequest to obtain the corresponding page.

string next_page_token = 2;

Returns
Type Description
ListExamplesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListExamplesResponse getDefaultInstanceForType()
Returns
Type Description
ListExamplesResponse

getDescriptorForType()

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

getExamples(int index)

public Example getExamples(int index)

The sentence pairs.

repeated .google.cloud.translation.v3.Example examples = 1;

Parameter
Name Description
index int
Returns
Type Description
Example

getExamplesBuilder(int index)

public Example.Builder getExamplesBuilder(int index)

The sentence pairs.

repeated .google.cloud.translation.v3.Example examples = 1;

Parameter
Name Description
index int
Returns
Type Description
Example.Builder

getExamplesBuilderList()

public List<Example.Builder> getExamplesBuilderList()

The sentence pairs.

repeated .google.cloud.translation.v3.Example examples = 1;

Returns
Type Description
List<Builder>

getExamplesCount()

public int getExamplesCount()

The sentence pairs.

repeated .google.cloud.translation.v3.Example examples = 1;

Returns
Type Description
int

getExamplesList()

public List<Example> getExamplesList()

The sentence pairs.

repeated .google.cloud.translation.v3.Example examples = 1;

Returns
Type Description
List<Example>

getExamplesOrBuilder(int index)

public ExampleOrBuilder getExamplesOrBuilder(int index)

The sentence pairs.

repeated .google.cloud.translation.v3.Example examples = 1;

Parameter
Name Description
index int
Returns
Type Description
ExampleOrBuilder

getExamplesOrBuilderList()

public List<? extends ExampleOrBuilder> getExamplesOrBuilderList()

The sentence pairs.

repeated .google.cloud.translation.v3.Example examples = 1;

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

getNextPageToken()

public String getNextPageToken()

A token to retrieve next page of results. Pass this token to the page_token field in the ListExamplesRequest to obtain the corresponding page.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token to retrieve next page of results. Pass this token to the page_token field in the ListExamplesRequest to obtain the corresponding page.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeExamples(int index)

public ListExamplesResponse.Builder removeExamples(int index)

The sentence pairs.

repeated .google.cloud.translation.v3.Example examples = 1;

Parameter
Name Description
index int
Returns
Type Description
ListExamplesResponse.Builder

setExamples(int index, Example value)

public ListExamplesResponse.Builder setExamples(int index, Example value)

The sentence pairs.

repeated .google.cloud.translation.v3.Example examples = 1;

Parameters
Name Description
index int
value Example
Returns
Type Description
ListExamplesResponse.Builder

setExamples(int index, Example.Builder builderForValue)

public ListExamplesResponse.Builder setExamples(int index, Example.Builder builderForValue)

The sentence pairs.

repeated .google.cloud.translation.v3.Example examples = 1;

Parameters
Name Description
index int
builderForValue Example.Builder
Returns
Type Description
ListExamplesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListExamplesResponse.Builder setNextPageToken(String value)

A token to retrieve next page of results. Pass this token to the page_token field in the ListExamplesRequest to obtain the corresponding page.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListExamplesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListExamplesResponse.Builder setNextPageTokenBytes(ByteString value)

A token to retrieve next page of results. Pass this token to the page_token field in the ListExamplesRequest to obtain the corresponding page.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListExamplesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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