Package com.google.logging.type
Class HttpRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HttpRequest.Builder>
com.google.logging.type.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.GeneratedMessage.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
Modifier and TypeMethodDescriptionbuild()clear()The number of HTTP response bytes inserted into cache.Whether or not an entity was served from cache (with or without validation).Whether or not a cache lookup was attempted.Whether or not the response was validated with the origin server before being served from cache.The request processing latency on the server, from the time the request was received until the response was sent.Protocol used for the request.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).The IP address (IPv4 or IPv6) of the client that issued the HTTP request.The request method.The size of the HTTP request message in bytes, including the request headers and the request body.The scheme (http, https), the host name, the path and the query portion of the URL that was requested.The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body.The IP address (IPv4 or IPv6) of the origin server that the request was sent to.The response code indicating the status of response.The user agent sent by the client.longThe number of HTTP response bytes inserted into cache.booleanWhether or not an entity was served from cache (with or without validation).booleanWhether or not a cache lookup was attempted.booleanWhether or not the response was validated with the origin server before being served from cache.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationThe request processing latency on the server, from the time the request was received until the response was sent.com.google.protobuf.Duration.BuilderThe request processing latency on the server, from the time the request was received until the response was sent.com.google.protobuf.DurationOrBuilderThe request processing latency on the server, from the time the request was received until the response was sent.Protocol used for the request.com.google.protobuf.ByteStringProtocol used for the request.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.ByteStringThe referer URL of the request, as defined in [HTTP/1.1 Header Field Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36).The IP address (IPv4 or IPv6) of the client that issued the HTTP request.com.google.protobuf.ByteStringThe IP address (IPv4 or IPv6) of the client that issued the HTTP request.The request method.com.google.protobuf.ByteStringThe request method.longThe size of the HTTP request message in bytes, including the request headers and the request body.The scheme (http, https), the host name, the path and the query portion of the URL that was requested.com.google.protobuf.ByteStringThe scheme (http, https), the host name, the path and the query portion of the URL that was requested.longThe size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body.The IP address (IPv4 or IPv6) of the origin server that the request was sent to.com.google.protobuf.ByteStringThe IP address (IPv4 or IPv6) of the origin server that the request was sent to.intThe response code indicating the status of response.The user agent sent by the client.com.google.protobuf.ByteStringThe user agent sent by the client.booleanThe request processing latency on the server, from the time the request was received until the response was sent.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(HttpRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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.setCacheFillBytes(long value) The number of HTTP response bytes inserted into cache.setCacheHit(boolean value) Whether or not an entity was served from cache (with or without validation).setCacheLookup(boolean value) Whether or not a cache lookup was attempted.setCacheValidatedWithOriginServer(boolean value) Whether or not the response was validated with the origin server before being served from cache.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.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.setProtocol(String value) Protocol used for the request.setProtocolBytes(com.google.protobuf.ByteString value) Protocol used for the request.setReferer(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).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).setRemoteIp(String value) The IP address (IPv4 or IPv6) of the client that issued the HTTP request.setRemoteIpBytes(com.google.protobuf.ByteString value) The IP address (IPv4 or IPv6) of the client that issued the HTTP request.setRequestMethod(String value) The request method.setRequestMethodBytes(com.google.protobuf.ByteString value) The request method.setRequestSize(long value) The size of the HTTP request message in bytes, including the request headers and the request body.setRequestUrl(String value) The scheme (http, https), the host name, the path and the query portion of the URL that was requested.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.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.setServerIp(String value) The IP address (IPv4 or IPv6) of the origin server that the request was sent to.setServerIpBytes(com.google.protobuf.ByteString value) The IP address (IPv4 or IPv6) of the origin server that the request was sent to.setStatus(int value) The response code indicating the status of response.setUserAgent(String value) The user agent sent by the client.setUserAgentBytes(com.google.protobuf.ByteString value) The user agent sent by the client.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<HttpRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<HttpRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<HttpRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HttpRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<HttpRequest.Builder>
-
mergeFrom
public HttpRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HttpRequest.Builder>- Throws:
IOException
-
getRequestMethod
The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
string request_method = 1;- Specified by:
getRequestMethodin interfaceHttpRequestOrBuilder- Returns:
- The requestMethod.
-
getRequestMethodBytes
public com.google.protobuf.ByteString getRequestMethodBytes()The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
string request_method = 1;- Specified by:
getRequestMethodBytesin interfaceHttpRequestOrBuilder- Returns:
- The bytes for requestMethod.
-
setRequestMethod
The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
string request_method = 1;- Parameters:
value- The requestMethod to set.- Returns:
- This builder for chaining.
-
clearRequestMethod
The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
string request_method = 1;- Returns:
- This builder for chaining.
-
setRequestMethodBytes
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
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:
getRequestUrlin interfaceHttpRequestOrBuilder- 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:
getRequestUrlBytesin interfaceHttpRequestOrBuilder- Returns:
- The bytes for requestUrl.
-
setRequestUrl
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
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
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:
getRequestSizein interfaceHttpRequestOrBuilder- Returns:
- The requestSize.
-
setRequestSize
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
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:
getStatusin interfaceHttpRequestOrBuilder- Returns:
- The status.
-
setStatus
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
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:
getResponseSizein interfaceHttpRequestOrBuilder- Returns:
- The responseSize.
-
setResponseSize
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
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
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:
getUserAgentin interfaceHttpRequestOrBuilder- 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:
getUserAgentBytesin interfaceHttpRequestOrBuilder- Returns:
- The bytes for userAgent.
-
setUserAgent
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
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
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
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:
getRemoteIpin interfaceHttpRequestOrBuilder- 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:
getRemoteIpBytesin interfaceHttpRequestOrBuilder- Returns:
- The bytes for remoteIp.
-
setRemoteIp
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
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
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
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:
getServerIpin interfaceHttpRequestOrBuilder- 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:
getServerIpBytesin interfaceHttpRequestOrBuilder- Returns:
- The bytes for serverIp.
-
setServerIp
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
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
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
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:
getRefererin interfaceHttpRequestOrBuilder- 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:
getRefererBytesin interfaceHttpRequestOrBuilder- Returns:
- The bytes for referer.
-
setReferer
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
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
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:
hasLatencyin interfaceHttpRequestOrBuilder- 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:
getLatencyin interfaceHttpRequestOrBuilder- Returns:
- The latency.
-
setLatency
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
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
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
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:
getLatencyOrBuilderin interfaceHttpRequestOrBuilder
-
getCacheLookup
public boolean getCacheLookup()Whether or not a cache lookup was attempted.
bool cache_lookup = 11;- Specified by:
getCacheLookupin interfaceHttpRequestOrBuilder- Returns:
- The cacheLookup.
-
setCacheLookup
Whether or not a cache lookup was attempted.
bool cache_lookup = 11;- Parameters:
value- The cacheLookup to set.- Returns:
- This builder for chaining.
-
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:
getCacheHitin interfaceHttpRequestOrBuilder- Returns:
- The cacheHit.
-
setCacheHit
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
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:
getCacheValidatedWithOriginServerin interfaceHttpRequestOrBuilder- Returns:
- The cacheValidatedWithOriginServer.
-
setCacheValidatedWithOriginServer
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
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:
getCacheFillBytesin interfaceHttpRequestOrBuilder- Returns:
- The cacheFillBytes.
-
setCacheFillBytes
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
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
Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
string protocol = 15;- Specified by:
getProtocolin interfaceHttpRequestOrBuilder- 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:
getProtocolBytesin interfaceHttpRequestOrBuilder- Returns:
- The bytes for protocol.
-
setProtocol
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
Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
string protocol = 15;- Returns:
- This builder for chaining.
-
setProtocolBytes
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.
-