Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::StreamingDetectIntentResponse (v0.19.0)

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:

  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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#output_audio

def output_audio() -> ::String
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.

#output_audio=

def output_audio=(value) -> ::String
Parameter
  • 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.

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.

#output_audio_config

def output_audio_config() -> ::Google::Cloud::Dialogflow::V2::OutputAudioConfig
Returns

#output_audio_config=

def output_audio_config=(value) -> ::Google::Cloud::Dialogflow::V2::OutputAudioConfig
Parameter
Returns

#query_result

def query_result() -> ::Google::Cloud::Dialogflow::V2::QueryResult
Returns

#query_result=

def query_result=(value) -> ::Google::Cloud::Dialogflow::V2::QueryResult
Parameter
Returns

#recognition_result

def recognition_result() -> ::Google::Cloud::Dialogflow::V2::StreamingRecognitionResult
Returns

#recognition_result=

def recognition_result=(value) -> ::Google::Cloud::Dialogflow::V2::StreamingRecognitionResult
Parameter
Returns

#response_id

def response_id() -> ::String
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.

#response_id=

def response_id=(value) -> ::String
Parameter
  • 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.
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.

#webhook_status

def webhook_status() -> ::Google::Rpc::Status
Returns

#webhook_status=

def webhook_status=(value) -> ::Google::Rpc::Status
Parameter
Returns