Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class QueryParameters.
Represents the parameters of the conversational query.
Generated from protobuf messagegoogle.cloud.dialogflow.v2.QueryParameters
Namespace
Google \ Cloud \ Dialogflow \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ time_zone
string
The time zone of this conversational query from thetime zone database, e.g., America/New_York, Europe/Paris. If not provided, the time zone specified in agent settings is used.
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.
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 theWebhookRequest.original_detect_intent_request.payloadfield sent to your webhook.
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.
↳ platform
string
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 ofplatform.
getTimeZone
The time zone of this conversational query from thetime zone database, e.g.,
America/New_York, Europe/Paris. If not provided, the time zone specified in
agent settings is used.
Returns
Type
Description
string
setTimeZone
The time zone of this conversational query from thetime zone database, e.g.,
America/New_York, Europe/Paris. If not provided, the time zone specified in
agent settings is used.
Specifies whether to delete all contexts in the current session
before the new ones are activated.
Returns
Type
Description
bool
setResetContexts
Specifies whether to delete all contexts in the current session
before the new ones are activated.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getSessionEntityTypes
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.
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.
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 theWebhookRequest.original_detect_intent_request.payloadfield sent to your webhook.
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 theWebhookRequest.original_detect_intent_request.payloadfield sent to your webhook.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Dialogflow V2 Client - Class QueryParameters (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-dialogflow/latest/V2.QueryParameters)\n- [2.1.1](/php/docs/reference/cloud-dialogflow/2.1.1/V2.QueryParameters)\n- [2.0.1](/php/docs/reference/cloud-dialogflow/2.0.1/V2.QueryParameters)\n- [1.17.2](/php/docs/reference/cloud-dialogflow/1.17.2/V2.QueryParameters)\n- [1.16.0](/php/docs/reference/cloud-dialogflow/1.16.0/V2.QueryParameters)\n- [1.15.1](/php/docs/reference/cloud-dialogflow/1.15.1/V2.QueryParameters)\n- [1.14.0](/php/docs/reference/cloud-dialogflow/1.14.0/V2.QueryParameters)\n- [1.13.0](/php/docs/reference/cloud-dialogflow/1.13.0/V2.QueryParameters)\n- [1.12.3](/php/docs/reference/cloud-dialogflow/1.12.3/V2.QueryParameters)\n- [1.11.0](/php/docs/reference/cloud-dialogflow/1.11.0/V2.QueryParameters)\n- [1.10.2](/php/docs/reference/cloud-dialogflow/1.10.2/V2.QueryParameters)\n- [1.9.0](/php/docs/reference/cloud-dialogflow/1.9.0/V2.QueryParameters)\n- [1.8.0](/php/docs/reference/cloud-dialogflow/1.8.0/V2.QueryParameters)\n- [1.7.2](/php/docs/reference/cloud-dialogflow/1.7.2/V2.QueryParameters)\n- [1.6.0](/php/docs/reference/cloud-dialogflow/1.6.0/V2.QueryParameters)\n- [1.5.0](/php/docs/reference/cloud-dialogflow/1.5.0/V2.QueryParameters)\n- [1.4.0](/php/docs/reference/cloud-dialogflow/1.4.0/V2.QueryParameters)\n- [1.3.2](/php/docs/reference/cloud-dialogflow/1.3.2/V2.QueryParameters)\n- [1.2.0](/php/docs/reference/cloud-dialogflow/1.2.0/V2.QueryParameters)\n- [1.1.1](/php/docs/reference/cloud-dialogflow/1.1.1/V2.QueryParameters)\n- [1.0.1](/php/docs/reference/cloud-dialogflow/1.0.1/V2.QueryParameters) \nReference documentation and code samples for the Google Cloud Dialogflow V2 Client class QueryParameters.\n\nRepresents the parameters of the conversational query.\n\nGenerated from protobuf message `google.cloud.dialogflow.v2.QueryParameters`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getTimeZone\n\nThe time zone of this conversational query from the\n[time zone database](https://www.iana.org/time-zones), e.g.,\nAmerica/New_York, Europe/Paris. If not provided, the time zone specified in\nagent settings is used.\n\n### setTimeZone\n\nThe time zone of this conversational query from the\n[time zone database](https://www.iana.org/time-zones), e.g.,\nAmerica/New_York, Europe/Paris. If not provided, the time zone specified in\nagent settings is used.\n\n### getGeoLocation\n\nThe geo location of this conversational query.\n\n### hasGeoLocation\n\n### clearGeoLocation\n\n### setGeoLocation\n\nThe geo location of this conversational query.\n\n### getContexts\n\nThe collection of contexts to be activated before this query is\nexecuted.\n\n### setContexts\n\nThe collection of contexts to be activated before this query is\nexecuted.\n\n### getResetContexts\n\nSpecifies whether to delete all contexts in the current session\nbefore the new ones are activated.\n\n### setResetContexts\n\nSpecifies whether to delete all contexts in the current session\nbefore the new ones are activated.\n\n### getSessionEntityTypes\n\nAdditional session entity types to replace or extend developer\nentity types with. The entity synonyms apply to all languages and persist\nfor the session of this query.\n\n### setSessionEntityTypes\n\nAdditional session entity types to replace or extend developer\nentity types with. The entity synonyms apply to all languages and persist\nfor the session of this query.\n\n### getPayload\n\nThis field can be used to pass custom data to your webhook.\n\nArbitrary JSON objects are supported.\nIf supplied, the value is used to populate the\n`WebhookRequest.original_detect_intent_request.payload`\nfield sent to your webhook.\n\n### hasPayload\n\n### clearPayload\n\n### setPayload\n\nThis field can be used to pass custom data to your webhook.\n\nArbitrary JSON objects are supported.\nIf supplied, the value is used to populate the\n`WebhookRequest.original_detect_intent_request.payload`\nfield sent to your webhook.\n\n### getSentimentAnalysisRequestConfig\n\nConfigures the type of sentiment analysis to perform. If not\nprovided, sentiment analysis is not performed.\n\n### hasSentimentAnalysisRequestConfig\n\n### clearSentimentAnalysisRequestConfig\n\n### setSentimentAnalysisRequestConfig\n\nConfigures the type of sentiment analysis to perform. If not\nprovided, sentiment analysis is not performed.\n\n### getWebhookHeaders\n\nThis field can be used to pass HTTP headers for a webhook\ncall. These headers will be sent to webhook along with the headers that\nhave been configured through the Dialogflow web console. The headers\ndefined within this field will overwrite the headers configured through the\nDialogflow console if there is a conflict. Header names are\ncase-insensitive. Google's specified headers are not allowed. Including:\n\"Host\", \"Content-Length\", \"Connection\", \"From\", \"User-Agent\",\n\"Accept-Encoding\", \"If-Modified-Since\", \"If-None-Match\", \"X-Forwarded-For\",\netc.\n\n### setWebhookHeaders\n\nThis field can be used to pass HTTP headers for a webhook\ncall. These headers will be sent to webhook along with the headers that\nhave been configured through the Dialogflow web console. The headers\ndefined within this field will overwrite the headers configured through the\nDialogflow console if there is a conflict. Header names are\ncase-insensitive. Google's specified headers are not allowed. Including:\n\"Host\", \"Content-Length\", \"Connection\", \"From\", \"User-Agent\",\n\"Accept-Encoding\", \"If-Modified-Since\", \"If-None-Match\", \"X-Forwarded-For\",\netc.\n\n### getPlatform\n\nThe platform of the virtual agent response messages.\n\nIf not empty, only emits messages from this platform in the response.\nValid values are the enum names of\n[platform](/php/docs/reference/cloud-dialogflow/latest/V2.Intent.Message#_Google_Cloud_Dialogflow_V2_Intent_Message__getPlatform__).\n\n### setPlatform\n\nThe platform of the virtual agent response messages.\n\nIf not empty, only emits messages from this platform in the response.\nValid values are the enum names of\n[platform](/php/docs/reference/cloud-dialogflow/latest/V2.Intent.Message#_Google_Cloud_Dialogflow_V2_Intent_Message__getPlatform__)."]]