Class ListAdaptiveMtSentencesResponse.Builder (2.55.0)

public static final class ListAdaptiveMtSentencesResponse.Builder extends GeneratedMessageV3.Builder<ListAdaptiveMtSentencesResponse.Builder> implements ListAdaptiveMtSentencesResponseOrBuilder

List AdaptiveMt sentences response.

Protobuf type google.cloud.translation.v3.ListAdaptiveMtSentencesResponse

Static Methods

getDescriptor()

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

Methods

addAdaptiveMtSentences(AdaptiveMtSentence value)

public ListAdaptiveMtSentencesResponse.Builder addAdaptiveMtSentences(AdaptiveMtSentence value)

Output only. The list of AdaptiveMtSentences.

repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value AdaptiveMtSentence
Returns
Type Description
ListAdaptiveMtSentencesResponse.Builder

addAdaptiveMtSentences(AdaptiveMtSentence.Builder builderForValue)

public ListAdaptiveMtSentencesResponse.Builder addAdaptiveMtSentences(AdaptiveMtSentence.Builder builderForValue)

Output only. The list of AdaptiveMtSentences.

repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue AdaptiveMtSentence.Builder
Returns
Type Description
ListAdaptiveMtSentencesResponse.Builder

addAdaptiveMtSentences(int index, AdaptiveMtSentence value)

public ListAdaptiveMtSentencesResponse.Builder addAdaptiveMtSentences(int index, AdaptiveMtSentence value)

Output only. The list of AdaptiveMtSentences.

repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value AdaptiveMtSentence
Returns
Type Description
ListAdaptiveMtSentencesResponse.Builder

addAdaptiveMtSentences(int index, AdaptiveMtSentence.Builder builderForValue)

public ListAdaptiveMtSentencesResponse.Builder addAdaptiveMtSentences(int index, AdaptiveMtSentence.Builder builderForValue)

Output only. The list of AdaptiveMtSentences.

repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue AdaptiveMtSentence.Builder
Returns
Type Description
ListAdaptiveMtSentencesResponse.Builder

addAdaptiveMtSentencesBuilder()

public AdaptiveMtSentence.Builder addAdaptiveMtSentencesBuilder()

Output only. The list of AdaptiveMtSentences.

repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AdaptiveMtSentence.Builder

addAdaptiveMtSentencesBuilder(int index)

public AdaptiveMtSentence.Builder addAdaptiveMtSentencesBuilder(int index)

Output only. The list of AdaptiveMtSentences.

repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AdaptiveMtSentence.Builder

addAllAdaptiveMtSentences(Iterable<? extends AdaptiveMtSentence> values)

public ListAdaptiveMtSentencesResponse.Builder addAllAdaptiveMtSentences(Iterable<? extends AdaptiveMtSentence> values)

Output only. The list of AdaptiveMtSentences.

repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListAdaptiveMtSentencesResponse build()
Returns
Type Description
ListAdaptiveMtSentencesResponse

buildPartial()

public ListAdaptiveMtSentencesResponse buildPartial()
Returns
Type Description
ListAdaptiveMtSentencesResponse

clear()

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

clearAdaptiveMtSentences()

public ListAdaptiveMtSentencesResponse.Builder clearAdaptiveMtSentences()

Output only. The list of AdaptiveMtSentences.

repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ListAdaptiveMtSentencesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListAdaptiveMtSentencesResponse.Builder clearNextPageToken()

Optional.

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

Returns
Type Description
ListAdaptiveMtSentencesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAdaptiveMtSentences(int index)

public AdaptiveMtSentence getAdaptiveMtSentences(int index)

Output only. The list of AdaptiveMtSentences.

repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AdaptiveMtSentence

getAdaptiveMtSentencesBuilder(int index)

public AdaptiveMtSentence.Builder getAdaptiveMtSentencesBuilder(int index)

Output only. The list of AdaptiveMtSentences.

repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AdaptiveMtSentence.Builder

getAdaptiveMtSentencesBuilderList()

public List<AdaptiveMtSentence.Builder> getAdaptiveMtSentencesBuilderList()

Output only. The list of AdaptiveMtSentences.

repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getAdaptiveMtSentencesCount()

public int getAdaptiveMtSentencesCount()

Output only. The list of AdaptiveMtSentences.

repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getAdaptiveMtSentencesList()

public List<AdaptiveMtSentence> getAdaptiveMtSentencesList()

Output only. The list of AdaptiveMtSentences.

repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<AdaptiveMtSentence>

getAdaptiveMtSentencesOrBuilder(int index)

public AdaptiveMtSentenceOrBuilder getAdaptiveMtSentencesOrBuilder(int index)

Output only. The list of AdaptiveMtSentences.

repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AdaptiveMtSentenceOrBuilder

getAdaptiveMtSentencesOrBuilderList()

public List<? extends AdaptiveMtSentenceOrBuilder> getAdaptiveMtSentencesOrBuilderList()

Output only. The list of AdaptiveMtSentences.

repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getDefaultInstanceForType()

public ListAdaptiveMtSentencesResponse getDefaultInstanceForType()
Returns
Type Description
ListAdaptiveMtSentencesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

Optional.

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

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Optional.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAdaptiveMtSentences(int index)

public ListAdaptiveMtSentencesResponse.Builder removeAdaptiveMtSentences(int index)

Output only. The list of AdaptiveMtSentences.

repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ListAdaptiveMtSentencesResponse.Builder

setAdaptiveMtSentences(int index, AdaptiveMtSentence value)

public ListAdaptiveMtSentencesResponse.Builder setAdaptiveMtSentences(int index, AdaptiveMtSentence value)

Output only. The list of AdaptiveMtSentences.

repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value AdaptiveMtSentence
Returns
Type Description
ListAdaptiveMtSentencesResponse.Builder

setAdaptiveMtSentences(int index, AdaptiveMtSentence.Builder builderForValue)

public ListAdaptiveMtSentencesResponse.Builder setAdaptiveMtSentences(int index, AdaptiveMtSentence.Builder builderForValue)

Output only. The list of AdaptiveMtSentences.

repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue AdaptiveMtSentence.Builder
Returns
Type Description
ListAdaptiveMtSentencesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListAdaptiveMtSentencesResponse.Builder setNextPageToken(String value)

Optional.

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

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListAdaptiveMtSentencesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListAdaptiveMtSentencesResponse.Builder setNextPageTokenBytes(ByteString value)

Optional.

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

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListAdaptiveMtSentencesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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