Joshua Haberman
e90b71cdee
Update protobuf version
5 years ago
Joshua Haberman
f597a24627
Update protobuf version
5 years ago
Jon Skeet
3c3646fa78
Implement HasPresence for C#
...
FieldDescriptor.HasPresence returns true if both ClearValue and HasValue (on the accessor) can be expected to work. Some fields have a working ClearValue, but no HasValue; HasPresence returns false for those fields.
Generally:
- Extension fields have presence if and only if they're singular
- Repeated fields do not support presence
- Map fields do not support presence
- Message fields support presence
- Oneof fields support presence (this includes synthetic oneof fields, so that covers proto3 optional singular fields)
- Proto2 singular primitive fields support presence
- Proto3 singular primitive fields do not support presence (unless they're in a oneof, covered above)
5 years ago
Jan Tattermusch
fc5ded36bc
Merge pull request #7434 from jtattermusch/csharp_expose_options
...
C#: Get rid of broken GetOption API and expose the "GetOptions()" method on descriptors instead
5 years ago
Jon Skeet
807ea2f352
Fix to C# support library code
...
(This was the only use of a HasXyz property for a message type.)
5 years ago
Jon Skeet
13df985bff
Regenerate C# code based on the previous commit
...
(This removes the Has/Clear members for message types in proto2.)
5 years ago
Joshua Haberman
a9f11d7d64
Updated version to 3.12.0-rc1. ( #7449 )
5 years ago
Joshua Haberman
32e5deb1ac
Sync from Piper @308829107
...
PROTOBUF_SYNC_PIPER
5 years ago
Jon Skeet
97737072f9
Add reflection support for proto3 optional fields
...
This is more involved than might be expected because the synthetic oneofs don't generate the properties we would usually expect to see.
5 years ago
Jon Skeet
bad9d753ae
Add unit tests for proto3 optional fields
...
(This isn't as exhaustive as it might be, but the behavior is basically the same as proto2 optional fields.)
5 years ago
Jon Skeet
b0649a088a
Regenerate C# code with the new generator, adding unittest_proto3_optional.proto
...
The changes in the existing proto2 code are solely around presence bits. The new generator allocated presence bits more efficiently. (Previously bits were sometimes allocated but never used.)
5 years ago
Joshua Haberman
74ad62759e
Sync from Piper @306496510
...
PROTOBUF_SYNC_PIPER
5 years ago
Jan Tattermusch
4116e65984
improve ParseMessageBenchmark maintainability
5 years ago
Jan Tattermusch
79cfc73293
refactor WrapperBechmark
5 years ago
Jan Tattermusch
a2cbd5a824
serialization benchmark improvements
5 years ago
Joshua Haberman
c649397029
Set execute bit on files if and only if they begin with (#!). ( #7347 )
...
* Set execute bit on files if and only if they begin with (#!).
Git only tracks the 'x' (executable) bit on each file. Prior to this
CL, our files were a random mix of executable and non-executable.
This change imposes some order by making files executable if and only
if they have shebang (#!) lines at the beginning.
We don't have any executable binaries checked into the repo, so
we shouldn't need to worry about that case.
* Added fix_permissions.sh script to set +x iff a file begins with (#!).
5 years ago
Joshua Haberman
9c676d83ea
Regenerated protos with ./generate_descriptor_proto.sh
5 years ago
Jan Tattermusch
a0cc0e83cb
Remove unnecessary branch from ReadTag ( #7289 )
...
* Remove unnecesary branch from ReadTag
* address comments
5 years ago
Jan Tattermusch
447b6bbad8
address review comments
5 years ago
Jan Tattermusch
b90d3bd854
add benchmark for measuring raw primitive parsing speed
5 years ago
Rafi Kamal
147fd0b710
Update Google.Protobuf.Tools.nuspec to remove 32-bit Mac protoc reference ( #7227 )
5 years ago
Rafi Kamal
1f2d6bf4b5
Remove 32-bit Mac binary from csharp build tools ( #7215 )
5 years ago
Jan Tattermusch
0e8f69e532
enforce recursion depth checking for unknown fields ( #7210 )
5 years ago
Rafi Kamal
c74057267d
Update protobuf version ( #7206 )
5 years ago
Jan Tattermusch
f20be83927
enforce recursion depth checking for unknown fields
5 years ago
Rafi Kamal
fedb2beee3
Merge pull request #6938 from ObsidianMinor/csharp/fix/6936 ( #7188 )
...
Fix latest ArgumentException for C# extensions
Co-authored-by: Jan Tattermusch <jtattermusch@users.noreply.github.com>
5 years ago
Rafi Kamal
345df38dd3
Update protobuf version ( #7143 )
5 years ago
Paul Yang
e8016753e3
Maven requires https connection ( #7110 ) ( #7114 )
5 years ago
Paul Yang
39f4240856
Maven requires https connection ( #7110 )
5 years ago
Brian Wignall
a104dffcb6
Fix typos ( #7050 )
...
Uses https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines to find likely typos, with https://github.com/bwignall/typochecker to help automate the checking.
5 years ago
Rafi Kamal
39492b68d8
Update protobuf version to 3.11.2 ( #7004 )
5 years ago
Sydney Acksman
367fd27732
Rename files and revert changes to generate protos script
5 years ago
Sydney Acksman
d5e964c8bb
Make test comment a summary
5 years ago
Rafi Kamal
b78c53f935
Update protobuf version to 3.11.1 ( #6972 )
5 years ago
Sydney Acksman
34f9497162
Use explicit comparer for extension identifiers
5 years ago
Sydney Acksman
1a0ff9551a
Add comment and Assert.DoesNotThrow to RequiredFieldsNoThrow
5 years ago
Sydney Acksman
145033c056
Adjust based on review feedback
5 years ago
Rafi Kamal
1d5375c621
Update protobuf version to 3.11.0 ( #6943 )
5 years ago
Jan Tattermusch
96e9ff3863
Revert "Revert "C# upgrade dotnet SDK ( #6877 )" ( #6888 )" ( #6920 )
...
This reverts commit f06800524f
.
5 years ago
Sydney Acksman
cd11d5414f
Improve test to make sure the extensions are actually loaded for CustomOptions
5 years ago
Sydney Acksman
2b0b838528
Add tests
5 years ago
Sydney Acksman
3c2a32a75f
Use Distinct on depended extensions to filter duplicate extensions
5 years ago
Rafi Kamal
6220db4ec4
Update protobuf version ( #6927 )
5 years ago
Sydney Acksman
f084d622c2
Add test for not throwing on missing required
5 years ago
Sydney Acksman
6f09cc3a0c
Fix readability.
5 years ago
Sydney Acksman
3457f88940
Fix formatting
5 years ago
Jan Tattermusch
77d33734cf
simpler fix
5 years ago
Sydney Acksman
71ac3e5c0e
Fix exception message on unsupported request output format
5 years ago
Sydney Acksman
e2e70a8a42
Fix conformance test failures for Google.Protobuf
5 years ago
Rafi Kamal
cd7b27be38
Update protobuf version ( #6898 )
5 years ago