Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2QueryResult

Returns a new instance of GoogleCloudDialogflowV2QueryResult.



14518
14519
14520
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14518

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

Instance Attribute Details

#actionString

Corresponds to the JSON property action

Returns:

  • (String)


14439
14440
14441
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14439

def action
  @action
end

#all_required_params_presentBoolean Also known as: all_required_params_present?

Corresponds to the JSON property allRequiredParamsPresent

Returns:

  • (Boolean)


14444
14445
14446
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14444

def all_required_params_present
  @all_required_params_present
end

#cancels_slot_fillingBoolean Also known as: cancels_slot_filling?

Corresponds to the JSON property cancelsSlotFilling

Returns:

  • (Boolean)


14450
14451
14452
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14450

def cancels_slot_filling
  @cancels_slot_filling
end

#diagnostic_infoHash<String,Object>

Corresponds to the JSON property diagnosticInfo

Returns:

  • (Hash<String,Object>)


14456
14457
14458
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14456

def diagnostic_info
  @diagnostic_info
end

#fulfillment_messagesArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessage>

Corresponds to the JSON property fulfillmentMessages



14461
14462
14463
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14461

def fulfillment_messages
  @fulfillment_messages
end

#fulfillment_textString

Corresponds to the JSON property fulfillmentText

Returns:

  • (String)


14466
14467
14468
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14466

def fulfillment_text
  @fulfillment_text
end

#intentGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent

Corresponds to the JSON property intent



14471
14472
14473
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14471

def intent
  @intent
end

#intent_detection_confidenceFloat

Corresponds to the JSON property intentDetectionConfidence

Returns:

  • (Float)


14476
14477
14478
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14476

def intent_detection_confidence
  @intent_detection_confidence
end

#language_codeString

Corresponds to the JSON property languageCode

Returns:

  • (String)


14481
14482
14483
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14481

def language_code
  @language_code
end

#output_contextsArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context>

Corresponds to the JSON property outputContexts



14486
14487
14488
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14486

def output_contexts
  @output_contexts
end

#parametersHash<String,Object>

Corresponds to the JSON property parameters

Returns:

  • (Hash<String,Object>)


14491
14492
14493
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14491

def parameters
  @parameters
end

#query_textString

Corresponds to the JSON property queryText

Returns:

  • (String)


14496
14497
14498
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14496

def query_text
  @query_text
end

#sentiment_analysis_resultGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2SentimentAnalysisResult

Corresponds to the JSON property sentimentAnalysisResult



14501
14502
14503
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14501

def sentiment_analysis_result
  @sentiment_analysis_result
end

#speech_recognition_confidenceFloat

Corresponds to the JSON property speechRecognitionConfidence

Returns:

  • (Float)


14506
14507
14508
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14506

def speech_recognition_confidence
  @speech_recognition_confidence
end

#webhook_payloadHash<String,Object>

Corresponds to the JSON property webhookPayload

Returns:

  • (Hash<String,Object>)


14511
14512
14513
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14511

def webhook_payload
  @webhook_payload
end

#webhook_sourceString

Corresponds to the JSON property webhookSource

Returns:

  • (String)


14516
14517
14518
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14516

def webhook_source
  @webhook_source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14523

def update!(**args)
  @action = args[:action] if args.key?(:action)
  @all_required_params_present = args[:all_required_params_present] if args.key?(:all_required_params_present)
  @cancels_slot_filling = args[:cancels_slot_filling] if args.key?(:cancels_slot_filling)
  @diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info)
  @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
  @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
  @intent = args[:intent] if args.key?(:intent)
  @intent_detection_confidence = args[:intent_detection_confidence] if args.key?(:intent_detection_confidence)
  @language_code = args[:language_code] if args.key?(:language_code)
  @output_contexts = args[:output_contexts] if args.key?(:output_contexts)
  @parameters = args[:parameters] if args.key?(:parameters)
  @query_text = args[:query_text] if args.key?(:query_text)
  @sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
  @speech_recognition_confidence = args[:speech_recognition_confidence] if args.key?(:speech_recognition_confidence)
  @webhook_payload = args[:webhook_payload] if args.key?(:webhook_payload)
  @webhook_source = args[:webhook_source] if args.key?(:webhook_source)
end