public static ReplicationPeerDescription
    toReplicationPeerDescription(ReplicationProtos.ReplicationPeerDescription desc) {
    boolean enabled =
      ReplicationProtos.ReplicationState.State.ENABLED == desc.getState().getState();
    ReplicationPeerConfig config = convert(desc.getConfig());
    return new ReplicationPeerDescription(desc.getId(), enabled, config,
      toSyncReplicationState(desc.getSyncReplicationState()));
  }
Returns Serialized protobuf of <code>peerConfig</code> with pb magic prefix prepended suitable
for use as content of a this.peersZNode; i.e. the content of PEER_ID znode under
/hbase/replication/peers/PEER_ID
hbase-client/src/main/java/org/apache/hadoop/hbase/client/replication/ReplicationPeerConfigUtil.java