Package io.agentscope.aistio.proto
Class SessionSnapshot
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.agentscope.aistio.proto.SessionSnapshot
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SessionSnapshotOrBuilder,Serializable
public final class SessionSnapshot
extends com.google.protobuf.GeneratedMessage
implements SessionSnapshotOrBuilder
Protobuf type
agentscope.protocol.v1.SessionSnapshot- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeagentscope.protocol.v1.SessionSnapshotNested 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 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 TypeMethodDescriptionbooleanlongint64 completion_tokens = 5;Context change detectioncom.google.protobuf.ByteStringContext change detectiondoubledouble context_pressure = 6;static SessionSnapshotstatic final com.google.protobuf.Descriptors.Descriptorinteffective messages after compaction (!Framework identification (Level 1 extension, see sdk-design.md §3.1)com.google.protobuf.ByteStringFramework identification (Level 1 extension, see sdk-design.md §3.1)string framework_version = 11;com.google.protobuf.ByteStringstring framework_version = 11;booleanwhether the context has been compactedintint32 message_count = 3;com.google.protobuf.Parser<SessionSnapshot>getPhase()string phase = 2;com.google.protobuf.ByteStringstring phase = 2;longint64 prompt_tokens = 4;intstring session_id = 1;com.google.protobuf.ByteStringstring session_id = 1;inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic SessionSnapshot.Builderstatic SessionSnapshot.BuildernewBuilder(SessionSnapshot prototype) protected SessionSnapshot.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static SessionSnapshotparseDelimitedFrom(InputStream input) static SessionSnapshotparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SessionSnapshotparseFrom(byte[] data) static SessionSnapshotparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SessionSnapshotparseFrom(com.google.protobuf.ByteString data) static SessionSnapshotparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SessionSnapshotparseFrom(com.google.protobuf.CodedInputStream input) static SessionSnapshotparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SessionSnapshotparseFrom(InputStream input) static SessionSnapshotparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SessionSnapshotparseFrom(ByteBuffer data) static SessionSnapshotparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SessionSnapshot>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:
-
PHASE_FIELD_NUMBER
public static final int PHASE_FIELD_NUMBER- See Also:
-
MESSAGE_COUNT_FIELD_NUMBER
public static final int MESSAGE_COUNT_FIELD_NUMBER- See Also:
-
PROMPT_TOKENS_FIELD_NUMBER
public static final int PROMPT_TOKENS_FIELD_NUMBER- See Also:
-
COMPLETION_TOKENS_FIELD_NUMBER
public static final int COMPLETION_TOKENS_FIELD_NUMBER- See Also:
-
CONTEXT_PRESSURE_FIELD_NUMBER
public static final int CONTEXT_PRESSURE_FIELD_NUMBER- See Also:
-
FRAMEWORK_FIELD_NUMBER
public static final int FRAMEWORK_FIELD_NUMBER- See Also:
-
FRAMEWORK_VERSION_FIELD_NUMBER
public static final int FRAMEWORK_VERSION_FIELD_NUMBER- See Also:
-
CONTEXT_HASH_FIELD_NUMBER
public static final int CONTEXT_HASH_FIELD_NUMBER- See Also:
-
IS_COMPACTED_FIELD_NUMBER
public static final int IS_COMPACTED_FIELD_NUMBER- See Also:
-
EFFECTIVE_MESSAGE_COUNT_FIELD_NUMBER
public static final int EFFECTIVE_MESSAGE_COUNT_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 interfaceSessionSnapshotOrBuilder- Returns:
- The sessionId.
-
getSessionIdBytes
public com.google.protobuf.ByteString getSessionIdBytes()string session_id = 1;- Specified by:
getSessionIdBytesin interfaceSessionSnapshotOrBuilder- Returns:
- The bytes for sessionId.
-
getPhase
string phase = 2;- Specified by:
getPhasein interfaceSessionSnapshotOrBuilder- Returns:
- The phase.
-
getPhaseBytes
public com.google.protobuf.ByteString getPhaseBytes()string phase = 2;- Specified by:
getPhaseBytesin interfaceSessionSnapshotOrBuilder- Returns:
- The bytes for phase.
-
getMessageCount
public int getMessageCount()int32 message_count = 3;- Specified by:
getMessageCountin interfaceSessionSnapshotOrBuilder- Returns:
- The messageCount.
-
getPromptTokens
public long getPromptTokens()int64 prompt_tokens = 4;- Specified by:
getPromptTokensin interfaceSessionSnapshotOrBuilder- Returns:
- The promptTokens.
-
getCompletionTokens
public long getCompletionTokens()int64 completion_tokens = 5;- Specified by:
getCompletionTokensin interfaceSessionSnapshotOrBuilder- Returns:
- The completionTokens.
-
getContextPressure
public double getContextPressure()double context_pressure = 6;- Specified by:
getContextPressurein interfaceSessionSnapshotOrBuilder- Returns:
- The contextPressure.
-
getFramework
Framework identification (Level 1 extension, see sdk-design.md §3.1)
string framework = 10;- Specified by:
getFrameworkin interfaceSessionSnapshotOrBuilder- Returns:
- The framework.
-
getFrameworkBytes
public com.google.protobuf.ByteString getFrameworkBytes()Framework identification (Level 1 extension, see sdk-design.md §3.1)
string framework = 10;- Specified by:
getFrameworkBytesin interfaceSessionSnapshotOrBuilder- Returns:
- The bytes for framework.
-
getFrameworkVersion
string framework_version = 11;- Specified by:
getFrameworkVersionin interfaceSessionSnapshotOrBuilder- Returns:
- The frameworkVersion.
-
getFrameworkVersionBytes
public com.google.protobuf.ByteString getFrameworkVersionBytes()string framework_version = 11;- Specified by:
getFrameworkVersionBytesin interfaceSessionSnapshotOrBuilder- Returns:
- The bytes for frameworkVersion.
-
getContextHash
Context change detection
string context_hash = 12;- Specified by:
getContextHashin interfaceSessionSnapshotOrBuilder- Returns:
- The contextHash.
-
getContextHashBytes
public com.google.protobuf.ByteString getContextHashBytes()Context change detection
string context_hash = 12;- Specified by:
getContextHashBytesin interfaceSessionSnapshotOrBuilder- Returns:
- The bytes for contextHash.
-
getIsCompacted
public boolean getIsCompacted()whether the context has been compacted
bool is_compacted = 13;- Specified by:
getIsCompactedin interfaceSessionSnapshotOrBuilder- Returns:
- The isCompacted.
-
getEffectiveMessageCount
public int getEffectiveMessageCount()effective messages after compaction (!= message_count)
int32 effective_message_count = 14;- Specified by:
getEffectiveMessageCountin interfaceSessionSnapshotOrBuilder- Returns:
- The effectiveMessageCount.
-
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 SessionSnapshot parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SessionSnapshot parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SessionSnapshot parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SessionSnapshot parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SessionSnapshot parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SessionSnapshot parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SessionSnapshot parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SessionSnapshot parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SessionSnapshot parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SessionSnapshot 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 SessionSnapshot.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
-