Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionInput

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

Represents the selection of a suggestion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SuggestionInput

Returns a new instance of GoogleCloudDialogflowV2beta1SuggestionInput.



18238
18239
18240
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18238

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

Instance Attribute Details

#answer_recordString

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

Returns:

  • (String)


18209
18210
18211
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18209

def answer_record
  @answer_record
end

#intent_inputGoogle::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



18215
18216
18217
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18215

def intent_input
  @intent_input
end

#parametersHash<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

Returns:

  • (Hash<String,Object>)


18231
18232
18233
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18231

def parameters
  @parameters
end

#text_overrideGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput

Represents the natural language text to be processed. Corresponds to the JSON property textOverride



18236
18237
18238
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18236

def text_override
  @text_override
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18243
18244
18245
18246
18247
18248
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18243

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