Interface ReportedErrorEventOrBuilder (0.173.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
Type Description
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
Type Description
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 is used. If provided, the time must not exceed the logs retention period in the past, or be more than 24 hours in the future. If an invalid time is provided, then an error is returned.

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

Returns
Type Description
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 is used. If provided, the time must not exceed the logs retention period in the past, or be more than 24 hours in the future. If an invalid time is provided, then an error is returned.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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 is used. If provided, the time must not exceed the logs retention period in the past, or be more than 24 hours in the future. If an invalid time is provided, then an error is returned.

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

Returns
Type Description
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
Type Description
boolean

Whether the serviceContext field is set.