Class ReportedErrorEvent

  • All Implemented Interfaces:
    ReportedErrorEventOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class ReportedErrorEvent
    extends com.google.protobuf.GeneratedMessageV3
    implements ReportedErrorEventOrBuilder
     An error event which is reported to the Error Reporting system.
     
    Protobuf type google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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];
        Specified by:
        hasEventTime in interface ReportedErrorEventOrBuilder
        Returns:
        Whether the eventTime field is set.
      • getEventTime

        public com.google.protobuf.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];
        Specified by:
        getEventTime in interface ReportedErrorEventOrBuilder
        Returns:
        The eventTime.
      • getEventTimeOrBuilder

        public com.google.protobuf.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];
        Specified by:
        getEventTimeOrBuilder in interface ReportedErrorEventOrBuilder
      • 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];
        Specified by:
        hasServiceContext in interface ReportedErrorEventOrBuilder
        Returns:
        Whether the serviceContext field is set.
      • 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];
        Specified by:
        getServiceContext in interface ReportedErrorEventOrBuilder
        Returns:
        The serviceContext.
      • 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:
        
         * **Java**: Must be the return value of
         [`Throwable.printStackTrace()`](https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#printStackTrace%28%29).
         * **Python**: Must be the return value of
         [`traceback.format_exc()`](https://docs.python.org/2/library/traceback.html#traceback.format_exc).
         * **JavaScript**: Must be the value of
         [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API) as returned
         by V8.
         * **Ruby**: Must contain frames returned by
         [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace).
         * **C#**: Must be the return value of
         [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx).
         * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)`
         and contain the result of
         [`(string)$exception`](http://php.net/manual/en/exception.tostring.php).
         * **Go**: Must be the return value of
         [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack).
         
        string message = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getMessage in interface ReportedErrorEventOrBuilder
        Returns:
        The message.
      • getMessageBytes

        public com.google.protobuf.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:
        
         * **Java**: Must be the return value of
         [`Throwable.printStackTrace()`](https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#printStackTrace%28%29).
         * **Python**: Must be the return value of
         [`traceback.format_exc()`](https://docs.python.org/2/library/traceback.html#traceback.format_exc).
         * **JavaScript**: Must be the value of
         [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API) as returned
         by V8.
         * **Ruby**: Must contain frames returned by
         [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace).
         * **C#**: Must be the return value of
         [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx).
         * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)`
         and contain the result of
         [`(string)$exception`](http://php.net/manual/en/exception.tostring.php).
         * **Go**: Must be the return value of
         [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack).
         
        string message = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getMessageBytes in interface ReportedErrorEventOrBuilder
        Returns:
        The bytes for message.
      • 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];
        Specified by:
        hasContext in interface ReportedErrorEventOrBuilder
        Returns:
        Whether the context field is set.
      • 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];
        Specified by:
        getContext in interface ReportedErrorEventOrBuilder
        Returns:
        The context.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static ReportedErrorEvent parseFrom​(ByteBuffer data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReportedErrorEvent parseFrom​(ByteBuffer data,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReportedErrorEvent parseFrom​(com.google.protobuf.ByteString data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReportedErrorEvent parseFrom​(com.google.protobuf.ByteString data,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReportedErrorEvent parseFrom​(byte[] data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReportedErrorEvent parseFrom​(byte[] data,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReportedErrorEvent parseFrom​(com.google.protobuf.CodedInputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws IOException
        Throws:
        IOException
      • newBuilderForType

        public ReportedErrorEvent.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public ReportedErrorEvent.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected ReportedErrorEvent.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<ReportedErrorEvent> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public ReportedErrorEvent getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder