Class MethodRestrictions
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.extensions.filters.http.proto_api_scrubber.v3.MethodRestrictions
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,MethodRestrictionsOrBuilder,Serializable
public final class MethodRestrictions
extends com.google.protobuf.GeneratedMessageV3
implements MethodRestrictionsOrBuilder
Contains the method restrictions which include the field level restrictions for the request and response fields.Protobuf type
envoy.extensions.filters.http.proto_api_scrubber.v3.MethodRestrictions- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains the method restrictions which include the field level restrictions for the request and response fields.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanRestrictions that apply to request fields of the method.booleanRestrictions that apply to response fields of the method.booleanstatic MethodRestrictionsstatic final com.google.protobuf.Descriptors.DescriptorOptional restriction that applies to the entire method.Optional restriction that applies to the entire method.com.google.protobuf.Parser<MethodRestrictions>Deprecated.intRestrictions that apply to request fields of the method.Restrictions that apply to request fields of the method.getRequestFieldRestrictionsOrDefault(String key, RestrictionConfig defaultValue) Restrictions that apply to request fields of the method.Restrictions that apply to request fields of the method.Deprecated.intRestrictions that apply to response fields of the method.Restrictions that apply to response fields of the method.getResponseFieldRestrictionsOrDefault(String key, RestrictionConfig defaultValue) Restrictions that apply to response fields of the method.Restrictions that apply to response fields of the method.intinthashCode()booleanOptional restriction that applies to the entire method.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic MethodRestrictions.Builderstatic MethodRestrictions.BuildernewBuilder(MethodRestrictions prototype) protected MethodRestrictions.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static MethodRestrictionsparseDelimitedFrom(InputStream input) static MethodRestrictionsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MethodRestrictionsparseFrom(byte[] data) static MethodRestrictionsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MethodRestrictionsparseFrom(com.google.protobuf.ByteString data) static MethodRestrictionsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MethodRestrictionsparseFrom(com.google.protobuf.CodedInputStream input) static MethodRestrictionsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MethodRestrictionsparseFrom(InputStream input) static MethodRestrictionsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MethodRestrictionsparseFrom(ByteBuffer data) static MethodRestrictionsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<MethodRestrictions>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
REQUEST_FIELD_RESTRICTIONS_FIELD_NUMBER
public static final int REQUEST_FIELD_RESTRICTIONS_FIELD_NUMBER- See Also:
-
RESPONSE_FIELD_RESTRICTIONS_FIELD_NUMBER
public static final int RESPONSE_FIELD_RESTRICTIONS_FIELD_NUMBER- See Also:
-
METHOD_RESTRICTION_FIELD_NUMBER
public static final int METHOD_RESTRICTION_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getRequestFieldRestrictionsCount
public int getRequestFieldRestrictionsCount()Description copied from interface:MethodRestrictionsOrBuilderRestrictions that apply to request fields of the method. Key - field mask like path of the field e.g., foo.bar.baz Value - Restrictions map containing the mapping from restriction name to the restriction values.
map<string, .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig> request_field_restrictions = 1;- Specified by:
getRequestFieldRestrictionsCountin interfaceMethodRestrictionsOrBuilder
-
containsRequestFieldRestrictions
Restrictions that apply to request fields of the method. Key - field mask like path of the field e.g., foo.bar.baz Value - Restrictions map containing the mapping from restriction name to the restriction values.
map<string, .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig> request_field_restrictions = 1;- Specified by:
containsRequestFieldRestrictionsin interfaceMethodRestrictionsOrBuilder
-
getRequestFieldRestrictions
Deprecated.UsegetRequestFieldRestrictionsMap()instead.- Specified by:
getRequestFieldRestrictionsin interfaceMethodRestrictionsOrBuilder
-
getRequestFieldRestrictionsMap
Restrictions that apply to request fields of the method. Key - field mask like path of the field e.g., foo.bar.baz Value - Restrictions map containing the mapping from restriction name to the restriction values.
map<string, .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig> request_field_restrictions = 1;- Specified by:
getRequestFieldRestrictionsMapin interfaceMethodRestrictionsOrBuilder
-
getRequestFieldRestrictionsOrDefault
public RestrictionConfig getRequestFieldRestrictionsOrDefault(String key, RestrictionConfig defaultValue) Restrictions that apply to request fields of the method. Key - field mask like path of the field e.g., foo.bar.baz Value - Restrictions map containing the mapping from restriction name to the restriction values.
map<string, .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig> request_field_restrictions = 1;- Specified by:
getRequestFieldRestrictionsOrDefaultin interfaceMethodRestrictionsOrBuilder
-
getRequestFieldRestrictionsOrThrow
Restrictions that apply to request fields of the method. Key - field mask like path of the field e.g., foo.bar.baz Value - Restrictions map containing the mapping from restriction name to the restriction values.
map<string, .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig> request_field_restrictions = 1;- Specified by:
getRequestFieldRestrictionsOrThrowin interfaceMethodRestrictionsOrBuilder
-
getResponseFieldRestrictionsCount
public int getResponseFieldRestrictionsCount()Description copied from interface:MethodRestrictionsOrBuilderRestrictions that apply to response fields of the method. Key - field mask like path of the field e.g., foo.bar.baz Value - Restrictions map containing the mapping from restriction name to the restriction values.
map<string, .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig> response_field_restrictions = 2;- Specified by:
getResponseFieldRestrictionsCountin interfaceMethodRestrictionsOrBuilder
-
containsResponseFieldRestrictions
Restrictions that apply to response fields of the method. Key - field mask like path of the field e.g., foo.bar.baz Value - Restrictions map containing the mapping from restriction name to the restriction values.
map<string, .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig> response_field_restrictions = 2;- Specified by:
containsResponseFieldRestrictionsin interfaceMethodRestrictionsOrBuilder
-
getResponseFieldRestrictions
Deprecated.UsegetResponseFieldRestrictionsMap()instead.- Specified by:
getResponseFieldRestrictionsin interfaceMethodRestrictionsOrBuilder
-
getResponseFieldRestrictionsMap
Restrictions that apply to response fields of the method. Key - field mask like path of the field e.g., foo.bar.baz Value - Restrictions map containing the mapping from restriction name to the restriction values.
map<string, .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig> response_field_restrictions = 2;- Specified by:
getResponseFieldRestrictionsMapin interfaceMethodRestrictionsOrBuilder
-
getResponseFieldRestrictionsOrDefault
public RestrictionConfig getResponseFieldRestrictionsOrDefault(String key, RestrictionConfig defaultValue) Restrictions that apply to response fields of the method. Key - field mask like path of the field e.g., foo.bar.baz Value - Restrictions map containing the mapping from restriction name to the restriction values.
map<string, .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig> response_field_restrictions = 2;- Specified by:
getResponseFieldRestrictionsOrDefaultin interfaceMethodRestrictionsOrBuilder
-
getResponseFieldRestrictionsOrThrow
Restrictions that apply to response fields of the method. Key - field mask like path of the field e.g., foo.bar.baz Value - Restrictions map containing the mapping from restriction name to the restriction values.
map<string, .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig> response_field_restrictions = 2;- Specified by:
getResponseFieldRestrictionsOrThrowin interfaceMethodRestrictionsOrBuilder
-
hasMethodRestriction
public boolean hasMethodRestriction()Optional restriction that applies to the entire method. If present, this rule takes precedence for the method itself over field-level or message-level rules. The 'matcher' within RestrictionConfig will determine if the method is denied/scrubbed. If the matcher evaluates to true: - The request is **denied**, and further processing is stopped. - The implementation should generate an immediate error response (e.g., an HTTP 403 Forbidden status) and send it to the client.
.envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig method_restriction = 3;- Specified by:
hasMethodRestrictionin interfaceMethodRestrictionsOrBuilder- Returns:
- Whether the methodRestriction field is set.
-
getMethodRestriction
Optional restriction that applies to the entire method. If present, this rule takes precedence for the method itself over field-level or message-level rules. The 'matcher' within RestrictionConfig will determine if the method is denied/scrubbed. If the matcher evaluates to true: - The request is **denied**, and further processing is stopped. - The implementation should generate an immediate error response (e.g., an HTTP 403 Forbidden status) and send it to the client.
.envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig method_restriction = 3;- Specified by:
getMethodRestrictionin interfaceMethodRestrictionsOrBuilder- Returns:
- The methodRestriction.
-
getMethodRestrictionOrBuilder
Optional restriction that applies to the entire method. If present, this rule takes precedence for the method itself over field-level or message-level rules. The 'matcher' within RestrictionConfig will determine if the method is denied/scrubbed. If the matcher evaluates to true: - The request is **denied**, and further processing is stopped. - The implementation should generate an immediate error response (e.g., an HTTP 403 Forbidden status) and send it to the client.
.envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig method_restriction = 3;- Specified by:
getMethodRestrictionOrBuilderin interfaceMethodRestrictionsOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static MethodRestrictions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MethodRestrictions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MethodRestrictions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MethodRestrictions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MethodRestrictions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MethodRestrictions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static MethodRestrictions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static MethodRestrictions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static MethodRestrictions parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static MethodRestrictions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected MethodRestrictions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-