Class AttributeContext.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
io.envoyproxy.envoy.service.auth.v2.AttributeContext.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,AttributeContextOrBuilder,Cloneable
- Enclosing class:
- AttributeContext
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 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: 12]Protobuf type
envoy.service.auth.v2.AttributeContext-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The destination of a network activity, such as accepting a TCP connection.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Dynamic metadata associated with the request.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Represents a network request, such as an HTTP request.The source of a network activity, such as starting a TCP connection.clone()booleanThis is analogous to http_request.headers, however these contents will not be sent to the upstream server.Deprecated.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 final com.google.protobuf.Descriptors.Descriptorcom.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.The destination of a network activity, such as accepting a TCP connection.Dynamic metadata associated with the request.Dynamic metadata associated with the request.Dynamic metadata associated with the request.Deprecated.Represents a network request, such as an HTTP request.Represents a network request, such as an HTTP request.Represents a network request, such as an HTTP request.The source of a network activity, such as starting a TCP connection.The source of a network activity, such as starting a TCP connection.The source of a network activity, such as starting a TCP connection.booleanThe destination of a network activity, such as accepting a TCP connection.booleanDynamic metadata associated with the request.booleanRepresents a network request, such as an HTTP request.booleanThe source of a network activity, such as starting a TCP connection.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanThe destination of a network activity, such as accepting a TCP connection.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(AttributeContext other) mergeMetadataContext(Metadata value) Dynamic metadata associated with the request.Represents a network request, such as an HTTP request.mergeSource(AttributeContext.Peer value) The source of a network activity, such as starting a TCP connection.final AttributeContext.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) putAllContextExtensions(Map<String, String> values) This is analogous to http_request.headers, however these contents will not be sent to the upstream server.putContextExtensions(String key, String value) 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.The destination of a network activity, such as accepting a TCP connection.setDestination(AttributeContext.Peer.Builder builderForValue) The destination of a network activity, such as accepting a TCP connection.setMetadataContext(Metadata value) Dynamic metadata associated with the request.setMetadataContext(Metadata.Builder builderForValue) Dynamic metadata associated with the request.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Represents a network request, such as an HTTP request.setRequest(AttributeContext.Request.Builder builderForValue) Represents a network request, such as an HTTP request.setSource(AttributeContext.Peer value) The source of a network activity, such as starting a TCP connection.setSource(AttributeContext.Peer.Builder builderForValue) The source of a network activity, such as starting a TCP connection.final AttributeContext.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<AttributeContext.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
-
setField
public AttributeContext.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
-
setRepeatedField
public AttributeContext.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
-
addRepeatedField
public AttributeContext.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttributeContext.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
-
mergeFrom
public AttributeContext.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttributeContext.Builder>- Throws:
IOException
-
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.v2.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.v2.AttributeContext.Peer source = 1;- Specified by:
getSourcein interfaceAttributeContextOrBuilder- Returns:
- The source.
-
setSource
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.v2.AttributeContext.Peer source = 1; -
setSource
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.v2.AttributeContext.Peer source = 1; -
mergeSource
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.v2.AttributeContext.Peer source = 1; -
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.v2.AttributeContext.Peer source = 1; -
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.v2.AttributeContext.Peer source = 1; -
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.v2.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.v2.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.v2.AttributeContext.Peer destination = 2;- Specified by:
getDestinationin interfaceAttributeContextOrBuilder- Returns:
- The destination.
-
setDestination
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.v2.AttributeContext.Peer destination = 2; -
setDestination
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.v2.AttributeContext.Peer destination = 2; -
mergeDestination
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.v2.AttributeContext.Peer destination = 2; -
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.v2.AttributeContext.Peer destination = 2; -
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.v2.AttributeContext.Peer destination = 2; -
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.v2.AttributeContext.Peer destination = 2;- Specified by:
getDestinationOrBuilderin interfaceAttributeContextOrBuilder
-
hasRequest
public boolean hasRequest()Represents a network request, such as an HTTP request.
.envoy.service.auth.v2.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.v2.AttributeContext.Request request = 4;- Specified by:
getRequestin interfaceAttributeContextOrBuilder- Returns:
- The request.
-
setRequest
Represents a network request, such as an HTTP request.
.envoy.service.auth.v2.AttributeContext.Request request = 4; -
setRequest
Represents a network request, such as an HTTP request.
.envoy.service.auth.v2.AttributeContext.Request request = 4; -
mergeRequest
Represents a network request, such as an HTTP request.
.envoy.service.auth.v2.AttributeContext.Request request = 4; -
clearRequest
Represents a network request, such as an HTTP request.
.envoy.service.auth.v2.AttributeContext.Request request = 4; -
getRequestBuilder
Represents a network request, such as an HTTP request.
.envoy.service.auth.v2.AttributeContext.Request request = 4; -
getRequestOrBuilder
Represents a network request, such as an HTTP request.
.envoy.service.auth.v2.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
-
clearContextExtensions
-
removeContextExtensions
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; -
getMutableContextExtensions
Deprecated.Use alternate mutation accessors instead. -
putContextExtensions
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; -
putAllContextExtensions
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; -
hasMetadataContext
public boolean hasMetadataContext()Dynamic metadata associated with the request.
.envoy.api.v2.core.Metadata metadata_context = 11;- Specified by:
hasMetadataContextin interfaceAttributeContextOrBuilder- Returns:
- Whether the metadataContext field is set.
-
getMetadataContext
Dynamic metadata associated with the request.
.envoy.api.v2.core.Metadata metadata_context = 11;- Specified by:
getMetadataContextin interfaceAttributeContextOrBuilder- Returns:
- The metadataContext.
-
setMetadataContext
Dynamic metadata associated with the request.
.envoy.api.v2.core.Metadata metadata_context = 11; -
setMetadataContext
Dynamic metadata associated with the request.
.envoy.api.v2.core.Metadata metadata_context = 11; -
mergeMetadataContext
Dynamic metadata associated with the request.
.envoy.api.v2.core.Metadata metadata_context = 11; -
clearMetadataContext
Dynamic metadata associated with the request.
.envoy.api.v2.core.Metadata metadata_context = 11; -
getMetadataContextBuilder
Dynamic metadata associated with the request.
.envoy.api.v2.core.Metadata metadata_context = 11; -
getMetadataContextOrBuilder
Dynamic metadata associated with the request.
.envoy.api.v2.core.Metadata metadata_context = 11;- Specified by:
getMetadataContextOrBuilderin interfaceAttributeContextOrBuilder
-
setUnknownFields
public final AttributeContext.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
-
mergeUnknownFields
public final AttributeContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Builder>
-