Package com.google.logging.type
Class HttpRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.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.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
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
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.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) The request processing latency on the server, from the time the request was received until the response was sent.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Protocol used for the request.The referer URL of the request, as defined in [HTTP/1.1 Header Field Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).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.clone()
long
The number of HTTP response bytes inserted into cache.boolean
Whether or not an entity was served from cache (with or without validation).boolean
Whether or not a cache lookup was attempted.boolean
Whether or not the response was validated with the origin server before being served from cache.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
The request processing latency on the server, from the time the request was received until the response was sent.The request processing latency on the server, from the time the request was received until the response was sent.The 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.ByteString
Protocol used for the request.The referer URL of the request, as defined in [HTTP/1.1 Header Field Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).com.google.protobuf.ByteString
The referer URL of the request, as defined in [HTTP/1.1 Header Field Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).The IP address (IPv4 or IPv6) of the client that issued the HTTP request.com.google.protobuf.ByteString
The IP address (IPv4 or IPv6) of the client that issued the HTTP request.The request method.com.google.protobuf.ByteString
The request method.long
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.com.google.protobuf.ByteString
The scheme (http, https), the host name, the path and the query portion of the URL that was requested.long
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.com.google.protobuf.ByteString
The IP address (IPv4 or IPv6) of the origin server that the request was sent to.int
The response code indicating the status of response.The user agent sent by the client.com.google.protobuf.ByteString
The user agent sent by the client.boolean
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
final boolean
mergeFrom
(HttpRequest other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeLatency
(Duration value) The request processing latency on the server, from the time the request was received until the response was sent.final HttpRequest.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) 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
(Duration value) The request processing latency on the server, from the time the request was received until the response was sent.setLatency
(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](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).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).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.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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.final HttpRequest.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) 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.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, 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.MessageLite.Builder
mergeFrom
Methods 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequest.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequest.Builder>
-
setField
public HttpRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequest.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequest.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequest.Builder>
-
addRepeatedField
public HttpRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequest.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HttpRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HttpRequest.Builder>
- Throws:
IOException
-
getRequestMethod
The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
string request_method = 1;
- Specified by:
getRequestMethod
in 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:
getRequestMethodBytes
in 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:
getRequestUrl
in 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:
getRequestUrlBytes
in 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:
getRequestSize
in 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:
getStatus
in 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:
getResponseSize
in 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:
getUserAgent
in 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:
getUserAgentBytes
in 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:
getRemoteIp
in 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:
getRemoteIpBytes
in 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:
getServerIp
in 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:
getServerIpBytes
in 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](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
string referer = 8;
- Specified by:
getReferer
in 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](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
string referer = 8;
- Specified by:
getRefererBytes
in interfaceHttpRequestOrBuilder
- Returns:
- The bytes for referer.
-
setReferer
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
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
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 interfaceHttpRequestOrBuilder
- Returns:
- Whether the latency field is set.
-
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 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
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
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 interfaceHttpRequestOrBuilder
-
getCacheLookup
public boolean getCacheLookup()Whether or not a cache lookup was attempted.
bool cache_lookup = 11;
- Specified by:
getCacheLookup
in 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:
getCacheHit
in 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:
getCacheValidatedWithOriginServer
in 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:
getCacheFillBytes
in 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:
getProtocol
in 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:
getProtocolBytes
in 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.
-
setUnknownFields
public final HttpRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequest.Builder>
-
mergeUnknownFields
public final HttpRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequest.Builder>
-