Interface Glossary.LanguageCodePairOrBuilder (2.3.1)

public static interface Glossary.LanguageCodePairOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getSourceLanguageCode()

public abstract String getSourceLanguageCode()

Required. The BCP-47 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 BCP-47 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 BCP-47 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 BCP-47 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.