AS AgentScopeAPI 手册 / API Reference

SessionEventMsg

public final class SessionEventMsg extends com.google.protobuf.GeneratedMessage implements SessionEventMsgOrBuilder
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:11–1793

会话事件消息,承载智能体的部署、调度与服务化运行。位于 io.agentscope.aistio.proto 包,继承自 com.google.protobuf.GeneratedMessage,实现 SessionEventMsgOrBuilder。核心成员包括 getDescriptor、internalGetFieldAccessorTable、getSessionId、getSessionIdBytes、getSeq、getEventType。

Protobuf type agentscope.protocol.v1.SessionEventMsg

嵌套类摘要Nested Class Summary

类Class类型Kind说明Description
Builder类class
构建器,用于构建并配置目标实例。
Protobuf type `agentscope.protocol.v1.SessionEventMsg`

字段摘要Field Summary

字段Field类型Type说明Description
SESSION_ID_FIELD_NUMBER
staticfinal
int
会话标识 FIELD 数量字段。
The SESSION ID FIELD NUMBER field.
SEQ_FIELD_NUMBER
staticfinal
int
SEQ FIELD 数量字段。
The SEQ FIELD NUMBER field.
EVENT_TYPE_FIELD_NUMBER
staticfinal
int
事件类型 FIELD 数量字段。
The EVENT TYPE FIELD NUMBER field.
OCCURRED_AT_FIELD_NUMBER
staticfinal
int
OCCURRED AT FIELD 数量字段。
The OCCURRED AT FIELD NUMBER field.
ROLE_FIELD_NUMBER
staticfinal
int
角色 FIELD 数量字段。
The ROLE FIELD NUMBER field.
CONTENT_FIELD_NUMBER
staticfinal
int
内容 FIELD 数量字段。
The CONTENT FIELD NUMBER field.
TOOL_NAME_FIELD_NUMBER
staticfinal
int
工具名称 FIELD 数量字段。
The TOOL NAME FIELD NUMBER field.
TOOL_INPUT_FIELD_NUMBER
staticfinal
int
工具输入 FIELD 数量字段。
The TOOL INPUT FIELD NUMBER field.
TOOL_OUTPUT_FIELD_NUMBER
staticfinal
int
工具输出 FIELD 数量字段。
The TOOL OUTPUT FIELD NUMBER field.
TOKENS_IN_FIELD_NUMBER
staticfinal
int
令牌数 IN FIELD 数量字段。
The TOKENS IN FIELD NUMBER field.
TOKENS_OUT_FIELD_NUMBER
staticfinal
int
令牌数 OUT FIELD 数量字段。
The TOKENS OUT FIELD NUMBER field.
DURATION_MS_FIELD_NUMBER
staticfinal
int
时长 MS FIELD 数量字段。
The DURATION MS FIELD NUMBER field.
FRAMEWORK_META_FIELD_NUMBER
staticfinal
int
FRAMEWORK 元数据 FIELD 数量字段。
The FRAMEWORK META FIELD NUMBER field.

方法摘要Method Summary

方法Method说明Description
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
staticfinal
获取描述符。
Returns the descriptor.
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
返回 `internalGetFieldAccessorTable` 结果。
Returns the internal get field accessor table.
public java.lang.String getSessionId()
获取会话标识。
`string session_id = 1;`
public com.google.protobuf.ByteString getSessionIdBytes()
获取会话标识字节。
`string session_id = 1;`
public int getSeq()
获取 `getSeq`。
``` monotonically increasing per session; idempotency key
public java.lang.String getEventType()
获取事件类型。
``` session_start | message | tool_call | tool_result | session_end | compaction
public com.google.protobuf.ByteString getEventTypeBytes()
获取事件类型字节。
``` session_start | message | tool_call | tool_result | session_end | compaction
public long getOccurredAt()
获取 `getOccurredAt`。
``` unix milliseconds
public java.lang.String getRole()
获取角色。
``` user | assistant | system | tool
public com.google.protobuf.ByteString getRoleBytes()
获取角色字节。
``` user | assistant | system | tool
public java.lang.String getContent()
获取内容。
``` complete message/event text for durable replay
public com.google.protobuf.ByteString getContentBytes()
获取内容字节。
``` complete message/event text for durable replay
public java.lang.String getToolName()
获取工具名称。
`string tool_name = 7;`
public com.google.protobuf.ByteString getToolNameBytes()
获取工具名称字节。
`string tool_name = 7;`
public com.google.protobuf.ByteString getToolInput()
获取工具输入。
``` JSON
public java.lang.String getToolOutput()
获取工具输出。
`string tool_output = 9;`
public com.google.protobuf.ByteString getToolOutputBytes()
获取工具输出字节。
`string tool_output = 9;`
public int getTokensIn()
获取令牌数 In。
`int32 tokens_in = 10;`
public int getTokensOut()
获取 `getTokensOut`。
`int32 tokens_out = 11;`
public int getDurationMs()
获取时长 Ms。
`int32 duration_ms = 12;`
public com.google.protobuf.ByteString getFrameworkMeta()
获取 `getFrameworkMeta`。
``` framework-private JSON
public final boolean isInitialized()
final
判断是否已初始化。
Returns whether the initialized.
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
设置写入到。
Performs the write to operation.
public int getSerializedSize()
获取 `getSerializedSize`。
Returns the serialized size.
public boolean equals(java.lang.Object obj)
设置该参数。
Performs the equals operation.
public int hashCode()
返回 `hashCode` 结果。
Returns the hash code.
public static io.agentscope.aistio.proto.SessionEventMsg parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
static
解析来自。
Parses the from.
public static io.agentscope.aistio.proto.SessionEventMsg parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static
解析来自。
Parses the from.
public static io.agentscope.aistio.proto.SessionEventMsg parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
static
解析来自。
Parses the from.
public static io.agentscope.aistio.proto.SessionEventMsg parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static
解析来自。
Parses the from.
public static io.agentscope.aistio.proto.SessionEventMsg parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
static
解析来自。
Parses the from.
public static io.agentscope.aistio.proto.SessionEventMsg parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static
解析来自。
Parses the from.
public static io.agentscope.aistio.proto.SessionEventMsg parseFrom(java.io.InputStream input) throws java.io.IOException
static
解析来自。
Parses the from.
public static io.agentscope.aistio.proto.SessionEventMsg parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
static
解析来自。
Parses the from.
public static io.agentscope.aistio.proto.SessionEventMsg parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
static
解析 `parseDelimitedFrom`。
Parses the delimited from.
public static io.agentscope.aistio.proto.SessionEventMsg parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
static
解析 `parseDelimitedFrom`。
Parses the delimited from.
public static io.agentscope.aistio.proto.SessionEventMsg parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
static
解析来自。
Parses the from.
public static io.agentscope.aistio.proto.SessionEventMsg parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
static
解析来自。
Parses the from.
public Builder newBuilderForType()
创建构建器用于类型。
Returns the new builder for type.
public static Builder newBuilder()
static
创建构建器。
Returns the new builder.
public static Builder newBuilder(io.agentscope.aistio.proto.SessionEventMsg prototype)
static
创建构建器。
Performs the new builder operation.
public Builder toBuilder()
返回到构建器。
Returns the to builder.
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
创建构建器用于类型。
Performs the new builder for type operation.
public static io.agentscope.aistio.proto.SessionEventMsg getDefaultInstance()
static
获取默认实例。
Returns the default instance.
public static com.google.protobuf.Parser<SessionEventMsg> parser()
static
返回解析器。
Returns the parser.
public com.google.protobuf.Parser<SessionEventMsg> getParserForType()
获取解析器用于类型。
Returns the parser for type.
public io.agentscope.aistio.proto.SessionEventMsg getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.

字段详情Field Detail

SESSION_ID_FIELD_NUMBER

public static final int SESSION_ID_FIELD_NUMBER
staticfinal

会话标识 FIELD 数量字段。声明为 public static final int SESSION_ID_FIELD_NUMBER。

The SESSION ID FIELD NUMBER field.

源码Source io/agentscope/aistio/proto/SessionEventMsg.java:53

SEQ_FIELD_NUMBER

public static final int SEQ_FIELD_NUMBER
staticfinal

SEQ FIELD 数量字段。声明为 public static final int SEQ_FIELD_NUMBER。

The SEQ FIELD NUMBER field.

源码Source io/agentscope/aistio/proto/SessionEventMsg.java:92

EVENT_TYPE_FIELD_NUMBER

public static final int EVENT_TYPE_FIELD_NUMBER
staticfinal

事件类型 FIELD 数量字段。声明为 public static final int EVENT_TYPE_FIELD_NUMBER。

The EVENT TYPE FIELD NUMBER field.

源码Source io/agentscope/aistio/proto/SessionEventMsg.java:107

OCCURRED_AT_FIELD_NUMBER

public static final int OCCURRED_AT_FIELD_NUMBER
staticfinal

OCCURRED AT FIELD 数量字段。声明为 public static final int OCCURRED_AT_FIELD_NUMBER。

The OCCURRED AT FIELD NUMBER field.

源码Source io/agentscope/aistio/proto/SessionEventMsg.java:154

ROLE_FIELD_NUMBER

public static final int ROLE_FIELD_NUMBER
staticfinal

角色 FIELD 数量字段。声明为 public static final int ROLE_FIELD_NUMBER。

The ROLE FIELD NUMBER field.

源码Source io/agentscope/aistio/proto/SessionEventMsg.java:169

CONTENT_FIELD_NUMBER

public static final int CONTENT_FIELD_NUMBER
staticfinal

内容 FIELD 数量字段。声明为 public static final int CONTENT_FIELD_NUMBER。

The CONTENT FIELD NUMBER field.

源码Source io/agentscope/aistio/proto/SessionEventMsg.java:216

TOOL_NAME_FIELD_NUMBER

public static final int TOOL_NAME_FIELD_NUMBER
staticfinal

工具名称 FIELD 数量字段。声明为 public static final int TOOL_NAME_FIELD_NUMBER。

The TOOL NAME FIELD NUMBER field.

源码Source io/agentscope/aistio/proto/SessionEventMsg.java:263

TOOL_INPUT_FIELD_NUMBER

public static final int TOOL_INPUT_FIELD_NUMBER
staticfinal

工具输入 FIELD 数量字段。声明为 public static final int TOOL_INPUT_FIELD_NUMBER。

The TOOL INPUT FIELD NUMBER field.

源码Source io/agentscope/aistio/proto/SessionEventMsg.java:302

TOOL_OUTPUT_FIELD_NUMBER

public static final int TOOL_OUTPUT_FIELD_NUMBER
staticfinal

工具输出 FIELD 数量字段。声明为 public static final int TOOL_OUTPUT_FIELD_NUMBER。

The TOOL OUTPUT FIELD NUMBER field.

源码Source io/agentscope/aistio/proto/SessionEventMsg.java:317

TOKENS_IN_FIELD_NUMBER

public static final int TOKENS_IN_FIELD_NUMBER
staticfinal

令牌数 IN FIELD 数量字段。声明为 public static final int TOKENS_IN_FIELD_NUMBER。

The TOKENS IN FIELD NUMBER field.

源码Source io/agentscope/aistio/proto/SessionEventMsg.java:356

TOKENS_OUT_FIELD_NUMBER

public static final int TOKENS_OUT_FIELD_NUMBER
staticfinal

令牌数 OUT FIELD 数量字段。声明为 public static final int TOKENS_OUT_FIELD_NUMBER。

The TOKENS OUT FIELD NUMBER field.

源码Source io/agentscope/aistio/proto/SessionEventMsg.java:367

DURATION_MS_FIELD_NUMBER

public static final int DURATION_MS_FIELD_NUMBER
staticfinal

时长 MS FIELD 数量字段。声明为 public static final int DURATION_MS_FIELD_NUMBER。

The DURATION MS FIELD NUMBER field.

源码Source io/agentscope/aistio/proto/SessionEventMsg.java:378

FRAMEWORK_META_FIELD_NUMBER

public static final int FRAMEWORK_META_FIELD_NUMBER
staticfinal

FRAMEWORK 元数据 FIELD 数量字段。声明为 public static final int FRAMEWORK_META_FIELD_NUMBER。

The FRAMEWORK META FIELD NUMBER field.

源码Source io/agentscope/aistio/proto/SessionEventMsg.java:389

方法详情Method Detail

getDescriptor

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
staticfinal

获取描述符。

Returns the descriptor.

返回Returns com.google.protobuf.Descriptors.Descriptor
返回com.google.protobuf.Descriptors.Descriptor。Returns com google protobuf descriptors descriptor.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:40–43

internalGetFieldAccessorTable

protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()

返回 internalGetFieldAccessorTable 结果。

Returns the internal get field accessor table.

返回Returns com.google.protobuf.GeneratedMessage.FieldAccessorTable
返回com.google.protobuf.GeneratedMessage.FieldAccessorTable。Returns com google protobuf generated message field accessor table.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:45–51

getSessionId

public java.lang.String getSessionId()

获取会话标识。

string session_id = 1;

返回Returns java.lang.String
会话标识。The sessionId.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:60–72

getSessionIdBytes

public com.google.protobuf.ByteString getSessionIdBytes()

获取会话标识字节。

string session_id = 1;

返回Returns com.google.protobuf.ByteString
字节用于会话标识。The bytes for sessionId.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:77–90

getSeq

public int getSeq()

获取 getSeq。

monotonically increasing per session; idempotency key int32 seq = 2;

返回Returns int
返回数值结果。The seq.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:102–105

getEventType

public java.lang.String getEventType()

获取事件类型。

session_start | message | tool_call | tool_result | session_end | compaction string event_type = 3;

返回Returns java.lang.String
返回java.lang.String。The eventType.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:118–130

getEventTypeBytes

public com.google.protobuf.ByteString getEventTypeBytes()

获取事件类型字节。

session_start | message | tool_call | tool_result | session_end | compaction string event_type = 3;

返回Returns com.google.protobuf.ByteString
字节用于 eventType。The bytes for eventType.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:139–152

getOccurredAt

public long getOccurredAt()

获取 getOccurredAt。

unix milliseconds int64 occurred_at = 4;

返回Returns long
返回数值结果。The occurredAt.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:164–167

getRole

public java.lang.String getRole()

获取角色。

user | assistant | system | tool string role = 5;

返回Returns java.lang.String
角色。The role.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:180–192

getRoleBytes

public com.google.protobuf.ByteString getRoleBytes()

获取角色字节。

user | assistant | system | tool string role = 5;

返回Returns com.google.protobuf.ByteString
字节用于角色。The bytes for role.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:201–214

getContent

public java.lang.String getContent()

获取内容。

complete message/event text for durable replay string content = 6;

返回Returns java.lang.String
内容。The content.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:227–239

getContentBytes

public com.google.protobuf.ByteString getContentBytes()

获取内容字节。

complete message/event text for durable replay string content = 6;

返回Returns com.google.protobuf.ByteString
字节用于内容。The bytes for content.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:248–261

getToolName

public java.lang.String getToolName()

获取工具名称。

string tool_name = 7;

返回Returns java.lang.String
返回java.lang.String。The toolName.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:270–282

getToolNameBytes

public com.google.protobuf.ByteString getToolNameBytes()

获取工具名称字节。

string tool_name = 7;

返回Returns com.google.protobuf.ByteString
字节用于 toolName。The bytes for toolName.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:287–300

getToolInput

public com.google.protobuf.ByteString getToolInput()

获取工具输入。

JSON bytes tool_input = 8;

返回Returns com.google.protobuf.ByteString
返回com.google.protobuf.ByteString。The toolInput.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:312–315

getToolOutput

public java.lang.String getToolOutput()

获取工具输出。

string tool_output = 9;

返回Returns java.lang.String
返回java.lang.String。The toolOutput.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:324–336

getToolOutputBytes

public com.google.protobuf.ByteString getToolOutputBytes()

获取工具输出字节。

string tool_output = 9;

返回Returns com.google.protobuf.ByteString
字节用于 toolOutput。The bytes for toolOutput.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:341–354

getTokensIn

public int getTokensIn()

获取令牌数 In。

int32 tokens_in = 10;

返回Returns int
返回数值结果。The tokensIn.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:362–365

getTokensOut

public int getTokensOut()

获取 getTokensOut。

int32 tokens_out = 11;

返回Returns int
返回数值结果。The tokensOut.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:373–376

getDurationMs

public int getDurationMs()

获取时长 Ms。

int32 duration_ms = 12;

返回Returns int
返回数值结果。The durationMs.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:384–387

getFrameworkMeta

public com.google.protobuf.ByteString getFrameworkMeta()

获取 getFrameworkMeta。

framework-private JSON bytes framework_meta = 13;

返回Returns com.google.protobuf.ByteString
返回com.google.protobuf.ByteString。The frameworkMeta.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:399–402

isInitialized

public final boolean isInitialized()
final

判断是否已初始化。

Returns whether the initialized.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:405–413

writeTo

public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException

设置写入到。

Performs the write to operation.

参数Parameters
名称Name类型Type说明Description
outputcom.google.protobuf.CodedOutputStream输出(类型 `com.google.protobuf.CodedOutputStream`)。The output.
抛出Throws
  • java.io.IOException 可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:415–458

getSerializedSize

public int getSerializedSize()

获取 getSerializedSize。

Returns the serialized size.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:460–515

equals

public boolean equals(java.lang.Object obj)

设置该参数。

Performs the equals operation.

参数Parameters
名称Name类型Type说明Description
objjava.lang.Objectobj(类型 `java.lang.Object`)。The obj.
返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:517–555

hashCode

public int hashCode()

返回 hashCode 结果。

Returns the hash code.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:557–594

parseFrom

public static io.agentscope.aistio.proto.SessionEventMsg parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
static

解析来自。

Parses the from.

参数Parameters
名称Name类型Type说明Description
datajava.nio.ByteBuffer数据(类型 `java.nio.ByteBuffer`)。The data.
返回Returns io.agentscope.aistio.proto.SessionEventMsg
返回io.agentscope.aistio.协议.SessionEventMsg。Returns io agentscope aistio proto session event msg.
抛出Throws
  • com.google.protobuf.InvalidProtocolBufferException 可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:596–600

parseFrom

public static io.agentscope.aistio.proto.SessionEventMsg parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static

解析来自。

Parses the from.

参数Parameters
名称Name类型Type说明Description
datajava.nio.ByteBuffer数据(类型 `java.nio.ByteBuffer`)。The data.
extensionRegistrycom.google.protobuf.ExtensionRegistryLite扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry.
返回Returns io.agentscope.aistio.proto.SessionEventMsg
返回io.agentscope.aistio.协议.SessionEventMsg。Returns io agentscope aistio proto session event msg.
抛出Throws
  • com.google.protobuf.InvalidProtocolBufferException 可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:601–606

parseFrom

public static io.agentscope.aistio.proto.SessionEventMsg parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
static

解析来自。

Parses the from.

参数Parameters
名称Name类型Type说明Description
datacom.google.protobuf.ByteString数据(类型 `com.google.protobuf.ByteString`)。The data.
返回Returns io.agentscope.aistio.proto.SessionEventMsg
返回io.agentscope.aistio.协议.SessionEventMsg。Returns io agentscope aistio proto session event msg.
抛出Throws
  • com.google.protobuf.InvalidProtocolBufferException 可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:607–611

parseFrom

public static io.agentscope.aistio.proto.SessionEventMsg parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static

解析来自。

Parses the from.

参数Parameters
名称Name类型Type说明Description
datacom.google.protobuf.ByteString数据(类型 `com.google.protobuf.ByteString`)。The data.
extensionRegistrycom.google.protobuf.ExtensionRegistryLite扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry.
返回Returns io.agentscope.aistio.proto.SessionEventMsg
返回io.agentscope.aistio.协议.SessionEventMsg。Returns io agentscope aistio proto session event msg.
抛出Throws
  • com.google.protobuf.InvalidProtocolBufferException 可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:612–617

parseFrom

public static io.agentscope.aistio.proto.SessionEventMsg parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
static

解析来自。

Parses the from.

参数Parameters
名称Name类型Type说明Description
databyte[]数据(类型 `byte[]`)。The data.
返回Returns io.agentscope.aistio.proto.SessionEventMsg
返回io.agentscope.aistio.协议.SessionEventMsg。Returns io agentscope aistio proto session event msg.
抛出Throws
  • com.google.protobuf.InvalidProtocolBufferException 可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:618–621

parseFrom

public static io.agentscope.aistio.proto.SessionEventMsg parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static

解析来自。

Parses the from.

参数Parameters
名称Name类型Type说明Description
databyte[]数据(类型 `byte[]`)。The data.
extensionRegistrycom.google.protobuf.ExtensionRegistryLite扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry.
返回Returns io.agentscope.aistio.proto.SessionEventMsg
返回io.agentscope.aistio.协议.SessionEventMsg。Returns io agentscope aistio proto session event msg.
抛出Throws
  • com.google.protobuf.InvalidProtocolBufferException 可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:622–627

parseFrom

public static io.agentscope.aistio.proto.SessionEventMsg parseFrom(java.io.InputStream input) throws java.io.IOException
static

解析来自。

Parses the from.

参数Parameters
名称Name类型Type说明Description
inputjava.io.InputStream输入消息(类型 `java.io.InputStream`)。The input.
返回Returns io.agentscope.aistio.proto.SessionEventMsg
返回io.agentscope.aistio.协议.SessionEventMsg。Returns io agentscope aistio proto session event msg.
抛出Throws
  • java.io.IOException 可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:628–632

parseFrom

public static io.agentscope.aistio.proto.SessionEventMsg parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
static

解析来自。

Parses the from.

参数Parameters
名称Name类型Type说明Description
inputjava.io.InputStream输入消息(类型 `java.io.InputStream`)。The input.
extensionRegistrycom.google.protobuf.ExtensionRegistryLite扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry.
返回Returns io.agentscope.aistio.proto.SessionEventMsg
返回io.agentscope.aistio.协议.SessionEventMsg。Returns io agentscope aistio proto session event msg.
抛出Throws
  • java.io.IOException 可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:633–639

parseDelimitedFrom

public static io.agentscope.aistio.proto.SessionEventMsg parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
static

解析 parseDelimitedFrom。

Parses the delimited from.

参数Parameters
名称Name类型Type说明Description
inputjava.io.InputStream输入消息(类型 `java.io.InputStream`)。The input.
返回Returns io.agentscope.aistio.proto.SessionEventMsg
返回io.agentscope.aistio.协议.SessionEventMsg。Returns io agentscope aistio proto session event msg.
抛出Throws
  • java.io.IOException 可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:641–645

parseDelimitedFrom

public static io.agentscope.aistio.proto.SessionEventMsg parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
static

解析 parseDelimitedFrom。

Parses the delimited from.

参数Parameters
名称Name类型Type说明Description
inputjava.io.InputStream输入消息(类型 `java.io.InputStream`)。The input.
extensionRegistrycom.google.protobuf.ExtensionRegistryLite扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry.
返回Returns io.agentscope.aistio.proto.SessionEventMsg
返回io.agentscope.aistio.协议.SessionEventMsg。Returns io agentscope aistio proto session event msg.
抛出Throws
  • java.io.IOException 可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:647–653

parseFrom

public static io.agentscope.aistio.proto.SessionEventMsg parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
static

解析来自。

Parses the from.

参数Parameters
名称Name类型Type说明Description
inputcom.google.protobuf.CodedInputStream输入消息(类型 `com.google.protobuf.CodedInputStream`)。The input.
返回Returns io.agentscope.aistio.proto.SessionEventMsg
返回io.agentscope.aistio.协议.SessionEventMsg。Returns io agentscope aistio proto session event msg.
抛出Throws
  • java.io.IOException 可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:654–659

parseFrom

public static io.agentscope.aistio.proto.SessionEventMsg parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
static

解析来自。

Parses the from.

参数Parameters
名称Name类型Type说明Description
inputcom.google.protobuf.CodedInputStream输入消息(类型 `com.google.protobuf.CodedInputStream`)。The input.
extensionRegistrycom.google.protobuf.ExtensionRegistryLite扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry.
返回Returns io.agentscope.aistio.proto.SessionEventMsg
返回io.agentscope.aistio.协议.SessionEventMsg。Returns io agentscope aistio proto session event msg.
抛出Throws
  • java.io.IOException 可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:660–666

newBuilderForType

public Builder newBuilderForType()

创建构建器用于类型。

Returns the new builder for type.

返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:668–669

newBuilder

public static Builder newBuilder()
static

创建构建器。

Returns the new builder.

返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:670–672

newBuilder

public static Builder newBuilder(io.agentscope.aistio.proto.SessionEventMsg prototype)
static

创建构建器。

Performs the new builder operation.

参数Parameters
名称Name类型Type说明Description
prototypeio.agentscope.aistio.proto.SessionEventMsgprototype(类型 `io.agentscope.aistio.proto.SessionEventMsg`)。The prototype.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:673–675

toBuilder

public Builder toBuilder()

返回到构建器。

Returns the to builder.

返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:676–680

newBuilderForType

protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)

创建构建器用于类型。

Performs the new builder for type operation.

参数Parameters
名称Name类型Type说明Description
parentcom.google.protobuf.GeneratedMessage.BuilderParent父级(类型 `com.google.protobuf.GeneratedMessage.BuilderParent`)。The parent.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:682–687

getDefaultInstance

public static io.agentscope.aistio.proto.SessionEventMsg getDefaultInstance()
static

获取默认实例。

Returns the default instance.

返回Returns io.agentscope.aistio.proto.SessionEventMsg
返回io.agentscope.aistio.协议.SessionEventMsg。Returns io agentscope aistio proto session event msg.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:1753–1755

parser

public static com.google.protobuf.Parser<SessionEventMsg> parser()
static

返回解析器。

Returns the parser.

返回Returns com.google.protobuf.Parser<SessionEventMsg>
返回com.google.protobuf.解析器。Returns com google protobuf parser.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:1779–1781

getParserForType

public com.google.protobuf.Parser<SessionEventMsg> getParserForType()

获取解析器用于类型。

Returns the parser for type.

返回Returns com.google.protobuf.Parser<SessionEventMsg>
返回com.google.protobuf.解析器。Returns com google protobuf parser.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:1783–1786

getDefaultInstanceForType

public io.agentscope.aistio.proto.SessionEventMsg getDefaultInstanceForType()

获取默认实例用于类型。

Returns the default instance for type.

返回Returns io.agentscope.aistio.proto.SessionEventMsg
返回io.agentscope.aistio.协议.SessionEventMsg。Returns io agentscope aistio proto session event msg.
源码Source io/agentscope/aistio/proto/SessionEventMsg.java:1788–1791

嵌套类详情Nested Class Detail

Builder

public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.aistio.proto.SessionEventMsgOrBuilder

构建器,用于构建并配置目标实例。位于 io.agentscope.aistio.proto 包,继承自 com.google.protobuf.GeneratedMessage.Builder<Builder>,实现 io.agentscope.aistio.proto.SessionEventMsgOrBuilder。核心成员包括 getDescriptor、internalGetFieldAccessorTable、clear、getDescriptorForType、getDefaultInstanceForType、build。

Protobuf type agentscope.protocol.v1.SessionEventMsg

基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.