Class ListAdaptiveMtSentencesResponse.Builder (2.33.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
TypeDescription
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
NameDescription
valueAdaptiveMtSentence
Returns
TypeDescription
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
NameDescription
builderForValueAdaptiveMtSentence.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueAdaptiveMtSentence
Returns
TypeDescription
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
NameDescription
indexint
builderForValueAdaptiveMtSentence.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.translate.v3.AdaptiveMtSentence>
Returns
TypeDescription
ListAdaptiveMtSentencesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListAdaptiveMtSentencesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListAdaptiveMtSentencesResponse.Builder
Overrides

build()

public ListAdaptiveMtSentencesResponse build()
Returns
TypeDescription
ListAdaptiveMtSentencesResponse

buildPartial()

public ListAdaptiveMtSentencesResponse buildPartial()
Returns
TypeDescription
ListAdaptiveMtSentencesResponse

clear()

public ListAdaptiveMtSentencesResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
ListAdaptiveMtSentencesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListAdaptiveMtSentencesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListAdaptiveMtSentencesResponse.Builder
Overrides

clearNextPageToken()

public ListAdaptiveMtSentencesResponse.Builder clearNextPageToken()

Optional.

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

Returns
TypeDescription
ListAdaptiveMtSentencesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ListAdaptiveMtSentencesResponse.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.translate.v3.AdaptiveMtSentenceOrBuilder>

getDefaultInstanceForType()

public ListAdaptiveMtSentencesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListAdaptiveMtSentencesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

Optional.

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

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Optional.

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

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

public ListAdaptiveMtSentencesResponse.Builder mergeFrom(ListAdaptiveMtSentencesResponse other)
Parameter
NameDescription
otherListAdaptiveMtSentencesResponse
Returns
TypeDescription
ListAdaptiveMtSentencesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ListAdaptiveMtSentencesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListAdaptiveMtSentencesResponse.Builder
Overrides

setNextPageToken(String value)

public ListAdaptiveMtSentencesResponse.Builder setNextPageToken(String value)

Optional.

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

Parameter
NameDescription
valueString

The nextPageToken to set.

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

The bytes for nextPageToken to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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