public static interface AttributeContext.RequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsHeaders(String key)
The HTTP request headers.
|
AttributeContext.Auth |
getAuth()
The request authentication.
|
AttributeContext.AuthOrBuilder |
getAuthOrBuilder()
The request authentication.
|
Map<String,String> |
getHeaders()
Deprecated.
|
int |
getHeadersCount()
The HTTP request headers.
|
Map<String,String> |
getHeadersMap()
The HTTP request headers.
|
String |
getHeadersOrDefault(String key,
String defaultValue)
The HTTP request headers.
|
String |
getHeadersOrThrow(String key)
The HTTP request headers.
|
String |
getHost()
The HTTP request `Host` header value.
|
com.google.protobuf.ByteString |
getHostBytes()
The HTTP request `Host` header value.
|
String |
getId()
The unique ID for a request, which can be propagated to downstream
systems.
|
com.google.protobuf.ByteString |
getIdBytes()
The unique ID for a request, which can be propagated to downstream
systems.
|
String |
getMethod()
The HTTP request method, such as `GET`, `POST`.
|
com.google.protobuf.ByteString |
getMethodBytes()
The HTTP request method, such as `GET`, `POST`.
|
String |
getPath()
The HTTP URL path.
|
com.google.protobuf.ByteString |
getPathBytes()
The HTTP URL path.
|
String |
getProtocol()
The network protocol used with the request, such as "http/1.1",
"spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic".
|
com.google.protobuf.ByteString |
getProtocolBytes()
The network protocol used with the request, such as "http/1.1",
"spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic".
|
String |
getQuery()
The HTTP URL query in the format of `name1=value1&name2=value2`, as it
appears in the first line of the HTTP request.
|
com.google.protobuf.ByteString |
getQueryBytes()
The HTTP URL query in the format of `name1=value1&name2=value2`, as it
appears in the first line of the HTTP request.
|
String |
getReason()
A special parameter for request reason.
|
com.google.protobuf.ByteString |
getReasonBytes()
A special parameter for request reason.
|
String |
getScheme()
The HTTP URL scheme, such as `http` and `https`.
|
com.google.protobuf.ByteString |
getSchemeBytes()
The HTTP URL scheme, such as `http` and `https`.
|
long |
getSize()
The HTTP request size in bytes.
|
com.google.protobuf.Timestamp |
getTime()
The timestamp when the `destination` service receives the first byte of
the request.
|
com.google.protobuf.TimestampOrBuilder |
getTimeOrBuilder()
The timestamp when the `destination` service receives the first byte of
the request.
|
boolean |
hasAuth()
The request authentication.
|
boolean |
hasTime()
The timestamp when the `destination` service receives the first byte of
the request.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getId()
The unique ID for a request, which can be propagated to downstream systems. The ID should have low probability of collision within a single day for a specific service.
string id = 1;com.google.protobuf.ByteString getIdBytes()
The unique ID for a request, which can be propagated to downstream systems. The ID should have low probability of collision within a single day for a specific service.
string id = 1;String getMethod()
The HTTP request method, such as `GET`, `POST`.
string method = 2;com.google.protobuf.ByteString getMethodBytes()
The HTTP request method, such as `GET`, `POST`.
string method = 2;int getHeadersCount()
The HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lowercased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3;boolean containsHeaders(String key)
The HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lowercased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3;@Deprecated Map<String,String> getHeaders()
getHeadersMap() instead.Map<String,String> getHeadersMap()
The HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lowercased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3;String getHeadersOrDefault(String key, String defaultValue)
The HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lowercased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3;String getHeadersOrThrow(String key)
The HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lowercased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3;String getPath()
The HTTP URL path.
string path = 4;com.google.protobuf.ByteString getPathBytes()
The HTTP URL path.
string path = 4;String getHost()
The HTTP request `Host` header value.
string host = 5;com.google.protobuf.ByteString getHostBytes()
The HTTP request `Host` header value.
string host = 5;String getScheme()
The HTTP URL scheme, such as `http` and `https`.
string scheme = 6;com.google.protobuf.ByteString getSchemeBytes()
The HTTP URL scheme, such as `http` and `https`.
string scheme = 6;String getQuery()
The HTTP URL query in the format of `name1=value1&name2=value2`, as it appears in the first line of the HTTP request. No decoding is performed.
string query = 7;com.google.protobuf.ByteString getQueryBytes()
The HTTP URL query in the format of `name1=value1&name2=value2`, as it appears in the first line of the HTTP request. No decoding is performed.
string query = 7;boolean hasTime()
The timestamp when the `destination` service receives the first byte of the request.
.google.protobuf.Timestamp time = 9;com.google.protobuf.Timestamp getTime()
The timestamp when the `destination` service receives the first byte of the request.
.google.protobuf.Timestamp time = 9;com.google.protobuf.TimestampOrBuilder getTimeOrBuilder()
The timestamp when the `destination` service receives the first byte of the request.
.google.protobuf.Timestamp time = 9;long getSize()
The HTTP request size in bytes. If unknown, it must be -1.
int64 size = 10;String getProtocol()
The network protocol used with the request, such as "http/1.1", "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for details.
string protocol = 11;com.google.protobuf.ByteString getProtocolBytes()
The network protocol used with the request, such as "http/1.1", "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for details.
string protocol = 11;String getReason()
A special parameter for request reason. It is used by security systems to associate auditing information with a request.
string reason = 12;com.google.protobuf.ByteString getReasonBytes()
A special parameter for request reason. It is used by security systems to associate auditing information with a request.
string reason = 12;boolean hasAuth()
The request authentication. May be absent for unauthenticated requests. Derived from the HTTP request `Authorization` header or equivalent.
.google.rpc.context.AttributeContext.Auth auth = 13;AttributeContext.Auth getAuth()
The request authentication. May be absent for unauthenticated requests. Derived from the HTTP request `Authorization` header or equivalent.
.google.rpc.context.AttributeContext.Auth auth = 13;AttributeContext.AuthOrBuilder getAuthOrBuilder()
The request authentication. May be absent for unauthenticated requests. Derived from the HTTP request `Authorization` header or equivalent.
.google.rpc.context.AttributeContext.Auth auth = 13;Copyright © 2020 Google LLC. All rights reserved.