# Cloud Debugger V2 API - Class Google::Cloud::Debugger::V2::FormatMessage (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-FormatMessage)
- [0.5.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/0.5.0/Google-Cloud-Debugger-V2-FormatMessage)
- [0.4.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/0.4.0/Google-Cloud-Debugger-V2-FormatMessage)
- [0.3.5](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/0.3.5/Google-Cloud-Debugger-V2-FormatMessage)
Reference documentation and code samples for the Cloud Debugger V2 API class Google::Cloud::Debugger::V2::FormatMessage.

Represents a message with parameters.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #format

    def format() -> ::String

**Returns**

- (::String) --- Format template for the message. The `format` uses placeholders `$0`,
  `$1`, etc. to reference parameters. `$$` can be used to denote the `$`
  character.

  Examples:
  - `Failed to load '$0' which helps debug $1 the first time it
    is loaded. Again, $0 is very important.`
  - `Please pay $$10 to use $0 instead of $1.`

### #format=

    def format=(value) -> ::String

**Parameter**

- **value** (::String) ---

  Format template for the message. The `format` uses placeholders `$0`,
  `$1`, etc. to reference parameters. `$$` can be used to denote the `$`
  character.

  Examples:
  - `Failed to load '$0' which helps debug $1 the first time it
    is loaded. Again, $0 is very important.`
  - `Please pay $$10 to use $0 instead of $1.`
**Returns**

- (::String) --- Format template for the message. The `format` uses placeholders `$0`,
  `$1`, etc. to reference parameters. `$$` can be used to denote the `$`
  character.

  Examples:
  - `Failed to load '$0' which helps debug $1 the first time it
    is loaded. Again, $0 is very important.`
  - `Please pay $$10 to use $0 instead of $1.`

### #parameters

    def parameters() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Optional parameters to be embedded into the message.

### #parameters=

    def parameters=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Optional parameters to be embedded into the message.
**Returns**

- (::Array\<::String\>) --- Optional parameters to be embedded into the message.