Reference documentation and code samples for the Agent Registry V1 API class Google::Cloud::AgentRegistry::V1::Service.
Represents a user-defined Service.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#agent_spec
def agent_spec() -> ::Google::Cloud::AgentRegistry::V1::Service::AgentSpec-
(::Google::Cloud::AgentRegistry::V1::Service::AgentSpec) — Optional. The spec of the Agent. When
agent_specis set, the type of the service is Agent.Note: The following fields are mutually exclusive:
agent_spec,mcp_server_spec,endpoint_spec. If a field in that set is populated, all other fields in the set will automatically be cleared.
#agent_spec=
def agent_spec=(value) -> ::Google::Cloud::AgentRegistry::V1::Service::AgentSpec-
value (::Google::Cloud::AgentRegistry::V1::Service::AgentSpec) — Optional. The spec of the Agent. When
agent_specis set, the type of the service is Agent.Note: The following fields are mutually exclusive:
agent_spec,mcp_server_spec,endpoint_spec. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::AgentRegistry::V1::Service::AgentSpec) — Optional. The spec of the Agent. When
agent_specis set, the type of the service is Agent.Note: The following fields are mutually exclusive:
agent_spec,mcp_server_spec,endpoint_spec. If a field in that set is populated, all other fields in the set will automatically be cleared.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — Output only. Create time.
#description
def description() -> ::String-
(::String) — Optional. User-defined description of an Service.
Can have a maximum length of
2048characters.
#description=
def description=(value) -> ::String-
value (::String) — Optional. User-defined description of an Service.
Can have a maximum length of
2048characters.
-
(::String) — Optional. User-defined description of an Service.
Can have a maximum length of
2048characters.
#display_name
def display_name() -> ::String-
(::String) — Optional. User-defined display name for the Service.
Can have a maximum length of
63characters.
#display_name=
def display_name=(value) -> ::String-
value (::String) — Optional. User-defined display name for the Service.
Can have a maximum length of
63characters.
-
(::String) — Optional. User-defined display name for the Service.
Can have a maximum length of
63characters.
#endpoint_spec
def endpoint_spec() -> ::Google::Cloud::AgentRegistry::V1::Service::EndpointSpec-
(::Google::Cloud::AgentRegistry::V1::Service::EndpointSpec) — Optional. The spec of the Endpoint. When
endpoint_specis set, the type of the service is Endpoint.Note: The following fields are mutually exclusive:
endpoint_spec,agent_spec,mcp_server_spec. If a field in that set is populated, all other fields in the set will automatically be cleared.
#endpoint_spec=
def endpoint_spec=(value) -> ::Google::Cloud::AgentRegistry::V1::Service::EndpointSpec-
value (::Google::Cloud::AgentRegistry::V1::Service::EndpointSpec) — Optional. The spec of the Endpoint. When
endpoint_specis set, the type of the service is Endpoint.Note: The following fields are mutually exclusive:
endpoint_spec,agent_spec,mcp_server_spec. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::AgentRegistry::V1::Service::EndpointSpec) — Optional. The spec of the Endpoint. When
endpoint_specis set, the type of the service is Endpoint.Note: The following fields are mutually exclusive:
endpoint_spec,agent_spec,mcp_server_spec. If a field in that set is populated, all other fields in the set will automatically be cleared.
#interfaces
def interfaces() -> ::Array<::Google::Cloud::AgentRegistry::V1::Interface>- (::Array<::Google::Cloud::AgentRegistry::V1::Interface>) — Optional. The connection details for the Service.
#interfaces=
def interfaces=(value) -> ::Array<::Google::Cloud::AgentRegistry::V1::Interface>- value (::Array<::Google::Cloud::AgentRegistry::V1::Interface>) — Optional. The connection details for the Service.
- (::Array<::Google::Cloud::AgentRegistry::V1::Interface>) — Optional. The connection details for the Service.
#mcp_server_spec
def mcp_server_spec() -> ::Google::Cloud::AgentRegistry::V1::Service::McpServerSpec-
(::Google::Cloud::AgentRegistry::V1::Service::McpServerSpec) — Optional. The spec of the MCP Server. When
mcp_server_specis set, the type of the service is MCP Server.Note: The following fields are mutually exclusive:
mcp_server_spec,agent_spec,endpoint_spec. If a field in that set is populated, all other fields in the set will automatically be cleared.
#mcp_server_spec=
def mcp_server_spec=(value) -> ::Google::Cloud::AgentRegistry::V1::Service::McpServerSpec-
value (::Google::Cloud::AgentRegistry::V1::Service::McpServerSpec) — Optional. The spec of the MCP Server. When
mcp_server_specis set, the type of the service is MCP Server.Note: The following fields are mutually exclusive:
mcp_server_spec,agent_spec,endpoint_spec. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::AgentRegistry::V1::Service::McpServerSpec) — Optional. The spec of the MCP Server. When
mcp_server_specis set, the type of the service is MCP Server.Note: The following fields are mutually exclusive:
mcp_server_spec,agent_spec,endpoint_spec. If a field in that set is populated, all other fields in the set will automatically be cleared.
#name
def name() -> ::String-
(::String) — Identifier. The resource name of the Service.
Format:
projects/{project}/locations/{location}/services/{service}.
#name=
def name=(value) -> ::String-
value (::String) — Identifier. The resource name of the Service.
Format:
projects/{project}/locations/{location}/services/{service}.
-
(::String) — Identifier. The resource name of the Service.
Format:
projects/{project}/locations/{location}/services/{service}.
#registry_resource
def registry_resource() -> ::String-
(::String) —
Output 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}
#update_time
def update_time() -> ::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — Output only. Update time.