Class SessionSnapshot.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SessionSnapshot.Builder>
io.agentscope.aistio.proto.SessionSnapshot.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SessionSnapshotOrBuilder, Cloneable
Enclosing class:
SessionSnapshot

public static final class SessionSnapshot.Builder extends com.google.protobuf.GeneratedMessage.Builder<SessionSnapshot.Builder> implements SessionSnapshotOrBuilder
Protobuf type agentscope.protocol.v1.SessionSnapshot
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SessionSnapshot.Builder>
    • clear

      public SessionSnapshot.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SessionSnapshot.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SessionSnapshot.Builder>
    • getDefaultInstanceForType

      public SessionSnapshot getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public SessionSnapshot build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SessionSnapshot buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SessionSnapshot.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SessionSnapshot.Builder>
    • mergeFrom

      public SessionSnapshot.Builder mergeFrom(SessionSnapshot other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SessionSnapshot.Builder>
    • mergeFrom

      public SessionSnapshot.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SessionSnapshot.Builder>
      Throws:
      IOException
    • getSessionId

      public String getSessionId()
      string session_id = 1;
      Specified by:
      getSessionId in interface SessionSnapshotOrBuilder
      Returns:
      The sessionId.
    • getSessionIdBytes

      public com.google.protobuf.ByteString getSessionIdBytes()
      string session_id = 1;
      Specified by:
      getSessionIdBytes in interface SessionSnapshotOrBuilder
      Returns:
      The bytes for sessionId.
    • setSessionId

      public SessionSnapshot.Builder setSessionId(String value)
      string session_id = 1;
      Parameters:
      value - The sessionId to set.
      Returns:
      This builder for chaining.
    • clearSessionId

      public SessionSnapshot.Builder clearSessionId()
      string session_id = 1;
      Returns:
      This builder for chaining.
    • setSessionIdBytes

      public SessionSnapshot.Builder setSessionIdBytes(com.google.protobuf.ByteString value)
      string session_id = 1;
      Parameters:
      value - The bytes for sessionId to set.
      Returns:
      This builder for chaining.
    • getPhase

      public String getPhase()
      string phase = 2;
      Specified by:
      getPhase in interface SessionSnapshotOrBuilder
      Returns:
      The phase.
    • getPhaseBytes

      public com.google.protobuf.ByteString getPhaseBytes()
      string phase = 2;
      Specified by:
      getPhaseBytes in interface SessionSnapshotOrBuilder
      Returns:
      The bytes for phase.
    • setPhase

      public SessionSnapshot.Builder setPhase(String value)
      string phase = 2;
      Parameters:
      value - The phase to set.
      Returns:
      This builder for chaining.
    • clearPhase

      public SessionSnapshot.Builder clearPhase()
      string phase = 2;
      Returns:
      This builder for chaining.
    • setPhaseBytes

      public SessionSnapshot.Builder setPhaseBytes(com.google.protobuf.ByteString value)
      string phase = 2;
      Parameters:
      value - The bytes for phase to set.
      Returns:
      This builder for chaining.
    • getMessageCount

      public int getMessageCount()
      int32 message_count = 3;
      Specified by:
      getMessageCount in interface SessionSnapshotOrBuilder
      Returns:
      The messageCount.
    • setMessageCount

      public SessionSnapshot.Builder setMessageCount(int value)
      int32 message_count = 3;
      Parameters:
      value - The messageCount to set.
      Returns:
      This builder for chaining.
    • clearMessageCount

      public SessionSnapshot.Builder clearMessageCount()
      int32 message_count = 3;
      Returns:
      This builder for chaining.
    • getPromptTokens

      public long getPromptTokens()
      int64 prompt_tokens = 4;
      Specified by:
      getPromptTokens in interface SessionSnapshotOrBuilder
      Returns:
      The promptTokens.
    • setPromptTokens

      public SessionSnapshot.Builder setPromptTokens(long value)
      int64 prompt_tokens = 4;
      Parameters:
      value - The promptTokens to set.
      Returns:
      This builder for chaining.
    • clearPromptTokens

      public SessionSnapshot.Builder clearPromptTokens()
      int64 prompt_tokens = 4;
      Returns:
      This builder for chaining.
    • getCompletionTokens

      public long getCompletionTokens()
      int64 completion_tokens = 5;
      Specified by:
      getCompletionTokens in interface SessionSnapshotOrBuilder
      Returns:
      The completionTokens.
    • setCompletionTokens

      public SessionSnapshot.Builder setCompletionTokens(long value)
      int64 completion_tokens = 5;
      Parameters:
      value - The completionTokens to set.
      Returns:
      This builder for chaining.
    • clearCompletionTokens

      public SessionSnapshot.Builder clearCompletionTokens()
      int64 completion_tokens = 5;
      Returns:
      This builder for chaining.
    • getContextPressure

      public double getContextPressure()
      double context_pressure = 6;
      Specified by:
      getContextPressure in interface SessionSnapshotOrBuilder
      Returns:
      The contextPressure.
    • setContextPressure

      public SessionSnapshot.Builder setContextPressure(double value)
      double context_pressure = 6;
      Parameters:
      value - The contextPressure to set.
      Returns:
      This builder for chaining.
    • clearContextPressure

      public SessionSnapshot.Builder clearContextPressure()
      double context_pressure = 6;
      Returns:
      This builder for chaining.
    • getFramework

      public String getFramework()
       Framework identification (Level 1 extension, see sdk-design.md §3.1)
       
      string framework = 10;
      Specified by:
      getFramework in interface SessionSnapshotOrBuilder
      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:
      getFrameworkBytes in interface SessionSnapshotOrBuilder
      Returns:
      The bytes for framework.
    • setFramework

      public SessionSnapshot.Builder setFramework(String value)
       Framework identification (Level 1 extension, see sdk-design.md §3.1)
       
      string framework = 10;
      Parameters:
      value - The framework to set.
      Returns:
      This builder for chaining.
    • clearFramework

      public SessionSnapshot.Builder clearFramework()
       Framework identification (Level 1 extension, see sdk-design.md §3.1)
       
      string framework = 10;
      Returns:
      This builder for chaining.
    • setFrameworkBytes

      public SessionSnapshot.Builder setFrameworkBytes(com.google.protobuf.ByteString value)
       Framework identification (Level 1 extension, see sdk-design.md §3.1)
       
      string framework = 10;
      Parameters:
      value - The bytes for framework to set.
      Returns:
      This builder for chaining.
    • getFrameworkVersion

      public String getFrameworkVersion()
      string framework_version = 11;
      Specified by:
      getFrameworkVersion in interface SessionSnapshotOrBuilder
      Returns:
      The frameworkVersion.
    • getFrameworkVersionBytes

      public com.google.protobuf.ByteString getFrameworkVersionBytes()
      string framework_version = 11;
      Specified by:
      getFrameworkVersionBytes in interface SessionSnapshotOrBuilder
      Returns:
      The bytes for frameworkVersion.
    • setFrameworkVersion

      public SessionSnapshot.Builder setFrameworkVersion(String value)
      string framework_version = 11;
      Parameters:
      value - The frameworkVersion to set.
      Returns:
      This builder for chaining.
    • clearFrameworkVersion

      public SessionSnapshot.Builder clearFrameworkVersion()
      string framework_version = 11;
      Returns:
      This builder for chaining.
    • setFrameworkVersionBytes

      public SessionSnapshot.Builder setFrameworkVersionBytes(com.google.protobuf.ByteString value)
      string framework_version = 11;
      Parameters:
      value - The bytes for frameworkVersion to set.
      Returns:
      This builder for chaining.
    • getContextHash

      public String getContextHash()
       Context change detection
       
      string context_hash = 12;
      Specified by:
      getContextHash in interface SessionSnapshotOrBuilder
      Returns:
      The contextHash.
    • getContextHashBytes

      public com.google.protobuf.ByteString getContextHashBytes()
       Context change detection
       
      string context_hash = 12;
      Specified by:
      getContextHashBytes in interface SessionSnapshotOrBuilder
      Returns:
      The bytes for contextHash.
    • setContextHash

      public SessionSnapshot.Builder setContextHash(String value)
       Context change detection
       
      string context_hash = 12;
      Parameters:
      value - The contextHash to set.
      Returns:
      This builder for chaining.
    • clearContextHash

      public SessionSnapshot.Builder clearContextHash()
       Context change detection
       
      string context_hash = 12;
      Returns:
      This builder for chaining.
    • setContextHashBytes

      public SessionSnapshot.Builder setContextHashBytes(com.google.protobuf.ByteString value)
       Context change detection
       
      string context_hash = 12;
      Parameters:
      value - The bytes for contextHash to set.
      Returns:
      This builder for chaining.
    • getIsCompacted

      public boolean getIsCompacted()
       whether the context has been compacted
       
      bool is_compacted = 13;
      Specified by:
      getIsCompacted in interface SessionSnapshotOrBuilder
      Returns:
      The isCompacted.
    • setIsCompacted

      public SessionSnapshot.Builder setIsCompacted(boolean value)
       whether the context has been compacted
       
      bool is_compacted = 13;
      Parameters:
      value - The isCompacted to set.
      Returns:
      This builder for chaining.
    • clearIsCompacted

      public SessionSnapshot.Builder clearIsCompacted()
       whether the context has been compacted
       
      bool is_compacted = 13;
      Returns:
      This builder for chaining.
    • getEffectiveMessageCount

      public int getEffectiveMessageCount()
       effective messages after compaction (!= message_count)
       
      int32 effective_message_count = 14;
      Specified by:
      getEffectiveMessageCount in interface SessionSnapshotOrBuilder
      Returns:
      The effectiveMessageCount.
    • setEffectiveMessageCount

      public SessionSnapshot.Builder setEffectiveMessageCount(int value)
       effective messages after compaction (!= message_count)
       
      int32 effective_message_count = 14;
      Parameters:
      value - The effectiveMessageCount to set.
      Returns:
      This builder for chaining.
    • clearEffectiveMessageCount

      public SessionSnapshot.Builder clearEffectiveMessageCount()
       effective messages after compaction (!= message_count)
       
      int32 effective_message_count = 14;
      Returns:
      This builder for chaining.