Send feedback
Class ListExamplesResponse.Builder (2.48.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.48.0 keyboard_arrow_down
public static final class ListExamplesResponse . Builder extends GeneratedMessageV3 . Builder<ListExamplesResponse . Builder > implements ListExamplesResponseOrBuilder
Response message for ListExamples.
Protobuf type google.cloud.translation.v3.ListExamplesResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
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 >
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
addExamples(Example.Builder builderForValue)
public ListExamplesResponse . Builder addExamples ( Example . Builder builderForValue )
The sentence pairs.
repeated .google.cloud.translation.v3.Example examples = 1;
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
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;
addExamplesBuilder()
public Example . Builder addExamplesBuilder ()
The sentence pairs.
repeated .google.cloud.translation.v3.Example examples = 1;
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListExamplesResponse . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public ListExamplesResponse build ()
buildPartial()
public ListExamplesResponse buildPartial ()
clear()
public ListExamplesResponse . Builder clear ()
Overrides
clearExamples()
public ListExamplesResponse . Builder clearExamples ()
The sentence pairs.
repeated .google.cloud.translation.v3.Example examples = 1;
clearField(Descriptors.FieldDescriptor field)
public ListExamplesResponse . Builder clearField ( Descriptors . FieldDescriptor field )
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public ListExamplesResponse . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public ListExamplesResponse . Builder clone ()
Overrides
getDefaultInstanceForType()
public ListExamplesResponse getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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
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
getExamplesBuilderList()
public List<Example . Builder > getExamplesBuilderList ()
The sentence pairs.
repeated .google.cloud.translation.v3.Example examples = 1;
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;
getExamplesOrBuilder(int index)
public ExampleOrBuilder getExamplesOrBuilder ( int index )
The sentence pairs.
repeated .google.cloud.translation.v3.Example examples = 1;
Parameter
Name
Description
index
int
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(ListExamplesResponse other)
public ListExamplesResponse . Builder mergeFrom ( ListExamplesResponse other )
public ListExamplesResponse . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public ListExamplesResponse . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListExamplesResponse . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
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
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
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;
setField(Descriptors.FieldDescriptor field, Object value)
public ListExamplesResponse . Builder setField ( Descriptors . FieldDescriptor field , Object value )
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.
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.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListExamplesResponse . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListExamplesResponse . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]