Module com.github.copilot.java
Package com.github.copilot.generated.rpc
Record Class SessionMetadataSnapshotResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionMetadataSnapshotResult
@Generated("copilot-sdk-codegen")
public record SessionMetadataSnapshotResult(String sessionId, OffsetDateTime startTime, OffsetDateTime modifiedTime, Boolean isRemote, Boolean alreadyInUse, String workspacePath, String initialName, String clientName, MetadataSnapshotRemoteMetadata remoteMetadata, String summary, String workingDirectory, MetadataSnapshotCurrentMode currentMode, String selectedModel, SessionMetadataSnapshotResult.SessionMetadataSnapshotResultWorkspace workspace)
extends Record
Point-in-time snapshot of slow-changing session identifier and state fields
- Since:
- 1.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordPublic-facing projection of workspace metadata for SDK / TUI consumers -
Constructor Summary
ConstructorsConstructorDescriptionSessionMetadataSnapshotResult(String sessionId, OffsetDateTime startTime, OffsetDateTime modifiedTime, Boolean isRemote, Boolean alreadyInUse, String workspacePath, String initialName, String clientName, MetadataSnapshotRemoteMetadata remoteMetadata, String summary, String workingDirectory, MetadataSnapshotCurrentMode currentMode, String selectedModel, SessionMetadataSnapshotResult.SessionMetadataSnapshotResultWorkspace workspace) Creates an instance of aSessionMetadataSnapshotResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealreadyInUserecord component.Returns the value of theclientNamerecord component.Returns the value of thecurrentModerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinitialNamerecord component.isRemote()Returns the value of theisRemoterecord component.Returns the value of themodifiedTimerecord component.Returns the value of theremoteMetadatarecord component.Returns the value of theselectedModelrecord component.Returns the value of thesessionIdrecord component.Returns the value of thestartTimerecord component.summary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworkingDirectoryrecord component.Returns the value of theworkspacerecord component.Returns the value of theworkspacePathrecord component.
-
Constructor Details
-
SessionMetadataSnapshotResult
public SessionMetadataSnapshotResult(String sessionId, OffsetDateTime startTime, OffsetDateTime modifiedTime, Boolean isRemote, Boolean alreadyInUse, String workspacePath, String initialName, String clientName, MetadataSnapshotRemoteMetadata remoteMetadata, String summary, String workingDirectory, MetadataSnapshotCurrentMode currentMode, String selectedModel, SessionMetadataSnapshotResult.SessionMetadataSnapshotResultWorkspace workspace) Creates an instance of aSessionMetadataSnapshotResultrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentstartTime- the value for thestartTimerecord componentmodifiedTime- the value for themodifiedTimerecord componentisRemote- the value for theisRemoterecord componentalreadyInUse- the value for thealreadyInUserecord componentworkspacePath- the value for theworkspacePathrecord componentinitialName- the value for theinitialNamerecord componentclientName- the value for theclientNamerecord componentremoteMetadata- the value for theremoteMetadatarecord componentsummary- the value for thesummaryrecord componentworkingDirectory- the value for theworkingDirectoryrecord componentcurrentMode- the value for thecurrentModerecord componentselectedModel- the value for theselectedModelrecord componentworkspace- the value for theworkspacerecord component
-
-
Method Details
-
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. -
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. -
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). -
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
startTime
Returns the value of thestartTimerecord component.- Returns:
- the value of the
startTimerecord component
-
modifiedTime
Returns the value of themodifiedTimerecord component.- Returns:
- the value of the
modifiedTimerecord component
-
isRemote
Returns the value of theisRemoterecord component.- Returns:
- the value of the
isRemoterecord component
-
alreadyInUse
Returns the value of thealreadyInUserecord component.- Returns:
- the value of the
alreadyInUserecord component
-
workspacePath
Returns the value of theworkspacePathrecord component.- Returns:
- the value of the
workspacePathrecord component
-
initialName
Returns the value of theinitialNamerecord component.- Returns:
- the value of the
initialNamerecord component
-
clientName
Returns the value of theclientNamerecord component.- Returns:
- the value of the
clientNamerecord component
-
remoteMetadata
Returns the value of theremoteMetadatarecord component.- Returns:
- the value of the
remoteMetadatarecord component
-
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-
workingDirectory
Returns the value of theworkingDirectoryrecord component.- Returns:
- the value of the
workingDirectoryrecord component
-
currentMode
Returns the value of thecurrentModerecord component.- Returns:
- the value of the
currentModerecord component
-
selectedModel
Returns the value of theselectedModelrecord component.- Returns:
- the value of the
selectedModelrecord component
-
workspace
Returns the value of theworkspacerecord component.- Returns:
- the value of the
workspacerecord component
-