Google Cloud Agent Registry V1 Client - Class McpServerSpec (0.2.0)

Reference documentation and code samples for the Google Cloud Agent Registry V1 Client class McpServerSpec.

The spec of the MCP Server.

Generated from protobuf message google.cloud.agentregistry.v1.Service.McpServerSpec

Namespace

Google \ Cloud \ AgentRegistry \ V1 \ Service

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ type int

Required. The type of the MCP Server spec content.

↳ content Google\Protobuf\Struct

Optional. The content of the MCP Server spec. This payload is validated against the schema for the specified type. The content size is limited to 10KB.

getType

Required. The type of the MCP Server spec content.

Returns
Type Description
int Enum of type Type.

setType

Required. The type of the MCP Server spec content.

Parameter
Name Description
var int

Enum of type Type.

Returns
Type Description
$this

getContent

Optional. The content of the MCP Server spec.

This payload is validated against the schema for the specified type. The content size is limited to 10KB.

Returns
Type Description
Google\Protobuf\Struct|null

hasContent

clearContent

setContent

Optional. The content of the MCP Server spec.

This payload is validated against the schema for the specified type. The content size is limited to 10KB.

Parameter
Name Description
var Google\Protobuf\Struct
Returns
Type Description
$this