Implemented support for generated string enum in client, which will not break API when enum changes on server.