View Source GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2QueryParameters (google_api_dialogflow v0.78.0)

Represents the parameters of the conversational query.

Attributes

  • contexts (type: list(GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2Context.t), default: nil) - The collection of contexts to be activated before this query is executed.
  • geoLocation (type: GoogleApi.Dialogflow.V2.Model.GoogleTypeLatLng.t, default: nil) - The geo location of this conversational query.
  • payload (type: map(), default: nil) - 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.
  • platform (type: String.t, default: nil) - The platform of the virtual agent response messages. If not empty, only emits messages from this platform in the response. Valid values are the enum names of platform.
  • resetContexts (type: boolean(), default: nil) - Specifies whether to delete all contexts in the current session before the new ones are activated.
  • sentimentAnalysisRequestConfig (type: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SentimentAnalysisRequestConfig.t, default: nil) - Configures the type of sentiment analysis to perform. If not provided, sentiment analysis is not performed.
  • sessionEntityTypes (type: list(GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SessionEntityType.t), default: nil) - Additional session entity types to replace or extend developer entity types with. The entity synonyms apply to all languages and persist for the session of this query.
  • timeZone (type: String.t, default: nil) - 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.
  • webhookHeaders (type: map(), default: nil) - 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2QueryParameters{
  contexts:
    [GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2Context.t()] | nil,
  geoLocation: GoogleApi.Dialogflow.V2.Model.GoogleTypeLatLng.t() | nil,
  payload: map() | nil,
  platform: String.t() | nil,
  resetContexts: boolean() | nil,
  sentimentAnalysisRequestConfig:
    GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SentimentAnalysisRequestConfig.t()
    | nil,
  sessionEntityTypes:
    [GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SessionEntityType.t()]
    | nil,
  timeZone: String.t() | nil,
  webhookHeaders: map() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.