class ProtoInterfaceImpl implements ProtoInterface {

    void setOnError(BiConsumer<ClientError, List<String>> onError) {
        require("onError callback", onError);
        this.onError = onError;
    }

}