Class ErrorEvent.Builder (0.124.12-beta)

public static final class ErrorEvent.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ErrorEvent build()
Returns
TypeDescription
ErrorEvent

buildPartial()

public ErrorEvent buildPartial()
Returns
TypeDescription
ErrorEvent

clear()

public ErrorEvent.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ErrorEvent.Builder

clearField(Descriptors.FieldDescriptor field)

public ErrorEvent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ErrorEvent.Builder
Overrides

clearMessage()

public ErrorEvent.Builder clearMessage()

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

string message = 3;

Returns
TypeDescription
ErrorEvent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ErrorEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ErrorEvent.Builder
Overrides

clearServiceContext()

public ErrorEvent.Builder clearServiceContext()

The ServiceContext for which this error was reported.

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

Returns
TypeDescription
ErrorEvent.Builder

clone()

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

getContext()

public ErrorContext getContext()

Data about the context in which the error occurred.

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

Returns
TypeDescription
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
TypeDescription
ErrorContext.Builder

getContextOrBuilder()

public ErrorContextOrBuilder getContextOrBuilder()

Data about the context in which the error occurred.

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

Returns
TypeDescription
ErrorContextOrBuilder

getDefaultInstanceForType()

public ErrorEvent getDefaultInstanceForType()
Returns
TypeDescription
ErrorEvent

getDescriptorForType()

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

getMessage()

public String getMessage()

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

string message = 3;

Returns
TypeDescription
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

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

string message = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ServiceContext.Builder

getServiceContextOrBuilder()

public ServiceContextOrBuilder getServiceContextOrBuilder()

The ServiceContext for which this error was reported.

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

Returns
TypeDescription
ServiceContextOrBuilder

hasContext()

public boolean hasContext()

Data about the context in which the error occurred.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the serviceContext field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueErrorContext
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
ErrorEvent.Builder

mergeFrom(ErrorEvent other)

public ErrorEvent.Builder mergeFrom(ErrorEvent other)
Parameter
NameDescription
otherErrorEvent
Returns
TypeDescription
ErrorEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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
NameDescription
valueErrorContext
Returns
TypeDescription
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
NameDescription
builderForValueErrorContext.Builder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ErrorEvent.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMessage(String value)

public ErrorEvent.Builder setMessage(String value)

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

string message = 3;

Parameter
NameDescription
valueString

The message to set.

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

The bytes for message to set.

Returns
TypeDescription
ErrorEvent.Builder

This builder for chaining.

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

public ErrorEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ErrorEvent.Builder
Overrides

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
NameDescription
valueServiceContext
Returns
TypeDescription
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
NameDescription
builderForValueServiceContext.Builder
Returns
TypeDescription
ErrorEvent.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ErrorEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ErrorEvent.Builder
Overrides