Original names
Excluding path.
However all those things vary from provider to provider! For instance google drive file names can be 8k long I think, whereas the total length of the path must be < 1k for S3. So take those numbers with a pinch of salt.
If you want to find out what your remote can support, try the undocumented debug command rclone info remote:test_directory