Package io.agentscope.aistio.proto
Class SessionEventMsg
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.agentscope.aistio.proto.SessionEventMsg
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SessionEventMsgOrBuilder,Serializable
public final class SessionEventMsg
extends com.google.protobuf.GeneratedMessage
implements SessionEventMsgOrBuilder
Protobuf type
agentscope.protocol.v1.SessionEventMsg- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeagentscope.protocol.v1.SessionEventMsgNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancomplete message/event text for durable replaycom.google.protobuf.ByteStringcomplete message/event text for durable replaystatic SessionEventMsgstatic final com.google.protobuf.Descriptors.Descriptorintint32 duration_ms = 12;session_start | message | tool_call | tool_result | session_end | compactioncom.google.protobuf.ByteStringsession_start | message | tool_call | tool_result | session_end | compactioncom.google.protobuf.ByteStringframework-private JSONlongunix millisecondscom.google.protobuf.Parser<SessionEventMsg>getRole()user | assistant | system | toolcom.google.protobuf.ByteStringuser | assistant | system | toolintgetSeq()monotonically increasing per session; idempotency keyintstring session_id = 1;com.google.protobuf.ByteStringstring session_id = 1;intint32 tokens_in = 10;intint32 tokens_out = 11;com.google.protobuf.ByteStringJSONstring tool_name = 7;com.google.protobuf.ByteStringstring tool_name = 7;string tool_output = 9;com.google.protobuf.ByteStringstring tool_output = 9;inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic SessionEventMsg.Builderstatic SessionEventMsg.BuildernewBuilder(SessionEventMsg prototype) protected SessionEventMsg.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static SessionEventMsgparseDelimitedFrom(InputStream input) static SessionEventMsgparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SessionEventMsgparseFrom(byte[] data) static SessionEventMsgparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SessionEventMsgparseFrom(com.google.protobuf.ByteString data) static SessionEventMsgparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SessionEventMsgparseFrom(com.google.protobuf.CodedInputStream input) static SessionEventMsgparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SessionEventMsgparseFrom(InputStream input) static SessionEventMsgparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SessionEventMsgparseFrom(ByteBuffer data) static SessionEventMsgparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SessionEventMsg>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
SESSION_ID_FIELD_NUMBER
public static final int SESSION_ID_FIELD_NUMBER- See Also:
-
SEQ_FIELD_NUMBER
public static final int SEQ_FIELD_NUMBER- See Also:
-
EVENT_TYPE_FIELD_NUMBER
public static final int EVENT_TYPE_FIELD_NUMBER- See Also:
-
OCCURRED_AT_FIELD_NUMBER
public static final int OCCURRED_AT_FIELD_NUMBER- See Also:
-
ROLE_FIELD_NUMBER
public static final int ROLE_FIELD_NUMBER- See Also:
-
CONTENT_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER- See Also:
-
TOOL_NAME_FIELD_NUMBER
public static final int TOOL_NAME_FIELD_NUMBER- See Also:
-
TOOL_INPUT_FIELD_NUMBER
public static final int TOOL_INPUT_FIELD_NUMBER- See Also:
-
TOOL_OUTPUT_FIELD_NUMBER
public static final int TOOL_OUTPUT_FIELD_NUMBER- See Also:
-
TOKENS_IN_FIELD_NUMBER
public static final int TOKENS_IN_FIELD_NUMBER- See Also:
-
TOKENS_OUT_FIELD_NUMBER
public static final int TOKENS_OUT_FIELD_NUMBER- See Also:
-
DURATION_MS_FIELD_NUMBER
public static final int DURATION_MS_FIELD_NUMBER- See Also:
-
FRAMEWORK_META_FIELD_NUMBER
public static final int FRAMEWORK_META_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getSessionId
string session_id = 1;- Specified by:
getSessionIdin interfaceSessionEventMsgOrBuilder- Returns:
- The sessionId.
-
getSessionIdBytes
public com.google.protobuf.ByteString getSessionIdBytes()string session_id = 1;- Specified by:
getSessionIdBytesin interfaceSessionEventMsgOrBuilder- Returns:
- The bytes for sessionId.
-
getSeq
public int getSeq()monotonically increasing per session; idempotency key
int32 seq = 2;- Specified by:
getSeqin interfaceSessionEventMsgOrBuilder- Returns:
- The seq.
-
getEventType
session_start | message | tool_call | tool_result | session_end | compaction
string event_type = 3;- Specified by:
getEventTypein interfaceSessionEventMsgOrBuilder- Returns:
- The eventType.
-
getEventTypeBytes
public com.google.protobuf.ByteString getEventTypeBytes()session_start | message | tool_call | tool_result | session_end | compaction
string event_type = 3;- Specified by:
getEventTypeBytesin interfaceSessionEventMsgOrBuilder- Returns:
- The bytes for eventType.
-
getOccurredAt
public long getOccurredAt()unix milliseconds
int64 occurred_at = 4;- Specified by:
getOccurredAtin interfaceSessionEventMsgOrBuilder- Returns:
- The occurredAt.
-
getRole
user | assistant | system | tool
string role = 5;- Specified by:
getRolein interfaceSessionEventMsgOrBuilder- Returns:
- The role.
-
getRoleBytes
public com.google.protobuf.ByteString getRoleBytes()user | assistant | system | tool
string role = 5;- Specified by:
getRoleBytesin interfaceSessionEventMsgOrBuilder- Returns:
- The bytes for role.
-
getContent
complete message/event text for durable replay
string content = 6;- Specified by:
getContentin interfaceSessionEventMsgOrBuilder- Returns:
- The content.
-
getContentBytes
public com.google.protobuf.ByteString getContentBytes()complete message/event text for durable replay
string content = 6;- Specified by:
getContentBytesin interfaceSessionEventMsgOrBuilder- Returns:
- The bytes for content.
-
getToolName
string tool_name = 7;- Specified by:
getToolNamein interfaceSessionEventMsgOrBuilder- Returns:
- The toolName.
-
getToolNameBytes
public com.google.protobuf.ByteString getToolNameBytes()string tool_name = 7;- Specified by:
getToolNameBytesin interfaceSessionEventMsgOrBuilder- Returns:
- The bytes for toolName.
-
getToolInput
public com.google.protobuf.ByteString getToolInput()JSON
bytes tool_input = 8;- Specified by:
getToolInputin interfaceSessionEventMsgOrBuilder- Returns:
- The toolInput.
-
getToolOutput
string tool_output = 9;- Specified by:
getToolOutputin interfaceSessionEventMsgOrBuilder- Returns:
- The toolOutput.
-
getToolOutputBytes
public com.google.protobuf.ByteString getToolOutputBytes()string tool_output = 9;- Specified by:
getToolOutputBytesin interfaceSessionEventMsgOrBuilder- Returns:
- The bytes for toolOutput.
-
getTokensIn
public int getTokensIn()int32 tokens_in = 10;- Specified by:
getTokensInin interfaceSessionEventMsgOrBuilder- Returns:
- The tokensIn.
-
getTokensOut
public int getTokensOut()int32 tokens_out = 11;- Specified by:
getTokensOutin interfaceSessionEventMsgOrBuilder- Returns:
- The tokensOut.
-
getDurationMs
public int getDurationMs()int32 duration_ms = 12;- Specified by:
getDurationMsin interfaceSessionEventMsgOrBuilder- Returns:
- The durationMs.
-
getFrameworkMeta
public com.google.protobuf.ByteString getFrameworkMeta()framework-private JSON
bytes framework_meta = 13;- Specified by:
getFrameworkMetain interfaceSessionEventMsgOrBuilder- Returns:
- The frameworkMeta.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SessionEventMsg parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SessionEventMsg parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SessionEventMsg parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SessionEventMsg parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SessionEventMsg parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SessionEventMsg parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SessionEventMsg parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SessionEventMsg parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SessionEventMsg parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SessionEventMsg parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SessionEventMsg.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-