Class: Google::Apis::ClouddebuggerV2::StatusMessage

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 contextual status message. The message can indicate an error or informational status, and refer to specific parts of the containing object. For example, the Breakpoint.status field can indicate an error referring to the BREAKPOINT_SOURCE_LOCATION with the message Location not found.

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) ⇒ StatusMessage

Returns a new instance of StatusMessage.


173
174
175
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 173

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

Instance Attribute Details

#descriptionGoogle::Apis::ClouddebuggerV2::FormatMessage

Represents a message with parameters. Corresponds to the JSON property description


171
172
173
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 171

def description
  @description
end

#is_errorBoolean Also known as: is_error?

Distinguishes errors from informational messages. Corresponds to the JSON property isError

Returns:

  • (Boolean)

160
161
162
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 160

def is_error
  @is_error
end

#refers_toString

Reference to which the message applies. Corresponds to the JSON property refersTo

Returns:

  • (String)

166
167
168
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 166

def refers_to
  @refers_to
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


178
179
180
181
182
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 178

def update!(**args)
  @is_error = args[:is_error] if args.key?(:is_error)
  @refers_to = args[:refers_to] if args.key?(:refers_to)
  @description = args[:description] if args.key?(:description)
end