Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsRequest

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

Returns a new instance of GoogleCloudDialogflowV2GenerateSuggestionsRequest.



10296
10297
10298
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10296

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

Instance Attribute Details

#latest_messageString

Corresponds to the JSON property latestMessage

Returns:

  • (String)


10289
10290
10291
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10289

def latest_message
  @latest_message
end

#trigger_eventsArray<String>

Corresponds to the JSON property triggerEvents

Returns:

  • (Array<String>)


10294
10295
10296
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10294

def trigger_events
  @trigger_events
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10301
10302
10303
10304
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10301

def update!(**args)
  @latest_message = args[:latest_message] if args.key?(:latest_message)
  @trigger_events = args[:trigger_events] if args.key?(:trigger_events)
end