Class: Google::Apis::ClouddebuggerV2::FormatMessage
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ClouddebuggerV2::FormatMessage
 
- 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
- 
  
    
      #format  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Format template for the message. 
- 
  
    
      #parameters  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional parameters to be embedded into the message. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ FormatMessage 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of FormatMessage. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ FormatMessage
Returns a new instance of FormatMessage
| 459 460 461 | # File 'generated/google/apis/clouddebugger_v2/classes.rb', line 459 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#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.Corresponds to the JSON propertyformat
| 452 453 454 | # File 'generated/google/apis/clouddebugger_v2/classes.rb', line 452 def format @format end | 
#parameters ⇒ Array<String>
Optional parameters to be embedded into the message.
Corresponds to the JSON property parameters
| 457 458 459 | # File 'generated/google/apis/clouddebugger_v2/classes.rb', line 457 def parameters @parameters end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 464 465 466 467 | # File 'generated/google/apis/clouddebugger_v2/classes.rb', line 464 def update!(**args) @format = args[:format] if args.key?(:format) @parameters = args[:parameters] if args.key?(:parameters) end |