Interface GrpcJsonTranscoder.RequestValidationOptionsOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GrpcJsonTranscoder.RequestValidationOptions,GrpcJsonTranscoder.RequestValidationOptions.Builder
- Enclosing class:
- GrpcJsonTranscoder
public static interface GrpcJsonTranscoder.RequestValidationOptionsOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangetRejectUnknownMethod()By default, a request that cannot be mapped to any specified gRPC :ref:`services <envoy_v3_api_field_extensions.filters.http.grpc_json_transcoder.v3.GrpcJsonTranscoder.services>` will pass-through this filter.booleangetRejectUnknownQueryParameters()By default, a request with query parameters that cannot be mapped to the gRPC request message will pass-through this filter.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getRejectUnknownMethod
boolean getRejectUnknownMethod()
By default, a request that cannot be mapped to any specified gRPC :ref:`services <envoy_v3_api_field_extensions.filters.http.grpc_json_transcoder.v3.GrpcJsonTranscoder.services>` will pass-through this filter. When set to true, the request will be rejected with a ``HTTP 404 Not Found``.
bool reject_unknown_method = 1;
-
getRejectUnknownQueryParameters
boolean getRejectUnknownQueryParameters()
By default, a request with query parameters that cannot be mapped to the gRPC request message will pass-through this filter. When set to true, the request will be rejected with a ``HTTP 400 Bad Request``. The fields :ref:`ignore_unknown_query_parameters <envoy_v3_api_field_extensions.filters.http.grpc_json_transcoder.v3.GrpcJsonTranscoder.ignore_unknown_query_parameters>` and :ref:`ignored_query_parameters <envoy_v3_api_field_extensions.filters.http.grpc_json_transcoder.v3.GrpcJsonTranscoder.ignored_query_parameters>` have priority over this strict validation behavior.
bool reject_unknown_query_parameters = 2;
-
-