public static final class ErrorContext.Builder extends GeneratedMessageV3.Builder<ErrorContext.Builder> 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 | Method and Description |
|---|---|
ErrorContext.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
ErrorContext |
build() |
ErrorContext |
buildPartial() |
ErrorContext.Builder |
clear() |
ErrorContext.Builder |
clearField(Descriptors.FieldDescriptor field) |
ErrorContext.Builder |
clearHttpRequest()
The HTTP request which was processed when the error was
triggered.
|
ErrorContext.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
ErrorContext.Builder |
clearReportLocation()
The location in the source code where the decision was made to
report the error, usually the place where it was logged.
|
ErrorContext.Builder |
clearUser()
The user who caused or was affected by the crash.
|
ErrorContext.Builder |
clone() |
ErrorContext |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
HttpRequestContext |
getHttpRequest()
The HTTP request which was processed when the error was
triggered.
|
HttpRequestContext.Builder |
getHttpRequestBuilder()
The HTTP request which was processed when the error was
triggered.
|
HttpRequestContextOrBuilder |
getHttpRequestOrBuilder()
The HTTP request which was processed when the error was
triggered.
|
SourceLocation |
getReportLocation()
The location in the source code where the decision was made to
report the error, usually the place where it was logged.
|
SourceLocation.Builder |
getReportLocationBuilder()
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.
|
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.
|
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() |
ErrorContext.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
ErrorContext.Builder |
mergeFrom(ErrorContext other) |
ErrorContext.Builder |
mergeFrom(Message other) |
ErrorContext.Builder |
mergeHttpRequest(HttpRequestContext value)
The HTTP request which was processed when the error was
triggered.
|
ErrorContext.Builder |
mergeReportLocation(SourceLocation value)
The location in the source code where the decision was made to
report the error, usually the place where it was logged.
|
ErrorContext.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
ErrorContext.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
ErrorContext.Builder |
setHttpRequest(HttpRequestContext.Builder builderForValue)
The HTTP request which was processed when the error was
triggered.
|
ErrorContext.Builder |
setHttpRequest(HttpRequestContext value)
The HTTP request which was processed when the error was
triggered.
|
ErrorContext.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
ErrorContext.Builder |
setReportLocation(SourceLocation.Builder builderForValue)
The location in the source code where the decision was made to
report the error, usually the place where it was logged.
|
ErrorContext.Builder |
setReportLocation(SourceLocation value)
The location in the source code where the decision was made to
report the error, usually the place where it was logged.
|
ErrorContext.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
ErrorContext.Builder |
setUser(java.lang.String value)
The user who caused or was affected by the crash.
|
ErrorContext.Builder |
setUserBytes(ByteString value)
The user who caused or was affected by the crash.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<ErrorContext.Builder>public ErrorContext.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<ErrorContext.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<ErrorContext.Builder>public ErrorContext getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic ErrorContext build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic ErrorContext buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic ErrorContext.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<ErrorContext.Builder>public ErrorContext.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<ErrorContext.Builder>public ErrorContext.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<ErrorContext.Builder>public ErrorContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<ErrorContext.Builder>public ErrorContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<ErrorContext.Builder>public ErrorContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<ErrorContext.Builder>public ErrorContext.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<ErrorContext.Builder>public ErrorContext.Builder mergeFrom(ErrorContext other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<ErrorContext.Builder>public ErrorContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<ErrorContext.Builder>java.io.IOExceptionpublic boolean hasHttpRequest()
The HTTP request which was processed when the error was triggered.
.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;hasHttpRequest in interface ErrorContextOrBuilderpublic HttpRequestContext getHttpRequest()
The HTTP request which was processed when the error was triggered.
.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;getHttpRequest in interface ErrorContextOrBuilderpublic ErrorContext.Builder setHttpRequest(HttpRequestContext value)
The HTTP request which was processed when the error was triggered.
.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;public ErrorContext.Builder setHttpRequest(HttpRequestContext.Builder builderForValue)
The HTTP request which was processed when the error was triggered.
.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;public ErrorContext.Builder mergeHttpRequest(HttpRequestContext value)
The HTTP request which was processed when the error was triggered.
.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;public ErrorContext.Builder clearHttpRequest()
The HTTP request which was processed when the error was triggered.
.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;public HttpRequestContext.Builder getHttpRequestBuilder()
The HTTP request which was processed when the error was triggered.
.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;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 ErrorContextOrBuilderpublic 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 ErrorContextOrBuilderpublic 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 ErrorContextOrBuilderpublic ErrorContext.Builder setUser(java.lang.String value)
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;public ErrorContext.Builder clearUser()
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;public ErrorContext.Builder setUserBytes(ByteString value)
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;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 ErrorContextOrBuilderpublic 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 ErrorContextOrBuilderpublic ErrorContext.Builder setReportLocation(SourceLocation value)
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;public ErrorContext.Builder setReportLocation(SourceLocation.Builder builderForValue)
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;public ErrorContext.Builder mergeReportLocation(SourceLocation value)
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;public ErrorContext.Builder clearReportLocation()
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;public SourceLocation.Builder getReportLocationBuilder()
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;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 ErrorContextOrBuilderpublic final ErrorContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<ErrorContext.Builder>public final ErrorContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<ErrorContext.Builder>