fromProto

fun fromProto(capability: <Error class: unknown class>): ClientCapability?

Converts from the protobuf enum, returning null for values this SDK build does not recognize.

Unlike most fromProto helpers in this SDK this never throws: capabilities are an open, forward-extensible set, so a peer or server advertising a newer capability must be ignored rather than crash us.