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.



19659
19660
19661
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19659

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)


19630
19631
19632
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19630

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



19636
19637
19638
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19636

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>)


19652
19653
19654
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19652

def parameters
  @parameters
end

#text_overrideGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput

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



19657
19658
19659
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19657

def text_override
  @text_override
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19664
19665
19666
19667
19668
19669
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19664

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