Class: Google::Rpc::LocalizedMessage

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/rpc/error_details.rb

Overview

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

Instance Attribute Summary collapse

Instance Attribute Details

#locale::String

Returns 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:



328
329
330
331
# File 'proto_docs/google/rpc/error_details.rb', line 328

class LocalizedMessage
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#message::String

Returns The localized error message in the above locale.

Returns:

  • (::String)

    The localized error message in the above locale.



328
329
330
331
# File 'proto_docs/google/rpc/error_details.rb', line 328

class LocalizedMessage
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end