1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto
4 package clouderrorreporting
6 import proto "github.com/golang/protobuf/proto"
9 import _ "google.golang.org/genproto/googleapis/api/annotations"
10 import google_protobuf1 "github.com/golang/protobuf/ptypes/timestamp"
13 context "golang.org/x/net/context"
14 grpc "google.golang.org/grpc"
17 // Reference imports to suppress errors if they are not otherwise used.
22 // A request for reporting an individual error event.
23 type ReportErrorEventRequest struct {
24 // [Required] The resource name of the Google Cloud Platform project. Written
25 // as `projects/` plus the
26 // [Google Cloud Platform project ID](https://support.google.com/cloud/answer/6158840).
27 // Example: `projects/my-project-123`.
28 ProjectName string `protobuf:"bytes,1,opt,name=project_name,json=projectName" json:"project_name,omitempty"`
29 // [Required] The error event to be reported.
30 Event *ReportedErrorEvent `protobuf:"bytes,2,opt,name=event" json:"event,omitempty"`
33 func (m *ReportErrorEventRequest) Reset() { *m = ReportErrorEventRequest{} }
34 func (m *ReportErrorEventRequest) String() string { return proto.CompactTextString(m) }
35 func (*ReportErrorEventRequest) ProtoMessage() {}
36 func (*ReportErrorEventRequest) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
38 func (m *ReportErrorEventRequest) GetProjectName() string {
45 func (m *ReportErrorEventRequest) GetEvent() *ReportedErrorEvent {
52 // Response for reporting an individual error event.
53 // Data may be added to this message in the future.
54 type ReportErrorEventResponse struct {
57 func (m *ReportErrorEventResponse) Reset() { *m = ReportErrorEventResponse{} }
58 func (m *ReportErrorEventResponse) String() string { return proto.CompactTextString(m) }
59 func (*ReportErrorEventResponse) ProtoMessage() {}
60 func (*ReportErrorEventResponse) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{1} }
62 // An error event which is reported to the Error Reporting system.
63 type ReportedErrorEvent struct {
64 // [Optional] Time when the event occurred.
65 // If not provided, the time when the event was received by the
66 // Error Reporting system will be used.
67 EventTime *google_protobuf1.Timestamp `protobuf:"bytes,1,opt,name=event_time,json=eventTime" json:"event_time,omitempty"`
68 // [Required] The service context in which this error has occurred.
69 ServiceContext *ServiceContext `protobuf:"bytes,2,opt,name=service_context,json=serviceContext" json:"service_context,omitempty"`
70 // [Required] A message describing the error. The message can contain an
71 // exception stack in one of the supported programming languages and formats.
72 // In that case, the message is parsed and detailed exception information
73 // is returned when retrieving the error event again.
74 Message string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
75 // [Optional] A description of the context in which the error occurred.
76 Context *ErrorContext `protobuf:"bytes,4,opt,name=context" json:"context,omitempty"`
79 func (m *ReportedErrorEvent) Reset() { *m = ReportedErrorEvent{} }
80 func (m *ReportedErrorEvent) String() string { return proto.CompactTextString(m) }
81 func (*ReportedErrorEvent) ProtoMessage() {}
82 func (*ReportedErrorEvent) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{2} }
84 func (m *ReportedErrorEvent) GetEventTime() *google_protobuf1.Timestamp {
91 func (m *ReportedErrorEvent) GetServiceContext() *ServiceContext {
93 return m.ServiceContext
98 func (m *ReportedErrorEvent) GetMessage() string {
105 func (m *ReportedErrorEvent) GetContext() *ErrorContext {
113 proto.RegisterType((*ReportErrorEventRequest)(nil), "google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest")
114 proto.RegisterType((*ReportErrorEventResponse)(nil), "google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse")
115 proto.RegisterType((*ReportedErrorEvent)(nil), "google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent")
118 // Reference imports to suppress errors if they are not otherwise used.
119 var _ context.Context
120 var _ grpc.ClientConn
122 // This is a compile-time assertion to ensure that this generated file
123 // is compatible with the grpc package it is being compiled against.
124 const _ = grpc.SupportPackageIsVersion4
126 // Client API for ReportErrorsService service
128 type ReportErrorsServiceClient interface {
129 // Report an individual error event.
131 // This endpoint accepts <strong>either</strong> an OAuth token,
132 // <strong>or</strong> an
133 // <a href="https://support.google.com/cloud/answer/6158862">API key</a>
134 // for authentication. To use an API key, append it to the URL as the value of
135 // a `key` parameter. For example:
136 // <pre>POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456</pre>
137 ReportErrorEvent(ctx context.Context, in *ReportErrorEventRequest, opts ...grpc.CallOption) (*ReportErrorEventResponse, error)
140 type reportErrorsServiceClient struct {
144 func NewReportErrorsServiceClient(cc *grpc.ClientConn) ReportErrorsServiceClient {
145 return &reportErrorsServiceClient{cc}
148 func (c *reportErrorsServiceClient) ReportErrorEvent(ctx context.Context, in *ReportErrorEventRequest, opts ...grpc.CallOption) (*ReportErrorEventResponse, error) {
149 out := new(ReportErrorEventResponse)
150 err := grpc.Invoke(ctx, "/google.devtools.clouderrorreporting.v1beta1.ReportErrorsService/ReportErrorEvent", in, out, c.cc, opts...)
157 // Server API for ReportErrorsService service
159 type ReportErrorsServiceServer interface {
160 // Report an individual error event.
162 // This endpoint accepts <strong>either</strong> an OAuth token,
163 // <strong>or</strong> an
164 // <a href="https://support.google.com/cloud/answer/6158862">API key</a>
165 // for authentication. To use an API key, append it to the URL as the value of
166 // a `key` parameter. For example:
167 // <pre>POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456</pre>
168 ReportErrorEvent(context.Context, *ReportErrorEventRequest) (*ReportErrorEventResponse, error)
171 func RegisterReportErrorsServiceServer(s *grpc.Server, srv ReportErrorsServiceServer) {
172 s.RegisterService(&_ReportErrorsService_serviceDesc, srv)
175 func _ReportErrorsService_ReportErrorEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
176 in := new(ReportErrorEventRequest)
177 if err := dec(in); err != nil {
180 if interceptor == nil {
181 return srv.(ReportErrorsServiceServer).ReportErrorEvent(ctx, in)
183 info := &grpc.UnaryServerInfo{
185 FullMethod: "/google.devtools.clouderrorreporting.v1beta1.ReportErrorsService/ReportErrorEvent",
187 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
188 return srv.(ReportErrorsServiceServer).ReportErrorEvent(ctx, req.(*ReportErrorEventRequest))
190 return interceptor(ctx, in, info, handler)
193 var _ReportErrorsService_serviceDesc = grpc.ServiceDesc{
194 ServiceName: "google.devtools.clouderrorreporting.v1beta1.ReportErrorsService",
195 HandlerType: (*ReportErrorsServiceServer)(nil),
196 Methods: []grpc.MethodDesc{
198 MethodName: "ReportErrorEvent",
199 Handler: _ReportErrorsService_ReportErrorEvent_Handler,
202 Streams: []grpc.StreamDesc{},
203 Metadata: "google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto",
207 proto.RegisterFile("google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto", fileDescriptor3)
210 var fileDescriptor3 = []byte{
211 // 475 bytes of a gzipped FileDescriptorProto
212 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0xcd, 0x6e, 0xd3, 0x40,
213 0x10, 0xc7, 0xe5, 0xf0, 0x51, 0x75, 0x83, 0x00, 0x2d, 0x07, 0x2c, 0x0b, 0x89, 0x12, 0x2e, 0x15,
214 0x48, 0x5e, 0x12, 0x2e, 0xa4, 0x15, 0xaa, 0x94, 0x12, 0xf5, 0x86, 0x2a, 0x17, 0x38, 0x70, 0xc0,
215 0xda, 0x38, 0x83, 0x65, 0x14, 0xef, 0x98, 0xdd, 0x8d, 0x85, 0x84, 0xb8, 0xf0, 0x0a, 0x7d, 0x05,
216 0x4e, 0xbc, 0x4e, 0x5f, 0x80, 0x03, 0x0f, 0xc1, 0x11, 0xed, 0x57, 0x14, 0x48, 0x0e, 0x98, 0x1e,
217 0xc7, 0xe3, 0xf9, 0xfd, 0xff, 0xf3, 0xb1, 0xe4, 0xa4, 0x44, 0x2c, 0x17, 0xc0, 0xe6, 0xd0, 0x6a,
218 0xc4, 0x85, 0x62, 0xc5, 0x02, 0x97, 0x73, 0x90, 0x12, 0xa5, 0x84, 0x06, 0xa5, 0xae, 0x44, 0xc9,
219 0xda, 0xe1, 0x0c, 0x34, 0x1f, 0x32, 0xf7, 0x25, 0xb7, 0x59, 0x95, 0x2b, 0x90, 0x6d, 0x55, 0x40,
220 0xda, 0x48, 0xd4, 0x48, 0x1f, 0x3b, 0x50, 0x1a, 0x40, 0xe9, 0x16, 0x50, 0xea, 0x41, 0xc9, 0x3d,
221 0xaf, 0xca, 0x9b, 0x8a, 0x71, 0x21, 0x50, 0x73, 0x5d, 0xa1, 0x50, 0x0e, 0x95, 0x3c, 0xeb, 0xe2,
222 0xa9, 0xc0, 0xba, 0x46, 0xe1, 0x2b, 0xef, 0xfb, 0x4a, 0x1b, 0xcd, 0x96, 0xef, 0x99, 0xae, 0x6a,
223 0x50, 0x9a, 0xd7, 0x8d, 0xfb, 0x61, 0x70, 0x1e, 0x91, 0xbb, 0x99, 0x65, 0x4c, 0x0d, 0x6e, 0xda,
224 0x82, 0xd0, 0x19, 0x7c, 0x5c, 0x82, 0xd2, 0xf4, 0x01, 0xb9, 0xd1, 0x48, 0xfc, 0x00, 0x85, 0xce,
225 0x05, 0xaf, 0x21, 0x8e, 0xf6, 0xa2, 0xfd, 0xdd, 0xac, 0xef, 0xbf, 0xbd, 0xe4, 0x35, 0xd0, 0xd7,
226 0xe4, 0x1a, 0x98, 0x92, 0xb8, 0xb7, 0x17, 0xed, 0xf7, 0x47, 0x47, 0x69, 0x87, 0xa6, 0x53, 0xa7,
227 0x0b, 0xf3, 0x35, 0x65, 0x47, 0x1b, 0x24, 0x24, 0xde, 0x34, 0xa5, 0x1a, 0x14, 0x0a, 0x06, 0xdf,
228 0x7a, 0x84, 0x6e, 0x56, 0xd2, 0x31, 0x21, 0xb6, 0x36, 0x37, 0x1d, 0x5a, 0xab, 0xfd, 0x51, 0x12,
229 0xec, 0x84, 0xf6, 0xd3, 0x57, 0xa1, 0xfd, 0x6c, 0xd7, 0xfe, 0x6d, 0x62, 0x3a, 0x27, 0xb7, 0xfc,
230 0xea, 0xf2, 0x02, 0x85, 0x86, 0x4f, 0xa1, 0x9d, 0xc3, 0x4e, 0xed, 0x9c, 0x39, 0xc6, 0xb1, 0x43,
231 0x64, 0x37, 0xd5, 0x1f, 0x31, 0x8d, 0xc9, 0x4e, 0x0d, 0x4a, 0xf1, 0x12, 0xe2, 0x2b, 0x76, 0x90,
232 0x21, 0xa4, 0x67, 0x64, 0x27, 0xe8, 0x5e, 0xb5, 0xba, 0xe3, 0x4e, 0xba, 0x76, 0x08, 0x41, 0x35,
233 0x90, 0x46, 0xbf, 0x22, 0x72, 0x67, 0x6d, 0x86, 0xca, 0xbb, 0xa3, 0x3f, 0x22, 0x72, 0xfb, 0xef,
234 0xd9, 0xd2, 0x17, 0xff, 0xb1, 0xb7, 0x8d, 0x7b, 0x49, 0xa6, 0x97, 0xa4, 0xf8, 0x05, 0x1f, 0x7d,
235 0xbd, 0xf8, 0x79, 0xde, 0x1b, 0x0f, 0x9e, 0xac, 0x4e, 0xfa, 0xf3, 0xfa, 0x19, 0x3e, 0xf7, 0x81,
236 0x62, 0x8f, 0xbe, 0x30, 0xbb, 0x44, 0x75, 0xe0, 0xe8, 0x07, 0xee, 0x7a, 0x26, 0x17, 0x11, 0x31,
237 0xaf, 0xa0, 0x8b, 0x9b, 0x49, 0xbc, 0x65, 0x56, 0xa7, 0xe6, 0x6a, 0x4e, 0xa3, 0xb7, 0xef, 0x3c,
238 0xa8, 0xc4, 0x05, 0x17, 0x65, 0x8a, 0xb2, 0x64, 0x25, 0x08, 0x7b, 0x53, 0xcc, 0xa5, 0x78, 0x53,
239 0xa9, 0x7f, 0x7a, 0x9d, 0x87, 0x5b, 0x72, 0xdf, 0x7b, 0x0f, 0x4f, 0x9c, 0xc0, 0xb1, 0x49, 0xba,
240 0x7d, 0x66, 0x2b, 0x87, 0x6f, 0x86, 0x13, 0x53, 0x39, 0xbb, 0x6e, 0x05, 0x9f, 0xfe, 0x0e, 0x00,
241 0x00, 0xff, 0xff, 0x9d, 0xe5, 0xc6, 0x91, 0xa1, 0x04, 0x00, 0x00,