TransportPropertiesAttribute
public enum TransportPropertiesAttribute
源码Source
io/agentscope/extensions/nacos/a2a/registry/constants/Constants.java:30–68定义传输层属性属性相关取值的枚举。位于 io.agentscope.extensions.nacos.a2a.registry.constants 包。核心成员包括 getPropertyKey、getByEnvKey、getByPropertyKey、HOST、PORT、PATH。
A enum in io.agentscope.extensions.nacos.a2a.registry.constants that defines enum values used when components supports discovery, delegation and collaboration between agents. Declared in io.agentscope.extensions.nacos.a2a.registry.constants.
枚举常量摘要Enum Constant Summary
| 常量Constant | 说明Description |
|---|---|
HOST | 执行 `HOST` 方法。 Performs the HOST operation. |
PORT | 执行 `PORT` 方法。 Performs the PORT operation. |
PATH | 执行路径相关操作。 Performs the PATH operation. |
PROTOCOL | 执行协议相关操作。 Performs the PROTOCOL operation. |
QUERY | 执行查询相关操作。 Performs the QUERY operation. |
SUPPORT_TLS | 执行SUPPORT TLS相关操作。 Performs the SUPPORT TLS operation. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getPropertyKey() | 获取属性键。 Returns the property key. |
public static TransportPropertiesAttribute getByEnvKey(String envKey)static | 获取 `getByEnvKey`。 Returns the by env key. |
public static TransportPropertiesAttribute getByPropertyKey(String propertyKey)static | 获取通过属性键。 Returns the by property key. |
枚举常量详情Enum Constant Detail
HOST
HOST("HOST", "host")
staticfinal
执行 HOST 方法。
Performs the HOST operation.
源码Source
io/agentscope/extensions/nacos/a2a/registry/constants/Constants.java:31PORT
PORT("PORT", "port")
staticfinal
执行 PORT 方法。
Performs the PORT operation.
源码Source
io/agentscope/extensions/nacos/a2a/registry/constants/Constants.java:32PATH
PATH("PATH", "path")
staticfinal
执行路径相关操作。
Performs the PATH operation.
源码Source
io/agentscope/extensions/nacos/a2a/registry/constants/Constants.java:33PROTOCOL
PROTOCOL("PROTOCOL", "protocol")
staticfinal
执行协议相关操作。
Performs the PROTOCOL operation.
源码Source
io/agentscope/extensions/nacos/a2a/registry/constants/Constants.java:34QUERY
QUERY("QUERY", "query")
staticfinal
执行查询相关操作。
Performs the QUERY operation.
源码Source
io/agentscope/extensions/nacos/a2a/registry/constants/Constants.java:35SUPPORT_TLS
SUPPORT_TLS("SUPPORTTLS", "supportTls")
staticfinal
执行SUPPORT TLS相关操作。
Performs the SUPPORT TLS operation.
源码Source
io/agentscope/extensions/nacos/a2a/registry/constants/Constants.java:36方法详情Method Detail
getPropertyKey
public String getPropertyKey()
获取属性键。
Returns the property key.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/nacos/a2a/registry/constants/Constants.java:47–49getByEnvKey
public static TransportPropertiesAttribute getByEnvKey(String envKey)
static
获取 getByEnvKey。
Returns the by env key.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
envKey | String | env 键(类型 `String`)。The env key. |
TransportPropertiesAttribute返回TransportPropertiesAttribute。Returns transport properties attribute.
源码Source
io/agentscope/extensions/nacos/a2a/registry/constants/Constants.java:51–58getByPropertyKey
public static TransportPropertiesAttribute getByPropertyKey(String propertyKey)
static
获取通过属性键。
Returns the by property key.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
propertyKey | String | 属性键(类型 `String`)。The property key. |
TransportPropertiesAttribute返回TransportPropertiesAttribute。Returns transport properties attribute.
源码Source
io/agentscope/extensions/nacos/a2a/registry/constants/Constants.java:60–67