Class: Google::Cloud::Dialogflow::V2::QueryInput

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

Overview

Represents the query input. It can contain either:

  1. An audio config which instructs the speech recognizer how to process the speech audio.

  2. A conversational query in the form of text.

  3. An event that specifies which intent to trigger.

Instance Attribute Summary collapse

Instance Attribute Details

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

Returns Instructs the speech recognizer how to process the speech audio.

Note: The following fields are mutually exclusive: audio_config, text, event. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Cloud::Dialogflow::V2::InputAudioConfig)

    Instructs the speech recognizer how to process the speech audio.

    Note: The following fields are mutually exclusive: audio_config, text, event. If a field in that set is populated, all other fields in the set will automatically be cleared.



204
205
206
207
# File 'proto_docs/google/cloud/dialogflow/v2/session.rb', line 204

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

#event::Google::Cloud::Dialogflow::V2::EventInput

Returns The event to be processed.

Note: The following fields are mutually exclusive: event, audio_config, text. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Cloud::Dialogflow::V2::EventInput)

    The event to be processed.

    Note: The following fields are mutually exclusive: event, audio_config, text. If a field in that set is populated, all other fields in the set will automatically be cleared.



204
205
206
207
# File 'proto_docs/google/cloud/dialogflow/v2/session.rb', line 204

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

#text::Google::Cloud::Dialogflow::V2::TextInput

Returns The natural language text to be processed. Text length must not exceed 256 character for virtual agent interactions.

Note: The following fields are mutually exclusive: text, audio_config, event. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Cloud::Dialogflow::V2::TextInput)

    The natural language text to be processed. Text length must not exceed 256 character for virtual agent interactions.

    Note: The following fields are mutually exclusive: text, audio_config, event. If a field in that set is populated, all other fields in the set will automatically be cleared.



204
205
206
207
# File 'proto_docs/google/cloud/dialogflow/v2/session.rb', line 204

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