NacosA2aTransportProperties
public class NacosA2aTransportProperties
源码Source
io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:26–122Nacos 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.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:40–42setHost
public void setHost(String host)
设置 setHost。
Sets the host.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
host | String | host(类型 `String`)。The host. |
源码Source
io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:44–46getPort
public int getPort()
获取 getPort。
Returns the port.
int返回数值结果。Returns a numeric result.
源码Source
io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:48–50setPort
public void setPort(int port)
设置 setPort。
Sets the port.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
port | int | port(类型 `int`)。The port. |
源码Source
io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:52–54getPath
public String getPath()
获取路径。
Returns the path.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:56–58setPath
public void setPath(String path)
设置路径。
Sets the path.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
path | String | 路径(类型 `String`)。The path. |
源码Source
io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:60–62isSupportTls
public Boolean isSupportTls()
判断是否 isSupportTls。
Returns whether the support tls.
Boolean返回布尔值,表示判断结果。Returns a boolean result.
源码Source
io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:64–66setSupportTls
public void setSupportTls(Boolean supportTls)
设置 setSupportTls。
Sets the support tls.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
supportTls | Boolean | support Tls(类型 `Boolean`)。The support tls. |
源码Source
io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:68–70getProtocol
public String getProtocol()
获取协议。
Returns the protocol.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:72–74setProtocol
public void setProtocol(String protocol)
设置协议。
Sets the protocol.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
protocol | String | 协议(类型 `String`)。The protocol. |
源码Source
io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:76–78getQuery
public String getQuery()
获取查询。
Returns the query.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:80–82setQuery
public void setQuery(String query)
设置查询。
Sets the query.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
query | String | 查询文本(类型 `String`)。The query. |
源码Source
io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:84–86merge
public void merge(NacosA2aTransportProperties newProperties)
设置该参数。
Merges non-null and non-empty properties from the given NacosA2aTransportProperties object into this object.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
newProperties | NacosA2aTransportProperties | 新建属性(类型 `NacosA2aTransportProperties`)。the NacosA2aTransportProperties object containing new values to merge |
源码Source
io/agentscope/extensions/runtime/a2a/nacos/properties/NacosA2aTransportProperties.java:99–121