code: public final ReportErrorEventResponse reportErrorEvent(
        ProjectName projectName, ReportedErrorEvent event) {
  
      ReportErrorEventRequest request =
          ReportErrorEventRequest.newBuilder()
              .setProjectName(projectName == null ? null : projectName.toString())
              .setEvent(event)
              .build();
      return reportErrorEvent(request);
    }
docs: Report an individual error event.
  
  <p>This endpoint accepts &lt;strong&gt;either&lt;/strong&gt; an OAuth token,
  &lt;strong&gt;or&lt;/strong&gt; an &lt;a
  href="https://support.google.com/cloud/answer/6158862"&gt;API key&lt;/a&gt; for authentication.
  To use an API key, append it to the URL as the value of a `key` parameter. For example:
  &lt;pre&gt;POST
  https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456&lt;/pre&gt;
  
  <p>Sample code:
  
  <pre><code>
  try (ReportErrorsServiceClient reportErrorsServiceClient = ReportErrorsServiceClient.create()) {
  ProjectName projectName = ProjectName.of("[PROJECT]");
  ReportedErrorEvent event = ReportedErrorEvent.newBuilder().build();
  ReportErrorEventResponse response = reportErrorsServiceClient.reportErrorEvent(projectName, event);
  }
  </code></pre>
  
  @param projectName [Required] The resource name of the Google Cloud Platform project. Written
  as `projects/` plus the [Google Cloud Platform project
  ID](https://support.google.com/cloud/answer/6158840). Example: `projects/my-project-123`.
  @param event [Required] The error event to be reported.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails