Class GrpcJsonTranscoder.RequestValidationOptions.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcJsonTranscoder.RequestValidationOptions.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcJsonTranscoder.RequestValidationOptions.Builder>
      • getDefaultInstanceForType

        public GrpcJsonTranscoder.RequestValidationOptions getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • buildPartial

        public GrpcJsonTranscoder.RequestValidationOptions buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcJsonTranscoder.RequestValidationOptions.Builder>
      • getRejectUnknownMethod

        public 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;
        Specified by:
        getRejectUnknownMethod in interface GrpcJsonTranscoder.RequestValidationOptionsOrBuilder
        Returns:
        The rejectUnknownMethod.
      • setRejectUnknownMethod

        public GrpcJsonTranscoder.RequestValidationOptions.Builder setRejectUnknownMethod​(boolean value)
         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;
        Parameters:
        value - The rejectUnknownMethod to set.
        Returns:
        This builder for chaining.
      • clearRejectUnknownMethod

        public GrpcJsonTranscoder.RequestValidationOptions.Builder clearRejectUnknownMethod()
         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;
        Returns:
        This builder for chaining.
      • getRejectUnknownQueryParameters

        public 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;
        Specified by:
        getRejectUnknownQueryParameters in interface GrpcJsonTranscoder.RequestValidationOptionsOrBuilder
        Returns:
        The rejectUnknownQueryParameters.
      • setRejectUnknownQueryParameters

        public GrpcJsonTranscoder.RequestValidationOptions.Builder setRejectUnknownQueryParameters​(boolean value)
         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;
        Parameters:
        value - The rejectUnknownQueryParameters to set.
        Returns:
        This builder for chaining.
      • clearRejectUnknownQueryParameters

        public GrpcJsonTranscoder.RequestValidationOptions.Builder clearRejectUnknownQueryParameters()
         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;
        Returns:
        This builder for chaining.
      • getRejectBindingBodyFieldCollisions

        public boolean getRejectBindingBodyFieldCollisions()
         "id: 456" in the body will override "id=123" in the binding.
         If this field is set to true, the request will be rejected if the binding
         value is different from the body value.
         
        bool reject_binding_body_field_collisions = 3;
        Specified by:
        getRejectBindingBodyFieldCollisions in interface GrpcJsonTranscoder.RequestValidationOptionsOrBuilder
        Returns:
        The rejectBindingBodyFieldCollisions.
      • setRejectBindingBodyFieldCollisions

        public GrpcJsonTranscoder.RequestValidationOptions.Builder setRejectBindingBodyFieldCollisions​(boolean value)
         "id: 456" in the body will override "id=123" in the binding.
         If this field is set to true, the request will be rejected if the binding
         value is different from the body value.
         
        bool reject_binding_body_field_collisions = 3;
        Parameters:
        value - The rejectBindingBodyFieldCollisions to set.
        Returns:
        This builder for chaining.
      • clearRejectBindingBodyFieldCollisions

        public GrpcJsonTranscoder.RequestValidationOptions.Builder clearRejectBindingBodyFieldCollisions()
         "id: 456" in the body will override "id=123" in the binding.
         If this field is set to true, the request will be rejected if the binding
         value is different from the body value.
         
        bool reject_binding_body_field_collisions = 3;
        Returns:
        This builder for chaining.