Class ParserConfig.MethodConfig.Builder

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

public static final class ParserConfig.MethodConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ParserConfig.MethodConfig.Builder> implements ParserConfig.MethodConfigOrBuilder
 Configuration for a specific MCP method.
 
Protobuf type envoy.extensions.filters.http.mcp.v3.ParserConfig.MethodConfig
  • 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<ParserConfig.MethodConfig.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<ParserConfig.MethodConfig.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<ParserConfig.MethodConfig.Builder>
    • getDefaultInstanceForType

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

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

      public ParserConfig.MethodConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<ParserConfig.MethodConfig.Builder>
    • setField

      public ParserConfig.MethodConfig.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<ParserConfig.MethodConfig.Builder>
    • clearField

      public ParserConfig.MethodConfig.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<ParserConfig.MethodConfig.Builder>
    • clearOneof

      public ParserConfig.MethodConfig.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<ParserConfig.MethodConfig.Builder>
    • setRepeatedField

      public ParserConfig.MethodConfig.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<ParserConfig.MethodConfig.Builder>
    • addRepeatedField

      public ParserConfig.MethodConfig.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<ParserConfig.MethodConfig.Builder>
    • mergeFrom

      public ParserConfig.MethodConfig.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<ParserConfig.MethodConfig.Builder>
    • mergeFrom

    • isInitialized

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

      public ParserConfig.MethodConfig.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<ParserConfig.MethodConfig.Builder>
      Throws:
      IOException
    • 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.
    • setMethod

      public ParserConfig.MethodConfig.Builder setMethod(String value)
       Method name (e.g., "tools/call", "resources/read", "initialize").
       This matches the "method" field in the JSON-RPC request.
       
      string method = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The method to set.
      Returns:
      This builder for chaining.
    • clearMethod

      public ParserConfig.MethodConfig.Builder clearMethod()
       Method name (e.g., "tools/call", "resources/read", "initialize").
       This matches the "method" field in the JSON-RPC request.
       
      string method = 1 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setMethodBytes

      public ParserConfig.MethodConfig.Builder setMethodBytes(com.google.protobuf.ByteString value)
       Method name (e.g., "tools/call", "resources/read", "initialize").
       This matches the "method" field in the JSON-RPC request.
       
      string method = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for method to set.
      Returns:
      This builder for chaining.
    • 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.
    • setGroup

      public ParserConfig.MethodConfig.Builder setGroup(String value)
       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;
      Parameters:
      value - The group to set.
      Returns:
      This builder for chaining.
    • clearGroup

      public ParserConfig.MethodConfig.Builder clearGroup()
       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;
      Returns:
      This builder for chaining.
    • setGroupBytes

      public ParserConfig.MethodConfig.Builder setGroupBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for group to set.
      Returns:
      This builder for chaining.
    • 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
    • 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
    • setExtractionRules

      public ParserConfig.MethodConfig.Builder setExtractionRules(int index, ParserConfig.AttributeExtractionRule value)
       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;
    • setExtractionRules

      public ParserConfig.MethodConfig.Builder setExtractionRules(int index, ParserConfig.AttributeExtractionRule.Builder builderForValue)
       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;
    • addExtractionRules

       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;
    • addExtractionRules

      public ParserConfig.MethodConfig.Builder addExtractionRules(int index, ParserConfig.AttributeExtractionRule value)
       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;
    • addExtractionRules

       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;
    • addExtractionRules

      public ParserConfig.MethodConfig.Builder addExtractionRules(int index, ParserConfig.AttributeExtractionRule.Builder builderForValue)
       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;
    • addAllExtractionRules

      public ParserConfig.MethodConfig.Builder addAllExtractionRules(Iterable<? extends ParserConfig.AttributeExtractionRule> values)
       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;
    • clearExtractionRules

      public ParserConfig.MethodConfig.Builder clearExtractionRules()
       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;
    • removeExtractionRules

      public ParserConfig.MethodConfig.Builder removeExtractionRules(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;
    • getExtractionRulesBuilder

      public ParserConfig.AttributeExtractionRule.Builder getExtractionRulesBuilder(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;
    • 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
    • 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
    • addExtractionRulesBuilder

      public ParserConfig.AttributeExtractionRule.Builder addExtractionRulesBuilder()
       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;
    • addExtractionRulesBuilder

      public ParserConfig.AttributeExtractionRule.Builder addExtractionRulesBuilder(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;
    • getExtractionRulesBuilderList

      public List<ParserConfig.AttributeExtractionRule.Builder> getExtractionRulesBuilderList()
       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;
    • setUnknownFields

      public final ParserConfig.MethodConfig.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<ParserConfig.MethodConfig.Builder>
    • mergeUnknownFields

      public final ParserConfig.MethodConfig.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<ParserConfig.MethodConfig.Builder>