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

optional string locale = 513150554;

Returns
Type Description
ByteString

The bytes for locale.

getMessage()

public abstract String getMessage()

The localized error message in the above locale.

optional string message = 418054151;

Returns
Type Description
String

The message.

getMessageBytes()

public abstract ByteString getMessageBytes()

The localized error message in the above locale.

optional string message = 418054151;

Returns
Type Description
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
Type Description
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
Type Description
boolean

Whether the message field is set.