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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eErrorReportingServiceOptions\u003c/code\u003e class, which is used for configuring error reporting within the Google Cloud Diagnostics Common library.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eErrorReportingServiceOptions\u003c/code\u003e class allows setting 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 the behavior and destination of error reports.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEventTarget\u003c/code\u003e property defines where error reports are sent, defaulting to the Google Cloud project if running on Google Cloud and if \u003ccode\u003eProjectId\u003c/code\u003e is not set, the project ID will be automatically detected.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eProjectId\u003c/code\u003e property can be set to explicitly define the Google Cloud project where logs are stored, serving as an alternative way to configure the \u003ccode\u003eEventTarget\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this content available is version 5.2.0, with multiple previous versions also listed in the document.\u003c/p\u003e\n"]]],[],null,[]]