Interface McpServerOrBuilder (0.4.0)

public interface McpServerOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCapabilities()

public abstract 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
Type Description
Struct

The capabilities.

getCapabilitiesOrBuilder()

public abstract 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;

Returns
Type Description
StructOrBuilder

getDescription()

public abstract String getDescription()

Optional. A human-readable description of the MCP Server's functionality.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public abstract ByteString getDescriptionBytes()

Optional. A human-readable description of the MCP Server's functionality.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDisplayName()

public abstract String getDisplayName()

Optional. A human readable name for the MCP server.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public abstract ByteString getDisplayNameBytes()

Optional. A human readable name for the MCP server.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public abstract 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
Type Description
String

The name.

getNameBytes()

public abstract 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
Type Description
ByteString

The bytes for name.

getState()

public abstract State getState()

Output only. The state of the MCP Server.

.google.cloud.apiregistry.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
State

The state.

getStateValue()

public abstract int getStateValue()

Output only. The state of the MCP Server.

.google.cloud.apiregistry.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUrls(int index)

public abstract String getUrls(int index)

The base URL of the MCP server. Example: [geolocation.googleapis.com/mcp].

repeated string urls = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The urls at the given index.

getUrlsBytes(int index)

public abstract ByteString getUrlsBytes(int index)

The base URL of the MCP server. Example: [geolocation.googleapis.com/mcp].

repeated string urls = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the urls at the given index.

getUrlsCount()

public abstract int getUrlsCount()

The base URL of the MCP server. Example: [geolocation.googleapis.com/mcp].

repeated string urls = 4;

Returns
Type Description
int

The count of urls.

getUrlsList()

public abstract List<String> getUrlsList()

The base URL of the MCP server. Example: [geolocation.googleapis.com/mcp].

repeated string urls = 4;

Returns
Type Description
List<String>

A list containing the urls.

hasCapabilities()

public abstract 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
Type Description
boolean

Whether the capabilities field is set.