private static boolean hasPeers(final Collection<PeerId> peers) {
        return peers != null && !peers.isEmpty();
    }
V2 log entry encoder based on protobuf, see src/main/resources/log.proto

@author boyan(boyan@antfin.com)
jraft-core/src/main/java/com/alipay/sofa/jraft/entity/codec/v2/V2Encoder.java