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-03-21 UTC."],[[["This page provides documentation for the `ErrorReportingServiceOptions` class, which is used for configuring error reporting within the Google Cloud Diagnostics Common library."],["The `ErrorReportingServiceOptions` class allows setting properties like `Client`, `EventTarget`, `Options`, `ProjectId`, `ServiceName`, and `Version` to customize the behavior and destination of error reports."],["The `EventTarget` property defines where error reports are sent, defaulting to the Google Cloud project if running on Google Cloud and if `ProjectId` is not set, the project ID will be automatically detected."],["The `ProjectId` property can be set to explicitly define the Google Cloud project where logs are stored, serving as an alternative way to configure the `EventTarget`."],["The latest version of this content available is version 5.2.0, with multiple previous versions also listed in the document."]]],[]]