Farmer union leaders detained ahead of protest