Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1DetectIntentResponse

Returns a new instance of GoogleCloudDialogflowV2beta1DetectIntentResponse.



12961
12962
12963
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12961

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

Instance Attribute Details

#alternative_query_resultsArray<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryResult>

Corresponds to the JSON property alternativeQueryResults



12933
12934
12935
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12933

def alternative_query_results
  @alternative_query_results
end

#output_audioString

Corresponds to the JSON property outputAudio NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


12939
12940
12941
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12939

def output_audio
  @output_audio
end

#output_audio_configGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig

Corresponds to the JSON property outputAudioConfig



12944
12945
12946
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12944

def output_audio_config
  @output_audio_config
end

#query_resultGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryResult

Corresponds to the JSON property queryResult



12949
12950
12951
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12949

def query_result
  @query_result
end

#response_idString

Corresponds to the JSON property responseId

Returns:

  • (String)


12954
12955
12956
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12954

def response_id
  @response_id
end

#webhook_statusGoogle::Apis::DialogflowV2beta1::GoogleRpcStatus

Corresponds to the JSON property webhookStatus



12959
12960
12961
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12959

def webhook_status
  @webhook_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12966
12967
12968
12969
12970
12971
12972
12973
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12966

def update!(**args)
  @alternative_query_results = args[:alternative_query_results] if args.key?(:alternative_query_results)
  @output_audio = args[:output_audio] if args.key?(:output_audio)
  @output_audio_config = args[:output_audio_config] if args.key?(:output_audio_config)
  @query_result = args[:query_result] if args.key?(:query_result)
  @response_id = args[:response_id] if args.key?(:response_id)
  @webhook_status = args[:webhook_status] if args.key?(:webhook_status)
end