Class: Google::Apis::DialogflowV2::GoogleRpcStatus

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleRpcStatus

Returns a new instance of GoogleRpcStatus.



22413
22414
22415
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22413

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

Instance Attribute Details

#codeFixnum

Corresponds to the JSON property code

Returns:

  • (Fixnum)


22401
22402
22403
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22401

def code
  @code
end

#detailsArray<Hash<String,Object>>

Corresponds to the JSON property details

Returns:

  • (Array<Hash<String,Object>>)


22406
22407
22408
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22406

def details
  @details
end

#messageString

Corresponds to the JSON property message

Returns:

  • (String)


22411
22412
22413
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22411

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



22418
22419
22420
22421
22422
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22418

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @details = args[:details] if args.key?(:details)
  @message = args[:message] if args.key?(:message)
end