# Cloud Debugger V2 API - Class Google::Cloud::Debugger::V2::StatusMessage (v0.6.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.6.0 (latest)](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Cloud-Debugger-V2-StatusMessage)
- [0.5.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/0.5.0/Google-Cloud-Debugger-V2-StatusMessage)
- [0.4.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/0.4.0/Google-Cloud-Debugger-V2-StatusMessage)
- [0.3.5](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/0.3.5/Google-Cloud-Debugger-V2-StatusMessage)
Reference documentation and code samples for the Cloud Debugger V2 API class Google::Cloud::Debugger::V2::StatusMessage.

Represents a contextual status message.
The message can indicate an error or informational status, and refer to
specific parts of the containing object.
For example, the `Breakpoint.status` field can indicate an error referring
to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #description

    def description() -> ::Google::Cloud::Debugger::V2::FormatMessage

**Returns**

- ([::Google::Cloud::Debugger::V2::FormatMessage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Cloud-Debugger-V2-FormatMessage)) --- Status message text.

### #description=

    def description=(value) -> ::Google::Cloud::Debugger::V2::FormatMessage

**Parameter**

- **value** ([::Google::Cloud::Debugger::V2::FormatMessage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Cloud-Debugger-V2-FormatMessage)) --- Status message text.
**Returns**

- ([::Google::Cloud::Debugger::V2::FormatMessage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Cloud-Debugger-V2-FormatMessage)) --- Status message text.

### #is_error

    def is_error() -> ::Boolean

**Returns**

- (::Boolean) --- Distinguishes errors from informational messages.

### #is_error=

    def is_error=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Distinguishes errors from informational messages.
**Returns**

- (::Boolean) --- Distinguishes errors from informational messages.

### #refers_to

    def refers_to() -> ::Google::Cloud::Debugger::V2::StatusMessage::Reference

**Returns**

- ([::Google::Cloud::Debugger::V2::StatusMessage::Reference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Cloud-Debugger-V2-StatusMessage-Reference)) --- Reference to which the message applies.

### #refers_to=

    def refers_to=(value) -> ::Google::Cloud::Debugger::V2::StatusMessage::Reference

**Parameter**

- **value** ([::Google::Cloud::Debugger::V2::StatusMessage::Reference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Cloud-Debugger-V2-StatusMessage-Reference)) --- Reference to which the message applies.
**Returns**

- ([::Google::Cloud::Debugger::V2::StatusMessage::Reference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Cloud-Debugger-V2-StatusMessage-Reference)) --- Reference to which the message applies.