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.Protobuf type
envoy.service.auth.v2.AttributeContext.HttpRequest| Modifier and Type | Class and Description |
|---|---|
static class |
AttributeContext.HttpRequest.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| Modifier and Type | Field and Description |
|---|---|
static int |
FRAGMENT_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 |
SCHEME_FIELD_NUMBER |
static int |
SIZE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsHeaders(String key)
The HTTP request headers.
|
boolean |
equals(Object obj) |
static AttributeContext.HttpRequest |
getDefaultInstance() |
AttributeContext.HttpRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getFragment()
The HTTP URL fragment, excluding leading `#`.
|
com.google.protobuf.ByteString |
getFragmentBytes()
The HTTP URL fragment, excluding leading `#`.
|
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` or 'Authority` header value.
|
com.google.protobuf.ByteString |
getHostBytes()
The HTTP request `Host` or 'Authority` 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.HttpRequest> |
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"
string protocol = 10; |
com.google.protobuf.ByteString |
getProtocolBytes()
The network protocol used with the request, such as
"http/1.1", "spdy/3", "h2", "h2c"
string protocol = 10; |
String |
getQuery()
The HTTP URL query in the format of `name1=value`&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=value`&name2=value2`, as it
appears in the first line of the HTTP request.
|
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.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static AttributeContext.HttpRequest.Builder |
newBuilder() |
static AttributeContext.HttpRequest.Builder |
newBuilder(AttributeContext.HttpRequest prototype) |
AttributeContext.HttpRequest.Builder |
newBuilderForType() |
protected AttributeContext.HttpRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static AttributeContext.HttpRequest |
parseDelimitedFrom(InputStream input) |
static AttributeContext.HttpRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext.HttpRequest |
parseFrom(byte[] data) |
static AttributeContext.HttpRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext.HttpRequest |
parseFrom(ByteBuffer data) |
static AttributeContext.HttpRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext.HttpRequest |
parseFrom(com.google.protobuf.ByteString data) |
static AttributeContext.HttpRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext.HttpRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AttributeContext.HttpRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext.HttpRequest |
parseFrom(InputStream input) |
static AttributeContext.HttpRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AttributeContext.HttpRequest> |
parser() |
AttributeContext.HttpRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, 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 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 FRAGMENT_FIELD_NUMBER
public static final int SIZE_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.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. For HTTP requests, it should be X-Request-ID or equivalent.
string id = 1;getId in interface AttributeContext.HttpRequestOrBuilderpublic 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;getIdBytes in interface AttributeContext.HttpRequestOrBuilderpublic String getMethod()
The HTTP request method, such as `GET`, `POST`.
string method = 2;getMethod in interface AttributeContext.HttpRequestOrBuilderpublic com.google.protobuf.ByteString getMethodBytes()
The HTTP request method, such as `GET`, `POST`.
string method = 2;getMethodBytes in interface AttributeContext.HttpRequestOrBuilderpublic int getHeadersCount()
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 lowercased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3;getHeadersCount in interface AttributeContext.HttpRequestOrBuilderpublic 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.HttpRequestOrBuilder@Deprecated public Map<String,String> getHeaders()
getHeadersMap() instead.getHeaders in interface AttributeContext.HttpRequestOrBuilderpublic 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.HttpRequestOrBuilderpublic 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.HttpRequestOrBuilderpublic 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.HttpRequestOrBuilderpublic String getPath()
The HTTP URL path.
string path = 4;getPath in interface AttributeContext.HttpRequestOrBuilderpublic com.google.protobuf.ByteString getPathBytes()
The HTTP URL path.
string path = 4;getPathBytes in interface AttributeContext.HttpRequestOrBuilderpublic String getHost()
The HTTP request `Host` or 'Authority` header value.
string host = 5;getHost in interface AttributeContext.HttpRequestOrBuilderpublic com.google.protobuf.ByteString getHostBytes()
The HTTP request `Host` or 'Authority` header value.
string host = 5;getHostBytes in interface AttributeContext.HttpRequestOrBuilderpublic String getScheme()
The HTTP URL scheme, such as `http` and `https`.
string scheme = 6;getScheme in interface AttributeContext.HttpRequestOrBuilderpublic com.google.protobuf.ByteString getSchemeBytes()
The HTTP URL scheme, such as `http` and `https`.
string scheme = 6;getSchemeBytes in interface AttributeContext.HttpRequestOrBuilderpublic String getQuery()
The HTTP URL query in the format of `name1=value`&name2=value2`, as it appears in the first line of the HTTP request. No decoding is performed.
string query = 7;getQuery in interface AttributeContext.HttpRequestOrBuilderpublic com.google.protobuf.ByteString getQueryBytes()
The HTTP URL query in the format of `name1=value`&name2=value2`, as it appears in the first line of the HTTP request. No decoding is performed.
string query = 7;getQueryBytes in interface AttributeContext.HttpRequestOrBuilderpublic String getFragment()
The HTTP URL fragment, excluding leading `#`. No URL decoding is performed.
string fragment = 8;getFragment in interface AttributeContext.HttpRequestOrBuilderpublic com.google.protobuf.ByteString getFragmentBytes()
The HTTP URL fragment, excluding leading `#`. No URL decoding is performed.
string fragment = 8;getFragmentBytes in interface AttributeContext.HttpRequestOrBuilderpublic long getSize()
The HTTP request size in bytes. If unknown, it must be -1.
int64 size = 9;getSize in interface AttributeContext.HttpRequestOrBuilderpublic String getProtocol()
The network protocol used with the request, such as "http/1.1", "spdy/3", "h2", "h2c"
string protocol = 10;getProtocol in interface AttributeContext.HttpRequestOrBuilderpublic com.google.protobuf.ByteString getProtocolBytes()
The network protocol used with the request, such as "http/1.1", "spdy/3", "h2", "h2c"
string protocol = 10;getProtocolBytes in interface AttributeContext.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 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.HttpRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.HttpRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.HttpRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.HttpRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.HttpRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.HttpRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.HttpRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static AttributeContext.HttpRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttributeContext.HttpRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AttributeContext.HttpRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttributeContext.HttpRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AttributeContext.HttpRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AttributeContext.HttpRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AttributeContext.HttpRequest.Builder newBuilder()
public static AttributeContext.HttpRequest.Builder newBuilder(AttributeContext.HttpRequest prototype)
public AttributeContext.HttpRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AttributeContext.HttpRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AttributeContext.HttpRequest getDefaultInstance()
public static com.google.protobuf.Parser<AttributeContext.HttpRequest> parser()
public com.google.protobuf.Parser<AttributeContext.HttpRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AttributeContext.HttpRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2019 The Envoy Project. All rights reserved.