Interface LocalizedTextOrBuilder (2.7.4)

public interface LocalizedTextOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getLanguageCode()

public abstract String getLanguageCode()

The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

string language_code = 2;

Returns
TypeDescription
String

The languageCode.

getLanguageCodeBytes()

public abstract ByteString getLanguageCodeBytes()

The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

string language_code = 2;

Returns
TypeDescription
ByteString

The bytes for languageCode.

getText()

public abstract String getText()

Localized string in the language corresponding to `language_code' below.

string text = 1;

Returns
TypeDescription
String

The text.

getTextBytes()

public abstract ByteString getTextBytes()

Localized string in the language corresponding to `language_code' below.

string text = 1;

Returns
TypeDescription
ByteString

The bytes for text.