Interface LocalizedMessageOrBuilder (2.9.1)

public interface LocalizedMessageOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getLocale()

public abstract String getLocale()

The locale used following the specification defined at http://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX"

string locale = 1;

Returns
TypeDescription
String

The locale.

getLocaleBytes()

public abstract ByteString getLocaleBytes()

The locale used following the specification defined at http://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX"

string locale = 1;

Returns
TypeDescription
ByteString

The bytes for locale.

getMessage()

public abstract String getMessage()

The localized error message in the above locale.

string message = 2;

Returns
TypeDescription
String

The message.

getMessageBytes()

public abstract ByteString getMessageBytes()

The localized error message in the above locale.

string message = 2;

Returns
TypeDescription
ByteString

The bytes for message.