Class MethodRestrictions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<MethodRestrictions.Builder>
io.envoyproxy.envoy.extensions.filters.http.proto_api_scrubber.v3.MethodRestrictions.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,MethodRestrictionsOrBuilder,Cloneable
- Enclosing class:
- MethodRestrictions
public static final class MethodRestrictions.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<MethodRestrictions.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Optional restriction that applies to the entire method.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()booleanRestrictions that apply to request fields of the method.booleanRestrictions that apply to response fields of the method.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional restriction that applies to the entire method.Optional restriction that applies to the entire method.Optional restriction that applies to the entire method.Deprecated.Deprecated.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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(MethodRestrictions other) Optional restriction that applies to the entire method.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Restrictions that apply to request fields of the method.Restrictions that apply to response fields of the method.putRequestFieldRestrictions(String key, RestrictionConfig value) Restrictions that apply to request fields of the method.Restrictions that apply to request fields of the method.putResponseFieldRestrictions(String key, RestrictionConfig value) Restrictions that apply to response fields of the method.Restrictions that apply to response fields of the method.Restrictions that apply to request fields of the method.Restrictions that apply to response fields of the method.Optional restriction that applies to the entire method.setMethodRestriction(RestrictionConfig.Builder builderForValue) Optional restriction that applies to the entire method.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<MethodRestrictions.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<MethodRestrictions.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<MethodRestrictions.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<MethodRestrictions.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<MethodRestrictions.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<MethodRestrictions.Builder>
-
setField
public MethodRestrictions.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<MethodRestrictions.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MethodRestrictions.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<MethodRestrictions.Builder>
-
setRepeatedField
public MethodRestrictions.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<MethodRestrictions.Builder>
-
addRepeatedField
public MethodRestrictions.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<MethodRestrictions.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MethodRestrictions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<MethodRestrictions.Builder>
-
mergeFrom
public MethodRestrictions.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<MethodRestrictions.Builder>- Throws:
IOException
-
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
-
clearRequestFieldRestrictions
-
removeRequestFieldRestrictions
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; -
getMutableRequestFieldRestrictions
Deprecated.Use alternate mutation accessors instead. -
putRequestFieldRestrictions
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; -
putAllRequestFieldRestrictions
public MethodRestrictions.Builder putAllRequestFieldRestrictions(Map<String, RestrictionConfig> values) 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; -
putRequestFieldRestrictionsBuilderIfAbsent
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
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
-
clearResponseFieldRestrictions
-
removeResponseFieldRestrictions
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; -
getMutableResponseFieldRestrictions
Deprecated.Use alternate mutation accessors instead. -
putResponseFieldRestrictions
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; -
putAllResponseFieldRestrictions
public MethodRestrictions.Builder putAllResponseFieldRestrictions(Map<String, RestrictionConfig> values) 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; -
putResponseFieldRestrictionsBuilderIfAbsent
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
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.
-
setMethodRestriction
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; -
setMethodRestriction
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; -
mergeMethodRestriction
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; -
clearMethodRestriction
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; -
getMethodRestrictionBuilder
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; -
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
-
setUnknownFields
public final MethodRestrictions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MethodRestrictions.Builder>
-
mergeUnknownFields
public final MethodRestrictions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MethodRestrictions.Builder>
-