Class ReportedErrorEvent (0.136.0-beta)

public final class ReportedErrorEvent extends GeneratedMessageV3 implements ReportedErrorEventOrBuilder

An error event which is reported to the Error Reporting system.

Protobuf type google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent

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 ReportedErrorEvent getDefaultInstance()
Returns
TypeDescription
ReportedErrorEvent

getDescriptor()

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

newBuilder()

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

newBuilder(ReportedErrorEvent prototype)

public static ReportedErrorEvent.Builder newBuilder(ReportedErrorEvent prototype)
Parameter
NameDescription
prototypeReportedErrorEvent
Returns
TypeDescription
ReportedErrorEvent.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getContext()

public ErrorContext getContext()

Optional. A description of the context in which the error occurred.

.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ErrorContext

The context.

getContextOrBuilder()

public ErrorContextOrBuilder getContextOrBuilder()

Optional. A description of the context in which the error occurred.

.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ErrorContextOrBuilder

getDefaultInstanceForType()

public ReportedErrorEvent getDefaultInstanceForType()
Returns
TypeDescription
ReportedErrorEvent

getEventTime()

public Timestamp getEventTime()

Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used.

.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Timestamp

The eventTime.

getEventTimeOrBuilder()

public TimestampOrBuilder getEventTimeOrBuilder()

Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used.

.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
TimestampOrBuilder

getMessage()

public String getMessage()

Required. The error message. If no context.reportLocation is provided, the message must contain a header (typically consisting of the exception type name and an error message) and an exception stack trace in one of the supported programming languages and formats. Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go. Supported stack trace formats are:

string message = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

Required. The error message. If no context.reportLocation is provided, the message must contain a header (typically consisting of the exception type name and an error message) and an exception stack trace in one of the supported programming languages and formats. Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go. Supported stack trace formats are:

string message = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for message.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getServiceContext()

public ServiceContext getServiceContext()

Required. The service context in which this error has occurred.

.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ServiceContext

The serviceContext.

getServiceContextOrBuilder()

public ServiceContextOrBuilder getServiceContextOrBuilder()

Required. The service context in which this error has occurred.

.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ServiceContextOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasContext()

public boolean hasContext()

Optional. A description of the context in which the error occurred.

.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the context field is set.

hasEventTime()

public boolean hasEventTime()

Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used.

.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the eventTime field is set.

hasServiceContext()

public boolean hasServiceContext()

Required. The service context in which this error has occurred.

.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED];

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 ReportedErrorEvent.Builder newBuilderForType()
Returns
TypeDescription
ReportedErrorEvent.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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