Class ErrorContext.Builder (0.129.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ErrorContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ErrorContext.Builder
Overrides

build()

public ErrorContext build()
Returns
TypeDescription
ErrorContext

buildPartial()

public ErrorContext buildPartial()
Returns
TypeDescription
ErrorContext

clear()

public ErrorContext.Builder clear()
Returns
TypeDescription
ErrorContext.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ErrorContext.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ErrorContext.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ErrorContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ErrorContext.Builder

This builder for chaining.

clone()

public ErrorContext.Builder clone()
Returns
TypeDescription
ErrorContext.Builder
Overrides

getDefaultInstanceForType()

public ErrorContext getDefaultInstanceForType()
Returns
TypeDescription
ErrorContext

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the reportLocation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ErrorContext other)

public ErrorContext.Builder mergeFrom(ErrorContext other)
Parameter
NameDescription
otherErrorContext
Returns
TypeDescription
ErrorContext.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ErrorContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ErrorContext.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ErrorContext.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueHttpRequestContext
Returns
TypeDescription
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
NameDescription
valueSourceLocation
Returns
TypeDescription
ErrorContext.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ErrorContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ErrorContext.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ErrorContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueHttpRequestContext
Returns
TypeDescription
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
NameDescription
builderForValueHttpRequestContext.Builder
Returns
TypeDescription
ErrorContext.Builder

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

public ErrorContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSourceLocation
Returns
TypeDescription
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
NameDescription
builderForValueSourceLocation.Builder
Returns
TypeDescription
ErrorContext.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ErrorContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The user to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for user to set.

Returns
TypeDescription
ErrorContext.Builder

This builder for chaining.