Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb

Overview

Sample response that the agent can use. This could be based on applicable instructions and ingested data from other systems.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse

Returns a new instance of GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse.



16695
16696
16697
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16695

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

Instance Attribute Details

#duplicate_check_resultGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult

Duplication check for the suggestion. Corresponds to the JSON property duplicateCheckResult



16683
16684
16685
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16683

def duplicate_check_result
  @duplicate_check_result
end

#response_textString

Optional. Sample response for Agent in text. Corresponds to the JSON property responseText

Returns:

  • (String)


16688
16689
16690
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16688

def response_text
  @response_text
end

#sourcesGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2AgentCoachingSuggestionSources

Sources for the suggestion. Corresponds to the JSON property sources



16693
16694
16695
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16693

def sources
  @sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16700
16701
16702
16703
16704
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16700

def update!(**args)
  @duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
  @response_text = args[:response_text] if args.key?(:response_text)
  @sources = args[:sources] if args.key?(:sources)
end