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.
19459 19460 19461 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19459 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
19430 19431 19432 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19430 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
19436 19437 19438 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19436 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 then use map, otherwise,
depending on the parameter value type, it could be one of string, number,
boolean, null, list or map. * MapValue value: If parameter's entity type is a
composite entity then use map from composite entity property names to property
values, otherwise, use parameter value.
Corresponds to the JSON property parameters
19452 19453 19454 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19452 def parameters @parameters end |
#text_override ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput
Represents the natural language text to be processed.
Corresponds to the JSON property textOverride
19457 19458 19459 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19457 def text_override @text_override end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
19464 19465 19466 19467 19468 19469 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19464 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 |