Stackdriver Debugger V2 Client - Class FormatMessage (1.5.1)

Reference documentation and code samples for the Stackdriver Debugger V2 Client class FormatMessage.

Represents a message with parameters.

Generated from protobuf message google.devtools.clouddebugger.v2.FormatMessage

Namespace

Google \ Cloud \ Debugger \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ format 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 array

Optional parameters to be embedded into the message.

getFormat

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
Type Description
string

setFormat

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ドル.
Parameter
Name Description
var string
Returns
Type Description
$this

getParameters

Optional parameters to be embedded into the message.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setParameters

Optional parameters to be embedded into the message.

Parameter
Name Description
var string[]
Returns
Type Description
$this

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.