Interface McpServerOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
McpServer, McpServer.Builder

@Generated public interface McpServerOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.protobuf.Struct
    The capabilities that a server may support.
    com.google.protobuf.StructOrBuilder
    The capabilities that a server may support.
    Optional.
    com.google.protobuf.ByteString
    Optional.
    Optional.
    com.google.protobuf.ByteString
    Optional.
    Identifier.
    com.google.protobuf.ByteString
    Identifier.
    Output only.
    int
    Output only.
    getUrls(int index)
    The base URL of the MCP server.
    com.google.protobuf.ByteString
    getUrlsBytes(int index)
    The base URL of the MCP server.
    int
    The base URL of the MCP server.
    The base URL of the MCP server.
    boolean
    The capabilities that a server may support.

    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

    • getName

      String getName()
       Identifier. The resource name of the MCP Server.
       Format:
       `projects/{project}/locations/{location}/mcpServers/{mcp_server}`.
       Example:
       projects/12345/locations/us-central1/mcpServers/google:bigquery.googleapis.com:mcp
       for 1p
       projects/12345/locations/us-central1/mcpServers/apphub:starbucks for
       2p
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
       Identifier. The resource name of the MCP Server.
       Format:
       `projects/{project}/locations/{location}/mcpServers/{mcp_server}`.
       Example:
       projects/12345/locations/us-central1/mcpServers/google:bigquery.googleapis.com:mcp
       for 1p
       projects/12345/locations/us-central1/mcpServers/apphub:starbucks for
       2p
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      The bytes for name.
    • getDisplayName

      String getDisplayName()
       Optional. A human readable name for the MCP server.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The displayName.
    • getDisplayNameBytes

      com.google.protobuf.ByteString getDisplayNameBytes()
       Optional. A human readable name for the MCP server.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for displayName.
    • getDescription

      String getDescription()
       Optional. A human-readable description of the MCP Server's functionality.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The description.
    • getDescriptionBytes

      com.google.protobuf.ByteString getDescriptionBytes()
       Optional. A human-readable description of the MCP Server's functionality.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for description.
    • getUrlsList

      List<String> getUrlsList()
       The base URL of the MCP server. Example: [geolocation.googleapis.com/mcp].
       
      repeated string urls = 4;
      Returns:
      A list containing the urls.
    • getUrlsCount

      int getUrlsCount()
       The base URL of the MCP server. Example: [geolocation.googleapis.com/mcp].
       
      repeated string urls = 4;
      Returns:
      The count of urls.
    • getUrls

      String getUrls(int index)
       The base URL of the MCP server. Example: [geolocation.googleapis.com/mcp].
       
      repeated string urls = 4;
      Parameters:
      index - The index of the element to return.
      Returns:
      The urls at the given index.
    • getUrlsBytes

      com.google.protobuf.ByteString getUrlsBytes(int index)
       The base URL of the MCP server. Example: [geolocation.googleapis.com/mcp].
       
      repeated string urls = 4;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the urls at the given index.
    • hasCapabilities

      boolean hasCapabilities()
       The capabilities that a server may support. Known capabilities defined in
       https://modelcontextprotocol.io/specification/2025-06-18/schema#servercapabilities
       and additional capabilities defined by the servers.
       
      .google.protobuf.Struct capabilities = 6;
      Returns:
      Whether the capabilities field is set.
    • getCapabilities

      com.google.protobuf.Struct getCapabilities()
       The capabilities that a server may support. Known capabilities defined in
       https://modelcontextprotocol.io/specification/2025-06-18/schema#servercapabilities
       and additional capabilities defined by the servers.
       
      .google.protobuf.Struct capabilities = 6;
      Returns:
      The capabilities.
    • getCapabilitiesOrBuilder

      com.google.protobuf.StructOrBuilder getCapabilitiesOrBuilder()
       The capabilities that a server may support. Known capabilities defined in
       https://modelcontextprotocol.io/specification/2025-06-18/schema#servercapabilities
       and additional capabilities defined by the servers.
       
      .google.protobuf.Struct capabilities = 6;
    • getStateValue

      int getStateValue()
       Output only. The state of the MCP Server.
       
      .google.cloud.apiregistry.v1beta.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The enum numeric value on the wire for state.
    • getState

      State getState()
       Output only. The state of the MCP Server.
       
      .google.cloud.apiregistry.v1beta.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The state.