public final class HttpRequest extends com.google.protobuf.GeneratedMessageV3 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| Modifier and Type | Class and Description |
|---|---|
static class |
HttpRequest.Builder
A common proto for logging HTTP requests.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
CACHE_FILL_BYTES_FIELD_NUMBER |
static int |
CACHE_HIT_FIELD_NUMBER |
static int |
CACHE_LOOKUP_FIELD_NUMBER |
static int |
CACHE_VALIDATED_WITH_ORIGIN_SERVER_FIELD_NUMBER |
static int |
LATENCY_FIELD_NUMBER |
static int |
PROTOCOL_FIELD_NUMBER |
static int |
REFERER_FIELD_NUMBER |
static int |
REMOTE_IP_FIELD_NUMBER |
static int |
REQUEST_METHOD_FIELD_NUMBER |
static int |
REQUEST_SIZE_FIELD_NUMBER |
static int |
REQUEST_URL_FIELD_NUMBER |
static int |
RESPONSE_SIZE_FIELD_NUMBER |
static int |
SERVER_IP_FIELD_NUMBER |
static int |
STATUS_FIELD_NUMBER |
static int |
USER_AGENT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
long |
getCacheFillBytes()
The number of HTTP response bytes inserted into cache.
|
boolean |
getCacheHit()
Whether or not an entity was served from cache
(with or without validation).
|
boolean |
getCacheLookup()
Whether or not a cache lookup was attempted.
|
boolean |
getCacheValidatedWithOriginServer()
Whether or not the response was validated with the origin server before
being served from cache.
|
static HttpRequest |
getDefaultInstance() |
HttpRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Duration |
getLatency()
The request processing latency on the server, from the time the request was
received until the response was sent.
|
com.google.protobuf.DurationOrBuilder |
getLatencyOrBuilder()
The request processing latency on the server, from the time the request was
received until the response was sent.
|
com.google.protobuf.Parser<HttpRequest> |
getParserForType() |
java.lang.String |
getProtocol()
Protocol used for the request.
|
com.google.protobuf.ByteString |
getProtocolBytes()
Protocol used for the request.
|
java.lang.String |
getReferer()
The referer URL of the request, as defined in
[HTTP/1.1 Header Field Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
|
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).
|
java.lang.String |
getRemoteIp()
The IP address (IPv4 or IPv6) of the client that issued the HTTP
request.
|
com.google.protobuf.ByteString |
getRemoteIpBytes()
The IP address (IPv4 or IPv6) of the client that issued the HTTP
request.
|
java.lang.String |
getRequestMethod()
The request method.
|
com.google.protobuf.ByteString |
getRequestMethodBytes()
The request method.
|
long |
getRequestSize()
The size of the HTTP request message in bytes, including the request
headers and the request body.
|
java.lang.String |
getRequestUrl()
The scheme (http, https), the host name, the path and the query
portion of the URL that was requested.
|
com.google.protobuf.ByteString |
getRequestUrlBytes()
The scheme (http, https), the host name, the path and the query
portion of the URL that was requested.
|
long |
getResponseSize()
The size of the HTTP response message sent back to the client, in bytes,
including the response headers and the response body.
|
int |
getSerializedSize() |
java.lang.String |
getServerIp()
The IP address (IPv4 or IPv6) of the origin server that the request was
sent to.
|
com.google.protobuf.ByteString |
getServerIpBytes()
The IP address (IPv4 or IPv6) of the origin server that the request was
sent to.
|
int |
getStatus()
The response code indicating the status of response.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
java.lang.String |
getUserAgent()
The user agent sent by the client.
|
com.google.protobuf.ByteString |
getUserAgentBytes()
The user agent sent by the client.
|
int |
hashCode() |
boolean |
hasLatency()
The request processing latency on the server, from the time the request was
received until the response was sent.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static HttpRequest.Builder |
newBuilder() |
static HttpRequest.Builder |
newBuilder(HttpRequest prototype) |
HttpRequest.Builder |
newBuilderForType() |
protected HttpRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static HttpRequest |
parseDelimitedFrom(java.io.InputStream input) |
static HttpRequest |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HttpRequest |
parseFrom(byte[] data) |
static HttpRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HttpRequest |
parseFrom(java.nio.ByteBuffer data) |
static HttpRequest |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HttpRequest |
parseFrom(com.google.protobuf.ByteString data) |
static HttpRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HttpRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static HttpRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HttpRequest |
parseFrom(java.io.InputStream input) |
static HttpRequest |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<HttpRequest> |
parser() |
HttpRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int REQUEST_METHOD_FIELD_NUMBER
public static final int REQUEST_URL_FIELD_NUMBER
public static final int REQUEST_SIZE_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
public static final int RESPONSE_SIZE_FIELD_NUMBER
public static final int USER_AGENT_FIELD_NUMBER
public static final int REMOTE_IP_FIELD_NUMBER
public static final int SERVER_IP_FIELD_NUMBER
public static final int REFERER_FIELD_NUMBER
public static final int LATENCY_FIELD_NUMBER
public static final int CACHE_LOOKUP_FIELD_NUMBER
public static final int CACHE_HIT_FIELD_NUMBER
public static final int CACHE_VALIDATED_WITH_ORIGIN_SERVER_FIELD_NUMBER
public static final int CACHE_FILL_BYTES_FIELD_NUMBER
public static final int PROTOCOL_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.lang.String getRequestMethod()
The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
string request_method = 1;getRequestMethod in interface HttpRequestOrBuilderpublic com.google.protobuf.ByteString getRequestMethodBytes()
The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
string request_method = 1;getRequestMethodBytes in interface HttpRequestOrBuilderpublic java.lang.String getRequestUrl()
The scheme (http, https), the host name, the path and the query portion of the URL that was requested. Example: `"http://example.com/some/info?color=red"`.
string request_url = 2;getRequestUrl in interface HttpRequestOrBuilderpublic 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;getRequestUrlBytes in interface HttpRequestOrBuilderpublic long getRequestSize()
The size of the HTTP request message in bytes, including the request headers and the request body.
int64 request_size = 3;getRequestSize in interface HttpRequestOrBuilderpublic int getStatus()
The response code indicating the status of response. Examples: 200, 404.
int32 status = 4;getStatus in interface HttpRequestOrBuilderpublic 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;getResponseSize in interface HttpRequestOrBuilderpublic java.lang.String getUserAgent()
The user agent sent by the client. Example: `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)"`.
string user_agent = 6;getUserAgent in interface HttpRequestOrBuilderpublic 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;getUserAgentBytes in interface HttpRequestOrBuilderpublic java.lang.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;getRemoteIp in interface HttpRequestOrBuilderpublic 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;getRemoteIpBytes in interface HttpRequestOrBuilderpublic java.lang.String getServerIp()
The IP address (IPv4 or IPv6) of the origin server that the request was sent to.
string server_ip = 13;getServerIp in interface HttpRequestOrBuilderpublic 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;getServerIpBytes in interface HttpRequestOrBuilderpublic java.lang.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;getReferer in interface HttpRequestOrBuilderpublic 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;getRefererBytes in interface HttpRequestOrBuilderpublic 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;hasLatency in interface HttpRequestOrBuilderpublic 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;getLatency in interface HttpRequestOrBuilderpublic 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;getLatencyOrBuilder in interface HttpRequestOrBuilderpublic boolean getCacheLookup()
Whether or not a cache lookup was attempted.
bool cache_lookup = 11;getCacheLookup in interface HttpRequestOrBuilderpublic boolean getCacheHit()
Whether or not an entity was served from cache (with or without validation).
bool cache_hit = 9;getCacheHit in interface HttpRequestOrBuilderpublic 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;getCacheValidatedWithOriginServer in interface HttpRequestOrBuilderpublic long getCacheFillBytes()
The number of HTTP response bytes inserted into cache. Set only when a cache fill was attempted.
int64 cache_fill_bytes = 12;getCacheFillBytes in interface HttpRequestOrBuilderpublic java.lang.String getProtocol()
Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
string protocol = 15;getProtocol in interface HttpRequestOrBuilderpublic com.google.protobuf.ByteString getProtocolBytes()
Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
string protocol = 15;getProtocolBytes in interface HttpRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static HttpRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpRequest parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpRequest parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static HttpRequest parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static HttpRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static HttpRequest parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static HttpRequest parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static HttpRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic HttpRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static HttpRequest.Builder newBuilder()
public static HttpRequest.Builder newBuilder(HttpRequest prototype)
public HttpRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected HttpRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static HttpRequest getDefaultInstance()
public static com.google.protobuf.Parser<HttpRequest> parser()
public com.google.protobuf.Parser<HttpRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public HttpRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder