NAME
Google::Cloud::Agentregistry::V1::Service - Compiled Protocol Buffers messages for google/cloud/agentregistry/v1/service.proto
SYNOPSIS
use Google::Cloud::Agentregistry::V1::Service;
my $msg = Google::Cloud::Agentregistry::V1::Service::Service->new({
agent_spec => $agent_spec,
mcp_server_spec => $mcp_server_spec,
endpoint_spec => $endpoint_spec,
name => $name,
});
# Read or update a field
my $val = $msg->agent_spec();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Agentregistry::V1::Service::Service->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/agentregistry/v1/service.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Agentregistry::V1::Service::Service
Represents a user-defined Service.
Inherits from Protobuf::Message.
Accessors
$msg->agent_spec()/$msg->agent_spec($value)Type:
Message(Google::Cloud::Agentregistry::V1::Service::Service::AgentSpec)Optional. The spec of the Agent. When `agent_spec` is set, the type of the service is Agent.
$msg->mcp_server_spec()/$msg->mcp_server_spec($value)Type:
Message(Google::Cloud::Agentregistry::V1::Service::Service::McpServerSpec)Optional. The spec of the MCP Server. When `mcp_server_spec` is set, the type of the service is MCP Server.
$msg->endpoint_spec()/$msg->endpoint_spec($value)Type:
Message(Google::Cloud::Agentregistry::V1::Service::Service::EndpointSpec)Optional. The spec of the Endpoint. When `endpoint_spec` is set, the type of the service is Endpoint.
$msg->name()/$msg->name($value)Type:
StringIdentifier. The resource name of the Service. Format: `projects/{project}/locations/{location}/services/{service}`.
$msg->display_name()/$msg->display_name($value)Type:
StringOptional. User-defined display name for the Service. Can have a maximum length of `63` characters.
$msg->description()/$msg->description($value)Type:
StringOptional. User-defined description of an Service. Can have a maximum length of `2048` characters.
$msg->interfaces()/$msg->interfaces($value)Type:
Message(Google::Cloud::Agentregistry::V1::Properties::Interface)Optional. The connection details for the Service.
$msg->registry_resource()/$msg->registry_resource($value)Type:
StringOutput only. The resource name of the resulting Agent, MCP Server, or Endpoint. Format:
* `projects/{project}/locations/{location}/mcpServers/{mcp_server}` * `projects/{project}/locations/{location}/agents/{agent}` * `projects/{project}/locations/{location}/endpoints/{endpoint}`
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Create time.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Update time.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Agentregistry::V1::Service::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.