Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::QueryParameters (v0.16.0)

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

Represents the parameters of the conversational query.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#contexts

def contexts() -> ::Array<::Google::Cloud::Dialogflow::V2::Context>
Returns

#contexts=

def contexts=(value) -> ::Array<::Google::Cloud::Dialogflow::V2::Context>
Parameter
Returns

#geo_location

def geo_location() -> ::Google::Type::LatLng
Returns

#geo_location=

def geo_location=(value) -> ::Google::Type::LatLng
Parameter
Returns

#payload

def payload() -> ::Google::Protobuf::Struct
Returns
  • (::Google::Protobuf::Struct) — This field can be used to pass custom data to your webhook. Arbitrary JSON objects are supported. If supplied, the value is used to populate the WebhookRequest.original_detect_intent_request.payload field sent to your webhook.

#payload=

def payload=(value) -> ::Google::Protobuf::Struct
Parameter
  • value (::Google::Protobuf::Struct) — This field can be used to pass custom data to your webhook. Arbitrary JSON objects are supported. If supplied, the value is used to populate the WebhookRequest.original_detect_intent_request.payload field sent to your webhook.
Returns
  • (::Google::Protobuf::Struct) — This field can be used to pass custom data to your webhook. Arbitrary JSON objects are supported. If supplied, the value is used to populate the WebhookRequest.original_detect_intent_request.payload field sent to your webhook.

#reset_contexts

def reset_contexts() -> ::Boolean
Returns
  • (::Boolean) — Specifies whether to delete all contexts in the current session before the new ones are activated.

#reset_contexts=

def reset_contexts=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Specifies whether to delete all contexts in the current session before the new ones are activated.
Returns
  • (::Boolean) — Specifies whether to delete all contexts in the current session before the new ones are activated.

#sentiment_analysis_request_config

def sentiment_analysis_request_config() -> ::Google::Cloud::Dialogflow::V2::SentimentAnalysisRequestConfig
Returns

#sentiment_analysis_request_config=

def sentiment_analysis_request_config=(value) -> ::Google::Cloud::Dialogflow::V2::SentimentAnalysisRequestConfig
Parameter
Returns

#session_entity_types

def session_entity_types() -> ::Array<::Google::Cloud::Dialogflow::V2::SessionEntityType>
Returns

#session_entity_types=

def session_entity_types=(value) -> ::Array<::Google::Cloud::Dialogflow::V2::SessionEntityType>
Parameter
Returns

#time_zone

def time_zone() -> ::String
Returns
  • (::String) — The time zone of this conversational query from the time zone database, e.g., America/New_York, Europe/Paris. If not provided, the time zone specified in agent settings is used.

#time_zone=

def time_zone=(value) -> ::String
Parameter
  • value (::String) — The time zone of this conversational query from the time zone database, e.g., America/New_York, Europe/Paris. If not provided, the time zone specified in agent settings is used.
Returns
  • (::String) — The time zone of this conversational query from the time zone database, e.g., America/New_York, Europe/Paris. If not provided, the time zone specified in agent settings is used.

#webhook_headers

def webhook_headers() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — This field can be used to pass HTTP headers for a webhook call. These headers will be sent to webhook along with the headers that have been configured through the Dialogflow web console. The headers defined within this field will overwrite the headers configured through the Dialogflow console if there is a conflict. Header names are case-insensitive. Google's specified headers are not allowed. Including: "Host", "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding", "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.

#webhook_headers=

def webhook_headers=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — This field can be used to pass HTTP headers for a webhook call. These headers will be sent to webhook along with the headers that have been configured through the Dialogflow web console. The headers defined within this field will overwrite the headers configured through the Dialogflow console if there is a conflict. Header names are case-insensitive. Google's specified headers are not allowed. Including: "Host", "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding", "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — This field can be used to pass HTTP headers for a webhook call. These headers will be sent to webhook along with the headers that have been configured through the Dialogflow web console. The headers defined within this field will overwrite the headers configured through the Dialogflow console if there is a conflict. Header names are case-insensitive. Google's specified headers are not allowed. Including: "Host", "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding", "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.