Class: Google::Apis::DialogflowV3::GoogleRpcStatus

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleRpcStatus

Returns a new instance of GoogleRpcStatus.



21873
21874
21875
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 21873

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

Instance Attribute Details

#codeFixnum

Corresponds to the JSON property code

Returns:

  • (Fixnum)


21861
21862
21863
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 21861

def code
  @code
end

#detailsArray<Hash<String,Object>>

Corresponds to the JSON property details

Returns:

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


21866
21867
21868
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 21866

def details
  @details
end

#messageString

Corresponds to the JSON property message

Returns:

  • (String)


21871
21872
21873
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 21871

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21878
21879
21880
21881
21882
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 21878

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