Where to send error reports to. Will ultimately represent a Google Project or Organization.
May be set by setting ProjectId.
May be null if running on Google Cloud in which case the
Google Cloud Platform project ID will be detected from the platform
and used to build the event target.
The Google Cloud Project ID to store the logs in.
May be null if running on Google Cloud, in which case, and if EventTarget is
also null the project ID will be detected from the platform
and used to build the log target.
This is an alternate way to set EventTarget for Project.
[[["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-08-07 UTC."],[[["\u003cp\u003eThis documentation details the \u003ccode\u003eErrorReportingServiceOptions\u003c/code\u003e class, which is used for configuring error reporting in Google Cloud Diagnostics.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eErrorReportingServiceOptions\u003c/code\u003e class allows developers to set properties like \u003ccode\u003eClient\u003c/code\u003e, \u003ccode\u003eEventTarget\u003c/code\u003e, \u003ccode\u003eOptions\u003c/code\u003e, \u003ccode\u003eProjectId\u003c/code\u003e, \u003ccode\u003eServiceName\u003c/code\u003e, and \u003ccode\u003eVersion\u003c/code\u003e to customize error logging behavior.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eErrorReportingServiceOptions\u003c/code\u003e is 5.2.0, and older versions like 5.1.0, 5.0.0, 4.4.0, and 4.3.1 are also documented.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eEventTarget\u003c/code\u003e and \u003ccode\u003eProjectId\u003c/code\u003e are key properties, and if they are not set and running on Google Cloud, the project ID will be automatically detected.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eobject\u003c/code\u003e and includes inherited members such as \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, \u003ccode\u003eMemberwiseClone()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]