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 typegoogle.logging.type.HttpRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)HttpRequestbuild()HttpRequestbuildPartial()HttpRequest.Builderclear()HttpRequest.BuilderclearCacheFillBytes()The number of HTTP response bytes inserted into cache.HttpRequest.BuilderclearCacheHit()Whether or not an entity was served from cache (with or without validation).HttpRequest.BuilderclearCacheLookup()Whether or not a cache lookup was attempted.HttpRequest.BuilderclearCacheValidatedWithOriginServer()Whether or not the response was validated with the origin server before being served from cache.HttpRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)HttpRequest.BuilderclearLatency()The request processing latency on the server, from the time the request was received until the response was sent.HttpRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)HttpRequest.BuilderclearProtocol()Protocol used for the request.HttpRequest.BuilderclearReferer()The referer URL of the request, as defined in [HTTP/1.1 Header Field Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).HttpRequest.BuilderclearRemoteIp()The IP address (IPv4 or IPv6) of the client that issued the HTTP request.HttpRequest.BuilderclearRequestMethod()The request method.HttpRequest.BuilderclearRequestSize()The size of the HTTP request message in bytes, including the request headers and the request body.HttpRequest.BuilderclearRequestUrl()The scheme (http, https), the host name, the path and the query portion of the URL that was requested.HttpRequest.BuilderclearResponseSize()The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body.HttpRequest.BuilderclearServerIp()The IP address (IPv4 or IPv6) of the origin server that the request was sent to.HttpRequest.BuilderclearStatus()The response code indicating the status of response.HttpRequest.BuilderclearUserAgent()The user agent sent by the client.HttpRequest.Builderclone()longgetCacheFillBytes()The number of HTTP response bytes inserted into cache.booleangetCacheHit()Whether or not an entity was served from cache (with or without validation).booleangetCacheLookup()Whether or not a cache lookup was attempted.booleangetCacheValidatedWithOriginServer()Whether or not the response was validated with the origin server before being served from cache.HttpRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.DurationgetLatency()The request processing latency on the server, from the time the request was received until the response was sent.com.google.protobuf.Duration.BuildergetLatencyBuilder()The request processing latency on the server, from the time the request was received until the response was sent.com.google.protobuf.DurationOrBuildergetLatencyOrBuilder()The request processing latency on the server, from the time the request was received until the response was sent.StringgetProtocol()Protocol used for the request.com.google.protobuf.ByteStringgetProtocolBytes()Protocol used for the request.StringgetReferer()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.ByteStringgetRefererBytes()The referer URL of the request, as defined in [HTTP/1.1 Header Field Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).StringgetRemoteIp()The IP address (IPv4 or IPv6) of the client that issued the HTTP request.com.google.protobuf.ByteStringgetRemoteIpBytes()The IP address (IPv4 or IPv6) of the client that issued the HTTP request.StringgetRequestMethod()The request method.com.google.protobuf.ByteStringgetRequestMethodBytes()The request method.longgetRequestSize()The size of the HTTP request message in bytes, including the request headers and the request body.StringgetRequestUrl()The scheme (http, https), the host name, the path and the query portion of the URL that was requested.com.google.protobuf.ByteStringgetRequestUrlBytes()The scheme (http, https), the host name, the path and the query portion of the URL that was requested.longgetResponseSize()The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body.StringgetServerIp()The IP address (IPv4 or IPv6) of the origin server that the request was sent to.com.google.protobuf.ByteStringgetServerIpBytes()The IP address (IPv4 or IPv6) of the origin server that the request was sent to.intgetStatus()The response code indicating the status of response.StringgetUserAgent()The user agent sent by the client.com.google.protobuf.ByteStringgetUserAgentBytes()The user agent sent by the client.booleanhasLatency()The request processing latency on the server, from the time the request was received until the response was sent.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()HttpRequest.BuildermergeFrom(HttpRequest other)HttpRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)HttpRequest.BuildermergeFrom(com.google.protobuf.Message other)HttpRequest.BuildermergeLatency(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.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)HttpRequest.BuildersetCacheFillBytes(long value)The number of HTTP response bytes inserted into cache.HttpRequest.BuildersetCacheHit(boolean value)Whether or not an entity was served from cache (with or without validation).HttpRequest.BuildersetCacheLookup(boolean value)Whether or not a cache lookup was attempted.HttpRequest.BuildersetCacheValidatedWithOriginServer(boolean value)Whether or not the response was validated with the origin server before being served from cache.HttpRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)HttpRequest.BuildersetLatency(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.BuildersetLatency(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.BuildersetProtocol(String value)Protocol used for the request.HttpRequest.BuildersetProtocolBytes(com.google.protobuf.ByteString value)Protocol used for the request.HttpRequest.BuildersetReferer(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).HttpRequest.BuildersetRefererBytes(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).HttpRequest.BuildersetRemoteIp(String value)The IP address (IPv4 or IPv6) of the client that issued the HTTP request.HttpRequest.BuildersetRemoteIpBytes(com.google.protobuf.ByteString value)The IP address (IPv4 or IPv6) of the client that issued the HTTP request.HttpRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)HttpRequest.BuildersetRequestMethod(String value)The request method.HttpRequest.BuildersetRequestMethodBytes(com.google.protobuf.ByteString value)The request method.HttpRequest.BuildersetRequestSize(long value)The size of the HTTP request message in bytes, including the request headers and the request body.HttpRequest.BuildersetRequestUrl(String value)The scheme (http, https), the host name, the path and the query portion of the URL that was requested.HttpRequest.BuildersetRequestUrlBytes(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.BuildersetResponseSize(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.BuildersetServerIp(String value)The IP address (IPv4 or IPv6) of the origin server that the request was sent to.HttpRequest.BuildersetServerIpBytes(com.google.protobuf.ByteString value)The IP address (IPv4 or IPv6) of the origin server that the request was sent to.HttpRequest.BuildersetStatus(int value)The response code indicating the status of response.HttpRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)HttpRequest.BuildersetUserAgent(String value)The user agent sent by the client.HttpRequest.BuildersetUserAgentBytes(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, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequest.Builder>
-
clear
public HttpRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<HttpRequest.Builder>
-
getDefaultInstanceForType
public HttpRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public HttpRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public HttpRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public HttpRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequest.Builder>
-
setField
public HttpRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequest.Builder>
-
clearField
public HttpRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequest.Builder>
-
clearOneof
public HttpRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequest.Builder>
-
setRepeatedField
public HttpRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequest.Builder>
-
addRepeatedField
public HttpRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequest.Builder>
-
mergeFrom
public HttpRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HttpRequest.Builder>
-
mergeFrom
public HttpRequest.Builder mergeFrom(HttpRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
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
public String 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
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:
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
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:
getRequestSizein interfaceHttpRequestOrBuilder- 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:
getStatusin interfaceHttpRequestOrBuilder- 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:
getResponseSizein interfaceHttpRequestOrBuilder- 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:
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
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. 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
public HttpRequest.Builder setRemoteIp(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 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:
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
public HttpRequest.Builder setServerIp(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 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:
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](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
string referer = 8;- Specified by:
getRefererBytesin interfaceHttpRequestOrBuilder- 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:
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
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:
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
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:
getCacheHitin interfaceHttpRequestOrBuilder- 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:
getCacheValidatedWithOriginServerin interfaceHttpRequestOrBuilder- 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:
getCacheFillBytesin interfaceHttpRequestOrBuilder- 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:
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequest.Builder>
-
mergeUnknownFields
public final HttpRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequest.Builder>
-
-