Builder
public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.controlplane.proto.SessionReportOrBuilder
io/agentscope/controlplane/proto/SessionReport.java:257–678构建器,用于构建并配置目标实例。位于 io.agentscope.controlplane.proto 包,继承自 com.google.protobuf.GeneratedMessage.Builder<Builder>,实现 io.agentscope.controlplane.proto.SessionReportOrBuilder。核心成员包括 getDescriptor、internalGetFieldAccessorTable、clear、getDescriptorForType、getDefaultInstanceForType、build。
Session state report (periodic batch, e.g. every 10s)
Protobuf type agentscope.protocol.v1.SessionReport
方法摘要Method Summary
方法详情Method Detail
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
获取描述符。
Returns the descriptor.
com.google.protobuf.Descriptors.Descriptorio/agentscope/controlplane/proto/SessionReport.java:261–264internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
返回 internalGetFieldAccessorTable 结果。
Returns the internal get field accessor table.
com.google.protobuf.GeneratedMessage.FieldAccessorTableio/agentscope/controlplane/proto/SessionReport.java:266–272clear
public Builder clear()
清空或重置内部状态。
Clears or resets internal state.
Builderio/agentscope/controlplane/proto/SessionReport.java:284–296getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
获取 getDescriptorForType。
Returns the descriptor for type.
com.google.protobuf.Descriptors.Descriptorio/agentscope/controlplane/proto/SessionReport.java:298–302getDefaultInstanceForType
public io.agentscope.controlplane.proto.SessionReport getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.
io.agentscope.controlplane.proto.SessionReportio/agentscope/controlplane/proto/SessionReport.java:304–307build
public io.agentscope.controlplane.proto.SessionReport build()
构建并返回最终实例。
Creates and returns an instance.
io.agentscope.controlplane.proto.SessionReportio/agentscope/controlplane/proto/SessionReport.java:309–316buildPartial
public io.agentscope.controlplane.proto.SessionReport buildPartial()
构建 buildPartial。
Builds the partial.
io.agentscope.controlplane.proto.SessionReportio/agentscope/controlplane/proto/SessionReport.java:318–325mergeFrom
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/controlplane/proto/SessionReport.java:343–351mergeFrom
public Builder mergeFrom(io.agentscope.controlplane.proto.SessionReport other)
设置该配置项。
Performs the merge from operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
other | io.agentscope.controlplane.proto.SessionReport | other(类型 `io.agentscope.controlplane.proto.SessionReport`)。The other. |
Builderio/agentscope/controlplane/proto/SessionReport.java:353–384isInitialized
public final boolean isInitialized()
判断是否已初始化。
Returns whether the initialized.
booleanio/agentscope/controlplane/proto/SessionReport.java:386–389mergeFrom
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/controlplane/proto/SessionReport.java:391–434getSessionsList
public java.util.List<io.agentscope.controlplane.proto.SessionSnapshot> getSessionsList()
获取会话列表。
repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;
java.util.List<io.agentscope.controlplane.proto.SessionSnapshot>io/agentscope/controlplane/proto/SessionReport.java:452–458getSessionsCount
public int getSessionsCount()
获取会话数量。
repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;
intio/agentscope/controlplane/proto/SessionReport.java:462–468getSessions
public io.agentscope.controlplane.proto.SessionSnapshot getSessions(int index)
获取会话。
repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
io.agentscope.controlplane.proto.SessionSnapshotio/agentscope/controlplane/proto/SessionReport.java:472–478setSessions
public Builder setSessions(int index, io.agentscope.controlplane.proto.SessionSnapshot value)
设置设置会话。
repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
value | io.agentscope.controlplane.proto.SessionSnapshot | 值(类型 `io.agentscope.controlplane.proto.SessionSnapshot`)。The value. |
Builderio/agentscope/controlplane/proto/SessionReport.java:482–495setSessions
public Builder setSessions(int index, io.agentscope.controlplane.proto.SessionSnapshot.Builder builderForValue)
设置设置会话。
repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
builderForValue | io.agentscope.controlplane.proto.SessionSnapshot.Builder | 构建器用于值(类型 `io.agentscope.controlplane.proto.SessionSnapshot.Builder`)。The builder for value. |
Builderio/agentscope/controlplane/proto/SessionReport.java:499–509addSessions
public Builder addSessions(io.agentscope.controlplane.proto.SessionSnapshot value)
添加会话。
repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | io.agentscope.controlplane.proto.SessionSnapshot | 值(类型 `io.agentscope.controlplane.proto.SessionSnapshot`)。The value. |
Builderio/agentscope/controlplane/proto/SessionReport.java:513–525addSessions
public Builder addSessions(int index, io.agentscope.controlplane.proto.SessionSnapshot value)
添加会话。
repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
value | io.agentscope.controlplane.proto.SessionSnapshot | 值(类型 `io.agentscope.controlplane.proto.SessionSnapshot`)。The value. |
Builderio/agentscope/controlplane/proto/SessionReport.java:529–542addSessions
public Builder addSessions(io.agentscope.controlplane.proto.SessionSnapshot.Builder builderForValue)
添加会话。
repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
builderForValue | io.agentscope.controlplane.proto.SessionSnapshot.Builder | 构建器用于值(类型 `io.agentscope.controlplane.proto.SessionSnapshot.Builder`)。The builder for value. |
Builderio/agentscope/controlplane/proto/SessionReport.java:546–556addSessions
public Builder addSessions(int index, io.agentscope.controlplane.proto.SessionSnapshot.Builder builderForValue)
添加会话。
repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
builderForValue | io.agentscope.controlplane.proto.SessionSnapshot.Builder | 构建器用于值(类型 `io.agentscope.controlplane.proto.SessionSnapshot.Builder`)。The builder for value. |
Builderio/agentscope/controlplane/proto/SessionReport.java:560–570addAllSessions
public Builder addAllSessions(java.lang.Iterable<? extends io.agentscope.controlplane.proto.SessionSnapshot> values)
添加所有会话。
repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
values | java.lang.Iterable<? extends io.agentscope.controlplane.proto.SessionSnapshot> | 值(类型 `java.lang.Iterable`)。The values. |
Builderio/agentscope/controlplane/proto/SessionReport.java:574–585clearSessions
public Builder clearSessions()
清空会话。
repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;
Builderio/agentscope/controlplane/proto/SessionReport.java:589–598removeSessions
public Builder removeSessions(int index)
移除会话。
repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
Builderio/agentscope/controlplane/proto/SessionReport.java:602–611getSessionsBuilder
public io.agentscope.controlplane.proto.SessionSnapshot.Builder getSessionsBuilder(int index)
获取会话构建器。
repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
io.agentscope.controlplane.proto.SessionSnapshot.Builderio/agentscope/controlplane/proto/SessionReport.java:615–618getSessionsOrBuilder
public io.agentscope.controlplane.proto.SessionSnapshotOrBuilder getSessionsOrBuilder(int index)
获取会话或构建器。
repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
io.agentscope.controlplane.proto.SessionSnapshotOrBuilderio/agentscope/controlplane/proto/SessionReport.java:622–628getSessionsOrBuilderList
public java.util.List<? extends io.agentscope.controlplane.proto.SessionSnapshotOrBuilder> getSessionsOrBuilderList()
获取会话或构建器列表。
repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;
java.util.List<? extends io.agentscope.controlplane.proto.SessionSnapshotOrBuilder>io/agentscope/controlplane/proto/SessionReport.java:632–639addSessionsBuilder
public io.agentscope.controlplane.proto.SessionSnapshot.Builder addSessionsBuilder()
添加会话构建器。
repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;
io.agentscope.controlplane.proto.SessionSnapshot.Builderio/agentscope/controlplane/proto/SessionReport.java:643–646addSessionsBuilder
public io.agentscope.controlplane.proto.SessionSnapshot.Builder addSessionsBuilder(int index)
添加会话构建器。
repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
io.agentscope.controlplane.proto.SessionSnapshot.Builderio/agentscope/controlplane/proto/SessionReport.java:650–654getSessionsBuilderList
public java.util.List<io.agentscope.controlplane.proto.SessionSnapshot.Builder> getSessionsBuilderList()
获取会话构建器列表。
repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;
java.util.List<io.agentscope.controlplane.proto.SessionSnapshot.Builder>io/agentscope/controlplane/proto/SessionReport.java:658–661