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 Summary
Modifier and TypeMethodDescriptionaddAllExtractionRules(Iterable<? extends ParserConfig.AttributeExtractionRule> values) Attributes to extract for this method.addExtractionRules(int index, ParserConfig.AttributeExtractionRule value) Attributes to extract for this method.addExtractionRules(int index, ParserConfig.AttributeExtractionRule.Builder builderForValue) Attributes to extract for this method.Attributes to extract for this method.addExtractionRules(ParserConfig.AttributeExtractionRule.Builder builderForValue) Attributes to extract for this method.Attributes to extract for this method.addExtractionRulesBuilder(int index) Attributes to extract for this method.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Attributes to extract for this method.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The group/category name to assign to this method (e.g., "tool", "lifecycle").Method name (e.g., "tools/call", "resources/read", "initialize").clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetExtractionRules(int index) Attributes to extract for this method.getExtractionRulesBuilder(int index) Attributes to extract for this method.Attributes to extract for this method.intAttributes to extract for this method.Attributes to extract for this method.getExtractionRulesOrBuilder(int index) Attributes to extract for this method.Attributes to extract for this method.getGroup()The group/category name to assign to this method (e.g., "tool", "lifecycle").com.google.protobuf.ByteStringThe group/category name to assign to this method (e.g., "tool", "lifecycle").Method name (e.g., "tools/call", "resources/read", "initialize").com.google.protobuf.ByteStringMethod name (e.g., "tools/call", "resources/read", "initialize").protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeExtractionRules(int index) Attributes to extract for this method.setExtractionRules(int index, ParserConfig.AttributeExtractionRule value) Attributes to extract for this method.setExtractionRules(int index, ParserConfig.AttributeExtractionRule.Builder builderForValue) Attributes to extract for this method.The group/category name to assign to this method (e.g., "tool", "lifecycle").setGroupBytes(com.google.protobuf.ByteString value) The group/category name to assign to this method (e.g., "tool", "lifecycle").Method name (e.g., "tools/call", "resources/read", "initialize").setMethodBytes(com.google.protobuf.ByteString value) Method name (e.g., "tools/call", "resources/read", "initialize").setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(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.MethodConfig.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.MethodConfig.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.MethodConfig.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.MethodConfig.Builder>
-
setField
public ParserConfig.MethodConfig.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.MethodConfig.Builder>
-
clearField
public ParserConfig.MethodConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ParserConfig.MethodConfig.Builder>
-
clearOneof
public ParserConfig.MethodConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ParserConfig.MethodConfig.Builder>
-
addRepeatedField
public ParserConfig.MethodConfig.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.MethodConfig.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ParserConfig.MethodConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ParserConfig.MethodConfig.Builder>- Throws:
IOException
-
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:
getMethodin interfaceParserConfig.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:
getMethodBytesin interfaceParserConfig.MethodConfigOrBuilder- Returns:
- The bytes for method.
-
setMethod
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
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
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
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:
getGroupin interfaceParserConfig.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:
getGroupBytesin interfaceParserConfig.MethodConfigOrBuilder- Returns:
- The bytes for group.
-
setGroup
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
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
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
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:
getExtractionRulesListin interfaceParserConfig.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:
getExtractionRulesCountin interfaceParserConfig.MethodConfigOrBuilder
-
getExtractionRules
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:
getExtractionRulesin interfaceParserConfig.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
public ParserConfig.MethodConfig.Builder addExtractionRules(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
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
public ParserConfig.MethodConfig.Builder addExtractionRules(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
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
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
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
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
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:
getExtractionRulesOrBuilderin interfaceParserConfig.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:
getExtractionRulesOrBuilderListin interfaceParserConfig.MethodConfigOrBuilder
-
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
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ParserConfig.MethodConfig.Builder>
-
mergeUnknownFields
public final ParserConfig.MethodConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ParserConfig.MethodConfig.Builder>
-