Information about the current execution platform.
Supported execution platforms are Google App Engine (GAE), Google Container Engine (GKE), and Google Compute Engine (GCE).
[[["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."],[[["\u003cp\u003eThe \u003ccode\u003ePlatform\u003c/code\u003e class provides information about the current execution environment, which can be Google App Engine (GAE), Google Container Engine (GKE), or Google Compute Engine (GCE).\u003c/p\u003e\n"],["\u003cp\u003eThe class supports the identification of the current platform and provides details specific to Cloud Run, GAE, GCE, and GKE, with properties like \u003ccode\u003eCloudRunDetails\u003c/code\u003e, \u003ccode\u003eGaeDetails\u003c/code\u003e, \u003ccode\u003eGceDetails\u003c/code\u003e, and \u003ccode\u003eGkeDetails\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can construct a \u003ccode\u003ePlatform\u003c/code\u003e object with or without platform-specific details, and when constructed without, the \u003ccode\u003eType\u003c/code\u003e property will be \u003ccode\u003eUnknown\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePlatform\u003c/code\u003e class has static methods \u003ccode\u003eInstance()\u003c/code\u003e and \u003ccode\u003eInstanceAsync()\u003c/code\u003e to get synchronous or asynchronous platform information, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe current Project ID can be retrieved via the \u003ccode\u003eProjectId\u003c/code\u003e property, which will be null if it can't be determined on the current platform.\u003c/p\u003e\n"]]],[],null,[]]