Builder
public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.controlplane.proto.SessionEventMsgOrBuilder
io/agentscope/controlplane/proto/SessionEventMsg.java:691–1745构建器,用于构建并配置目标实例。位于 io.agentscope.controlplane.proto 包,继承自 com.google.protobuf.GeneratedMessage.Builder<Builder>,实现 io.agentscope.controlplane.proto.SessionEventMsgOrBuilder。核心成员包括 getDescriptor、internalGetFieldAccessorTable、clear、getDescriptorForType、getDefaultInstanceForType、build。
Protobuf type agentscope.protocol.v1.SessionEventMsg
方法摘要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/SessionEventMsg.java:695–698internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
返回 internalGetFieldAccessorTable 结果。
Returns the internal get field accessor table.
com.google.protobuf.GeneratedMessage.FieldAccessorTableio/agentscope/controlplane/proto/SessionEventMsg.java:700–706clear
public Builder clear()
清空或重置内部状态。
Clears or resets internal state.
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:718–736getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
获取 getDescriptorForType。
Returns the descriptor for type.
com.google.protobuf.Descriptors.Descriptorio/agentscope/controlplane/proto/SessionEventMsg.java:738–742getDefaultInstanceForType
public io.agentscope.controlplane.proto.SessionEventMsg getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.
io.agentscope.controlplane.proto.SessionEventMsgio/agentscope/controlplane/proto/SessionEventMsg.java:744–747build
public io.agentscope.controlplane.proto.SessionEventMsg build()
构建并返回最终实例。
Creates and returns an instance.
io.agentscope.controlplane.proto.SessionEventMsgio/agentscope/controlplane/proto/SessionEventMsg.java:749–756buildPartial
public io.agentscope.controlplane.proto.SessionEventMsg buildPartial()
构建 buildPartial。
Builds the partial.
io.agentscope.controlplane.proto.SessionEventMsgio/agentscope/controlplane/proto/SessionEventMsg.java:758–764mergeFrom
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/SessionEventMsg.java:809–817mergeFrom
public Builder mergeFrom(io.agentscope.controlplane.proto.SessionEventMsg other)
设置该配置项。
Performs the merge from operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
other | io.agentscope.controlplane.proto.SessionEventMsg | other(类型 `io.agentscope.controlplane.proto.SessionEventMsg`)。The other. |
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:819–875isInitialized
public final boolean isInitialized()
判断是否已初始化。
Returns whether the initialized.
booleanio/agentscope/controlplane/proto/SessionEventMsg.java:877–880mergeFrom
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/SessionEventMsg.java:882–977getSessionId
public java.lang.String getSessionId()
获取会话标识。
string session_id = 1;
java.lang.Stringio/agentscope/controlplane/proto/SessionEventMsg.java:985–996getSessionIdBytes
public com.google.protobuf.ByteString getSessionIdBytes()
获取会话标识字节。
string session_id = 1;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/SessionEventMsg.java:1001–1013setSessionId
public Builder setSessionId(java.lang.String value)
设置设置会话标识。
string session_id = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | 会话标识到设置。The sessionId to set. |
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1019–1026clearSessionId
public Builder clearSessionId()
清空会话标识。
string session_id = 1;
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1031–1036setSessionIdBytes
public Builder setSessionIdBytes(com.google.protobuf.ByteString value)
设置设置会话标识字节。
string session_id = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于会话标识到设置。The bytes for sessionId to set. |
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1042–1050getSeq
public int getSeq()
获取 getSeq。
monotonically increasing per session; idempotency key int32 seq = 2;
intio/agentscope/controlplane/proto/SessionEventMsg.java:1061–1064setSeq
public Builder setSeq(int value)
设置该配置项。
monotonically increasing per session; idempotency key int32 seq = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | int | 值(类型 `int`)。The seq to set. |
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1074–1080clearSeq
public Builder clearSeq()
清空 clearSeq。
monotonically increasing per session; idempotency key int32 seq = 2;
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1089–1094getEventType
public java.lang.String getEventType()
获取事件类型。
session_start | message | tool_call | tool_result | session_end | compaction string event_type = 3;
java.lang.Stringio/agentscope/controlplane/proto/SessionEventMsg.java:1105–1116getEventTypeBytes
public com.google.protobuf.ByteString getEventTypeBytes()
获取事件类型字节。
session_start | message | tool_call | tool_result | session_end | compaction string event_type = 3;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/SessionEventMsg.java:1125–1137setEventType
public Builder setEventType(java.lang.String value)
设置设置事件类型。
session_start | message | tool_call | tool_result | session_end | compaction string event_type = 3;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | eventType 到设置。The eventType to set. |
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1147–1154clearEventType
public Builder clearEventType()
清空事件类型。
session_start | message | tool_call | tool_result | session_end | compaction string event_type = 3;
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1163–1168setEventTypeBytes
public Builder setEventTypeBytes(com.google.protobuf.ByteString value)
设置设置事件类型字节。
session_start | message | tool_call | tool_result | session_end | compaction string event_type = 3;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于 eventType 到设置。The bytes for eventType to set. |
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1178–1186getOccurredAt
public long getOccurredAt()
获取 getOccurredAt。
unix milliseconds int64 occurred_at = 4;
longio/agentscope/controlplane/proto/SessionEventMsg.java:1197–1200setOccurredAt
public Builder setOccurredAt(long value)
设置该配置项。
unix milliseconds int64 occurred_at = 4;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | long | occurredAt 到设置。The occurredAt to set. |
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1210–1216clearOccurredAt
public Builder clearOccurredAt()
清空 clearOccurredAt。
unix milliseconds int64 occurred_at = 4;
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1225–1230getRole
public java.lang.String getRole()
获取角色。
user | assistant | system | tool string role = 5;
java.lang.Stringio/agentscope/controlplane/proto/SessionEventMsg.java:1241–1252getRoleBytes
public com.google.protobuf.ByteString getRoleBytes()
获取角色字节。
user | assistant | system | tool string role = 5;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/SessionEventMsg.java:1261–1273setRole
public Builder setRole(java.lang.String value)
设置设置角色。
user | assistant | system | tool string role = 5;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | 角色到设置。The role to set. |
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1283–1290clearRole
public Builder clearRole()
清空角色。
user | assistant | system | tool string role = 5;
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1299–1304setRoleBytes
public Builder setRoleBytes(com.google.protobuf.ByteString value)
设置设置角色字节。
user | assistant | system | tool string role = 5;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于角色到设置。The bytes for role to set. |
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1314–1322getContent
public java.lang.String getContent()
获取内容。
complete message/event text for durable replay string content = 6;
java.lang.Stringio/agentscope/controlplane/proto/SessionEventMsg.java:1333–1344getContentBytes
public com.google.protobuf.ByteString getContentBytes()
获取内容字节。
complete message/event text for durable replay string content = 6;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/SessionEventMsg.java:1353–1365setContent
public Builder setContent(java.lang.String value)
设置设置内容。
complete message/event text for durable replay string content = 6;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | 内容到设置。The content to set. |
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1375–1382clearContent
public Builder clearContent()
清空内容。
complete message/event text for durable replay string content = 6;
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1391–1396setContentBytes
public Builder setContentBytes(com.google.protobuf.ByteString value)
设置设置内容字节。
complete message/event text for durable replay string content = 6;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于内容到设置。The bytes for content to set. |
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1406–1414getToolName
public java.lang.String getToolName()
获取工具名称。
string tool_name = 7;
java.lang.Stringio/agentscope/controlplane/proto/SessionEventMsg.java:1421–1432getToolNameBytes
public com.google.protobuf.ByteString getToolNameBytes()
获取工具名称字节。
string tool_name = 7;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/SessionEventMsg.java:1437–1449setToolName
public Builder setToolName(java.lang.String value)
设置设置工具名称。
string tool_name = 7;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | toolName 到设置。The toolName to set. |
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1455–1462clearToolName
public Builder clearToolName()
清空工具名称。
string tool_name = 7;
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1467–1472setToolNameBytes
public Builder setToolNameBytes(com.google.protobuf.ByteString value)
设置设置工具名称字节。
string tool_name = 7;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于 toolName 到设置。The bytes for toolName to set. |
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1478–1486getToolInput
public com.google.protobuf.ByteString getToolInput()
获取工具输入。
JSON bytes tool_input = 8;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/SessionEventMsg.java:1497–1500setToolInput
public Builder setToolInput(com.google.protobuf.ByteString value)
设置设置工具输入。
JSON bytes tool_input = 8;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | toolInput 到设置。The toolInput to set. |
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1510–1516clearToolInput
public Builder clearToolInput()
清空工具输入。
JSON bytes tool_input = 8;
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1525–1530getToolOutput
public java.lang.String getToolOutput()
获取工具输出。
string tool_output = 9;
java.lang.Stringio/agentscope/controlplane/proto/SessionEventMsg.java:1537–1548getToolOutputBytes
public com.google.protobuf.ByteString getToolOutputBytes()
获取工具输出字节。
string tool_output = 9;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/SessionEventMsg.java:1553–1565setToolOutput
public Builder setToolOutput(java.lang.String value)
设置设置工具输出。
string tool_output = 9;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | toolOutput 到设置。The toolOutput to set. |
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1571–1578clearToolOutput
public Builder clearToolOutput()
清空工具输出。
string tool_output = 9;
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1583–1588setToolOutputBytes
public Builder setToolOutputBytes(com.google.protobuf.ByteString value)
设置设置工具输出字节。
string tool_output = 9;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于 toolOutput 到设置。The bytes for toolOutput to set. |
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1594–1602getTokensIn
public int getTokensIn()
获取令牌数 In。
int32 tokens_in = 10;
intio/agentscope/controlplane/proto/SessionEventMsg.java:1609–1612setTokensIn
public Builder setTokensIn(int value)
设置设置令牌数 In。
int32 tokens_in = 10;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | int | tokensIn 到设置。The tokensIn to set. |
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1618–1624clearTokensIn
public Builder clearTokensIn()
清空令牌数 In。
int32 tokens_in = 10;
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1629–1634getTokensOut
public int getTokensOut()
获取 getTokensOut。
int32 tokens_out = 11;
intio/agentscope/controlplane/proto/SessionEventMsg.java:1641–1644setTokensOut
public Builder setTokensOut(int value)
设置该配置项。
int32 tokens_out = 11;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | int | tokensOut 到设置。The tokensOut to set. |
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1650–1656clearTokensOut
public Builder clearTokensOut()
清空 clearTokensOut。
int32 tokens_out = 11;
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1661–1666getDurationMs
public int getDurationMs()
获取时长 Ms。
int32 duration_ms = 12;
intio/agentscope/controlplane/proto/SessionEventMsg.java:1673–1676setDurationMs
public Builder setDurationMs(int value)
设置设置时长 Ms。
int32 duration_ms = 12;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | int | durationMs 到设置。The durationMs to set. |
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1682–1688clearDurationMs
public Builder clearDurationMs()
清空时长 Ms。
int32 duration_ms = 12;
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1693–1698getFrameworkMeta
public com.google.protobuf.ByteString getFrameworkMeta()
获取 getFrameworkMeta。
framework-private JSON bytes framework_meta = 13;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/SessionEventMsg.java:1709–1712setFrameworkMeta
public Builder setFrameworkMeta(com.google.protobuf.ByteString value)
设置该配置项。
framework-private JSON bytes framework_meta = 13;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | frameworkMeta 到设置。The frameworkMeta to set. |
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1722–1728clearFrameworkMeta
public Builder clearFrameworkMeta()
清空 clearFrameworkMeta。
framework-private JSON bytes framework_meta = 13;
Builderio/agentscope/controlplane/proto/SessionEventMsg.java:1737–1742