- 0.173.0-beta (latest)
- 0.172.0-beta
- 0.170.0-beta
- 0.169.0-beta
- 0.168.0-beta
- 0.167.0-beta
- 0.166.0-beta
- 0.165.0-beta
- 0.164.0-beta
- 0.163.0-beta
- 0.162.0-beta
- 0.161.0-beta
- 0.160.0-beta
- 0.158.0-beta
- 0.157.0-beta
- 0.156.0-beta
- 0.155.0-beta
- 0.154.0-beta
- 0.153.0-beta
- 0.152.0-beta
- 0.151.0-beta
- 0.150.0-beta
- 0.149.0-beta
- 0.148.0-beta
- 0.145.0-beta
- 0.144.0-beta
- 0.143.0-beta
- 0.142.0-beta
- 0.141.0-beta
- 0.140.0-beta
- 0.139.0-beta
- 0.138.0-beta
- 0.137.0-beta
- 0.136.0-beta
- 0.135.0-beta
- 0.134.0-beta
- 0.133.0-beta
- 0.132.0-beta
- 0.130.0-beta
- 0.129.0-beta
- 0.128.0-beta
- 0.127.0-beta
- 0.126.0-beta
- 0.125.0-beta
- 0.124.15-beta
- 0.123.4-beta
- 0.122.23-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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ReportedErrorEventImplements
ReportedErrorEventOrBuilderStatic Fields
CONTEXT_FIELD_NUMBER
public static final int CONTEXT_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
EVENT_TIME_FIELD_NUMBER
public static final int EVENT_TIME_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
MESSAGE_FIELD_NUMBER
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
getDefaultInstance()
public static ReportedErrorEvent getDefaultInstance()
Returns | |
---|---|
Type | Description |
ReportedErrorEvent |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static ReportedErrorEvent.Builder newBuilder()
Returns | |
---|---|
Type | Description |
ReportedErrorEvent.Builder |
newBuilder(ReportedErrorEvent prototype)
public static ReportedErrorEvent.Builder newBuilder(ReportedErrorEvent prototype)
Parameter | |
---|---|
Name | Description |
prototype |
ReportedErrorEvent |
Returns | |
---|---|
Type | Description |
ReportedErrorEvent.Builder |
parseDelimitedFrom(InputStream input)
public static ReportedErrorEvent parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
ReportedErrorEvent |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ReportedErrorEvent parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ReportedErrorEvent |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static ReportedErrorEvent parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
ReportedErrorEvent |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ReportedErrorEvent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ReportedErrorEvent |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static ReportedErrorEvent parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
ReportedErrorEvent |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ReportedErrorEvent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ReportedErrorEvent |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static ReportedErrorEvent parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
ReportedErrorEvent |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ReportedErrorEvent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ReportedErrorEvent |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static ReportedErrorEvent parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
ReportedErrorEvent |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ReportedErrorEvent parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ReportedErrorEvent |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static ReportedErrorEvent parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
ReportedErrorEvent |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ReportedErrorEvent parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ReportedErrorEvent |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<ReportedErrorEvent> parser()
Returns | |
---|---|
Type | Description |
Parser<ReportedErrorEvent> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ErrorContextOrBuilder |
getDefaultInstanceForType()
public ReportedErrorEvent getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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:
- Java: Must be the return value of
Throwable.printStackTrace()
. - Python: Must be the return value of
traceback.format_exc()
. - JavaScript: Must be the value of
error.stack
as returned by V8. - Ruby: Must contain frames returned by
Exception.backtrace
. - C#: Must be the return value of
Exception.ToString()
. - PHP: Must start with
PHP (Notice|Parse error|Fatal error|Warning)
and contain the result of(string)$exception
. - Go: Must be the return value of
runtime.Stack()
.
string message = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
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:
- Java: Must be the return value of
Throwable.printStackTrace()
. - Python: Must be the return value of
traceback.format_exc()
. - JavaScript: Must be the value of
error.stack
as returned by V8. - Ruby: Must contain frames returned by
Exception.backtrace
. - C#: Must be the return value of
Exception.ToString()
. - PHP: Must start with
PHP (Notice|Parse error|Fatal error|Warning)
and contain the result of(string)$exception
. - Go: Must be the return value of
runtime.Stack()
.
string message = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for message. |
getParserForType()
public Parser<ReportedErrorEvent> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<ReportedErrorEvent> |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ServiceContextOrBuilder |
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. |
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 | |
---|---|
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. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public ReportedErrorEvent.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
ReportedErrorEvent.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ReportedErrorEvent.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
ReportedErrorEvent.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public ReportedErrorEvent.Builder toBuilder()
Returns | |
---|---|
Type | Description |
ReportedErrorEvent.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |