# Migrate for Compute Engine V1 API - Class Google::Rpc::LocalizedMessage (v2.9.0)

2.9.0 (latest) 2.8.0 2.7.0 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.1 2.0.0 1.3.0 1.2.0 1.1.0 1.0.2 0.9.0 0.8.2 0.7.0 0.6.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Migrate for Compute Engine 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

    def locale() -> ::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=

    def locale=(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

    def message() -> ::String

**Returns**

- (::String) --- The localized error message in the above locale.

### #message=

    def message=(value) -> ::String

**Parameter**

- **value** (::String) --- The localized error message in the above locale.
**Returns**

- (::String) --- The localized error message in the above locale.