Class: Google::Apis::DialogflowV2beta1::GoogleRpcStatus

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleRpcStatus

Returns a new instance of GoogleRpcStatus.



22839
22840
22841
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22839

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

Instance Attribute Details

#codeFixnum

Corresponds to the JSON property code

Returns:

  • (Fixnum)


22827
22828
22829
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22827

def code
  @code
end

#detailsArray<Hash<String,Object>>

Corresponds to the JSON property details

Returns:

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


22832
22833
22834
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22832

def details
  @details
end

#messageString

Corresponds to the JSON property message

Returns:

  • (String)


22837
22838
22839
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22837

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



22844
22845
22846
22847
22848
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22844

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