Record Class ConnectClientInfo
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ConnectClientInfo
@Generated("copilot-sdk-codegen")
public record ConnectClientInfo(String editorName, String editorVersion, String extensionName, String extensionVersion)
extends Record
Identity of the integrating host, declared once on the `server.connect` handshake so telemetry from this connection is attributed to a single, consistent surface. All fields are optional; omit them to keep the default attribution.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionConnectClientInfo(String editorName, String editorVersion, String extensionName, String extensionVersion) Creates an instance of aConnectClientInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theeditorNamerecord component.Returns the value of theeditorVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theextensionNamerecord component.Returns the value of theextensionVersionrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConnectClientInfo
public ConnectClientInfo(String editorName, String editorVersion, String extensionName, String extensionVersion) Creates an instance of aConnectClientInforecord class.- Parameters:
editorName- the value for theeditorNamerecord componenteditorVersion- the value for theeditorVersionrecord componentextensionName- the value for theextensionNamerecord componentextensionVersion- the value for theextensionVersionrecord 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). -
editorName
Returns the value of theeditorNamerecord component.- Returns:
- the value of the
editorNamerecord component
-
editorVersion
Returns the value of theeditorVersionrecord component.- Returns:
- the value of the
editorVersionrecord component
-
extensionName
Returns the value of theextensionNamerecord component.- Returns:
- the value of the
extensionNamerecord component
-
extensionVersion
Returns the value of theextensionVersionrecord component.- Returns:
- the value of the
extensionVersionrecord component
-