Record Class ConnectResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ConnectResult
@Generated("copilot-sdk-codegen")
public record ConnectResult(Boolean ok, Long protocolVersion, String version)
extends Record
Handshake result reporting the server's protocol version and package version on success.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionConnectResult(Boolean ok, Long protocolVersion, String version) Creates an instance of aConnectResultrecord class. -
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.ok()Returns the value of theokrecord component.Returns the value of theprotocolVersionrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
ConnectResult
Creates an instance of aConnectResultrecord class.- Parameters:
ok- the value for theokrecord componentprotocolVersion- the value for theprotocolVersionrecord componentversion- the value for theversionrecord 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). -
ok
Returns the value of theokrecord component.- Returns:
- the value of the
okrecord component
-
protocolVersion
Returns the value of theprotocolVersionrecord component.- Returns:
- the value of the
protocolVersionrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-