Interface McpRouter.McpClusterOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
McpRouter.McpCluster, McpRouter.McpCluster.Builder
Enclosing class:
McpRouter

public static interface McpRouter.McpClusterOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Cluster name to route requests to.
    com.google.protobuf.ByteString
    Cluster name to route requests to.
    Indicates that during forwarding, the host header will be swapped with this value.
    com.google.protobuf.ByteString
    Indicates that during forwarding, the host header will be swapped with this value.
    Path to use for MCP requests.
    com.google.protobuf.ByteString
    Path to use for MCP requests.
    com.google.protobuf.Duration
    Request timeout.
    com.google.protobuf.DurationOrBuilder
    Request timeout.
    boolean
    Request timeout.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getCluster

      String getCluster()
       Cluster name to route requests to.
       
      string cluster = 1 [(.validate.rules) = { ... }
      Returns:
      The cluster.
    • getClusterBytes

      com.google.protobuf.ByteString getClusterBytes()
       Cluster name to route requests to.
       
      string cluster = 1 [(.validate.rules) = { ... }
      Returns:
      The bytes for cluster.
    • getPath

      String getPath()
       Path to use for MCP requests. Defaults to "/mcp".
       
      string path = 2;
      Returns:
      The path.
    • getPathBytes

      com.google.protobuf.ByteString getPathBytes()
       Path to use for MCP requests. Defaults to "/mcp".
       
      string path = 2;
      Returns:
      The bytes for path.
    • hasTimeout

      boolean hasTimeout()
       Request timeout.
       If not set, uses cluster's timeout configuration.
       
      .google.protobuf.Duration timeout = 3;
      Returns:
      Whether the timeout field is set.
    • getTimeout

      com.google.protobuf.Duration getTimeout()
       Request timeout.
       If not set, uses cluster's timeout configuration.
       
      .google.protobuf.Duration timeout = 3;
      Returns:
      The timeout.
    • getTimeoutOrBuilder

      com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
       Request timeout.
       If not set, uses cluster's timeout configuration.
       
      .google.protobuf.Duration timeout = 3;
    • getHostRewriteLiteral

      String getHostRewriteLiteral()
       Indicates that during forwarding, the host header will be swapped with
       this value.
       
      string host_rewrite_literal = 4;
      Returns:
      The hostRewriteLiteral.
    • getHostRewriteLiteralBytes

      com.google.protobuf.ByteString getHostRewriteLiteralBytes()
       Indicates that during forwarding, the host header will be swapped with
       this value.
       
      string host_rewrite_literal = 4;
      Returns:
      The bytes for hostRewriteLiteral.