[[["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 Functions V2 Client - Class State (2.0.6)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.6 (latest)](/php/docs/reference/cloud-functions/latest/V2.PBFunction.State)\n- [2.0.5](/php/docs/reference/cloud-functions/2.0.5/V2.PBFunction.State)\n- [1.7.0](/php/docs/reference/cloud-functions/1.7.0/V2.PBFunction.State)\n- [1.6.5](/php/docs/reference/cloud-functions/1.6.5/V2.PBFunction.State)\n- [1.5.0](/php/docs/reference/cloud-functions/1.5.0/V2.PBFunction.State)\n- [1.4.2](/php/docs/reference/cloud-functions/1.4.2/V2.PBFunction.State)\n- [1.3.1](/php/docs/reference/cloud-functions/1.3.1/V2.PBFunction.State)\n- [1.2.0](/php/docs/reference/cloud-functions/1.2.0/V2.PBFunction.State)\n- [1.1.2](/php/docs/reference/cloud-functions/1.1.2/V2.PBFunction.State)\n- [1.0.3](/php/docs/reference/cloud-functions/1.0.3/V2.PBFunction.State) \nReference documentation and code samples for the Google Cloud Functions V2 Client class State.\n\nDescribes the current state of the function.\n\nProtobuf type `google.cloud.functions.v2.Function.State`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Functions \\\\ V2 \\\\ PBFunction\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. Invalid state.\n\nGenerated from protobuf enum `STATE_UNSPECIFIED = 0;`\n\n### ACTIVE\n\n Value: 1\n\nFunction has been successfully deployed and is serving.\n\nGenerated from protobuf enum `ACTIVE = 1;`\n\n### FAILED\n\n Value: 2\n\nFunction deployment failed and the function is not serving.\n\nGenerated from protobuf enum `FAILED = 2;`\n\n### DEPLOYING\n\n Value: 3\n\nFunction is being created or updated.\n\nGenerated from protobuf enum `DEPLOYING = 3;`\n\n### DELETING\n\n Value: 4\n\nFunction is being deleted.\n\nGenerated from protobuf enum `DELETING = 4;`\n\n### UNKNOWN\n\n Value: 5\n\nFunction deployment failed and the function serving state is undefined.\n\nThe function should be updated or deleted to move it out of this state.\n\nGenerated from protobuf enum `UNKNOWN = 5;`"]]