Builder
public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.aistio.proto.SubagentInfoOrBuilder
io/agentscope/aistio/proto/SubagentInfo.java:516–1255构建器,用于构建并配置目标实例。位于 io.agentscope.aistio.proto 包,继承自 com.google.protobuf.GeneratedMessage.Builder<Builder>,实现 io.agentscope.aistio.proto.SubagentInfoOrBuilder。核心成员包括 getDescriptor、internalGetFieldAccessorTable、clear、getDescriptorForType、getDefaultInstanceForType、build。
Protobuf type agentscope.protocol.v1.SubagentInfo
方法摘要Method Summary
方法详情Method Detail
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
获取描述符。
Returns the descriptor.
com.google.protobuf.Descriptors.Descriptorio/agentscope/aistio/proto/SubagentInfo.java:520–523internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
返回 internalGetFieldAccessorTable 结果。
Returns the internal get field accessor table.
com.google.protobuf.GeneratedMessage.FieldAccessorTableio/agentscope/aistio/proto/SubagentInfo.java:525–531clear
public Builder clear()
清空或重置内部状态。
Clears or resets internal state.
Builderio/agentscope/aistio/proto/SubagentInfo.java:543–556getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
获取 getDescriptorForType。
Returns the descriptor for type.
com.google.protobuf.Descriptors.Descriptorio/agentscope/aistio/proto/SubagentInfo.java:558–562getDefaultInstanceForType
public io.agentscope.aistio.proto.SubagentInfo getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.
io.agentscope.aistio.proto.SubagentInfoio/agentscope/aistio/proto/SubagentInfo.java:564–567build
public io.agentscope.aistio.proto.SubagentInfo build()
构建并返回最终实例。
Creates and returns an instance.
io.agentscope.aistio.proto.SubagentInfoio/agentscope/aistio/proto/SubagentInfo.java:569–576buildPartial
public io.agentscope.aistio.proto.SubagentInfo buildPartial()
构建 buildPartial。
Builds the partial.
io.agentscope.aistio.proto.SubagentInfoio/agentscope/aistio/proto/SubagentInfo.java:578–584mergeFrom
public Builder mergeFrom(com.google.protobuf.Message other)
设置该配置项。
Performs the merge from operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
other | com.google.protobuf.Message | other(类型 `com.google.protobuf.Message`)。The other. |
Builderio/agentscope/aistio/proto/SubagentInfo.java:612–620mergeFrom
public Builder mergeFrom(io.agentscope.aistio.proto.SubagentInfo other)
设置该配置项。
Performs the merge from operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
other | io.agentscope.aistio.proto.SubagentInfo | other(类型 `io.agentscope.aistio.proto.SubagentInfo`)。The other. |
Builderio/agentscope/aistio/proto/SubagentInfo.java:622–663isInitialized
public final boolean isInitialized()
判断是否已初始化。
Returns whether the initialized.
booleanio/agentscope/aistio/proto/SubagentInfo.java:665–668mergeFrom
public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
设置该配置项。
Performs the merge from operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
input | com.google.protobuf.CodedInputStream | 输入消息(类型 `com.google.protobuf.CodedInputStream`)。The input. |
extensionRegistry | com.google.protobuf.ExtensionRegistryLite | 扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry. |
Builderjava.io.IOException可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
io/agentscope/aistio/proto/SubagentInfo.java:670–736getName
public java.lang.String getName()
获取名称。
string name = 1;
java.lang.Stringio/agentscope/aistio/proto/SubagentInfo.java:744–755getNameBytes
public com.google.protobuf.ByteString getNameBytes()
获取名称字节。
string name = 1;
com.google.protobuf.ByteStringio/agentscope/aistio/proto/SubagentInfo.java:760–772setName
public Builder setName(java.lang.String value)
设置设置名称。
string name = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | 名称到设置。The name to set. |
Builderio/agentscope/aistio/proto/SubagentInfo.java:778–785clearName
public Builder clearName()
清空名称。
string name = 1;
Builderio/agentscope/aistio/proto/SubagentInfo.java:790–795setNameBytes
public Builder setNameBytes(com.google.protobuf.ByteString value)
设置设置名称字节。
string name = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于名称到设置。The bytes for name to set. |
Builderio/agentscope/aistio/proto/SubagentInfo.java:801–809getDescription
public java.lang.String getDescription()
获取 getDescription。
string description = 2;
java.lang.Stringio/agentscope/aistio/proto/SubagentInfo.java:816–827getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
获取 getDescriptionBytes。
string description = 2;
com.google.protobuf.ByteStringio/agentscope/aistio/proto/SubagentInfo.java:832–844setDescription
public Builder setDescription(java.lang.String value)
设置该配置项。
string description = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | 值(类型 `java.lang.String`)。The description to set. |
Builderio/agentscope/aistio/proto/SubagentInfo.java:850–857clearDescription
public Builder clearDescription()
清空 clearDescription。
string description = 2;
Builderio/agentscope/aistio/proto/SubagentInfo.java:862–867setDescriptionBytes
public Builder setDescriptionBytes(com.google.protobuf.ByteString value)
设置该配置项。
string description = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 值(类型 `com.google.protobuf.ByteString`)。The bytes for description to set. |
Builderio/agentscope/aistio/proto/SubagentInfo.java:873–881getToolsList
public com.google.protobuf.ProtocolStringList getToolsList()
获取工具列表。
repeated string tools = 3;
com.google.protobuf.ProtocolStringListio/agentscope/aistio/proto/SubagentInfo.java:895–899getToolsCount
public int getToolsCount()
获取工具数量。
repeated string tools = 3;
intio/agentscope/aistio/proto/SubagentInfo.java:904–906getTools
public java.lang.String getTools(int index)
获取工具。
repeated string tools = 3;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index of the element to return. |
java.lang.Stringio/agentscope/aistio/proto/SubagentInfo.java:912–914getToolsBytes
public com.google.protobuf.ByteString getToolsBytes(int index)
获取工具字节。
repeated string tools = 3;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index of the value to return. |
com.google.protobuf.ByteStringio/agentscope/aistio/proto/SubagentInfo.java:920–923setTools
public Builder setTools(int index, java.lang.String value)
设置设置工具。
repeated string tools = 3;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引到设置值 at。The index to set the value at. |
value | java.lang.String | 工具到设置。The tools to set. |
Builderio/agentscope/aistio/proto/SubagentInfo.java:930–938addTools
public Builder addTools(java.lang.String value)
添加工具。
repeated string tools = 3;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | 工具到添加。The tools to add. |
Builderio/agentscope/aistio/proto/SubagentInfo.java:944–952addAllTools
public Builder addAllTools(java.lang.Iterable<java.lang.String> values)
添加所有工具。
repeated string tools = 3;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
values | java.lang.Iterable<java.lang.String> | 工具到添加。The tools to add. |
Builderio/agentscope/aistio/proto/SubagentInfo.java:958–966clearTools
public Builder clearTools()
清空工具。
repeated string tools = 3;
Builderio/agentscope/aistio/proto/SubagentInfo.java:971–977addToolsBytes
public Builder addToolsBytes(com.google.protobuf.ByteString value)
添加工具字节。
repeated string tools = 3;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 工具到添加的字节。The bytes of the tools to add. |
Builderio/agentscope/aistio/proto/SubagentInfo.java:983–992getWorkspaceMode
public java.lang.String getWorkspaceMode()
获取工作区模式。
isolated | shared string workspace_mode = 4;
java.lang.Stringio/agentscope/aistio/proto/SubagentInfo.java:1003–1014getWorkspaceModeBytes
public com.google.protobuf.ByteString getWorkspaceModeBytes()
获取工作区模式字节。
isolated | shared string workspace_mode = 4;
com.google.protobuf.ByteStringio/agentscope/aistio/proto/SubagentInfo.java:1023–1035setWorkspaceMode
public Builder setWorkspaceMode(java.lang.String value)
设置设置工作区模式。
isolated | shared string workspace_mode = 4;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | workspaceMode 到设置。The workspaceMode to set. |
Builderio/agentscope/aistio/proto/SubagentInfo.java:1045–1052clearWorkspaceMode
public Builder clearWorkspaceMode()
清空工作区模式。
isolated | shared string workspace_mode = 4;
Builderio/agentscope/aistio/proto/SubagentInfo.java:1061–1066setWorkspaceModeBytes
public Builder setWorkspaceModeBytes(com.google.protobuf.ByteString value)
设置设置工作区模式字节。
isolated | shared string workspace_mode = 4;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于 workspaceMode 到设置。The bytes for workspaceMode to set. |
Builderio/agentscope/aistio/proto/SubagentInfo.java:1076–1084getUrl
public java.lang.String getUrl()
获取URL。
remote subagent endpoint, if any string url = 5;
java.lang.Stringio/agentscope/aistio/proto/SubagentInfo.java:1095–1106getUrlBytes
public com.google.protobuf.ByteString getUrlBytes()
获取URL 字节。
remote subagent endpoint, if any string url = 5;
com.google.protobuf.ByteStringio/agentscope/aistio/proto/SubagentInfo.java:1115–1127setUrl
public Builder setUrl(java.lang.String value)
设置设置 URL。
remote subagent endpoint, if any string url = 5;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | URL 到设置。The url to set. |
Builderio/agentscope/aistio/proto/SubagentInfo.java:1137–1144clearUrl
public Builder clearUrl()
清空URL。
remote subagent endpoint, if any string url = 5;
Builderio/agentscope/aistio/proto/SubagentInfo.java:1153–1158setUrlBytes
public Builder setUrlBytes(com.google.protobuf.ByteString value)
设置设置 URL 字节。
remote subagent endpoint, if any string url = 5;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于 URL 到设置。The bytes for url to set. |
Builderio/agentscope/aistio/proto/SubagentInfo.java:1168–1176getInvokeCount
public long getInvokeCount()
获取调用数量。
int64 invoke_count = 6;
longio/agentscope/aistio/proto/SubagentInfo.java:1183–1186setInvokeCount
public Builder setInvokeCount(long value)
设置设置调用数量。
int64 invoke_count = 6;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | long | invokeCount 到设置。The invokeCount to set. |
Builderio/agentscope/aistio/proto/SubagentInfo.java:1192–1198clearInvokeCount
public Builder clearInvokeCount()
清空调用数量。
int64 invoke_count = 6;
Builderio/agentscope/aistio/proto/SubagentInfo.java:1203–1208getLastInvokedAt
public long getLastInvokedAt()
获取 getLastInvokedAt。
unix milliseconds int64 last_invoked_at = 7;
longio/agentscope/aistio/proto/SubagentInfo.java:1219–1222setLastInvokedAt
public Builder setLastInvokedAt(long value)
设置该配置项。
unix milliseconds int64 last_invoked_at = 7;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | long | lastInvokedAt 到设置。The lastInvokedAt to set. |
Builderio/agentscope/aistio/proto/SubagentInfo.java:1232–1238clearLastInvokedAt
public Builder clearLastInvokedAt()
清空 clearLastInvokedAt。
unix milliseconds int64 last_invoked_at = 7;
Builderio/agentscope/aistio/proto/SubagentInfo.java:1247–1252