AS AgentScopeAPI 手册 / API Reference

Builder

public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.controlplane.proto.SubagentInfoOrBuilder
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:516–1255

构建器,用于构建并配置目标实例。位于 io.agentscope.controlplane.proto 包,继承自 com.google.protobuf.GeneratedMessage.Builder<Builder>,实现 io.agentscope.controlplane.proto.SubagentInfoOrBuilder。核心成员包括 getDescriptor、internalGetFieldAccessorTable、clear、getDescriptorForType、getDefaultInstanceForType、build。

Protobuf type agentscope.protocol.v1.SubagentInfo

方法摘要Method Summary

方法Method说明Description
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
staticfinal
获取描述符。
Returns the descriptor.
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
返回 `internalGetFieldAccessorTable` 结果。
Returns the internal get field accessor table.
public Builder clear()
清空或重置内部状态。
Clears or resets internal state.
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
获取 `getDescriptorForType`。
Returns the descriptor for type.
public io.agentscope.controlplane.proto.SubagentInfo getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.
public io.agentscope.controlplane.proto.SubagentInfo build()
构建并返回最终实例。
Creates and returns an instance.
public io.agentscope.controlplane.proto.SubagentInfo buildPartial()
构建 `buildPartial`。
Builds the partial.
public Builder mergeFrom(com.google.protobuf.Message other)
设置该配置项。
Performs the merge from operation.
public Builder mergeFrom(io.agentscope.controlplane.proto.SubagentInfo other)
设置该配置项。
Performs the merge from operation.
public final boolean isInitialized()
final
判断是否已初始化。
Returns whether the initialized.
public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
设置该配置项。
Performs the merge from operation.
public java.lang.String getName()
获取名称。
`string name = 1;`
public com.google.protobuf.ByteString getNameBytes()
获取名称字节。
`string name = 1;`
public Builder setName(java.lang.String value)
设置设置名称。
`string name = 1;`
public Builder clearName()
清空名称。
`string name = 1;`
public Builder setNameBytes(com.google.protobuf.ByteString value)
设置设置名称字节。
`string name = 1;`
public java.lang.String getDescription()
获取 `getDescription`。
`string description = 2;`
public com.google.protobuf.ByteString getDescriptionBytes()
获取 `getDescriptionBytes`。
`string description = 2;`
public Builder setDescription(java.lang.String value)
设置该配置项。
`string description = 2;`
public Builder clearDescription()
清空 `clearDescription`。
`string description = 2;`
public Builder setDescriptionBytes(com.google.protobuf.ByteString value)
设置该配置项。
`string description = 2;`
public com.google.protobuf.ProtocolStringList getToolsList()
获取工具列表。
`repeated string tools = 3;`
public int getToolsCount()
获取工具数量。
`repeated string tools = 3;`
public java.lang.String getTools(int index)
获取工具。
`repeated string tools = 3;`
public com.google.protobuf.ByteString getToolsBytes(int index)
获取工具字节。
`repeated string tools = 3;`
public Builder setTools(int index, java.lang.String value)
设置设置工具。
`repeated string tools = 3;`
public Builder addTools(java.lang.String value)
添加工具。
`repeated string tools = 3;`
public Builder addAllTools(java.lang.Iterable<java.lang.String> values)
添加所有工具。
`repeated string tools = 3;`
public Builder clearTools()
清空工具。
`repeated string tools = 3;`
public Builder addToolsBytes(com.google.protobuf.ByteString value)
添加工具字节。
`repeated string tools = 3;`
public java.lang.String getWorkspaceMode()
获取工作区模式。
``` isolated | shared
public com.google.protobuf.ByteString getWorkspaceModeBytes()
获取工作区模式字节。
``` isolated | shared
public Builder setWorkspaceMode(java.lang.String value)
设置设置工作区模式。
``` isolated | shared
public Builder clearWorkspaceMode()
清空工作区模式。
``` isolated | shared
public Builder setWorkspaceModeBytes(com.google.protobuf.ByteString value)
设置设置工作区模式字节。
``` isolated | shared
public java.lang.String getUrl()
获取URL。
``` remote subagent endpoint, if any
public com.google.protobuf.ByteString getUrlBytes()
获取URL 字节。
``` remote subagent endpoint, if any
public Builder setUrl(java.lang.String value)
设置设置 URL。
``` remote subagent endpoint, if any
public Builder clearUrl()
清空URL。
``` remote subagent endpoint, if any
public Builder setUrlBytes(com.google.protobuf.ByteString value)
设置设置 URL 字节。
``` remote subagent endpoint, if any
public long getInvokeCount()
获取调用数量。
`int64 invoke_count = 6;`
public Builder setInvokeCount(long value)
设置设置调用数量。
`int64 invoke_count = 6;`
public Builder clearInvokeCount()
清空调用数量。
`int64 invoke_count = 6;`
public long getLastInvokedAt()
获取 `getLastInvokedAt`。
``` unix milliseconds
public Builder setLastInvokedAt(long value)
设置该配置项。
``` unix milliseconds
public Builder clearLastInvokedAt()
清空 `clearLastInvokedAt`。
``` unix milliseconds

方法详情Method Detail

getDescriptor

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
staticfinal

获取描述符。

Returns the descriptor.

返回Returns com.google.protobuf.Descriptors.Descriptor
返回com.google.protobuf.Descriptors.Descriptor。Returns com google protobuf descriptors descriptor.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:520–523

internalGetFieldAccessorTable

protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()

返回 internalGetFieldAccessorTable 结果。

Returns the internal get field accessor table.

返回Returns com.google.protobuf.GeneratedMessage.FieldAccessorTable
返回com.google.protobuf.GeneratedMessage.FieldAccessorTable。Returns com google protobuf generated message field accessor table.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:525–531

clear

public Builder clear()

清空或重置内部状态。

Clears or resets internal state.

返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:543–556

getDescriptorForType

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()

获取 getDescriptorForType。

Returns the descriptor for type.

返回Returns com.google.protobuf.Descriptors.Descriptor
返回com.google.protobuf.Descriptors.Descriptor。Returns com google protobuf descriptors descriptor.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:558–562

getDefaultInstanceForType

public io.agentscope.controlplane.proto.SubagentInfo getDefaultInstanceForType()

获取默认实例用于类型。

Returns the default instance for type.

返回Returns io.agentscope.controlplane.proto.SubagentInfo
返回io.agentscope.controlplane.协议.SubagentInfo。Returns io agentscope controlplane proto subagent info.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:564–567

build

public io.agentscope.controlplane.proto.SubagentInfo build()

构建并返回最终实例。

Creates and returns an instance.

返回Returns io.agentscope.controlplane.proto.SubagentInfo
返回io.agentscope.controlplane.协议.SubagentInfo。Returns io agentscope controlplane proto subagent info.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:569–576

buildPartial

public io.agentscope.controlplane.proto.SubagentInfo buildPartial()

构建 buildPartial。

Builds the partial.

返回Returns io.agentscope.controlplane.proto.SubagentInfo
返回io.agentscope.controlplane.协议.SubagentInfo。Returns io agentscope controlplane proto subagent info.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:578–584

mergeFrom

public Builder mergeFrom(com.google.protobuf.Message other)

设置该配置项。

Performs the merge from operation.

参数Parameters
名称Name类型Type说明Description
othercom.google.protobuf.Messageother(类型 `com.google.protobuf.Message`)。The other.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:612–620

mergeFrom

public Builder mergeFrom(io.agentscope.controlplane.proto.SubagentInfo other)

设置该配置项。

Performs the merge from operation.

参数Parameters
名称Name类型Type说明Description
otherio.agentscope.controlplane.proto.SubagentInfoother(类型 `io.agentscope.controlplane.proto.SubagentInfo`)。The other.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:622–663

isInitialized

public final boolean isInitialized()
final

判断是否已初始化。

Returns whether the initialized.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:665–668

mergeFrom

public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException

设置该配置项。

Performs the merge from operation.

参数Parameters
名称Name类型Type说明Description
inputcom.google.protobuf.CodedInputStream输入消息(类型 `com.google.protobuf.CodedInputStream`)。The input.
extensionRegistrycom.google.protobuf.ExtensionRegistryLite扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
抛出Throws
  • java.io.IOException 可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:670–736

getName

public java.lang.String getName()

获取名称。

string name = 1;

返回Returns java.lang.String
名称。The name.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:744–755

getNameBytes

public com.google.protobuf.ByteString getNameBytes()

获取名称字节。

string name = 1;

返回Returns com.google.protobuf.ByteString
字节用于名称。The bytes for name.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:760–772

setName

public Builder setName(java.lang.String value)

设置设置名称。

string name = 1;

参数Parameters
名称Name类型Type说明Description
valuejava.lang.String名称到设置。The name to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:778–785

clearName

public Builder clearName()

清空名称。

string name = 1;

返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:790–795

setNameBytes

public Builder setNameBytes(com.google.protobuf.ByteString value)

设置设置名称字节。

string name = 1;

参数Parameters
名称Name类型Type说明Description
valuecom.google.protobuf.ByteString字节用于名称到设置。The bytes for name to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:801–809

getDescription

public java.lang.String getDescription()

获取 getDescription。

string description = 2;

返回Returns java.lang.String
返回java.lang.String。The description.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:816–827

getDescriptionBytes

public com.google.protobuf.ByteString getDescriptionBytes()

获取 getDescriptionBytes。

string description = 2;

返回Returns com.google.protobuf.ByteString
返回com.google.protobuf.ByteString。The bytes for description.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:832–844

setDescription

public Builder setDescription(java.lang.String value)

设置该配置项。

string description = 2;

参数Parameters
名称Name类型Type说明Description
valuejava.lang.String值(类型 `java.lang.String`)。The description to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:850–857

clearDescription

public Builder clearDescription()

清空 clearDescription。

string description = 2;

返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:862–867

setDescriptionBytes

public Builder setDescriptionBytes(com.google.protobuf.ByteString value)

设置该配置项。

string description = 2;

参数Parameters
名称Name类型Type说明Description
valuecom.google.protobuf.ByteString值(类型 `com.google.protobuf.ByteString`)。The bytes for description to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:873–881

getToolsList

public com.google.protobuf.ProtocolStringList getToolsList()

获取工具列表。

repeated string tools = 3;

返回Returns com.google.protobuf.ProtocolStringList
返回com.google.protobuf.ProtocolStringList。A list containing the tools.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:895–899

getToolsCount

public int getToolsCount()

获取工具数量。

repeated string tools = 3;

返回Returns int
工具的数量。The count of tools.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:904–906

getTools

public java.lang.String getTools(int index)

获取工具。

repeated string tools = 3;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index of the element to return.
返回Returns java.lang.String
返回java.lang.String。The tools at the given index.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:912–914

getToolsBytes

public com.google.protobuf.ByteString getToolsBytes(int index)

获取工具字节。

repeated string tools = 3;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index of the value to return.
返回Returns com.google.protobuf.ByteString
返回com.google.protobuf.ByteString。The bytes of the tools at the given index.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:920–923

setTools

public Builder setTools(int index, java.lang.String value)

设置设置工具。

repeated string tools = 3;

参数Parameters
名称Name类型Type说明Description
indexint索引到设置值 at。The index to set the value at.
valuejava.lang.String工具到设置。The tools to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:930–938

addTools

public Builder addTools(java.lang.String value)

添加工具。

repeated string tools = 3;

参数Parameters
名称Name类型Type说明Description
valuejava.lang.String工具到添加。The tools to add.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:944–952

addAllTools

public Builder addAllTools(java.lang.Iterable<java.lang.String> values)

添加所有工具。

repeated string tools = 3;

参数Parameters
名称Name类型Type说明Description
valuesjava.lang.Iterable<java.lang.String>工具到添加。The tools to add.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:958–966

clearTools

public Builder clearTools()

清空工具。

repeated string tools = 3;

返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:971–977

addToolsBytes

public Builder addToolsBytes(com.google.protobuf.ByteString value)

添加工具字节。

repeated string tools = 3;

参数Parameters
名称Name类型Type说明Description
valuecom.google.protobuf.ByteString工具到添加的字节。The bytes of the tools to add.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:983–992

getWorkspaceMode

public java.lang.String getWorkspaceMode()

获取工作区模式。

isolated | shared string workspace_mode = 4;

返回Returns java.lang.String
返回java.lang.String。The workspaceMode.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:1003–1014

getWorkspaceModeBytes

public com.google.protobuf.ByteString getWorkspaceModeBytes()

获取工作区模式字节。

isolated | shared string workspace_mode = 4;

返回Returns com.google.protobuf.ByteString
字节用于 workspaceMode。The bytes for workspaceMode.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:1023–1035

setWorkspaceMode

public Builder setWorkspaceMode(java.lang.String value)

设置设置工作区模式。

isolated | shared string workspace_mode = 4;

参数Parameters
名称Name类型Type说明Description
valuejava.lang.StringworkspaceMode 到设置。The workspaceMode to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:1045–1052

clearWorkspaceMode

public Builder clearWorkspaceMode()

清空工作区模式。

isolated | shared string workspace_mode = 4;

返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:1061–1066

setWorkspaceModeBytes

public Builder setWorkspaceModeBytes(com.google.protobuf.ByteString value)

设置设置工作区模式字节。

isolated | shared string workspace_mode = 4;

参数Parameters
名称Name类型Type说明Description
valuecom.google.protobuf.ByteString字节用于 workspaceMode 到设置。The bytes for workspaceMode to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:1076–1084

getUrl

public java.lang.String getUrl()

获取URL。

remote subagent endpoint, if any string url = 5;

返回Returns java.lang.String
返回java.lang.String。The url.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:1095–1106

getUrlBytes

public com.google.protobuf.ByteString getUrlBytes()

获取URL 字节。

remote subagent endpoint, if any string url = 5;

返回Returns com.google.protobuf.ByteString
字节用于 URL。The bytes for url.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:1115–1127

setUrl

public Builder setUrl(java.lang.String value)

设置设置 URL。

remote subagent endpoint, if any string url = 5;

参数Parameters
名称Name类型Type说明Description
valuejava.lang.StringURL 到设置。The url to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:1137–1144

clearUrl

public Builder clearUrl()

清空URL。

remote subagent endpoint, if any string url = 5;

返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:1153–1158

setUrlBytes

public Builder setUrlBytes(com.google.protobuf.ByteString value)

设置设置 URL 字节。

remote subagent endpoint, if any string url = 5;

参数Parameters
名称Name类型Type说明Description
valuecom.google.protobuf.ByteString字节用于 URL 到设置。The bytes for url to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:1168–1176

getInvokeCount

public long getInvokeCount()

获取调用数量。

int64 invoke_count = 6;

返回Returns long
返回数值结果。The invokeCount.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:1183–1186

setInvokeCount

public Builder setInvokeCount(long value)

设置设置调用数量。

int64 invoke_count = 6;

参数Parameters
名称Name类型Type说明Description
valuelonginvokeCount 到设置。The invokeCount to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:1192–1198

clearInvokeCount

public Builder clearInvokeCount()

清空调用数量。

int64 invoke_count = 6;

返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:1203–1208

getLastInvokedAt

public long getLastInvokedAt()

获取 getLastInvokedAt。

unix milliseconds int64 last_invoked_at = 7;

返回Returns long
返回数值结果。The lastInvokedAt.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:1219–1222

setLastInvokedAt

public Builder setLastInvokedAt(long value)

设置该配置项。

unix milliseconds int64 last_invoked_at = 7;

参数Parameters
名称Name类型Type说明Description
valuelonglastInvokedAt 到设置。The lastInvokedAt to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:1232–1238

clearLastInvokedAt

public Builder clearLastInvokedAt()

清空 clearLastInvokedAt。

unix milliseconds int64 last_invoked_at = 7;

返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SubagentInfo.java:1247–1252
基于官方固定版本源码静态生成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.