Skip to content

[Vertex AI] Extract common protobuf enum to struct decoding logic #13859

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

andrewheard
Copy link
Contributor

Extracted common Protocol Buffer enum to Swift struct decoding logic into a protocol DecodableProtoEnum with default implementations. The implementation pattern and error messages are common across several of these enums.

Updated HarmCategory and HarmProbability to use the new protocol in this PR and it will simplify migrating FinishReason and BlockReason.

#no-changelog

@andrewheard andrewheard marked this pull request as ready for review October 9, 2024 18:25
@andrewheard andrewheard requested a review from paulb777 October 9, 2024 18:26
@andrewheard andrewheard merged commit 492e488 into main Oct 9, 2024
38 checks passed
@andrewheard andrewheard deleted the ah/vertex-codableprotoenum branch October 9, 2024 18:38
MojtabaHs pushed a commit to MojtabaHs/firebase-ios-sdk that referenced this pull request Oct 17, 2024
@firebase firebase locked and limited conversation to collaborators Nov 9, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants