report an individual error event . this endpoint accepts < strong > either < / strong > an oauth token , < strong > or < / strong > an < a href = `` https://support.google.com/cloud/answer/6158862 '' > api key < / a > for authentication . to use an api key , append it to the url as the value of a ` key ` parameter . for example : < pre > post https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123abc456&lt;/pre&gt ; sample code : try reporterrorsserviceclient reporterrorsserviceclient = reporterrorsserviceclient.create projectname projectname = projectname.create '' project '' ; reportederrorevent event = reportederrorevent.newbuilder . build ; reporterroreventrequest request = reporterroreventrequest.newbuilder . setprojectnamewithprojectname projectname . setevent event . build ; apifuture < reporterroreventresponse > future = reporterrorsserviceclient.reporterroreventcallable . futurecall request ; / / do something reporterroreventresponse response = future.get ; concode_field_sep ReportErrorsServiceSettings settings concode_elem_sep ScheduledExecutorService executor concode_elem_sep ManagedChannel channel concode_elem_sep List<AutoCloseable> closeables concode_elem_sep UnaryCallable<ReportErrorEventRequest,ReportErrorEventResponse> reportErrorEventCallable concode_field_sep ReportErrorEventResponse reportErrorEvent concode_elem_sep ReportErrorEventResponse reportErrorEvent concode_elem_sep ReportErrorsServiceSettings getSettings concode_elem_sep ReportErrorsServiceClient create concode_elem_sep ReportErrorsServiceClient create concode_elem_sep void close
UnaryCallable < ReportErrorEventRequest , ReportErrorEventResponse > function ( ) { return reportErrorEventCallable ; }