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/common.proto 18 19 package com.google.devtools.clouderrorreporting.v1beta1; 20 21 public interface ErrorEventOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.devtools.clouderrorreporting.v1beta1.ErrorEvent) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Time when the event occurred as provided in the error report. 31 * If the report did not contain a timestamp, the time the error was received 32 * by the Error Reporting system is used. 33 * </pre> 34 * 35 * <code>.google.protobuf.Timestamp event_time = 1;</code> 36 * 37 * @return Whether the eventTime field is set. 38 */ hasEventTime()39 boolean hasEventTime(); 40 /** 41 * 42 * 43 * <pre> 44 * Time when the event occurred as provided in the error report. 45 * If the report did not contain a timestamp, the time the error was received 46 * by the Error Reporting system is used. 47 * </pre> 48 * 49 * <code>.google.protobuf.Timestamp event_time = 1;</code> 50 * 51 * @return The eventTime. 52 */ getEventTime()53 com.google.protobuf.Timestamp getEventTime(); 54 /** 55 * 56 * 57 * <pre> 58 * Time when the event occurred as provided in the error report. 59 * If the report did not contain a timestamp, the time the error was received 60 * by the Error Reporting system is used. 61 * </pre> 62 * 63 * <code>.google.protobuf.Timestamp event_time = 1;</code> 64 */ getEventTimeOrBuilder()65 com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder(); 66 67 /** 68 * 69 * 70 * <pre> 71 * The `ServiceContext` for which this error was reported. 72 * </pre> 73 * 74 * <code>.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;</code> 75 * 76 * @return Whether the serviceContext field is set. 77 */ hasServiceContext()78 boolean hasServiceContext(); 79 /** 80 * 81 * 82 * <pre> 83 * The `ServiceContext` for which this error was reported. 84 * </pre> 85 * 86 * <code>.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;</code> 87 * 88 * @return The serviceContext. 89 */ getServiceContext()90 com.google.devtools.clouderrorreporting.v1beta1.ServiceContext getServiceContext(); 91 /** 92 * 93 * 94 * <pre> 95 * The `ServiceContext` for which this error was reported. 96 * </pre> 97 * 98 * <code>.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;</code> 99 */ 100 com.google.devtools.clouderrorreporting.v1beta1.ServiceContextOrBuilder getServiceContextOrBuilder()101 getServiceContextOrBuilder(); 102 103 /** 104 * 105 * 106 * <pre> 107 * The stack trace that was reported or logged by the service. 108 * </pre> 109 * 110 * <code>string message = 3;</code> 111 * 112 * @return The message. 113 */ getMessage()114 java.lang.String getMessage(); 115 /** 116 * 117 * 118 * <pre> 119 * The stack trace that was reported or logged by the service. 120 * </pre> 121 * 122 * <code>string message = 3;</code> 123 * 124 * @return The bytes for message. 125 */ getMessageBytes()126 com.google.protobuf.ByteString getMessageBytes(); 127 128 /** 129 * 130 * 131 * <pre> 132 * Data about the context in which the error occurred. 133 * </pre> 134 * 135 * <code>.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;</code> 136 * 137 * @return Whether the context field is set. 138 */ hasContext()139 boolean hasContext(); 140 /** 141 * 142 * 143 * <pre> 144 * Data about the context in which the error occurred. 145 * </pre> 146 * 147 * <code>.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;</code> 148 * 149 * @return The context. 150 */ getContext()151 com.google.devtools.clouderrorreporting.v1beta1.ErrorContext getContext(); 152 /** 153 * 154 * 155 * <pre> 156 * Data about the context in which the error occurred. 157 * </pre> 158 * 159 * <code>.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;</code> 160 */ getContextOrBuilder()161 com.google.devtools.clouderrorreporting.v1beta1.ErrorContextOrBuilder getContextOrBuilder(); 162 } 163