Interface LocalizedTextOrBuilder (2.40.0)

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

The bytes for languageCode.

getText()

public abstract String getText()

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

string text = 1;

Returns
Type Description
String

The text.

getTextBytes()

public abstract ByteString getTextBytes()

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

string text = 1;

Returns
Type Description
ByteString

The bytes for text.