AS AgentScopeAPI 手册 / API Reference

NacosA2aRegistryTransportProperties

public record NacosA2aRegistryTransportProperties( String transport, String host, int port, String path, boolean supportTls, String protocol, String query)
源码Source io/agentscope/core/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:35–174

承载 Nacos A 2 a 注册表传输层属性数据的记录类型。位于 io.agentscope.core.nacos.a2a.registry 包。核心成员包括 transport、host、port、path、supportTls、protocol。

Properties for A2A Transports Endpoint registry to Nacos.

Used to configure A2A Interface(Endpoint) which registers to Nacos, these properties will be merged to transport and url. The format is: [protocol://]host:port[/path][?query].

When #protocol is null, protocol will be set to Constants#PROTOCOL_TYPE_HTTP.

When #protocol is Constants#PROTOCOL_TYPE_HTTP (including when set by null) and the #supportTls is true, it will determine whether to transform #protocol to Constants#PROTOCOL_TYPE_HTTPS.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
transportString
执行传输层相关操作。
Performs the transport operation.
hostString
执行 `host` 方法。
Performs the host operation.
portint
执行 `port` 方法。
Performs the port operation.
pathString
执行路径相关操作。
Performs the path operation.
supportTlsboolean
执行 `supportTls` 方法。
Performs the support tls operation.
protocolString
执行协议相关操作。
Performs the protocol operation.
queryString
执行查询相关操作。
Performs the query operation.

嵌套类摘要Nested Class Summary

类Class类型Kind说明Description
Builder类class
构建器用于`NacosA2aRegistryTransportProperties`。
The Builder for `NacosA2aRegistryTransportProperties`.

方法摘要Method Summary

方法Method说明Description
public static Builder builder()
static
创建新的构建器实例用于`NacosA2aRegistryTransportProperties`。
Creates a new builder instance for `NacosA2aRegistryTransportProperties`.

记录组件详情Record Component Detail

transport

String transport

执行传输层相关操作。

Performs the transport operation.

源码Source io/agentscope/core/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:35–174

host

String host

执行 host 方法。

Performs the host operation.

源码Source io/agentscope/core/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:35–174

port

int port

执行 port 方法。

Performs the port operation.

源码Source io/agentscope/core/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:35–174

path

String path

执行路径相关操作。

Performs the path operation.

源码Source io/agentscope/core/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:35–174

supportTls

boolean supportTls

执行 supportTls 方法。

Performs the support tls operation.

源码Source io/agentscope/core/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:35–174

protocol

String protocol

执行协议相关操作。

Performs the protocol operation.

源码Source io/agentscope/core/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:35–174

query

String query

执行查询相关操作。

Performs the query operation.

源码Source io/agentscope/core/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:35–174

方法详情Method Detail

builder

public static Builder builder()
static

创建新的构建器实例用于NacosA2aRegistryTransportProperties。

Creates a new builder instance for NacosA2aRegistryTransportProperties.

返回Returns Builder
返回当前实例,以支持链式调用。builder instance
源码Source io/agentscope/core/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:49–51

嵌套类详情Nested Class Detail

Builder

public static class Builder

构建器用于NacosA2aRegistryTransportProperties。位于 io.agentscope.core.nacos.a2a.registry 包。核心成员包括 transport、host、port、path、supportTls、protocol。

The Builder for NacosA2aRegistryTransportProperties.

Provides a fluent API for constructing instances with various configuration options.

基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.