Class ErrorContext.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
- com.google.devtools.clouderrorreporting.v1beta1.ErrorContext.Builder
-
- All Implemented Interfaces:
ErrorContextOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ErrorContext
public static final class ErrorContext.Builder extends com.google.protobuf.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 typegoogle.devtools.clouderrorreporting.v1beta1.ErrorContext
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorContext.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ErrorContextbuild()ErrorContextbuildPartial()ErrorContext.Builderclear()ErrorContext.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ErrorContext.BuilderclearHttpRequest()The HTTP request which was processed when the error was triggered.ErrorContext.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ErrorContext.BuilderclearReportLocation()The location in the source code where the decision was made to report the error, usually the place where it was logged.ErrorContext.BuilderclearUser()The user who caused or was affected by the crash.ErrorContext.Builderclone()ErrorContextgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()HttpRequestContextgetHttpRequest()The HTTP request which was processed when the error was triggered.HttpRequestContext.BuildergetHttpRequestBuilder()The HTTP request which was processed when the error was triggered.HttpRequestContextOrBuildergetHttpRequestOrBuilder()The HTTP request which was processed when the error was triggered.SourceLocationgetReportLocation()The location in the source code where the decision was made to report the error, usually the place where it was logged.SourceLocation.BuildergetReportLocationBuilder()The location in the source code where the decision was made to report the error, usually the place where it was logged.SourceLocationOrBuildergetReportLocationOrBuilder()The location in the source code where the decision was made to report the error, usually the place where it was logged.StringgetUser()The user who caused or was affected by the crash.com.google.protobuf.ByteStringgetUserBytes()The user who caused or was affected by the crash.booleanhasHttpRequest()The HTTP request which was processed when the error was triggered.booleanhasReportLocation()The location in the source code where the decision was made to report the error, usually the place where it was logged.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ErrorContext.BuildermergeFrom(ErrorContext other)ErrorContext.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ErrorContext.BuildermergeFrom(com.google.protobuf.Message other)ErrorContext.BuildermergeHttpRequest(HttpRequestContext value)The HTTP request which was processed when the error was triggered.ErrorContext.BuildermergeReportLocation(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.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ErrorContext.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ErrorContext.BuildersetHttpRequest(HttpRequestContext value)The HTTP request which was processed when the error was triggered.ErrorContext.BuildersetHttpRequest(HttpRequestContext.Builder builderForValue)The HTTP request which was processed when the error was triggered.ErrorContext.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ErrorContext.BuildersetReportLocation(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.BuildersetReportLocation(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.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ErrorContext.BuildersetUser(String value)The user who caused or was affected by the crash.ErrorContext.BuildersetUserBytes(com.google.protobuf.ByteString value)The user who caused or was affected by the crash.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
clear
public ErrorContext.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
getDefaultInstanceForType
public ErrorContext getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ErrorContext build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ErrorContext buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ErrorContext.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
setField
public ErrorContext.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
clearField
public ErrorContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
clearOneof
public ErrorContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
setRepeatedField
public ErrorContext.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
addRepeatedField
public ErrorContext.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
mergeFrom
public ErrorContext.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ErrorContext.Builder>
-
mergeFrom
public ErrorContext.Builder mergeFrom(ErrorContext other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
mergeFrom
public ErrorContext.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ErrorContext.Builder>- Throws:
IOException
-
hasHttpRequest
public boolean hasHttpRequest()
The HTTP request which was processed when the error was triggered.
.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;- Specified by:
hasHttpRequestin interfaceErrorContextOrBuilder- Returns:
- Whether the httpRequest field is set.
-
getHttpRequest
public HttpRequestContext getHttpRequest()
The HTTP request which was processed when the error was triggered.
.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;- Specified by:
getHttpRequestin interfaceErrorContextOrBuilder- Returns:
- The httpRequest.
-
setHttpRequest
public ErrorContext.Builder setHttpRequest(HttpRequestContext value)
The HTTP request which was processed when the error was triggered.
.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;
-
setHttpRequest
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;
-
mergeHttpRequest
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;
-
clearHttpRequest
public ErrorContext.Builder clearHttpRequest()
The HTTP request which was processed when the error was triggered.
.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;
-
getHttpRequestBuilder
public HttpRequestContext.Builder getHttpRequestBuilder()
The HTTP request which was processed when the error was triggered.
.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;
-
getHttpRequestOrBuilder
public HttpRequestContextOrBuilder getHttpRequestOrBuilder()
The HTTP request which was processed when the error was triggered.
.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;- Specified by:
getHttpRequestOrBuilderin interfaceErrorContextOrBuilder
-
getUser
public 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;- Specified by:
getUserin interfaceErrorContextOrBuilder- Returns:
- The user.
-
getUserBytes
public com.google.protobuf.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;- Specified by:
getUserBytesin interfaceErrorContextOrBuilder- Returns:
- The bytes for user.
-
setUser
public ErrorContext.Builder setUser(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;- Parameters:
value- The user to set.- Returns:
- This builder for chaining.
-
clearUser
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;- Returns:
- This builder for chaining.
-
setUserBytes
public ErrorContext.Builder setUserBytes(com.google.protobuf.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;- Parameters:
value- The bytes for user to set.- Returns:
- This builder for chaining.
-
hasReportLocation
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.
.google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;- Specified by:
hasReportLocationin interfaceErrorContextOrBuilder- Returns:
- Whether the reportLocation field is set.
-
getReportLocation
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.
.google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;- Specified by:
getReportLocationin interfaceErrorContextOrBuilder- Returns:
- The reportLocation.
-
setReportLocation
public 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.
.google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;
-
setReportLocation
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.
.google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;
-
mergeReportLocation
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.
.google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;
-
clearReportLocation
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.
.google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;
-
getReportLocationBuilder
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.
.google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;
-
getReportLocationOrBuilder
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.
.google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;- Specified by:
getReportLocationOrBuilderin interfaceErrorContextOrBuilder
-
setUnknownFields
public final ErrorContext.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
mergeUnknownFields
public final ErrorContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
-