public static int computeObjectSizeNoTag(Object o) {
        int size = 0;
        if (o == null) {
            return size;
        }

        Class cls = o.getClass();
        Codec target = ProtobufProxy.create(cls);
        try {
            size = target.size(o);
            size = size + CodedOutputStream.computeRawVarint32Size(size);
            return size;
        } catch (IOException e) {
            throw new RuntimeException(e.getMessage(), e);
        }
    }
public static int computeObjectSizeNoTag ( Object o ) { int size = 0 ; if ( o == null ) { return size ; } Class cls = o . getClass ( ) ; Codec target = ProtobufProxy . create ( cls ) ; try { size = target . size ( o ) ; size = size + CodedOutputStream . computeRawVarint32Size ( size ) ; return size ; } catch ( IOException e ) { throw new RuntimeException ( e . getMessage ( ) , e ) ; } }
Compute object size no tag.

@param o the o
@return the int