AS AgentScopeAPI 手册 / API Reference

NacosA2aTransportProperties

public class NacosA2aTransportProperties
源码Source io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:26–122

Nacos A 2 a 传输层属性,支持智能体之间的发现、委派与协作。位于 io.agentscope.extensions.runtime.a2a.nacos.properties 包。核心成员包括 getHost、setHost、getPort、setPort、getPath、setPath。

A2a transport properties for Nacos A2A Registry.

方法摘要Method Summary

方法Method说明Description
public String getHost()
获取 `getHost`。
Returns the host.
public void setHost(String host)
设置 `setHost`。
Sets the host.
public int getPort()
获取 `getPort`。
Returns the port.
public void setPort(int port)
设置 `setPort`。
Sets the port.
public String getPath()
获取路径。
Returns the path.
public void setPath(String path)
设置路径。
Sets the path.
public Boolean isSupportTls()
判断是否 `isSupportTls`。
Returns whether the support tls.
public void setSupportTls(Boolean supportTls)
设置 `setSupportTls`。
Sets the support tls.
public String getProtocol()
获取协议。
Returns the protocol.
public void setProtocol(String protocol)
设置协议。
Sets the protocol.
public String getQuery()
获取查询。
Returns the query.
public void setQuery(String query)
设置查询。
Sets the query.
public void merge(NacosA2aTransportProperties newProperties)
设置该参数。
Merges non-null and non-empty properties from the given NacosA2aTransportProperties object into this object.

方法详情Method Detail

getHost

public String getHost()

获取 getHost。

Returns the host.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:40–42

setHost

public void setHost(String host)

设置 setHost。

Sets the host.

参数Parameters
名称Name类型Type说明Description
hostStringhost(类型 `String`)。The host.
源码Source io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:44–46

getPort

public int getPort()

获取 getPort。

Returns the port.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:48–50

setPort

public void setPort(int port)

设置 setPort。

Sets the port.

参数Parameters
名称Name类型Type说明Description
portintport(类型 `int`)。The port.
源码Source io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:52–54

getPath

public String getPath()

获取路径。

Returns the path.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:56–58

setPath

public void setPath(String path)

设置路径。

Sets the path.

参数Parameters
名称Name类型Type说明Description
pathString路径(类型 `String`)。The path.
源码Source io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:60–62

isSupportTls

public Boolean isSupportTls()

判断是否 isSupportTls。

Returns whether the support tls.

返回Returns Boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:64–66

setSupportTls

public void setSupportTls(Boolean supportTls)

设置 setSupportTls。

Sets the support tls.

参数Parameters
名称Name类型Type说明Description
supportTlsBooleansupport Tls(类型 `Boolean`)。The support tls.
源码Source io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:68–70

getProtocol

public String getProtocol()

获取协议。

Returns the protocol.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:72–74

setProtocol

public void setProtocol(String protocol)

设置协议。

Sets the protocol.

参数Parameters
名称Name类型Type说明Description
protocolString协议(类型 `String`)。The protocol.
源码Source io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:76–78

getQuery

public String getQuery()

获取查询。

Returns the query.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:80–82

setQuery

public void setQuery(String query)

设置查询。

Sets the query.

参数Parameters
名称Name类型Type说明Description
queryString查询文本(类型 `String`)。The query.
源码Source io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:84–86

merge

public void merge(NacosA2aTransportProperties newProperties)

设置该参数。

Merges non-null and non-empty properties from the given NacosA2aTransportProperties object into this object.

参数Parameters
名称Name类型Type说明Description
newPropertiesNacosA2aTransportProperties新建属性(类型 `NacosA2aTransportProperties`)。the NacosA2aTransportProperties object containing new values to merge
源码Source io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:99–121
基于官方固定版本源码静态生成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.