public final class ErrorEvent extends GeneratedMessageV3 implements ErrorEventOrBuilder
An error event which is returned by the Error Reporting system.
Protobuf type google.devtools.clouderrorreporting.v1beta1.ErrorEvent
Static Fields
CONTEXT_FIELD_NUMBER
public static final int CONTEXT_FIELD_NUMBER
Field Value
public static final int EVENT_TIME_FIELD_NUMBER
Field Value
public static final int MESSAGE_FIELD_NUMBER
Field Value
SERVICE_CONTEXT_FIELD_NUMBER
public static final int SERVICE_CONTEXT_FIELD_NUMBER
Field Value
Static Methods
public static ErrorEvent getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static ErrorEvent.Builder newBuilder()
Returns
public static ErrorEvent.Builder newBuilder(ErrorEvent prototype)
Parameter
Returns
public static ErrorEvent parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ErrorEvent parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ErrorEvent parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static ErrorEvent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ErrorEvent parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static ErrorEvent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ErrorEvent parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ErrorEvent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ErrorEvent parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ErrorEvent parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ErrorEvent parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static ErrorEvent parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<ErrorEvent> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
getContext()
public ErrorContext getContext()
Data about the context in which the error occurred.
.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;
Returns
getContextOrBuilder()
public ErrorContextOrBuilder getContextOrBuilder()
Data about the context in which the error occurred.
.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;
Returns
public ErrorEvent getDefaultInstanceForType()
Returns
public Timestamp getEventTime()
Time when the event occurred as provided in the error report.
If the report did not contain a timestamp, the time the error was received
by the Error Reporting system is used.
.google.protobuf.Timestamp event_time = 1;
Returns
public TimestampOrBuilder getEventTimeOrBuilder()
Time when the event occurred as provided in the error report.
If the report did not contain a timestamp, the time the error was received
by the Error Reporting system is used.
.google.protobuf.Timestamp event_time = 1;
Returns
public String getMessage()
The stack trace that was reported or logged by the service.
string message = 3;
Returns
Type | Description |
String | The message.
|
public ByteString getMessageBytes()
The stack trace that was reported or logged by the service.
string message = 3;
Returns
public Parser<ErrorEvent> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
getServiceContext()
public ServiceContext getServiceContext()
The ServiceContext
for which this error was reported.
.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;
Returns
getServiceContextOrBuilder()
public ServiceContextOrBuilder getServiceContextOrBuilder()
The ServiceContext
for which this error was reported.
.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;
Returns
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasContext()
public boolean hasContext()
Data about the context in which the error occurred.
.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;
Returns
Type | Description |
boolean | Whether the context field is set.
|
public boolean hasEventTime()
Time when the event occurred as provided in the error report.
If the report did not contain a timestamp, the time the error was received
by the Error Reporting system is used.
.google.protobuf.Timestamp event_time = 1;
Returns
Type | Description |
boolean | Whether the eventTime field is set.
|
hasServiceContext()
public boolean hasServiceContext()
The ServiceContext
for which this error was reported.
.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;
Returns
Type | Description |
boolean | Whether the serviceContext field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public ErrorEvent.Builder newBuilderForType()
Returns
protected ErrorEvent.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public ErrorEvent.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions