Class ErrorContext.Builder (0.175.0-beta)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ErrorContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ErrorContext.Builder
Overrides

build()

public ErrorContext build()
Returns
Type Description
ErrorContext

buildPartial()

public ErrorContext buildPartial()
Returns
Type Description
ErrorContext

clear()

public ErrorContext.Builder clear()
Returns
Type Description
ErrorContext.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ErrorContext.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ErrorContext.Builder
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
Type Description
ErrorContext.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ErrorContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ErrorContext.Builder
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
Type Description
ErrorContext.Builder

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
Type Description
ErrorContext.Builder

This builder for chaining.

clone()

public ErrorContext.Builder clone()
Returns
Type Description
ErrorContext.Builder
Overrides

getDefaultInstanceForType()

public ErrorContext getDefaultInstanceForType()
Returns
Type Description
ErrorContext

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Type Description
HttpRequestContext

The httpRequest.

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
Type Description
HttpRequestContext.Builder

getHttpRequestOrBuilder()

public HttpRequestContextOrBuilder getHttpRequestOrBuilder()

The HTTP request which was processed when the error was triggered.

.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;

Returns
Type Description
HttpRequestContextOrBuilder

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
Type Description
SourceLocation

The reportLocation.

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
Type Description
SourceLocation.Builder

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
Type Description
SourceLocationOrBuilder

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;

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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ErrorContext other)

public ErrorContext.Builder mergeFrom(ErrorContext other)
Parameter
Name Description
other ErrorContext
Returns
Type Description
ErrorContext.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ErrorContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ErrorContext.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ErrorContext.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ErrorContext.Builder
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
Name Description
value HttpRequestContext
Returns
Type Description
ErrorContext.Builder

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
Name Description
value SourceLocation
Returns
Type Description
ErrorContext.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ErrorContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ErrorContext.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ErrorContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ErrorContext.Builder
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
Name Description
value HttpRequestContext
Returns
Type Description
ErrorContext.Builder

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
Name Description
builderForValue HttpRequestContext.Builder
Returns
Type Description
ErrorContext.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ErrorContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ErrorContext.Builder
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
Name Description
value SourceLocation
Returns
Type Description
ErrorContext.Builder

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
Name Description
builderForValue SourceLocation.Builder
Returns
Type Description
ErrorContext.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ErrorContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ErrorContext.Builder
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
Type Description
ErrorContext.Builder

This builder for chaining.

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
Type Description
ErrorContext.Builder

This builder for chaining.