Interface MethodRestrictionsOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
MethodRestrictions,MethodRestrictions.Builder
public interface MethodRestrictionsOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanRestrictions that apply to request fields of the method.booleanRestrictions that apply to response fields of the method.Optional restriction that applies to the entire method.Optional restriction that applies to the entire method.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.booleanOptional restriction that applies to the entire method.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getRequestFieldRestrictionsCount
int getRequestFieldRestrictionsCount()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; -
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; -
getRequestFieldRestrictions
Deprecated.UsegetRequestFieldRestrictionsMap()instead. -
getRequestFieldRestrictionsMap
Map<String,RestrictionConfig> 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; -
getRequestFieldRestrictionsOrDefault
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; -
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; -
getResponseFieldRestrictionsCount
int getResponseFieldRestrictionsCount()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; -
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; -
getResponseFieldRestrictions
Deprecated.UsegetResponseFieldRestrictionsMap()instead. -
getResponseFieldRestrictionsMap
Map<String,RestrictionConfig> 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; -
getResponseFieldRestrictionsOrDefault
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; -
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; -
hasMethodRestriction
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;- Returns:
- Whether the methodRestriction field is set.
-
getMethodRestriction
RestrictionConfig 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;- Returns:
- The methodRestriction.
-
getMethodRestrictionOrBuilder
RestrictionConfigOrBuilder 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;
-