Class: Google::Cloud::Dialogflow::V2::StreamingDetectIntentResponse

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/dialogflow/v2/session.rb

Overview

The top-level message returned from the StreamingDetectIntent method.

Multiple response messages can be returned in order:

  1. If the StreamingDetectIntentRequest.input_audio field was set, the recognition_result field is populated for one or more messages. See the StreamingRecognitionResult message for details about the result message sequence.

  2. The next message contains response_id, query_result and optionally webhook_status if a WebHook was called.

Instance Attribute Summary collapse

Instance Attribute Details

#debugging_info::Google::Cloud::Dialogflow::V2::CloudConversationDebuggingInfo

Returns Debugging info that would get populated when StreamingDetectIntentRequest.enable_debugging_info is set to true.

Returns:



541
542
543
544
# File 'proto_docs/google/cloud/dialogflow/v2/session.rb', line 541

class StreamingDetectIntentResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#output_audio::String

Returns The audio data bytes encoded as specified in the request. Note: The output audio is generated based on the values of default platform text responses found in the query_result.fulfillment_messages field. If multiple default text responses exist, they will be concatenated when generating audio. If no default platform text responses exist, the generated audio content will be empty.

In some scenarios, multiple output audio fields may be present in the response structure. In these cases, only the top-most-level audio output has content.

Returns:

  • (::String)

    The audio data bytes encoded as specified in the request. Note: The output audio is generated based on the values of default platform text responses found in the query_result.fulfillment_messages field. If multiple default text responses exist, they will be concatenated when generating audio. If no default platform text responses exist, the generated audio content will be empty.

    In some scenarios, multiple output audio fields may be present in the response structure. In these cases, only the top-most-level audio output has content.



541
542
543
544
# File 'proto_docs/google/cloud/dialogflow/v2/session.rb', line 541

class StreamingDetectIntentResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#output_audio_config::Google::Cloud::Dialogflow::V2::OutputAudioConfig

Returns The config used by the speech synthesizer to generate the output audio.

Returns:



541
542
543
544
# File 'proto_docs/google/cloud/dialogflow/v2/session.rb', line 541

class StreamingDetectIntentResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#query_result::Google::Cloud::Dialogflow::V2::QueryResult

Returns The result of the conversational query or event processing.

Returns:



541
542
543
544
# File 'proto_docs/google/cloud/dialogflow/v2/session.rb', line 541

class StreamingDetectIntentResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#recognition_result::Google::Cloud::Dialogflow::V2::StreamingRecognitionResult

Returns The result of speech recognition.

Returns:



541
542
543
544
# File 'proto_docs/google/cloud/dialogflow/v2/session.rb', line 541

class StreamingDetectIntentResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#response_id::String

Returns The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.

Returns:

  • (::String)

    The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.



541
542
543
544
# File 'proto_docs/google/cloud/dialogflow/v2/session.rb', line 541

class StreamingDetectIntentResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#webhook_status::Google::Rpc::Status

Returns Specifies the status of the webhook request.

Returns:



541
542
543
544
# File 'proto_docs/google/cloud/dialogflow/v2/session.rb', line 541

class StreamingDetectIntentResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end