Class: Google::Apis::ClouddebuggerV2::FormatMessage

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/clouddebugger_v2/classes.rb,
generated/google/apis/clouddebugger_v2/representations.rb,
generated/google/apis/clouddebugger_v2/representations.rb

Overview

Represents a message with parameters.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ FormatMessage

Returns a new instance of FormatMessage



695
696
697
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 695

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#formatString

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

Returns:

  • (String)


693
694
695
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 693

def format
  @format
end

#parametersArray<String>

Optional parameters to be embedded into the message. Corresponds to the JSON property parameters

Returns:

  • (Array<String>)


682
683
684
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 682

def parameters
  @parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



700
701
702
703
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 700

def update!(**args)
  @parameters = args[:parameters] if args.key?(:parameters)
  @format = args[:format] if args.key?(:format)
end