Class Google::Cloud::Dialogflow::CX::V3::QueryResult (v0.6.0)

Represents the result of a conversational query.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#current_page

def current_page() -> ::Google::Cloud::Dialogflow::CX::V3::Page
Returns

#current_page=

def current_page=(value) -> ::Google::Cloud::Dialogflow::CX::V3::Page
Parameter
Returns

#diagnostic_info

def diagnostic_info() -> ::Google::Protobuf::Struct
Returns
  • (::Google::Protobuf::Struct) — The free-form diagnostic info. For example, this field could contain webhook call latency. The string keys of the Struct's fields map can change without notice.

#diagnostic_info=

def diagnostic_info=(value) -> ::Google::Protobuf::Struct
Parameter
  • value (::Google::Protobuf::Struct) — The free-form diagnostic info. For example, this field could contain webhook call latency. The string keys of the Struct's fields map can change without notice.
Returns
  • (::Google::Protobuf::Struct) — The free-form diagnostic info. For example, this field could contain webhook call latency. The string keys of the Struct's fields map can change without notice.

#dtmf

def dtmf() -> ::Google::Cloud::Dialogflow::CX::V3::DtmfInput
Returns

#dtmf=

def dtmf=(value) -> ::Google::Cloud::Dialogflow::CX::V3::DtmfInput
Parameter
Returns

#intent

def intent() -> ::Google::Cloud::Dialogflow::CX::V3::Intent
Returns

#intent=

def intent=(value) -> ::Google::Cloud::Dialogflow::CX::V3::Intent
Parameter
Returns

#intent_detection_confidence

def intent_detection_confidence() -> ::Float
Returns
  • (::Float) — The intent detection confidence. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation. This field is deprecated, please use QueryResult.match instead.

#intent_detection_confidence=

def intent_detection_confidence=(value) -> ::Float
Parameter
  • value (::Float) — The intent detection confidence. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation. This field is deprecated, please use QueryResult.match instead.
Returns
  • (::Float) — The intent detection confidence. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation. This field is deprecated, please use QueryResult.match instead.

#language_code

def language_code() -> ::String
Returns
  • (::String) — The language that was triggered during intent detection. See Language Support for a list of the currently supported language codes.

#language_code=

def language_code=(value) -> ::String
Parameter
  • value (::String) — The language that was triggered during intent detection. See Language Support for a list of the currently supported language codes.
Returns
  • (::String) — The language that was triggered during intent detection. See Language Support for a list of the currently supported language codes.

#match

def match() -> ::Google::Cloud::Dialogflow::CX::V3::Match
Returns

#match=

def match=(value) -> ::Google::Cloud::Dialogflow::CX::V3::Match
Parameter
Returns

#parameters

def parameters() -> ::Google::Protobuf::Struct
Returns
  • (::Google::Protobuf::Struct) —

    The collected session parameters.

    Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs:

    • MapKey type: string
    • MapKey value: parameter name
    • MapValue type:
      • If parameter's entity type is a composite entity: map
      • Else: depending on parameter value type, could be one of string, number, boolean, null, list or map
    • MapValue value:
      • If parameter's entity type is a composite entity: map from composite entity property names to property values
      • Else: parameter value

#parameters=

def parameters=(value) -> ::Google::Protobuf::Struct
Parameter
  • value (::Google::Protobuf::Struct) —

    The collected session parameters.

    Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs:

    • MapKey type: string
    • MapKey value: parameter name
    • MapValue type:
      • If parameter's entity type is a composite entity: map
      • Else: depending on parameter value type, could be one of string, number, boolean, null, list or map
    • MapValue value:
      • If parameter's entity type is a composite entity: map from composite entity property names to property values
      • Else: parameter value
Returns
  • (::Google::Protobuf::Struct) —

    The collected session parameters.

    Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs:

    • MapKey type: string
    • MapKey value: parameter name
    • MapValue type:
      • If parameter's entity type is a composite entity: map
      • Else: depending on parameter value type, could be one of string, number, boolean, null, list or map
    • MapValue value:
      • If parameter's entity type is a composite entity: map from composite entity property names to property values
      • Else: parameter value

#response_messages

def response_messages() -> ::Array<::Google::Cloud::Dialogflow::CX::V3::ResponseMessage>
Returns

#response_messages=

def response_messages=(value) -> ::Array<::Google::Cloud::Dialogflow::CX::V3::ResponseMessage>
Parameter
Returns

#sentiment_analysis_result

def sentiment_analysis_result() -> ::Google::Cloud::Dialogflow::CX::V3::SentimentAnalysisResult
Returns

#sentiment_analysis_result=

def sentiment_analysis_result=(value) -> ::Google::Cloud::Dialogflow::CX::V3::SentimentAnalysisResult
Parameter
Returns

#text

def text() -> ::String
Returns
  • (::String) — If natural language text was provided as input, this field will contain a copy of the text.

#text=

def text=(value) -> ::String
Parameter
  • value (::String) — If natural language text was provided as input, this field will contain a copy of the text.
Returns
  • (::String) — If natural language text was provided as input, this field will contain a copy of the text.

#transcript

def transcript() -> ::String
Returns

#transcript=

def transcript=(value) -> ::String
Parameter
Returns

#trigger_event

def trigger_event() -> ::String
Returns
  • (::String) — If an event was provided as input, this field will contain the name of the event.

#trigger_event=

def trigger_event=(value) -> ::String
Parameter
  • value (::String) — If an event was provided as input, this field will contain the name of the event.
Returns
  • (::String) — If an event was provided as input, this field will contain the name of the event.

#trigger_intent

def trigger_intent() -> ::String
Returns
  • (::String) — If an intent was provided as input, this field will contain a copy of the intent identifier. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

#trigger_intent=

def trigger_intent=(value) -> ::String
Parameter
  • value (::String) — If an intent was provided as input, this field will contain a copy of the intent identifier. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.
Returns
  • (::String) — If an intent was provided as input, this field will contain a copy of the intent identifier. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

#webhook_payloads

def webhook_payloads() -> ::Array<::Google::Protobuf::Struct>
Returns

#webhook_payloads=

def webhook_payloads=(value) -> ::Array<::Google::Protobuf::Struct>
Parameter
Returns

#webhook_statuses

def webhook_statuses() -> ::Array<::Google::Rpc::Status>
Returns

#webhook_statuses=

def webhook_statuses=(value) -> ::Array<::Google::Rpc::Status>
Parameter
  • value (::Array<::Google::Rpc::Status>) — The list of webhook call status in the order of call sequence.
Returns