Class SessionEventMsg.Builder

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

public static final class SessionEventMsg.Builder extends com.google.protobuf.GeneratedMessage.Builder<SessionEventMsg.Builder> implements SessionEventMsgOrBuilder
Protobuf type agentscope.protocol.v1.SessionEventMsg
  • 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<SessionEventMsg.Builder>
    • clear

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

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

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

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

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

      public SessionEventMsg.Builder mergeFrom(SessionEventMsg other)
    • isInitialized

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

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

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

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

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

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

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

      public int getSeq()
       monotonically increasing per session; idempotency key
       
      int32 seq = 2;
      Specified by:
      getSeq in interface SessionEventMsgOrBuilder
      Returns:
      The seq.
    • setSeq

      public SessionEventMsg.Builder setSeq(int value)
       monotonically increasing per session; idempotency key
       
      int32 seq = 2;
      Parameters:
      value - The seq to set.
      Returns:
      This builder for chaining.
    • clearSeq

      public SessionEventMsg.Builder clearSeq()
       monotonically increasing per session; idempotency key
       
      int32 seq = 2;
      Returns:
      This builder for chaining.
    • getEventType

      public String getEventType()
       session_start | message | tool_call | tool_result | session_end | compaction
       
      string event_type = 3;
      Specified by:
      getEventType in interface SessionEventMsgOrBuilder
      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:
      getEventTypeBytes in interface SessionEventMsgOrBuilder
      Returns:
      The bytes for eventType.
    • setEventType

      public SessionEventMsg.Builder setEventType(String value)
       session_start | message | tool_call | tool_result | session_end | compaction
       
      string event_type = 3;
      Parameters:
      value - The eventType to set.
      Returns:
      This builder for chaining.
    • clearEventType

      public SessionEventMsg.Builder clearEventType()
       session_start | message | tool_call | tool_result | session_end | compaction
       
      string event_type = 3;
      Returns:
      This builder for chaining.
    • setEventTypeBytes

      public SessionEventMsg.Builder setEventTypeBytes(com.google.protobuf.ByteString value)
       session_start | message | tool_call | tool_result | session_end | compaction
       
      string event_type = 3;
      Parameters:
      value - The bytes for eventType to set.
      Returns:
      This builder for chaining.
    • getOccurredAt

      public long getOccurredAt()
       unix milliseconds
       
      int64 occurred_at = 4;
      Specified by:
      getOccurredAt in interface SessionEventMsgOrBuilder
      Returns:
      The occurredAt.
    • setOccurredAt

      public SessionEventMsg.Builder setOccurredAt(long value)
       unix milliseconds
       
      int64 occurred_at = 4;
      Parameters:
      value - The occurredAt to set.
      Returns:
      This builder for chaining.
    • clearOccurredAt

      public SessionEventMsg.Builder clearOccurredAt()
       unix milliseconds
       
      int64 occurred_at = 4;
      Returns:
      This builder for chaining.
    • getRole

      public String getRole()
       user | assistant | system | tool
       
      string role = 5;
      Specified by:
      getRole in interface SessionEventMsgOrBuilder
      Returns:
      The role.
    • getRoleBytes

      public com.google.protobuf.ByteString getRoleBytes()
       user | assistant | system | tool
       
      string role = 5;
      Specified by:
      getRoleBytes in interface SessionEventMsgOrBuilder
      Returns:
      The bytes for role.
    • setRole

      public SessionEventMsg.Builder setRole(String value)
       user | assistant | system | tool
       
      string role = 5;
      Parameters:
      value - The role to set.
      Returns:
      This builder for chaining.
    • clearRole

      public SessionEventMsg.Builder clearRole()
       user | assistant | system | tool
       
      string role = 5;
      Returns:
      This builder for chaining.
    • setRoleBytes

      public SessionEventMsg.Builder setRoleBytes(com.google.protobuf.ByteString value)
       user | assistant | system | tool
       
      string role = 5;
      Parameters:
      value - The bytes for role to set.
      Returns:
      This builder for chaining.
    • getContent

      public String getContent()
       complete message/event text for durable replay
       
      string content = 6;
      Specified by:
      getContent in interface SessionEventMsgOrBuilder
      Returns:
      The content.
    • getContentBytes

      public com.google.protobuf.ByteString getContentBytes()
       complete message/event text for durable replay
       
      string content = 6;
      Specified by:
      getContentBytes in interface SessionEventMsgOrBuilder
      Returns:
      The bytes for content.
    • setContent

      public SessionEventMsg.Builder setContent(String value)
       complete message/event text for durable replay
       
      string content = 6;
      Parameters:
      value - The content to set.
      Returns:
      This builder for chaining.
    • clearContent

      public SessionEventMsg.Builder clearContent()
       complete message/event text for durable replay
       
      string content = 6;
      Returns:
      This builder for chaining.
    • setContentBytes

      public SessionEventMsg.Builder setContentBytes(com.google.protobuf.ByteString value)
       complete message/event text for durable replay
       
      string content = 6;
      Parameters:
      value - The bytes for content to set.
      Returns:
      This builder for chaining.
    • getToolName

      public String getToolName()
      string tool_name = 7;
      Specified by:
      getToolName in interface SessionEventMsgOrBuilder
      Returns:
      The toolName.
    • getToolNameBytes

      public com.google.protobuf.ByteString getToolNameBytes()
      string tool_name = 7;
      Specified by:
      getToolNameBytes in interface SessionEventMsgOrBuilder
      Returns:
      The bytes for toolName.
    • setToolName

      public SessionEventMsg.Builder setToolName(String value)
      string tool_name = 7;
      Parameters:
      value - The toolName to set.
      Returns:
      This builder for chaining.
    • clearToolName

      public SessionEventMsg.Builder clearToolName()
      string tool_name = 7;
      Returns:
      This builder for chaining.
    • setToolNameBytes

      public SessionEventMsg.Builder setToolNameBytes(com.google.protobuf.ByteString value)
      string tool_name = 7;
      Parameters:
      value - The bytes for toolName to set.
      Returns:
      This builder for chaining.
    • getToolInput

      public com.google.protobuf.ByteString getToolInput()
       JSON
       
      bytes tool_input = 8;
      Specified by:
      getToolInput in interface SessionEventMsgOrBuilder
      Returns:
      The toolInput.
    • setToolInput

      public SessionEventMsg.Builder setToolInput(com.google.protobuf.ByteString value)
       JSON
       
      bytes tool_input = 8;
      Parameters:
      value - The toolInput to set.
      Returns:
      This builder for chaining.
    • clearToolInput

      public SessionEventMsg.Builder clearToolInput()
       JSON
       
      bytes tool_input = 8;
      Returns:
      This builder for chaining.
    • getToolOutput

      public String getToolOutput()
      string tool_output = 9;
      Specified by:
      getToolOutput in interface SessionEventMsgOrBuilder
      Returns:
      The toolOutput.
    • getToolOutputBytes

      public com.google.protobuf.ByteString getToolOutputBytes()
      string tool_output = 9;
      Specified by:
      getToolOutputBytes in interface SessionEventMsgOrBuilder
      Returns:
      The bytes for toolOutput.
    • setToolOutput

      public SessionEventMsg.Builder setToolOutput(String value)
      string tool_output = 9;
      Parameters:
      value - The toolOutput to set.
      Returns:
      This builder for chaining.
    • clearToolOutput

      public SessionEventMsg.Builder clearToolOutput()
      string tool_output = 9;
      Returns:
      This builder for chaining.
    • setToolOutputBytes

      public SessionEventMsg.Builder setToolOutputBytes(com.google.protobuf.ByteString value)
      string tool_output = 9;
      Parameters:
      value - The bytes for toolOutput to set.
      Returns:
      This builder for chaining.
    • getTokensIn

      public int getTokensIn()
      int32 tokens_in = 10;
      Specified by:
      getTokensIn in interface SessionEventMsgOrBuilder
      Returns:
      The tokensIn.
    • setTokensIn

      public SessionEventMsg.Builder setTokensIn(int value)
      int32 tokens_in = 10;
      Parameters:
      value - The tokensIn to set.
      Returns:
      This builder for chaining.
    • clearTokensIn

      public SessionEventMsg.Builder clearTokensIn()
      int32 tokens_in = 10;
      Returns:
      This builder for chaining.
    • getTokensOut

      public int getTokensOut()
      int32 tokens_out = 11;
      Specified by:
      getTokensOut in interface SessionEventMsgOrBuilder
      Returns:
      The tokensOut.
    • setTokensOut

      public SessionEventMsg.Builder setTokensOut(int value)
      int32 tokens_out = 11;
      Parameters:
      value - The tokensOut to set.
      Returns:
      This builder for chaining.
    • clearTokensOut

      public SessionEventMsg.Builder clearTokensOut()
      int32 tokens_out = 11;
      Returns:
      This builder for chaining.
    • getDurationMs

      public int getDurationMs()
      int32 duration_ms = 12;
      Specified by:
      getDurationMs in interface SessionEventMsgOrBuilder
      Returns:
      The durationMs.
    • setDurationMs

      public SessionEventMsg.Builder setDurationMs(int value)
      int32 duration_ms = 12;
      Parameters:
      value - The durationMs to set.
      Returns:
      This builder for chaining.
    • clearDurationMs

      public SessionEventMsg.Builder clearDurationMs()
      int32 duration_ms = 12;
      Returns:
      This builder for chaining.
    • getFrameworkMeta

      public com.google.protobuf.ByteString getFrameworkMeta()
       framework-private JSON
       
      bytes framework_meta = 13;
      Specified by:
      getFrameworkMeta in interface SessionEventMsgOrBuilder
      Returns:
      The frameworkMeta.
    • setFrameworkMeta

      public SessionEventMsg.Builder setFrameworkMeta(com.google.protobuf.ByteString value)
       framework-private JSON
       
      bytes framework_meta = 13;
      Parameters:
      value - The frameworkMeta to set.
      Returns:
      This builder for chaining.
    • clearFrameworkMeta

      public SessionEventMsg.Builder clearFrameworkMeta()
       framework-private JSON
       
      bytes framework_meta = 13;
      Returns:
      This builder for chaining.