Class: Google::Cloud::Dialogflow::V2::StreamingAnalyzeContentRequest

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

Overview

The top-level message sent by the client to the Participants.StreamingAnalyzeContent method.

Multiple request messages should be sent in order:

  1. The first message must contain participant, [config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config] and optionally query_params. If you want to receive an audio response, it should also contain reply_audio_config. The message must not contain [input][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.input].

  2. If [config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config] in the first message was set to audio_config, all subsequent messages must contain input_audio to continue with Speech recognition. However, note that:

* Dialogflow will bill you for the audio so far.
* Dialogflow discards all Speech recognition results in favor of the
  text input.
  1. If [StreamingAnalyzeContentRequest.config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config] in the first message was set to StreamingAnalyzeContentRequest.text_config, then the second message must contain only input_text. Moreover, you must not send more than two messages.

After you sent all input, you must half-close or abort the request stream.

Instance Attribute Summary collapse

Instance Attribute Details

#assist_query_params::Google::Cloud::Dialogflow::V2::AssistQueryParameters



494
495
496
497
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 494

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

#audio_config::Google::Cloud::Dialogflow::V2::InputAudioConfig



494
495
496
497
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 494

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

#cx_parameters::Google::Protobuf::Struct



494
495
496
497
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 494

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

#enable_debugging_info::Boolean



494
495
496
497
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 494

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

#enable_extended_streaming::Boolean



494
495
496
497
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 494

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

#enable_partial_automated_agent_reply::Boolean



494
495
496
497
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 494

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

#input_audio::String



494
495
496
497
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 494

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

#input_dtmf::Google::Cloud::Dialogflow::V2::TelephonyDtmfEvents



494
495
496
497
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 494

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

#input_text::String



494
495
496
497
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 494

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

#participant::String



494
495
496
497
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 494

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

#query_params::Google::Cloud::Dialogflow::V2::QueryParameters



494
495
496
497
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 494

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

#reply_audio_config::Google::Cloud::Dialogflow::V2::OutputAudioConfig



494
495
496
497
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 494

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

#text_config::Google::Cloud::Dialogflow::V2::InputTextConfig



494
495
496
497
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 494

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