Implement saving to a protobuf backend.