Class ErrorEvent.Builder (0.206.0-beta)

public static final class ErrorEvent.Builder extends GeneratedMessage.Builder<ErrorEvent.Builder> implements ErrorEventOrBuilder

An error event which is returned by the Error Reporting system.

Protobuf type google.devtools.clouderrorreporting.v1beta1.ErrorEvent

Implements

ErrorEventOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public ErrorEvent build()
Returns
Type Description
ErrorEvent

buildPartial()

public ErrorEvent buildPartial()
Returns
Type Description
ErrorEvent

clear()

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

clearContext()

public ErrorEvent.Builder clearContext()

Data about the context in which the error occurred.

.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;

Returns
Type Description
ErrorEvent.Builder

clearEventTime()

public ErrorEvent.Builder clearEventTime()

Time when the event occurred as provided in the error report. If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.

.google.protobuf.Timestamp event_time = 1;

Returns
Type Description
ErrorEvent.Builder

clearMessage()

public ErrorEvent.Builder clearMessage()

The stack trace that was reported or logged by the service.

string message = 3;

Returns
Type Description
ErrorEvent.Builder

This builder for chaining.

clearServiceContext()

public ErrorEvent.Builder clearServiceContext()

The ServiceContext for which this error was reported.

.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;

Returns
Type Description
ErrorEvent.Builder

getContext()

public ErrorContext getContext()

Data about the context in which the error occurred.

.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;

Returns
Type Description
ErrorContext

The context.

getContextBuilder()

public ErrorContext.Builder getContextBuilder()

Data about the context in which the error occurred.

.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;

Returns
Type Description
ErrorContext.Builder

getContextOrBuilder()

public ErrorContextOrBuilder getContextOrBuilder()

Data about the context in which the error occurred.

.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;

Returns
Type Description
ErrorContextOrBuilder

getDefaultInstanceForType()

public ErrorEvent getDefaultInstanceForType()
Returns
Type Description
ErrorEvent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEventTime()

public Timestamp getEventTime()

Time when the event occurred as provided in the error report. If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.

.google.protobuf.Timestamp event_time = 1;

Returns
Type Description
Timestamp

The eventTime.

getEventTimeBuilder()

public Timestamp.Builder getEventTimeBuilder()

Time when the event occurred as provided in the error report. If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.

.google.protobuf.Timestamp event_time = 1;

Returns
Type Description
Builder

getEventTimeOrBuilder()

public TimestampOrBuilder getEventTimeOrBuilder()

Time when the event occurred as provided in the error report. If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.

.google.protobuf.Timestamp event_time = 1;

Returns
Type Description
TimestampOrBuilder

getMessage()

public String getMessage()

The stack trace that was reported or logged by the service.

string message = 3;

Returns
Type Description
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

The stack trace that was reported or logged by the service.

string message = 3;

Returns
Type Description
ByteString

The bytes for message.

getServiceContext()

public ServiceContext getServiceContext()

The ServiceContext for which this error was reported.

.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;

Returns
Type Description
ServiceContext

The serviceContext.

getServiceContextBuilder()

public ServiceContext.Builder getServiceContextBuilder()

The ServiceContext for which this error was reported.

.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;

Returns
Type Description
ServiceContext.Builder

getServiceContextOrBuilder()

public ServiceContextOrBuilder getServiceContextOrBuilder()

The ServiceContext for which this error was reported.

.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;

Returns
Type Description
ServiceContextOrBuilder

hasContext()

public boolean hasContext()

Data about the context in which the error occurred.

.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;

Returns
Type Description
boolean

Whether the context field is set.

hasEventTime()

public boolean hasEventTime()

Time when the event occurred as provided in the error report. If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.

.google.protobuf.Timestamp event_time = 1;

Returns
Type Description
boolean

Whether the eventTime field is set.

hasServiceContext()

public boolean hasServiceContext()

The ServiceContext for which this error was reported.

.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;

Returns
Type Description
boolean

Whether the serviceContext field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeContext(ErrorContext value)

public ErrorEvent.Builder mergeContext(ErrorContext value)

Data about the context in which the error occurred.

.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;

Parameter
Name Description
value ErrorContext
Returns
Type Description
ErrorEvent.Builder

mergeEventTime(Timestamp value)

public ErrorEvent.Builder mergeEventTime(Timestamp value)

Time when the event occurred as provided in the error report. If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.

.google.protobuf.Timestamp event_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
ErrorEvent.Builder

mergeFrom(ErrorEvent other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ErrorEvent.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ErrorEvent.Builder
Overrides

mergeServiceContext(ServiceContext value)

public ErrorEvent.Builder mergeServiceContext(ServiceContext value)

The ServiceContext for which this error was reported.

.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;

Parameter
Name Description
value ServiceContext
Returns
Type Description
ErrorEvent.Builder

setContext(ErrorContext value)

public ErrorEvent.Builder setContext(ErrorContext value)

Data about the context in which the error occurred.

.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;

Parameter
Name Description
value ErrorContext
Returns
Type Description
ErrorEvent.Builder

setContext(ErrorContext.Builder builderForValue)

public ErrorEvent.Builder setContext(ErrorContext.Builder builderForValue)

Data about the context in which the error occurred.

.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;

Parameter
Name Description
builderForValue ErrorContext.Builder
Returns
Type Description
ErrorEvent.Builder

setEventTime(Timestamp value)

public ErrorEvent.Builder setEventTime(Timestamp value)

Time when the event occurred as provided in the error report. If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.

.google.protobuf.Timestamp event_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
ErrorEvent.Builder

setEventTime(Timestamp.Builder builderForValue)

public ErrorEvent.Builder setEventTime(Timestamp.Builder builderForValue)

Time when the event occurred as provided in the error report. If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.

.google.protobuf.Timestamp event_time = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ErrorEvent.Builder

setMessage(String value)

public ErrorEvent.Builder setMessage(String value)

The stack trace that was reported or logged by the service.

string message = 3;

Parameter
Name Description
value String

The message to set.

Returns
Type Description
ErrorEvent.Builder

This builder for chaining.

setMessageBytes(ByteString value)

public ErrorEvent.Builder setMessageBytes(ByteString value)

The stack trace that was reported or logged by the service.

string message = 3;

Parameter
Name Description
value ByteString

The bytes for message to set.

Returns
Type Description
ErrorEvent.Builder

This builder for chaining.

setServiceContext(ServiceContext value)

public ErrorEvent.Builder setServiceContext(ServiceContext value)

The ServiceContext for which this error was reported.

.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;

Parameter
Name Description
value ServiceContext
Returns
Type Description
ErrorEvent.Builder

setServiceContext(ServiceContext.Builder builderForValue)

public ErrorEvent.Builder setServiceContext(ServiceContext.Builder builderForValue)

The ServiceContext for which this error was reported.

.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;

Parameter
Name Description
builderForValue ServiceContext.Builder
Returns
Type Description
ErrorEvent.Builder