Class ParserConfig.Builder

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

public static final class ParserConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ParserConfig.Builder> implements ParserConfigOrBuilder
 Parser configuration with method-specific rules.
 This configuration allows overriding the default attribute extraction behavior for specific MCP methods.
 
Protobuf type envoy.extensions.filters.http.mcp.v3.ParserConfig
  • 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.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public ParserConfig.Builder mergeFrom(ParserConfig other)
    • isInitialized

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

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

      public List<ParserConfig.MethodConfig> getMethodsList()
       List of rules for classification and extraction.
       Rules are evaluated in order; the first match wins.
       If no rule matches, extraction defaults are used and group falls back to built-in classification.
       Built-in groups: lifecycle, tool, resource, prompt, notification, logging, sampling, completion, unknown.
       
      repeated .envoy.extensions.filters.http.mcp.v3.ParserConfig.MethodConfig methods = 1;
      Specified by:
      getMethodsList in interface ParserConfigOrBuilder
    • getMethodsCount

      public int getMethodsCount()
       List of rules for classification and extraction.
       Rules are evaluated in order; the first match wins.
       If no rule matches, extraction defaults are used and group falls back to built-in classification.
       Built-in groups: lifecycle, tool, resource, prompt, notification, logging, sampling, completion, unknown.
       
      repeated .envoy.extensions.filters.http.mcp.v3.ParserConfig.MethodConfig methods = 1;
      Specified by:
      getMethodsCount in interface ParserConfigOrBuilder
    • getMethods

      public ParserConfig.MethodConfig getMethods(int index)
       List of rules for classification and extraction.
       Rules are evaluated in order; the first match wins.
       If no rule matches, extraction defaults are used and group falls back to built-in classification.
       Built-in groups: lifecycle, tool, resource, prompt, notification, logging, sampling, completion, unknown.
       
      repeated .envoy.extensions.filters.http.mcp.v3.ParserConfig.MethodConfig methods = 1;
      Specified by:
      getMethods in interface ParserConfigOrBuilder
    • setMethods

      public ParserConfig.Builder setMethods(int index, ParserConfig.MethodConfig value)
       List of rules for classification and extraction.
       Rules are evaluated in order; the first match wins.
       If no rule matches, extraction defaults are used and group falls back to built-in classification.
       Built-in groups: lifecycle, tool, resource, prompt, notification, logging, sampling, completion, unknown.
       
      repeated .envoy.extensions.filters.http.mcp.v3.ParserConfig.MethodConfig methods = 1;
    • setMethods

      public ParserConfig.Builder setMethods(int index, ParserConfig.MethodConfig.Builder builderForValue)
       List of rules for classification and extraction.
       Rules are evaluated in order; the first match wins.
       If no rule matches, extraction defaults are used and group falls back to built-in classification.
       Built-in groups: lifecycle, tool, resource, prompt, notification, logging, sampling, completion, unknown.
       
      repeated .envoy.extensions.filters.http.mcp.v3.ParserConfig.MethodConfig methods = 1;
    • addMethods

       List of rules for classification and extraction.
       Rules are evaluated in order; the first match wins.
       If no rule matches, extraction defaults are used and group falls back to built-in classification.
       Built-in groups: lifecycle, tool, resource, prompt, notification, logging, sampling, completion, unknown.
       
      repeated .envoy.extensions.filters.http.mcp.v3.ParserConfig.MethodConfig methods = 1;
    • addMethods

      public ParserConfig.Builder addMethods(int index, ParserConfig.MethodConfig value)
       List of rules for classification and extraction.
       Rules are evaluated in order; the first match wins.
       If no rule matches, extraction defaults are used and group falls back to built-in classification.
       Built-in groups: lifecycle, tool, resource, prompt, notification, logging, sampling, completion, unknown.
       
      repeated .envoy.extensions.filters.http.mcp.v3.ParserConfig.MethodConfig methods = 1;
    • addMethods

      public ParserConfig.Builder addMethods(ParserConfig.MethodConfig.Builder builderForValue)
       List of rules for classification and extraction.
       Rules are evaluated in order; the first match wins.
       If no rule matches, extraction defaults are used and group falls back to built-in classification.
       Built-in groups: lifecycle, tool, resource, prompt, notification, logging, sampling, completion, unknown.
       
      repeated .envoy.extensions.filters.http.mcp.v3.ParserConfig.MethodConfig methods = 1;
    • addMethods

      public ParserConfig.Builder addMethods(int index, ParserConfig.MethodConfig.Builder builderForValue)
       List of rules for classification and extraction.
       Rules are evaluated in order; the first match wins.
       If no rule matches, extraction defaults are used and group falls back to built-in classification.
       Built-in groups: lifecycle, tool, resource, prompt, notification, logging, sampling, completion, unknown.
       
      repeated .envoy.extensions.filters.http.mcp.v3.ParserConfig.MethodConfig methods = 1;
    • addAllMethods

      public ParserConfig.Builder addAllMethods(Iterable<? extends ParserConfig.MethodConfig> values)
       List of rules for classification and extraction.
       Rules are evaluated in order; the first match wins.
       If no rule matches, extraction defaults are used and group falls back to built-in classification.
       Built-in groups: lifecycle, tool, resource, prompt, notification, logging, sampling, completion, unknown.
       
      repeated .envoy.extensions.filters.http.mcp.v3.ParserConfig.MethodConfig methods = 1;
    • clearMethods

      public ParserConfig.Builder clearMethods()
       List of rules for classification and extraction.
       Rules are evaluated in order; the first match wins.
       If no rule matches, extraction defaults are used and group falls back to built-in classification.
       Built-in groups: lifecycle, tool, resource, prompt, notification, logging, sampling, completion, unknown.
       
      repeated .envoy.extensions.filters.http.mcp.v3.ParserConfig.MethodConfig methods = 1;
    • removeMethods

      public ParserConfig.Builder removeMethods(int index)
       List of rules for classification and extraction.
       Rules are evaluated in order; the first match wins.
       If no rule matches, extraction defaults are used and group falls back to built-in classification.
       Built-in groups: lifecycle, tool, resource, prompt, notification, logging, sampling, completion, unknown.
       
      repeated .envoy.extensions.filters.http.mcp.v3.ParserConfig.MethodConfig methods = 1;
    • getMethodsBuilder

      public ParserConfig.MethodConfig.Builder getMethodsBuilder(int index)
       List of rules for classification and extraction.
       Rules are evaluated in order; the first match wins.
       If no rule matches, extraction defaults are used and group falls back to built-in classification.
       Built-in groups: lifecycle, tool, resource, prompt, notification, logging, sampling, completion, unknown.
       
      repeated .envoy.extensions.filters.http.mcp.v3.ParserConfig.MethodConfig methods = 1;
    • getMethodsOrBuilder

      public ParserConfig.MethodConfigOrBuilder getMethodsOrBuilder(int index)
       List of rules for classification and extraction.
       Rules are evaluated in order; the first match wins.
       If no rule matches, extraction defaults are used and group falls back to built-in classification.
       Built-in groups: lifecycle, tool, resource, prompt, notification, logging, sampling, completion, unknown.
       
      repeated .envoy.extensions.filters.http.mcp.v3.ParserConfig.MethodConfig methods = 1;
      Specified by:
      getMethodsOrBuilder in interface ParserConfigOrBuilder
    • getMethodsOrBuilderList

      public List<? extends ParserConfig.MethodConfigOrBuilder> getMethodsOrBuilderList()
       List of rules for classification and extraction.
       Rules are evaluated in order; the first match wins.
       If no rule matches, extraction defaults are used and group falls back to built-in classification.
       Built-in groups: lifecycle, tool, resource, prompt, notification, logging, sampling, completion, unknown.
       
      repeated .envoy.extensions.filters.http.mcp.v3.ParserConfig.MethodConfig methods = 1;
      Specified by:
      getMethodsOrBuilderList in interface ParserConfigOrBuilder
    • addMethodsBuilder

      public ParserConfig.MethodConfig.Builder addMethodsBuilder()
       List of rules for classification and extraction.
       Rules are evaluated in order; the first match wins.
       If no rule matches, extraction defaults are used and group falls back to built-in classification.
       Built-in groups: lifecycle, tool, resource, prompt, notification, logging, sampling, completion, unknown.
       
      repeated .envoy.extensions.filters.http.mcp.v3.ParserConfig.MethodConfig methods = 1;
    • addMethodsBuilder

      public ParserConfig.MethodConfig.Builder addMethodsBuilder(int index)
       List of rules for classification and extraction.
       Rules are evaluated in order; the first match wins.
       If no rule matches, extraction defaults are used and group falls back to built-in classification.
       Built-in groups: lifecycle, tool, resource, prompt, notification, logging, sampling, completion, unknown.
       
      repeated .envoy.extensions.filters.http.mcp.v3.ParserConfig.MethodConfig methods = 1;
    • getMethodsBuilderList

      public List<ParserConfig.MethodConfig.Builder> getMethodsBuilderList()
       List of rules for classification and extraction.
       Rules are evaluated in order; the first match wins.
       If no rule matches, extraction defaults are used and group falls back to built-in classification.
       Built-in groups: lifecycle, tool, resource, prompt, notification, logging, sampling, completion, unknown.
       
      repeated .envoy.extensions.filters.http.mcp.v3.ParserConfig.MethodConfig methods = 1;
    • getGroupMetadataKey

      public String getGroupMetadataKey()
       The dynamic metadata key where the group name will be stored.
       If empty, group classification is disabled.
       
      string group_metadata_key = 2;
      Specified by:
      getGroupMetadataKey in interface ParserConfigOrBuilder
      Returns:
      The groupMetadataKey.
    • getGroupMetadataKeyBytes

      public com.google.protobuf.ByteString getGroupMetadataKeyBytes()
       The dynamic metadata key where the group name will be stored.
       If empty, group classification is disabled.
       
      string group_metadata_key = 2;
      Specified by:
      getGroupMetadataKeyBytes in interface ParserConfigOrBuilder
      Returns:
      The bytes for groupMetadataKey.
    • setGroupMetadataKey

      public ParserConfig.Builder setGroupMetadataKey(String value)
       The dynamic metadata key where the group name will be stored.
       If empty, group classification is disabled.
       
      string group_metadata_key = 2;
      Parameters:
      value - The groupMetadataKey to set.
      Returns:
      This builder for chaining.
    • clearGroupMetadataKey

      public ParserConfig.Builder clearGroupMetadataKey()
       The dynamic metadata key where the group name will be stored.
       If empty, group classification is disabled.
       
      string group_metadata_key = 2;
      Returns:
      This builder for chaining.
    • setGroupMetadataKeyBytes

      public ParserConfig.Builder setGroupMetadataKeyBytes(com.google.protobuf.ByteString value)
       The dynamic metadata key where the group name will be stored.
       If empty, group classification is disabled.
       
      string group_metadata_key = 2;
      Parameters:
      value - The bytes for groupMetadataKey to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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