Builder
public static class Builder
源码Source
io/agentscope/core/a2a/server/transport/DeploymentProperties.java:35–79构建器,用于构建并配置目标实例。位于 io.agentscope.core.a2a.server.transport 包。核心成员包括 host、port、path、build。
A class in io.agentscope.core.a2a.server.transport that supports discovery, delegation and collaboration between agents. Declared in io.agentscope.core.a2a.server.transport.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Builder host(String host) | 设置该配置项。 Performs the host operation. |
public Builder port(Integer port) | 设置该配置项。 Performs the port operation. |
public Builder path(String path) | 设置路径。 Performs the path operation. |
public DeploymentProperties build() | 构建并返回最终实例。 Creates and returns an instance. |
方法详情Method Detail
host
public Builder host(String host)
设置该配置项。
Performs the host operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
host | String | host(类型 `String`)。The host. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/a2a/server/transport/DeploymentProperties.java:43–46port
public Builder port(Integer port)
设置该配置项。
Performs the port operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
port | Integer | port(类型 `Integer`)。The port. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/a2a/server/transport/DeploymentProperties.java:48–51path
public Builder path(String path)
设置路径。
Performs the path operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
path | String | 路径(类型 `String`)。The path. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/a2a/server/transport/DeploymentProperties.java:53–56build
public DeploymentProperties build()
构建并返回最终实例。
Creates and returns an instance.
DeploymentProperties返回DeploymentProperties。Returns deployment properties.
源码Source
io/agentscope/core/a2a/server/transport/DeploymentProperties.java:58–78