Chris Bacon
d22eaded5c
Remove unneeded exception methods
5 years ago
Chris Bacon
2ac8946ee3
Allow extra fields in wrapper messages, more tests.
5 years ago
Chris Bacon
e305e56cad
C#: Optimize parsing of some primitive and wrapper types
5 years ago
Sydney Acksman
e119a432a8
Use 3 parameter Encoding.FromBytes for default string values
5 years ago
Jan Tattermusch
b8b1b6793f
add regenerate C# protos
5 years ago
Jan Tattermusch
85a87ed3cb
add benchmark for wrapper type parsing
5 years ago
Jan Tattermusch
c81bad1b04
add wrapper_benchmark_messages.proto
5 years ago
Jon Skeet
7282f29ced
Avoid NullReferenceException when accessing CustomOptions
...
Even though the property is deprecated, it still shouldn't throw.
5 years ago
Jon Skeet
9b5fdb0938
Ignore incomplete extensions when building a FileDescriptor
...
FileDescriptor construction uses an extension registry including extensions from imports. If these were created using an older version of protoc, the FieldDescriptor.Extension property may be null; we ignore such extensions rather than failing.
5 years ago
Jon Skeet
7581fd5ea6
Tests for issue 6822
...
(The implementation to fix this is in the following commit.)
5 years ago
Jon Skeet
e613ba6980
Add braces around single-statement if/foreach
5 years ago
Sydney Acksman
f50bc62feb
Add length checks to ExtensionCollection
5 years ago
Rafi Kamal
2ed41359fe
Update version to 3.11.0-RC0
5 years ago
Sydney Acksman
c54ff8d0dc
Fix many proto2 C# doc comments
5 years ago
Jie Luo
2a4657971d
Update to 3.10.0-rc0 ( #6660 )
...
* Cherry pick changes on update_version.py #6643
* Update version to 3.10.0-rc-0
* Do not add rc0 to php packages.xml
5 years ago
Rafi Kamal
5021cd3419
Update protobuf version
5 years ago
Vperus
8e6141a63d
[csharp] Fix typo
5 years ago
Rafi Kamal
56bf637221
Update protobuf version
5 years ago
Jan Tattermusch
e2f5da65ee
C#: add System.Memory dependency for net45 too ( #6317 )
...
* introduce GOOGLE_PROTOBUF_SUPPORT_SYSTEM_MEMORY
* allow building net45 target on unix systems too
* add Span<> support on net45 as well
5 years ago
Sydney Acksman
4d5ae5b4a4
Use proto2 and proto3 in unknown field tests
5 years ago
Sydney Acksman
bdc6cd1d0b
Expose Extension field in FieldDescriptor
5 years ago
Sydney Acksman
0436b8db85
GetOrRegisterExtension -> GetOrInitializeExtension
...
Add comment explaining IExtensionMessage instability
5 years ago
Sydney Acksman
c5fa0e08c7
Fix comment on IExtendableMessage.GetOrRegisterExtension
5 years ago
Sydney Acksman
79cf8a8bae
Fix readability in FieldCodec.ForMessage/Group factories
5 years ago
Sydney Acksman
3237ad39f8
Rename ExtensionRegistry.Add(IEnumerable<Extension>) overload to AddRange
5 years ago
Sydney Acksman
930db675ca
Revert changes for FieldPresenceAccessor
5 years ago
Sydney Acksman
29141f482c
Fix default extension values being unused in FieldCodec
5 years ago
Sydney Acksman
47f2017cf3
Review changes
...
* Add Syntax enum and make file syntax checks check the enum
* Made IsPacked a normal get method without ternary op
* Moved IFieldAccessor.HasValue to IFieldPresenceAccessor
* Change naming of GetIsExtensionsInitialized
* Fixed stray text in summary text
5 years ago
Sydney Acksman
29d5186867
Regenerate testprotos.pb
5 years ago
Sydney Acksman
6b90ac13e0
Reorganize some tests
5 years ago
Sydney Acksman
bf4f6c5431
Make extension reflection helper use GetOrRegisterExtension
5 years ago
Sydney Acksman
9163a6f1ad
Add tests for extension accessor
5 years ago
Sydney Acksman
0c80570a8b
Add ExtensionSet tests and add checks that non-message extension fields don't fail initialization checks
5 years ago
Sydney Acksman
f4cfd2def3
Remove dead HasValue code for ExtensionValue and add null-checks to ExtensionSet.Set
5 years ago
Sydney Acksman
8dc69ede45
Remove unnecessary check in GetIsExtensionsInitialized
5 years ago
Sydney Acksman
b78330b21d
Fix RepeatedExtensionValue.IsInitialized
5 years ago
Sydney Acksman
ebf0bfaed8
Add private "_Extensions" property to speed up IsInitialized checks
5 years ago
Sydney Acksman
134242bc46
Change input message to UnknownFieldSet tests to proto2 test message to test groups.
5 years ago
Sydney Acksman
cd65535423
Added group roundtrip tests and fixed any issues discovered
5 years ago
Sydney Acksman
011427c9d8
Fix issues from interactive rebase and regenerate code
5 years ago
Sydney Acksman
5b2f2c5292
file descriptors and the syntax field are really weird with proto2
5 years ago
Sydney Acksman
8e917d1688
Added FieldDescriptor.IsExtension and sealed ExtensionCollection
5 years ago
Sydney Acksman
8b7fb7d0f4
Add tests for field presence and default values
...
Adjust APIs for extensions to properly return default values for extensions
Fix issues with IsInitialized and proto2 field reflection
5 years ago
Sydney Acksman
a976158b1c
Fix incorrect code gen for string fields with default values
5 years ago
Sydney Acksman
8a57ec847b
Add test protos to test project
...
Fix generated group code missing end group tag case
Fix generated field classes searching for presence index for extensions
5 years ago
Sydney Acksman
6e7c43fc68
Add checks to make sure values retrieved from CustomOptions match extension values
5 years ago
Sydney Acksman
43619bb6b2
Uncomment option code in OneofDescriptor
5 years ago
ObsidianMinor
03872044b1
Make extension container classes public and modify conformance to test proto2 messages
5 years ago
Sydney Acksman
05712c6791
Reapply custom option accessors from previous PR along with CustomOptions accessor deprecations
5 years ago
Sydney Acksman
5caa44e056
Remove internal constraint on descriptor proto
5 years ago