Class HttpRequest.Builder

  • All Implemented Interfaces:
    HttpRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, 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.api.servicecontrol.v1.HttpRequest
    • 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<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.GeneratedMessageV3.Builder<HttpRequest.Builder>
      • getDefaultInstanceForType

        public HttpRequest getDefaultInstanceForType()
        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,
                                            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,
                                                    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,
                                                    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.GeneratedMessageV3.Builder<HttpRequest.Builder>
      • mergeFrom

        public HttpRequest.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<HttpRequest.Builder>
        Throws:
        IOException
      • getRequestMethod

        public 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​(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 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​(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 the 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 the 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 the 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 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​(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 String getRemoteIp()
         The IP address (IPv4 or IPv6) of the client that issued the HTTP
         request. Examples: `"192.168.1.1"`, `"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. Examples: `"192.168.1.1"`, `"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​(String value)
         The IP address (IPv4 or IPv6) of the client that issued the HTTP
         request. Examples: `"192.168.1.1"`, `"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. Examples: `"192.168.1.1"`, `"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. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
         
        string remote_ip = 7;
        Parameters:
        value - The bytes for remoteIp to set.
        Returns:
        This builder for chaining.
      • getServerIp

        public String getServerIp()
         The IP address (IPv4 or IPv6) of the origin server that the request was
         sent to.
         
        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.
         
        string server_ip = 13;
        Specified by:
        getServerIpBytes in interface HttpRequestOrBuilder
        Returns:
        The bytes for serverIp.
      • setServerIp

        public HttpRequest.Builder setServerIp​(String value)
         The IP address (IPv4 or IPv6) of the origin server that the request was
         sent to.
         
        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.
         
        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.
         
        string server_ip = 13;
        Parameters:
        value - The bytes for serverIp to set.
        Returns:
        This builder for chaining.
      • getReferer

        public String getReferer()
         The referer URL of the request, as defined in
         [HTTP/1.1 Header Field
         Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
         
        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](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
         
        string referer = 8;
        Specified by:
        getRefererBytes in interface HttpRequestOrBuilder
        Returns:
        The bytes for referer.
      • setReferer

        public HttpRequest.Builder setReferer​(String value)
         The referer URL of the request, as defined in
         [HTTP/1.1 Header Field
         Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
         
        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](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
         
        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](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
         
        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 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​(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>