Interface Glossary.LanguageCodePairOrBuilder (2.34.0)

public static interface Glossary.LanguageCodePairOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getSourceLanguageCode()

public abstract String getSourceLanguageCode()

Required. The ISO-639 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code.

string source_language_code = 1;

Returns
TypeDescription
String

The sourceLanguageCode.

getSourceLanguageCodeBytes()

public abstract ByteString getSourceLanguageCodeBytes()

Required. The ISO-639 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code.

string source_language_code = 1;

Returns
TypeDescription
ByteString

The bytes for sourceLanguageCode.

getTargetLanguageCode()

public abstract String getTargetLanguageCode()

Required. The ISO-639 language code for translation output, for example, "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.

string target_language_code = 2;

Returns
TypeDescription
String

The targetLanguageCode.

getTargetLanguageCodeBytes()

public abstract ByteString getTargetLanguageCodeBytes()

Required. The ISO-639 language code for translation output, for example, "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.

string target_language_code = 2;

Returns
TypeDescription
ByteString

The bytes for targetLanguageCode.