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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ErrorContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ErrorContext build()
buildPartial()
public ErrorContext buildPartial()
clear()
public ErrorContext.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ErrorContext.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public ErrorContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
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;
clone()
public ErrorContext.Builder clone()
Overrides
getDefaultInstanceForType()
public ErrorContext getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getHttpRequest()
public HttpRequestContext getHttpRequest()
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;
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;
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;
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 |
---|
Type | Description |
ByteString | The bytes for user.
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ErrorContext other)
public ErrorContext.Builder mergeFrom(ErrorContext other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ErrorContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ErrorContext.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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;
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ErrorContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ErrorContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ErrorContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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;
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final ErrorContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|