Interface ReportedErrorEventOrBuilder (0.137.0-beta)

public interface ReportedErrorEventOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getContext()

public abstract 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.

getContextOrBuilder()

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

getEventTime()

public abstract 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.

getEventTimeOrBuilder()

public abstract 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 abstract 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 abstract 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 abstract 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.

getServiceContextOrBuilder()

public abstract 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 abstract 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 abstract 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 abstract 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.