Class HttpRequest.Builder

  • All Implemented Interfaces:
    HttpRequestOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    HttpRequest

    public static final class HttpRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<HttpRequest.Builder>
    implements HttpRequestOrBuilder
     A common proto for logging HTTP requests. Only contains semantics
     defined by the HTTP specification. Product-specific logging
     information MUST be defined in a separate message.
     
    Protobuf type google.logging.type.HttpRequest
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      HttpRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)  
      HttpRequest build()  
      HttpRequest buildPartial()  
      HttpRequest.Builder clear()  
      HttpRequest.Builder clearCacheFillBytes()
      The number of HTTP response bytes inserted into cache.
      HttpRequest.Builder clearCacheHit()
      Whether or not an entity was served from cache (with or without validation).
      HttpRequest.Builder clearCacheLookup()
      Whether or not a cache lookup was attempted.
      HttpRequest.Builder clearCacheValidatedWithOriginServer()
      Whether or not the response was validated with the origin server before being served from cache.
      HttpRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)  
      HttpRequest.Builder clearLatency()
      The request processing latency on the server, from the time the request was received until the response was sent.
      HttpRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)  
      HttpRequest.Builder clearProtocol()
      Protocol used for the request.
      HttpRequest.Builder clearReferer()
      The referer URL of the request, as defined in [HTTP/1.1 Header Field Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36).
      HttpRequest.Builder clearRemoteIp()
      The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
      HttpRequest.Builder clearRequestMethod()
      The request method.
      HttpRequest.Builder clearRequestSize()
      The size of the HTTP request message in bytes, including the request headers and the request body.
      HttpRequest.Builder clearRequestUrl()
      The scheme (http, https), the host name, the path and the query portion of the URL that was requested.
      HttpRequest.Builder clearResponseSize()
      The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body.
      HttpRequest.Builder clearServerIp()
      The IP address (IPv4 or IPv6) of the origin server that the request was sent to.
      HttpRequest.Builder clearStatus()
      The response code indicating the status of response.
      HttpRequest.Builder clearUserAgent()
      The user agent sent by the client.
      HttpRequest.Builder clone()  
      long getCacheFillBytes()
      The number of HTTP response bytes inserted into cache.
      boolean getCacheHit()
      Whether or not an entity was served from cache (with or without validation).
      boolean getCacheLookup()
      Whether or not a cache lookup was attempted.
      boolean getCacheValidatedWithOriginServer()
      Whether or not the response was validated with the origin server before being served from cache.
      HttpRequest getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      com.google.protobuf.Duration getLatency()
      The request processing latency on the server, from the time the request was received until the response was sent.
      com.google.protobuf.Duration.Builder getLatencyBuilder()
      The request processing latency on the server, from the time the request was received until the response was sent.
      com.google.protobuf.DurationOrBuilder getLatencyOrBuilder()
      The request processing latency on the server, from the time the request was received until the response was sent.
      java.lang.String getProtocol()
      Protocol used for the request.
      com.google.protobuf.ByteString getProtocolBytes()
      Protocol used for the request.
      java.lang.String getReferer()
      The referer URL of the request, as defined in [HTTP/1.1 Header Field Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36).
      com.google.protobuf.ByteString getRefererBytes()
      The referer URL of the request, as defined in [HTTP/1.1 Header Field Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36).
      java.lang.String getRemoteIp()
      The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
      com.google.protobuf.ByteString getRemoteIpBytes()
      The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
      java.lang.String getRequestMethod()
      The request method.
      com.google.protobuf.ByteString getRequestMethodBytes()
      The request method.
      long getRequestSize()
      The size of the HTTP request message in bytes, including the request headers and the request body.
      java.lang.String getRequestUrl()
      The scheme (http, https), the host name, the path and the query portion of the URL that was requested.
      com.google.protobuf.ByteString getRequestUrlBytes()
      The scheme (http, https), the host name, the path and the query portion of the URL that was requested.
      long getResponseSize()
      The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body.
      java.lang.String getServerIp()
      The IP address (IPv4 or IPv6) of the origin server that the request was sent to.
      com.google.protobuf.ByteString getServerIpBytes()
      The IP address (IPv4 or IPv6) of the origin server that the request was sent to.
      int getStatus()
      The response code indicating the status of response.
      java.lang.String getUserAgent()
      The user agent sent by the client.
      com.google.protobuf.ByteString getUserAgentBytes()
      The user agent sent by the client.
      boolean hasLatency()
      The request processing latency on the server, from the time the request was received until the response was sent.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      HttpRequest.Builder mergeFrom​(HttpRequest other)  
      HttpRequest.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      HttpRequest.Builder mergeFrom​(com.google.protobuf.Message other)  
      HttpRequest.Builder mergeLatency​(com.google.protobuf.Duration value)
      The request processing latency on the server, from the time the request was received until the response was sent.
      HttpRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      HttpRequest.Builder setCacheFillBytes​(long value)
      The number of HTTP response bytes inserted into cache.
      HttpRequest.Builder setCacheHit​(boolean value)
      Whether or not an entity was served from cache (with or without validation).
      HttpRequest.Builder setCacheLookup​(boolean value)
      Whether or not a cache lookup was attempted.
      HttpRequest.Builder setCacheValidatedWithOriginServer​(boolean value)
      Whether or not the response was validated with the origin server before being served from cache.
      HttpRequest.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)  
      HttpRequest.Builder setLatency​(com.google.protobuf.Duration value)
      The request processing latency on the server, from the time the request was received until the response was sent.
      HttpRequest.Builder setLatency​(com.google.protobuf.Duration.Builder builderForValue)
      The request processing latency on the server, from the time the request was received until the response was sent.
      HttpRequest.Builder setProtocol​(java.lang.String value)
      Protocol used for the request.
      HttpRequest.Builder setProtocolBytes​(com.google.protobuf.ByteString value)
      Protocol used for the request.
      HttpRequest.Builder setReferer​(java.lang.String value)
      The referer URL of the request, as defined in [HTTP/1.1 Header Field Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36).
      HttpRequest.Builder setRefererBytes​(com.google.protobuf.ByteString value)
      The referer URL of the request, as defined in [HTTP/1.1 Header Field Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36).
      HttpRequest.Builder setRemoteIp​(java.lang.String value)
      The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
      HttpRequest.Builder setRemoteIpBytes​(com.google.protobuf.ByteString value)
      The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
      HttpRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)  
      HttpRequest.Builder setRequestMethod​(java.lang.String value)
      The request method.
      HttpRequest.Builder setRequestMethodBytes​(com.google.protobuf.ByteString value)
      The request method.
      HttpRequest.Builder setRequestSize​(long value)
      The size of the HTTP request message in bytes, including the request headers and the request body.
      HttpRequest.Builder setRequestUrl​(java.lang.String value)
      The scheme (http, https), the host name, the path and the query portion of the URL that was requested.
      HttpRequest.Builder setRequestUrlBytes​(com.google.protobuf.ByteString value)
      The scheme (http, https), the host name, the path and the query portion of the URL that was requested.
      HttpRequest.Builder setResponseSize​(long value)
      The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body.
      HttpRequest.Builder setServerIp​(java.lang.String value)
      The IP address (IPv4 or IPv6) of the origin server that the request was sent to.
      HttpRequest.Builder setServerIpBytes​(com.google.protobuf.ByteString value)
      The IP address (IPv4 or IPv6) of the origin server that the request was sent to.
      HttpRequest.Builder setStatus​(int value)
      The response code indicating the status of response.
      HttpRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      HttpRequest.Builder setUserAgent​(java.lang.String value)
      The user agent sent by the client.
      HttpRequest.Builder setUserAgentBytes​(com.google.protobuf.ByteString value)
      The user agent sent by the client.
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder

        getParentForChildren
      • Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder

        addExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension
      • Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

        getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, setUnknownFieldSetBuilder, setUnknownFieldsProto3
      • Methods inherited from class com.google.protobuf.AbstractMessage.Builder

        findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

        addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.google.protobuf.Message.Builder

        mergeDelimitedFrom, mergeDelimitedFrom
      • Methods inherited from interface com.google.protobuf.MessageLite.Builder

        mergeFrom
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Overrides:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<HttpRequest.Builder>
      • clear

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

        public HttpRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

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

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

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

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

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

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

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

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

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

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

        public HttpRequest.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws java.io.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<HttpRequest.Builder>
        Throws:
        java.io.IOException
      • getRequestMethod

        public java.lang.String getRequestMethod()
         The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
         
        string request_method = 1;
        Specified by:
        getRequestMethod in interface HttpRequestOrBuilder
        Returns:
        The requestMethod.
      • getRequestMethodBytes

        public com.google.protobuf.ByteString getRequestMethodBytes()
         The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
         
        string request_method = 1;
        Specified by:
        getRequestMethodBytes in interface HttpRequestOrBuilder
        Returns:
        The bytes for requestMethod.
      • setRequestMethod

        public HttpRequest.Builder setRequestMethod​(java.lang.String value)
         The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
         
        string request_method = 1;
        Parameters:
        value - The requestMethod to set.
        Returns:
        This builder for chaining.
      • clearRequestMethod

        public HttpRequest.Builder clearRequestMethod()
         The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
         
        string request_method = 1;
        Returns:
        This builder for chaining.
      • setRequestMethodBytes

        public HttpRequest.Builder setRequestMethodBytes​(com.google.protobuf.ByteString value)
         The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
         
        string request_method = 1;
        Parameters:
        value - The bytes for requestMethod to set.
        Returns:
        This builder for chaining.
      • getRequestUrl

        public java.lang.String getRequestUrl()
         The scheme (http, https), the host name, the path and the query
         portion of the URL that was requested.
         Example: `"http://example.com/some/info?color=red"`.
         
        string request_url = 2;
        Specified by:
        getRequestUrl in interface HttpRequestOrBuilder
        Returns:
        The requestUrl.
      • getRequestUrlBytes

        public com.google.protobuf.ByteString getRequestUrlBytes()
         The scheme (http, https), the host name, the path and the query
         portion of the URL that was requested.
         Example: `"http://example.com/some/info?color=red"`.
         
        string request_url = 2;
        Specified by:
        getRequestUrlBytes in interface HttpRequestOrBuilder
        Returns:
        The bytes for requestUrl.
      • setRequestUrl

        public HttpRequest.Builder setRequestUrl​(java.lang.String value)
         The scheme (http, https), the host name, the path and the query
         portion of the URL that was requested.
         Example: `"http://example.com/some/info?color=red"`.
         
        string request_url = 2;
        Parameters:
        value - The requestUrl to set.
        Returns:
        This builder for chaining.
      • clearRequestUrl

        public HttpRequest.Builder clearRequestUrl()
         The scheme (http, https), the host name, the path and the query
         portion of the URL that was requested.
         Example: `"http://example.com/some/info?color=red"`.
         
        string request_url = 2;
        Returns:
        This builder for chaining.
      • setRequestUrlBytes

        public HttpRequest.Builder setRequestUrlBytes​(com.google.protobuf.ByteString value)
         The scheme (http, https), the host name, the path and the query
         portion of the URL that was requested.
         Example: `"http://example.com/some/info?color=red"`.
         
        string request_url = 2;
        Parameters:
        value - The bytes for requestUrl to set.
        Returns:
        This builder for chaining.
      • getRequestSize

        public long getRequestSize()
         The size of the HTTP request message in bytes, including the request
         headers and the request body.
         
        int64 request_size = 3;
        Specified by:
        getRequestSize in interface HttpRequestOrBuilder
        Returns:
        The requestSize.
      • setRequestSize

        public HttpRequest.Builder setRequestSize​(long value)
         The size of the HTTP request message in bytes, including the request
         headers and the request body.
         
        int64 request_size = 3;
        Parameters:
        value - The requestSize to set.
        Returns:
        This builder for chaining.
      • clearRequestSize

        public HttpRequest.Builder clearRequestSize()
         The size of the HTTP request message in bytes, including the request
         headers and the request body.
         
        int64 request_size = 3;
        Returns:
        This builder for chaining.
      • getStatus

        public int getStatus()
         The response code indicating the status of response.
         Examples: 200, 404.
         
        int32 status = 4;
        Specified by:
        getStatus in interface HttpRequestOrBuilder
        Returns:
        The status.
      • setStatus

        public HttpRequest.Builder setStatus​(int value)
         The response code indicating the status of response.
         Examples: 200, 404.
         
        int32 status = 4;
        Parameters:
        value - The status to set.
        Returns:
        This builder for chaining.
      • clearStatus

        public HttpRequest.Builder clearStatus()
         The response code indicating the status of response.
         Examples: 200, 404.
         
        int32 status = 4;
        Returns:
        This builder for chaining.
      • getResponseSize

        public long getResponseSize()
         The size of the HTTP response message sent back to the client, in bytes,
         including the response headers and the response body.
         
        int64 response_size = 5;
        Specified by:
        getResponseSize in interface HttpRequestOrBuilder
        Returns:
        The responseSize.
      • setResponseSize

        public HttpRequest.Builder setResponseSize​(long value)
         The size of the HTTP response message sent back to the client, in bytes,
         including the response headers and the response body.
         
        int64 response_size = 5;
        Parameters:
        value - The responseSize to set.
        Returns:
        This builder for chaining.
      • clearResponseSize

        public HttpRequest.Builder clearResponseSize()
         The size of the HTTP response message sent back to the client, in bytes,
         including the response headers and the response body.
         
        int64 response_size = 5;
        Returns:
        This builder for chaining.
      • getUserAgent

        public java.lang.String getUserAgent()
         The user agent sent by the client. Example:
         `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
         CLR 1.0.3705)"`.
         
        string user_agent = 6;
        Specified by:
        getUserAgent in interface HttpRequestOrBuilder
        Returns:
        The userAgent.
      • getUserAgentBytes

        public com.google.protobuf.ByteString getUserAgentBytes()
         The user agent sent by the client. Example:
         `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
         CLR 1.0.3705)"`.
         
        string user_agent = 6;
        Specified by:
        getUserAgentBytes in interface HttpRequestOrBuilder
        Returns:
        The bytes for userAgent.
      • setUserAgent

        public HttpRequest.Builder setUserAgent​(java.lang.String value)
         The user agent sent by the client. Example:
         `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
         CLR 1.0.3705)"`.
         
        string user_agent = 6;
        Parameters:
        value - The userAgent to set.
        Returns:
        This builder for chaining.
      • clearUserAgent

        public HttpRequest.Builder clearUserAgent()
         The user agent sent by the client. Example:
         `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
         CLR 1.0.3705)"`.
         
        string user_agent = 6;
        Returns:
        This builder for chaining.
      • setUserAgentBytes

        public HttpRequest.Builder setUserAgentBytes​(com.google.protobuf.ByteString value)
         The user agent sent by the client. Example:
         `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
         CLR 1.0.3705)"`.
         
        string user_agent = 6;
        Parameters:
        value - The bytes for userAgent to set.
        Returns:
        This builder for chaining.
      • getRemoteIp

        public java.lang.String getRemoteIp()
         The IP address (IPv4 or IPv6) of the client that issued the HTTP
         request. This field can include port information. Examples:
         `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
         
        string remote_ip = 7;
        Specified by:
        getRemoteIp in interface HttpRequestOrBuilder
        Returns:
        The remoteIp.
      • getRemoteIpBytes

        public com.google.protobuf.ByteString getRemoteIpBytes()
         The IP address (IPv4 or IPv6) of the client that issued the HTTP
         request. This field can include port information. Examples:
         `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
         
        string remote_ip = 7;
        Specified by:
        getRemoteIpBytes in interface HttpRequestOrBuilder
        Returns:
        The bytes for remoteIp.
      • setRemoteIp

        public HttpRequest.Builder setRemoteIp​(java.lang.String value)
         The IP address (IPv4 or IPv6) of the client that issued the HTTP
         request. This field can include port information. Examples:
         `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
         
        string remote_ip = 7;
        Parameters:
        value - The remoteIp to set.
        Returns:
        This builder for chaining.
      • clearRemoteIp

        public HttpRequest.Builder clearRemoteIp()
         The IP address (IPv4 or IPv6) of the client that issued the HTTP
         request. This field can include port information. Examples:
         `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
         
        string remote_ip = 7;
        Returns:
        This builder for chaining.
      • setRemoteIpBytes

        public HttpRequest.Builder setRemoteIpBytes​(com.google.protobuf.ByteString value)
         The IP address (IPv4 or IPv6) of the client that issued the HTTP
         request. This field can include port information. Examples:
         `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
         
        string remote_ip = 7;
        Parameters:
        value - The bytes for remoteIp to set.
        Returns:
        This builder for chaining.
      • getServerIp

        public java.lang.String getServerIp()
         The IP address (IPv4 or IPv6) of the origin server that the request was
         sent to. This field can include port information. Examples:
         `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
         
        string server_ip = 13;
        Specified by:
        getServerIp in interface HttpRequestOrBuilder
        Returns:
        The serverIp.
      • getServerIpBytes

        public com.google.protobuf.ByteString getServerIpBytes()
         The IP address (IPv4 or IPv6) of the origin server that the request was
         sent to. This field can include port information. Examples:
         `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
         
        string server_ip = 13;
        Specified by:
        getServerIpBytes in interface HttpRequestOrBuilder
        Returns:
        The bytes for serverIp.
      • setServerIp

        public HttpRequest.Builder setServerIp​(java.lang.String value)
         The IP address (IPv4 or IPv6) of the origin server that the request was
         sent to. This field can include port information. Examples:
         `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
         
        string server_ip = 13;
        Parameters:
        value - The serverIp to set.
        Returns:
        This builder for chaining.
      • clearServerIp

        public HttpRequest.Builder clearServerIp()
         The IP address (IPv4 or IPv6) of the origin server that the request was
         sent to. This field can include port information. Examples:
         `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
         
        string server_ip = 13;
        Returns:
        This builder for chaining.
      • setServerIpBytes

        public HttpRequest.Builder setServerIpBytes​(com.google.protobuf.ByteString value)
         The IP address (IPv4 or IPv6) of the origin server that the request was
         sent to. This field can include port information. Examples:
         `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
         
        string server_ip = 13;
        Parameters:
        value - The bytes for serverIp to set.
        Returns:
        This builder for chaining.
      • getReferer

        public java.lang.String getReferer()
         The referer URL of the request, as defined in
         [HTTP/1.1 Header Field
         Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36).
         
        string referer = 8;
        Specified by:
        getReferer in interface HttpRequestOrBuilder
        Returns:
        The referer.
      • getRefererBytes

        public com.google.protobuf.ByteString getRefererBytes()
         The referer URL of the request, as defined in
         [HTTP/1.1 Header Field
         Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36).
         
        string referer = 8;
        Specified by:
        getRefererBytes in interface HttpRequestOrBuilder
        Returns:
        The bytes for referer.
      • setReferer

        public HttpRequest.Builder setReferer​(java.lang.String value)
         The referer URL of the request, as defined in
         [HTTP/1.1 Header Field
         Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36).
         
        string referer = 8;
        Parameters:
        value - The referer to set.
        Returns:
        This builder for chaining.
      • clearReferer

        public HttpRequest.Builder clearReferer()
         The referer URL of the request, as defined in
         [HTTP/1.1 Header Field
         Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36).
         
        string referer = 8;
        Returns:
        This builder for chaining.
      • setRefererBytes

        public HttpRequest.Builder setRefererBytes​(com.google.protobuf.ByteString value)
         The referer URL of the request, as defined in
         [HTTP/1.1 Header Field
         Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36).
         
        string referer = 8;
        Parameters:
        value - The bytes for referer to set.
        Returns:
        This builder for chaining.
      • hasLatency

        public boolean hasLatency()
         The request processing latency on the server, from the time the request was
         received until the response was sent.
         
        .google.protobuf.Duration latency = 14;
        Specified by:
        hasLatency in interface HttpRequestOrBuilder
        Returns:
        Whether the latency field is set.
      • getLatency

        public com.google.protobuf.Duration getLatency()
         The request processing latency on the server, from the time the request was
         received until the response was sent.
         
        .google.protobuf.Duration latency = 14;
        Specified by:
        getLatency in interface HttpRequestOrBuilder
        Returns:
        The latency.
      • setLatency

        public HttpRequest.Builder setLatency​(com.google.protobuf.Duration value)
         The request processing latency on the server, from the time the request was
         received until the response was sent.
         
        .google.protobuf.Duration latency = 14;
      • setLatency

        public HttpRequest.Builder setLatency​(com.google.protobuf.Duration.Builder builderForValue)
         The request processing latency on the server, from the time the request was
         received until the response was sent.
         
        .google.protobuf.Duration latency = 14;
      • mergeLatency

        public HttpRequest.Builder mergeLatency​(com.google.protobuf.Duration value)
         The request processing latency on the server, from the time the request was
         received until the response was sent.
         
        .google.protobuf.Duration latency = 14;
      • clearLatency

        public HttpRequest.Builder clearLatency()
         The request processing latency on the server, from the time the request was
         received until the response was sent.
         
        .google.protobuf.Duration latency = 14;
      • getLatencyBuilder

        public com.google.protobuf.Duration.Builder getLatencyBuilder()
         The request processing latency on the server, from the time the request was
         received until the response was sent.
         
        .google.protobuf.Duration latency = 14;
      • getLatencyOrBuilder

        public com.google.protobuf.DurationOrBuilder getLatencyOrBuilder()
         The request processing latency on the server, from the time the request was
         received until the response was sent.
         
        .google.protobuf.Duration latency = 14;
        Specified by:
        getLatencyOrBuilder in interface HttpRequestOrBuilder
      • getCacheLookup

        public boolean getCacheLookup()
         Whether or not a cache lookup was attempted.
         
        bool cache_lookup = 11;
        Specified by:
        getCacheLookup in interface HttpRequestOrBuilder
        Returns:
        The cacheLookup.
      • setCacheLookup

        public HttpRequest.Builder setCacheLookup​(boolean value)
         Whether or not a cache lookup was attempted.
         
        bool cache_lookup = 11;
        Parameters:
        value - The cacheLookup to set.
        Returns:
        This builder for chaining.
      • clearCacheLookup

        public HttpRequest.Builder clearCacheLookup()
         Whether or not a cache lookup was attempted.
         
        bool cache_lookup = 11;
        Returns:
        This builder for chaining.
      • getCacheHit

        public boolean getCacheHit()
         Whether or not an entity was served from cache
         (with or without validation).
         
        bool cache_hit = 9;
        Specified by:
        getCacheHit in interface HttpRequestOrBuilder
        Returns:
        The cacheHit.
      • setCacheHit

        public HttpRequest.Builder setCacheHit​(boolean value)
         Whether or not an entity was served from cache
         (with or without validation).
         
        bool cache_hit = 9;
        Parameters:
        value - The cacheHit to set.
        Returns:
        This builder for chaining.
      • clearCacheHit

        public HttpRequest.Builder clearCacheHit()
         Whether or not an entity was served from cache
         (with or without validation).
         
        bool cache_hit = 9;
        Returns:
        This builder for chaining.
      • getCacheValidatedWithOriginServer

        public boolean getCacheValidatedWithOriginServer()
         Whether or not the response was validated with the origin server before
         being served from cache. This field is only meaningful if `cache_hit` is
         True.
         
        bool cache_validated_with_origin_server = 10;
        Specified by:
        getCacheValidatedWithOriginServer in interface HttpRequestOrBuilder
        Returns:
        The cacheValidatedWithOriginServer.
      • setCacheValidatedWithOriginServer

        public HttpRequest.Builder setCacheValidatedWithOriginServer​(boolean value)
         Whether or not the response was validated with the origin server before
         being served from cache. This field is only meaningful if `cache_hit` is
         True.
         
        bool cache_validated_with_origin_server = 10;
        Parameters:
        value - The cacheValidatedWithOriginServer to set.
        Returns:
        This builder for chaining.
      • clearCacheValidatedWithOriginServer

        public HttpRequest.Builder clearCacheValidatedWithOriginServer()
         Whether or not the response was validated with the origin server before
         being served from cache. This field is only meaningful if `cache_hit` is
         True.
         
        bool cache_validated_with_origin_server = 10;
        Returns:
        This builder for chaining.
      • getCacheFillBytes

        public long getCacheFillBytes()
         The number of HTTP response bytes inserted into cache. Set only when a
         cache fill was attempted.
         
        int64 cache_fill_bytes = 12;
        Specified by:
        getCacheFillBytes in interface HttpRequestOrBuilder
        Returns:
        The cacheFillBytes.
      • setCacheFillBytes

        public HttpRequest.Builder setCacheFillBytes​(long value)
         The number of HTTP response bytes inserted into cache. Set only when a
         cache fill was attempted.
         
        int64 cache_fill_bytes = 12;
        Parameters:
        value - The cacheFillBytes to set.
        Returns:
        This builder for chaining.
      • clearCacheFillBytes

        public HttpRequest.Builder clearCacheFillBytes()
         The number of HTTP response bytes inserted into cache. Set only when a
         cache fill was attempted.
         
        int64 cache_fill_bytes = 12;
        Returns:
        This builder for chaining.
      • getProtocol

        public java.lang.String getProtocol()
         Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
         
        string protocol = 15;
        Specified by:
        getProtocol in interface HttpRequestOrBuilder
        Returns:
        The protocol.
      • getProtocolBytes

        public com.google.protobuf.ByteString getProtocolBytes()
         Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
         
        string protocol = 15;
        Specified by:
        getProtocolBytes in interface HttpRequestOrBuilder
        Returns:
        The bytes for protocol.
      • setProtocol

        public HttpRequest.Builder setProtocol​(java.lang.String value)
         Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
         
        string protocol = 15;
        Parameters:
        value - The protocol to set.
        Returns:
        This builder for chaining.
      • clearProtocol

        public HttpRequest.Builder clearProtocol()
         Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
         
        string protocol = 15;
        Returns:
        This builder for chaining.
      • setProtocolBytes

        public HttpRequest.Builder setProtocolBytes​(com.google.protobuf.ByteString value)
         Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
         
        string protocol = 15;
        Parameters:
        value - The bytes for protocol to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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