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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ErrorContext
build()
ErrorContext
buildPartial()
ErrorContext.Builder
clear()
ErrorContext.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ErrorContext.Builder
clearHttpRequest()
The HTTP request which was processed when the error was triggered.ErrorContext.Builder
clearOneof(com.google.protobuf.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 com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.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.String
getUser()
The user who caused or was affected by the crash.com.google.protobuf.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 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ErrorContext.Builder
mergeFrom(ErrorContext other)
ErrorContext.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ErrorContext.Builder
mergeFrom(com.google.protobuf.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(com.google.protobuf.UnknownFieldSet unknownFields)
ErrorContext.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ErrorContext.Builder
setHttpRequest(HttpRequestContext value)
The HTTP request which was processed when the error was triggered.ErrorContext.Builder
setHttpRequest(HttpRequestContext.Builder builderForValue)
The HTTP request which was processed when the error was triggered.ErrorContext.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
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
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
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ErrorContext.Builder
setUser(String value)
The user who caused or was affected by the crash.ErrorContext.Builder
setUserBytes(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
clear
public ErrorContext.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
getDefaultInstanceForType
public ErrorContext getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ErrorContext build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ErrorContext buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ErrorContext.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
setField
public ErrorContext.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
clearField
public ErrorContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
clearOneof
public ErrorContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
setRepeatedField
public ErrorContext.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
addRepeatedField
public ErrorContext.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
mergeFrom
public ErrorContext.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ErrorContext.Builder>
-
mergeFrom
public ErrorContext.Builder mergeFrom(ErrorContext other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasHttpRequest
in 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:
getHttpRequest
in 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:
getHttpRequestOrBuilder
in 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:
getUser
in 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:
getUserBytes
in 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:
hasReportLocation
in 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:
getReportLocation
in 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:
getReportLocationOrBuilder
in interfaceErrorContextOrBuilder
-
setUnknownFields
public final ErrorContext.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
mergeUnknownFields
public final ErrorContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
-
-