Class ReportedErrorEvent.Builder (0.124.3-beta)

public static final class ReportedErrorEvent.Builder extends GeneratedMessageV3.Builder<ReportedErrorEvent.Builder> implements ReportedErrorEventOrBuilder

An error event which is reported to the Error Reporting system.

Protobuf type google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReportedErrorEvent build()
Returns
TypeDescription
ReportedErrorEvent

buildPartial()

public ReportedErrorEvent buildPartial()
Returns
TypeDescription
ReportedErrorEvent

clear()

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

clearContext()

public ReportedErrorEvent.Builder clearContext()

Optional. A description of the context in which the error occurred.

.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ReportedErrorEvent.Builder

clearEventTime()

public ReportedErrorEvent.Builder clearEventTime()

Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used.

.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ReportedErrorEvent.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMessage()

public ReportedErrorEvent.Builder clearMessage()

Required. The error message. If no context.reportLocation is provided, the message must contain a header (typically consisting of the exception type name and an error message) and an exception stack trace in one of the supported programming languages and formats. Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go. Supported stack trace formats are:

string message = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ReportedErrorEvent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServiceContext()

public ReportedErrorEvent.Builder clearServiceContext()

Required. The service context in which this error has occurred.

.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ReportedErrorEvent.Builder

clone()

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

getContext()

public ErrorContext getContext()

Optional. A description of the context in which the error occurred.

.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ErrorContext

The context.

getContextBuilder()

public ErrorContext.Builder getContextBuilder()

Optional. A description of the context in which the error occurred.

.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ErrorContext.Builder

getContextOrBuilder()

public ErrorContextOrBuilder getContextOrBuilder()

Optional. A description of the context in which the error occurred.

.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ErrorContextOrBuilder

getDefaultInstanceForType()

public ReportedErrorEvent getDefaultInstanceForType()
Returns
TypeDescription
ReportedErrorEvent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEventTime()

public Timestamp getEventTime()

Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used.

.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Timestamp

The eventTime.

getEventTimeBuilder()

public Timestamp.Builder getEventTimeBuilder()

Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used.

.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Builder

getEventTimeOrBuilder()

public TimestampOrBuilder getEventTimeOrBuilder()

Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used.

.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
TimestampOrBuilder

getMessage()

public String getMessage()

Required. The error message. If no context.reportLocation is provided, the message must contain a header (typically consisting of the exception type name and an error message) and an exception stack trace in one of the supported programming languages and formats. Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go. Supported stack trace formats are:

string message = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

Required. The error message. If no context.reportLocation is provided, the message must contain a header (typically consisting of the exception type name and an error message) and an exception stack trace in one of the supported programming languages and formats. Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go. Supported stack trace formats are:

string message = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for message.

getServiceContext()

public ServiceContext getServiceContext()

Required. The service context in which this error has occurred.

.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ServiceContext

The serviceContext.

getServiceContextBuilder()

public ServiceContext.Builder getServiceContextBuilder()

Required. The service context in which this error has occurred.

.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ServiceContext.Builder

getServiceContextOrBuilder()

public ServiceContextOrBuilder getServiceContextOrBuilder()

Required. The service context in which this error has occurred.

.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ServiceContextOrBuilder

hasContext()

public boolean hasContext()

Optional. A description of the context in which the error occurred.

.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the context field is set.

hasEventTime()

public boolean hasEventTime()

Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used.

.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the eventTime field is set.

hasServiceContext()

public boolean hasServiceContext()

Required. The service context in which this error has occurred.

.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED];

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 ReportedErrorEvent.Builder mergeContext(ErrorContext value)

Optional. A description of the context in which the error occurred.

.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueErrorContext
Returns
TypeDescription
ReportedErrorEvent.Builder

mergeEventTime(Timestamp value)

public ReportedErrorEvent.Builder mergeEventTime(Timestamp value)

Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used.

.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ReportedErrorEvent.Builder

mergeFrom(ReportedErrorEvent other)

public ReportedErrorEvent.Builder mergeFrom(ReportedErrorEvent other)
Parameter
NameDescription
otherReportedErrorEvent
Returns
TypeDescription
ReportedErrorEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ReportedErrorEvent.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ReportedErrorEvent.Builder
Overrides

mergeServiceContext(ServiceContext value)

public ReportedErrorEvent.Builder mergeServiceContext(ServiceContext value)

Required. The service context in which this error has occurred.

.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueServiceContext
Returns
TypeDescription
ReportedErrorEvent.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setContext(ErrorContext value)

public ReportedErrorEvent.Builder setContext(ErrorContext value)

Optional. A description of the context in which the error occurred.

.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueErrorContext
Returns
TypeDescription
ReportedErrorEvent.Builder

setContext(ErrorContext.Builder builderForValue)

public ReportedErrorEvent.Builder setContext(ErrorContext.Builder builderForValue)

Optional. A description of the context in which the error occurred.

.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueErrorContext.Builder
Returns
TypeDescription
ReportedErrorEvent.Builder

setEventTime(Timestamp value)

public ReportedErrorEvent.Builder setEventTime(Timestamp value)

Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used.

.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ReportedErrorEvent.Builder

setEventTime(Timestamp.Builder builderForValue)

public ReportedErrorEvent.Builder setEventTime(Timestamp.Builder builderForValue)

Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used.

.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ReportedErrorEvent.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMessage(String value)

public ReportedErrorEvent.Builder setMessage(String value)

Required. The error message. If no context.reportLocation is provided, the message must contain a header (typically consisting of the exception type name and an error message) and an exception stack trace in one of the supported programming languages and formats. Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go. Supported stack trace formats are:

string message = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The message to set.

Returns
TypeDescription
ReportedErrorEvent.Builder

This builder for chaining.

setMessageBytes(ByteString value)

public ReportedErrorEvent.Builder setMessageBytes(ByteString value)

Required. The error message. If no context.reportLocation is provided, the message must contain a header (typically consisting of the exception type name and an error message) and an exception stack trace in one of the supported programming languages and formats. Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go. Supported stack trace formats are:

string message = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for message to set.

Returns
TypeDescription
ReportedErrorEvent.Builder

This builder for chaining.

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

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

setServiceContext(ServiceContext value)

public ReportedErrorEvent.Builder setServiceContext(ServiceContext value)

Required. The service context in which this error has occurred.

.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueServiceContext
Returns
TypeDescription
ReportedErrorEvent.Builder

setServiceContext(ServiceContext.Builder builderForValue)

public ReportedErrorEvent.Builder setServiceContext(ServiceContext.Builder builderForValue)

Required. The service context in which this error has occurred.

.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueServiceContext.Builder
Returns
TypeDescription
ReportedErrorEvent.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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