Class ErrorEvent.Builder

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

    public static final class ErrorEvent.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
    implements ErrorEventOrBuilder
     An error event which is returned by the Error Reporting system.
     
    Protobuf type google.devtools.clouderrorreporting.v1beta1.ErrorEvent
    • 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<ErrorEvent.Builder>
      • clear

        public ErrorEvent.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<ErrorEvent.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<ErrorEvent.Builder>
      • getDefaultInstanceForType

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

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

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

        public ErrorEvent.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<ErrorEvent.Builder>
      • setField

        public ErrorEvent.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<ErrorEvent.Builder>
      • clearField

        public ErrorEvent.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<ErrorEvent.Builder>
      • clearOneof

        public ErrorEvent.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<ErrorEvent.Builder>
      • setRepeatedField

        public ErrorEvent.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<ErrorEvent.Builder>
      • addRepeatedField

        public ErrorEvent.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<ErrorEvent.Builder>
      • mergeFrom

        public ErrorEvent.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<ErrorEvent.Builder>
      • isInitialized

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

        public ErrorEvent.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<ErrorEvent.Builder>
        Throws:
        IOException
      • hasEventTime

        public boolean hasEventTime()
         Time when the event occurred as provided in the error report.
         If the report did not contain a timestamp, the time the error was received
         by the Error Reporting system is used.
         
        .google.protobuf.Timestamp event_time = 1;
        Specified by:
        hasEventTime in interface ErrorEventOrBuilder
        Returns:
        Whether the eventTime field is set.
      • getEventTime

        public com.google.protobuf.Timestamp getEventTime()
         Time when the event occurred as provided in the error report.
         If the report did not contain a timestamp, the time the error was received
         by the Error Reporting system is used.
         
        .google.protobuf.Timestamp event_time = 1;
        Specified by:
        getEventTime in interface ErrorEventOrBuilder
        Returns:
        The eventTime.
      • setEventTime

        public ErrorEvent.Builder setEventTime​(com.google.protobuf.Timestamp value)
         Time when the event occurred as provided in the error report.
         If the report did not contain a timestamp, the time the error was received
         by the Error Reporting system is used.
         
        .google.protobuf.Timestamp event_time = 1;
      • setEventTime

        public ErrorEvent.Builder setEventTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Time when the event occurred as provided in the error report.
         If the report did not contain a timestamp, the time the error was received
         by the Error Reporting system is used.
         
        .google.protobuf.Timestamp event_time = 1;
      • mergeEventTime

        public ErrorEvent.Builder mergeEventTime​(com.google.protobuf.Timestamp value)
         Time when the event occurred as provided in the error report.
         If the report did not contain a timestamp, the time the error was received
         by the Error Reporting system is used.
         
        .google.protobuf.Timestamp event_time = 1;
      • clearEventTime

        public ErrorEvent.Builder clearEventTime()
         Time when the event occurred as provided in the error report.
         If the report did not contain a timestamp, the time the error was received
         by the Error Reporting system is used.
         
        .google.protobuf.Timestamp event_time = 1;
      • getEventTimeBuilder

        public com.google.protobuf.Timestamp.Builder getEventTimeBuilder()
         Time when the event occurred as provided in the error report.
         If the report did not contain a timestamp, the time the error was received
         by the Error Reporting system is used.
         
        .google.protobuf.Timestamp event_time = 1;
      • getEventTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder()
         Time when the event occurred as provided in the error report.
         If the report did not contain a timestamp, the time the error was received
         by the Error Reporting system is used.
         
        .google.protobuf.Timestamp event_time = 1;
        Specified by:
        getEventTimeOrBuilder in interface ErrorEventOrBuilder
      • hasServiceContext

        public boolean hasServiceContext()
         The `ServiceContext` for which this error was reported.
         
        .google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;
        Specified by:
        hasServiceContext in interface ErrorEventOrBuilder
        Returns:
        Whether the serviceContext field is set.
      • getServiceContext

        public ServiceContext getServiceContext()
         The `ServiceContext` for which this error was reported.
         
        .google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;
        Specified by:
        getServiceContext in interface ErrorEventOrBuilder
        Returns:
        The serviceContext.
      • setServiceContext

        public ErrorEvent.Builder setServiceContext​(ServiceContext value)
         The `ServiceContext` for which this error was reported.
         
        .google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;
      • setServiceContext

        public ErrorEvent.Builder setServiceContext​(ServiceContext.Builder builderForValue)
         The `ServiceContext` for which this error was reported.
         
        .google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;
      • mergeServiceContext

        public ErrorEvent.Builder mergeServiceContext​(ServiceContext value)
         The `ServiceContext` for which this error was reported.
         
        .google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;
      • clearServiceContext

        public ErrorEvent.Builder clearServiceContext()
         The `ServiceContext` for which this error was reported.
         
        .google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;
      • getServiceContextBuilder

        public ServiceContext.Builder getServiceContextBuilder()
         The `ServiceContext` for which this error was reported.
         
        .google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;
      • getMessage

        public String getMessage()
         The stack trace that was reported or logged by the service.
         
        string message = 3;
        Specified by:
        getMessage in interface ErrorEventOrBuilder
        Returns:
        The message.
      • getMessageBytes

        public com.google.protobuf.ByteString getMessageBytes()
         The stack trace that was reported or logged by the service.
         
        string message = 3;
        Specified by:
        getMessageBytes in interface ErrorEventOrBuilder
        Returns:
        The bytes for message.
      • setMessage

        public ErrorEvent.Builder setMessage​(String value)
         The stack trace that was reported or logged by the service.
         
        string message = 3;
        Parameters:
        value - The message to set.
        Returns:
        This builder for chaining.
      • clearMessage

        public ErrorEvent.Builder clearMessage()
         The stack trace that was reported or logged by the service.
         
        string message = 3;
        Returns:
        This builder for chaining.
      • setMessageBytes

        public ErrorEvent.Builder setMessageBytes​(com.google.protobuf.ByteString value)
         The stack trace that was reported or logged by the service.
         
        string message = 3;
        Parameters:
        value - The bytes for message to set.
        Returns:
        This builder for chaining.
      • hasContext

        public boolean hasContext()
         Data about the context in which the error occurred.
         
        .google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;
        Specified by:
        hasContext in interface ErrorEventOrBuilder
        Returns:
        Whether the context field is set.
      • getContext

        public ErrorContext getContext()
         Data about the context in which the error occurred.
         
        .google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;
        Specified by:
        getContext in interface ErrorEventOrBuilder
        Returns:
        The context.
      • setContext

        public ErrorEvent.Builder setContext​(ErrorContext value)
         Data about the context in which the error occurred.
         
        .google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;
      • setContext

        public ErrorEvent.Builder setContext​(ErrorContext.Builder builderForValue)
         Data about the context in which the error occurred.
         
        .google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;
      • mergeContext

        public ErrorEvent.Builder mergeContext​(ErrorContext value)
         Data about the context in which the error occurred.
         
        .google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;
      • clearContext

        public ErrorEvent.Builder clearContext()
         Data about the context in which the error occurred.
         
        .google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;
      • getContextBuilder

        public ErrorContext.Builder getContextBuilder()
         Data about the context in which the error occurred.
         
        .google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;
      • setUnknownFields

        public final ErrorEvent.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<ErrorEvent.Builder>
      • mergeUnknownFields

        public final ErrorEvent.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<ErrorEvent.Builder>