Builder
public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.controlplane.proto.SessionEventCursorOrBuilder
io/agentscope/controlplane/proto/SessionEventCursor.java:266–518构建器,用于构建并配置目标实例。位于 io.agentscope.controlplane.proto 包,继承自 com.google.protobuf.GeneratedMessage.Builder<Builder>,实现 io.agentscope.controlplane.proto.SessionEventCursorOrBuilder。核心成员包括 getDescriptor、internalGetFieldAccessorTable、clear、getDescriptorForType、getDefaultInstanceForType、build。
Protobuf type agentscope.protocol.v1.SessionEventCursor
方法摘要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/SessionEventCursor.java:270–273internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
返回 internalGetFieldAccessorTable 结果。
Returns the internal get field accessor table.
com.google.protobuf.GeneratedMessage.FieldAccessorTableio/agentscope/controlplane/proto/SessionEventCursor.java:275–281clear
public Builder clear()
清空或重置内部状态。
Clears or resets internal state.
Builderio/agentscope/controlplane/proto/SessionEventCursor.java:293–300getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
获取 getDescriptorForType。
Returns the descriptor for type.
com.google.protobuf.Descriptors.Descriptorio/agentscope/controlplane/proto/SessionEventCursor.java:302–306getDefaultInstanceForType
public io.agentscope.controlplane.proto.SessionEventCursor getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.
io.agentscope.controlplane.proto.SessionEventCursorio/agentscope/controlplane/proto/SessionEventCursor.java:308–311build
public io.agentscope.controlplane.proto.SessionEventCursor build()
构建并返回最终实例。
Creates and returns an instance.
io.agentscope.controlplane.proto.SessionEventCursorio/agentscope/controlplane/proto/SessionEventCursor.java:313–320buildPartial
public io.agentscope.controlplane.proto.SessionEventCursor buildPartial()
构建 buildPartial。
Builds the partial.
io.agentscope.controlplane.proto.SessionEventCursorio/agentscope/controlplane/proto/SessionEventCursor.java:322–328mergeFrom
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/SessionEventCursor.java:340–348mergeFrom
public Builder mergeFrom(io.agentscope.controlplane.proto.SessionEventCursor other)
设置该配置项。
Performs the merge from operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
other | io.agentscope.controlplane.proto.SessionEventCursor | other(类型 `io.agentscope.controlplane.proto.SessionEventCursor`)。The other. |
Builderio/agentscope/controlplane/proto/SessionEventCursor.java:350–363isInitialized
public final boolean isInitialized()
判断是否已初始化。
Returns whether the initialized.
booleanio/agentscope/controlplane/proto/SessionEventCursor.java:365–368mergeFrom
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/SessionEventCursor.java:370–410getSessionId
public java.lang.String getSessionId()
获取会话标识。
string session_id = 1;
java.lang.Stringio/agentscope/controlplane/proto/SessionEventCursor.java:418–429getSessionIdBytes
public com.google.protobuf.ByteString getSessionIdBytes()
获取会话标识字节。
string session_id = 1;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/SessionEventCursor.java:434–446setSessionId
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/SessionEventCursor.java:452–459clearSessionId
public Builder clearSessionId()
清空会话标识。
string session_id = 1;
Builderio/agentscope/controlplane/proto/SessionEventCursor.java:464–469setSessionIdBytes
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/SessionEventCursor.java:475–483getCommittedSeq
public int getCommittedSeq()
获取 getCommittedSeq。
int32 committed_seq = 2;
intio/agentscope/controlplane/proto/SessionEventCursor.java:490–493setCommittedSeq
public Builder setCommittedSeq(int value)
设置该配置项。
int32 committed_seq = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | int | committedSeq 到设置。The committedSeq to set. |
Builderio/agentscope/controlplane/proto/SessionEventCursor.java:499–505clearCommittedSeq
public Builder clearCommittedSeq()
清空 clearCommittedSeq。
int32 committed_seq = 2;
Builderio/agentscope/controlplane/proto/SessionEventCursor.java:510–515