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 |
---|
Type | Description |
int | |
public static final int EVENT_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int MESSAGE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
SERVICE_CONTEXT_FIELD_NUMBER
public static final int SERVICE_CONTEXT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static ErrorEvent getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static ErrorEvent.Builder newBuilder()
public static ErrorEvent.Builder newBuilder(ErrorEvent prototype)
public static ErrorEvent parseDelimitedFrom(InputStream input)
public static ErrorEvent parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ErrorEvent parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static ErrorEvent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ErrorEvent parseFrom(ByteString data)
public static ErrorEvent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ErrorEvent parseFrom(CodedInputStream input)
public static ErrorEvent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ErrorEvent parseFrom(InputStream input)
public static ErrorEvent parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ErrorEvent parseFrom(ByteBuffer data)
public static ErrorEvent parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<ErrorEvent> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getContext()
public ErrorContext getContext()
Data about the context in which the error occurred.
.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;
getContextOrBuilder()
public ErrorContextOrBuilder getContextOrBuilder()
Data about the context in which the error occurred.
.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;
public ErrorEvent getDefaultInstanceForType()
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 |
---|
Type | Description |
Timestamp | The eventTime.
|
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;
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 |
---|
Type | Description |
ByteString | The bytes for message.
|
public Parser<ErrorEvent> getParserForType()
Overrides
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getServiceContext()
public ServiceContext getServiceContext()
The ServiceContext
for which this error was reported.
.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;
getServiceContextOrBuilder()
public ServiceContextOrBuilder getServiceContextOrBuilder()
The ServiceContext
for which this error was reported.
.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;
public final UnknownFieldSet getUnknownFields()
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 |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ErrorEvent.Builder newBuilderForType()
protected ErrorEvent.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public ErrorEvent.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides