Class ErrorContext.Builder

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

    public static final class ErrorContext.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ErrorContext.Builder>
    implements ErrorContextOrBuilder
     A description of the context in which an error occurred.
     This data should be provided by the application when reporting an error,
     unless the
     error report has been generated automatically from Google App Engine logs.
     
    Protobuf type google.devtools.clouderrorreporting.v1beta1.ErrorContext
    • 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<ErrorContext.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public ErrorContext.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<ErrorContext.Builder>
        Throws:
        IOException
      • hasHttpRequest

        public boolean hasHttpRequest()
         The HTTP request which was processed when the error was
         triggered.
         
        .google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;
        Specified by:
        hasHttpRequest in interface ErrorContextOrBuilder
        Returns:
        Whether the httpRequest field is set.
      • getHttpRequest

        public HttpRequestContext getHttpRequest()
         The HTTP request which was processed when the error was
         triggered.
         
        .google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;
        Specified by:
        getHttpRequest in interface ErrorContextOrBuilder
        Returns:
        The httpRequest.
      • setHttpRequest

        public ErrorContext.Builder setHttpRequest​(HttpRequestContext value)
         The HTTP request which was processed when the error was
         triggered.
         
        .google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;
      • setHttpRequest

        public ErrorContext.Builder setHttpRequest​(HttpRequestContext.Builder builderForValue)
         The HTTP request which was processed when the error was
         triggered.
         
        .google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;
      • mergeHttpRequest

        public ErrorContext.Builder mergeHttpRequest​(HttpRequestContext value)
         The HTTP request which was processed when the error was
         triggered.
         
        .google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;
      • clearHttpRequest

        public ErrorContext.Builder clearHttpRequest()
         The HTTP request which was processed when the error was
         triggered.
         
        .google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;
      • getHttpRequestBuilder

        public HttpRequestContext.Builder getHttpRequestBuilder()
         The HTTP request which was processed when the error was
         triggered.
         
        .google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1;
      • getUser

        public String getUser()
         The user who caused or was affected by the crash.
         This can be a user ID, an email address, or an arbitrary token that
         uniquely identifies the user.
         When sending an error report, leave this field empty if the user was not
         logged in. In this case the
         Error Reporting system will use other data, such as remote IP address, to
         distinguish affected users. See `affected_users_count` in
         `ErrorGroupStats`.
         
        string user = 2;
        Specified by:
        getUser in interface ErrorContextOrBuilder
        Returns:
        The user.
      • getUserBytes

        public com.google.protobuf.ByteString getUserBytes()
         The user who caused or was affected by the crash.
         This can be a user ID, an email address, or an arbitrary token that
         uniquely identifies the user.
         When sending an error report, leave this field empty if the user was not
         logged in. In this case the
         Error Reporting system will use other data, such as remote IP address, to
         distinguish affected users. See `affected_users_count` in
         `ErrorGroupStats`.
         
        string user = 2;
        Specified by:
        getUserBytes in interface ErrorContextOrBuilder
        Returns:
        The bytes for user.
      • setUser

        public ErrorContext.Builder setUser​(String value)
         The user who caused or was affected by the crash.
         This can be a user ID, an email address, or an arbitrary token that
         uniquely identifies the user.
         When sending an error report, leave this field empty if the user was not
         logged in. In this case the
         Error Reporting system will use other data, such as remote IP address, to
         distinguish affected users. See `affected_users_count` in
         `ErrorGroupStats`.
         
        string user = 2;
        Parameters:
        value - The user to set.
        Returns:
        This builder for chaining.
      • clearUser

        public ErrorContext.Builder clearUser()
         The user who caused or was affected by the crash.
         This can be a user ID, an email address, or an arbitrary token that
         uniquely identifies the user.
         When sending an error report, leave this field empty if the user was not
         logged in. In this case the
         Error Reporting system will use other data, such as remote IP address, to
         distinguish affected users. See `affected_users_count` in
         `ErrorGroupStats`.
         
        string user = 2;
        Returns:
        This builder for chaining.
      • setUserBytes

        public ErrorContext.Builder setUserBytes​(com.google.protobuf.ByteString value)
         The user who caused or was affected by the crash.
         This can be a user ID, an email address, or an arbitrary token that
         uniquely identifies the user.
         When sending an error report, leave this field empty if the user was not
         logged in. In this case the
         Error Reporting system will use other data, such as remote IP address, to
         distinguish affected users. See `affected_users_count` in
         `ErrorGroupStats`.
         
        string user = 2;
        Parameters:
        value - The bytes for user to set.
        Returns:
        This builder for chaining.
      • hasReportLocation

        public boolean hasReportLocation()
         The location in the source code where the decision was made to
         report the error, usually the place where it was logged.
         For a logged exception this would be the source line where the
         exception is logged, usually close to the place where it was
         caught.
         
        .google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;
        Specified by:
        hasReportLocation in interface ErrorContextOrBuilder
        Returns:
        Whether the reportLocation field is set.
      • getReportLocation

        public SourceLocation getReportLocation()
         The location in the source code where the decision was made to
         report the error, usually the place where it was logged.
         For a logged exception this would be the source line where the
         exception is logged, usually close to the place where it was
         caught.
         
        .google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;
        Specified by:
        getReportLocation in interface ErrorContextOrBuilder
        Returns:
        The reportLocation.
      • setReportLocation

        public ErrorContext.Builder setReportLocation​(SourceLocation value)
         The location in the source code where the decision was made to
         report the error, usually the place where it was logged.
         For a logged exception this would be the source line where the
         exception is logged, usually close to the place where it was
         caught.
         
        .google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;
      • setReportLocation

        public ErrorContext.Builder setReportLocation​(SourceLocation.Builder builderForValue)
         The location in the source code where the decision was made to
         report the error, usually the place where it was logged.
         For a logged exception this would be the source line where the
         exception is logged, usually close to the place where it was
         caught.
         
        .google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;
      • mergeReportLocation

        public ErrorContext.Builder mergeReportLocation​(SourceLocation value)
         The location in the source code where the decision was made to
         report the error, usually the place where it was logged.
         For a logged exception this would be the source line where the
         exception is logged, usually close to the place where it was
         caught.
         
        .google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;
      • clearReportLocation

        public ErrorContext.Builder clearReportLocation()
         The location in the source code where the decision was made to
         report the error, usually the place where it was logged.
         For a logged exception this would be the source line where the
         exception is logged, usually close to the place where it was
         caught.
         
        .google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;
      • getReportLocationBuilder

        public SourceLocation.Builder getReportLocationBuilder()
         The location in the source code where the decision was made to
         report the error, usually the place where it was logged.
         For a logged exception this would be the source line where the
         exception is logged, usually close to the place where it was
         caught.
         
        .google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;
      • getReportLocationOrBuilder

        public SourceLocationOrBuilder getReportLocationOrBuilder()
         The location in the source code where the decision was made to
         report the error, usually the place where it was logged.
         For a logged exception this would be the source line where the
         exception is logged, usually close to the place where it was
         caught.
         
        .google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;
        Specified by:
        getReportLocationOrBuilder in interface ErrorContextOrBuilder
      • setUnknownFields

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

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