-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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
C# Proto2 feature : Finale #5936
Merged
jtattermusch
merged 34 commits into
protocolbuffers:master
from
ObsidianMinor:csharp/proto2-feature/finale
Sep 3, 2019
+32,176
−403
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
5caa44e
Remove internal constraint on descriptor proto
ObsidianMinor 4be0394
Remove proto2 check from generator
ObsidianMinor 05712c6
Reapply custom option accessors from previous PR along with CustomOpt…
ObsidianMinor 0387204
Make extension container classes public and modify conformance to tes…
ObsidianMinor 43619bb
Uncomment option code in OneofDescriptor
ObsidianMinor 6e7c43f
Add checks to make sure values retrieved from CustomOptions match ext…
ObsidianMinor 8a57ec8
Add test protos to test project
ObsidianMinor a976158
Fix incorrect code gen for string fields with default values
ObsidianMinor 8b7fb7d
Add tests for field presence and default values
ObsidianMinor 8e917d1
Added FieldDescriptor.IsExtension and sealed ExtensionCollection
ObsidianMinor 5b2f2c5
file descriptors and the syntax field are really weird with proto2
ObsidianMinor 011427c
Fix issues from interactive rebase and regenerate code
ObsidianMinor cd65535
Added group roundtrip tests and fixed any issues discovered
ObsidianMinor 134242b
Change input message to UnknownFieldSet tests to proto2 test message …
ObsidianMinor ebf0bfa
Add private "_Extensions" property to speed up IsInitialized checks
ObsidianMinor b78330b
Fix RepeatedExtensionValue.IsInitialized
ObsidianMinor 8dc69ed
Remove unnecessary check in GetIsExtensionsInitialized
ObsidianMinor f4cfd2d
Remove dead HasValue code for ExtensionValue and add null-checks to E…
ObsidianMinor 0c80570
Add ExtensionSet tests and add checks that non-message extension fiel…
ObsidianMinor 9163a6f
Add tests for extension accessor
ObsidianMinor bf4f6c5
Make extension reflection helper use GetOrRegisterExtension
ObsidianMinor 6b90ac1
Reorganize some tests
ObsidianMinor 2b9d0fd
Add missing files to Makefile.am
ObsidianMinor 29d5186
Regenerate testprotos.pb
ObsidianMinor 47f2017
Review changes
ObsidianMinor 29141f4
Fix default extension values being unused in FieldCodec
ObsidianMinor 930db67
Revert changes for FieldPresenceAccessor
ObsidianMinor 3237ad3
Rename ExtensionRegistry.Add(IEnumerable<Extension>) overload to AddR…
ObsidianMinor 79cf8a8
Fix readability in FieldCodec.ForMessage/Group factories
ObsidianMinor c5fa0e0
Fix comment on IExtendableMessage.GetOrRegisterExtension
ObsidianMinor 0436b8d
GetOrRegisterExtension -> GetOrInitializeExtension
ObsidianMinor 6da14fa
Add GeneratedMessageTest.Proto2.cs to EXTRA_DIST
ObsidianMinor bdc6cd1
Expose Extension field in FieldDescriptor
ObsidianMinor 4d5ae5b
Use proto2 and proto3 in unknown field tests
ObsidianMinor 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 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 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering why these files originally got duplicated from the source of truth in https://github.com/protocolbuffers/protobuf/tree/master/src/google/protobuf - it might have been because C# didn't support proto2 back then. Maybe there would be an opportunity to de-dup the .proto files as a followup PR.