public final class AttributeContext extends com.google.protobuf.GeneratedMessageV3 implements AttributeContextOrBuilder
An attribute is a piece of metadata that describes an activity on a network. For example, the size of an HTTP request, or the status code of an HTTP response. Each attribute has a type and a name, which is logically defined as a proto message field of the `AttributeContext`. The `AttributeContext` is a collection of individual attributes supported by Envoy authorization system. [#comment: The following items are left out of this proto Request.Auth field for jwt tokens Request.Api for api management Origin peer that originated the request Caching Protocol request_context return values to inject back into the filter chain peer.claims -- from X.509 extensions Configuration - field mask to send - which return values from request_context are copied back - which return values are copied into request_headers] [#next-free-field: 12]Protobuf type
envoy.service.auth.v4alpha.AttributeContext| Modifier and Type | Class and Description |
|---|---|
static class |
AttributeContext.Builder
An attribute is a piece of metadata that describes an activity on a network.
|
static class |
AttributeContext.HttpRequest
This message defines attributes for an HTTP request.
|
static interface |
AttributeContext.HttpRequestOrBuilder |
static class |
AttributeContext.Peer
This message defines attributes for a node that handles a network request.
|
static interface |
AttributeContext.PeerOrBuilder |
static class |
AttributeContext.Request
Represents a network request, such as an HTTP request.
|
static interface |
AttributeContext.RequestOrBuilder |
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 |
CONTEXT_EXTENSIONS_FIELD_NUMBER |
static int |
DESTINATION_FIELD_NUMBER |
static int |
METADATA_CONTEXT_FIELD_NUMBER |
static int |
REQUEST_FIELD_NUMBER |
static int |
SOURCE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsContextExtensions(String key)
This is analogous to http_request.headers, however these contents will not be sent to the
upstream server.
|
boolean |
equals(Object obj) |
Map<String,String> |
getContextExtensions()
Deprecated.
|
int |
getContextExtensionsCount()
This is analogous to http_request.headers, however these contents will not be sent to the
upstream server.
|
Map<String,String> |
getContextExtensionsMap()
This is analogous to http_request.headers, however these contents will not be sent to the
upstream server.
|
String |
getContextExtensionsOrDefault(String key,
String defaultValue)
This is analogous to http_request.headers, however these contents will not be sent to the
upstream server.
|
String |
getContextExtensionsOrThrow(String key)
This is analogous to http_request.headers, however these contents will not be sent to the
upstream server.
|
static AttributeContext |
getDefaultInstance() |
AttributeContext |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
AttributeContext.Peer |
getDestination()
The destination of a network activity, such as accepting a TCP connection.
|
AttributeContext.PeerOrBuilder |
getDestinationOrBuilder()
The destination of a network activity, such as accepting a TCP connection.
|
Metadata |
getMetadataContext()
Dynamic metadata associated with the request.
|
MetadataOrBuilder |
getMetadataContextOrBuilder()
Dynamic metadata associated with the request.
|
com.google.protobuf.Parser<AttributeContext> |
getParserForType() |
AttributeContext.Request |
getRequest()
Represents a network request, such as an HTTP request.
|
AttributeContext.RequestOrBuilder |
getRequestOrBuilder()
Represents a network request, such as an HTTP request.
|
int |
getSerializedSize() |
AttributeContext.Peer |
getSource()
The source of a network activity, such as starting a TCP connection.
|
AttributeContext.PeerOrBuilder |
getSourceOrBuilder()
The source of a network activity, such as starting a TCP connection.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasDestination()
The destination of a network activity, such as accepting a TCP connection.
|
int |
hashCode() |
boolean |
hasMetadataContext()
Dynamic metadata associated with the request.
|
boolean |
hasRequest()
Represents a network request, such as an HTTP request.
|
boolean |
hasSource()
The source of a network activity, such as starting a TCP connection.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static AttributeContext.Builder |
newBuilder() |
static AttributeContext.Builder |
newBuilder(AttributeContext prototype) |
AttributeContext.Builder |
newBuilderForType() |
protected AttributeContext.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AttributeContext |
parseDelimitedFrom(InputStream input) |
static AttributeContext |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext |
parseFrom(byte[] data) |
static AttributeContext |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext |
parseFrom(ByteBuffer data) |
static AttributeContext |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext |
parseFrom(com.google.protobuf.ByteString data) |
static AttributeContext |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AttributeContext |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext |
parseFrom(InputStream input) |
static AttributeContext |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AttributeContext> |
parser() |
AttributeContext.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, 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 SOURCE_FIELD_NUMBER
public static final int DESTINATION_FIELD_NUMBER
public static final int REQUEST_FIELD_NUMBER
public static final int CONTEXT_EXTENSIONS_FIELD_NUMBER
public static final int METADATA_CONTEXT_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 boolean hasSource()
The source of a network activity, such as starting a TCP connection. In a multi hop network activity, the source represents the sender of the last hop.
.envoy.service.auth.v4alpha.AttributeContext.Peer source = 1;hasSource in interface AttributeContextOrBuilderpublic AttributeContext.Peer getSource()
The source of a network activity, such as starting a TCP connection. In a multi hop network activity, the source represents the sender of the last hop.
.envoy.service.auth.v4alpha.AttributeContext.Peer source = 1;getSource in interface AttributeContextOrBuilderpublic AttributeContext.PeerOrBuilder getSourceOrBuilder()
The source of a network activity, such as starting a TCP connection. In a multi hop network activity, the source represents the sender of the last hop.
.envoy.service.auth.v4alpha.AttributeContext.Peer source = 1;getSourceOrBuilder in interface AttributeContextOrBuilderpublic boolean hasDestination()
The destination of a network activity, such as accepting a TCP connection. In a multi hop network activity, the destination represents the receiver of the last hop.
.envoy.service.auth.v4alpha.AttributeContext.Peer destination = 2;hasDestination in interface AttributeContextOrBuilderpublic AttributeContext.Peer getDestination()
The destination of a network activity, such as accepting a TCP connection. In a multi hop network activity, the destination represents the receiver of the last hop.
.envoy.service.auth.v4alpha.AttributeContext.Peer destination = 2;getDestination in interface AttributeContextOrBuilderpublic AttributeContext.PeerOrBuilder getDestinationOrBuilder()
The destination of a network activity, such as accepting a TCP connection. In a multi hop network activity, the destination represents the receiver of the last hop.
.envoy.service.auth.v4alpha.AttributeContext.Peer destination = 2;getDestinationOrBuilder in interface AttributeContextOrBuilderpublic boolean hasRequest()
Represents a network request, such as an HTTP request.
.envoy.service.auth.v4alpha.AttributeContext.Request request = 4;hasRequest in interface AttributeContextOrBuilderpublic AttributeContext.Request getRequest()
Represents a network request, such as an HTTP request.
.envoy.service.auth.v4alpha.AttributeContext.Request request = 4;getRequest in interface AttributeContextOrBuilderpublic AttributeContext.RequestOrBuilder getRequestOrBuilder()
Represents a network request, such as an HTTP request.
.envoy.service.auth.v4alpha.AttributeContext.Request request = 4;getRequestOrBuilder in interface AttributeContextOrBuilderpublic int getContextExtensionsCount()
AttributeContextOrBuilderThis is analogous to http_request.headers, however these contents will not be sent to the upstream server. Context_extensions provide an extension mechanism for sending additional information to the auth server without modifying the proto definition. It maps to the internal opaque context in the filter chain.
map<string, string> context_extensions = 10;getContextExtensionsCount in interface AttributeContextOrBuilderpublic boolean containsContextExtensions(String key)
This is analogous to http_request.headers, however these contents will not be sent to the upstream server. Context_extensions provide an extension mechanism for sending additional information to the auth server without modifying the proto definition. It maps to the internal opaque context in the filter chain.
map<string, string> context_extensions = 10;containsContextExtensions in interface AttributeContextOrBuilder@Deprecated public Map<String,String> getContextExtensions()
getContextExtensionsMap() instead.getContextExtensions in interface AttributeContextOrBuilderpublic Map<String,String> getContextExtensionsMap()
This is analogous to http_request.headers, however these contents will not be sent to the upstream server. Context_extensions provide an extension mechanism for sending additional information to the auth server without modifying the proto definition. It maps to the internal opaque context in the filter chain.
map<string, string> context_extensions = 10;getContextExtensionsMap in interface AttributeContextOrBuilderpublic String getContextExtensionsOrDefault(String key, String defaultValue)
This is analogous to http_request.headers, however these contents will not be sent to the upstream server. Context_extensions provide an extension mechanism for sending additional information to the auth server without modifying the proto definition. It maps to the internal opaque context in the filter chain.
map<string, string> context_extensions = 10;getContextExtensionsOrDefault in interface AttributeContextOrBuilderpublic String getContextExtensionsOrThrow(String key)
This is analogous to http_request.headers, however these contents will not be sent to the upstream server. Context_extensions provide an extension mechanism for sending additional information to the auth server without modifying the proto definition. It maps to the internal opaque context in the filter chain.
map<string, string> context_extensions = 10;getContextExtensionsOrThrow in interface AttributeContextOrBuilderpublic boolean hasMetadataContext()
Dynamic metadata associated with the request.
.envoy.config.core.v4alpha.Metadata metadata_context = 11;hasMetadataContext in interface AttributeContextOrBuilderpublic Metadata getMetadataContext()
Dynamic metadata associated with the request.
.envoy.config.core.v4alpha.Metadata metadata_context = 11;getMetadataContext in interface AttributeContextOrBuilderpublic MetadataOrBuilder getMetadataContextOrBuilder()
Dynamic metadata associated with the request.
.envoy.config.core.v4alpha.Metadata metadata_context = 11;getMetadataContextOrBuilder in interface AttributeContextOrBuilderpublic 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 parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext parseFrom(InputStream input) throws IOException
IOExceptionpublic static AttributeContext parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttributeContext parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AttributeContext parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttributeContext parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AttributeContext parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AttributeContext.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AttributeContext.Builder newBuilder()
public static AttributeContext.Builder newBuilder(AttributeContext prototype)
public AttributeContext.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AttributeContext.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AttributeContext getDefaultInstance()
public static com.google.protobuf.Parser<AttributeContext> parser()
public com.google.protobuf.Parser<AttributeContext> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AttributeContext getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.