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 Details

    • ConnectClientInfo

      public ConnectClientInfo(String editorName, String editorVersion, String extensionName, String extensionVersion)
      Creates an instance of a ConnectClientInfo record class.
      Parameters:
      editorName - the value for the editorName record component
      editorVersion - the value for the editorVersion record component
      extensionName - the value for the extensionName record component
      extensionVersion - the value for the extensionVersion record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • editorName

      public String editorName()
      Returns the value of the editorName record component.
      Returns:
      the value of the editorName record component
    • editorVersion

      public String editorVersion()
      Returns the value of the editorVersion record component.
      Returns:
      the value of the editorVersion record component
    • extensionName

      public String extensionName()
      Returns the value of the extensionName record component.
      Returns:
      the value of the extensionName record component
    • extensionVersion

      public String extensionVersion()
      Returns the value of the extensionVersion record component.
      Returns:
      the value of the extensionVersion record component