Class AttributeContext
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.service.auth.v3.AttributeContext
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,AttributeContextOrBuilder,Serializable
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 JWTs 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: 14]Protobuf type
envoy.service.auth.v3.AttributeContext- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn attribute is a piece of metadata that describes an activity on a network.static final classThis message defines attributes for an HTTP request.static interfacestatic final classThis message defines attributes for a node that handles a network request.static interfacestatic final classRepresents a network request, such as an HTTP request.static interfacestatic final classThis message defines attributes for the underlying TLS session.static interfaceNested 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 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 TypeMethodDescriptionbooleanThis is analogous to http_request.headers, however these contents will not be sent to the upstream server.booleanDeprecated.intThis is analogous to http_request.headers, however these contents will not be sent to the upstream server.This is analogous to http_request.headers, however these contents will not be sent to the upstream server.getContextExtensionsOrDefault(String key, String defaultValue) This is analogous to http_request.headers, however these contents will not be sent to the upstream server.This is analogous to http_request.headers, however these contents will not be sent to the upstream server.static AttributeContextstatic final com.google.protobuf.Descriptors.DescriptorThe destination of a network activity, such as accepting a TCP connection.The destination of a network activity, such as accepting a TCP connection.Dynamic metadata associated with the request.Dynamic metadata associated with the request.com.google.protobuf.Parser<AttributeContext>Represents a network request, such as an HTTP request.Represents a network request, such as an HTTP request.Metadata associated with the selected route.Metadata associated with the selected route.intThe source of a network activity, such as starting a TCP connection.The source of a network activity, such as starting a TCP connection.TLS session details of the underlying connection.TLS session details of the underlying connection.booleanThe destination of a network activity, such as accepting a TCP connection.inthashCode()booleanDynamic metadata associated with the request.booleanRepresents a network request, such as an HTTP request.booleanMetadata associated with the selected route.booleanThe source of a network activity, such as starting a TCP connection.booleanTLS session details of the underlying connection.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic AttributeContext.Builderstatic AttributeContext.BuildernewBuilder(AttributeContext prototype) protected AttributeContext.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static AttributeContextparseDelimitedFrom(InputStream input) static AttributeContextparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContextparseFrom(byte[] data) static AttributeContextparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContextparseFrom(com.google.protobuf.ByteString data) static AttributeContextparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContextparseFrom(com.google.protobuf.CodedInputStream input) static AttributeContextparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContextparseFrom(InputStream input) static AttributeContextparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContextparseFrom(ByteBuffer data) static AttributeContextparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AttributeContext>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
-
SOURCE_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER- See Also:
-
DESTINATION_FIELD_NUMBER
public static final int DESTINATION_FIELD_NUMBER- See Also:
-
REQUEST_FIELD_NUMBER
public static final int REQUEST_FIELD_NUMBER- See Also:
-
CONTEXT_EXTENSIONS_FIELD_NUMBER
public static final int CONTEXT_EXTENSIONS_FIELD_NUMBER- See Also:
-
METADATA_CONTEXT_FIELD_NUMBER
public static final int METADATA_CONTEXT_FIELD_NUMBER- See Also:
-
ROUTE_METADATA_CONTEXT_FIELD_NUMBER
public static final int ROUTE_METADATA_CONTEXT_FIELD_NUMBER- See Also:
-
TLS_SESSION_FIELD_NUMBER
public static final int TLS_SESSION_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
-
hasSource
public 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.v3.AttributeContext.Peer source = 1;- Specified by:
hasSourcein interfaceAttributeContextOrBuilder- Returns:
- Whether the source field is set.
-
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.v3.AttributeContext.Peer source = 1;- Specified by:
getSourcein interfaceAttributeContextOrBuilder- Returns:
- The source.
-
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.v3.AttributeContext.Peer source = 1;- Specified by:
getSourceOrBuilderin interfaceAttributeContextOrBuilder
-
hasDestination
public 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.v3.AttributeContext.Peer destination = 2;- Specified by:
hasDestinationin interfaceAttributeContextOrBuilder- Returns:
- Whether the destination field is set.
-
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.v3.AttributeContext.Peer destination = 2;- Specified by:
getDestinationin interfaceAttributeContextOrBuilder- Returns:
- The destination.
-
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.v3.AttributeContext.Peer destination = 2;- Specified by:
getDestinationOrBuilderin interfaceAttributeContextOrBuilder
-
hasRequest
public boolean hasRequest()Represents a network request, such as an HTTP request.
.envoy.service.auth.v3.AttributeContext.Request request = 4;- Specified by:
hasRequestin interfaceAttributeContextOrBuilder- Returns:
- Whether the request field is set.
-
getRequest
Represents a network request, such as an HTTP request.
.envoy.service.auth.v3.AttributeContext.Request request = 4;- Specified by:
getRequestin interfaceAttributeContextOrBuilder- Returns:
- The request.
-
getRequestOrBuilder
Represents a network request, such as an HTTP request.
.envoy.service.auth.v3.AttributeContext.Request request = 4;- Specified by:
getRequestOrBuilderin interfaceAttributeContextOrBuilder
-
getContextExtensionsCount
public int getContextExtensionsCount()Description copied from interface: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;- Specified by:
getContextExtensionsCountin interfaceAttributeContextOrBuilder
-
containsContextExtensions
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;- Specified by:
containsContextExtensionsin interfaceAttributeContextOrBuilder
-
getContextExtensions
Deprecated.UsegetContextExtensionsMap()instead.- Specified by:
getContextExtensionsin interfaceAttributeContextOrBuilder
-
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;- Specified by:
getContextExtensionsMapin interfaceAttributeContextOrBuilder
-
getContextExtensionsOrDefault
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;- Specified by:
getContextExtensionsOrDefaultin interfaceAttributeContextOrBuilder
-
getContextExtensionsOrThrow
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;- Specified by:
getContextExtensionsOrThrowin interfaceAttributeContextOrBuilder
-
hasMetadataContext
public boolean hasMetadataContext()Dynamic metadata associated with the request.
.envoy.config.core.v3.Metadata metadata_context = 11;- Specified by:
hasMetadataContextin interfaceAttributeContextOrBuilder- Returns:
- Whether the metadataContext field is set.
-
getMetadataContext
Dynamic metadata associated with the request.
.envoy.config.core.v3.Metadata metadata_context = 11;- Specified by:
getMetadataContextin interfaceAttributeContextOrBuilder- Returns:
- The metadataContext.
-
getMetadataContextOrBuilder
Dynamic metadata associated with the request.
.envoy.config.core.v3.Metadata metadata_context = 11;- Specified by:
getMetadataContextOrBuilderin interfaceAttributeContextOrBuilder
-
hasRouteMetadataContext
public boolean hasRouteMetadataContext()Metadata associated with the selected route.
.envoy.config.core.v3.Metadata route_metadata_context = 13;- Specified by:
hasRouteMetadataContextin interfaceAttributeContextOrBuilder- Returns:
- Whether the routeMetadataContext field is set.
-
getRouteMetadataContext
Metadata associated with the selected route.
.envoy.config.core.v3.Metadata route_metadata_context = 13;- Specified by:
getRouteMetadataContextin interfaceAttributeContextOrBuilder- Returns:
- The routeMetadataContext.
-
getRouteMetadataContextOrBuilder
Metadata associated with the selected route.
.envoy.config.core.v3.Metadata route_metadata_context = 13;- Specified by:
getRouteMetadataContextOrBuilderin interfaceAttributeContextOrBuilder
-
hasTlsSession
public boolean hasTlsSession()TLS session details of the underlying connection. This is not populated by default and will be populated only if the ext_authz filter has been specifically configured to include this information. For HTTP ext_authz, that requires :ref:`include_tls_session <config_http_filters_ext_authz>` to be set to true. For network ext_authz, that requires :ref:`include_tls_session <config_network_filters_ext_authz>` to be set to true.
.envoy.service.auth.v3.AttributeContext.TLSSession tls_session = 12;- Specified by:
hasTlsSessionin interfaceAttributeContextOrBuilder- Returns:
- Whether the tlsSession field is set.
-
getTlsSession
TLS session details of the underlying connection. This is not populated by default and will be populated only if the ext_authz filter has been specifically configured to include this information. For HTTP ext_authz, that requires :ref:`include_tls_session <config_http_filters_ext_authz>` to be set to true. For network ext_authz, that requires :ref:`include_tls_session <config_network_filters_ext_authz>` to be set to true.
.envoy.service.auth.v3.AttributeContext.TLSSession tls_session = 12;- Specified by:
getTlsSessionin interfaceAttributeContextOrBuilder- Returns:
- The tlsSession.
-
getTlsSessionOrBuilder
TLS session details of the underlying connection. This is not populated by default and will be populated only if the ext_authz filter has been specifically configured to include this information. For HTTP ext_authz, that requires :ref:`include_tls_session <config_http_filters_ext_authz>` to be set to true. For network ext_authz, that requires :ref:`include_tls_session <config_network_filters_ext_authz>` to be set to true.
.envoy.service.auth.v3.AttributeContext.TLSSession tls_session = 12;- Specified by:
getTlsSessionOrBuilderin interfaceAttributeContextOrBuilder
-
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 parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttributeContext parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttributeContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttributeContext 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 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttributeContext 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 parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static AttributeContext parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static AttributeContext parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static AttributeContext 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
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AttributeContext.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
-