Class: Google::Apis::DialogflowV3beta1::GoogleRpcStatus

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleRpcStatus

Returns a new instance of GoogleRpcStatus.



23210
23211
23212
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 23210

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

Instance Attribute Details

#codeFixnum

Corresponds to the JSON property code

Returns:

  • (Fixnum)


23198
23199
23200
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 23198

def code
  @code
end

#detailsArray<Hash<String,Object>>

Corresponds to the JSON property details

Returns:

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


23203
23204
23205
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 23203

def details
  @details
end

#messageString

Corresponds to the JSON property message

Returns:

  • (String)


23208
23209
23210
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 23208

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23215
23216
23217
23218
23219
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 23215

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