Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::StreamingDetectIntentResponse.
The top-level message returned from the [StreamingDetectIntent][] method.
Multiple response messages can be returned in order:
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.The next message contains
response_id
,query_result
and optionallywebhook_status
if a WebHook was called.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#debugging_info
def debugging_info() -> ::Google::Cloud::Dialogflow::V2::CloudConversationDebuggingInfo
- (::Google::Cloud::Dialogflow::V2::CloudConversationDebuggingInfo) — Debugging info that would get populated when StreamingDetectIntentRequest.enable_debugging_info is set to true.
#debugging_info=
def debugging_info=(value) -> ::Google::Cloud::Dialogflow::V2::CloudConversationDebuggingInfo
- value (::Google::Cloud::Dialogflow::V2::CloudConversationDebuggingInfo) — Debugging info that would get populated when StreamingDetectIntentRequest.enable_debugging_info is set to true.
- (::Google::Cloud::Dialogflow::V2::CloudConversationDebuggingInfo) — Debugging info that would get populated when StreamingDetectIntentRequest.enable_debugging_info is set to true.
#output_audio
def output_audio() -> ::String
-
(::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.
#output_audio=
def output_audio=(value) -> ::String
-
value (::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.
-
(::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.
#output_audio_config
def output_audio_config() -> ::Google::Cloud::Dialogflow::V2::OutputAudioConfig
- (::Google::Cloud::Dialogflow::V2::OutputAudioConfig) — The config used by the speech synthesizer to generate the output audio.
#output_audio_config=
def output_audio_config=(value) -> ::Google::Cloud::Dialogflow::V2::OutputAudioConfig
- value (::Google::Cloud::Dialogflow::V2::OutputAudioConfig) — The config used by the speech synthesizer to generate the output audio.
- (::Google::Cloud::Dialogflow::V2::OutputAudioConfig) — The config used by the speech synthesizer to generate the output audio.
#query_result
def query_result() -> ::Google::Cloud::Dialogflow::V2::QueryResult
- (::Google::Cloud::Dialogflow::V2::QueryResult) — The result of the conversational query or event processing.
#query_result=
def query_result=(value) -> ::Google::Cloud::Dialogflow::V2::QueryResult
- value (::Google::Cloud::Dialogflow::V2::QueryResult) — The result of the conversational query or event processing.
- (::Google::Cloud::Dialogflow::V2::QueryResult) — The result of the conversational query or event processing.
#recognition_result
def recognition_result() -> ::Google::Cloud::Dialogflow::V2::StreamingRecognitionResult
- (::Google::Cloud::Dialogflow::V2::StreamingRecognitionResult) — The result of speech recognition.
#recognition_result=
def recognition_result=(value) -> ::Google::Cloud::Dialogflow::V2::StreamingRecognitionResult
- value (::Google::Cloud::Dialogflow::V2::StreamingRecognitionResult) — The result of speech recognition.
- (::Google::Cloud::Dialogflow::V2::StreamingRecognitionResult) — The result of speech recognition.
#response_id
def response_id() -> ::String
- (::String) — The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.
#response_id=
def response_id=(value) -> ::String
- value (::String) — The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.
- (::String) — The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.
#webhook_status
def webhook_status() -> ::Google::Rpc::Status
- (::Google::Rpc::Status) — Specifies the status of the webhook request.
#webhook_status=
def webhook_status=(value) -> ::Google::Rpc::Status
- value (::Google::Rpc::Status) — Specifies the status of the webhook request.
- (::Google::Rpc::Status) — Specifies the status of the webhook request.