Record Class AgentRegistryLiveTargetEntry

java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.AgentRegistryLiveTargetEntry

@Generated("copilot-sdk-codegen") public record AgentRegistryLiveTargetEntry(Long schemaVersion, AgentRegistryLiveTargetEntryKind kind, Long pid, String host, Long port, String token, String sessionId, String sessionName, String cwd, String branch, String model, AgentRegistryLiveTargetEntryStatus status, AgentRegistryLiveTargetEntryAttentionKind attentionKind, Long statusRevision, AgentRegistryLiveTargetEntryLastTerminalEvent lastTerminalEvent, String startedAt, String copilotVersion, Long lastSeenMs) extends Record
Full registry entry for the spawned child. Lets the controller call `handleLiveTargetSelected(entry)` directly without re-reading the registry (avoids a TOCTOU window).
Since:
1.0.0
  • Constructor Details

    • AgentRegistryLiveTargetEntry

      public AgentRegistryLiveTargetEntry(Long schemaVersion, AgentRegistryLiveTargetEntryKind kind, Long pid, String host, Long port, String token, String sessionId, String sessionName, String cwd, String branch, String model, AgentRegistryLiveTargetEntryStatus status, AgentRegistryLiveTargetEntryAttentionKind attentionKind, Long statusRevision, AgentRegistryLiveTargetEntryLastTerminalEvent lastTerminalEvent, String startedAt, String copilotVersion, Long lastSeenMs)
      Creates an instance of a AgentRegistryLiveTargetEntry record class.
      Parameters:
      schemaVersion - the value for the schemaVersion record component
      kind - the value for the kind record component
      pid - the value for the pid record component
      host - the value for the host record component
      port - the value for the port record component
      token - the value for the token record component
      sessionId - the value for the sessionId record component
      sessionName - the value for the sessionName record component
      cwd - the value for the cwd record component
      branch - the value for the branch record component
      model - the value for the model record component
      status - the value for the status record component
      attentionKind - the value for the attentionKind record component
      statusRevision - the value for the statusRevision record component
      lastTerminalEvent - the value for the lastTerminalEvent record component
      startedAt - the value for the startedAt record component
      copilotVersion - the value for the copilotVersion record component
      lastSeenMs - the value for the lastSeenMs record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • schemaVersion

      public Long schemaVersion()
      Returns the value of the schemaVersion record component.
      Returns:
      the value of the schemaVersion record component
    • kind

      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • pid

      public Long pid()
      Returns the value of the pid record component.
      Returns:
      the value of the pid record component
    • host

      public String host()
      Returns the value of the host record component.
      Returns:
      the value of the host record component
    • port

      public Long port()
      Returns the value of the port record component.
      Returns:
      the value of the port record component
    • token

      public String token()
      Returns the value of the token record component.
      Returns:
      the value of the token record component
    • sessionId

      public String sessionId()
      Returns the value of the sessionId record component.
      Returns:
      the value of the sessionId record component
    • sessionName

      public String sessionName()
      Returns the value of the sessionName record component.
      Returns:
      the value of the sessionName record component
    • cwd

      public String cwd()
      Returns the value of the cwd record component.
      Returns:
      the value of the cwd record component
    • branch

      public String branch()
      Returns the value of the branch record component.
      Returns:
      the value of the branch record component
    • model

      public String model()
      Returns the value of the model record component.
      Returns:
      the value of the model record component
    • status

      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • attentionKind

      Returns the value of the attentionKind record component.
      Returns:
      the value of the attentionKind record component
    • statusRevision

      public Long statusRevision()
      Returns the value of the statusRevision record component.
      Returns:
      the value of the statusRevision record component
    • lastTerminalEvent

      Returns the value of the lastTerminalEvent record component.
      Returns:
      the value of the lastTerminalEvent record component
    • startedAt

      public String startedAt()
      Returns the value of the startedAt record component.
      Returns:
      the value of the startedAt record component
    • copilotVersion

      public String copilotVersion()
      Returns the value of the copilotVersion record component.
      Returns:
      the value of the copilotVersion record component
    • lastSeenMs

      public Long lastSeenMs()
      Returns the value of the lastSeenMs record component.
      Returns:
      the value of the lastSeenMs record component