Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::BidiStreamingAnalyzeContentRequest::TurnInput (v1.18.0)

Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::BidiStreamingAnalyzeContentRequest::TurnInput.

Input that forms data for a single turn.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#event

def event() -> ::String
Returns
  • (::String) — The input event name. This can only be sent once and would cancel the ongoing speech recognition if any. To trigger the Welcome intent use the event "WELCOME"

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

#event=

def event=(value) -> ::String
Parameter
  • value (::String) — The input event name. This can only be sent once and would cancel the ongoing speech recognition if any. To trigger the Welcome intent use the event "WELCOME"

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

Returns
  • (::String) — The input event name. This can only be sent once and would cancel the ongoing speech recognition if any. To trigger the Welcome intent use the event "WELCOME"

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

#intent

def intent() -> ::String
Returns
  • (::String) — The intent to be triggered on V3 agent. Format: projects/<Project ID>/locations/<Location ID>/locations/ <Location ID>/agents/<Agent ID>/intents/<Intent ID>. This can only be used to trigger the Welcome intent id if the modality is text.

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

#intent=

def intent=(value) -> ::String
Parameter
  • value (::String) — The intent to be triggered on V3 agent. Format: projects/<Project ID>/locations/<Location ID>/locations/ <Location ID>/agents/<Agent ID>/intents/<Intent ID>. This can only be used to trigger the Welcome intent id if the modality is text.

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

Returns
  • (::String) — The intent to be triggered on V3 agent. Format: projects/<Project ID>/locations/<Location ID>/locations/ <Location ID>/agents/<Agent ID>/intents/<Intent ID>. This can only be used to trigger the Welcome intent id if the modality is text.

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

#suggestion_input

def suggestion_input() -> ::Google::Cloud::Dialogflow::V2::SuggestionInput
Returns
  • (::Google::Cloud::Dialogflow::V2::SuggestionInput) — Optional. Input for confirming, revising, or canceling a suggestion.

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

#suggestion_input=

def suggestion_input=(value) -> ::Google::Cloud::Dialogflow::V2::SuggestionInput
Parameter
  • value (::Google::Cloud::Dialogflow::V2::SuggestionInput) — Optional. Input for confirming, revising, or canceling a suggestion.

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

Returns
  • (::Google::Cloud::Dialogflow::V2::SuggestionInput) — Optional. Input for confirming, revising, or canceling a suggestion.

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

#text

def text() -> ::String
Returns
  • (::String) — The UTF-8 encoded natural language text to be processed.

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

#text=

def text=(value) -> ::String
Parameter
  • value (::String) — The UTF-8 encoded natural language text to be processed.

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

Returns
  • (::String) — The UTF-8 encoded natural language text to be processed.

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

#virtual_agent_parameters

def virtual_agent_parameters() -> ::Google::Protobuf::Struct
Returns

#virtual_agent_parameters=

def virtual_agent_parameters=(value) -> ::Google::Protobuf::Struct
Parameter
Returns