code: public static Message buildSyncEnd(ClusterConfiguration config) {
      ZabMessage.Zxid version = toProtoZxid(config.getVersion());
      ZabMessage.ClusterConfiguration zConfig
        = ZabMessage.ClusterConfiguration.newBuilder()
                                         .setVersion(version)
                                         .addAllServers(config.getPeers())
                                         .build();
      return Message.newBuilder().setType(MessageType.SYNC_END)
                                 .setConfig(zConfig)
                                 .build();
    }
docs: Creates a SYNC_END message.
  
  @param config the cluster configuration.
  @return a protobuf message.