Record Class SessionCompletionItem
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionCompletionItem
@Generated("copilot-sdk-codegen")
public record SessionCompletionItem(String insertText, Long rangeStart, Long rangeEnd, String label, String kind)
extends Record
A single host-driven completion. Accepting an item replaces `[rangeStart, rangeEnd)` (UTF-16 code units) in the composer with `insertText`; when the range is absent, the active token around the cursor is replaced.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinsertTextrecord component.kind()Returns the value of thekindrecord component.label()Returns the value of thelabelrecord component.rangeEnd()Returns the value of therangeEndrecord component.Returns the value of therangeStartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionCompletionItem
public SessionCompletionItem(String insertText, Long rangeStart, Long rangeEnd, String label, String kind) Creates an instance of aSessionCompletionItemrecord class.- Parameters:
insertText- the value for theinsertTextrecord componentrangeStart- the value for therangeStartrecord componentrangeEnd- the value for therangeEndrecord componentlabel- the value for thelabelrecord componentkind- the value for thekindrecord 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). -
insertText
Returns the value of theinsertTextrecord component.- Returns:
- the value of the
insertTextrecord component
-
rangeStart
Returns the value of therangeStartrecord component.- Returns:
- the value of the
rangeStartrecord component
-
rangeEnd
Returns the value of therangeEndrecord component.- Returns:
- the value of the
rangeEndrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-