Interface LocalizedMessageOrBuilder (2.50.0)

public interface LocalizedMessageOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getLocale()

public abstract String getLocale()

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

string locale = 1;

Returns
Type Description
String

The locale.

getLocaleBytes()

public abstract ByteString getLocaleBytes()

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

string locale = 1;

Returns
Type Description
ByteString

The bytes for locale.

getMessage()

public abstract String getMessage()

The localized error message in the above locale.

string message = 2;

Returns
Type Description
String

The message.

getMessageBytes()

public abstract ByteString getMessageBytes()

The localized error message in the above locale.

string message = 2;

Returns
Type Description
ByteString

The bytes for message.