Interface ErrorContextOrBuilder (0.126.0-beta)

public interface ErrorContextOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getHttpRequest()

public abstract HttpRequestContext getHttpRequest()

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

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

Returns
TypeDescription
HttpRequestContext

The httpRequest.

getHttpRequestOrBuilder()

public abstract HttpRequestContextOrBuilder getHttpRequestOrBuilder()

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

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

Returns
TypeDescription
HttpRequestContextOrBuilder

getReportLocation()

public abstract 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
TypeDescription
SourceLocation

The reportLocation.

getReportLocationOrBuilder()

public abstract 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
TypeDescription
SourceLocationOrBuilder

getUser()

public abstract 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
TypeDescription
String

The user.

getUserBytes()

public abstract 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
TypeDescription
ByteString

The bytes for user.

hasHttpRequest()

public abstract boolean hasHttpRequest()

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

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

Returns
TypeDescription
boolean

Whether the httpRequest field is set.

hasReportLocation()

public abstract 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
TypeDescription
boolean

Whether the reportLocation field is set.