def impl_len(msg, nnn):
    """
    msg is a reference to an instance of the MsgImpl class, n is its
    field number.  Returns the int length of the serialized object,
    including the lenght of the field header.
    """
    return msg.wire_len(nnn)