Class McpServer.Builder (0.2.0)

public static final class McpServer.Builder extends GeneratedMessage.Builder<McpServer.Builder> implements McpServerOrBuilder

Represents an MCP (Model Context Protocol) Server.

Protobuf type google.cloud.agentregistry.v1.McpServer

Implements

McpServerOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllInterfaces(Iterable<? extends Interface> values)

public McpServer.Builder addAllInterfaces(Iterable<? extends Interface> values)

Output only. The connection details for the MCP Server.

repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.agentregistry.v1.Interface>
Returns
Type Description
McpServer.Builder

addAllTools(Iterable<? extends McpServer.Tool> values)

public McpServer.Builder addAllTools(Iterable<? extends McpServer.Tool> values)

Output only. Tools provided by the MCP Server.

repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.agentregistry.v1.McpServer.Tool>
Returns
Type Description
McpServer.Builder

addInterfaces(Interface value)

public McpServer.Builder addInterfaces(Interface value)

Output only. The connection details for the MCP Server.

repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Interface
Returns
Type Description
McpServer.Builder

addInterfaces(Interface.Builder builderForValue)

public McpServer.Builder addInterfaces(Interface.Builder builderForValue)

Output only. The connection details for the MCP Server.

repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Interface.Builder
Returns
Type Description
McpServer.Builder

addInterfaces(int index, Interface value)

public McpServer.Builder addInterfaces(int index, Interface value)

Output only. The connection details for the MCP Server.

repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Interface
Returns
Type Description
McpServer.Builder

addInterfaces(int index, Interface.Builder builderForValue)

public McpServer.Builder addInterfaces(int index, Interface.Builder builderForValue)

Output only. The connection details for the MCP Server.

repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Interface.Builder
Returns
Type Description
McpServer.Builder

addInterfacesBuilder()

public Interface.Builder addInterfacesBuilder()

Output only. The connection details for the MCP Server.

repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Interface.Builder

addInterfacesBuilder(int index)

public Interface.Builder addInterfacesBuilder(int index)

Output only. The connection details for the MCP Server.

repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Interface.Builder

addTools(McpServer.Tool value)

public McpServer.Builder addTools(McpServer.Tool value)

Output only. Tools provided by the MCP Server.

repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value McpServer.Tool
Returns
Type Description
McpServer.Builder

addTools(McpServer.Tool.Builder builderForValue)

public McpServer.Builder addTools(McpServer.Tool.Builder builderForValue)

Output only. Tools provided by the MCP Server.

repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue McpServer.Tool.Builder
Returns
Type Description
McpServer.Builder

addTools(int index, McpServer.Tool value)

public McpServer.Builder addTools(int index, McpServer.Tool value)

Output only. Tools provided by the MCP Server.

repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value McpServer.Tool
Returns
Type Description
McpServer.Builder

addTools(int index, McpServer.Tool.Builder builderForValue)

public McpServer.Builder addTools(int index, McpServer.Tool.Builder builderForValue)

Output only. Tools provided by the MCP Server.

repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue McpServer.Tool.Builder
Returns
Type Description
McpServer.Builder

addToolsBuilder()

public McpServer.Tool.Builder addToolsBuilder()

Output only. Tools provided by the MCP Server.

repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
McpServer.Tool.Builder

addToolsBuilder(int index)

public McpServer.Tool.Builder addToolsBuilder(int index)

Output only. Tools provided by the MCP Server.

repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
McpServer.Tool.Builder

build()

public McpServer build()
Returns
Type Description
McpServer

buildPartial()

public McpServer buildPartial()
Returns
Type Description
McpServer

clear()

public McpServer.Builder clear()
Returns
Type Description
McpServer.Builder
Overrides

clearAttributes()

public McpServer.Builder clearAttributes()
Returns
Type Description
McpServer.Builder

clearCreateTime()

public McpServer.Builder clearCreateTime()

Output only. Create time.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
McpServer.Builder

clearDescription()

public McpServer.Builder clearDescription()

Output only. The description of the MCP Server.

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

Returns
Type Description
McpServer.Builder

This builder for chaining.

clearDisplayName()

public McpServer.Builder clearDisplayName()

Output only. The display name of the MCP Server.

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

Returns
Type Description
McpServer.Builder

This builder for chaining.

clearInterfaces()

public McpServer.Builder clearInterfaces()

Output only. The connection details for the MCP Server.

repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
McpServer.Builder

clearMcpServerId()

public McpServer.Builder clearMcpServerId()

Output only. A stable, globally unique identifier for MCP Servers.

string mcp_server_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
McpServer.Builder

This builder for chaining.

clearName()

public McpServer.Builder clearName()

Identifier. The resource name of the MCP Server. Format: projects/{project}/locations/{location}/mcpServers/{mcp_server}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
McpServer.Builder

This builder for chaining.

clearTools()

public McpServer.Builder clearTools()

Output only. Tools provided by the MCP Server.

repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
McpServer.Builder

clearUpdateTime()

public McpServer.Builder clearUpdateTime()

Output only. Update time.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
McpServer.Builder

containsAttributes(String key)

public boolean containsAttributes(String key)

Output only. Attributes of the MCP Server. Valid values:

  • agentregistry.googleapis.com/system/RuntimeIdentity: {"principal": "principal://..."} - the runtime identity associated with the MCP Server.
  • agentregistry.googleapis.com/system/RuntimeReference: {"uri": "//..."}
  • the URI of the underlying resource hosting the MCP Server, for example, the GKE Deployment.

map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
boolean

getAttributes() (deprecated)

public Map<String,Struct> getAttributes()

Use #getAttributesMap() instead.

Returns
Type Description
Map<String,Struct>

getAttributesCount()

public int getAttributesCount()

Output only. Attributes of the MCP Server. Valid values:

  • agentregistry.googleapis.com/system/RuntimeIdentity: {"principal": "principal://..."} - the runtime identity associated with the MCP Server.
  • agentregistry.googleapis.com/system/RuntimeReference: {"uri": "//..."}
  • the URI of the underlying resource hosting the MCP Server, for example, the GKE Deployment.

map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getAttributesMap()

public Map<String,Struct> getAttributesMap()

Output only. Attributes of the MCP Server. Valid values:

  • agentregistry.googleapis.com/system/RuntimeIdentity: {"principal": "principal://..."} - the runtime identity associated with the MCP Server.
  • agentregistry.googleapis.com/system/RuntimeReference: {"uri": "//..."}
  • the URI of the underlying resource hosting the MCP Server, for example, the GKE Deployment.

map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,Struct>

getAttributesOrDefault(String key, Struct defaultValue)

public Struct getAttributesOrDefault(String key, Struct defaultValue)

Output only. Attributes of the MCP Server. Valid values:

  • agentregistry.googleapis.com/system/RuntimeIdentity: {"principal": "principal://..."} - the runtime identity associated with the MCP Server.
  • agentregistry.googleapis.com/system/RuntimeReference: {"uri": "//..."}
  • the URI of the underlying resource hosting the MCP Server, for example, the GKE Deployment.

map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue Struct
Returns
Type Description
Struct

getAttributesOrThrow(String key)

public Struct getAttributesOrThrow(String key)

Output only. Attributes of the MCP Server. Valid values:

  • agentregistry.googleapis.com/system/RuntimeIdentity: {"principal": "principal://..."} - the runtime identity associated with the MCP Server.
  • agentregistry.googleapis.com/system/RuntimeReference: {"uri": "//..."}
  • the URI of the underlying resource hosting the MCP Server, for example, the GKE Deployment.

map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
Struct

getCreateTime()

public Timestamp getCreateTime()

Output only. Create time.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Create time.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create time.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public McpServer getDefaultInstanceForType()
Returns
Type Description
McpServer

getDescription()

public String getDescription()

Output only. The description of the MCP Server.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Output only. The description of the MCP Server.

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

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Output only. The display name of the MCP Server.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. The display name of the MCP Server.

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

Returns
Type Description
ByteString

The bytes for displayName.

getInterfaces(int index)

public Interface getInterfaces(int index)

Output only. The connection details for the MCP Server.

repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Interface

getInterfacesBuilder(int index)

public Interface.Builder getInterfacesBuilder(int index)

Output only. The connection details for the MCP Server.

repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Interface.Builder

getInterfacesBuilderList()

public List<Interface.Builder> getInterfacesBuilderList()

Output only. The connection details for the MCP Server.

repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getInterfacesCount()

public int getInterfacesCount()

Output only. The connection details for the MCP Server.

repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getInterfacesList()

public List<Interface> getInterfacesList()

Output only. The connection details for the MCP Server.

repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Interface>

getInterfacesOrBuilder(int index)

public InterfaceOrBuilder getInterfacesOrBuilder(int index)

Output only. The connection details for the MCP Server.

repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
InterfaceOrBuilder

getInterfacesOrBuilderList()

public List<? extends InterfaceOrBuilder> getInterfacesOrBuilderList()

Output only. The connection details for the MCP Server.

repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.agentregistry.v1.InterfaceOrBuilder>

getMcpServerId()

public String getMcpServerId()

Output only. A stable, globally unique identifier for MCP Servers.

string mcp_server_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The mcpServerId.

getMcpServerIdBytes()

public ByteString getMcpServerIdBytes()

Output only. A stable, globally unique identifier for MCP Servers.

string mcp_server_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for mcpServerId.

getMutableAttributes() (deprecated)

public Map<String,Struct> getMutableAttributes()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,Struct>

getName()

public String getName()

Identifier. The resource name of the MCP Server. Format: projects/{project}/locations/{location}/mcpServers/{mcp_server}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the MCP Server. Format: projects/{project}/locations/{location}/mcpServers/{mcp_server}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getTools(int index)

public McpServer.Tool getTools(int index)

Output only. Tools provided by the MCP Server.

repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
McpServer.Tool

getToolsBuilder(int index)

public McpServer.Tool.Builder getToolsBuilder(int index)

Output only. Tools provided by the MCP Server.

repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
McpServer.Tool.Builder

getToolsBuilderList()

public List<McpServer.Tool.Builder> getToolsBuilderList()

Output only. Tools provided by the MCP Server.

repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getToolsCount()

public int getToolsCount()

Output only. Tools provided by the MCP Server.

repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getToolsList()

public List<McpServer.Tool> getToolsList()

Output only. Tools provided by the MCP Server.

repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Tool>

getToolsOrBuilder(int index)

public McpServer.ToolOrBuilder getToolsOrBuilder(int index)

Output only. Tools provided by the MCP Server.

repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
McpServer.ToolOrBuilder

getToolsOrBuilderList()

public List<? extends McpServer.ToolOrBuilder> getToolsOrBuilderList()

Output only. Tools provided by the MCP Server.

repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.agentregistry.v1.McpServer.ToolOrBuilder>

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Update time.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Update time.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Update time.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Create time.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Update time.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public McpServer.Builder mergeCreateTime(Timestamp value)

Output only. Create time.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
McpServer.Builder

mergeFrom(McpServer other)

public McpServer.Builder mergeFrom(McpServer other)
Parameter
Name Description
other McpServer
Returns
Type Description
McpServer.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public McpServer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
McpServer.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public McpServer.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
McpServer.Builder
Overrides

mergeUpdateTime(Timestamp value)

public McpServer.Builder mergeUpdateTime(Timestamp value)

Output only. Update time.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
McpServer.Builder

putAllAttributes(Map<String,Struct> values)

public McpServer.Builder putAllAttributes(Map<String,Struct> values)

Output only. Attributes of the MCP Server. Valid values:

  • agentregistry.googleapis.com/system/RuntimeIdentity: {"principal": "principal://..."} - the runtime identity associated with the MCP Server.
  • agentregistry.googleapis.com/system/RuntimeReference: {"uri": "//..."}
  • the URI of the underlying resource hosting the MCP Server, for example, the GKE Deployment.

map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Map<String,Struct>
Returns
Type Description
McpServer.Builder

putAttributes(String key, Struct value)

public McpServer.Builder putAttributes(String key, Struct value)

Output only. Attributes of the MCP Server. Valid values:

  • agentregistry.googleapis.com/system/RuntimeIdentity: {"principal": "principal://..."} - the runtime identity associated with the MCP Server.
  • agentregistry.googleapis.com/system/RuntimeReference: {"uri": "//..."}
  • the URI of the underlying resource hosting the MCP Server, for example, the GKE Deployment.

map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
value Struct
Returns
Type Description
McpServer.Builder

putAttributesBuilderIfAbsent(String key)

public Struct.Builder putAttributesBuilderIfAbsent(String key)

Output only. Attributes of the MCP Server. Valid values:

  • agentregistry.googleapis.com/system/RuntimeIdentity: {"principal": "principal://..."} - the runtime identity associated with the MCP Server.
  • agentregistry.googleapis.com/system/RuntimeReference: {"uri": "//..."}
  • the URI of the underlying resource hosting the MCP Server, for example, the GKE Deployment.

map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
Builder

removeAttributes(String key)

public McpServer.Builder removeAttributes(String key)

Output only. Attributes of the MCP Server. Valid values:

  • agentregistry.googleapis.com/system/RuntimeIdentity: {"principal": "principal://..."} - the runtime identity associated with the MCP Server.
  • agentregistry.googleapis.com/system/RuntimeReference: {"uri": "//..."}
  • the URI of the underlying resource hosting the MCP Server, for example, the GKE Deployment.

map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
McpServer.Builder

removeInterfaces(int index)

public McpServer.Builder removeInterfaces(int index)

Output only. The connection details for the MCP Server.

repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
McpServer.Builder

removeTools(int index)

public McpServer.Builder removeTools(int index)

Output only. Tools provided by the MCP Server.

repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
McpServer.Builder

setCreateTime(Timestamp value)

public McpServer.Builder setCreateTime(Timestamp value)

Output only. Create time.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
McpServer.Builder

setCreateTime(Timestamp.Builder builderForValue)

public McpServer.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Create time.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
McpServer.Builder

setDescription(String value)

public McpServer.Builder setDescription(String value)

Output only. The description of the MCP Server.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
McpServer.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public McpServer.Builder setDescriptionBytes(ByteString value)

Output only. The description of the MCP Server.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
McpServer.Builder

This builder for chaining.

setDisplayName(String value)

public McpServer.Builder setDisplayName(String value)

Output only. The display name of the MCP Server.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
McpServer.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public McpServer.Builder setDisplayNameBytes(ByteString value)

Output only. The display name of the MCP Server.

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
McpServer.Builder

This builder for chaining.

setInterfaces(int index, Interface value)

public McpServer.Builder setInterfaces(int index, Interface value)

Output only. The connection details for the MCP Server.

repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Interface
Returns
Type Description
McpServer.Builder

setInterfaces(int index, Interface.Builder builderForValue)

public McpServer.Builder setInterfaces(int index, Interface.Builder builderForValue)

Output only. The connection details for the MCP Server.

repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Interface.Builder
Returns
Type Description
McpServer.Builder

setMcpServerId(String value)

public McpServer.Builder setMcpServerId(String value)

Output only. A stable, globally unique identifier for MCP Servers.

string mcp_server_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The mcpServerId to set.

Returns
Type Description
McpServer.Builder

This builder for chaining.

setMcpServerIdBytes(ByteString value)

public McpServer.Builder setMcpServerIdBytes(ByteString value)

Output only. A stable, globally unique identifier for MCP Servers.

string mcp_server_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for mcpServerId to set.

Returns
Type Description
McpServer.Builder

This builder for chaining.

setName(String value)

public McpServer.Builder setName(String value)

Identifier. The resource name of the MCP Server. Format: projects/{project}/locations/{location}/mcpServers/{mcp_server}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
McpServer.Builder

This builder for chaining.

setNameBytes(ByteString value)

public McpServer.Builder setNameBytes(ByteString value)

Identifier. The resource name of the MCP Server. Format: projects/{project}/locations/{location}/mcpServers/{mcp_server}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
McpServer.Builder

This builder for chaining.

setTools(int index, McpServer.Tool value)

public McpServer.Builder setTools(int index, McpServer.Tool value)

Output only. Tools provided by the MCP Server.

repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value McpServer.Tool
Returns
Type Description
McpServer.Builder

setTools(int index, McpServer.Tool.Builder builderForValue)

public McpServer.Builder setTools(int index, McpServer.Tool.Builder builderForValue)

Output only. Tools provided by the MCP Server.

repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue McpServer.Tool.Builder
Returns
Type Description
McpServer.Builder

setUpdateTime(Timestamp value)

public McpServer.Builder setUpdateTime(Timestamp value)

Output only. Update time.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
McpServer.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public McpServer.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Update time.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
McpServer.Builder