Class ContextReport.Builder

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

public static final class ContextReport.Builder extends com.google.protobuf.GeneratedMessage.Builder<ContextReport.Builder> implements ContextReportOrBuilder
 ContextReport is the Level-4 effective-context report, pushed on compaction
 or when context_hash changes (debounced). Written into context_snapshots.
 
Protobuf type agentscope.protocol.v1.ContextReport
  • 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<ContextReport.Builder>
    • clear

      public ContextReport.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<ContextReport.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<ContextReport.Builder>
    • getDefaultInstanceForType

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

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

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

      public ContextReport.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<ContextReport.Builder>
    • mergeFrom

      public ContextReport.Builder mergeFrom(ContextReport other)
    • isInitialized

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

      public ContextReport.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<ContextReport.Builder>
      Throws:
      IOException
    • getSessionId

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

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

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

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

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

      public String getContextHash()
      string context_hash = 2;
      Specified by:
      getContextHash in interface ContextReportOrBuilder
      Returns:
      The contextHash.
    • getContextHashBytes

      public com.google.protobuf.ByteString getContextHashBytes()
      string context_hash = 2;
      Specified by:
      getContextHashBytes in interface ContextReportOrBuilder
      Returns:
      The bytes for contextHash.
    • setContextHash

      public ContextReport.Builder setContextHash(String value)
      string context_hash = 2;
      Parameters:
      value - The contextHash to set.
      Returns:
      This builder for chaining.
    • clearContextHash

      public ContextReport.Builder clearContextHash()
      string context_hash = 2;
      Returns:
      This builder for chaining.
    • setContextHashBytes

      public ContextReport.Builder setContextHashBytes(com.google.protobuf.ByteString value)
      string context_hash = 2;
      Parameters:
      value - The bytes for contextHash to set.
      Returns:
      This builder for chaining.
    • getCapturedAt

      public long getCapturedAt()
       unix milliseconds
       
      int64 captured_at = 3;
      Specified by:
      getCapturedAt in interface ContextReportOrBuilder
      Returns:
      The capturedAt.
    • setCapturedAt

      public ContextReport.Builder setCapturedAt(long value)
       unix milliseconds
       
      int64 captured_at = 3;
      Parameters:
      value - The capturedAt to set.
      Returns:
      This builder for chaining.
    • clearCapturedAt

      public ContextReport.Builder clearCapturedAt()
       unix milliseconds
       
      int64 captured_at = 3;
      Returns:
      This builder for chaining.
    • getSystemPrompt

      public String getSystemPrompt()
      string system_prompt = 4;
      Specified by:
      getSystemPrompt in interface ContextReportOrBuilder
      Returns:
      The systemPrompt.
    • getSystemPromptBytes

      public com.google.protobuf.ByteString getSystemPromptBytes()
      string system_prompt = 4;
      Specified by:
      getSystemPromptBytes in interface ContextReportOrBuilder
      Returns:
      The bytes for systemPrompt.
    • setSystemPrompt

      public ContextReport.Builder setSystemPrompt(String value)
      string system_prompt = 4;
      Parameters:
      value - The systemPrompt to set.
      Returns:
      This builder for chaining.
    • clearSystemPrompt

      public ContextReport.Builder clearSystemPrompt()
      string system_prompt = 4;
      Returns:
      This builder for chaining.
    • setSystemPromptBytes

      public ContextReport.Builder setSystemPromptBytes(com.google.protobuf.ByteString value)
      string system_prompt = 4;
      Parameters:
      value - The bytes for systemPrompt to set.
      Returns:
      This builder for chaining.
    • getMessages

      public com.google.protobuf.ByteString getMessages()
       JSON array of {role, content, is_compaction?}
       
      bytes messages = 5;
      Specified by:
      getMessages in interface ContextReportOrBuilder
      Returns:
      The messages.
    • setMessages

      public ContextReport.Builder setMessages(com.google.protobuf.ByteString value)
       JSON array of {role, content, is_compaction?}
       
      bytes messages = 5;
      Parameters:
      value - The messages to set.
      Returns:
      This builder for chaining.
    • clearMessages

      public ContextReport.Builder clearMessages()
       JSON array of {role, content, is_compaction?}
       
      bytes messages = 5;
      Returns:
      This builder for chaining.
    • getTools

      public com.google.protobuf.ByteString getTools()
       JSON array of ToolInfo
       
      bytes tools = 6;
      Specified by:
      getTools in interface ContextReportOrBuilder
      Returns:
      The tools.
    • setTools

      public ContextReport.Builder setTools(com.google.protobuf.ByteString value)
       JSON array of ToolInfo
       
      bytes tools = 6;
      Parameters:
      value - The tools to set.
      Returns:
      This builder for chaining.
    • clearTools

      public ContextReport.Builder clearTools()
       JSON array of ToolInfo
       
      bytes tools = 6;
      Returns:
      This builder for chaining.
    • getIsCompacted

      public boolean getIsCompacted()
      bool is_compacted = 7;
      Specified by:
      getIsCompacted in interface ContextReportOrBuilder
      Returns:
      The isCompacted.
    • setIsCompacted

      public ContextReport.Builder setIsCompacted(boolean value)
      bool is_compacted = 7;
      Parameters:
      value - The isCompacted to set.
      Returns:
      This builder for chaining.
    • clearIsCompacted

      public ContextReport.Builder clearIsCompacted()
      bool is_compacted = 7;
      Returns:
      This builder for chaining.
    • getCompactionSummary

      public String getCompactionSummary()
      string compaction_summary = 8;
      Specified by:
      getCompactionSummary in interface ContextReportOrBuilder
      Returns:
      The compactionSummary.
    • getCompactionSummaryBytes

      public com.google.protobuf.ByteString getCompactionSummaryBytes()
      string compaction_summary = 8;
      Specified by:
      getCompactionSummaryBytes in interface ContextReportOrBuilder
      Returns:
      The bytes for compactionSummary.
    • setCompactionSummary

      public ContextReport.Builder setCompactionSummary(String value)
      string compaction_summary = 8;
      Parameters:
      value - The compactionSummary to set.
      Returns:
      This builder for chaining.
    • clearCompactionSummary

      public ContextReport.Builder clearCompactionSummary()
      string compaction_summary = 8;
      Returns:
      This builder for chaining.
    • setCompactionSummaryBytes

      public ContextReport.Builder setCompactionSummaryBytes(com.google.protobuf.ByteString value)
      string compaction_summary = 8;
      Parameters:
      value - The bytes for compactionSummary to set.
      Returns:
      This builder for chaining.
    • getOriginalMessageCount

      public int getOriginalMessageCount()
      int32 original_message_count = 9;
      Specified by:
      getOriginalMessageCount in interface ContextReportOrBuilder
      Returns:
      The originalMessageCount.
    • setOriginalMessageCount

      public ContextReport.Builder setOriginalMessageCount(int value)
      int32 original_message_count = 9;
      Parameters:
      value - The originalMessageCount to set.
      Returns:
      This builder for chaining.
    • clearOriginalMessageCount

      public ContextReport.Builder clearOriginalMessageCount()
      int32 original_message_count = 9;
      Returns:
      This builder for chaining.
    • getCompactedAt

      public long getCompactedAt()
       unix milliseconds
       
      int64 compacted_at = 10;
      Specified by:
      getCompactedAt in interface ContextReportOrBuilder
      Returns:
      The compactedAt.
    • setCompactedAt

      public ContextReport.Builder setCompactedAt(long value)
       unix milliseconds
       
      int64 compacted_at = 10;
      Parameters:
      value - The compactedAt to set.
      Returns:
      This builder for chaining.
    • clearCompactedAt

      public ContextReport.Builder clearCompactedAt()
       unix milliseconds
       
      int64 compacted_at = 10;
      Returns:
      This builder for chaining.
    • getTotalTokens

      public int getTotalTokens()
      int32 total_tokens = 11;
      Specified by:
      getTotalTokens in interface ContextReportOrBuilder
      Returns:
      The totalTokens.
    • setTotalTokens

      public ContextReport.Builder setTotalTokens(int value)
      int32 total_tokens = 11;
      Parameters:
      value - The totalTokens to set.
      Returns:
      This builder for chaining.
    • clearTotalTokens

      public ContextReport.Builder clearTotalTokens()
      int32 total_tokens = 11;
      Returns:
      This builder for chaining.
    • getMaxTokens

      public int getMaxTokens()
      int32 max_tokens = 12;
      Specified by:
      getMaxTokens in interface ContextReportOrBuilder
      Returns:
      The maxTokens.
    • setMaxTokens

      public ContextReport.Builder setMaxTokens(int value)
      int32 max_tokens = 12;
      Parameters:
      value - The maxTokens to set.
      Returns:
      This builder for chaining.
    • clearMaxTokens

      public ContextReport.Builder clearMaxTokens()
      int32 max_tokens = 12;
      Returns:
      This builder for chaining.
    • getFramework

      public String getFramework()
      string framework = 13;
      Specified by:
      getFramework in interface ContextReportOrBuilder
      Returns:
      The framework.
    • getFrameworkBytes

      public com.google.protobuf.ByteString getFrameworkBytes()
      string framework = 13;
      Specified by:
      getFrameworkBytes in interface ContextReportOrBuilder
      Returns:
      The bytes for framework.
    • setFramework

      public ContextReport.Builder setFramework(String value)
      string framework = 13;
      Parameters:
      value - The framework to set.
      Returns:
      This builder for chaining.
    • clearFramework

      public ContextReport.Builder clearFramework()
      string framework = 13;
      Returns:
      This builder for chaining.
    • setFrameworkBytes

      public ContextReport.Builder setFrameworkBytes(com.google.protobuf.ByteString value)
      string framework = 13;
      Parameters:
      value - The bytes for framework to set.
      Returns:
      This builder for chaining.
    • getFrameworkState

      public com.google.protobuf.ByteString getFrameworkState()
       framework-private JSON (graph state, session metadata, ...)
       
      bytes framework_state = 14;
      Specified by:
      getFrameworkState in interface ContextReportOrBuilder
      Returns:
      The frameworkState.
    • setFrameworkState

      public ContextReport.Builder setFrameworkState(com.google.protobuf.ByteString value)
       framework-private JSON (graph state, session metadata, ...)
       
      bytes framework_state = 14;
      Parameters:
      value - The frameworkState to set.
      Returns:
      This builder for chaining.
    • clearFrameworkState

      public ContextReport.Builder clearFrameworkState()
       framework-private JSON (graph state, session metadata, ...)
       
      bytes framework_state = 14;
      Returns:
      This builder for chaining.