Interface LocalizedMessageOrBuilder (1.51.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"

optional string locale = 513150554;

Returns
TypeDescription
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"

optional string locale = 513150554;

Returns
TypeDescription
ByteString

The bytes for locale.

getMessage()

public abstract String getMessage()

The localized error message in the above locale.

optional string message = 418054151;

Returns
TypeDescription
String

The message.

getMessageBytes()

public abstract ByteString getMessageBytes()

The localized error message in the above locale.

optional string message = 418054151;

Returns
TypeDescription
ByteString

The bytes for message.

hasLocale()

public abstract boolean hasLocale()

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"

optional string locale = 513150554;

Returns
TypeDescription
boolean

Whether the locale field is set.

hasMessage()

public abstract boolean hasMessage()

The localized error message in the above locale.

optional string message = 418054151;

Returns
TypeDescription
boolean

Whether the message field is set.