Class AttributeContext.HttpRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.service.auth.v2.AttributeContext.HttpRequest
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,AttributeContext.HttpRequestOrBuilder,Serializable
- Enclosing class:
- AttributeContext
public static final class AttributeContext.HttpRequest
extends com.google.protobuf.GeneratedMessageV3
implements AttributeContext.HttpRequestOrBuilder
This message defines attributes for an HTTP request. HTTP/1.x, HTTP/2, gRPC are all considered as HTTP requests. [#next-free-field: 12]Protobuf type
envoy.service.auth.v2.AttributeContext.HttpRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThis message defines attributes for an HTTP request.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsHeaders(String key) The HTTP request headers.booleangetBody()The HTTP request body.com.google.protobuf.ByteStringThe HTTP request body.static AttributeContext.HttpRequeststatic final com.google.protobuf.Descriptors.DescriptorThis field is always empty, and exists for compatibility reasons.com.google.protobuf.ByteStringThis field is always empty, and exists for compatibility reasons.Deprecated.intThe HTTP request headers.The HTTP request headers.getHeadersOrDefault(String key, String defaultValue) The HTTP request headers.getHeadersOrThrow(String key) The HTTP request headers.getHost()The HTTP request `Host` or 'Authority` header value.com.google.protobuf.ByteStringThe HTTP request `Host` or 'Authority` header value.getId()The unique ID for a request, which can be propagated to downstream systems.com.google.protobuf.ByteStringThe unique ID for a request, which can be propagated to downstream systems.The HTTP request method, such as `GET`, `POST`.com.google.protobuf.ByteStringThe HTTP request method, such as `GET`, `POST`.com.google.protobuf.Parser<AttributeContext.HttpRequest>getPath()The request target, as it appears in the first line of the HTTP request.com.google.protobuf.ByteStringThe request target, as it appears in the first line of the HTTP request.The network protocol used with the request, such as "HTTP/1.0", "HTTP/1.1", or "HTTP/2".com.google.protobuf.ByteStringThe network protocol used with the request, such as "HTTP/1.0", "HTTP/1.1", or "HTTP/2".getQuery()This field is always empty, and exists for compatibility reasons.com.google.protobuf.ByteStringThis field is always empty, and exists for compatibility reasons.The HTTP URL scheme, such as `http` and `https`.com.google.protobuf.ByteStringThe HTTP URL scheme, such as `http` and `https`.intlonggetSize()The HTTP request size in bytes.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleannewBuilder(AttributeContext.HttpRequest prototype) protected AttributeContext.HttpRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static AttributeContext.HttpRequestparseDelimitedFrom(InputStream input) static AttributeContext.HttpRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContext.HttpRequestparseFrom(byte[] data) static AttributeContext.HttpRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContext.HttpRequestparseFrom(com.google.protobuf.ByteString data) static AttributeContext.HttpRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContext.HttpRequestparseFrom(com.google.protobuf.CodedInputStream input) static AttributeContext.HttpRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContext.HttpRequestparseFrom(InputStream input) static AttributeContext.HttpRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContext.HttpRequestparseFrom(ByteBuffer data) static AttributeContext.HttpRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AttributeContext.HttpRequest>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
METHOD_FIELD_NUMBER
public static final int METHOD_FIELD_NUMBER- See Also:
-
HEADERS_FIELD_NUMBER
public static final int HEADERS_FIELD_NUMBER- See Also:
-
PATH_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER- See Also:
-
HOST_FIELD_NUMBER
public static final int HOST_FIELD_NUMBER- See Also:
-
SCHEME_FIELD_NUMBER
public static final int SCHEME_FIELD_NUMBER- See Also:
-
QUERY_FIELD_NUMBER
public static final int QUERY_FIELD_NUMBER- See Also:
-
FRAGMENT_FIELD_NUMBER
public static final int FRAGMENT_FIELD_NUMBER- See Also:
-
SIZE_FIELD_NUMBER
public static final int SIZE_FIELD_NUMBER- See Also:
-
PROTOCOL_FIELD_NUMBER
public static final int PROTOCOL_FIELD_NUMBER- See Also:
-
BODY_FIELD_NUMBER
public static final int BODY_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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. For HTTP requests, it should be X-Request-ID or equivalent.
string id = 1;- Specified by:
getIdin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The id.
-
getIdBytes
public 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. For HTTP requests, it should be X-Request-ID or equivalent.
string id = 1;- Specified by:
getIdBytesin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The bytes for id.
-
getMethod
The HTTP request method, such as `GET`, `POST`.
string method = 2;- Specified by:
getMethodin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The method.
-
getMethodBytes
public com.google.protobuf.ByteString getMethodBytes()The HTTP request method, such as `GET`, `POST`.
string method = 2;- Specified by:
getMethodBytesin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The bytes for method.
-
getHeadersCount
public int getHeadersCount()Description copied from interface:AttributeContext.HttpRequestOrBuilderThe HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lower-cased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3;- Specified by:
getHeadersCountin interfaceAttributeContext.HttpRequestOrBuilder
-
containsHeaders
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 lower-cased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3;- Specified by:
containsHeadersin interfaceAttributeContext.HttpRequestOrBuilder
-
getHeaders
Deprecated.UsegetHeadersMap()instead.- Specified by:
getHeadersin interfaceAttributeContext.HttpRequestOrBuilder
-
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 lower-cased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3;- Specified by:
getHeadersMapin interfaceAttributeContext.HttpRequestOrBuilder
-
getHeadersOrDefault
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 lower-cased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3;- Specified by:
getHeadersOrDefaultin interfaceAttributeContext.HttpRequestOrBuilder
-
getHeadersOrThrow
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 lower-cased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3;- Specified by:
getHeadersOrThrowin interfaceAttributeContext.HttpRequestOrBuilder
-
getPath
The request target, as it appears in the first line of the HTTP request. This includes the URL path and query-string. No decoding is performed.
string path = 4;- Specified by:
getPathin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()The request target, as it appears in the first line of the HTTP request. This includes the URL path and query-string. No decoding is performed.
string path = 4;- Specified by:
getPathBytesin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The bytes for path.
-
getHost
The HTTP request `Host` or 'Authority` header value.
string host = 5;- Specified by:
getHostin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The host.
-
getHostBytes
public com.google.protobuf.ByteString getHostBytes()The HTTP request `Host` or 'Authority` header value.
string host = 5;- Specified by:
getHostBytesin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The bytes for host.
-
getScheme
The HTTP URL scheme, such as `http` and `https`. This is set for HTTP/2 requests only. For HTTP/1.1, use "x-forwarded-for" header value to lookup the scheme of the request.
string scheme = 6;- Specified by:
getSchemein interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The scheme.
-
getSchemeBytes
public com.google.protobuf.ByteString getSchemeBytes()The HTTP URL scheme, such as `http` and `https`. This is set for HTTP/2 requests only. For HTTP/1.1, use "x-forwarded-for" header value to lookup the scheme of the request.
string scheme = 6;- Specified by:
getSchemeBytesin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The bytes for scheme.
-
getQuery
This field is always empty, and exists for compatibility reasons. The HTTP URL query is included in `path` field.
string query = 7;- Specified by:
getQueryin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The query.
-
getQueryBytes
public com.google.protobuf.ByteString getQueryBytes()This field is always empty, and exists for compatibility reasons. The HTTP URL query is included in `path` field.
string query = 7;- Specified by:
getQueryBytesin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The bytes for query.
-
getFragment
This field is always empty, and exists for compatibility reasons. The URL fragment is not submitted as part of HTTP requests; it is unknowable.
string fragment = 8;- Specified by:
getFragmentin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The fragment.
-
getFragmentBytes
public com.google.protobuf.ByteString getFragmentBytes()This field is always empty, and exists for compatibility reasons. The URL fragment is not submitted as part of HTTP requests; it is unknowable.
string fragment = 8;- Specified by:
getFragmentBytesin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The bytes for fragment.
-
getSize
public long getSize()The HTTP request size in bytes. If unknown, it must be -1.
int64 size = 9;- Specified by:
getSizein interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The size.
-
getProtocol
The network protocol used with the request, such as "HTTP/1.0", "HTTP/1.1", or "HTTP/2". See :repo:`headers.h:ProtocolStrings <source/common/http/headers.h>` for a list of all possible values.
string protocol = 10;- Specified by:
getProtocolin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The protocol.
-
getProtocolBytes
public com.google.protobuf.ByteString getProtocolBytes()The network protocol used with the request, such as "HTTP/1.0", "HTTP/1.1", or "HTTP/2". See :repo:`headers.h:ProtocolStrings <source/common/http/headers.h>` for a list of all possible values.
string protocol = 10;- Specified by:
getProtocolBytesin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The bytes for protocol.
-
getBody
The HTTP request body.
string body = 11;- Specified by:
getBodyin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The body.
-
getBodyBytes
public com.google.protobuf.ByteString getBodyBytes()The HTTP request body.
string body = 11;- Specified by:
getBodyBytesin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The bytes for body.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AttributeContext.HttpRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttributeContext.HttpRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttributeContext.HttpRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttributeContext.HttpRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttributeContext.HttpRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttributeContext.HttpRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AttributeContext.HttpRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static AttributeContext.HttpRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static AttributeContext.HttpRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static AttributeContext.HttpRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static AttributeContext.HttpRequest.Builder newBuilder(AttributeContext.HttpRequest prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AttributeContext.HttpRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-