Class Mcp.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Builder>
io.envoyproxy.envoy.extensions.filters.http.mcp.v3.Mcp.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,McpOrBuilder,Cloneable
- Enclosing class:
- Mcp
public static final class Mcp.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Builder>
implements McpOrBuilder
This filter will inspect and get attributes from MCP traffic.Protobuf type
envoy.extensions.filters.http.mcp.v3.Mcp-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()When set to true, the filter will clear the route cache after setting dynamic metadata.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Maximum size of the request body to buffer for JSON-RPC validation.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Parser configuration, this provide the attribute extraction override.Configures how the filter handles non-MCP traffic.clone()booleanWhen set to true, the filter will clear the route cache after setting dynamic metadata.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.UInt32ValueMaximum size of the request body to buffer for JSON-RPC validation.com.google.protobuf.UInt32Value.BuilderMaximum size of the request body to buffer for JSON-RPC validation.com.google.protobuf.UInt32ValueOrBuilderMaximum size of the request body to buffer for JSON-RPC validation.Parser configuration, this provide the attribute extraction override.Parser configuration, this provide the attribute extraction override.Parser configuration, this provide the attribute extraction override.Configures how the filter handles non-MCP traffic.intConfigures how the filter handles non-MCP traffic.booleanMaximum size of the request body to buffer for JSON-RPC validation.booleanParser configuration, this provide the attribute extraction override.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMaxRequestBodySize(com.google.protobuf.UInt32Value value) Maximum size of the request body to buffer for JSON-RPC validation.mergeParserConfig(ParserConfig value) Parser configuration, this provide the attribute extraction override.final Mcp.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setClearRouteCache(boolean value) When set to true, the filter will clear the route cache after setting dynamic metadata.setMaxRequestBodySize(com.google.protobuf.UInt32Value value) Maximum size of the request body to buffer for JSON-RPC validation.setMaxRequestBodySize(com.google.protobuf.UInt32Value.Builder builderForValue) Maximum size of the request body to buffer for JSON-RPC validation.setParserConfig(ParserConfig value) Parser configuration, this provide the attribute extraction override.setParserConfig(ParserConfig.Builder builderForValue) Parser configuration, this provide the attribute extraction override.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTrafficMode(Mcp.TrafficMode value) Configures how the filter handles non-MCP traffic.setTrafficModeValue(int value) Configures how the filter handles non-MCP traffic.final Mcp.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<Mcp.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<Mcp.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<Mcp.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<Mcp.Builder>
-
setField
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Mcp.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Mcp.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Mcp.Builder>
-
setRepeatedField
public Mcp.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<Mcp.Builder>
-
addRepeatedField
public Mcp.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<Mcp.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Mcp.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Mcp.Builder>
-
mergeFrom
public Mcp.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<Mcp.Builder>- Throws:
IOException
-
getTrafficModeValue
public int getTrafficModeValue()Configures how the filter handles non-MCP traffic.
.envoy.extensions.filters.http.mcp.v3.Mcp.TrafficMode traffic_mode = 1 [(.validate.rules) = { ... }- Specified by:
getTrafficModeValuein interfaceMcpOrBuilder- Returns:
- The enum numeric value on the wire for trafficMode.
-
setTrafficModeValue
Configures how the filter handles non-MCP traffic.
.envoy.extensions.filters.http.mcp.v3.Mcp.TrafficMode traffic_mode = 1 [(.validate.rules) = { ... }- Parameters:
value- The enum numeric value on the wire for trafficMode to set.- Returns:
- This builder for chaining.
-
getTrafficMode
Configures how the filter handles non-MCP traffic.
.envoy.extensions.filters.http.mcp.v3.Mcp.TrafficMode traffic_mode = 1 [(.validate.rules) = { ... }- Specified by:
getTrafficModein interfaceMcpOrBuilder- Returns:
- The trafficMode.
-
setTrafficMode
Configures how the filter handles non-MCP traffic.
.envoy.extensions.filters.http.mcp.v3.Mcp.TrafficMode traffic_mode = 1 [(.validate.rules) = { ... }- Parameters:
value- The trafficMode to set.- Returns:
- This builder for chaining.
-
clearTrafficMode
Configures how the filter handles non-MCP traffic.
.envoy.extensions.filters.http.mcp.v3.Mcp.TrafficMode traffic_mode = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
getClearRouteCache
public boolean getClearRouteCache()When set to true, the filter will clear the route cache after setting dynamic metadata. This allows the route to be re-selected based on the MCP metadata (e.g., method, params). Defaults to false.
bool clear_route_cache = 2;- Specified by:
getClearRouteCachein interfaceMcpOrBuilder- Returns:
- The clearRouteCache.
-
setClearRouteCache
When set to true, the filter will clear the route cache after setting dynamic metadata. This allows the route to be re-selected based on the MCP metadata (e.g., method, params). Defaults to false.
bool clear_route_cache = 2;- Parameters:
value- The clearRouteCache to set.- Returns:
- This builder for chaining.
-
clearClearRouteCache
When set to true, the filter will clear the route cache after setting dynamic metadata. This allows the route to be re-selected based on the MCP metadata (e.g., method, params). Defaults to false.
bool clear_route_cache = 2;- Returns:
- This builder for chaining.
-
hasMaxRequestBodySize
public boolean hasMaxRequestBodySize()Maximum size of the request body to buffer for JSON-RPC validation. If the request body exceeds this size, the request is rejected with ``413 Payload Too Large``. This limit applies to both ``REJECT_NO_MCP`` and ``PASS_THROUGH`` modes to prevent unbounded buffering. It defaults to 8KB (8192 bytes) and the maximum allowed value is 10MB (10485760 bytes). Setting it to 0 would disable the limit. It is not recommended to do so in production.
.google.protobuf.UInt32Value max_request_body_size = 3 [(.validate.rules) = { ... }- Specified by:
hasMaxRequestBodySizein interfaceMcpOrBuilder- Returns:
- Whether the maxRequestBodySize field is set.
-
getMaxRequestBodySize
public com.google.protobuf.UInt32Value getMaxRequestBodySize()Maximum size of the request body to buffer for JSON-RPC validation. If the request body exceeds this size, the request is rejected with ``413 Payload Too Large``. This limit applies to both ``REJECT_NO_MCP`` and ``PASS_THROUGH`` modes to prevent unbounded buffering. It defaults to 8KB (8192 bytes) and the maximum allowed value is 10MB (10485760 bytes). Setting it to 0 would disable the limit. It is not recommended to do so in production.
.google.protobuf.UInt32Value max_request_body_size = 3 [(.validate.rules) = { ... }- Specified by:
getMaxRequestBodySizein interfaceMcpOrBuilder- Returns:
- The maxRequestBodySize.
-
setMaxRequestBodySize
Maximum size of the request body to buffer for JSON-RPC validation. If the request body exceeds this size, the request is rejected with ``413 Payload Too Large``. This limit applies to both ``REJECT_NO_MCP`` and ``PASS_THROUGH`` modes to prevent unbounded buffering. It defaults to 8KB (8192 bytes) and the maximum allowed value is 10MB (10485760 bytes). Setting it to 0 would disable the limit. It is not recommended to do so in production.
.google.protobuf.UInt32Value max_request_body_size = 3 [(.validate.rules) = { ... } -
setMaxRequestBodySize
Maximum size of the request body to buffer for JSON-RPC validation. If the request body exceeds this size, the request is rejected with ``413 Payload Too Large``. This limit applies to both ``REJECT_NO_MCP`` and ``PASS_THROUGH`` modes to prevent unbounded buffering. It defaults to 8KB (8192 bytes) and the maximum allowed value is 10MB (10485760 bytes). Setting it to 0 would disable the limit. It is not recommended to do so in production.
.google.protobuf.UInt32Value max_request_body_size = 3 [(.validate.rules) = { ... } -
mergeMaxRequestBodySize
Maximum size of the request body to buffer for JSON-RPC validation. If the request body exceeds this size, the request is rejected with ``413 Payload Too Large``. This limit applies to both ``REJECT_NO_MCP`` and ``PASS_THROUGH`` modes to prevent unbounded buffering. It defaults to 8KB (8192 bytes) and the maximum allowed value is 10MB (10485760 bytes). Setting it to 0 would disable the limit. It is not recommended to do so in production.
.google.protobuf.UInt32Value max_request_body_size = 3 [(.validate.rules) = { ... } -
clearMaxRequestBodySize
Maximum size of the request body to buffer for JSON-RPC validation. If the request body exceeds this size, the request is rejected with ``413 Payload Too Large``. This limit applies to both ``REJECT_NO_MCP`` and ``PASS_THROUGH`` modes to prevent unbounded buffering. It defaults to 8KB (8192 bytes) and the maximum allowed value is 10MB (10485760 bytes). Setting it to 0 would disable the limit. It is not recommended to do so in production.
.google.protobuf.UInt32Value max_request_body_size = 3 [(.validate.rules) = { ... } -
getMaxRequestBodySizeBuilder
public com.google.protobuf.UInt32Value.Builder getMaxRequestBodySizeBuilder()Maximum size of the request body to buffer for JSON-RPC validation. If the request body exceeds this size, the request is rejected with ``413 Payload Too Large``. This limit applies to both ``REJECT_NO_MCP`` and ``PASS_THROUGH`` modes to prevent unbounded buffering. It defaults to 8KB (8192 bytes) and the maximum allowed value is 10MB (10485760 bytes). Setting it to 0 would disable the limit. It is not recommended to do so in production.
.google.protobuf.UInt32Value max_request_body_size = 3 [(.validate.rules) = { ... } -
getMaxRequestBodySizeOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getMaxRequestBodySizeOrBuilder()Maximum size of the request body to buffer for JSON-RPC validation. If the request body exceeds this size, the request is rejected with ``413 Payload Too Large``. This limit applies to both ``REJECT_NO_MCP`` and ``PASS_THROUGH`` modes to prevent unbounded buffering. It defaults to 8KB (8192 bytes) and the maximum allowed value is 10MB (10485760 bytes). Setting it to 0 would disable the limit. It is not recommended to do so in production.
.google.protobuf.UInt32Value max_request_body_size = 3 [(.validate.rules) = { ... }- Specified by:
getMaxRequestBodySizeOrBuilderin interfaceMcpOrBuilder
-
hasParserConfig
public boolean hasParserConfig()Parser configuration, this provide the attribute extraction override.
.envoy.extensions.filters.http.mcp.v3.ParserConfig parser_config = 4;- Specified by:
hasParserConfigin interfaceMcpOrBuilder- Returns:
- Whether the parserConfig field is set.
-
getParserConfig
Parser configuration, this provide the attribute extraction override.
.envoy.extensions.filters.http.mcp.v3.ParserConfig parser_config = 4;- Specified by:
getParserConfigin interfaceMcpOrBuilder- Returns:
- The parserConfig.
-
setParserConfig
Parser configuration, this provide the attribute extraction override.
.envoy.extensions.filters.http.mcp.v3.ParserConfig parser_config = 4; -
setParserConfig
Parser configuration, this provide the attribute extraction override.
.envoy.extensions.filters.http.mcp.v3.ParserConfig parser_config = 4; -
mergeParserConfig
Parser configuration, this provide the attribute extraction override.
.envoy.extensions.filters.http.mcp.v3.ParserConfig parser_config = 4; -
clearParserConfig
Parser configuration, this provide the attribute extraction override.
.envoy.extensions.filters.http.mcp.v3.ParserConfig parser_config = 4; -
getParserConfigBuilder
Parser configuration, this provide the attribute extraction override.
.envoy.extensions.filters.http.mcp.v3.ParserConfig parser_config = 4; -
getParserConfigOrBuilder
Parser configuration, this provide the attribute extraction override.
.envoy.extensions.filters.http.mcp.v3.ParserConfig parser_config = 4;- Specified by:
getParserConfigOrBuilderin interfaceMcpOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Mcp.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Mcp.Builder>
-