Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class State.
Represents an environment state. When an environment is pointed to a new
agent version, the environment is temporarily set to theLOADINGstate.
During that time, the environment keeps on serving the previous version of
the agent. After the new agent version is done loading, the environment is
set back to theRUNNINGstate.
[[["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 State (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-dialogflow/latest/V2.Environment.State)\n- [2.1.1](/php/docs/reference/cloud-dialogflow/2.1.1/V2.Environment.State)\n- [2.0.1](/php/docs/reference/cloud-dialogflow/2.0.1/V2.Environment.State)\n- [1.17.2](/php/docs/reference/cloud-dialogflow/1.17.2/V2.Environment.State)\n- [1.16.0](/php/docs/reference/cloud-dialogflow/1.16.0/V2.Environment.State)\n- [1.15.1](/php/docs/reference/cloud-dialogflow/1.15.1/V2.Environment.State)\n- [1.14.0](/php/docs/reference/cloud-dialogflow/1.14.0/V2.Environment.State)\n- [1.13.0](/php/docs/reference/cloud-dialogflow/1.13.0/V2.Environment.State)\n- [1.12.3](/php/docs/reference/cloud-dialogflow/1.12.3/V2.Environment.State)\n- [1.11.0](/php/docs/reference/cloud-dialogflow/1.11.0/V2.Environment.State)\n- [1.10.2](/php/docs/reference/cloud-dialogflow/1.10.2/V2.Environment.State)\n- [1.9.0](/php/docs/reference/cloud-dialogflow/1.9.0/V2.Environment.State)\n- [1.8.0](/php/docs/reference/cloud-dialogflow/1.8.0/V2.Environment.State)\n- [1.7.2](/php/docs/reference/cloud-dialogflow/1.7.2/V2.Environment.State)\n- [1.6.0](/php/docs/reference/cloud-dialogflow/1.6.0/V2.Environment.State)\n- [1.5.0](/php/docs/reference/cloud-dialogflow/1.5.0/V2.Environment.State)\n- [1.4.0](/php/docs/reference/cloud-dialogflow/1.4.0/V2.Environment.State)\n- [1.3.2](/php/docs/reference/cloud-dialogflow/1.3.2/V2.Environment.State)\n- [1.2.0](/php/docs/reference/cloud-dialogflow/1.2.0/V2.Environment.State)\n- [1.1.1](/php/docs/reference/cloud-dialogflow/1.1.1/V2.Environment.State)\n- [1.0.1](/php/docs/reference/cloud-dialogflow/1.0.1/V2.Environment.State) \nReference documentation and code samples for the Google Cloud Dialogflow V2 Client class State.\n\nRepresents an environment state. When an environment is pointed to a new\nagent version, the environment is temporarily set to the `LOADING` state.\n\nDuring that time, the environment keeps on serving the previous version of\nthe agent. After the new agent version is done loading, the environment is\nset back to the `RUNNING` state.\n\nProtobuf type `google.cloud.dialogflow.v2.Environment.State`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ V2 \\\\ Environment\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### STATE_UNSPECIFIED\n\n Value: 0\n\nNot specified. This value is not used.\n\nGenerated from protobuf enum `STATE_UNSPECIFIED = 0;`\n\n### STOPPED\n\n Value: 1\n\nStopped.\n\nGenerated from protobuf enum `STOPPED = 1;`\n\n### LOADING\n\n Value: 2\n\nLoading.\n\nGenerated from protobuf enum `LOADING = 2;`\n\n### RUNNING\n\n Value: 3\n\nRunning.\n\nGenerated from protobuf enum `RUNNING = 3;`"]]