Interface Glossary.LanguageCodePairOrBuilder (2.55.0)

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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for targetLanguageCode.