AS AgentScopeAPI 手册 / API Reference

Builder

public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.aistio.proto.InventoryReportOrBuilder
源码Source io/agentscope/aistio/proto/InventoryReport.java:359–1227

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


InventoryReport carries the instance-level runtime inventory: subagents,
workspaces and health. Sent right after connect, then on change or at the
Level-1 cadence.

Protobuf type agentscope.protocol.v1.InventoryReport

方法摘要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.aistio.proto.InventoryReport getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.
public io.agentscope.aistio.proto.InventoryReport build()
构建并返回最终实例。
Creates and returns an instance.
public io.agentscope.aistio.proto.InventoryReport buildPartial()
构建 `buildPartial`。
Builds the partial.
public Builder mergeFrom(com.google.protobuf.Message other)
设置该配置项。
Performs the merge from operation.
public Builder mergeFrom(io.agentscope.aistio.proto.InventoryReport 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.util.List<io.agentscope.aistio.proto.SubagentInfo> getSubagentsList()
获取 `getSubagentsList`。
`repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;`
public int getSubagentsCount()
获取 `getSubagentsCount`。
`repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;`
public io.agentscope.aistio.proto.SubagentInfo getSubagents(int index)
获取 `getSubagents`。
`repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;`
public Builder setSubagents(int index, io.agentscope.aistio.proto.SubagentInfo value)
设置该配置项。
`repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;`
public Builder setSubagents(int index, io.agentscope.aistio.proto.SubagentInfo.Builder builderForValue)
设置该配置项。
`repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;`
public Builder addSubagents(io.agentscope.aistio.proto.SubagentInfo value)
添加 `addSubagents`。
`repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;`
public Builder addSubagents(int index, io.agentscope.aistio.proto.SubagentInfo value)
添加 `addSubagents`。
`repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;`
public Builder addSubagents(io.agentscope.aistio.proto.SubagentInfo.Builder builderForValue)
添加 `addSubagents`。
`repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;`
public Builder addSubagents(int index, io.agentscope.aistio.proto.SubagentInfo.Builder builderForValue)
添加 `addSubagents`。
`repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;`
public Builder addAllSubagents(java.lang.Iterable<? extends io.agentscope.aistio.proto.SubagentInfo> values)
添加 `addAllSubagents`。
`repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;`
public Builder clearSubagents()
清空 `clearSubagents`。
`repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;`
public Builder removeSubagents(int index)
移除 `removeSubagents`。
`repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;`
public io.agentscope.aistio.proto.SubagentInfo.Builder getSubagentsBuilder(int index)
获取 `getSubagentsBuilder`。
`repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;`
public io.agentscope.aistio.proto.SubagentInfoOrBuilder getSubagentsOrBuilder(int index)
获取 `getSubagentsOrBuilder`。
`repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;`
public java.util.List<? extends io.agentscope.aistio.proto.SubagentInfoOrBuilder> getSubagentsOrBuilderList()
获取 `getSubagentsOrBuilderList`。
`repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;`
public io.agentscope.aistio.proto.SubagentInfo.Builder addSubagentsBuilder()
添加 `addSubagentsBuilder`。
`repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;`
public io.agentscope.aistio.proto.SubagentInfo.Builder addSubagentsBuilder(int index)
添加 `addSubagentsBuilder`。
`repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;`
public java.util.List<io.agentscope.aistio.proto.SubagentInfo.Builder> getSubagentsBuilderList()
获取 `getSubagentsBuilderList`。
`repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;`
public java.util.List<io.agentscope.aistio.proto.WorkspaceInfo> getWorkspacesList()
获取 `getWorkspacesList`。
`repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;`
public int getWorkspacesCount()
获取 `getWorkspacesCount`。
`repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;`
public io.agentscope.aistio.proto.WorkspaceInfo getWorkspaces(int index)
获取 `getWorkspaces`。
`repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;`
public Builder setWorkspaces(int index, io.agentscope.aistio.proto.WorkspaceInfo value)
设置该配置项。
`repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;`
public Builder setWorkspaces(int index, io.agentscope.aistio.proto.WorkspaceInfo.Builder builderForValue)
设置该配置项。
`repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;`
public Builder addWorkspaces(io.agentscope.aistio.proto.WorkspaceInfo value)
添加 `addWorkspaces`。
`repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;`
public Builder addWorkspaces(int index, io.agentscope.aistio.proto.WorkspaceInfo value)
添加 `addWorkspaces`。
`repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;`
public Builder addWorkspaces(io.agentscope.aistio.proto.WorkspaceInfo.Builder builderForValue)
添加 `addWorkspaces`。
`repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;`
public Builder addWorkspaces(int index, io.agentscope.aistio.proto.WorkspaceInfo.Builder builderForValue)
添加 `addWorkspaces`。
`repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;`
public Builder addAllWorkspaces(java.lang.Iterable<? extends io.agentscope.aistio.proto.WorkspaceInfo> values)
添加 `addAllWorkspaces`。
`repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;`
public Builder clearWorkspaces()
清空 `clearWorkspaces`。
`repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;`
public Builder removeWorkspaces(int index)
移除 `removeWorkspaces`。
`repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;`
public io.agentscope.aistio.proto.WorkspaceInfo.Builder getWorkspacesBuilder(int index)
获取 `getWorkspacesBuilder`。
`repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;`
public io.agentscope.aistio.proto.WorkspaceInfoOrBuilder getWorkspacesOrBuilder(int index)
获取 `getWorkspacesOrBuilder`。
`repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;`
public java.util.List<? extends io.agentscope.aistio.proto.WorkspaceInfoOrBuilder> getWorkspacesOrBuilderList()
获取 `getWorkspacesOrBuilderList`。
`repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;`
public io.agentscope.aistio.proto.WorkspaceInfo.Builder addWorkspacesBuilder()
添加 `addWorkspacesBuilder`。
`repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;`
public io.agentscope.aistio.proto.WorkspaceInfo.Builder addWorkspacesBuilder(int index)
添加 `addWorkspacesBuilder`。
`repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;`
public java.util.List<io.agentscope.aistio.proto.WorkspaceInfo.Builder> getWorkspacesBuilderList()
获取 `getWorkspacesBuilderList`。
`repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;`
public boolean hasHealth()
判断是否具有健康状态。
`.agentscope.protocol.v1.InstanceHealth health = 3;`
public io.agentscope.aistio.proto.InstanceHealth getHealth()
获取健康状态。
`.agentscope.protocol.v1.InstanceHealth health = 3;`
public Builder setHealth(io.agentscope.aistio.proto.InstanceHealth value)
设置设置健康状态。
`.agentscope.protocol.v1.InstanceHealth health = 3;`
public Builder setHealth(io.agentscope.aistio.proto.InstanceHealth.Builder builderForValue)
设置设置健康状态。
`.agentscope.protocol.v1.InstanceHealth health = 3;`
public Builder mergeHealth(io.agentscope.aistio.proto.InstanceHealth value)
设置该配置项。
`.agentscope.protocol.v1.InstanceHealth health = 3;`
public Builder clearHealth()
清空健康状态。
`.agentscope.protocol.v1.InstanceHealth health = 3;`
public io.agentscope.aistio.proto.InstanceHealth.Builder getHealthBuilder()
获取健康状态构建器。
`.agentscope.protocol.v1.InstanceHealth health = 3;`
public io.agentscope.aistio.proto.InstanceHealthOrBuilder getHealthOrBuilder()
获取健康状态或构建器。
`.agentscope.protocol.v1.InstanceHealth health = 3;`

方法详情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/aistio/proto/InventoryReport.java:363–366

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/aistio/proto/InventoryReport.java:368–374

clear

public Builder clear()

清空或重置内部状态。

Clears or resets internal state.

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

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/aistio/proto/InventoryReport.java:420–424

getDefaultInstanceForType

public io.agentscope.aistio.proto.InventoryReport getDefaultInstanceForType()

获取默认实例用于类型。

Returns the default instance for type.

返回Returns io.agentscope.aistio.proto.InventoryReport
返回io.agentscope.aistio.协议.InventoryReport。Returns io agentscope aistio proto inventory report.
源码Source io/agentscope/aistio/proto/InventoryReport.java:426–429

build

public io.agentscope.aistio.proto.InventoryReport build()

构建并返回最终实例。

Creates and returns an instance.

返回Returns io.agentscope.aistio.proto.InventoryReport
返回io.agentscope.aistio.协议.InventoryReport。Returns io agentscope aistio proto inventory report.
源码Source io/agentscope/aistio/proto/InventoryReport.java:431–438

buildPartial

public io.agentscope.aistio.proto.InventoryReport buildPartial()

构建 buildPartial。

Builds the partial.

返回Returns io.agentscope.aistio.proto.InventoryReport
返回io.agentscope.aistio.协议.InventoryReport。Returns io agentscope aistio proto inventory report.
源码Source io/agentscope/aistio/proto/InventoryReport.java:440–447

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/aistio/proto/InventoryReport.java:482–490

mergeFrom

public Builder mergeFrom(io.agentscope.aistio.proto.InventoryReport other)

设置该配置项。

Performs the merge from operation.

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

isInitialized

public final boolean isInitialized()
final

判断是否已初始化。

Returns whether the initialized.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/aistio/proto/InventoryReport.java:554–557

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/aistio/proto/InventoryReport.java:559–622

getSubagentsList

public java.util.List<io.agentscope.aistio.proto.SubagentInfo> getSubagentsList()

获取 getSubagentsList。

repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;

返回Returns java.util.List<io.agentscope.aistio.proto.SubagentInfo>
返回java.util.列出。Returns java util list.
源码Source io/agentscope/aistio/proto/InventoryReport.java:640–646

getSubagentsCount

public int getSubagentsCount()

获取 getSubagentsCount。

repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/aistio/proto/InventoryReport.java:650–656

getSubagents

public io.agentscope.aistio.proto.SubagentInfo getSubagents(int index)

获取 getSubagents。

repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
返回Returns io.agentscope.aistio.proto.SubagentInfo
返回io.agentscope.aistio.协议.SubagentInfo。Returns io agentscope aistio proto subagent info.
源码Source io/agentscope/aistio/proto/InventoryReport.java:660–666

setSubagents

public Builder setSubagents(int index, io.agentscope.aistio.proto.SubagentInfo value)

设置该配置项。

repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
valueio.agentscope.aistio.proto.SubagentInfo值(类型 `io.agentscope.aistio.proto.SubagentInfo`)。The value.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/InventoryReport.java:670–683

setSubagents

public Builder setSubagents(int index, io.agentscope.aistio.proto.SubagentInfo.Builder builderForValue)

设置该配置项。

repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
builderForValueio.agentscope.aistio.proto.SubagentInfo.Builder构建器用于值(类型 `io.agentscope.aistio.proto.SubagentInfo.Builder`)。The builder for value.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/InventoryReport.java:687–697

addSubagents

public Builder addSubagents(io.agentscope.aistio.proto.SubagentInfo value)

添加 addSubagents。

repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;

参数Parameters
名称Name类型Type说明Description
valueio.agentscope.aistio.proto.SubagentInfo值(类型 `io.agentscope.aistio.proto.SubagentInfo`)。The value.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/InventoryReport.java:701–713

addSubagents

public Builder addSubagents(int index, io.agentscope.aistio.proto.SubagentInfo value)

添加 addSubagents。

repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
valueio.agentscope.aistio.proto.SubagentInfo值(类型 `io.agentscope.aistio.proto.SubagentInfo`)。The value.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/InventoryReport.java:717–730

addSubagents

public Builder addSubagents(io.agentscope.aistio.proto.SubagentInfo.Builder builderForValue)

添加 addSubagents。

repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;

参数Parameters
名称Name类型Type说明Description
builderForValueio.agentscope.aistio.proto.SubagentInfo.Builder构建器用于值(类型 `io.agentscope.aistio.proto.SubagentInfo.Builder`)。The builder for value.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/InventoryReport.java:734–744

addSubagents

public Builder addSubagents(int index, io.agentscope.aistio.proto.SubagentInfo.Builder builderForValue)

添加 addSubagents。

repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
builderForValueio.agentscope.aistio.proto.SubagentInfo.Builder构建器用于值(类型 `io.agentscope.aistio.proto.SubagentInfo.Builder`)。The builder for value.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/InventoryReport.java:748–758

addAllSubagents

public Builder addAllSubagents(java.lang.Iterable<? extends io.agentscope.aistio.proto.SubagentInfo> values)

添加 addAllSubagents。

repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;

参数Parameters
名称Name类型Type说明Description
valuesjava.lang.Iterable<? extends io.agentscope.aistio.proto.SubagentInfo>值(类型 `java.lang.Iterable`)。The values.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/InventoryReport.java:762–773

clearSubagents

public Builder clearSubagents()

清空 clearSubagents。

repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;

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

removeSubagents

public Builder removeSubagents(int index)

移除 removeSubagents。

repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/InventoryReport.java:790–799

getSubagentsBuilder

public io.agentscope.aistio.proto.SubagentInfo.Builder getSubagentsBuilder(int index)

获取 getSubagentsBuilder。

repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
返回Returns io.agentscope.aistio.proto.SubagentInfo.Builder
返回io.agentscope.aistio.协议.SubagentInfo.构建器。Returns io agentscope aistio proto subagent info builder.
源码Source io/agentscope/aistio/proto/InventoryReport.java:803–806

getSubagentsOrBuilder

public io.agentscope.aistio.proto.SubagentInfoOrBuilder getSubagentsOrBuilder(int index)

获取 getSubagentsOrBuilder。

repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
返回Returns io.agentscope.aistio.proto.SubagentInfoOrBuilder
返回io.agentscope.aistio.协议.SubagentInfoOrBuilder。Returns io agentscope aistio proto subagent info or builder.
源码Source io/agentscope/aistio/proto/InventoryReport.java:810–816

getSubagentsOrBuilderList

public java.util.List<? extends io.agentscope.aistio.proto.SubagentInfoOrBuilder> getSubagentsOrBuilderList()

获取 getSubagentsOrBuilderList。

repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;

返回Returns java.util.List<? extends io.agentscope.aistio.proto.SubagentInfoOrBuilder>
返回java.util.列出。Returns java util list.
源码Source io/agentscope/aistio/proto/InventoryReport.java:820–827

addSubagentsBuilder

public io.agentscope.aistio.proto.SubagentInfo.Builder addSubagentsBuilder()

添加 addSubagentsBuilder。

repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;

返回Returns io.agentscope.aistio.proto.SubagentInfo.Builder
返回io.agentscope.aistio.协议.SubagentInfo.构建器。Returns io agentscope aistio proto subagent info builder.
源码Source io/agentscope/aistio/proto/InventoryReport.java:831–834

addSubagentsBuilder

public io.agentscope.aistio.proto.SubagentInfo.Builder addSubagentsBuilder(int index)

添加 addSubagentsBuilder。

repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
返回Returns io.agentscope.aistio.proto.SubagentInfo.Builder
返回io.agentscope.aistio.协议.SubagentInfo.构建器。Returns io agentscope aistio proto subagent info builder.
源码Source io/agentscope/aistio/proto/InventoryReport.java:838–842

getSubagentsBuilderList

public java.util.List<io.agentscope.aistio.proto.SubagentInfo.Builder> getSubagentsBuilderList()

获取 getSubagentsBuilderList。

repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;

返回Returns java.util.List<io.agentscope.aistio.proto.SubagentInfo.Builder>
返回java.util.列出。Returns java util list.
源码Source io/agentscope/aistio/proto/InventoryReport.java:846–849

getWorkspacesList

public java.util.List<io.agentscope.aistio.proto.WorkspaceInfo> getWorkspacesList()

获取 getWorkspacesList。

repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;

返回Returns java.util.List<io.agentscope.aistio.proto.WorkspaceInfo>
返回java.util.列出。Returns java util list.
源码Source io/agentscope/aistio/proto/InventoryReport.java:880–886

getWorkspacesCount

public int getWorkspacesCount()

获取 getWorkspacesCount。

repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/aistio/proto/InventoryReport.java:890–896

getWorkspaces

public io.agentscope.aistio.proto.WorkspaceInfo getWorkspaces(int index)

获取 getWorkspaces。

repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
返回Returns io.agentscope.aistio.proto.WorkspaceInfo
返回io.agentscope.aistio.协议.WorkspaceInfo。Returns io agentscope aistio proto workspace info.
源码Source io/agentscope/aistio/proto/InventoryReport.java:900–906

setWorkspaces

public Builder setWorkspaces(int index, io.agentscope.aistio.proto.WorkspaceInfo value)

设置该配置项。

repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
valueio.agentscope.aistio.proto.WorkspaceInfo值(类型 `io.agentscope.aistio.proto.WorkspaceInfo`)。The value.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/InventoryReport.java:910–923

setWorkspaces

public Builder setWorkspaces(int index, io.agentscope.aistio.proto.WorkspaceInfo.Builder builderForValue)

设置该配置项。

repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
builderForValueio.agentscope.aistio.proto.WorkspaceInfo.Builder构建器用于值(类型 `io.agentscope.aistio.proto.WorkspaceInfo.Builder`)。The builder for value.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/InventoryReport.java:927–937

addWorkspaces

public Builder addWorkspaces(io.agentscope.aistio.proto.WorkspaceInfo value)

添加 addWorkspaces。

repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;

参数Parameters
名称Name类型Type说明Description
valueio.agentscope.aistio.proto.WorkspaceInfo值(类型 `io.agentscope.aistio.proto.WorkspaceInfo`)。The value.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/InventoryReport.java:941–953

addWorkspaces

public Builder addWorkspaces(int index, io.agentscope.aistio.proto.WorkspaceInfo value)

添加 addWorkspaces。

repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
valueio.agentscope.aistio.proto.WorkspaceInfo值(类型 `io.agentscope.aistio.proto.WorkspaceInfo`)。The value.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/InventoryReport.java:957–970

addWorkspaces

public Builder addWorkspaces(io.agentscope.aistio.proto.WorkspaceInfo.Builder builderForValue)

添加 addWorkspaces。

repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;

参数Parameters
名称Name类型Type说明Description
builderForValueio.agentscope.aistio.proto.WorkspaceInfo.Builder构建器用于值(类型 `io.agentscope.aistio.proto.WorkspaceInfo.Builder`)。The builder for value.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/InventoryReport.java:974–984

addWorkspaces

public Builder addWorkspaces(int index, io.agentscope.aistio.proto.WorkspaceInfo.Builder builderForValue)

添加 addWorkspaces。

repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
builderForValueio.agentscope.aistio.proto.WorkspaceInfo.Builder构建器用于值(类型 `io.agentscope.aistio.proto.WorkspaceInfo.Builder`)。The builder for value.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/InventoryReport.java:988–998

addAllWorkspaces

public Builder addAllWorkspaces(java.lang.Iterable<? extends io.agentscope.aistio.proto.WorkspaceInfo> values)

添加 addAllWorkspaces。

repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;

参数Parameters
名称Name类型Type说明Description
valuesjava.lang.Iterable<? extends io.agentscope.aistio.proto.WorkspaceInfo>值(类型 `java.lang.Iterable`)。The values.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/InventoryReport.java:1002–1013

clearWorkspaces

public Builder clearWorkspaces()

清空 clearWorkspaces。

repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;

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

removeWorkspaces

public Builder removeWorkspaces(int index)

移除 removeWorkspaces。

repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/InventoryReport.java:1030–1039

getWorkspacesBuilder

public io.agentscope.aistio.proto.WorkspaceInfo.Builder getWorkspacesBuilder(int index)

获取 getWorkspacesBuilder。

repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
返回Returns io.agentscope.aistio.proto.WorkspaceInfo.Builder
返回io.agentscope.aistio.协议.WorkspaceInfo.构建器。Returns io agentscope aistio proto workspace info builder.
源码Source io/agentscope/aistio/proto/InventoryReport.java:1043–1046

getWorkspacesOrBuilder

public io.agentscope.aistio.proto.WorkspaceInfoOrBuilder getWorkspacesOrBuilder(int index)

获取 getWorkspacesOrBuilder。

repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
返回Returns io.agentscope.aistio.proto.WorkspaceInfoOrBuilder
返回io.agentscope.aistio.协议.WorkspaceInfoOrBuilder。Returns io agentscope aistio proto workspace info or builder.
源码Source io/agentscope/aistio/proto/InventoryReport.java:1050–1056

getWorkspacesOrBuilderList

public java.util.List<? extends io.agentscope.aistio.proto.WorkspaceInfoOrBuilder> getWorkspacesOrBuilderList()

获取 getWorkspacesOrBuilderList。

repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;

返回Returns java.util.List<? extends io.agentscope.aistio.proto.WorkspaceInfoOrBuilder>
返回java.util.列出。Returns java util list.
源码Source io/agentscope/aistio/proto/InventoryReport.java:1060–1067

addWorkspacesBuilder

public io.agentscope.aistio.proto.WorkspaceInfo.Builder addWorkspacesBuilder()

添加 addWorkspacesBuilder。

repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;

返回Returns io.agentscope.aistio.proto.WorkspaceInfo.Builder
返回io.agentscope.aistio.协议.WorkspaceInfo.构建器。Returns io agentscope aistio proto workspace info builder.
源码Source io/agentscope/aistio/proto/InventoryReport.java:1071–1074

addWorkspacesBuilder

public io.agentscope.aistio.proto.WorkspaceInfo.Builder addWorkspacesBuilder(int index)

添加 addWorkspacesBuilder。

repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
返回Returns io.agentscope.aistio.proto.WorkspaceInfo.Builder
返回io.agentscope.aistio.协议.WorkspaceInfo.构建器。Returns io agentscope aistio proto workspace info builder.
源码Source io/agentscope/aistio/proto/InventoryReport.java:1078–1082

getWorkspacesBuilderList

public java.util.List<io.agentscope.aistio.proto.WorkspaceInfo.Builder> getWorkspacesBuilderList()

获取 getWorkspacesBuilderList。

repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;

返回Returns java.util.List<io.agentscope.aistio.proto.WorkspaceInfo.Builder>
返回java.util.列出。Returns java util list.
源码Source io/agentscope/aistio/proto/InventoryReport.java:1086–1089

hasHealth

public boolean hasHealth()

判断是否具有健康状态。

.agentscope.protocol.v1.InstanceHealth health = 3;

返回Returns boolean
返回布尔值,表示判断结果。Whether the health field is set.
源码Source io/agentscope/aistio/proto/InventoryReport.java:1112–1114

getHealth

public io.agentscope.aistio.proto.InstanceHealth getHealth()

获取健康状态。

.agentscope.protocol.v1.InstanceHealth health = 3;

返回Returns io.agentscope.aistio.proto.InstanceHealth
健康状态。The health.
源码Source io/agentscope/aistio/proto/InventoryReport.java:1119–1125

setHealth

public Builder setHealth(io.agentscope.aistio.proto.InstanceHealth value)

设置设置健康状态。

.agentscope.protocol.v1.InstanceHealth health = 3;

参数Parameters
名称Name类型Type说明Description
valueio.agentscope.aistio.proto.InstanceHealth值(类型 `io.agentscope.aistio.proto.InstanceHealth`)。The value.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/InventoryReport.java:1129–1141

setHealth

public Builder setHealth(io.agentscope.aistio.proto.InstanceHealth.Builder builderForValue)

设置设置健康状态。

.agentscope.protocol.v1.InstanceHealth health = 3;

参数Parameters
名称Name类型Type说明Description
builderForValueio.agentscope.aistio.proto.InstanceHealth.Builder构建器用于值(类型 `io.agentscope.aistio.proto.InstanceHealth.Builder`)。The builder for value.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/InventoryReport.java:1145–1155

mergeHealth

public Builder mergeHealth(io.agentscope.aistio.proto.InstanceHealth value)

设置该配置项。

.agentscope.protocol.v1.InstanceHealth health = 3;

参数Parameters
名称Name类型Type说明Description
valueio.agentscope.aistio.proto.InstanceHealth值(类型 `io.agentscope.aistio.proto.InstanceHealth`)。The value.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/InventoryReport.java:1159–1176

clearHealth

public Builder clearHealth()

清空健康状态。

.agentscope.protocol.v1.InstanceHealth health = 3;

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

getHealthBuilder

public io.agentscope.aistio.proto.InstanceHealth.Builder getHealthBuilder()

获取健康状态构建器。

.agentscope.protocol.v1.InstanceHealth health = 3;

返回Returns io.agentscope.aistio.proto.InstanceHealth.Builder
返回io.agentscope.aistio.协议.InstanceHealth.构建器。Returns io agentscope aistio proto instance health builder.
源码Source io/agentscope/aistio/proto/InventoryReport.java:1193–1197

getHealthOrBuilder

public io.agentscope.aistio.proto.InstanceHealthOrBuilder getHealthOrBuilder()

获取健康状态或构建器。

.agentscope.protocol.v1.InstanceHealth health = 3;

返回Returns io.agentscope.aistio.proto.InstanceHealthOrBuilder
返回io.agentscope.aistio.协议.InstanceHealthOrBuilder。Returns io agentscope aistio proto instance health or builder.
源码Source io/agentscope/aistio/proto/InventoryReport.java:1201–1208
基于官方固定版本源码静态生成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.