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.



10282
10283
10284
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10282

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

Instance Attribute Details

#latest_messageString

Corresponds to the JSON property latestMessage

Returns:

  • (String)


10275
10276
10277
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10275

def latest_message
  @latest_message
end

#trigger_eventsArray<String>

Corresponds to the JSON property triggerEvents

Returns:

  • (Array<String>)


10280
10281
10282
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10280

def trigger_events
  @trigger_events
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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