• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto
18 
19 package com.google.devtools.clouderrorreporting.v1beta1;
20 
21 public interface ReportedErrorEventOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * Optional. Time when the event occurred.
31    * If not provided, the time when the event was received by the
32    * Error Reporting system will be used.
33    * </pre>
34    *
35    * <code>.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL];
36    * </code>
37    *
38    * @return Whether the eventTime field is set.
39    */
hasEventTime()40   boolean hasEventTime();
41   /**
42    *
43    *
44    * <pre>
45    * Optional. Time when the event occurred.
46    * If not provided, the time when the event was received by the
47    * Error Reporting system will be used.
48    * </pre>
49    *
50    * <code>.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL];
51    * </code>
52    *
53    * @return The eventTime.
54    */
getEventTime()55   com.google.protobuf.Timestamp getEventTime();
56   /**
57    *
58    *
59    * <pre>
60    * Optional. Time when the event occurred.
61    * If not provided, the time when the event was received by the
62    * Error Reporting system will be used.
63    * </pre>
64    *
65    * <code>.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL];
66    * </code>
67    */
getEventTimeOrBuilder()68   com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder();
69 
70   /**
71    *
72    *
73    * <pre>
74    * Required. The service context in which this error has occurred.
75    * </pre>
76    *
77    * <code>
78    * .google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED];
79    * </code>
80    *
81    * @return Whether the serviceContext field is set.
82    */
hasServiceContext()83   boolean hasServiceContext();
84   /**
85    *
86    *
87    * <pre>
88    * Required. The service context in which this error has occurred.
89    * </pre>
90    *
91    * <code>
92    * .google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED];
93    * </code>
94    *
95    * @return The serviceContext.
96    */
getServiceContext()97   com.google.devtools.clouderrorreporting.v1beta1.ServiceContext getServiceContext();
98   /**
99    *
100    *
101    * <pre>
102    * Required. The service context in which this error has occurred.
103    * </pre>
104    *
105    * <code>
106    * .google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED];
107    * </code>
108    */
109   com.google.devtools.clouderrorreporting.v1beta1.ServiceContextOrBuilder
getServiceContextOrBuilder()110       getServiceContextOrBuilder();
111 
112   /**
113    *
114    *
115    * <pre>
116    * Required. The error message.
117    * If no `context.reportLocation` is provided, the message must contain a
118    * header (typically consisting of the exception type name and an error
119    * message) and an exception stack trace in one of the supported programming
120    * languages and formats.
121    * Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go.
122    * Supported stack trace formats are:
123    * * **Java**: Must be the return value of
124    * [`Throwable.printStackTrace()`](https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#printStackTrace%28%29).
125    * * **Python**: Must be the return value of
126    * [`traceback.format_exc()`](https://docs.python.org/2/library/traceback.html#traceback.format_exc).
127    * * **JavaScript**: Must be the value of
128    * [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API) as returned
129    * by V8.
130    * * **Ruby**: Must contain frames returned by
131    * [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace).
132    * * **C#**: Must be the return value of
133    * [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx).
134    * * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)`
135    * and contain the result of
136    * [`(string)$exception`](http://php.net/manual/en/exception.tostring.php).
137    * * **Go**: Must be the return value of
138    * [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack).
139    * </pre>
140    *
141    * <code>string message = 3 [(.google.api.field_behavior) = REQUIRED];</code>
142    *
143    * @return The message.
144    */
getMessage()145   java.lang.String getMessage();
146   /**
147    *
148    *
149    * <pre>
150    * Required. The error message.
151    * If no `context.reportLocation` is provided, the message must contain a
152    * header (typically consisting of the exception type name and an error
153    * message) and an exception stack trace in one of the supported programming
154    * languages and formats.
155    * Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go.
156    * Supported stack trace formats are:
157    * * **Java**: Must be the return value of
158    * [`Throwable.printStackTrace()`](https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#printStackTrace%28%29).
159    * * **Python**: Must be the return value of
160    * [`traceback.format_exc()`](https://docs.python.org/2/library/traceback.html#traceback.format_exc).
161    * * **JavaScript**: Must be the value of
162    * [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API) as returned
163    * by V8.
164    * * **Ruby**: Must contain frames returned by
165    * [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace).
166    * * **C#**: Must be the return value of
167    * [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx).
168    * * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)`
169    * and contain the result of
170    * [`(string)$exception`](http://php.net/manual/en/exception.tostring.php).
171    * * **Go**: Must be the return value of
172    * [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack).
173    * </pre>
174    *
175    * <code>string message = 3 [(.google.api.field_behavior) = REQUIRED];</code>
176    *
177    * @return The bytes for message.
178    */
getMessageBytes()179   com.google.protobuf.ByteString getMessageBytes();
180 
181   /**
182    *
183    *
184    * <pre>
185    * Optional. A description of the context in which the error occurred.
186    * </pre>
187    *
188    * <code>
189    * .google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL];
190    * </code>
191    *
192    * @return Whether the context field is set.
193    */
hasContext()194   boolean hasContext();
195   /**
196    *
197    *
198    * <pre>
199    * Optional. A description of the context in which the error occurred.
200    * </pre>
201    *
202    * <code>
203    * .google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL];
204    * </code>
205    *
206    * @return The context.
207    */
getContext()208   com.google.devtools.clouderrorreporting.v1beta1.ErrorContext getContext();
209   /**
210    *
211    *
212    * <pre>
213    * Optional. A description of the context in which the error occurred.
214    * </pre>
215    *
216    * <code>
217    * .google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL];
218    * </code>
219    */
getContextOrBuilder()220   com.google.devtools.clouderrorreporting.v1beta1.ErrorContextOrBuilder getContextOrBuilder();
221 }
222