Class ParserConfig.MethodConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.extensions.filters.http.mcp.v3.ParserConfig.MethodConfig
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ParserConfig.MethodConfigOrBuilder, Serializable
Enclosing class:
ParserConfig

public static final class ParserConfig.MethodConfig extends com.google.protobuf.GeneratedMessageV3 implements ParserConfig.MethodConfigOrBuilder
 Configuration for a specific MCP method.
 
Protobuf type envoy.extensions.filters.http.mcp.v3.ParserConfig.MethodConfig
See Also:
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • getMethod

      public String getMethod()
       Method name (e.g., "tools/call", "resources/read", "initialize").
       This matches the "method" field in the JSON-RPC request.
       
      string method = 1 [(.validate.rules) = { ... }
      Specified by:
      getMethod in interface ParserConfig.MethodConfigOrBuilder
      Returns:
      The method.
    • getMethodBytes

      public com.google.protobuf.ByteString getMethodBytes()
       Method name (e.g., "tools/call", "resources/read", "initialize").
       This matches the "method" field in the JSON-RPC request.
       
      string method = 1 [(.validate.rules) = { ... }
      Specified by:
      getMethodBytes in interface ParserConfig.MethodConfigOrBuilder
      Returns:
      The bytes for method.
    • getGroup

      public String getGroup()
       The group/category name to assign to this method (e.g., "tool", "lifecycle").
       This will be emitted to dynamic metadata under the key specified by group_metadata_key.
       If empty, the built-in group classification is used.
       
      string group = 2;
      Specified by:
      getGroup in interface ParserConfig.MethodConfigOrBuilder
      Returns:
      The group.
    • getGroupBytes

      public com.google.protobuf.ByteString getGroupBytes()
       The group/category name to assign to this method (e.g., "tool", "lifecycle").
       This will be emitted to dynamic metadata under the key specified by group_metadata_key.
       If empty, the built-in group classification is used.
       
      string group = 2;
      Specified by:
      getGroupBytes in interface ParserConfig.MethodConfigOrBuilder
      Returns:
      The bytes for group.
    • getExtractionRulesList

      public List<ParserConfig.AttributeExtractionRule> getExtractionRulesList()
       Attributes to extract for this method.
       If empty, only default attributes (jsonrpc, method) are extracted.
       
      repeated .envoy.extensions.filters.http.mcp.v3.ParserConfig.AttributeExtractionRule extraction_rules = 3;
      Specified by:
      getExtractionRulesList in interface ParserConfig.MethodConfigOrBuilder
    • getExtractionRulesOrBuilderList

      public List<? extends ParserConfig.AttributeExtractionRuleOrBuilder> getExtractionRulesOrBuilderList()
       Attributes to extract for this method.
       If empty, only default attributes (jsonrpc, method) are extracted.
       
      repeated .envoy.extensions.filters.http.mcp.v3.ParserConfig.AttributeExtractionRule extraction_rules = 3;
      Specified by:
      getExtractionRulesOrBuilderList in interface ParserConfig.MethodConfigOrBuilder
    • getExtractionRulesCount

      public int getExtractionRulesCount()
       Attributes to extract for this method.
       If empty, only default attributes (jsonrpc, method) are extracted.
       
      repeated .envoy.extensions.filters.http.mcp.v3.ParserConfig.AttributeExtractionRule extraction_rules = 3;
      Specified by:
      getExtractionRulesCount in interface ParserConfig.MethodConfigOrBuilder
    • getExtractionRules

      public ParserConfig.AttributeExtractionRule getExtractionRules(int index)
       Attributes to extract for this method.
       If empty, only default attributes (jsonrpc, method) are extracted.
       
      repeated .envoy.extensions.filters.http.mcp.v3.ParserConfig.AttributeExtractionRule extraction_rules = 3;
      Specified by:
      getExtractionRules in interface ParserConfig.MethodConfigOrBuilder
    • getExtractionRulesOrBuilder

      public ParserConfig.AttributeExtractionRuleOrBuilder getExtractionRulesOrBuilder(int index)
       Attributes to extract for this method.
       If empty, only default attributes (jsonrpc, method) are extracted.
       
      repeated .envoy.extensions.filters.http.mcp.v3.ParserConfig.AttributeExtractionRule extraction_rules = 3;
      Specified by:
      getExtractionRulesOrBuilder in interface ParserConfig.MethodConfigOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ParserConfig.MethodConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ParserConfig.MethodConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ParserConfig.MethodConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ParserConfig.MethodConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ParserConfig.MethodConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ParserConfig.MethodConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ParserConfig.MethodConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ParserConfig.MethodConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ParserConfig.MethodConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ParserConfig.MethodConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ParserConfig.MethodConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ParserConfig.MethodConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ParserConfig.MethodConfig.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ParserConfig.MethodConfig.Builder newBuilder()
    • newBuilder

      public static ParserConfig.MethodConfig.Builder newBuilder(ParserConfig.MethodConfig prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ParserConfig.MethodConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static ParserConfig.MethodConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ParserConfig.MethodConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<ParserConfig.MethodConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public ParserConfig.MethodConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder