Class HttpRequestContext.Builder

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

    public static final class HttpRequestContext.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<HttpRequestContext.Builder>
    implements HttpRequestContextOrBuilder
     HTTP request data that is related to a reported error.
     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.HttpRequestContext
    • 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<HttpRequestContext.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public HttpRequestContext.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<HttpRequestContext.Builder>
        Throws:
        IOException
      • getMethodBytes

        public com.google.protobuf.ByteString getMethodBytes()
         The type of HTTP request, such as `GET`, `POST`, etc.
         
        string method = 1;
        Specified by:
        getMethodBytes in interface HttpRequestContextOrBuilder
        Returns:
        The bytes for method.
      • setMethod

        public HttpRequestContext.Builder setMethod​(String value)
         The type of HTTP request, such as `GET`, `POST`, etc.
         
        string method = 1;
        Parameters:
        value - The method to set.
        Returns:
        This builder for chaining.
      • clearMethod

        public HttpRequestContext.Builder clearMethod()
         The type of HTTP request, such as `GET`, `POST`, etc.
         
        string method = 1;
        Returns:
        This builder for chaining.
      • setMethodBytes

        public HttpRequestContext.Builder setMethodBytes​(com.google.protobuf.ByteString value)
         The type of HTTP request, such as `GET`, `POST`, etc.
         
        string method = 1;
        Parameters:
        value - The bytes for method to set.
        Returns:
        This builder for chaining.
      • getUrlBytes

        public com.google.protobuf.ByteString getUrlBytes()
         The URL of the request.
         
        string url = 2;
        Specified by:
        getUrlBytes in interface HttpRequestContextOrBuilder
        Returns:
        The bytes for url.
      • setUrl

        public HttpRequestContext.Builder setUrl​(String value)
         The URL of the request.
         
        string url = 2;
        Parameters:
        value - The url to set.
        Returns:
        This builder for chaining.
      • clearUrl

        public HttpRequestContext.Builder clearUrl()
         The URL of the request.
         
        string url = 2;
        Returns:
        This builder for chaining.
      • setUrlBytes

        public HttpRequestContext.Builder setUrlBytes​(com.google.protobuf.ByteString value)
         The URL of the request.
         
        string url = 2;
        Parameters:
        value - The bytes for url to set.
        Returns:
        This builder for chaining.
      • getUserAgentBytes

        public com.google.protobuf.ByteString getUserAgentBytes()
         The user agent information that is provided with the request.
         
        string user_agent = 3;
        Specified by:
        getUserAgentBytes in interface HttpRequestContextOrBuilder
        Returns:
        The bytes for userAgent.
      • setUserAgent

        public HttpRequestContext.Builder setUserAgent​(String value)
         The user agent information that is provided with the request.
         
        string user_agent = 3;
        Parameters:
        value - The userAgent to set.
        Returns:
        This builder for chaining.
      • clearUserAgent

        public HttpRequestContext.Builder clearUserAgent()
         The user agent information that is provided with the request.
         
        string user_agent = 3;
        Returns:
        This builder for chaining.
      • setUserAgentBytes

        public HttpRequestContext.Builder setUserAgentBytes​(com.google.protobuf.ByteString value)
         The user agent information that is provided with the request.
         
        string user_agent = 3;
        Parameters:
        value - The bytes for userAgent to set.
        Returns:
        This builder for chaining.
      • getReferrerBytes

        public com.google.protobuf.ByteString getReferrerBytes()
         The referrer information that is provided with the request.
         
        string referrer = 4;
        Specified by:
        getReferrerBytes in interface HttpRequestContextOrBuilder
        Returns:
        The bytes for referrer.
      • setReferrer

        public HttpRequestContext.Builder setReferrer​(String value)
         The referrer information that is provided with the request.
         
        string referrer = 4;
        Parameters:
        value - The referrer to set.
        Returns:
        This builder for chaining.
      • clearReferrer

        public HttpRequestContext.Builder clearReferrer()
         The referrer information that is provided with the request.
         
        string referrer = 4;
        Returns:
        This builder for chaining.
      • setReferrerBytes

        public HttpRequestContext.Builder setReferrerBytes​(com.google.protobuf.ByteString value)
         The referrer information that is provided with the request.
         
        string referrer = 4;
        Parameters:
        value - The bytes for referrer to set.
        Returns:
        This builder for chaining.
      • getResponseStatusCode

        public int getResponseStatusCode()
         The HTTP response status code for the request.
         
        int32 response_status_code = 5;
        Specified by:
        getResponseStatusCode in interface HttpRequestContextOrBuilder
        Returns:
        The responseStatusCode.
      • setResponseStatusCode

        public HttpRequestContext.Builder setResponseStatusCode​(int value)
         The HTTP response status code for the request.
         
        int32 response_status_code = 5;
        Parameters:
        value - The responseStatusCode to set.
        Returns:
        This builder for chaining.
      • clearResponseStatusCode

        public HttpRequestContext.Builder clearResponseStatusCode()
         The HTTP response status code for the request.
         
        int32 response_status_code = 5;
        Returns:
        This builder for chaining.
      • getRemoteIp

        public String getRemoteIp()
         The IP address from which the request originated.
         This can be IPv4, IPv6, or a token which is derived from the
         IP address, depending on the data that has been provided
         in the error report.
         
        string remote_ip = 6;
        Specified by:
        getRemoteIp in interface HttpRequestContextOrBuilder
        Returns:
        The remoteIp.
      • getRemoteIpBytes

        public com.google.protobuf.ByteString getRemoteIpBytes()
         The IP address from which the request originated.
         This can be IPv4, IPv6, or a token which is derived from the
         IP address, depending on the data that has been provided
         in the error report.
         
        string remote_ip = 6;
        Specified by:
        getRemoteIpBytes in interface HttpRequestContextOrBuilder
        Returns:
        The bytes for remoteIp.
      • setRemoteIp

        public HttpRequestContext.Builder setRemoteIp​(String value)
         The IP address from which the request originated.
         This can be IPv4, IPv6, or a token which is derived from the
         IP address, depending on the data that has been provided
         in the error report.
         
        string remote_ip = 6;
        Parameters:
        value - The remoteIp to set.
        Returns:
        This builder for chaining.
      • clearRemoteIp

        public HttpRequestContext.Builder clearRemoteIp()
         The IP address from which the request originated.
         This can be IPv4, IPv6, or a token which is derived from the
         IP address, depending on the data that has been provided
         in the error report.
         
        string remote_ip = 6;
        Returns:
        This builder for chaining.
      • setRemoteIpBytes

        public HttpRequestContext.Builder setRemoteIpBytes​(com.google.protobuf.ByteString value)
         The IP address from which the request originated.
         This can be IPv4, IPv6, or a token which is derived from the
         IP address, depending on the data that has been provided
         in the error report.
         
        string remote_ip = 6;
        Parameters:
        value - The bytes for remoteIp to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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