Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionTriggerSettings

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

Overview

Settings of suggestion trigger.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionTriggerSettings

Returns a new instance of GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionTriggerSettings.



8890
8891
8892
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8890

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

Instance Attribute Details

#no_smalltalkBoolean Also known as: no_smalltalk?

Do not trigger if last utterance is small talk. Corresponds to the JSON property noSmalltalk

Returns:

  • (Boolean)


8881
8882
8883
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8881

def no_smalltalk
  @no_smalltalk
end

#only_end_userBoolean Also known as: only_end_user?

Only trigger suggestion if participant role of last utterance is END_USER. Corresponds to the JSON property onlyEndUser

Returns:

  • (Boolean)


8887
8888
8889
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8887

def only_end_user
  @only_end_user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8895
8896
8897
8898
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8895

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