Module com.github.copilot.java
Package com.github.copilot.generated.rpc
Record Class SessionMetadata
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionMetadata
@Generated("copilot-sdk-codegen")
public record SessionMetadata(String sessionId, String startTime, String modifiedTime, String summary, String name, String clientName, Boolean isRemote, Boolean isDetached, SessionContext context, String mcTaskId)
extends Record
Schema for the `SessionMetadata` type.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclientNamerecord component.context()Returns the value of thecontextrecord 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 theisDetachedrecord component.isRemote()Returns the value of theisRemoterecord component.mcTaskId()Returns the value of themcTaskIdrecord component.Returns the value of themodifiedTimerecord component.name()Returns the value of thenamerecord 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.
-
Constructor Details
-
SessionMetadata
public SessionMetadata(String sessionId, String startTime, String modifiedTime, String summary, String name, String clientName, Boolean isRemote, Boolean isDetached, SessionContext context, String mcTaskId) Creates an instance of aSessionMetadatarecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentstartTime- the value for thestartTimerecord componentmodifiedTime- the value for themodifiedTimerecord componentsummary- the value for thesummaryrecord componentname- the value for thenamerecord componentclientName- the value for theclientNamerecord componentisRemote- the value for theisRemoterecord componentisDetached- the value for theisDetachedrecord componentcontext- the value for thecontextrecord componentmcTaskId- the value for themcTaskIdrecord 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
-
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
clientName
Returns the value of theclientNamerecord component.- Returns:
- the value of the
clientNamerecord component
-
isRemote
Returns the value of theisRemoterecord component.- Returns:
- the value of the
isRemoterecord component
-
isDetached
Returns the value of theisDetachedrecord component.- Returns:
- the value of the
isDetachedrecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
mcTaskId
Returns the value of themcTaskIdrecord component.- Returns:
- the value of the
mcTaskIdrecord component
-