-
Notifications
You must be signed in to change notification settings - Fork 658
Support oneof declaraction in protobuf #2546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
sandwwraith
merged 46 commits into
Kotlin:dev
from
xiaozhikang0916:feature/protobuf-oneof
Apr 25, 2024
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
5a54825
encode oneOf field to proto message
xiaozhikang0916 cc621c8
check one of implementation should have only 1 element
xiaozhikang0916 c598975
add test case
xiaozhikang0916 20a63ca
support value class as one-of instance
xiaozhikang0916 f51d42e
test of custom module
xiaozhikang0916 1235b10
generate proto schema with oneof field
xiaozhikang0916 672f7c5
update comments on ProtoOneOf annotation
xiaozhikang0916 1f3aa89
api dump
xiaozhikang0916 b799374
throw error if annotation is not correctly applied
xiaozhikang0916 d3109ce
remove final value of empty array
xiaozhikang0916 6d9af47
support generic polymorphic type as oneof field
xiaozhikang0916 c02f08f
test for custom registered polymorphic serializer
xiaozhikang0916 058283a
api dump for context helper
xiaozhikang0916 74d42d2
Make the message of not founding subclass of one-of field more readable
xiaozhikang0916 75945a9
Rewrite encoding to follow the contract of polymorphic serializers
xiaozhikang0916 dbb6ff7
determine serializer type with kind
xiaozhikang0916 a8fe9c7
docs for protobuf oneof
xiaozhikang0916 0ffa6de
decode oneof element from common polymorphic serializer
xiaozhikang0916 88b0c30
make message of exception in decoding oneof element clearer
xiaozhikang0916 387a2d0
Remove unused property declaration of SealedClassSerializer
xiaozhikang0916 2e4c71a
Remove numbers from ProtoOneOf annotation
xiaozhikang0916 e86c2a7
Enrich comment from review
xiaozhikang0916 bb3fa7d
Add some assertation in schema test
xiaozhikang0916 11bc716
Fix encoding value class in oneoof field
xiaozhikang0916 f01723a
Add duplicated id check in decoding
xiaozhikang0916 9d5a401
Update protobuf docs
xiaozhikang0916 4a0adf5
Check unique proto id only for class type
xiaozhikang0916 88311e7
Api dump for core lib
xiaozhikang0916 ac0af92
Update docs by review
xiaozhikang0916 b60c76c
Some cleaning
xiaozhikang0916 2a80a1f
Fix schema generator for oneof message
xiaozhikang0916 d2eb264
Some exception messages and tests
xiaozhikang0916 8ac87da
Use property proto number in oneof class
xiaozhikang0916 014817f
Update docs
xiaozhikang0916 6dec429
Update docs
xiaozhikang0916 17f3022
Add comment in proto oneof test for hex data
xiaozhikang0916 3fd14b0
Comments and test for proto oneOf id index mapping
xiaozhikang0916 e5f6755
Comments and test using non-polymorphic class in oneOf
xiaozhikang0916 ee1f7ec
Revert docs of ProtoNumber
xiaozhikang0916 96e04b7
Docs of ProtoOneOf
xiaozhikang0916 c056e5d
Update docs by review
xiaozhikang0916 a5a53b7
Refine exception msg if bad oneof def found
xiaozhikang0916 848885a
Checking one of element with 2 properties should fail
xiaozhikang0916 79dfb9d
No checking proto id duplication
xiaozhikang0916 09550db
Clean comment of extractParameters
xiaozhikang0916 188f998
update docs dump
xiaozhikang0916 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.