Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest

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

The request message for ConversationProfiles.SetSuggestionFeature.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest

Returns a new instance of GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest.



14410
14411
14412
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14410

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

Instance Attribute Details

#participant_roleString

Required. The participant role to add or update the suggestion feature config. Only HUMAN_AGENT or END_USER can be used. Corresponds to the JSON property participantRole

Returns:

  • (String)


14403
14404
14405
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14403

def participant_role
  @participant_role
end

#suggestion_feature_configGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig

Config for suggestion features. Corresponds to the JSON property suggestionFeatureConfig



14408
14409
14410
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14408

def suggestion_feature_config
  @suggestion_feature_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14415
14416
14417
14418
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14415

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