Endpoint
The other side of a message.
On datagram transports the CoAP messaging layer matches responses, ACKs and RSTs to requests and deduplicates by endpoint equality, so each variant defines equality the way the RFCs scope messages, and a variant never equals another: a UDP peer, a TCP peer and a WebSocket on the same host and port are three peers. Protocol code must compare endpoints, never host and port, so that DTLS can be added without touching it (see Secure).
The variants are final classes with deliberate equality, not data classes: the fields a variant compares are part of the matching rule, and a field added later (an IPv6 zone, say) must not change it by accident.