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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ErrorContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ErrorContext build()
Returns
buildPartial()
public ErrorContext buildPartial()
Returns
clear()
public ErrorContext.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ErrorContext.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearHttpRequest()
public ErrorContext.Builder clearHttpRequest()
The HTTP request which was processed when the error was
triggered.
.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ErrorContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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;
Returns
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
clone()
public ErrorContext.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ErrorContext getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getHttpRequest()
public HttpRequestContext getHttpRequest()
The HTTP request which was processed when the error was
triggered.
.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;
Returns
getHttpRequestBuilder()
public HttpRequestContext.Builder getHttpRequestBuilder()
The HTTP request which was processed when the error was
triggered.
.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;
Returns
getHttpRequestOrBuilder()
public HttpRequestContextOrBuilder getHttpRequestOrBuilder()
The HTTP request which was processed when the error was
triggered.
.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;
Returns
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;
Returns
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;
Returns
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;
Returns
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;
Returns
Type | Description |
String | The user.
|
getUserBytes()
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;
Returns
hasHttpRequest()
public boolean hasHttpRequest()
The HTTP request which was processed when the error was
triggered.
.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;
Returns
Type | Description |
boolean | Whether the httpRequest field is set.
|
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;
Returns
Type | Description |
boolean | Whether the reportLocation field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ErrorContext other)
public ErrorContext.Builder mergeFrom(ErrorContext other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ErrorContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ErrorContext.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeHttpRequest(HttpRequestContext value)
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;
Parameter
Returns
mergeReportLocation(SourceLocation value)
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;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ErrorContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ErrorContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setHttpRequest(HttpRequestContext value)
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;
Parameter
Returns
setHttpRequest(HttpRequestContext.Builder builderForValue)
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;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ErrorContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setReportLocation(SourceLocation value)
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;
Parameter
Returns
setReportLocation(SourceLocation.Builder builderForValue)
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;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ErrorContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setUser(String value)
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;
Parameter
Name | Description |
value | String
The user to set.
|
Returns
setUserBytes(ByteString value)
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;
Parameter
Name | Description |
value | ByteString
The bytes for user to set.
|
Returns