Class ErrorEvent (0.124.4-beta)

Stay organized with collections Save and categorize content based on your preferences.
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

Implements

ErrorEventOrBuilder

Static Fields

CONTEXT_FIELD_NUMBER

public static final int CONTEXT_FIELD_NUMBER
Field Value
TypeDescription
int

EVENT_TIME_FIELD_NUMBER

public static final int EVENT_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

MESSAGE_FIELD_NUMBER

public static final int MESSAGE_FIELD_NUMBER
Field Value
TypeDescription
int

SERVICE_CONTEXT_FIELD_NUMBER

public static final int SERVICE_CONTEXT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ErrorEvent getDefaultInstance()
Returns
TypeDescription
ErrorEvent

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ErrorEvent.Builder newBuilder()
Returns
TypeDescription
ErrorEvent.Builder

newBuilder(ErrorEvent prototype)

public static ErrorEvent.Builder newBuilder(ErrorEvent prototype)
Parameter
NameDescription
prototypeErrorEvent
Returns
TypeDescription
ErrorEvent.Builder

parseDelimitedFrom(InputStream input)

public static ErrorEvent parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ErrorEvent
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ErrorEvent parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ErrorEvent
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ErrorEvent parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ErrorEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ErrorEvent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ErrorEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ErrorEvent parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ErrorEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ErrorEvent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ErrorEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ErrorEvent parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ErrorEvent
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ErrorEvent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ErrorEvent
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ErrorEvent parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ErrorEvent
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ErrorEvent parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ErrorEvent
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ErrorEvent parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ErrorEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ErrorEvent parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ErrorEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ErrorEvent> parser()
Returns
TypeDescription
Parser<ErrorEvent>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getContext()

public ErrorContext getContext()

Data about the context in which the error occurred.

.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;

Returns
TypeDescription
ErrorContext

The context.

getContextOrBuilder()

public ErrorContextOrBuilder getContextOrBuilder()

Data about the context in which the error occurred.

.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;

Returns
TypeDescription
ErrorContextOrBuilder

getDefaultInstanceForType()

public ErrorEvent getDefaultInstanceForType()
Returns
TypeDescription
ErrorEvent

getEventTime()

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
TypeDescription
Timestamp

The eventTime.

getEventTimeOrBuilder()

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
TypeDescription
TimestampOrBuilder

getMessage()

public String getMessage()

The stack trace that was reported or logged by the service.

string message = 3;

Returns
TypeDescription
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

The stack trace that was reported or logged by the service.

string message = 3;

Returns
TypeDescription
ByteString

The bytes for message.

getParserForType()

public Parser<ErrorEvent> getParserForType()
Returns
TypeDescription
Parser<ErrorEvent>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getServiceContext()

public ServiceContext getServiceContext()

The ServiceContext for which this error was reported.

.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;

Returns
TypeDescription
ServiceContext

The serviceContext.

getServiceContextOrBuilder()

public ServiceContextOrBuilder getServiceContextOrBuilder()

The ServiceContext for which this error was reported.

.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;

Returns
TypeDescription
ServiceContextOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasContext()

public boolean hasContext()

Data about the context in which the error occurred.

.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;

Returns
TypeDescription
boolean

Whether the context field is set.

hasEventTime()

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
TypeDescription
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
TypeDescription
boolean

Whether the serviceContext field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ErrorEvent.Builder newBuilderForType()
Returns
TypeDescription
ErrorEvent.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ErrorEvent.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ErrorEvent.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ErrorEvent.Builder toBuilder()
Returns
TypeDescription
ErrorEvent.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException