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
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 ReportedErrorEvent getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static ReportedErrorEvent.Builder newBuilder()
Returns
public static ReportedErrorEvent.Builder newBuilder(ReportedErrorEvent prototype)
Parameter
Returns
public static ReportedErrorEvent parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ReportedErrorEvent parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ReportedErrorEvent parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static ReportedErrorEvent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ReportedErrorEvent parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static ReportedErrorEvent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ReportedErrorEvent parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ReportedErrorEvent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ReportedErrorEvent parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ReportedErrorEvent parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ReportedErrorEvent parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static ReportedErrorEvent parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<ReportedErrorEvent> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
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
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
public ReportedErrorEvent getDefaultInstanceForType()
Returns
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
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
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
Type | Description |
String | The message.
|
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
public Parser<ReportedErrorEvent> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
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
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
public final UnknownFieldSet getUnknownFields()
Returns
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
Type | Description |
boolean | Whether the context field is set.
|
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
Type | Description |
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
Type | Description |
boolean | Whether the serviceContext field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public ReportedErrorEvent.Builder newBuilderForType()
Returns
protected ReportedErrorEvent.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public ReportedErrorEvent.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions