public final class ErrorContext extends GeneratedMessageV3 implements ErrorContextOrBuilder
A description of the context in which an error occurred. This data should be provided by the application when reporting an error, unless the error report has been generated automatically from Google App Engine logs.Protobuf type
google.devtools.clouderrorreporting.v1beta1.ErrorContext
Modifier and Type | Class and Description |
---|---|
static class |
ErrorContext.Builder
A description of the context in which an error occurred.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
HTTP_REQUEST_FIELD_NUMBER |
static int |
REPORT_LOCATION_FIELD_NUMBER |
static int |
USER_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static ErrorContext |
getDefaultInstance() |
ErrorContext |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
HttpRequestContext |
getHttpRequest()
The HTTP request which was processed when the error was
triggered.
|
HttpRequestContextOrBuilder |
getHttpRequestOrBuilder()
The HTTP request which was processed when the error was
triggered.
|
Parser<ErrorContext> |
getParserForType() |
SourceLocation |
getReportLocation()
The location in the source code where the decision was made to
report the error, usually the place where it was logged.
|
SourceLocationOrBuilder |
getReportLocationOrBuilder()
The location in the source code where the decision was made to
report the error, usually the place where it was logged.
|
int |
getSerializedSize() |
UnknownFieldSet |
getUnknownFields() |
java.lang.String |
getUser()
The user who caused or was affected by the crash.
|
ByteString |
getUserBytes()
The user who caused or was affected by the crash.
|
int |
hashCode() |
boolean |
hasHttpRequest()
The HTTP request which was processed when the error was
triggered.
|
boolean |
hasReportLocation()
The location in the source code where the decision was made to
report the error, usually the place where it was logged.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ErrorContext.Builder |
newBuilder() |
static ErrorContext.Builder |
newBuilder(ErrorContext prototype) |
ErrorContext.Builder |
newBuilderForType() |
protected ErrorContext.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static ErrorContext |
parseDelimitedFrom(java.io.InputStream input) |
static ErrorContext |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static ErrorContext |
parseFrom(byte[] data) |
static ErrorContext |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static ErrorContext |
parseFrom(java.nio.ByteBuffer data) |
static ErrorContext |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static ErrorContext |
parseFrom(ByteString data) |
static ErrorContext |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static ErrorContext |
parseFrom(CodedInputStream input) |
static ErrorContext |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static ErrorContext |
parseFrom(java.io.InputStream input) |
static ErrorContext |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<ErrorContext> |
parser() |
ErrorContext.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int HTTP_REQUEST_FIELD_NUMBER
public static final int USER_FIELD_NUMBER
public static final int REPORT_LOCATION_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public boolean hasHttpRequest()
The HTTP request which was processed when the error was triggered.
.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;
hasHttpRequest
in interface ErrorContextOrBuilder
public HttpRequestContext getHttpRequest()
The HTTP request which was processed when the error was triggered.
.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;
getHttpRequest
in interface ErrorContextOrBuilder
public HttpRequestContextOrBuilder getHttpRequestOrBuilder()
The HTTP request which was processed when the error was triggered.
.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;
getHttpRequestOrBuilder
in interface ErrorContextOrBuilder
public java.lang.String getUser()
The user who caused or was affected by the crash. This can be a user ID, an email address, or an arbitrary token that uniquely identifies the user. When sending an error report, leave this field empty if the user was not logged in. In this case the Error Reporting system will use other data, such as remote IP address, to distinguish affected users. See `affected_users_count` in `ErrorGroupStats`.
string user = 2;
getUser
in interface ErrorContextOrBuilder
public ByteString getUserBytes()
The user who caused or was affected by the crash. This can be a user ID, an email address, or an arbitrary token that uniquely identifies the user. When sending an error report, leave this field empty if the user was not logged in. In this case the Error Reporting system will use other data, such as remote IP address, to distinguish affected users. See `affected_users_count` in `ErrorGroupStats`.
string user = 2;
getUserBytes
in interface ErrorContextOrBuilder
public boolean hasReportLocation()
The location in the source code where the decision was made to report the error, usually the place where it was logged. For a logged exception this would be the source line where the exception is logged, usually close to the place where it was caught. This value is in contrast to `Exception.cause_location`, which describes the source line where the exception was thrown.
.google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;
hasReportLocation
in interface ErrorContextOrBuilder
public SourceLocation getReportLocation()
The location in the source code where the decision was made to report the error, usually the place where it was logged. For a logged exception this would be the source line where the exception is logged, usually close to the place where it was caught. This value is in contrast to `Exception.cause_location`, which describes the source line where the exception was thrown.
.google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;
getReportLocation
in interface ErrorContextOrBuilder
public SourceLocationOrBuilder getReportLocationOrBuilder()
The location in the source code where the decision was made to report the error, usually the place where it was logged. For a logged exception this would be the source line where the exception is logged, usually close to the place where it was caught. This value is in contrast to `Exception.cause_location`, which describes the source line where the exception was thrown.
.google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;
getReportLocationOrBuilder
in interface ErrorContextOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static ErrorContext parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ErrorContext parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ErrorContext parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ErrorContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ErrorContext parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ErrorContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ErrorContext parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static ErrorContext parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static ErrorContext parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static ErrorContext parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static ErrorContext parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static ErrorContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public ErrorContext.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static ErrorContext.Builder newBuilder()
public static ErrorContext.Builder newBuilder(ErrorContext prototype)
public ErrorContext.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected ErrorContext.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static ErrorContext getDefaultInstance()
public static Parser<ErrorContext> parser()
public Parser<ErrorContext> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public ErrorContext getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder