public static SyncReplicationState
    toSyncReplicationState(ReplicationProtos.SyncReplicationState state) {
    return SyncReplicationState.valueOf(state.getState().getNumber());
  }
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