Updated for gradle
Measure method in TLObjects, by default - serializes and calculates size.