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 Summary
ConstructorsConstructorDescriptionAgentRegistryLiveTargetEntry(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 aAgentRegistryLiveTargetEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattentionKindrecord component.branch()Returns the value of thebranchrecord component.Returns the value of thecopilotVersionrecord component.cwd()Returns the value of thecwdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.kind()Returns the value of thekindrecord component.Returns the value of thelastSeenMsrecord component.Returns the value of thelastTerminalEventrecord component.model()Returns the value of themodelrecord component.pid()Returns the value of thepidrecord component.port()Returns the value of theportrecord component.Returns the value of theschemaVersionrecord component.Returns the value of thesessionIdrecord component.Returns the value of thesessionNamerecord component.Returns the value of thestartedAtrecord component.status()Returns the value of thestatusrecord component.Returns the value of thestatusRevisionrecord component.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aAgentRegistryLiveTargetEntryrecord class.- Parameters:
schemaVersion- the value for theschemaVersionrecord componentkind- the value for thekindrecord componentpid- the value for thepidrecord componenthost- the value for thehostrecord componentport- the value for theportrecord componenttoken- the value for thetokenrecord componentsessionId- the value for thesessionIdrecord componentsessionName- the value for thesessionNamerecord componentcwd- the value for thecwdrecord componentbranch- the value for thebranchrecord componentmodel- the value for themodelrecord componentstatus- the value for thestatusrecord componentattentionKind- the value for theattentionKindrecord componentstatusRevision- the value for thestatusRevisionrecord componentlastTerminalEvent- the value for thelastTerminalEventrecord componentstartedAt- the value for thestartedAtrecord componentcopilotVersion- the value for thecopilotVersionrecord componentlastSeenMs- the value for thelastSeenMsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
schemaVersion
Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
pid
Returns the value of thepidrecord component.- Returns:
- the value of the
pidrecord component
-
host
Returns the value of thehostrecord component.- Returns:
- the value of the
hostrecord component
-
port
Returns the value of theportrecord component.- Returns:
- the value of the
portrecord component
-
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
sessionName
Returns the value of thesessionNamerecord component.- Returns:
- the value of the
sessionNamerecord component
-
cwd
Returns the value of thecwdrecord component.- Returns:
- the value of the
cwdrecord component
-
branch
Returns the value of thebranchrecord component.- Returns:
- the value of the
branchrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
attentionKind
Returns the value of theattentionKindrecord component.- Returns:
- the value of the
attentionKindrecord component
-
statusRevision
Returns the value of thestatusRevisionrecord component.- Returns:
- the value of the
statusRevisionrecord component
-
lastTerminalEvent
Returns the value of thelastTerminalEventrecord component.- Returns:
- the value of the
lastTerminalEventrecord component
-
startedAt
Returns the value of thestartedAtrecord component.- Returns:
- the value of the
startedAtrecord component
-
copilotVersion
Returns the value of thecopilotVersionrecord component.- Returns:
- the value of the
copilotVersionrecord component
-
lastSeenMs
Returns the value of thelastSeenMsrecord component.- Returns:
- the value of the
lastSeenMsrecord component
-