Record Class SessionWorkspacesStatFileResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionWorkspacesStatFileResult
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionWorkspacesStatFileResult(Boolean isFile, Boolean isDirectory, Double size, Double mtimeMs, Double birthtimeMs)
extends Record
Filesystem metadata for a path in the session workspace files directory.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebirthtimeMsrecord 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 theisDirectoryrecord component.isFile()Returns the value of theisFilerecord component.mtimeMs()Returns the value of themtimeMsrecord component.size()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionWorkspacesStatFileResult
public SessionWorkspacesStatFileResult(Boolean isFile, Boolean isDirectory, Double size, Double mtimeMs, Double birthtimeMs) Creates an instance of aSessionWorkspacesStatFileResultrecord class.- Parameters:
isFile- the value for theisFilerecord componentisDirectory- the value for theisDirectoryrecord componentsize- the value for thesizerecord componentmtimeMs- the value for themtimeMsrecord componentbirthtimeMs- the value for thebirthtimeMsrecord 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). -
isFile
Returns the value of theisFilerecord component.- Returns:
- the value of the
isFilerecord component
-
isDirectory
Returns the value of theisDirectoryrecord component.- Returns:
- the value of the
isDirectoryrecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
mtimeMs
Returns the value of themtimeMsrecord component.- Returns:
- the value of the
mtimeMsrecord component
-
birthtimeMs
Returns the value of thebirthtimeMsrecord component.- Returns:
- the value of the
birthtimeMsrecord component
-