Class ExtAuthz.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ExtAuthz.Builder>
-
- io.envoyproxy.envoy.extensions.filters.http.ext_authz.v3.ExtAuthz.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ExtAuthzOrBuilder,Cloneable
- Enclosing class:
- ExtAuthz
public static final class ExtAuthz.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ExtAuthz.Builder> implements ExtAuthzOrBuilder
[#next-free-field: 17]
Protobuf typeenvoy.extensions.filters.http.ext_authz.v3.ExtAuthz
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtAuthz.BuilderaddAllMetadataContextNamespaces(Iterable<String> values)Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service.ExtAuthz.BuilderaddAllTypedMetadataContextNamespaces(Iterable<String> values)Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service.ExtAuthz.BuilderaddMetadataContextNamespaces(String value)Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service.ExtAuthz.BuilderaddMetadataContextNamespacesBytes(com.google.protobuf.ByteString value)Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service.ExtAuthz.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ExtAuthz.BuilderaddTypedMetadataContextNamespaces(String value)Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service.ExtAuthz.BuilderaddTypedMetadataContextNamespacesBytes(com.google.protobuf.ByteString value)Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service.ExtAuthzbuild()ExtAuthzbuildPartial()ExtAuthz.Builderclear()ExtAuthz.BuilderclearBootstrapMetadataLabelsKey()Optional labels that will be passed to :ref:`labels<envoy_v3_api_field_service.auth.v3.AttributeContext.Peer.labels>` in :ref:`destination<envoy_v3_api_field_service.auth.v3.AttributeContext.destination>`.ExtAuthz.BuilderclearClearRouteCache()Clears route cache in order to allow the external authorization service to correctly affect routing decisions.ExtAuthz.BuilderclearDenyAtDisable()Specifies whether to deny the requests, when the filter is disabled.ExtAuthz.BuilderclearFailureModeAllow()Changes filter's behaviour on errors: 1.ExtAuthz.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ExtAuthz.BuilderclearFilterEnabled()Specifies if the filter is enabled.ExtAuthz.BuilderclearFilterEnabledMetadata()Specifies if the filter is enabled with metadata matcher.ExtAuthz.BuilderclearGrpcService()gRPC service configuration (default timeout: 200ms).ExtAuthz.BuilderclearHttpService()HTTP service configuration (default timeout: 200ms).ExtAuthz.BuilderclearIncludePeerCertificate()Specifies if the peer certificate is sent to the external service.ExtAuthz.BuilderclearMetadataContextNamespaces()Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service.ExtAuthz.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ExtAuthz.BuilderclearServices()ExtAuthz.BuilderclearStatPrefix()Optional additional prefix to use when emitting statistics.ExtAuthz.BuilderclearStatusOnError()Sets the HTTP status that is returned to the client when there is a network error between the filter and the authorization server.ExtAuthz.BuilderclearTransportApiVersion()API version for ext_authz transport protocol.ExtAuthz.BuilderclearTypedMetadataContextNamespaces()Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service.ExtAuthz.BuilderclearWithRequestBody()Enables filter to buffer the client request body and send it within the authorization request.ExtAuthz.Builderclone()StringgetBootstrapMetadataLabelsKey()Optional labels that will be passed to :ref:`labels<envoy_v3_api_field_service.auth.v3.AttributeContext.Peer.labels>` in :ref:`destination<envoy_v3_api_field_service.auth.v3.AttributeContext.destination>`.com.google.protobuf.ByteStringgetBootstrapMetadataLabelsKeyBytes()Optional labels that will be passed to :ref:`labels<envoy_v3_api_field_service.auth.v3.AttributeContext.Peer.labels>` in :ref:`destination<envoy_v3_api_field_service.auth.v3.AttributeContext.destination>`.booleangetClearRouteCache()Clears route cache in order to allow the external authorization service to correctly affect routing decisions.ExtAuthzgetDefaultInstanceForType()RuntimeFeatureFlaggetDenyAtDisable()Specifies whether to deny the requests, when the filter is disabled.RuntimeFeatureFlag.BuildergetDenyAtDisableBuilder()Specifies whether to deny the requests, when the filter is disabled.RuntimeFeatureFlagOrBuildergetDenyAtDisableOrBuilder()Specifies whether to deny the requests, when the filter is disabled.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetFailureModeAllow()Changes filter's behaviour on errors: 1.RuntimeFractionalPercentgetFilterEnabled()Specifies if the filter is enabled.RuntimeFractionalPercent.BuildergetFilterEnabledBuilder()Specifies if the filter is enabled.MetadataMatchergetFilterEnabledMetadata()Specifies if the filter is enabled with metadata matcher.MetadataMatcher.BuildergetFilterEnabledMetadataBuilder()Specifies if the filter is enabled with metadata matcher.MetadataMatcherOrBuildergetFilterEnabledMetadataOrBuilder()Specifies if the filter is enabled with metadata matcher.RuntimeFractionalPercentOrBuildergetFilterEnabledOrBuilder()Specifies if the filter is enabled.GrpcServicegetGrpcService()gRPC service configuration (default timeout: 200ms).GrpcService.BuildergetGrpcServiceBuilder()gRPC service configuration (default timeout: 200ms).GrpcServiceOrBuildergetGrpcServiceOrBuilder()gRPC service configuration (default timeout: 200ms).HttpServicegetHttpService()HTTP service configuration (default timeout: 200ms).HttpService.BuildergetHttpServiceBuilder()HTTP service configuration (default timeout: 200ms).HttpServiceOrBuildergetHttpServiceOrBuilder()HTTP service configuration (default timeout: 200ms).booleangetIncludePeerCertificate()Specifies if the peer certificate is sent to the external service.StringgetMetadataContextNamespaces(int index)Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service.com.google.protobuf.ByteStringgetMetadataContextNamespacesBytes(int index)Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service.intgetMetadataContextNamespacesCount()Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service.com.google.protobuf.ProtocolStringListgetMetadataContextNamespacesList()Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service.ExtAuthz.ServicesCasegetServicesCase()StringgetStatPrefix()Optional additional prefix to use when emitting statistics.com.google.protobuf.ByteStringgetStatPrefixBytes()Optional additional prefix to use when emitting statistics.HttpStatusgetStatusOnError()Sets the HTTP status that is returned to the client when there is a network error between the filter and the authorization server.HttpStatus.BuildergetStatusOnErrorBuilder()Sets the HTTP status that is returned to the client when there is a network error between the filter and the authorization server.HttpStatusOrBuildergetStatusOnErrorOrBuilder()Sets the HTTP status that is returned to the client when there is a network error between the filter and the authorization server.ApiVersiongetTransportApiVersion()API version for ext_authz transport protocol.intgetTransportApiVersionValue()API version for ext_authz transport protocol.StringgetTypedMetadataContextNamespaces(int index)Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service.com.google.protobuf.ByteStringgetTypedMetadataContextNamespacesBytes(int index)Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service.intgetTypedMetadataContextNamespacesCount()Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service.com.google.protobuf.ProtocolStringListgetTypedMetadataContextNamespacesList()Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service.BufferSettingsgetWithRequestBody()Enables filter to buffer the client request body and send it within the authorization request.BufferSettings.BuildergetWithRequestBodyBuilder()Enables filter to buffer the client request body and send it within the authorization request.BufferSettingsOrBuildergetWithRequestBodyOrBuilder()Enables filter to buffer the client request body and send it within the authorization request.booleanhasDenyAtDisable()Specifies whether to deny the requests, when the filter is disabled.booleanhasFilterEnabled()Specifies if the filter is enabled.booleanhasFilterEnabledMetadata()Specifies if the filter is enabled with metadata matcher.booleanhasGrpcService()gRPC service configuration (default timeout: 200ms).booleanhasHttpService()HTTP service configuration (default timeout: 200ms).booleanhasStatusOnError()Sets the HTTP status that is returned to the client when there is a network error between the filter and the authorization server.booleanhasWithRequestBody()Enables filter to buffer the client request body and send it within the authorization request.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ExtAuthz.BuildermergeDenyAtDisable(RuntimeFeatureFlag value)Specifies whether to deny the requests, when the filter is disabled.ExtAuthz.BuildermergeFilterEnabled(RuntimeFractionalPercent value)Specifies if the filter is enabled.ExtAuthz.BuildermergeFilterEnabledMetadata(MetadataMatcher value)Specifies if the filter is enabled with metadata matcher.ExtAuthz.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ExtAuthz.BuildermergeFrom(com.google.protobuf.Message other)ExtAuthz.BuildermergeFrom(ExtAuthz other)ExtAuthz.BuildermergeGrpcService(GrpcService value)gRPC service configuration (default timeout: 200ms).ExtAuthz.BuildermergeHttpService(HttpService value)HTTP service configuration (default timeout: 200ms).ExtAuthz.BuildermergeStatusOnError(HttpStatus value)Sets the HTTP status that is returned to the client when there is a network error between the filter and the authorization server.ExtAuthz.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ExtAuthz.BuildermergeWithRequestBody(BufferSettings value)Enables filter to buffer the client request body and send it within the authorization request.ExtAuthz.BuildersetBootstrapMetadataLabelsKey(String value)Optional labels that will be passed to :ref:`labels<envoy_v3_api_field_service.auth.v3.AttributeContext.Peer.labels>` in :ref:`destination<envoy_v3_api_field_service.auth.v3.AttributeContext.destination>`.ExtAuthz.BuildersetBootstrapMetadataLabelsKeyBytes(com.google.protobuf.ByteString value)Optional labels that will be passed to :ref:`labels<envoy_v3_api_field_service.auth.v3.AttributeContext.Peer.labels>` in :ref:`destination<envoy_v3_api_field_service.auth.v3.AttributeContext.destination>`.ExtAuthz.BuildersetClearRouteCache(boolean value)Clears route cache in order to allow the external authorization service to correctly affect routing decisions.ExtAuthz.BuildersetDenyAtDisable(RuntimeFeatureFlag value)Specifies whether to deny the requests, when the filter is disabled.ExtAuthz.BuildersetDenyAtDisable(RuntimeFeatureFlag.Builder builderForValue)Specifies whether to deny the requests, when the filter is disabled.ExtAuthz.BuildersetFailureModeAllow(boolean value)Changes filter's behaviour on errors: 1.ExtAuthz.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ExtAuthz.BuildersetFilterEnabled(RuntimeFractionalPercent value)Specifies if the filter is enabled.ExtAuthz.BuildersetFilterEnabled(RuntimeFractionalPercent.Builder builderForValue)Specifies if the filter is enabled.ExtAuthz.BuildersetFilterEnabledMetadata(MetadataMatcher value)Specifies if the filter is enabled with metadata matcher.ExtAuthz.BuildersetFilterEnabledMetadata(MetadataMatcher.Builder builderForValue)Specifies if the filter is enabled with metadata matcher.ExtAuthz.BuildersetGrpcService(GrpcService value)gRPC service configuration (default timeout: 200ms).ExtAuthz.BuildersetGrpcService(GrpcService.Builder builderForValue)gRPC service configuration (default timeout: 200ms).ExtAuthz.BuildersetHttpService(HttpService value)HTTP service configuration (default timeout: 200ms).ExtAuthz.BuildersetHttpService(HttpService.Builder builderForValue)HTTP service configuration (default timeout: 200ms).ExtAuthz.BuildersetIncludePeerCertificate(boolean value)Specifies if the peer certificate is sent to the external service.ExtAuthz.BuildersetMetadataContextNamespaces(int index, String value)Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service.ExtAuthz.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ExtAuthz.BuildersetStatPrefix(String value)Optional additional prefix to use when emitting statistics.ExtAuthz.BuildersetStatPrefixBytes(com.google.protobuf.ByteString value)Optional additional prefix to use when emitting statistics.ExtAuthz.BuildersetStatusOnError(HttpStatus value)Sets the HTTP status that is returned to the client when there is a network error between the filter and the authorization server.ExtAuthz.BuildersetStatusOnError(HttpStatus.Builder builderForValue)Sets the HTTP status that is returned to the client when there is a network error between the filter and the authorization server.ExtAuthz.BuildersetTransportApiVersion(ApiVersion value)API version for ext_authz transport protocol.ExtAuthz.BuildersetTransportApiVersionValue(int value)API version for ext_authz transport protocol.ExtAuthz.BuildersetTypedMetadataContextNamespaces(int index, String value)Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service.ExtAuthz.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ExtAuthz.BuildersetWithRequestBody(BufferSettings value)Enables filter to buffer the client request body and send it within the authorization request.ExtAuthz.BuildersetWithRequestBody(BufferSettings.Builder builderForValue)Enables filter to buffer the client request body and send it within the authorization request.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ExtAuthz.Builder>
-
clear
public ExtAuthz.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<ExtAuthz.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<ExtAuthz.Builder>
-
getDefaultInstanceForType
public ExtAuthz getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ExtAuthz build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ExtAuthz buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ExtAuthz.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<ExtAuthz.Builder>
-
setField
public ExtAuthz.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<ExtAuthz.Builder>
-
clearField
public ExtAuthz.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExtAuthz.Builder>
-
clearOneof
public ExtAuthz.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ExtAuthz.Builder>
-
setRepeatedField
public ExtAuthz.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<ExtAuthz.Builder>
-
addRepeatedField
public ExtAuthz.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<ExtAuthz.Builder>
-
mergeFrom
public ExtAuthz.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExtAuthz.Builder>
-
mergeFrom
public ExtAuthz.Builder mergeFrom(ExtAuthz other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ExtAuthz.Builder>
-
mergeFrom
public ExtAuthz.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<ExtAuthz.Builder>- Throws:
IOException
-
getServicesCase
public ExtAuthz.ServicesCase getServicesCase()
- Specified by:
getServicesCasein interfaceExtAuthzOrBuilder
-
clearServices
public ExtAuthz.Builder clearServices()
-
hasGrpcService
public boolean hasGrpcService()
gRPC service configuration (default timeout: 200ms).
.envoy.config.core.v3.GrpcService grpc_service = 1;- Specified by:
hasGrpcServicein interfaceExtAuthzOrBuilder- Returns:
- Whether the grpcService field is set.
-
getGrpcService
public GrpcService getGrpcService()
gRPC service configuration (default timeout: 200ms).
.envoy.config.core.v3.GrpcService grpc_service = 1;- Specified by:
getGrpcServicein interfaceExtAuthzOrBuilder- Returns:
- The grpcService.
-
setGrpcService
public ExtAuthz.Builder setGrpcService(GrpcService value)
gRPC service configuration (default timeout: 200ms).
.envoy.config.core.v3.GrpcService grpc_service = 1;
-
setGrpcService
public ExtAuthz.Builder setGrpcService(GrpcService.Builder builderForValue)
gRPC service configuration (default timeout: 200ms).
.envoy.config.core.v3.GrpcService grpc_service = 1;
-
mergeGrpcService
public ExtAuthz.Builder mergeGrpcService(GrpcService value)
gRPC service configuration (default timeout: 200ms).
.envoy.config.core.v3.GrpcService grpc_service = 1;
-
clearGrpcService
public ExtAuthz.Builder clearGrpcService()
gRPC service configuration (default timeout: 200ms).
.envoy.config.core.v3.GrpcService grpc_service = 1;
-
getGrpcServiceBuilder
public GrpcService.Builder getGrpcServiceBuilder()
gRPC service configuration (default timeout: 200ms).
.envoy.config.core.v3.GrpcService grpc_service = 1;
-
getGrpcServiceOrBuilder
public GrpcServiceOrBuilder getGrpcServiceOrBuilder()
gRPC service configuration (default timeout: 200ms).
.envoy.config.core.v3.GrpcService grpc_service = 1;- Specified by:
getGrpcServiceOrBuilderin interfaceExtAuthzOrBuilder
-
hasHttpService
public boolean hasHttpService()
HTTP service configuration (default timeout: 200ms).
.envoy.extensions.filters.http.ext_authz.v3.HttpService http_service = 3;- Specified by:
hasHttpServicein interfaceExtAuthzOrBuilder- Returns:
- Whether the httpService field is set.
-
getHttpService
public HttpService getHttpService()
HTTP service configuration (default timeout: 200ms).
.envoy.extensions.filters.http.ext_authz.v3.HttpService http_service = 3;- Specified by:
getHttpServicein interfaceExtAuthzOrBuilder- Returns:
- The httpService.
-
setHttpService
public ExtAuthz.Builder setHttpService(HttpService value)
HTTP service configuration (default timeout: 200ms).
.envoy.extensions.filters.http.ext_authz.v3.HttpService http_service = 3;
-
setHttpService
public ExtAuthz.Builder setHttpService(HttpService.Builder builderForValue)
HTTP service configuration (default timeout: 200ms).
.envoy.extensions.filters.http.ext_authz.v3.HttpService http_service = 3;
-
mergeHttpService
public ExtAuthz.Builder mergeHttpService(HttpService value)
HTTP service configuration (default timeout: 200ms).
.envoy.extensions.filters.http.ext_authz.v3.HttpService http_service = 3;
-
clearHttpService
public ExtAuthz.Builder clearHttpService()
HTTP service configuration (default timeout: 200ms).
.envoy.extensions.filters.http.ext_authz.v3.HttpService http_service = 3;
-
getHttpServiceBuilder
public HttpService.Builder getHttpServiceBuilder()
HTTP service configuration (default timeout: 200ms).
.envoy.extensions.filters.http.ext_authz.v3.HttpService http_service = 3;
-
getHttpServiceOrBuilder
public HttpServiceOrBuilder getHttpServiceOrBuilder()
HTTP service configuration (default timeout: 200ms).
.envoy.extensions.filters.http.ext_authz.v3.HttpService http_service = 3;- Specified by:
getHttpServiceOrBuilderin interfaceExtAuthzOrBuilder
-
getTransportApiVersionValue
public int getTransportApiVersionValue()
API version for ext_authz transport protocol. This describes the ext_authz gRPC endpoint and version of messages used on the wire.
.envoy.config.core.v3.ApiVersion transport_api_version = 12 [(.validate.rules) = { ... }- Specified by:
getTransportApiVersionValuein interfaceExtAuthzOrBuilder- Returns:
- The enum numeric value on the wire for transportApiVersion.
-
setTransportApiVersionValue
public ExtAuthz.Builder setTransportApiVersionValue(int value)
API version for ext_authz transport protocol. This describes the ext_authz gRPC endpoint and version of messages used on the wire.
.envoy.config.core.v3.ApiVersion transport_api_version = 12 [(.validate.rules) = { ... }- Parameters:
value- The enum numeric value on the wire for transportApiVersion to set.- Returns:
- This builder for chaining.
-
getTransportApiVersion
public ApiVersion getTransportApiVersion()
API version for ext_authz transport protocol. This describes the ext_authz gRPC endpoint and version of messages used on the wire.
.envoy.config.core.v3.ApiVersion transport_api_version = 12 [(.validate.rules) = { ... }- Specified by:
getTransportApiVersionin interfaceExtAuthzOrBuilder- Returns:
- The transportApiVersion.
-
setTransportApiVersion
public ExtAuthz.Builder setTransportApiVersion(ApiVersion value)
API version for ext_authz transport protocol. This describes the ext_authz gRPC endpoint and version of messages used on the wire.
.envoy.config.core.v3.ApiVersion transport_api_version = 12 [(.validate.rules) = { ... }- Parameters:
value- The transportApiVersion to set.- Returns:
- This builder for chaining.
-
clearTransportApiVersion
public ExtAuthz.Builder clearTransportApiVersion()
API version for ext_authz transport protocol. This describes the ext_authz gRPC endpoint and version of messages used on the wire.
.envoy.config.core.v3.ApiVersion transport_api_version = 12 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
getFailureModeAllow
public boolean getFailureModeAllow()
Changes filter's behaviour on errors: 1. When set to true, the filter will ``accept`` client request even if the communication with the authorization service has failed, or if the authorization service has returned a HTTP 5xx error. 2. When set to false, ext-authz will ``reject`` client requests and return a ``Forbidden`` response if the communication with the authorization service has failed, or if the authorization service has returned a HTTP 5xx error. Note that errors can be ``always`` tracked in the :ref:`stats <config_http_filters_ext_authz_stats>`.
bool failure_mode_allow = 2;- Specified by:
getFailureModeAllowin interfaceExtAuthzOrBuilder- Returns:
- The failureModeAllow.
-
setFailureModeAllow
public ExtAuthz.Builder setFailureModeAllow(boolean value)
Changes filter's behaviour on errors: 1. When set to true, the filter will ``accept`` client request even if the communication with the authorization service has failed, or if the authorization service has returned a HTTP 5xx error. 2. When set to false, ext-authz will ``reject`` client requests and return a ``Forbidden`` response if the communication with the authorization service has failed, or if the authorization service has returned a HTTP 5xx error. Note that errors can be ``always`` tracked in the :ref:`stats <config_http_filters_ext_authz_stats>`.
bool failure_mode_allow = 2;- Parameters:
value- The failureModeAllow to set.- Returns:
- This builder for chaining.
-
clearFailureModeAllow
public ExtAuthz.Builder clearFailureModeAllow()
Changes filter's behaviour on errors: 1. When set to true, the filter will ``accept`` client request even if the communication with the authorization service has failed, or if the authorization service has returned a HTTP 5xx error. 2. When set to false, ext-authz will ``reject`` client requests and return a ``Forbidden`` response if the communication with the authorization service has failed, or if the authorization service has returned a HTTP 5xx error. Note that errors can be ``always`` tracked in the :ref:`stats <config_http_filters_ext_authz_stats>`.
bool failure_mode_allow = 2;- Returns:
- This builder for chaining.
-
hasWithRequestBody
public boolean hasWithRequestBody()
Enables filter to buffer the client request body and send it within the authorization request. A ``x-envoy-auth-partial-body: false|true`` metadata header will be added to the authorization request message indicating if the body data is partial.
.envoy.extensions.filters.http.ext_authz.v3.BufferSettings with_request_body = 5;- Specified by:
hasWithRequestBodyin interfaceExtAuthzOrBuilder- Returns:
- Whether the withRequestBody field is set.
-
getWithRequestBody
public BufferSettings getWithRequestBody()
Enables filter to buffer the client request body and send it within the authorization request. A ``x-envoy-auth-partial-body: false|true`` metadata header will be added to the authorization request message indicating if the body data is partial.
.envoy.extensions.filters.http.ext_authz.v3.BufferSettings with_request_body = 5;- Specified by:
getWithRequestBodyin interfaceExtAuthzOrBuilder- Returns:
- The withRequestBody.
-
setWithRequestBody
public ExtAuthz.Builder setWithRequestBody(BufferSettings value)
Enables filter to buffer the client request body and send it within the authorization request. A ``x-envoy-auth-partial-body: false|true`` metadata header will be added to the authorization request message indicating if the body data is partial.
.envoy.extensions.filters.http.ext_authz.v3.BufferSettings with_request_body = 5;
-
setWithRequestBody
public ExtAuthz.Builder setWithRequestBody(BufferSettings.Builder builderForValue)
Enables filter to buffer the client request body and send it within the authorization request. A ``x-envoy-auth-partial-body: false|true`` metadata header will be added to the authorization request message indicating if the body data is partial.
.envoy.extensions.filters.http.ext_authz.v3.BufferSettings with_request_body = 5;
-
mergeWithRequestBody
public ExtAuthz.Builder mergeWithRequestBody(BufferSettings value)
Enables filter to buffer the client request body and send it within the authorization request. A ``x-envoy-auth-partial-body: false|true`` metadata header will be added to the authorization request message indicating if the body data is partial.
.envoy.extensions.filters.http.ext_authz.v3.BufferSettings with_request_body = 5;
-
clearWithRequestBody
public ExtAuthz.Builder clearWithRequestBody()
Enables filter to buffer the client request body and send it within the authorization request. A ``x-envoy-auth-partial-body: false|true`` metadata header will be added to the authorization request message indicating if the body data is partial.
.envoy.extensions.filters.http.ext_authz.v3.BufferSettings with_request_body = 5;
-
getWithRequestBodyBuilder
public BufferSettings.Builder getWithRequestBodyBuilder()
Enables filter to buffer the client request body and send it within the authorization request. A ``x-envoy-auth-partial-body: false|true`` metadata header will be added to the authorization request message indicating if the body data is partial.
.envoy.extensions.filters.http.ext_authz.v3.BufferSettings with_request_body = 5;
-
getWithRequestBodyOrBuilder
public BufferSettingsOrBuilder getWithRequestBodyOrBuilder()
Enables filter to buffer the client request body and send it within the authorization request. A ``x-envoy-auth-partial-body: false|true`` metadata header will be added to the authorization request message indicating if the body data is partial.
.envoy.extensions.filters.http.ext_authz.v3.BufferSettings with_request_body = 5;- Specified by:
getWithRequestBodyOrBuilderin interfaceExtAuthzOrBuilder
-
getClearRouteCache
public boolean getClearRouteCache()
Clears route cache in order to allow the external authorization service to correctly affect routing decisions. Filter clears all cached routes when: 1. The field is set to ``true``. 2. The status returned from the authorization service is a HTTP 200 or gRPC 0. 3. At least one ``authorization response header`` is added to the client request, or is used for altering another client request header.
bool clear_route_cache = 6;- Specified by:
getClearRouteCachein interfaceExtAuthzOrBuilder- Returns:
- The clearRouteCache.
-
setClearRouteCache
public ExtAuthz.Builder setClearRouteCache(boolean value)
Clears route cache in order to allow the external authorization service to correctly affect routing decisions. Filter clears all cached routes when: 1. The field is set to ``true``. 2. The status returned from the authorization service is a HTTP 200 or gRPC 0. 3. At least one ``authorization response header`` is added to the client request, or is used for altering another client request header.
bool clear_route_cache = 6;- Parameters:
value- The clearRouteCache to set.- Returns:
- This builder for chaining.
-
clearClearRouteCache
public ExtAuthz.Builder clearClearRouteCache()
Clears route cache in order to allow the external authorization service to correctly affect routing decisions. Filter clears all cached routes when: 1. The field is set to ``true``. 2. The status returned from the authorization service is a HTTP 200 or gRPC 0. 3. At least one ``authorization response header`` is added to the client request, or is used for altering another client request header.
bool clear_route_cache = 6;- Returns:
- This builder for chaining.
-
hasStatusOnError
public boolean hasStatusOnError()
Sets the HTTP status that is returned to the client when there is a network error between the filter and the authorization server. The default status is HTTP 403 Forbidden.
.envoy.type.v3.HttpStatus status_on_error = 7;- Specified by:
hasStatusOnErrorin interfaceExtAuthzOrBuilder- Returns:
- Whether the statusOnError field is set.
-
getStatusOnError
public HttpStatus getStatusOnError()
Sets the HTTP status that is returned to the client when there is a network error between the filter and the authorization server. The default status is HTTP 403 Forbidden.
.envoy.type.v3.HttpStatus status_on_error = 7;- Specified by:
getStatusOnErrorin interfaceExtAuthzOrBuilder- Returns:
- The statusOnError.
-
setStatusOnError
public ExtAuthz.Builder setStatusOnError(HttpStatus value)
Sets the HTTP status that is returned to the client when there is a network error between the filter and the authorization server. The default status is HTTP 403 Forbidden.
.envoy.type.v3.HttpStatus status_on_error = 7;
-
setStatusOnError
public ExtAuthz.Builder setStatusOnError(HttpStatus.Builder builderForValue)
Sets the HTTP status that is returned to the client when there is a network error between the filter and the authorization server. The default status is HTTP 403 Forbidden.
.envoy.type.v3.HttpStatus status_on_error = 7;
-
mergeStatusOnError
public ExtAuthz.Builder mergeStatusOnError(HttpStatus value)
Sets the HTTP status that is returned to the client when there is a network error between the filter and the authorization server. The default status is HTTP 403 Forbidden.
.envoy.type.v3.HttpStatus status_on_error = 7;
-
clearStatusOnError
public ExtAuthz.Builder clearStatusOnError()
Sets the HTTP status that is returned to the client when there is a network error between the filter and the authorization server. The default status is HTTP 403 Forbidden.
.envoy.type.v3.HttpStatus status_on_error = 7;
-
getStatusOnErrorBuilder
public HttpStatus.Builder getStatusOnErrorBuilder()
Sets the HTTP status that is returned to the client when there is a network error between the filter and the authorization server. The default status is HTTP 403 Forbidden.
.envoy.type.v3.HttpStatus status_on_error = 7;
-
getStatusOnErrorOrBuilder
public HttpStatusOrBuilder getStatusOnErrorOrBuilder()
Sets the HTTP status that is returned to the client when there is a network error between the filter and the authorization server. The default status is HTTP 403 Forbidden.
.envoy.type.v3.HttpStatus status_on_error = 7;- Specified by:
getStatusOnErrorOrBuilderin interfaceExtAuthzOrBuilder
-
getMetadataContextNamespacesList
public com.google.protobuf.ProtocolStringList getMetadataContextNamespacesList()
Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service. :ref:`filter_metadata <envoy_v3_api_field_config.core.v3.Metadata.filter_metadata>` is passed as an opaque ``protobuf::Struct``. For example, if the ``jwt_authn`` filter is used and :ref:`payload_in_metadata <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.JwtProvider.payload_in_metadata>` is set, then the following will pass the jwt payload to the authorization server. .. code-block:: yaml metadata_context_namespaces: - envoy.filters.http.jwt_authnrepeated string metadata_context_namespaces = 8;- Specified by:
getMetadataContextNamespacesListin interfaceExtAuthzOrBuilder- Returns:
- A list containing the metadataContextNamespaces.
-
getMetadataContextNamespacesCount
public int getMetadataContextNamespacesCount()
Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service. :ref:`filter_metadata <envoy_v3_api_field_config.core.v3.Metadata.filter_metadata>` is passed as an opaque ``protobuf::Struct``. For example, if the ``jwt_authn`` filter is used and :ref:`payload_in_metadata <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.JwtProvider.payload_in_metadata>` is set, then the following will pass the jwt payload to the authorization server. .. code-block:: yaml metadata_context_namespaces: - envoy.filters.http.jwt_authnrepeated string metadata_context_namespaces = 8;- Specified by:
getMetadataContextNamespacesCountin interfaceExtAuthzOrBuilder- Returns:
- The count of metadataContextNamespaces.
-
getMetadataContextNamespaces
public String getMetadataContextNamespaces(int index)
Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service. :ref:`filter_metadata <envoy_v3_api_field_config.core.v3.Metadata.filter_metadata>` is passed as an opaque ``protobuf::Struct``. For example, if the ``jwt_authn`` filter is used and :ref:`payload_in_metadata <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.JwtProvider.payload_in_metadata>` is set, then the following will pass the jwt payload to the authorization server. .. code-block:: yaml metadata_context_namespaces: - envoy.filters.http.jwt_authnrepeated string metadata_context_namespaces = 8;- Specified by:
getMetadataContextNamespacesin interfaceExtAuthzOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The metadataContextNamespaces at the given index.
-
getMetadataContextNamespacesBytes
public com.google.protobuf.ByteString getMetadataContextNamespacesBytes(int index)
Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service. :ref:`filter_metadata <envoy_v3_api_field_config.core.v3.Metadata.filter_metadata>` is passed as an opaque ``protobuf::Struct``. For example, if the ``jwt_authn`` filter is used and :ref:`payload_in_metadata <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.JwtProvider.payload_in_metadata>` is set, then the following will pass the jwt payload to the authorization server. .. code-block:: yaml metadata_context_namespaces: - envoy.filters.http.jwt_authnrepeated string metadata_context_namespaces = 8;- Specified by:
getMetadataContextNamespacesBytesin interfaceExtAuthzOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the metadataContextNamespaces at the given index.
-
setMetadataContextNamespaces
public ExtAuthz.Builder setMetadataContextNamespaces(int index, String value)
Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service. :ref:`filter_metadata <envoy_v3_api_field_config.core.v3.Metadata.filter_metadata>` is passed as an opaque ``protobuf::Struct``. For example, if the ``jwt_authn`` filter is used and :ref:`payload_in_metadata <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.JwtProvider.payload_in_metadata>` is set, then the following will pass the jwt payload to the authorization server. .. code-block:: yaml metadata_context_namespaces: - envoy.filters.http.jwt_authnrepeated string metadata_context_namespaces = 8;- Parameters:
index- The index to set the value at.value- The metadataContextNamespaces to set.- Returns:
- This builder for chaining.
-
addMetadataContextNamespaces
public ExtAuthz.Builder addMetadataContextNamespaces(String value)
Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service. :ref:`filter_metadata <envoy_v3_api_field_config.core.v3.Metadata.filter_metadata>` is passed as an opaque ``protobuf::Struct``. For example, if the ``jwt_authn`` filter is used and :ref:`payload_in_metadata <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.JwtProvider.payload_in_metadata>` is set, then the following will pass the jwt payload to the authorization server. .. code-block:: yaml metadata_context_namespaces: - envoy.filters.http.jwt_authnrepeated string metadata_context_namespaces = 8;- Parameters:
value- The metadataContextNamespaces to add.- Returns:
- This builder for chaining.
-
addAllMetadataContextNamespaces
public ExtAuthz.Builder addAllMetadataContextNamespaces(Iterable<String> values)
Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service. :ref:`filter_metadata <envoy_v3_api_field_config.core.v3.Metadata.filter_metadata>` is passed as an opaque ``protobuf::Struct``. For example, if the ``jwt_authn`` filter is used and :ref:`payload_in_metadata <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.JwtProvider.payload_in_metadata>` is set, then the following will pass the jwt payload to the authorization server. .. code-block:: yaml metadata_context_namespaces: - envoy.filters.http.jwt_authnrepeated string metadata_context_namespaces = 8;- Parameters:
values- The metadataContextNamespaces to add.- Returns:
- This builder for chaining.
-
clearMetadataContextNamespaces
public ExtAuthz.Builder clearMetadataContextNamespaces()
Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service. :ref:`filter_metadata <envoy_v3_api_field_config.core.v3.Metadata.filter_metadata>` is passed as an opaque ``protobuf::Struct``. For example, if the ``jwt_authn`` filter is used and :ref:`payload_in_metadata <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.JwtProvider.payload_in_metadata>` is set, then the following will pass the jwt payload to the authorization server. .. code-block:: yaml metadata_context_namespaces: - envoy.filters.http.jwt_authnrepeated string metadata_context_namespaces = 8;- Returns:
- This builder for chaining.
-
addMetadataContextNamespacesBytes
public ExtAuthz.Builder addMetadataContextNamespacesBytes(com.google.protobuf.ByteString value)
Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service. :ref:`filter_metadata <envoy_v3_api_field_config.core.v3.Metadata.filter_metadata>` is passed as an opaque ``protobuf::Struct``. For example, if the ``jwt_authn`` filter is used and :ref:`payload_in_metadata <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.JwtProvider.payload_in_metadata>` is set, then the following will pass the jwt payload to the authorization server. .. code-block:: yaml metadata_context_namespaces: - envoy.filters.http.jwt_authnrepeated string metadata_context_namespaces = 8;- Parameters:
value- The bytes of the metadataContextNamespaces to add.- Returns:
- This builder for chaining.
-
getTypedMetadataContextNamespacesList
public com.google.protobuf.ProtocolStringList getTypedMetadataContextNamespacesList()
Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service. :ref:`typed_filter_metadata <envoy_v3_api_field_config.core.v3.Metadata.typed_filter_metadata>` is passed as an ``protobuf::Any``. It works in a way similar to ``metadata_context_namespaces`` but allows envoy and external authz server to share the protobuf message definition in order to do a safe parsing.
repeated string typed_metadata_context_namespaces = 16;- Specified by:
getTypedMetadataContextNamespacesListin interfaceExtAuthzOrBuilder- Returns:
- A list containing the typedMetadataContextNamespaces.
-
getTypedMetadataContextNamespacesCount
public int getTypedMetadataContextNamespacesCount()
Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service. :ref:`typed_filter_metadata <envoy_v3_api_field_config.core.v3.Metadata.typed_filter_metadata>` is passed as an ``protobuf::Any``. It works in a way similar to ``metadata_context_namespaces`` but allows envoy and external authz server to share the protobuf message definition in order to do a safe parsing.
repeated string typed_metadata_context_namespaces = 16;- Specified by:
getTypedMetadataContextNamespacesCountin interfaceExtAuthzOrBuilder- Returns:
- The count of typedMetadataContextNamespaces.
-
getTypedMetadataContextNamespaces
public String getTypedMetadataContextNamespaces(int index)
Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service. :ref:`typed_filter_metadata <envoy_v3_api_field_config.core.v3.Metadata.typed_filter_metadata>` is passed as an ``protobuf::Any``. It works in a way similar to ``metadata_context_namespaces`` but allows envoy and external authz server to share the protobuf message definition in order to do a safe parsing.
repeated string typed_metadata_context_namespaces = 16;- Specified by:
getTypedMetadataContextNamespacesin interfaceExtAuthzOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The typedMetadataContextNamespaces at the given index.
-
getTypedMetadataContextNamespacesBytes
public com.google.protobuf.ByteString getTypedMetadataContextNamespacesBytes(int index)
Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service. :ref:`typed_filter_metadata <envoy_v3_api_field_config.core.v3.Metadata.typed_filter_metadata>` is passed as an ``protobuf::Any``. It works in a way similar to ``metadata_context_namespaces`` but allows envoy and external authz server to share the protobuf message definition in order to do a safe parsing.
repeated string typed_metadata_context_namespaces = 16;- Specified by:
getTypedMetadataContextNamespacesBytesin interfaceExtAuthzOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the typedMetadataContextNamespaces at the given index.
-
setTypedMetadataContextNamespaces
public ExtAuthz.Builder setTypedMetadataContextNamespaces(int index, String value)
Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service. :ref:`typed_filter_metadata <envoy_v3_api_field_config.core.v3.Metadata.typed_filter_metadata>` is passed as an ``protobuf::Any``. It works in a way similar to ``metadata_context_namespaces`` but allows envoy and external authz server to share the protobuf message definition in order to do a safe parsing.
repeated string typed_metadata_context_namespaces = 16;- Parameters:
index- The index to set the value at.value- The typedMetadataContextNamespaces to set.- Returns:
- This builder for chaining.
-
addTypedMetadataContextNamespaces
public ExtAuthz.Builder addTypedMetadataContextNamespaces(String value)
Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service. :ref:`typed_filter_metadata <envoy_v3_api_field_config.core.v3.Metadata.typed_filter_metadata>` is passed as an ``protobuf::Any``. It works in a way similar to ``metadata_context_namespaces`` but allows envoy and external authz server to share the protobuf message definition in order to do a safe parsing.
repeated string typed_metadata_context_namespaces = 16;- Parameters:
value- The typedMetadataContextNamespaces to add.- Returns:
- This builder for chaining.
-
addAllTypedMetadataContextNamespaces
public ExtAuthz.Builder addAllTypedMetadataContextNamespaces(Iterable<String> values)
Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service. :ref:`typed_filter_metadata <envoy_v3_api_field_config.core.v3.Metadata.typed_filter_metadata>` is passed as an ``protobuf::Any``. It works in a way similar to ``metadata_context_namespaces`` but allows envoy and external authz server to share the protobuf message definition in order to do a safe parsing.
repeated string typed_metadata_context_namespaces = 16;- Parameters:
values- The typedMetadataContextNamespaces to add.- Returns:
- This builder for chaining.
-
clearTypedMetadataContextNamespaces
public ExtAuthz.Builder clearTypedMetadataContextNamespaces()
Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service. :ref:`typed_filter_metadata <envoy_v3_api_field_config.core.v3.Metadata.typed_filter_metadata>` is passed as an ``protobuf::Any``. It works in a way similar to ``metadata_context_namespaces`` but allows envoy and external authz server to share the protobuf message definition in order to do a safe parsing.
repeated string typed_metadata_context_namespaces = 16;- Returns:
- This builder for chaining.
-
addTypedMetadataContextNamespacesBytes
public ExtAuthz.Builder addTypedMetadataContextNamespacesBytes(com.google.protobuf.ByteString value)
Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_authz service. :ref:`typed_filter_metadata <envoy_v3_api_field_config.core.v3.Metadata.typed_filter_metadata>` is passed as an ``protobuf::Any``. It works in a way similar to ``metadata_context_namespaces`` but allows envoy and external authz server to share the protobuf message definition in order to do a safe parsing.
repeated string typed_metadata_context_namespaces = 16;- Parameters:
value- The bytes of the typedMetadataContextNamespaces to add.- Returns:
- This builder for chaining.
-
hasFilterEnabled
public boolean hasFilterEnabled()
Specifies if the filter is enabled. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter. If this field is not specified, the filter will be enabled for all requests.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9;- Specified by:
hasFilterEnabledin interfaceExtAuthzOrBuilder- Returns:
- Whether the filterEnabled field is set.
-
getFilterEnabled
public RuntimeFractionalPercent getFilterEnabled()
Specifies if the filter is enabled. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter. If this field is not specified, the filter will be enabled for all requests.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9;- Specified by:
getFilterEnabledin interfaceExtAuthzOrBuilder- Returns:
- The filterEnabled.
-
setFilterEnabled
public ExtAuthz.Builder setFilterEnabled(RuntimeFractionalPercent value)
Specifies if the filter is enabled. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter. If this field is not specified, the filter will be enabled for all requests.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9;
-
setFilterEnabled
public ExtAuthz.Builder setFilterEnabled(RuntimeFractionalPercent.Builder builderForValue)
Specifies if the filter is enabled. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter. If this field is not specified, the filter will be enabled for all requests.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9;
-
mergeFilterEnabled
public ExtAuthz.Builder mergeFilterEnabled(RuntimeFractionalPercent value)
Specifies if the filter is enabled. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter. If this field is not specified, the filter will be enabled for all requests.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9;
-
clearFilterEnabled
public ExtAuthz.Builder clearFilterEnabled()
Specifies if the filter is enabled. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter. If this field is not specified, the filter will be enabled for all requests.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9;
-
getFilterEnabledBuilder
public RuntimeFractionalPercent.Builder getFilterEnabledBuilder()
Specifies if the filter is enabled. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter. If this field is not specified, the filter will be enabled for all requests.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9;
-
getFilterEnabledOrBuilder
public RuntimeFractionalPercentOrBuilder getFilterEnabledOrBuilder()
Specifies if the filter is enabled. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter. If this field is not specified, the filter will be enabled for all requests.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9;- Specified by:
getFilterEnabledOrBuilderin interfaceExtAuthzOrBuilder
-
hasFilterEnabledMetadata
public boolean hasFilterEnabledMetadata()
Specifies if the filter is enabled with metadata matcher. If this field is not specified, the filter will be enabled for all requests.
.envoy.type.matcher.v3.MetadataMatcher filter_enabled_metadata = 14;- Specified by:
hasFilterEnabledMetadatain interfaceExtAuthzOrBuilder- Returns:
- Whether the filterEnabledMetadata field is set.
-
getFilterEnabledMetadata
public MetadataMatcher getFilterEnabledMetadata()
Specifies if the filter is enabled with metadata matcher. If this field is not specified, the filter will be enabled for all requests.
.envoy.type.matcher.v3.MetadataMatcher filter_enabled_metadata = 14;- Specified by:
getFilterEnabledMetadatain interfaceExtAuthzOrBuilder- Returns:
- The filterEnabledMetadata.
-
setFilterEnabledMetadata
public ExtAuthz.Builder setFilterEnabledMetadata(MetadataMatcher value)
Specifies if the filter is enabled with metadata matcher. If this field is not specified, the filter will be enabled for all requests.
.envoy.type.matcher.v3.MetadataMatcher filter_enabled_metadata = 14;
-
setFilterEnabledMetadata
public ExtAuthz.Builder setFilterEnabledMetadata(MetadataMatcher.Builder builderForValue)
Specifies if the filter is enabled with metadata matcher. If this field is not specified, the filter will be enabled for all requests.
.envoy.type.matcher.v3.MetadataMatcher filter_enabled_metadata = 14;
-
mergeFilterEnabledMetadata
public ExtAuthz.Builder mergeFilterEnabledMetadata(MetadataMatcher value)
Specifies if the filter is enabled with metadata matcher. If this field is not specified, the filter will be enabled for all requests.
.envoy.type.matcher.v3.MetadataMatcher filter_enabled_metadata = 14;
-
clearFilterEnabledMetadata
public ExtAuthz.Builder clearFilterEnabledMetadata()
Specifies if the filter is enabled with metadata matcher. If this field is not specified, the filter will be enabled for all requests.
.envoy.type.matcher.v3.MetadataMatcher filter_enabled_metadata = 14;
-
getFilterEnabledMetadataBuilder
public MetadataMatcher.Builder getFilterEnabledMetadataBuilder()
Specifies if the filter is enabled with metadata matcher. If this field is not specified, the filter will be enabled for all requests.
.envoy.type.matcher.v3.MetadataMatcher filter_enabled_metadata = 14;
-
getFilterEnabledMetadataOrBuilder
public MetadataMatcherOrBuilder getFilterEnabledMetadataOrBuilder()
Specifies if the filter is enabled with metadata matcher. If this field is not specified, the filter will be enabled for all requests.
.envoy.type.matcher.v3.MetadataMatcher filter_enabled_metadata = 14;- Specified by:
getFilterEnabledMetadataOrBuilderin interfaceExtAuthzOrBuilder
-
hasDenyAtDisable
public boolean hasDenyAtDisable()
Specifies whether to deny the requests, when the filter is disabled. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFeatureFlag.runtime_key>` is specified, Envoy will lookup the runtime key to determine whether to deny request for filter protected path at filter disabling. If filter is disabled in typed_per_filter_config for the path, requests will not be denied. If this field is not specified, all requests will be allowed when disabled.
.envoy.config.core.v3.RuntimeFeatureFlag deny_at_disable = 11;- Specified by:
hasDenyAtDisablein interfaceExtAuthzOrBuilder- Returns:
- Whether the denyAtDisable field is set.
-
getDenyAtDisable
public RuntimeFeatureFlag getDenyAtDisable()
Specifies whether to deny the requests, when the filter is disabled. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFeatureFlag.runtime_key>` is specified, Envoy will lookup the runtime key to determine whether to deny request for filter protected path at filter disabling. If filter is disabled in typed_per_filter_config for the path, requests will not be denied. If this field is not specified, all requests will be allowed when disabled.
.envoy.config.core.v3.RuntimeFeatureFlag deny_at_disable = 11;- Specified by:
getDenyAtDisablein interfaceExtAuthzOrBuilder- Returns:
- The denyAtDisable.
-
setDenyAtDisable
public ExtAuthz.Builder setDenyAtDisable(RuntimeFeatureFlag value)
Specifies whether to deny the requests, when the filter is disabled. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFeatureFlag.runtime_key>` is specified, Envoy will lookup the runtime key to determine whether to deny request for filter protected path at filter disabling. If filter is disabled in typed_per_filter_config for the path, requests will not be denied. If this field is not specified, all requests will be allowed when disabled.
.envoy.config.core.v3.RuntimeFeatureFlag deny_at_disable = 11;
-
setDenyAtDisable
public ExtAuthz.Builder setDenyAtDisable(RuntimeFeatureFlag.Builder builderForValue)
Specifies whether to deny the requests, when the filter is disabled. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFeatureFlag.runtime_key>` is specified, Envoy will lookup the runtime key to determine whether to deny request for filter protected path at filter disabling. If filter is disabled in typed_per_filter_config for the path, requests will not be denied. If this field is not specified, all requests will be allowed when disabled.
.envoy.config.core.v3.RuntimeFeatureFlag deny_at_disable = 11;
-
mergeDenyAtDisable
public ExtAuthz.Builder mergeDenyAtDisable(RuntimeFeatureFlag value)
Specifies whether to deny the requests, when the filter is disabled. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFeatureFlag.runtime_key>` is specified, Envoy will lookup the runtime key to determine whether to deny request for filter protected path at filter disabling. If filter is disabled in typed_per_filter_config for the path, requests will not be denied. If this field is not specified, all requests will be allowed when disabled.
.envoy.config.core.v3.RuntimeFeatureFlag deny_at_disable = 11;
-
clearDenyAtDisable
public ExtAuthz.Builder clearDenyAtDisable()
Specifies whether to deny the requests, when the filter is disabled. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFeatureFlag.runtime_key>` is specified, Envoy will lookup the runtime key to determine whether to deny request for filter protected path at filter disabling. If filter is disabled in typed_per_filter_config for the path, requests will not be denied. If this field is not specified, all requests will be allowed when disabled.
.envoy.config.core.v3.RuntimeFeatureFlag deny_at_disable = 11;
-
getDenyAtDisableBuilder
public RuntimeFeatureFlag.Builder getDenyAtDisableBuilder()
Specifies whether to deny the requests, when the filter is disabled. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFeatureFlag.runtime_key>` is specified, Envoy will lookup the runtime key to determine whether to deny request for filter protected path at filter disabling. If filter is disabled in typed_per_filter_config for the path, requests will not be denied. If this field is not specified, all requests will be allowed when disabled.
.envoy.config.core.v3.RuntimeFeatureFlag deny_at_disable = 11;
-
getDenyAtDisableOrBuilder
public RuntimeFeatureFlagOrBuilder getDenyAtDisableOrBuilder()
Specifies whether to deny the requests, when the filter is disabled. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFeatureFlag.runtime_key>` is specified, Envoy will lookup the runtime key to determine whether to deny request for filter protected path at filter disabling. If filter is disabled in typed_per_filter_config for the path, requests will not be denied. If this field is not specified, all requests will be allowed when disabled.
.envoy.config.core.v3.RuntimeFeatureFlag deny_at_disable = 11;- Specified by:
getDenyAtDisableOrBuilderin interfaceExtAuthzOrBuilder
-
getIncludePeerCertificate
public boolean getIncludePeerCertificate()
Specifies if the peer certificate is sent to the external service. When this field is true, Envoy will include the peer X.509 certificate, if available, in the :ref:`certificate<envoy_v3_api_field_service.auth.v3.AttributeContext.Peer.certificate>`.
bool include_peer_certificate = 10;- Specified by:
getIncludePeerCertificatein interfaceExtAuthzOrBuilder- Returns:
- The includePeerCertificate.
-
setIncludePeerCertificate
public ExtAuthz.Builder setIncludePeerCertificate(boolean value)
Specifies if the peer certificate is sent to the external service. When this field is true, Envoy will include the peer X.509 certificate, if available, in the :ref:`certificate<envoy_v3_api_field_service.auth.v3.AttributeContext.Peer.certificate>`.
bool include_peer_certificate = 10;- Parameters:
value- The includePeerCertificate to set.- Returns:
- This builder for chaining.
-
clearIncludePeerCertificate
public ExtAuthz.Builder clearIncludePeerCertificate()
Specifies if the peer certificate is sent to the external service. When this field is true, Envoy will include the peer X.509 certificate, if available, in the :ref:`certificate<envoy_v3_api_field_service.auth.v3.AttributeContext.Peer.certificate>`.
bool include_peer_certificate = 10;- Returns:
- This builder for chaining.
-
getStatPrefix
public String getStatPrefix()
Optional additional prefix to use when emitting statistics. This allows to distinguish emitted statistics between configured ``ext_authz`` filters in an HTTP filter chain. For example: .. code-block:: yaml http_filters: - name: envoy.filters.http.ext_authz typed_config: "@type": type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz stat_prefix: waf # This emits ext_authz.waf.ok, ext_authz.waf.denied, etc. - name: envoy.filters.http.ext_authz typed_config: "@type": type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz stat_prefix: blocker # This emits ext_authz.blocker.ok, ext_authz.blocker.denied, etc.string stat_prefix = 13;- Specified by:
getStatPrefixin interfaceExtAuthzOrBuilder- Returns:
- The statPrefix.
-
getStatPrefixBytes
public com.google.protobuf.ByteString getStatPrefixBytes()
Optional additional prefix to use when emitting statistics. This allows to distinguish emitted statistics between configured ``ext_authz`` filters in an HTTP filter chain. For example: .. code-block:: yaml http_filters: - name: envoy.filters.http.ext_authz typed_config: "@type": type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz stat_prefix: waf # This emits ext_authz.waf.ok, ext_authz.waf.denied, etc. - name: envoy.filters.http.ext_authz typed_config: "@type": type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz stat_prefix: blocker # This emits ext_authz.blocker.ok, ext_authz.blocker.denied, etc.string stat_prefix = 13;- Specified by:
getStatPrefixBytesin interfaceExtAuthzOrBuilder- Returns:
- The bytes for statPrefix.
-
setStatPrefix
public ExtAuthz.Builder setStatPrefix(String value)
Optional additional prefix to use when emitting statistics. This allows to distinguish emitted statistics between configured ``ext_authz`` filters in an HTTP filter chain. For example: .. code-block:: yaml http_filters: - name: envoy.filters.http.ext_authz typed_config: "@type": type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz stat_prefix: waf # This emits ext_authz.waf.ok, ext_authz.waf.denied, etc. - name: envoy.filters.http.ext_authz typed_config: "@type": type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz stat_prefix: blocker # This emits ext_authz.blocker.ok, ext_authz.blocker.denied, etc.string stat_prefix = 13;- Parameters:
value- The statPrefix to set.- Returns:
- This builder for chaining.
-
clearStatPrefix
public ExtAuthz.Builder clearStatPrefix()
Optional additional prefix to use when emitting statistics. This allows to distinguish emitted statistics between configured ``ext_authz`` filters in an HTTP filter chain. For example: .. code-block:: yaml http_filters: - name: envoy.filters.http.ext_authz typed_config: "@type": type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz stat_prefix: waf # This emits ext_authz.waf.ok, ext_authz.waf.denied, etc. - name: envoy.filters.http.ext_authz typed_config: "@type": type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz stat_prefix: blocker # This emits ext_authz.blocker.ok, ext_authz.blocker.denied, etc.string stat_prefix = 13;- Returns:
- This builder for chaining.
-
setStatPrefixBytes
public ExtAuthz.Builder setStatPrefixBytes(com.google.protobuf.ByteString value)
Optional additional prefix to use when emitting statistics. This allows to distinguish emitted statistics between configured ``ext_authz`` filters in an HTTP filter chain. For example: .. code-block:: yaml http_filters: - name: envoy.filters.http.ext_authz typed_config: "@type": type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz stat_prefix: waf # This emits ext_authz.waf.ok, ext_authz.waf.denied, etc. - name: envoy.filters.http.ext_authz typed_config: "@type": type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz stat_prefix: blocker # This emits ext_authz.blocker.ok, ext_authz.blocker.denied, etc.string stat_prefix = 13;- Parameters:
value- The bytes for statPrefix to set.- Returns:
- This builder for chaining.
-
getBootstrapMetadataLabelsKey
public String getBootstrapMetadataLabelsKey()
Optional labels that will be passed to :ref:`labels<envoy_v3_api_field_service.auth.v3.AttributeContext.Peer.labels>` in :ref:`destination<envoy_v3_api_field_service.auth.v3.AttributeContext.destination>`. The labels will be read from :ref:`metadata<envoy_v3_api_msg_config.core.v3.Node>` with the specified key.
string bootstrap_metadata_labels_key = 15;- Specified by:
getBootstrapMetadataLabelsKeyin interfaceExtAuthzOrBuilder- Returns:
- The bootstrapMetadataLabelsKey.
-
getBootstrapMetadataLabelsKeyBytes
public com.google.protobuf.ByteString getBootstrapMetadataLabelsKeyBytes()
Optional labels that will be passed to :ref:`labels<envoy_v3_api_field_service.auth.v3.AttributeContext.Peer.labels>` in :ref:`destination<envoy_v3_api_field_service.auth.v3.AttributeContext.destination>`. The labels will be read from :ref:`metadata<envoy_v3_api_msg_config.core.v3.Node>` with the specified key.
string bootstrap_metadata_labels_key = 15;- Specified by:
getBootstrapMetadataLabelsKeyBytesin interfaceExtAuthzOrBuilder- Returns:
- The bytes for bootstrapMetadataLabelsKey.
-
setBootstrapMetadataLabelsKey
public ExtAuthz.Builder setBootstrapMetadataLabelsKey(String value)
Optional labels that will be passed to :ref:`labels<envoy_v3_api_field_service.auth.v3.AttributeContext.Peer.labels>` in :ref:`destination<envoy_v3_api_field_service.auth.v3.AttributeContext.destination>`. The labels will be read from :ref:`metadata<envoy_v3_api_msg_config.core.v3.Node>` with the specified key.
string bootstrap_metadata_labels_key = 15;- Parameters:
value- The bootstrapMetadataLabelsKey to set.- Returns:
- This builder for chaining.
-
clearBootstrapMetadataLabelsKey
public ExtAuthz.Builder clearBootstrapMetadataLabelsKey()
Optional labels that will be passed to :ref:`labels<envoy_v3_api_field_service.auth.v3.AttributeContext.Peer.labels>` in :ref:`destination<envoy_v3_api_field_service.auth.v3.AttributeContext.destination>`. The labels will be read from :ref:`metadata<envoy_v3_api_msg_config.core.v3.Node>` with the specified key.
string bootstrap_metadata_labels_key = 15;- Returns:
- This builder for chaining.
-
setBootstrapMetadataLabelsKeyBytes
public ExtAuthz.Builder setBootstrapMetadataLabelsKeyBytes(com.google.protobuf.ByteString value)
Optional labels that will be passed to :ref:`labels<envoy_v3_api_field_service.auth.v3.AttributeContext.Peer.labels>` in :ref:`destination<envoy_v3_api_field_service.auth.v3.AttributeContext.destination>`. The labels will be read from :ref:`metadata<envoy_v3_api_msg_config.core.v3.Node>` with the specified key.
string bootstrap_metadata_labels_key = 15;- Parameters:
value- The bytes for bootstrapMetadataLabelsKey to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ExtAuthz.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ExtAuthz.Builder>
-
mergeUnknownFields
public final ExtAuthz.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ExtAuthz.Builder>
-
-