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 Summary
Modifier and TypeMethodDescriptionaddAllMethods(Iterable<? extends ParserConfig.MethodConfig> values) List of rules for classification and extraction.addMethods(int index, ParserConfig.MethodConfig value) List of rules for classification and extraction.addMethods(int index, ParserConfig.MethodConfig.Builder builderForValue) List of rules for classification and extraction.List of rules for classification and extraction.addMethods(ParserConfig.MethodConfig.Builder builderForValue) List of rules for classification and extraction.List of rules for classification and extraction.addMethodsBuilder(int index) List of rules for classification and extraction.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The dynamic metadata key where the group name will be stored.List of rules for classification and extraction.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe dynamic metadata key where the group name will be stored.com.google.protobuf.ByteStringThe dynamic metadata key where the group name will be stored.getMethods(int index) List of rules for classification and extraction.getMethodsBuilder(int index) List of rules for classification and extraction.List of rules for classification and extraction.intList of rules for classification and extraction.List of rules for classification and extraction.getMethodsOrBuilder(int index) List of rules for classification and extraction.List<? extends ParserConfig.MethodConfigOrBuilder>List of rules for classification and extraction.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ParserConfig other) final ParserConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeMethods(int index) List of rules for classification and extraction.setGroupMetadataKey(String value) The dynamic metadata key where the group name will be stored.setGroupMetadataKeyBytes(com.google.protobuf.ByteString value) The dynamic metadata key where the group name will be stored.setMethods(int index, ParserConfig.MethodConfig value) List of rules for classification and extraction.setMethods(int index, ParserConfig.MethodConfig.Builder builderForValue) List of rules for classification and extraction.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final ParserConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ParserConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ParserConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ParserConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ParserConfig.Builder>
-
setField
public ParserConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ParserConfig.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ParserConfig.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ParserConfig.Builder>
-
setRepeatedField
public ParserConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ParserConfig.Builder>
-
addRepeatedField
public ParserConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ParserConfig.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ParserConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ParserConfig.Builder>- Throws:
IOException
-
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:
getMethodsListin interfaceParserConfigOrBuilder
-
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:
getMethodsCountin interfaceParserConfigOrBuilder
-
getMethods
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:
getMethodsin interfaceParserConfigOrBuilder
-
setMethods
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
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.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
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
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
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
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
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:
getMethodsOrBuilderin interfaceParserConfigOrBuilder
-
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:
getMethodsOrBuilderListin interfaceParserConfigOrBuilder
-
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
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
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
The dynamic metadata key where the group name will be stored. If empty, group classification is disabled.
string group_metadata_key = 2;- Specified by:
getGroupMetadataKeyin interfaceParserConfigOrBuilder- 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:
getGroupMetadataKeyBytesin interfaceParserConfigOrBuilder- Returns:
- The bytes for groupMetadataKey.
-
setGroupMetadataKey
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
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ParserConfig.Builder>
-
mergeUnknownFields
public final ParserConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ParserConfig.Builder>
-