google-gemini / generative-ai-android

The official Android library for the Google Gemini API
https://ai.google.dev/gemini-api/docs/get-started/tutorial?lang=android
Apache License 2.0
734 stars 160 forks source link

Align proto primitives #187

Open daymxn opened 4 months ago

daymxn commented 4 months ago

Per b/346838276,

This better aligns our serialization with the default behavior of the proto. More specifically- primitive defaults, and empty lists. Other default behaviors could be addressed as well- such as UNSPECIFIED for enum values, but that has been put off for now as it will have design implications (eg; FinishReason no longer being null).

This PR also fixes the following:

b/350773404 -> Stop using snake case serial names