Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionInput
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionInput
- 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
Represents the selection of a suggestion.
Instance Attribute Summary collapse
-
#answer_record ⇒ String
Required.
-
#intent_input ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentInput
Represents the intent to trigger programmatically rather than as a result of natural language processing.
-
#parameters ⇒ Hash<String,Object>
In Dialogflow assist for v3, the user can submit a form by sending a SuggestionInput.
-
#text_override ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput
Represents the natural language text to be processed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SuggestionInput
constructor
A new instance of GoogleCloudDialogflowV2beta1SuggestionInput.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SuggestionInput
Returns a new instance of GoogleCloudDialogflowV2beta1SuggestionInput.
16732 16733 16734 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16732 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer_record ⇒ String
Required. The ID of a suggestion selected by the human agent. The suggestion(s)
were generated in a previous call to request Dialogflow assist. The format is:
projects//locations//answerRecords/
where is an alphanumeric string.
Corresponds to the JSON property answerRecord
16703 16704 16705 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16703 def answer_record @answer_record end |
#intent_input ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentInput
Represents the intent to trigger programmatically rather than as a result of
natural language processing. The intent input is only used for V3 agent.
Corresponds to the JSON property intentInput
16709 16710 16711 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16709 def intent_input @intent_input end |
#parameters ⇒ Hash<String,Object>
In Dialogflow assist for v3, the user can submit a form by sending a
SuggestionInput. The form is uniquely determined by the answer_record field,
which identifies a v3 QueryResult containing the current page. The form
parameters are specified via the parameters field. Depending on your protocol
or client library language, this is a map, associative array, symbol table,
dictionary, or JSON object composed of a collection of (MapKey, MapValue)
pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: -
If parameter's entity type is a composite entity: map - Else: depending on
parameter value type, could be one of string, number, boolean, null, list or
map - MapValue value: - If parameter's entity type is a composite entity: map
from composite entity property names to property values - Else: parameter
value
Corresponds to the JSON property parameters
16725 16726 16727 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16725 def parameters @parameters end |
#text_override ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput
Represents the natural language text to be processed.
Corresponds to the JSON property textOverride
16730 16731 16732 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16730 def text_override @text_override end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16737 16738 16739 16740 16741 16742 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16737 def update!(**args) @answer_record = args[:answer_record] if args.key?(:answer_record) @intent_input = args[:intent_input] if args.key?(:intent_input) @parameters = args[:parameters] if args.key?(:parameters) @text_override = args[:text_override] if args.key?(:text_override) end |