Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettings

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

Overview

Settings of suggestion trigger.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettings

Returns a new instance of GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettings.



14527
14528
14529
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14527

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

Instance Attribute Details

#no_small_talkBoolean Also known as: no_small_talk?

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

Returns:

  • (Boolean)


14518
14519
14520
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14518

def no_small_talk
  @no_small_talk
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)


14524
14525
14526
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14524

def only_end_user
  @only_end_user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14532
14533
14534
14535
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14532

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