Google Messages are currently backed up to your Google account. The reliance on system-wide backups often leads to a clunky experience when transferring messages to a new device. Google will reportedly take care of that by building a backup feature into the messaging app.
When analysing the code strings in the latest version of Google Messages, 9to5Google came across some snippets that hint at a possible native "Backup & restore" feature for Google Messages.