Class RequirementRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<RequirementRule.Builder>
io.envoyproxy.envoy.extensions.filters.http.jwt_authn.v3.RequirementRule.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RequirementRuleOrBuilder,Cloneable
- Enclosing class:
- RequirementRule
public static final class RequirementRule.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<RequirementRule.Builder>
implements RequirementRuleOrBuilder
This message specifies a Jwt requirement for a specific Route condition.
Example 1:
.. code-block:: yaml
- match:
prefix: /healthz
In above example, "requires" field is empty for /healthz prefix match,
it means that requests matching the path prefix don't require JWT authentication.
Example 2:
.. code-block:: yaml
- match:
prefix: /
requires: { provider_name: provider-A }
In above example, all requests matched the path prefix require jwt authentication
from "provider-A".
Protobuf type envoy.extensions.filters.http.jwt_authn.v3.RequirementRule-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The route matching parameter.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Use requirement_name to specify a Jwt requirement.Specify a Jwt requirement.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetMatch()The route matching parameter.The route matching parameter.The route matching parameter.Use requirement_name to specify a Jwt requirement.com.google.protobuf.ByteStringUse requirement_name to specify a Jwt requirement.Specify a Jwt requirement.Specify a Jwt requirement.Specify a Jwt requirement.booleanhasMatch()The route matching parameter.booleanUse requirement_name to specify a Jwt requirement.booleanSpecify a Jwt requirement.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(RequirementRule other) mergeMatch(RouteMatch value) The route matching parameter.mergeRequires(JwtRequirement value) Specify a Jwt requirement.final RequirementRule.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setMatch(RouteMatch value) The route matching parameter.setMatch(RouteMatch.Builder builderForValue) The route matching parameter.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRequirementName(String value) Use requirement_name to specify a Jwt requirement.setRequirementNameBytes(com.google.protobuf.ByteString value) Use requirement_name to specify a Jwt requirement.setRequires(JwtRequirement value) Specify a Jwt requirement.setRequires(JwtRequirement.Builder builderForValue) Specify a Jwt requirement.final RequirementRule.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RequirementRule.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<RequirementRule.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<RequirementRule.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<RequirementRule.Builder>
-
setField
public RequirementRule.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<RequirementRule.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RequirementRule.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RequirementRule.Builder>
-
setRepeatedField
public RequirementRule.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<RequirementRule.Builder>
-
addRepeatedField
public RequirementRule.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<RequirementRule.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RequirementRule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RequirementRule.Builder>
-
mergeFrom
public RequirementRule.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<RequirementRule.Builder>- Throws:
IOException
-
getRequirementTypeCase
- Specified by:
getRequirementTypeCasein interfaceRequirementRuleOrBuilder
-
clearRequirementType
-
hasMatch
public boolean hasMatch()The route matching parameter. Only when the match is satisfied, the "requires" field will apply. For example: following match will match all requests. .. code-block:: yaml match: prefix: /.envoy.config.route.v3.RouteMatch match = 1 [(.validate.rules) = { ... }- Specified by:
hasMatchin interfaceRequirementRuleOrBuilder- Returns:
- Whether the match field is set.
-
getMatch
The route matching parameter. Only when the match is satisfied, the "requires" field will apply. For example: following match will match all requests. .. code-block:: yaml match: prefix: /.envoy.config.route.v3.RouteMatch match = 1 [(.validate.rules) = { ... }- Specified by:
getMatchin interfaceRequirementRuleOrBuilder- Returns:
- The match.
-
setMatch
The route matching parameter. Only when the match is satisfied, the "requires" field will apply. For example: following match will match all requests. .. code-block:: yaml match: prefix: /.envoy.config.route.v3.RouteMatch match = 1 [(.validate.rules) = { ... } -
setMatch
The route matching parameter. Only when the match is satisfied, the "requires" field will apply. For example: following match will match all requests. .. code-block:: yaml match: prefix: /.envoy.config.route.v3.RouteMatch match = 1 [(.validate.rules) = { ... } -
mergeMatch
The route matching parameter. Only when the match is satisfied, the "requires" field will apply. For example: following match will match all requests. .. code-block:: yaml match: prefix: /.envoy.config.route.v3.RouteMatch match = 1 [(.validate.rules) = { ... } -
clearMatch
The route matching parameter. Only when the match is satisfied, the "requires" field will apply. For example: following match will match all requests. .. code-block:: yaml match: prefix: /.envoy.config.route.v3.RouteMatch match = 1 [(.validate.rules) = { ... } -
getMatchBuilder
The route matching parameter. Only when the match is satisfied, the "requires" field will apply. For example: following match will match all requests. .. code-block:: yaml match: prefix: /.envoy.config.route.v3.RouteMatch match = 1 [(.validate.rules) = { ... } -
getMatchOrBuilder
The route matching parameter. Only when the match is satisfied, the "requires" field will apply. For example: following match will match all requests. .. code-block:: yaml match: prefix: /.envoy.config.route.v3.RouteMatch match = 1 [(.validate.rules) = { ... }- Specified by:
getMatchOrBuilderin interfaceRequirementRuleOrBuilder
-
hasRequires
public boolean hasRequires()Specify a Jwt requirement. Please see detail comment in message JwtRequirement.
.envoy.extensions.filters.http.jwt_authn.v3.JwtRequirement requires = 2;- Specified by:
hasRequiresin interfaceRequirementRuleOrBuilder- Returns:
- Whether the requires field is set.
-
getRequires
Specify a Jwt requirement. Please see detail comment in message JwtRequirement.
.envoy.extensions.filters.http.jwt_authn.v3.JwtRequirement requires = 2;- Specified by:
getRequiresin interfaceRequirementRuleOrBuilder- Returns:
- The requires.
-
setRequires
Specify a Jwt requirement. Please see detail comment in message JwtRequirement.
.envoy.extensions.filters.http.jwt_authn.v3.JwtRequirement requires = 2; -
setRequires
Specify a Jwt requirement. Please see detail comment in message JwtRequirement.
.envoy.extensions.filters.http.jwt_authn.v3.JwtRequirement requires = 2; -
mergeRequires
Specify a Jwt requirement. Please see detail comment in message JwtRequirement.
.envoy.extensions.filters.http.jwt_authn.v3.JwtRequirement requires = 2; -
clearRequires
Specify a Jwt requirement. Please see detail comment in message JwtRequirement.
.envoy.extensions.filters.http.jwt_authn.v3.JwtRequirement requires = 2; -
getRequiresBuilder
Specify a Jwt requirement. Please see detail comment in message JwtRequirement.
.envoy.extensions.filters.http.jwt_authn.v3.JwtRequirement requires = 2; -
getRequiresOrBuilder
Specify a Jwt requirement. Please see detail comment in message JwtRequirement.
.envoy.extensions.filters.http.jwt_authn.v3.JwtRequirement requires = 2;- Specified by:
getRequiresOrBuilderin interfaceRequirementRuleOrBuilder
-
hasRequirementName
public boolean hasRequirementName()Use requirement_name to specify a Jwt requirement. This requirement_name MUST be specified at the :ref:`requirement_map <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.JwtAuthentication.requirement_map>` in ``JwtAuthentication``.
string requirement_name = 3 [(.validate.rules) = { ... }- Specified by:
hasRequirementNamein interfaceRequirementRuleOrBuilder- Returns:
- Whether the requirementName field is set.
-
getRequirementName
Use requirement_name to specify a Jwt requirement. This requirement_name MUST be specified at the :ref:`requirement_map <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.JwtAuthentication.requirement_map>` in ``JwtAuthentication``.
string requirement_name = 3 [(.validate.rules) = { ... }- Specified by:
getRequirementNamein interfaceRequirementRuleOrBuilder- Returns:
- The requirementName.
-
getRequirementNameBytes
public com.google.protobuf.ByteString getRequirementNameBytes()Use requirement_name to specify a Jwt requirement. This requirement_name MUST be specified at the :ref:`requirement_map <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.JwtAuthentication.requirement_map>` in ``JwtAuthentication``.
string requirement_name = 3 [(.validate.rules) = { ... }- Specified by:
getRequirementNameBytesin interfaceRequirementRuleOrBuilder- Returns:
- The bytes for requirementName.
-
setRequirementName
Use requirement_name to specify a Jwt requirement. This requirement_name MUST be specified at the :ref:`requirement_map <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.JwtAuthentication.requirement_map>` in ``JwtAuthentication``.
string requirement_name = 3 [(.validate.rules) = { ... }- Parameters:
value- The requirementName to set.- Returns:
- This builder for chaining.
-
clearRequirementName
Use requirement_name to specify a Jwt requirement. This requirement_name MUST be specified at the :ref:`requirement_map <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.JwtAuthentication.requirement_map>` in ``JwtAuthentication``.
string requirement_name = 3 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setRequirementNameBytes
Use requirement_name to specify a Jwt requirement. This requirement_name MUST be specified at the :ref:`requirement_map <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.JwtAuthentication.requirement_map>` in ``JwtAuthentication``.
string requirement_name = 3 [(.validate.rules) = { ... }- Parameters:
value- The bytes for requirementName to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final RequirementRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RequirementRule.Builder>
-
mergeUnknownFields
public final RequirementRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RequirementRule.Builder>
-