public static final class AttributeContext.Request extends com.google.protobuf.GeneratedMessageV3 implements AttributeContext.RequestOrBuilder
This message defines attributes for an HTTP request. If the actual request is not an HTTP request, the runtime system should try to map the actual request to an equivalent HTTP request.Protobuf type
google.rpc.context.AttributeContext.Request| Modifier and Type | Class and Description |
|---|---|
static class |
AttributeContext.Request.Builder
This message defines attributes for an HTTP request.
|
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, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
AUTH_FIELD_NUMBER |
static int |
HEADERS_FIELD_NUMBER |
static int |
HOST_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
METHOD_FIELD_NUMBER |
static int |
PATH_FIELD_NUMBER |
static int |
PROTOCOL_FIELD_NUMBER |
static int |
QUERY_FIELD_NUMBER |
static int |
REASON_FIELD_NUMBER |
static int |
SCHEME_FIELD_NUMBER |
static int |
SIZE_FIELD_NUMBER |
static int |
TIME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsHeaders(String key)
The HTTP request headers.
|
boolean |
equals(Object obj) |
AttributeContext.Auth |
getAuth()
The request authentication.
|
AttributeContext.AuthOrBuilder |
getAuthOrBuilder()
The request authentication.
|
static AttributeContext.Request |
getDefaultInstance() |
AttributeContext.Request |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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`.
|
com.google.protobuf.Parser<AttributeContext.Request> |
getParserForType() |
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`.
|
int |
getSerializedSize() |
long |
getSize()
The HTTP request size in bytes.
|
com.google.protobuf.Timestamp |
getTime()
The timestamp when the `destination` service receives the last byte of
the request.
|
com.google.protobuf.TimestampOrBuilder |
getTimeOrBuilder()
The timestamp when the `destination` service receives the last byte of
the request.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasAuth()
The request authentication.
|
int |
hashCode() |
boolean |
hasTime()
The timestamp when the `destination` service receives the last byte of
the request.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static AttributeContext.Request.Builder |
newBuilder() |
static AttributeContext.Request.Builder |
newBuilder(AttributeContext.Request prototype) |
AttributeContext.Request.Builder |
newBuilderForType() |
protected AttributeContext.Request.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AttributeContext.Request |
parseDelimitedFrom(InputStream input) |
static AttributeContext.Request |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext.Request |
parseFrom(byte[] data) |
static AttributeContext.Request |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext.Request |
parseFrom(ByteBuffer data) |
static AttributeContext.Request |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext.Request |
parseFrom(com.google.protobuf.ByteString data) |
static AttributeContext.Request |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext.Request |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AttributeContext.Request |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext.Request |
parseFrom(InputStream input) |
static AttributeContext.Request |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AttributeContext.Request> |
parser() |
AttributeContext.Request.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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 ID_FIELD_NUMBER
public static final int METHOD_FIELD_NUMBER
public static final int HEADERS_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER
public static final int HOST_FIELD_NUMBER
public static final int SCHEME_FIELD_NUMBER
public static final int QUERY_FIELD_NUMBER
public static final int TIME_FIELD_NUMBER
public static final int SIZE_FIELD_NUMBER
public static final int PROTOCOL_FIELD_NUMBER
public static final int REASON_FIELD_NUMBER
public static final int AUTH_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public 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.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String 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;getId in interface AttributeContext.RequestOrBuilderpublic 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;getIdBytes in interface AttributeContext.RequestOrBuilderpublic String getMethod()
The HTTP request method, such as `GET`, `POST`.
string method = 2;getMethod in interface AttributeContext.RequestOrBuilderpublic com.google.protobuf.ByteString getMethodBytes()
The HTTP request method, such as `GET`, `POST`.
string method = 2;getMethodBytes in interface AttributeContext.RequestOrBuilderpublic int getHeadersCount()
AttributeContext.RequestOrBuilderThe 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;getHeadersCount in interface AttributeContext.RequestOrBuilderpublic 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;containsHeaders in interface AttributeContext.RequestOrBuilder@Deprecated public Map<String,String> getHeaders()
getHeadersMap() instead.getHeaders in interface AttributeContext.RequestOrBuilderpublic 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;getHeadersMap in interface AttributeContext.RequestOrBuilderpublic 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;getHeadersOrDefault in interface AttributeContext.RequestOrBuilderpublic 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;getHeadersOrThrow in interface AttributeContext.RequestOrBuilderpublic String getPath()
The HTTP URL path.
string path = 4;getPath in interface AttributeContext.RequestOrBuilderpublic com.google.protobuf.ByteString getPathBytes()
The HTTP URL path.
string path = 4;getPathBytes in interface AttributeContext.RequestOrBuilderpublic String getHost()
The HTTP request `Host` header value.
string host = 5;getHost in interface AttributeContext.RequestOrBuilderpublic com.google.protobuf.ByteString getHostBytes()
The HTTP request `Host` header value.
string host = 5;getHostBytes in interface AttributeContext.RequestOrBuilderpublic String getScheme()
The HTTP URL scheme, such as `http` and `https`.
string scheme = 6;getScheme in interface AttributeContext.RequestOrBuilderpublic com.google.protobuf.ByteString getSchemeBytes()
The HTTP URL scheme, such as `http` and `https`.
string scheme = 6;getSchemeBytes in interface AttributeContext.RequestOrBuilderpublic 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;getQuery in interface AttributeContext.RequestOrBuilderpublic 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;getQueryBytes in interface AttributeContext.RequestOrBuilderpublic boolean hasTime()
The timestamp when the `destination` service receives the last byte of the request.
.google.protobuf.Timestamp time = 9;hasTime in interface AttributeContext.RequestOrBuilderpublic com.google.protobuf.Timestamp getTime()
The timestamp when the `destination` service receives the last byte of the request.
.google.protobuf.Timestamp time = 9;getTime in interface AttributeContext.RequestOrBuilderpublic com.google.protobuf.TimestampOrBuilder getTimeOrBuilder()
The timestamp when the `destination` service receives the last byte of the request.
.google.protobuf.Timestamp time = 9;getTimeOrBuilder in interface AttributeContext.RequestOrBuilderpublic long getSize()
The HTTP request size in bytes. If unknown, it must be -1.
int64 size = 10;getSize in interface AttributeContext.RequestOrBuilderpublic 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;getProtocol in interface AttributeContext.RequestOrBuilderpublic 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;getProtocolBytes in interface AttributeContext.RequestOrBuilderpublic String getReason()
A special parameter for request reason. It is used by security systems to associate auditing information with a request.
string reason = 12;getReason in interface AttributeContext.RequestOrBuilderpublic 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;getReasonBytes in interface AttributeContext.RequestOrBuilderpublic 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;hasAuth in interface AttributeContext.RequestOrBuilderpublic 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;getAuth in interface AttributeContext.RequestOrBuilderpublic 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;getAuthOrBuilder in interface AttributeContext.RequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(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 AttributeContext.Request parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.Request parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.Request parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.Request parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.Request parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.Request parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.Request parseFrom(InputStream input) throws IOException
IOExceptionpublic static AttributeContext.Request parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttributeContext.Request parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AttributeContext.Request parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttributeContext.Request parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AttributeContext.Request parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AttributeContext.Request.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AttributeContext.Request.Builder newBuilder()
public static AttributeContext.Request.Builder newBuilder(AttributeContext.Request prototype)
public AttributeContext.Request.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AttributeContext.Request.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AttributeContext.Request getDefaultInstance()
public static com.google.protobuf.Parser<AttributeContext.Request> parser()
public com.google.protobuf.Parser<AttributeContext.Request> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AttributeContext.Request getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2021 Google LLC. All rights reserved.