public static final class AttributeContextOuterClass.AttributeContext extends com.google.protobuf.GeneratedMessageV3 implements AttributeContextOuterClass.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.
Protobuf type envoy.service.auth.v2alpha.AttributeContext
| Modifier and Type | Class and Description |
|---|---|
static class |
AttributeContextOuterClass.AttributeContext.Builder
An attribute is a piece of metadata that describes an activity on a network.
|
static class |
AttributeContextOuterClass.AttributeContext.HttpRequest
This message defines attributes for an HTTP request.
|
static interface |
AttributeContextOuterClass.AttributeContext.HttpRequestOrBuilder |
static class |
AttributeContextOuterClass.AttributeContext.Peer
This message defines attributes for a node that handles a network request.
|
static interface |
AttributeContextOuterClass.AttributeContext.PeerOrBuilder |
static class |
AttributeContextOuterClass.AttributeContext.Request
Represents a network request, such as an HTTP request.
|
static interface |
AttributeContextOuterClass.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| Modifier and Type | Field and Description |
|---|---|
static int |
CONTEXT_EXTENSIONS_FIELD_NUMBER |
static int |
DESTINATION_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 AttributeContextOuterClass.AttributeContext |
getDefaultInstance() |
AttributeContextOuterClass.AttributeContext |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
AttributeContextOuterClass.AttributeContext.Peer |
getDestination()
The destination of a network activity, such as accepting a TCP connection.
|
AttributeContextOuterClass.AttributeContext.PeerOrBuilder |
getDestinationOrBuilder()
The destination of a network activity, such as accepting a TCP connection.
|
com.google.protobuf.Parser<AttributeContextOuterClass.AttributeContext> |
getParserForType() |
AttributeContextOuterClass.AttributeContext.Request |
getRequest()
Represents a network request, such as an HTTP request.
|
AttributeContextOuterClass.AttributeContext.RequestOrBuilder |
getRequestOrBuilder()
Represents a network request, such as an HTTP request.
|
int |
getSerializedSize() |
AttributeContextOuterClass.AttributeContext.Peer |
getSource()
The source of a network activity, such as starting a TCP connection.
|
AttributeContextOuterClass.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 |
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 AttributeContextOuterClass.AttributeContext.Builder |
newBuilder() |
static AttributeContextOuterClass.AttributeContext.Builder |
newBuilder(AttributeContextOuterClass.AttributeContext prototype) |
AttributeContextOuterClass.AttributeContext.Builder |
newBuilderForType() |
protected AttributeContextOuterClass.AttributeContext.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static AttributeContextOuterClass.AttributeContext |
parseDelimitedFrom(InputStream input) |
static AttributeContextOuterClass.AttributeContext |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContextOuterClass.AttributeContext |
parseFrom(byte[] data) |
static AttributeContextOuterClass.AttributeContext |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContextOuterClass.AttributeContext |
parseFrom(ByteBuffer data) |
static AttributeContextOuterClass.AttributeContext |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContextOuterClass.AttributeContext |
parseFrom(com.google.protobuf.ByteString data) |
static AttributeContextOuterClass.AttributeContext |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContextOuterClass.AttributeContext |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AttributeContextOuterClass.AttributeContext |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContextOuterClass.AttributeContext |
parseFrom(InputStream input) |
static AttributeContextOuterClass.AttributeContext |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AttributeContextOuterClass.AttributeContext> |
parser() |
AttributeContextOuterClass.AttributeContext.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 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 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.v2alpha.AttributeContext.Peer source = 1;hasSource in interface AttributeContextOuterClass.AttributeContextOrBuilderpublic AttributeContextOuterClass.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.v2alpha.AttributeContext.Peer source = 1;getSource in interface AttributeContextOuterClass.AttributeContextOrBuilderpublic AttributeContextOuterClass.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.v2alpha.AttributeContext.Peer source = 1;getSourceOrBuilder in interface AttributeContextOuterClass.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.v2alpha.AttributeContext.Peer destination = 2;hasDestination in interface AttributeContextOuterClass.AttributeContextOrBuilderpublic AttributeContextOuterClass.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.v2alpha.AttributeContext.Peer destination = 2;getDestination in interface AttributeContextOuterClass.AttributeContextOrBuilderpublic AttributeContextOuterClass.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.v2alpha.AttributeContext.Peer destination = 2;getDestinationOrBuilder in interface AttributeContextOuterClass.AttributeContextOrBuilderpublic boolean hasRequest()
Represents a network request, such as an HTTP request.
.envoy.service.auth.v2alpha.AttributeContext.Request request = 4;hasRequest in interface AttributeContextOuterClass.AttributeContextOrBuilderpublic AttributeContextOuterClass.AttributeContext.Request getRequest()
Represents a network request, such as an HTTP request.
.envoy.service.auth.v2alpha.AttributeContext.Request request = 4;getRequest in interface AttributeContextOuterClass.AttributeContextOrBuilderpublic AttributeContextOuterClass.AttributeContext.RequestOrBuilder getRequestOrBuilder()
Represents a network request, such as an HTTP request.
.envoy.service.auth.v2alpha.AttributeContext.Request request = 4;getRequestOrBuilder in interface AttributeContextOuterClass.AttributeContextOrBuilderpublic int getContextExtensionsCount()
AttributeContextOuterClass.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 AttributeContextOuterClass.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 AttributeContextOuterClass.AttributeContextOrBuilder@Deprecated public Map<String,String> getContextExtensions()
getContextExtensionsMap() instead.getContextExtensions in interface AttributeContextOuterClass.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 AttributeContextOuterClass.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 AttributeContextOuterClass.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 AttributeContextOuterClass.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 AttributeContextOuterClass.AttributeContext parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContextOuterClass.AttributeContext parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContextOuterClass.AttributeContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContextOuterClass.AttributeContext parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContextOuterClass.AttributeContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContextOuterClass.AttributeContext parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContextOuterClass.AttributeContext parseFrom(InputStream input) throws IOException
IOExceptionpublic static AttributeContextOuterClass.AttributeContext parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttributeContextOuterClass.AttributeContext parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AttributeContextOuterClass.AttributeContext parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttributeContextOuterClass.AttributeContext parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AttributeContextOuterClass.AttributeContext parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AttributeContextOuterClass.AttributeContext.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AttributeContextOuterClass.AttributeContext.Builder newBuilder()
public static AttributeContextOuterClass.AttributeContext.Builder newBuilder(AttributeContextOuterClass.AttributeContext prototype)
public AttributeContextOuterClass.AttributeContext.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AttributeContextOuterClass.AttributeContext.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AttributeContextOuterClass.AttributeContext getDefaultInstance()
public static com.google.protobuf.Parser<AttributeContextOuterClass.AttributeContext> parser()
public com.google.protobuf.Parser<AttributeContextOuterClass.AttributeContext> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AttributeContextOuterClass.AttributeContext getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019 WSO2. All rights reserved.