Network Connectivity V1 API - Class Google::Rpc::LocalizedMessage (v1.9.0)

Reference documentation and code samples for the Network Connectivity V1 API class Google::Rpc::LocalizedMessage.

Provides a localized error message that is safe to return to the user which can be attached to an RPC error.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#locale

deflocale()->::String
Returns
  • (::String) — 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"

#locale=

deflocale=(value)->::String
Parameter
  • value (::String) — 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"
Returns
  • (::String) — 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"

#message

defmessage()->::String
Returns
  • (::String) — The localized error message in the above locale.

#message=

defmessage=(value)->::String
Parameter
  • value (::String) — The localized error message in the above locale.
Returns
  • (::String) — The localized error message in the above locale.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.