Interface AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder (2.54.0)

public static interface AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getReferenceSentencePairLists(int index)

public abstract AdaptiveMtTranslateRequest.ReferenceSentencePairList getReferenceSentencePairLists(int index)

Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;

Parameter
Name Description
index int
Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePairList

getReferenceSentencePairListsCount()

public abstract int getReferenceSentencePairListsCount()

Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;

Returns
Type Description
int

getReferenceSentencePairListsList()

public abstract List<AdaptiveMtTranslateRequest.ReferenceSentencePairList> getReferenceSentencePairListsList()

Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;

Returns
Type Description
List<ReferenceSentencePairList>

getReferenceSentencePairListsOrBuilder(int index)

public abstract AdaptiveMtTranslateRequest.ReferenceSentencePairListOrBuilder getReferenceSentencePairListsOrBuilder(int index)

Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;

Parameter
Name Description
index int
Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePairListOrBuilder

getReferenceSentencePairListsOrBuilderList()

public abstract List<? extends AdaptiveMtTranslateRequest.ReferenceSentencePairListOrBuilder> getReferenceSentencePairListsOrBuilderList()

Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;

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

getSourceLanguageCode()

public abstract String getSourceLanguageCode()

Source language code.

string source_language_code = 2;

Returns
Type Description
String

The sourceLanguageCode.

getSourceLanguageCodeBytes()

public abstract ByteString getSourceLanguageCodeBytes()

Source language code.

string source_language_code = 2;

Returns
Type Description
ByteString

The bytes for sourceLanguageCode.

getTargetLanguageCode()

public abstract String getTargetLanguageCode()

Target language code.

string target_language_code = 3;

Returns
Type Description
String

The targetLanguageCode.

getTargetLanguageCodeBytes()

public abstract ByteString getTargetLanguageCodeBytes()

Target language code.

string target_language_code = 3;

Returns
Type Description
ByteString

The bytes for targetLanguageCode.