public static final class AttributeContext.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder> 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.v3.AttributeContext
Modifier and Type | Method and Description |
---|---|
AttributeContext.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AttributeContext |
build() |
AttributeContext |
buildPartial() |
AttributeContext.Builder |
clear() |
AttributeContext.Builder |
clearContextExtensions() |
AttributeContext.Builder |
clearDestination()
The destination of a network activity, such as accepting a TCP connection.
|
AttributeContext.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AttributeContext.Builder |
clearMetadataContext()
Dynamic metadata associated with the request.
|
AttributeContext.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AttributeContext.Builder |
clearRequest()
Represents a network request, such as an HTTP request.
|
AttributeContext.Builder |
clearSource()
The source of a network activity, such as starting a TCP connection.
|
AttributeContext.Builder |
clone() |
boolean |
containsContextExtensions(String key)
This is analogous to http_request.headers, however these contents will not be sent to the
upstream server.
|
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.
|
AttributeContext |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
AttributeContext.Peer |
getDestination()
The destination of a network activity, such as accepting a TCP connection.
|
AttributeContext.Peer.Builder |
getDestinationBuilder()
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.
|
Metadata.Builder |
getMetadataContextBuilder()
Dynamic metadata associated with the request.
|
MetadataOrBuilder |
getMetadataContextOrBuilder()
Dynamic metadata associated with the request.
|
Map<String,String> |
getMutableContextExtensions()
Deprecated.
|
AttributeContext.Request |
getRequest()
Represents a network request, such as an HTTP request.
|
AttributeContext.Request.Builder |
getRequestBuilder()
Represents a network request, such as an HTTP request.
|
AttributeContext.RequestOrBuilder |
getRequestOrBuilder()
Represents a network request, such as an HTTP request.
|
AttributeContext.Peer |
getSource()
The source of a network activity, such as starting a TCP connection.
|
AttributeContext.Peer.Builder |
getSourceBuilder()
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.
|
boolean |
hasDestination()
The destination of a network activity, such as accepting a TCP connection.
|
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) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
AttributeContext.Builder |
mergeDestination(AttributeContext.Peer value)
The destination of a network activity, such as accepting a TCP connection.
|
AttributeContext.Builder |
mergeFrom(AttributeContext other) |
AttributeContext.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AttributeContext.Builder |
mergeFrom(com.google.protobuf.Message other) |
AttributeContext.Builder |
mergeMetadataContext(Metadata value)
Dynamic metadata associated with the request.
|
AttributeContext.Builder |
mergeRequest(AttributeContext.Request value)
Represents a network request, such as an HTTP request.
|
AttributeContext.Builder |
mergeSource(AttributeContext.Peer value)
The source of a network activity, such as starting a TCP connection.
|
AttributeContext.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AttributeContext.Builder |
putAllContextExtensions(Map<String,String> values)
This is analogous to http_request.headers, however these contents will not be sent to the
upstream server.
|
AttributeContext.Builder |
putContextExtensions(String key,
String value)
This is analogous to http_request.headers, however these contents will not be sent to the
upstream server.
|
AttributeContext.Builder |
removeContextExtensions(String key)
This is analogous to http_request.headers, however these contents will not be sent to the
upstream server.
|
AttributeContext.Builder |
setDestination(AttributeContext.Peer.Builder builderForValue)
The destination of a network activity, such as accepting a TCP connection.
|
AttributeContext.Builder |
setDestination(AttributeContext.Peer value)
The destination of a network activity, such as accepting a TCP connection.
|
AttributeContext.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AttributeContext.Builder |
setMetadataContext(Metadata.Builder builderForValue)
Dynamic metadata associated with the request.
|
AttributeContext.Builder |
setMetadataContext(Metadata value)
Dynamic metadata associated with the request.
|
AttributeContext.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AttributeContext.Builder |
setRequest(AttributeContext.Request.Builder builderForValue)
Represents a network request, such as an HTTP request.
|
AttributeContext.Builder |
setRequest(AttributeContext.Request value)
Represents a network request, such as an HTTP request.
|
AttributeContext.Builder |
setSource(AttributeContext.Peer.Builder builderForValue)
The source of a network activity, such as starting a TCP connection.
|
AttributeContext.Builder |
setSource(AttributeContext.Peer value)
The source of a network activity, such as starting a TCP connection.
|
AttributeContext.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField
in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
public AttributeContext.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
public AttributeContext getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public AttributeContext build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public AttributeContext buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public AttributeContext.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
public AttributeContext.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
public AttributeContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
public AttributeContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
public AttributeContext.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
public AttributeContext.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
public AttributeContext.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<AttributeContext.Builder>
public AttributeContext.Builder mergeFrom(AttributeContext other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
public AttributeContext.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<AttributeContext.Builder>
IOException
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;
hasSource
in interface AttributeContextOrBuilder
public 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.v3.AttributeContext.Peer source = 1;
getSource
in interface AttributeContextOrBuilder
public AttributeContext.Builder setSource(AttributeContext.Peer value)
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;
public AttributeContext.Builder setSource(AttributeContext.Peer.Builder builderForValue)
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;
public AttributeContext.Builder mergeSource(AttributeContext.Peer value)
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;
public AttributeContext.Builder clearSource()
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;
public AttributeContext.Peer.Builder getSourceBuilder()
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;
public 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.v3.AttributeContext.Peer source = 1;
getSourceOrBuilder
in interface AttributeContextOrBuilder
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;
hasDestination
in interface AttributeContextOrBuilder
public 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.v3.AttributeContext.Peer destination = 2;
getDestination
in interface AttributeContextOrBuilder
public AttributeContext.Builder setDestination(AttributeContext.Peer value)
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;
public AttributeContext.Builder setDestination(AttributeContext.Peer.Builder builderForValue)
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;
public AttributeContext.Builder mergeDestination(AttributeContext.Peer value)
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;
public AttributeContext.Builder clearDestination()
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;
public AttributeContext.Peer.Builder getDestinationBuilder()
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;
public 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.v3.AttributeContext.Peer destination = 2;
getDestinationOrBuilder
in interface AttributeContextOrBuilder
public boolean hasRequest()
Represents a network request, such as an HTTP request.
.envoy.service.auth.v3.AttributeContext.Request request = 4;
hasRequest
in interface AttributeContextOrBuilder
public AttributeContext.Request getRequest()
Represents a network request, such as an HTTP request.
.envoy.service.auth.v3.AttributeContext.Request request = 4;
getRequest
in interface AttributeContextOrBuilder
public AttributeContext.Builder setRequest(AttributeContext.Request value)
Represents a network request, such as an HTTP request.
.envoy.service.auth.v3.AttributeContext.Request request = 4;
public AttributeContext.Builder setRequest(AttributeContext.Request.Builder builderForValue)
Represents a network request, such as an HTTP request.
.envoy.service.auth.v3.AttributeContext.Request request = 4;
public AttributeContext.Builder mergeRequest(AttributeContext.Request value)
Represents a network request, such as an HTTP request.
.envoy.service.auth.v3.AttributeContext.Request request = 4;
public AttributeContext.Builder clearRequest()
Represents a network request, such as an HTTP request.
.envoy.service.auth.v3.AttributeContext.Request request = 4;
public AttributeContext.Request.Builder getRequestBuilder()
Represents a network request, such as an HTTP request.
.envoy.service.auth.v3.AttributeContext.Request request = 4;
public AttributeContext.RequestOrBuilder getRequestOrBuilder()
Represents a network request, such as an HTTP request.
.envoy.service.auth.v3.AttributeContext.Request request = 4;
getRequestOrBuilder
in interface AttributeContextOrBuilder
public int getContextExtensionsCount()
AttributeContextOrBuilder
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;
getContextExtensionsCount
in interface AttributeContextOrBuilder
public 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 AttributeContextOrBuilder
public 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 AttributeContextOrBuilder
public 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 AttributeContextOrBuilder
public 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 AttributeContextOrBuilder
public AttributeContext.Builder clearContextExtensions()
public AttributeContext.Builder removeContextExtensions(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;
@Deprecated public Map<String,String> getMutableContextExtensions()
public AttributeContext.Builder putContextExtensions(String key, String value)
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;
public AttributeContext.Builder putAllContextExtensions(Map<String,String> values)
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;
public boolean hasMetadataContext()
Dynamic metadata associated with the request.
.envoy.config.core.v3.Metadata metadata_context = 11;
hasMetadataContext
in interface AttributeContextOrBuilder
public Metadata getMetadataContext()
Dynamic metadata associated with the request.
.envoy.config.core.v3.Metadata metadata_context = 11;
getMetadataContext
in interface AttributeContextOrBuilder
public AttributeContext.Builder setMetadataContext(Metadata value)
Dynamic metadata associated with the request.
.envoy.config.core.v3.Metadata metadata_context = 11;
public AttributeContext.Builder setMetadataContext(Metadata.Builder builderForValue)
Dynamic metadata associated with the request.
.envoy.config.core.v3.Metadata metadata_context = 11;
public AttributeContext.Builder mergeMetadataContext(Metadata value)
Dynamic metadata associated with the request.
.envoy.config.core.v3.Metadata metadata_context = 11;
public AttributeContext.Builder clearMetadataContext()
Dynamic metadata associated with the request.
.envoy.config.core.v3.Metadata metadata_context = 11;
public Metadata.Builder getMetadataContextBuilder()
Dynamic metadata associated with the request.
.envoy.config.core.v3.Metadata metadata_context = 11;
public MetadataOrBuilder getMetadataContextOrBuilder()
Dynamic metadata associated with the request.
.envoy.config.core.v3.Metadata metadata_context = 11;
getMetadataContextOrBuilder
in interface AttributeContextOrBuilder
public final AttributeContext.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
public final AttributeContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
Copyright © 2018–2021 The Envoy Project. All rights reserved.