Class ReportedErrorEvent.Builder

  • All Implemented Interfaces:
    ReportedErrorEventOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ReportedErrorEvent

    public static final class ReportedErrorEvent.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ReportedErrorEvent.Builder>
    implements ReportedErrorEventOrBuilder
     An error event which is reported to the Error Reporting system.
     
    Protobuf type google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent
    • Method Detail

      • 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.Builder<ReportedErrorEvent.Builder>
      • clear

        public ReportedErrorEvent.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ReportedErrorEvent.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ReportedErrorEvent.Builder>
      • getDefaultInstanceForType

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

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

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

        public ReportedErrorEvent.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ReportedErrorEvent.Builder>
      • setField

        public ReportedErrorEvent.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ReportedErrorEvent.Builder>
      • clearField

        public ReportedErrorEvent.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ReportedErrorEvent.Builder>
      • clearOneof

        public ReportedErrorEvent.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ReportedErrorEvent.Builder>
      • setRepeatedField

        public ReportedErrorEvent.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           int index,
                                                           Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ReportedErrorEvent.Builder>
      • addRepeatedField

        public ReportedErrorEvent.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ReportedErrorEvent.Builder>
      • mergeFrom

        public ReportedErrorEvent.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ReportedErrorEvent.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ReportedErrorEvent.Builder>
      • mergeFrom

        public ReportedErrorEvent.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ReportedErrorEvent.Builder>
        Throws:
        IOException
      • 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.
      • setEventTime

        public ReportedErrorEvent.Builder setEventTime​(com.google.protobuf.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];
      • setEventTime

        public ReportedErrorEvent.Builder setEventTime​(com.google.protobuf.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];
      • mergeEventTime

        public ReportedErrorEvent.Builder mergeEventTime​(com.google.protobuf.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];
      • 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];
      • getEventTimeBuilder

        public com.google.protobuf.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];
      • 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.
      • setServiceContext

        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];
      • setServiceContext

        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];
      • mergeServiceContext

        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];
      • 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];
      • 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];
      • 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.
      • setMessage

        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:
        
         * **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];
        Parameters:
        value - The message to set.
        Returns:
        This builder for chaining.
      • 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:
        
         * **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];
        Returns:
        This builder for chaining.
      • setMessageBytes

        public ReportedErrorEvent.Builder setMessageBytes​(com.google.protobuf.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:
        
         * **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];
        Parameters:
        value - The bytes for message to set.
        Returns:
        This builder for chaining.
      • 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.
      • setContext

        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];
      • setContext

        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];
      • mergeContext

        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];
      • 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];
      • 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];
      • setUnknownFields

        public final ReportedErrorEvent.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReportedErrorEvent.Builder>
      • mergeUnknownFields

        public final ReportedErrorEvent.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReportedErrorEvent.Builder>