Builder
public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.aistio.proto.InventoryReportOrBuilder
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 Detail
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
获取描述符。
Returns the descriptor.
com.google.protobuf.Descriptors.Descriptorio/agentscope/aistio/proto/InventoryReport.java:363–366internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
返回 internalGetFieldAccessorTable 结果。
Returns the internal get field accessor table.
com.google.protobuf.GeneratedMessage.FieldAccessorTableio/agentscope/aistio/proto/InventoryReport.java:368–374clear
public Builder clear()
清空或重置内部状态。
Clears or resets internal state.
Builderio/agentscope/aistio/proto/InventoryReport.java:394–418getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
获取 getDescriptorForType。
Returns the descriptor for type.
com.google.protobuf.Descriptors.Descriptorio/agentscope/aistio/proto/InventoryReport.java:420–424getDefaultInstanceForType
public io.agentscope.aistio.proto.InventoryReport getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.
io.agentscope.aistio.proto.InventoryReportio/agentscope/aistio/proto/InventoryReport.java:426–429build
public io.agentscope.aistio.proto.InventoryReport build()
构建并返回最终实例。
Creates and returns an instance.
io.agentscope.aistio.proto.InventoryReportio/agentscope/aistio/proto/InventoryReport.java:431–438buildPartial
public io.agentscope.aistio.proto.InventoryReport buildPartial()
构建 buildPartial。
Builds the partial.
io.agentscope.aistio.proto.InventoryReportio/agentscope/aistio/proto/InventoryReport.java:440–447mergeFrom
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/InventoryReport.java:482–490mergeFrom
public Builder mergeFrom(io.agentscope.aistio.proto.InventoryReport other)
设置该配置项。
Performs the merge from operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
other | io.agentscope.aistio.proto.InventoryReport | other(类型 `io.agentscope.aistio.proto.InventoryReport`)。The other. |
Builderio/agentscope/aistio/proto/InventoryReport.java:492–552isInitialized
public final boolean isInitialized()
判断是否已初始化。
Returns whether the initialized.
booleanio/agentscope/aistio/proto/InventoryReport.java:554–557mergeFrom
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/InventoryReport.java:559–622getSubagentsList
public java.util.List<io.agentscope.aistio.proto.SubagentInfo> getSubagentsList()
获取 getSubagentsList。
repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;
java.util.List<io.agentscope.aistio.proto.SubagentInfo>io/agentscope/aistio/proto/InventoryReport.java:640–646getSubagentsCount
public int getSubagentsCount()
获取 getSubagentsCount。
repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;
intio/agentscope/aistio/proto/InventoryReport.java:650–656getSubagents
public io.agentscope.aistio.proto.SubagentInfo getSubagents(int index)
获取 getSubagents。
repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
io.agentscope.aistio.proto.SubagentInfoio/agentscope/aistio/proto/InventoryReport.java:660–666setSubagents
public Builder setSubagents(int index, io.agentscope.aistio.proto.SubagentInfo value)
设置该配置项。
repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
value | io.agentscope.aistio.proto.SubagentInfo | 值(类型 `io.agentscope.aistio.proto.SubagentInfo`)。The value. |
Builderio/agentscope/aistio/proto/InventoryReport.java:670–683setSubagents
public Builder setSubagents(int index, io.agentscope.aistio.proto.SubagentInfo.Builder builderForValue)
设置该配置项。
repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
builderForValue | io.agentscope.aistio.proto.SubagentInfo.Builder | 构建器用于值(类型 `io.agentscope.aistio.proto.SubagentInfo.Builder`)。The builder for value. |
Builderio/agentscope/aistio/proto/InventoryReport.java:687–697addSubagents
public Builder addSubagents(io.agentscope.aistio.proto.SubagentInfo value)
添加 addSubagents。
repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | io.agentscope.aistio.proto.SubagentInfo | 值(类型 `io.agentscope.aistio.proto.SubagentInfo`)。The value. |
Builderio/agentscope/aistio/proto/InventoryReport.java:701–713addSubagents
public Builder addSubagents(int index, io.agentscope.aistio.proto.SubagentInfo value)
添加 addSubagents。
repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
value | io.agentscope.aistio.proto.SubagentInfo | 值(类型 `io.agentscope.aistio.proto.SubagentInfo`)。The value. |
Builderio/agentscope/aistio/proto/InventoryReport.java:717–730addSubagents
public Builder addSubagents(io.agentscope.aistio.proto.SubagentInfo.Builder builderForValue)
添加 addSubagents。
repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
builderForValue | io.agentscope.aistio.proto.SubagentInfo.Builder | 构建器用于值(类型 `io.agentscope.aistio.proto.SubagentInfo.Builder`)。The builder for value. |
Builderio/agentscope/aistio/proto/InventoryReport.java:734–744addSubagents
public Builder addSubagents(int index, io.agentscope.aistio.proto.SubagentInfo.Builder builderForValue)
添加 addSubagents。
repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
builderForValue | io.agentscope.aistio.proto.SubagentInfo.Builder | 构建器用于值(类型 `io.agentscope.aistio.proto.SubagentInfo.Builder`)。The builder for value. |
Builderio/agentscope/aistio/proto/InventoryReport.java:748–758addAllSubagents
public Builder addAllSubagents(java.lang.Iterable<? extends io.agentscope.aistio.proto.SubagentInfo> values)
添加 addAllSubagents。
repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
values | java.lang.Iterable<? extends io.agentscope.aistio.proto.SubagentInfo> | 值(类型 `java.lang.Iterable`)。The values. |
Builderio/agentscope/aistio/proto/InventoryReport.java:762–773clearSubagents
public Builder clearSubagents()
清空 clearSubagents。
repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;
Builderio/agentscope/aistio/proto/InventoryReport.java:777–786removeSubagents
public Builder removeSubagents(int index)
移除 removeSubagents。
repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
Builderio/agentscope/aistio/proto/InventoryReport.java:790–799getSubagentsBuilder
public io.agentscope.aistio.proto.SubagentInfo.Builder getSubagentsBuilder(int index)
获取 getSubagentsBuilder。
repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
io.agentscope.aistio.proto.SubagentInfo.Builderio/agentscope/aistio/proto/InventoryReport.java:803–806getSubagentsOrBuilder
public io.agentscope.aistio.proto.SubagentInfoOrBuilder getSubagentsOrBuilder(int index)
获取 getSubagentsOrBuilder。
repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
io.agentscope.aistio.proto.SubagentInfoOrBuilderio/agentscope/aistio/proto/InventoryReport.java:810–816getSubagentsOrBuilderList
public java.util.List<? extends io.agentscope.aistio.proto.SubagentInfoOrBuilder> getSubagentsOrBuilderList()
获取 getSubagentsOrBuilderList。
repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;
java.util.List<? extends io.agentscope.aistio.proto.SubagentInfoOrBuilder>io/agentscope/aistio/proto/InventoryReport.java:820–827addSubagentsBuilder
public io.agentscope.aistio.proto.SubagentInfo.Builder addSubagentsBuilder()
添加 addSubagentsBuilder。
repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;
io.agentscope.aistio.proto.SubagentInfo.Builderio/agentscope/aistio/proto/InventoryReport.java:831–834addSubagentsBuilder
public io.agentscope.aistio.proto.SubagentInfo.Builder addSubagentsBuilder(int index)
添加 addSubagentsBuilder。
repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
io.agentscope.aistio.proto.SubagentInfo.Builderio/agentscope/aistio/proto/InventoryReport.java:838–842getSubagentsBuilderList
public java.util.List<io.agentscope.aistio.proto.SubagentInfo.Builder> getSubagentsBuilderList()
获取 getSubagentsBuilderList。
repeated .agentscope.protocol.v1.SubagentInfo subagents = 1;
java.util.List<io.agentscope.aistio.proto.SubagentInfo.Builder>io/agentscope/aistio/proto/InventoryReport.java:846–849getWorkspacesList
public java.util.List<io.agentscope.aistio.proto.WorkspaceInfo> getWorkspacesList()
获取 getWorkspacesList。
repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;
java.util.List<io.agentscope.aistio.proto.WorkspaceInfo>io/agentscope/aistio/proto/InventoryReport.java:880–886getWorkspacesCount
public int getWorkspacesCount()
获取 getWorkspacesCount。
repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;
intio/agentscope/aistio/proto/InventoryReport.java:890–896getWorkspaces
public io.agentscope.aistio.proto.WorkspaceInfo getWorkspaces(int index)
获取 getWorkspaces。
repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
io.agentscope.aistio.proto.WorkspaceInfoio/agentscope/aistio/proto/InventoryReport.java:900–906setWorkspaces
public Builder setWorkspaces(int index, io.agentscope.aistio.proto.WorkspaceInfo value)
设置该配置项。
repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
value | io.agentscope.aistio.proto.WorkspaceInfo | 值(类型 `io.agentscope.aistio.proto.WorkspaceInfo`)。The value. |
Builderio/agentscope/aistio/proto/InventoryReport.java:910–923setWorkspaces
public Builder setWorkspaces(int index, io.agentscope.aistio.proto.WorkspaceInfo.Builder builderForValue)
设置该配置项。
repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
builderForValue | io.agentscope.aistio.proto.WorkspaceInfo.Builder | 构建器用于值(类型 `io.agentscope.aistio.proto.WorkspaceInfo.Builder`)。The builder for value. |
Builderio/agentscope/aistio/proto/InventoryReport.java:927–937addWorkspaces
public Builder addWorkspaces(io.agentscope.aistio.proto.WorkspaceInfo value)
添加 addWorkspaces。
repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | io.agentscope.aistio.proto.WorkspaceInfo | 值(类型 `io.agentscope.aistio.proto.WorkspaceInfo`)。The value. |
Builderio/agentscope/aistio/proto/InventoryReport.java:941–953addWorkspaces
public Builder addWorkspaces(int index, io.agentscope.aistio.proto.WorkspaceInfo value)
添加 addWorkspaces。
repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
value | io.agentscope.aistio.proto.WorkspaceInfo | 值(类型 `io.agentscope.aistio.proto.WorkspaceInfo`)。The value. |
Builderio/agentscope/aistio/proto/InventoryReport.java:957–970addWorkspaces
public Builder addWorkspaces(io.agentscope.aistio.proto.WorkspaceInfo.Builder builderForValue)
添加 addWorkspaces。
repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
builderForValue | io.agentscope.aistio.proto.WorkspaceInfo.Builder | 构建器用于值(类型 `io.agentscope.aistio.proto.WorkspaceInfo.Builder`)。The builder for value. |
Builderio/agentscope/aistio/proto/InventoryReport.java:974–984addWorkspaces
public Builder addWorkspaces(int index, io.agentscope.aistio.proto.WorkspaceInfo.Builder builderForValue)
添加 addWorkspaces。
repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
builderForValue | io.agentscope.aistio.proto.WorkspaceInfo.Builder | 构建器用于值(类型 `io.agentscope.aistio.proto.WorkspaceInfo.Builder`)。The builder for value. |
Builderio/agentscope/aistio/proto/InventoryReport.java:988–998addAllWorkspaces
public Builder addAllWorkspaces(java.lang.Iterable<? extends io.agentscope.aistio.proto.WorkspaceInfo> values)
添加 addAllWorkspaces。
repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
values | java.lang.Iterable<? extends io.agentscope.aistio.proto.WorkspaceInfo> | 值(类型 `java.lang.Iterable`)。The values. |
Builderio/agentscope/aistio/proto/InventoryReport.java:1002–1013clearWorkspaces
public Builder clearWorkspaces()
清空 clearWorkspaces。
repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;
Builderio/agentscope/aistio/proto/InventoryReport.java:1017–1026removeWorkspaces
public Builder removeWorkspaces(int index)
移除 removeWorkspaces。
repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
Builderio/agentscope/aistio/proto/InventoryReport.java:1030–1039getWorkspacesBuilder
public io.agentscope.aistio.proto.WorkspaceInfo.Builder getWorkspacesBuilder(int index)
获取 getWorkspacesBuilder。
repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
io.agentscope.aistio.proto.WorkspaceInfo.Builderio/agentscope/aistio/proto/InventoryReport.java:1043–1046getWorkspacesOrBuilder
public io.agentscope.aistio.proto.WorkspaceInfoOrBuilder getWorkspacesOrBuilder(int index)
获取 getWorkspacesOrBuilder。
repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
io.agentscope.aistio.proto.WorkspaceInfoOrBuilderio/agentscope/aistio/proto/InventoryReport.java:1050–1056getWorkspacesOrBuilderList
public java.util.List<? extends io.agentscope.aistio.proto.WorkspaceInfoOrBuilder> getWorkspacesOrBuilderList()
获取 getWorkspacesOrBuilderList。
repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;
java.util.List<? extends io.agentscope.aistio.proto.WorkspaceInfoOrBuilder>io/agentscope/aistio/proto/InventoryReport.java:1060–1067addWorkspacesBuilder
public io.agentscope.aistio.proto.WorkspaceInfo.Builder addWorkspacesBuilder()
添加 addWorkspacesBuilder。
repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;
io.agentscope.aistio.proto.WorkspaceInfo.Builderio/agentscope/aistio/proto/InventoryReport.java:1071–1074addWorkspacesBuilder
public io.agentscope.aistio.proto.WorkspaceInfo.Builder addWorkspacesBuilder(int index)
添加 addWorkspacesBuilder。
repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
io.agentscope.aistio.proto.WorkspaceInfo.Builderio/agentscope/aistio/proto/InventoryReport.java:1078–1082getWorkspacesBuilderList
public java.util.List<io.agentscope.aistio.proto.WorkspaceInfo.Builder> getWorkspacesBuilderList()
获取 getWorkspacesBuilderList。
repeated .agentscope.protocol.v1.WorkspaceInfo workspaces = 2;
java.util.List<io.agentscope.aistio.proto.WorkspaceInfo.Builder>io/agentscope/aistio/proto/InventoryReport.java:1086–1089hasHealth
public boolean hasHealth()
判断是否具有健康状态。
.agentscope.protocol.v1.InstanceHealth health = 3;
booleanio/agentscope/aistio/proto/InventoryReport.java:1112–1114getHealth
public io.agentscope.aistio.proto.InstanceHealth getHealth()
获取健康状态。
.agentscope.protocol.v1.InstanceHealth health = 3;
io.agentscope.aistio.proto.InstanceHealthio/agentscope/aistio/proto/InventoryReport.java:1119–1125setHealth
public Builder setHealth(io.agentscope.aistio.proto.InstanceHealth value)
设置设置健康状态。
.agentscope.protocol.v1.InstanceHealth health = 3;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | io.agentscope.aistio.proto.InstanceHealth | 值(类型 `io.agentscope.aistio.proto.InstanceHealth`)。The value. |
Builderio/agentscope/aistio/proto/InventoryReport.java:1129–1141setHealth
public Builder setHealth(io.agentscope.aistio.proto.InstanceHealth.Builder builderForValue)
设置设置健康状态。
.agentscope.protocol.v1.InstanceHealth health = 3;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
builderForValue | io.agentscope.aistio.proto.InstanceHealth.Builder | 构建器用于值(类型 `io.agentscope.aistio.proto.InstanceHealth.Builder`)。The builder for value. |
Builderio/agentscope/aistio/proto/InventoryReport.java:1145–1155mergeHealth
public Builder mergeHealth(io.agentscope.aistio.proto.InstanceHealth value)
设置该配置项。
.agentscope.protocol.v1.InstanceHealth health = 3;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | io.agentscope.aistio.proto.InstanceHealth | 值(类型 `io.agentscope.aistio.proto.InstanceHealth`)。The value. |
Builderio/agentscope/aistio/proto/InventoryReport.java:1159–1176clearHealth
public Builder clearHealth()
清空健康状态。
.agentscope.protocol.v1.InstanceHealth health = 3;
Builderio/agentscope/aistio/proto/InventoryReport.java:1180–1189getHealthBuilder
public io.agentscope.aistio.proto.InstanceHealth.Builder getHealthBuilder()
获取健康状态构建器。
.agentscope.protocol.v1.InstanceHealth health = 3;
io.agentscope.aistio.proto.InstanceHealth.Builderio/agentscope/aistio/proto/InventoryReport.java:1193–1197getHealthOrBuilder
public io.agentscope.aistio.proto.InstanceHealthOrBuilder getHealthOrBuilder()
获取健康状态或构建器。
.agentscope.protocol.v1.InstanceHealth health = 3;
io.agentscope.aistio.proto.InstanceHealthOrBuilderio/agentscope/aistio/proto/InventoryReport.java:1201–1208