Builder
public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.aistio.proto.EventReportOrBuilder
io/agentscope/aistio/proto/EventReport.java:319–851构建器,用于构建并配置目标实例。位于 io.agentscope.aistio.proto 包,继承自 com.google.protobuf.GeneratedMessage.Builder<Builder>,实现 io.agentscope.aistio.proto.EventReportOrBuilder。核心成员包括 getDescriptor、internalGetFieldAccessorTable、clear、getDescriptorForType、getDefaultInstanceForType、build。
EventReport is the Level-2 event stream report (batched, e.g. every 5s or
every 20 events). Written by the control plane into the session_events table.
Protobuf type agentscope.protocol.v1.EventReport
方法摘要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/EventReport.java:323–326internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
返回 internalGetFieldAccessorTable 结果。
Returns the internal get field accessor table.
com.google.protobuf.GeneratedMessage.FieldAccessorTableio/agentscope/aistio/proto/EventReport.java:328–334clear
public Builder clear()
清空或重置内部状态。
Clears or resets internal state.
Builderio/agentscope/aistio/proto/EventReport.java:346–359getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
获取 getDescriptorForType。
Returns the descriptor for type.
com.google.protobuf.Descriptors.Descriptorio/agentscope/aistio/proto/EventReport.java:361–365getDefaultInstanceForType
public io.agentscope.aistio.proto.EventReport getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.
io.agentscope.aistio.proto.EventReportio/agentscope/aistio/proto/EventReport.java:367–370build
public io.agentscope.aistio.proto.EventReport build()
构建并返回最终实例。
Creates and returns an instance.
io.agentscope.aistio.proto.EventReportio/agentscope/aistio/proto/EventReport.java:372–379buildPartial
public io.agentscope.aistio.proto.EventReport buildPartial()
构建 buildPartial。
Builds the partial.
io.agentscope.aistio.proto.EventReportio/agentscope/aistio/proto/EventReport.java:381–388mergeFrom
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/EventReport.java:409–417mergeFrom
public Builder mergeFrom(io.agentscope.aistio.proto.EventReport other)
设置该配置项。
Performs the merge from operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
other | io.agentscope.aistio.proto.EventReport | other(类型 `io.agentscope.aistio.proto.EventReport`)。The other. |
Builderio/agentscope/aistio/proto/EventReport.java:419–455isInitialized
public final boolean isInitialized()
判断是否已初始化。
Returns whether the initialized.
booleanio/agentscope/aistio/proto/EventReport.java:457–460mergeFrom
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/EventReport.java:462–510getEventsList
public java.util.List<io.agentscope.aistio.proto.SessionEventMsg> getEventsList()
获取事件列表。
repeated .agentscope.protocol.v1.SessionEventMsg events = 1;
java.util.List<io.agentscope.aistio.proto.SessionEventMsg>io/agentscope/aistio/proto/EventReport.java:528–534getEventsCount
public int getEventsCount()
获取事件数量。
repeated .agentscope.protocol.v1.SessionEventMsg events = 1;
intio/agentscope/aistio/proto/EventReport.java:538–544getEvents
public io.agentscope.aistio.proto.SessionEventMsg getEvents(int index)
获取事件。
repeated .agentscope.protocol.v1.SessionEventMsg events = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
io.agentscope.aistio.proto.SessionEventMsgio/agentscope/aistio/proto/EventReport.java:548–554setEvents
public Builder setEvents(int index, io.agentscope.aistio.proto.SessionEventMsg value)
设置设置事件。
repeated .agentscope.protocol.v1.SessionEventMsg events = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
value | io.agentscope.aistio.proto.SessionEventMsg | 值(类型 `io.agentscope.aistio.proto.SessionEventMsg`)。The value. |
Builderio/agentscope/aistio/proto/EventReport.java:558–571setEvents
public Builder setEvents(int index, io.agentscope.aistio.proto.SessionEventMsg.Builder builderForValue)
设置设置事件。
repeated .agentscope.protocol.v1.SessionEventMsg events = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
builderForValue | io.agentscope.aistio.proto.SessionEventMsg.Builder | 构建器用于值(类型 `io.agentscope.aistio.proto.SessionEventMsg.Builder`)。The builder for value. |
Builderio/agentscope/aistio/proto/EventReport.java:575–585addEvents
public Builder addEvents(io.agentscope.aistio.proto.SessionEventMsg value)
添加事件。
repeated .agentscope.protocol.v1.SessionEventMsg events = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | io.agentscope.aistio.proto.SessionEventMsg | 值(类型 `io.agentscope.aistio.proto.SessionEventMsg`)。The value. |
Builderio/agentscope/aistio/proto/EventReport.java:589–601addEvents
public Builder addEvents(int index, io.agentscope.aistio.proto.SessionEventMsg value)
添加事件。
repeated .agentscope.protocol.v1.SessionEventMsg events = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
value | io.agentscope.aistio.proto.SessionEventMsg | 值(类型 `io.agentscope.aistio.proto.SessionEventMsg`)。The value. |
Builderio/agentscope/aistio/proto/EventReport.java:605–618addEvents
public Builder addEvents(io.agentscope.aistio.proto.SessionEventMsg.Builder builderForValue)
添加事件。
repeated .agentscope.protocol.v1.SessionEventMsg events = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
builderForValue | io.agentscope.aistio.proto.SessionEventMsg.Builder | 构建器用于值(类型 `io.agentscope.aistio.proto.SessionEventMsg.Builder`)。The builder for value. |
Builderio/agentscope/aistio/proto/EventReport.java:622–632addEvents
public Builder addEvents(int index, io.agentscope.aistio.proto.SessionEventMsg.Builder builderForValue)
添加事件。
repeated .agentscope.protocol.v1.SessionEventMsg events = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
builderForValue | io.agentscope.aistio.proto.SessionEventMsg.Builder | 构建器用于值(类型 `io.agentscope.aistio.proto.SessionEventMsg.Builder`)。The builder for value. |
Builderio/agentscope/aistio/proto/EventReport.java:636–646addAllEvents
public Builder addAllEvents(java.lang.Iterable<? extends io.agentscope.aistio.proto.SessionEventMsg> values)
添加所有事件。
repeated .agentscope.protocol.v1.SessionEventMsg events = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
values | java.lang.Iterable<? extends io.agentscope.aistio.proto.SessionEventMsg> | 值(类型 `java.lang.Iterable`)。The values. |
Builderio/agentscope/aistio/proto/EventReport.java:650–661clearEvents
public Builder clearEvents()
清空事件。
repeated .agentscope.protocol.v1.SessionEventMsg events = 1;
Builderio/agentscope/aistio/proto/EventReport.java:665–674removeEvents
public Builder removeEvents(int index)
移除事件。
repeated .agentscope.protocol.v1.SessionEventMsg events = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
Builderio/agentscope/aistio/proto/EventReport.java:678–687getEventsBuilder
public io.agentscope.aistio.proto.SessionEventMsg.Builder getEventsBuilder(int index)
获取事件构建器。
repeated .agentscope.protocol.v1.SessionEventMsg events = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
io.agentscope.aistio.proto.SessionEventMsg.Builderio/agentscope/aistio/proto/EventReport.java:691–694getEventsOrBuilder
public io.agentscope.aistio.proto.SessionEventMsgOrBuilder getEventsOrBuilder(int index)
获取事件或构建器。
repeated .agentscope.protocol.v1.SessionEventMsg events = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
io.agentscope.aistio.proto.SessionEventMsgOrBuilderio/agentscope/aistio/proto/EventReport.java:698–704getEventsOrBuilderList
public java.util.List<? extends io.agentscope.aistio.proto.SessionEventMsgOrBuilder> getEventsOrBuilderList()
获取事件或构建器列表。
repeated .agentscope.protocol.v1.SessionEventMsg events = 1;
java.util.List<? extends io.agentscope.aistio.proto.SessionEventMsgOrBuilder>io/agentscope/aistio/proto/EventReport.java:708–715addEventsBuilder
public io.agentscope.aistio.proto.SessionEventMsg.Builder addEventsBuilder()
添加事件构建器。
repeated .agentscope.protocol.v1.SessionEventMsg events = 1;
io.agentscope.aistio.proto.SessionEventMsg.Builderio/agentscope/aistio/proto/EventReport.java:719–722addEventsBuilder
public io.agentscope.aistio.proto.SessionEventMsg.Builder addEventsBuilder(int index)
添加事件构建器。
repeated .agentscope.protocol.v1.SessionEventMsg events = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index. |
io.agentscope.aistio.proto.SessionEventMsg.Builderio/agentscope/aistio/proto/EventReport.java:726–730getEventsBuilderList
public java.util.List<io.agentscope.aistio.proto.SessionEventMsg.Builder> getEventsBuilderList()
获取事件构建器列表。
repeated .agentscope.protocol.v1.SessionEventMsg events = 1;
java.util.List<io.agentscope.aistio.proto.SessionEventMsg.Builder>io/agentscope/aistio/proto/EventReport.java:734–737getReportId
public java.lang.String getReportId()
获取报告标识。
Stable across retries.
java.lang.Stringio/agentscope/aistio/proto/EventReport.java:763–774getReportIdBytes
public com.google.protobuf.ByteString getReportIdBytes()
获取报告标识字节。
Stable across retries.
com.google.protobuf.ByteStringio/agentscope/aistio/proto/EventReport.java:784–796setReportId
public Builder setReportId(java.lang.String value)
设置设置报告标识。
Stable across retries.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | reportId 到设置。The reportId to set. |
Builderio/agentscope/aistio/proto/EventReport.java:807–814clearReportId
public Builder clearReportId()
清空报告标识。
Stable across retries.
Builderio/agentscope/aistio/proto/EventReport.java:824–829setReportIdBytes
public Builder setReportIdBytes(com.google.protobuf.ByteString value)
设置设置报告标识字节。
Stable across retries.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于 reportId 到设置。The bytes for reportId to set. |
Builderio/agentscope/aistio/proto/EventReport.java:840–848