- 2.61.3 (latest)
- 2.61.2
- 2.60.0
- 2.59.2
- 2.58.0
- 2.57.0
- 2.56.0
- 2.54.1
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.1
- 2.49.0
- 2.48.0
- 2.46.0
- 2.45.1
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.1
- 2.38.0
- 2.37.1
- 2.36.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.1
- 2.24.0
- 2.23.1
- 2.22.1
- 2.21.1
- 2.15.0
- 2.14.3
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.6
- 2.8.4
- 2.7.4
public static final class HttpRequest.Builder extends 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > HttpRequest.BuilderImplements
HttpRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public HttpRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
HttpRequest.Builder |
build()
public HttpRequest build()
Returns | |
---|---|
Type | Description |
HttpRequest |
buildPartial()
public HttpRequest buildPartial()
Returns | |
---|---|
Type | Description |
HttpRequest |
clear()
public HttpRequest.Builder clear()
Returns | |
---|---|
Type | Description |
HttpRequest.Builder |
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 | |
---|---|
Type | Description |
HttpRequest.Builder |
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 | |
---|---|
Type | Description |
HttpRequest.Builder |
This builder for chaining. |
clearCacheLookup()
public HttpRequest.Builder clearCacheLookup()
Whether or not a cache lookup was attempted.
bool cache_lookup = 11;
Returns | |
---|---|
Type | Description |
HttpRequest.Builder |
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 | |
---|---|
Type | Description |
HttpRequest.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public HttpRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
HttpRequest.Builder |
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;
Returns | |
---|---|
Type | Description |
HttpRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public HttpRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
HttpRequest.Builder |
clearProtocol()
public HttpRequest.Builder clearProtocol()
Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
string protocol = 15;
Returns | |
---|---|
Type | Description |
HttpRequest.Builder |
This builder for chaining. |
clearReferer()
public HttpRequest.Builder clearReferer()
The referer URL of the request, as defined in HTTP/1.1 Header Field Definitions.
string referer = 8;
Returns | |
---|---|
Type | Description |
HttpRequest.Builder |
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 | |
---|---|
Type | Description |
HttpRequest.Builder |
This builder for chaining. |
clearRequestMethod()
public HttpRequest.Builder clearRequestMethod()
The request method. Examples: "GET"
, "HEAD"
, "PUT"
, "POST"
.
string request_method = 1;
Returns | |
---|---|
Type | Description |
HttpRequest.Builder |
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 | |
---|---|
Type | Description |
HttpRequest.Builder |
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 | |
---|---|
Type | Description |
HttpRequest.Builder |
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 | |
---|---|
Type | Description |
HttpRequest.Builder |
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 | |
---|---|
Type | Description |
|