class Google::Apis::ClouddebuggerV2::FormatMessage

Represents a message with parameters.

Attributes

format[RW]

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.` Corresponds to the JSON property `format` @return [String]

parameters[RW]

Optional parameters to be embedded into the message. Corresponds to the JSON property `parameters` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/clouddebugger_v2/classes.rb, line 203
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/clouddebugger_v2/classes.rb, line 208
def update!(**args)
  @format = args[:format] if args.key?(:format)
  @parameters = args[:parameters] if args.key?(:parameters)
end