java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Builder>
io.envoyproxy.envoy.extensions.filters.http.mcp.v3.Mcp.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, McpOrBuilder, Cloneable
Enclosing class:
Mcp

public static final class Mcp.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Builder> implements McpOrBuilder
 This filter will inspect and get attributes from MCP traffic.
 
Protobuf type envoy.extensions.filters.http.mcp.v3.Mcp
  • Method Details

    • 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<Mcp.Builder>
    • clear

      public Mcp.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Mcp.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<Mcp.Builder>
    • getDefaultInstanceForType

      public Mcp getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Mcp build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Mcp buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Mcp.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Builder>
    • setField

      public Mcp.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Builder>
    • clearField

      public Mcp.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Builder>
    • clearOneof

      public Mcp.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Builder>
    • setRepeatedField

      public Mcp.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Builder>
    • addRepeatedField

      public Mcp.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Builder>
    • mergeFrom

      public Mcp.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Mcp.Builder>
    • mergeFrom

      public Mcp.Builder mergeFrom(Mcp other)
    • isInitialized

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

      public Mcp.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Mcp.Builder>
      Throws:
      IOException
    • getTrafficModeValue

      public int getTrafficModeValue()
       Configures how the filter handles non-MCP traffic.
       
      .envoy.extensions.filters.http.mcp.v3.Mcp.TrafficMode traffic_mode = 1 [(.validate.rules) = { ... }
      Specified by:
      getTrafficModeValue in interface McpOrBuilder
      Returns:
      The enum numeric value on the wire for trafficMode.
    • setTrafficModeValue

      public Mcp.Builder setTrafficModeValue(int value)
       Configures how the filter handles non-MCP traffic.
       
      .envoy.extensions.filters.http.mcp.v3.Mcp.TrafficMode traffic_mode = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The enum numeric value on the wire for trafficMode to set.
      Returns:
      This builder for chaining.
    • getTrafficMode

      public Mcp.TrafficMode getTrafficMode()
       Configures how the filter handles non-MCP traffic.
       
      .envoy.extensions.filters.http.mcp.v3.Mcp.TrafficMode traffic_mode = 1 [(.validate.rules) = { ... }
      Specified by:
      getTrafficMode in interface McpOrBuilder
      Returns:
      The trafficMode.
    • setTrafficMode

      public Mcp.Builder setTrafficMode(Mcp.TrafficMode value)
       Configures how the filter handles non-MCP traffic.
       
      .envoy.extensions.filters.http.mcp.v3.Mcp.TrafficMode traffic_mode = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The trafficMode to set.
      Returns:
      This builder for chaining.
    • clearTrafficMode

      public Mcp.Builder clearTrafficMode()
       Configures how the filter handles non-MCP traffic.
       
      .envoy.extensions.filters.http.mcp.v3.Mcp.TrafficMode traffic_mode = 1 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • getClearRouteCache

      public boolean getClearRouteCache()
       When set to true, the filter will clear the route cache after setting dynamic metadata.
       This allows the route to be re-selected based on the MCP metadata (e.g., method, params).
       Defaults to false.
       
      bool clear_route_cache = 2;
      Specified by:
      getClearRouteCache in interface McpOrBuilder
      Returns:
      The clearRouteCache.
    • setClearRouteCache

      public Mcp.Builder setClearRouteCache(boolean value)
       When set to true, the filter will clear the route cache after setting dynamic metadata.
       This allows the route to be re-selected based on the MCP metadata (e.g., method, params).
       Defaults to false.
       
      bool clear_route_cache = 2;
      Parameters:
      value - The clearRouteCache to set.
      Returns:
      This builder for chaining.
    • clearClearRouteCache

      public Mcp.Builder clearClearRouteCache()
       When set to true, the filter will clear the route cache after setting dynamic metadata.
       This allows the route to be re-selected based on the MCP metadata (e.g., method, params).
       Defaults to false.
       
      bool clear_route_cache = 2;
      Returns:
      This builder for chaining.
    • hasMaxRequestBodySize

      public boolean hasMaxRequestBodySize()
       Maximum size of the request body to buffer for JSON-RPC validation.
       If the request body exceeds this size, the request is rejected with ``413 Payload Too Large``.
       This limit applies to both ``REJECT_NO_MCP`` and ``PASS_THROUGH`` modes to prevent unbounded buffering.
      
       It defaults to 8KB (8192 bytes) and the maximum allowed value is 10MB (10485760 bytes).
      
       Setting it to 0 would disable the limit. It is not recommended to do so in production.
       
      .google.protobuf.UInt32Value max_request_body_size = 3 [(.validate.rules) = { ... }
      Specified by:
      hasMaxRequestBodySize in interface McpOrBuilder
      Returns:
      Whether the maxRequestBodySize field is set.
    • getMaxRequestBodySize

      public com.google.protobuf.UInt32Value getMaxRequestBodySize()
       Maximum size of the request body to buffer for JSON-RPC validation.
       If the request body exceeds this size, the request is rejected with ``413 Payload Too Large``.
       This limit applies to both ``REJECT_NO_MCP`` and ``PASS_THROUGH`` modes to prevent unbounded buffering.
      
       It defaults to 8KB (8192 bytes) and the maximum allowed value is 10MB (10485760 bytes).
      
       Setting it to 0 would disable the limit. It is not recommended to do so in production.
       
      .google.protobuf.UInt32Value max_request_body_size = 3 [(.validate.rules) = { ... }
      Specified by:
      getMaxRequestBodySize in interface McpOrBuilder
      Returns:
      The maxRequestBodySize.
    • setMaxRequestBodySize

      public Mcp.Builder setMaxRequestBodySize(com.google.protobuf.UInt32Value value)
       Maximum size of the request body to buffer for JSON-RPC validation.
       If the request body exceeds this size, the request is rejected with ``413 Payload Too Large``.
       This limit applies to both ``REJECT_NO_MCP`` and ``PASS_THROUGH`` modes to prevent unbounded buffering.
      
       It defaults to 8KB (8192 bytes) and the maximum allowed value is 10MB (10485760 bytes).
      
       Setting it to 0 would disable the limit. It is not recommended to do so in production.
       
      .google.protobuf.UInt32Value max_request_body_size = 3 [(.validate.rules) = { ... }
    • setMaxRequestBodySize

      public Mcp.Builder setMaxRequestBodySize(com.google.protobuf.UInt32Value.Builder builderForValue)
       Maximum size of the request body to buffer for JSON-RPC validation.
       If the request body exceeds this size, the request is rejected with ``413 Payload Too Large``.
       This limit applies to both ``REJECT_NO_MCP`` and ``PASS_THROUGH`` modes to prevent unbounded buffering.
      
       It defaults to 8KB (8192 bytes) and the maximum allowed value is 10MB (10485760 bytes).
      
       Setting it to 0 would disable the limit. It is not recommended to do so in production.
       
      .google.protobuf.UInt32Value max_request_body_size = 3 [(.validate.rules) = { ... }
    • mergeMaxRequestBodySize

      public Mcp.Builder mergeMaxRequestBodySize(com.google.protobuf.UInt32Value value)
       Maximum size of the request body to buffer for JSON-RPC validation.
       If the request body exceeds this size, the request is rejected with ``413 Payload Too Large``.
       This limit applies to both ``REJECT_NO_MCP`` and ``PASS_THROUGH`` modes to prevent unbounded buffering.
      
       It defaults to 8KB (8192 bytes) and the maximum allowed value is 10MB (10485760 bytes).
      
       Setting it to 0 would disable the limit. It is not recommended to do so in production.
       
      .google.protobuf.UInt32Value max_request_body_size = 3 [(.validate.rules) = { ... }
    • clearMaxRequestBodySize

      public Mcp.Builder clearMaxRequestBodySize()
       Maximum size of the request body to buffer for JSON-RPC validation.
       If the request body exceeds this size, the request is rejected with ``413 Payload Too Large``.
       This limit applies to both ``REJECT_NO_MCP`` and ``PASS_THROUGH`` modes to prevent unbounded buffering.
      
       It defaults to 8KB (8192 bytes) and the maximum allowed value is 10MB (10485760 bytes).
      
       Setting it to 0 would disable the limit. It is not recommended to do so in production.
       
      .google.protobuf.UInt32Value max_request_body_size = 3 [(.validate.rules) = { ... }
    • getMaxRequestBodySizeBuilder

      public com.google.protobuf.UInt32Value.Builder getMaxRequestBodySizeBuilder()
       Maximum size of the request body to buffer for JSON-RPC validation.
       If the request body exceeds this size, the request is rejected with ``413 Payload Too Large``.
       This limit applies to both ``REJECT_NO_MCP`` and ``PASS_THROUGH`` modes to prevent unbounded buffering.
      
       It defaults to 8KB (8192 bytes) and the maximum allowed value is 10MB (10485760 bytes).
      
       Setting it to 0 would disable the limit. It is not recommended to do so in production.
       
      .google.protobuf.UInt32Value max_request_body_size = 3 [(.validate.rules) = { ... }
    • getMaxRequestBodySizeOrBuilder

      public com.google.protobuf.UInt32ValueOrBuilder getMaxRequestBodySizeOrBuilder()
       Maximum size of the request body to buffer for JSON-RPC validation.
       If the request body exceeds this size, the request is rejected with ``413 Payload Too Large``.
       This limit applies to both ``REJECT_NO_MCP`` and ``PASS_THROUGH`` modes to prevent unbounded buffering.
      
       It defaults to 8KB (8192 bytes) and the maximum allowed value is 10MB (10485760 bytes).
      
       Setting it to 0 would disable the limit. It is not recommended to do so in production.
       
      .google.protobuf.UInt32Value max_request_body_size = 3 [(.validate.rules) = { ... }
      Specified by:
      getMaxRequestBodySizeOrBuilder in interface McpOrBuilder
    • hasParserConfig

      public boolean hasParserConfig()
       Parser configuration, this provide the attribute extraction override.
       
      .envoy.extensions.filters.http.mcp.v3.ParserConfig parser_config = 4;
      Specified by:
      hasParserConfig in interface McpOrBuilder
      Returns:
      Whether the parserConfig field is set.
    • getParserConfig

      public ParserConfig getParserConfig()
       Parser configuration, this provide the attribute extraction override.
       
      .envoy.extensions.filters.http.mcp.v3.ParserConfig parser_config = 4;
      Specified by:
      getParserConfig in interface McpOrBuilder
      Returns:
      The parserConfig.
    • setParserConfig

      public Mcp.Builder setParserConfig(ParserConfig value)
       Parser configuration, this provide the attribute extraction override.
       
      .envoy.extensions.filters.http.mcp.v3.ParserConfig parser_config = 4;
    • setParserConfig

      public Mcp.Builder setParserConfig(ParserConfig.Builder builderForValue)
       Parser configuration, this provide the attribute extraction override.
       
      .envoy.extensions.filters.http.mcp.v3.ParserConfig parser_config = 4;
    • mergeParserConfig

      public Mcp.Builder mergeParserConfig(ParserConfig value)
       Parser configuration, this provide the attribute extraction override.
       
      .envoy.extensions.filters.http.mcp.v3.ParserConfig parser_config = 4;
    • clearParserConfig

      public Mcp.Builder clearParserConfig()
       Parser configuration, this provide the attribute extraction override.
       
      .envoy.extensions.filters.http.mcp.v3.ParserConfig parser_config = 4;
    • getParserConfigBuilder

      public ParserConfig.Builder getParserConfigBuilder()
       Parser configuration, this provide the attribute extraction override.
       
      .envoy.extensions.filters.http.mcp.v3.ParserConfig parser_config = 4;
    • getParserConfigOrBuilder

      public ParserConfigOrBuilder getParserConfigOrBuilder()
       Parser configuration, this provide the attribute extraction override.
       
      .envoy.extensions.filters.http.mcp.v3.ParserConfig parser_config = 4;
      Specified by:
      getParserConfigOrBuilder in interface McpOrBuilder
    • setUnknownFields

      public final Mcp.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Builder>
    • mergeUnknownFields

      public final Mcp.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Builder>