Jan Tattermusch
2f16981638
optimize WriteVarint64
2020-06-23 17:38:40 +02:00
Jan Tattermusch
9d53fadcac
optimize WriteVarint32
2020-06-23 17:23:21 +02:00
Jan Tattermusch
9ca0877db1
optimize WriteRawBytes
2020-06-23 16:55:43 +02:00
Jan Tattermusch
80780bdffa
optimize WriteRawByte
2020-06-23 16:53:05 +02:00
Jan Tattermusch
6afd469fe0
optimize WriteFixed32 and WriteFixed64
2020-06-23 16:46:01 +02:00
Jan Tattermusch
17a4b181a0
optimize WriteString
2020-06-23 16:31:29 +02:00
Jan Tattermusch
d3557cab21
WriteFloat improvements
2020-06-23 16:25:49 +02:00
Jan Tattermusch
1f56e5e2a4
remove AggressiveInlining attribute from WritingPrimitives.cs
2020-06-23 15:40:39 +02:00
Phil Felton
115af28e8f
Make propertyName public
2020-06-22 11:16:54 +01:00
Joshua Haberman
dfab275eca
Sync from Piper @317197168
...
PROTOBUF_SYNC_PIPER
2020-06-18 15:47:49 -07:00
Joshua Haberman
f77065d4eb
Sync from Piper @316511779
...
PROTOBUF_SYNC_PIPER
2020-06-15 11:48:47 -07:00
Jan Tattermusch
468c3ba8c6
Speed up writing of messages with many fields
2020-06-12 11:34:42 +02:00
Jan Tattermusch
9d6969bec4
Merge remote-tracking branch 'upstream/master' into protobuf_buffer_serialization
2020-06-11 16:40:27 +02:00
Jan Tattermusch
6a69690464
basic version of WriteMessagesBenchmark
2020-06-11 09:28:25 +02:00
Jon Skeet
1dae8fdd62
Add support for proto2 JSON parsing in C# conformance tests
2020-06-11 06:43:29 +01:00
Jon Skeet
ff70af6cfc
Changes how JSON formatting works for fields supporting presence
...
Fixes #7486 .
Note that this changes the behavior for message fields where
"WithFormatDefaultValues(true)" has been specified. This is
effectively fixing a bug, but will need to be noted in the release
notes.
Basically, FormatDefaultValues only affects fields that don't
support presence - most commonly, singular primitive non-optional
fields in proto3.
2020-06-11 06:43:29 +01:00
Jan Tattermusch
549dc9a412
optimize writing fixed32 and fixed64, fix benchmark
2020-06-09 17:59:32 +02:00
Jan Tattermusch
5eec497d3b
fix C# CompatibilityTests
2020-06-09 16:43:24 +02:00
Jan Tattermusch
e346fde63b
remove commented out code
2020-06-08 17:19:19 +02:00
Jan Tattermusch
c06812b0b2
address a few TODOs
2020-06-08 17:13:15 +02:00
Jan Tattermusch
19c0d73fb9
test WriteContext writing with multiple flushes
2020-06-08 17:03:51 +02:00
Jan Tattermusch
53708e2f15
test writing to a stackalloc buffer
2020-06-08 17:03:03 +02:00
Jan Tattermusch
e14a5c8fe6
address a few TODOs
2020-06-08 16:23:33 +02:00
Jan Tattermusch
43dcee2fa9
remove some todos
2020-06-08 15:54:01 +02:00
Jan Tattermusch
3375e251f9
optimize writing non-ascii strings
2020-06-08 15:38:36 +02:00
Jan Tattermusch
3dad187707
add benchmark for writing of NonAsciiStrings
2020-06-08 12:25:19 +02:00
Jan Tattermusch
8a2d5884bf
address review comments
2020-06-08 11:19:57 +02:00
Jan Tattermusch
a296413b5a
optimize WriteFloat
2020-06-05 14:41:07 +02:00
Jan Tattermusch
886c263a3c
initial version of write benchmarks
2020-06-05 14:41:07 +02:00
Jan Tattermusch
a6d1ed1712
annotate ByteString.Span and ByteString.Memory as SecuritySafeCritical
2020-06-03 17:09:03 +02:00
Jan Tattermusch
b2c94974b2
remove a TODO
2020-06-03 17:05:21 +02:00
Jan Tattermusch
56372898cf
test writing with different blocksizes
2020-06-03 16:58:02 +02:00
Jan Tattermusch
f9f92a6dd2
increase test coverage
2020-06-03 16:26:05 +02:00
Jan Tattermusch
94e64f2c0b
a bit more cleanup
2020-06-03 16:12:16 +02:00
Jan Tattermusch
ba61d76e52
simplify serialization to single span
2020-06-03 15:54:29 +02:00
Jan Tattermusch
b3cdba1cfd
increase test coverage
2020-06-03 15:50:07 +02:00
Jan Tattermusch
7bfaaba534
cleanup coded output stream
2020-06-03 15:48:34 +02:00
Jan Tattermusch
9039103637
message extensions + refactor
2020-06-03 15:32:20 +02:00
Jan Tattermusch
8dbf707aa0
add more tests
2020-06-03 14:47:55 +02:00
Jan Tattermusch
1e1d455423
add WriteFloat TODO
2020-06-03 14:46:27 +02:00
Jan Tattermusch
2bce090f32
add more tests
2020-06-03 14:36:39 +02:00
Jan Tattermusch
ecbb29d354
add WriteContext.Flush() method
2020-06-03 14:22:40 +02:00
Jan Tattermusch
3cdc107bda
fix bug in RefreshBuffer
2020-06-03 14:11:44 +02:00
Jan Tattermusch
efbadb6c73
Merge pull request #7412 from JamesNK/jamesnk/repeated-fixed-parsing
...
Improve performance of parsing repeated fixed sized types
2020-06-03 08:55:04 +02:00
Joshua Haberman
b971243fe0
Merge branch '3.12.x' into merge-release-branch
2020-06-02 13:24:30 -07:00
James Newton-King
921bdaaa61
Improve repeated fixed parsing performance
2020-06-03 07:06:27 +12:00
Jan Tattermusch
90d4969bd1
LegacyGeneratedCodeTest now passing
2020-06-02 19:58:04 +02:00
Jan Tattermusch
361c933a58
annotate ByteString.Span and ByteString.Memory as SecuritySafeCritical
2020-06-02 19:58:04 +02:00
Jan Tattermusch
9070389516
regenerate code
2020-06-02 19:58:04 +02:00
Jan Tattermusch
ea1d55927d
test are almost passing
2020-06-02 19:58:04 +02:00
Jan Tattermusch
125e4ad267
regenerate C# protos
2020-06-02 19:58:04 +02:00
Jan Tattermusch
d3eddf7e2d
make everything build, with some TODOs
2020-06-02 19:58:04 +02:00
Jan Tattermusch
ca7bc464a9
make all writing use WriteContext
2020-06-02 19:58:04 +02:00
Jan Tattermusch
c17af44172
apply SecuritySafeCritical attribute
2020-06-02 19:58:04 +02:00
Jan Tattermusch
5742a64eea
fix WriteString bug
2020-06-02 19:58:04 +02:00
Jan Tattermusch
5fc49bdd5a
fix a bunch of bugs
2020-06-02 19:58:04 +02:00
Jan Tattermusch
d0e08f546d
entire solution builds now
2020-06-02 19:58:04 +02:00
Jan Tattermusch
ee6b20afbe
CodedOutputStream adjustments
2020-06-02 19:58:04 +02:00
Jan Tattermusch
f9d9019e27
more progress
2020-06-02 19:58:04 +02:00
Jan Tattermusch
fe147994c8
progress: stuff almost builds now
2020-06-02 19:58:03 +02:00
Jan Tattermusch
a329764603
fix typo in ParserInternalState
2020-06-02 19:58:03 +02:00
Jan Tattermusch
c855561c54
initial implementation of buffer encoding
2020-06-02 19:58:03 +02:00
Jan Tattermusch
7cb5597013
Overcome the ref struct
limitation for pre-roslyn compilers by introducing GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE for generated code ( #7490 )
...
* enable compatibility mode in codegen
* regenerate protos
* improve readability
* more robust way of figuring out path to old C# compiler
* add recent C# changes
2020-06-02 00:26:25 -07:00
Joshua Haberman
9ce8c330e7
Updated version to 3.12.3 and updated CHANGES.txt. ( #7580 )
...
* Updated version to 3.12.3 and updated CHANGES.txt.
* Re-ran generate_descriptor_protos.sh and made it more parallel.
2020-06-01 13:36:50 -07:00
Joshua Haberman
2d654e8198
Merge pull request #7559 from haberman/merge-312
...
Merge the 3.12.x branch to master
2020-05-27 09:24:57 -07:00
Jan Tattermusch
040b2a6d07
C# project cleanup
2020-05-27 13:59:51 +02:00
Joshua Haberman
c077d949d8
Merge branch '3.12.x' into merge-312
2020-05-26 16:45:43 -07:00
Joshua Haberman
beeb621f50
Update protobuf version ( #7557 )
2020-05-26 15:46:39 -07:00
Joshua Haberman
6ad138d85a
Update protobuf version ( #7535 )
2020-05-20 10:54:29 -07:00
Joshua Haberman
9952e36f92
Merge release branch into master. ( #7517 )
...
* Added background information about proto3 presence. (#7501 )
* Fixed bug in map key sorting for Java TextFormat. (#7508 )
Fixes: https://github.com/protocolbuffers/protobuf/issues/7505
* Update protobuf version
* Added a changelog entry about the Java fix. (#7516 )
2020-05-16 16:42:02 -07:00
Joshua Haberman
e90b71cdee
Update protobuf version
2020-05-15 13:28:07 -07:00
Jan Tattermusch
440a156e1c
Merge pull request #6904 from erikma/dev/erikmav/byteStringMemory
...
C#: Allow readonly view of byteString's data with ByteString.Memory property
2020-05-13 15:44:01 +02:00
Joshua Haberman
62ab8333c9
Merge branch '3.12.x' into merge-312-branch
2020-05-12 16:59:55 -07:00
Joshua Haberman
f597a24627
Update protobuf version
2020-05-12 12:49:46 -07:00
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)
2020-05-12 10:58:05 -07:00
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
2020-05-12 10:56:51 -07:00
Jon Skeet
807ea2f352
Fix to C# support library code
...
(This was the only use of a HasXyz property for a message type.)
2020-05-12 10:54:45 -07:00
Jon Skeet
13df985bff
Regenerate C# code based on the previous commit
...
(This removes the Has/Clear members for message types in proto2.)
2020-05-12 10:54:45 -07:00
Jan Tattermusch
dd013bdf06
regenerate protos
2020-05-11 11:18:49 +02:00
Jan Tattermusch
661c0c4eb8
add tests for selfreferential options
2020-05-11 11:18:49 +02:00
Jan Tattermusch
bf3eef94c1
Merge pull request #7434 from jtattermusch/csharp_expose_options
...
C#: Get rid of broken GetOption API and expose the "GetOptions()" method on descriptors instead
2020-05-11 09:40:51 +02:00
Jon Skeet
6b0ff74ecf
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)
2020-05-08 06:17:50 +01:00
Joshua Haberman
2d80a70048
Sync from Piper @310457838
...
PROTOBUF_SYNC_PIPER
2020-05-07 16:21:50 -07:00
Jan Tattermusch
0688883b52
address review comments
2020-05-06 18:53:36 +02:00
Joshua Haberman
2ac29ae5d4
Sync from Piper @310014675
...
PROTOBUF_SYNC_PIPER
2020-05-05 13:56:07 -07:00
Jan Tattermusch
a690227398
Merge pull request #7351 from jtattermusch/protobuf_csharp_new_parsing
...
New Span-based C# parsing logic
2020-05-05 16:57:52 +02:00
Joshua Haberman
c05b55880f
Sync from Piper @309848308
...
PROTOBUF_SYNC_PIPER
2020-05-04 17:10:15 -07:00
Jon Skeet
ed5c874de3
Fix to C# support library code
...
(This was the only use of a HasXyz property for a message type.)
2020-05-01 09:06:44 +01:00
Jon Skeet
9926c9504b
Regenerate C# code based on the previous commit
...
(This removes the Has/Clear members for message types in proto2.)
2020-05-01 09:06:44 +01:00
Joshua Haberman
a9f11d7d64
Updated version to 3.12.0-rc1. ( #7449 )
2020-04-30 15:34:10 -07:00
Jan Tattermusch
ff999c9d42
clarify docs
2020-04-29 08:57:53 +02:00
Jan Tattermusch
673245f212
remove unnecessary cast
2020-04-29 08:50:59 +02:00
Jan Tattermusch
402ce8b17f
add back GetOption tests
2020-04-28 19:25:06 +02:00
Jan Tattermusch
062c2dc24b
add back GetOption methods, but mark them as obsolete
2020-04-28 19:14:27 +02:00
Joshua Haberman
32e5deb1ac
Sync from Piper @308829107
...
PROTOBUF_SYNC_PIPER
2020-04-28 08:40:38 -07:00
Jan Tattermusch
f4ff22026b
add a few more tests
2020-04-28 13:59:54 +02:00
Jan Tattermusch
9720ae41c2
adjust CustomOptionsTest.cs
2020-04-28 12:49:29 +02:00
Jan Tattermusch
944055a683
expose Options property on descriptors
2020-04-28 10:49:49 +02:00
Jan Tattermusch
7134d25eb8
Merge remote-tracking branch 'upstream/master' into protobuf_csharp_new_parsing
2020-04-27 13:18:07 +02:00
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.
2020-04-24 17:39:14 +01:00
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.)
2020-04-24 17:39:14 +01:00
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.)
2020-04-24 17:39:14 +01:00
Jan Tattermusch
a1b9aa499e
get rid of extraneous ParserInternalState.codedInputStream field
2020-04-23 16:58:59 +02:00
Jan Tattermusch
eb38a3cdb8
adjust some TODOs in ParsingPrimitives.cs
2020-04-22 10:03:51 +02:00
Jan Tattermusch
dd97af88db
deduplicate ExtensionSet.TryMergeFieldFrom implementation, add test
2020-04-22 09:03:15 +02:00
Jan Tattermusch
cf49962c57
actually use ParsingPrimitives.ReadBytes and ReadString
2020-04-21 16:58:32 +02:00
Jan Tattermusch
d7c1fab00b
add benchmarks for parsing string and bytes
2020-04-21 16:31:32 +02:00
Jan Tattermusch
556cb8dc4b
remove unused internal method
2020-04-21 14:49:12 +02:00
Jan Tattermusch
7f42d7c65b
increase MapField test coverage
2020-04-21 14:44:13 +02:00
Jan Tattermusch
7c74e3901b
deduplicate MapField implementation
2020-04-21 14:32:15 +02:00
Jan Tattermusch
9ca70db2aa
remove a few more TODOs
2020-04-16 13:24:42 +02:00
Jan Tattermusch
a171f6d670
address a few TODOs
2020-04-16 13:02:11 +02:00
Jan Tattermusch
373b9eaeb2
optimize ParseRawLittleEndian32
2020-04-15 18:28:18 +02:00
Jan Tattermusch
17ea4d932f
add LegacyGeneratedCodeTest
2020-04-15 12:45:04 +02:00
Jan Tattermusch
f1d12ac768
also test with ParseContext in CodedInputStream test
2020-04-15 11:26:58 +02:00
Jan Tattermusch
9f00d3279b
add missing assert to CodedInputStreamTest.AssertReadVarint
2020-04-15 10:41:12 +02:00
Jan Tattermusch
238fd35f1d
improve test coverage
2020-04-15 10:08:19 +02:00
Joshua Haberman
74ad62759e
Sync from Piper @306496510
...
PROTOBUF_SYNC_PIPER
2020-04-14 12:55:41 -07:00
Jan Tattermusch
b2d5ceb1f7
speedup parsing multi-segment readOnlySequence
2020-04-14 19:24:19 +02:00
Jan Tattermusch
a980705bdb
attempt to fix CompatibilityTests
2020-04-14 18:16:18 +02:00
Jan Tattermusch
638a0813b4
increase coverage of GeneratedMessageTest
2020-04-14 18:04:47 +02:00
Jan Tattermusch
c2925d5b93
fix C# compatibility tests
2020-04-14 13:06:45 +02:00
Jan Tattermusch
0df7ddc805
regenerate
2020-04-14 12:47:32 +02:00
Jan Tattermusch
d7e2c8387a
change MergeFrom_Internal to InternalMergeFrom
2020-04-14 12:47:32 +02:00
Jan Tattermusch
3936114642
remove newline
2020-04-14 10:44:55 +02:00
James Newton-King
18bfd9e2e5
Fix net45 tests
2020-04-14 10:37:30 +02:00
Jan Tattermusch
07182a843c
optimize initialization of ParseContext
2020-04-14 09:37:59 +02:00
Jan Tattermusch
d17b5115d2
faster initialization of ParserInternalState
2020-04-14 09:37:59 +02:00
Jan Tattermusch
42eff9d640
ParseMessageBenchmark: parsing from ReadOnlySequence
2020-04-14 09:37:59 +02:00
Jan Tattermusch
5f836193c7
ParseRawPrimitivesBenchmark: compare CodedInputStream vs ParseContext
2020-04-14 09:37:59 +02:00
Jan Tattermusch
b2d2915439
make Google.Protobuf internals visible to benchmarks
2020-04-14 09:37:59 +02:00
Jan Tattermusch
3196ef9b5c
regenerate C# protos
2020-04-14 09:37:59 +02:00
Jan Tattermusch
220e7be708
make things build after codegen change
2020-04-14 09:37:58 +02:00
Jan Tattermusch
6d5bc90d48
add ParseFrom(ReadOnlySequence) methods
2020-04-14 09:37:58 +02:00
Jan Tattermusch
ea605381e6
make everything build
2020-04-14 09:37:58 +02:00
Jan Tattermusch
175c96565f
bring in new files
2020-04-14 09:37:57 +02:00
Jan Tattermusch
50e03cdde3
Merge pull request #7360 from jtattermusch/refactor_googlebenchmark
...
Refactor some Protobuf C# microbenchmarks
2020-04-13 17:34:22 +02:00
Jan Tattermusch
4116e65984
improve ParseMessageBenchmark maintainability
2020-04-07 11:56:37 +02:00
Joshua Haberman
503a2116aa
Sync from Piper @305053102
...
PROTOBUF_SYNC_PIPER
2020-04-06 09:57:03 -07:00
Jan Tattermusch
79cfc73293
refactor WrapperBechmark
2020-04-06 18:24:13 +02:00
Jan Tattermusch
a2cbd5a824
serialization benchmark improvements
2020-04-06 17:32:50 +02:00
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 (#!).
2020-04-01 15:28:25 -07:00
Joshua Haberman
9c676d83ea
Regenerated protos with ./generate_descriptor_proto.sh
2020-03-31 16:35:09 -07:00
Jan Tattermusch
f57ae5eac3
Merge pull request #7279 from jtattermusch/ParseRawPrimitivesBenchmark
...
Add benchmark for measuring raw primitive parsing speed
2020-03-12 19:11:39 +01:00
Jan Tattermusch
a0cc0e83cb
Remove unnecessary branch from ReadTag ( #7289 )
...
* Remove unnecesary branch from ReadTag
* address comments
2020-03-11 10:29:37 -07:00
Jan Tattermusch
447b6bbad8
address review comments
2020-03-11 07:08:46 -04:00
Jan Tattermusch
b90d3bd854
add benchmark for measuring raw primitive parsing speed
2020-03-05 12:09:11 +01:00
Sydney Acksman
d36d84c77b
Add test for parsing using coded input
2020-02-23 16:08:13 -06:00
Sydney Acksman
ca123ec40e
Swap registry from input when merging from existing input
2020-02-22 22:55:48 -06:00
Rafi Kamal
0eb476b696
Merge branch 3.11.x to master
2020-02-18 16:42:47 -08:00
Rafi Kamal
147fd0b710
Update Google.Protobuf.Tools.nuspec to remove 32-bit Mac protoc reference ( #7227 )
2020-02-18 10:23:20 -08:00
Rafi Kamal
1f2d6bf4b5
Remove 32-bit Mac binary from csharp build tools ( #7215 )
2020-02-14 12:50:45 -08:00
Jan Tattermusch
0e8f69e532
enforce recursion depth checking for unknown fields ( #7210 )
2020-02-14 10:17:06 -08:00
Rafi Kamal
c74057267d
Update protobuf version ( #7206 )
2020-02-12 14:41:16 -08:00
Jan Tattermusch
f20be83927
enforce recursion depth checking for unknown fields
2020-02-10 15:30:47 -08:00
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>
2020-02-10 10:46:19 -08:00
Rafi Kamal
345df38dd3
Update protobuf version ( #7143 )
2020-01-31 13:47:09 -08:00
Paul Yang
e8016753e3
Maven requires https connection ( #7110 ) ( #7114 )
2020-01-22 12:29:56 -08:00
Paul Yang
39f4240856
Maven requires https connection ( #7110 )
2020-01-20 19:23:06 -08:00
Rafi Kamal
ed8688de72
Merge pull request #7064 from rafi-kamal/3.11.x-202001071136
...
Merge branch 3.11.x to master
2020-01-08 12:24:20 -08:00
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.
2020-01-08 10:18:20 -08:00
Rafi Kamal
4500f31a6a
Merge branch 3.11.x to master
2020-01-07 11:52:29 -08:00
Rafi Kamal
39492b68d8
Update protobuf version to 3.11.2 ( #7004 )
2019-12-10 17:50:28 -08:00
Jan Tattermusch
20b7fab0a9
Merge pull request #6674 from ObsidianMinor/csharp/general-cleanup
...
Cleanup various bits of Google.Protobuf
2019-12-05 10:38:10 +01:00
Jan Tattermusch
c8a56342d5
Merge pull request #6938 from ObsidianMinor/csharp/fix/6936
...
Fix latest ArgumentException for C# extensions
2019-12-05 10:36:47 +01:00
Sydney Acksman
367fd27732
Rename files and revert changes to generate protos script
2019-12-03 10:52:24 -06:00
Sydney Acksman
d5e964c8bb
Make test comment a summary
2019-12-03 10:46:34 -06:00
Rafi Kamal
b78c53f935
Update protobuf version to 3.11.1 ( #6972 )
2019-12-02 11:57:21 -08:00
Sydney Acksman
34f9497162
Use explicit comparer for extension identifiers
2019-12-02 13:56:21 -06:00
Sydney Acksman
1a0ff9551a
Add comment and Assert.DoesNotThrow to RequiredFieldsNoThrow
2019-12-02 13:50:51 -06:00
Sydney Acksman
145033c056
Adjust based on review feedback
2019-11-27 11:32:13 -06:00
Jan Tattermusch
058d5b0d71
Merge pull request #6910 from ObsidianMinor/csharp/conformance-failures
...
Fix conformance test failures for Google.Protobuf
2019-11-26 17:18:05 +01:00
Rafi Kamal
1d5375c621
Update protobuf version to 3.11.0 ( #6943 )
2019-11-25 15:12:00 -08:00
Jan Tattermusch
96e9ff3863
Revert "Revert "C# upgrade dotnet SDK ( #6877 )" ( #6888 )" ( #6920 )
...
This reverts commit f06800524f
.
2019-11-25 11:29:47 -08:00
Sydney Acksman
cd11d5414f
Improve test to make sure the extensions are actually loaded for CustomOptions
2019-11-24 14:56:35 -06:00
Sydney Acksman
2b0b838528
Add tests
2019-11-24 14:22:50 -06:00
Sydney Acksman
3c2a32a75f
Use Distinct on depended extensions to filter duplicate extensions
2019-11-24 14:22:26 -06:00
Rafi Kamal
6220db4ec4
Update protobuf version ( #6927 )
2019-11-21 19:10:04 -08:00
Sydney Acksman
f084d622c2
Add test for not throwing on missing required
2019-11-20 11:54:20 -06:00
Sydney Acksman
6f09cc3a0c
Fix readability.
2019-11-20 10:56:34 -06:00
Sydney Acksman
3457f88940
Fix formatting
2019-11-20 10:55:48 -06:00
Jan Tattermusch
77d33734cf
simpler fix
2019-11-20 12:48:49 +01:00
Sydney Acksman
71ac3e5c0e
Fix exception message on unsupported request output format
2019-11-19 17:50:53 -06:00
Sydney Acksman
e2e70a8a42
Fix conformance test failures for Google.Protobuf
2019-11-19 17:50:46 -06:00
Rafi Kamal
cd7b27be38
Update protobuf version ( #6898 )
2019-11-19 15:32:13 -08:00
Sydney Acksman
71c492da3c
Add some missing null-checks
...
Remove IsInitialized checks accidentally left in MessageParser
Simplify ExtensionCollection.CrossLink
2019-11-19 12:34:19 -06:00
Erik Mavrinac
7de09eb62a
C#: Add ByteString.Memory alongside ByteString.Span to allow calling e.g. FileStream.WriteAsync() that requires ReadOnlyMemory<byte>
2019-11-18 16:41:57 -08:00
Rafi Kamal
3cc55d6167
Update protobuf version ( #6898 )
2019-11-15 17:44:10 -08:00
Jie Luo
f06800524f
Revert "C# upgrade dotnet SDK ( #6877 )" ( #6888 )
...
This reverts commit 0c8acb6c8d
.
2019-11-14 09:49:59 -08:00
Jan Tattermusch
0c8acb6c8d
C# upgrade dotnet SDK ( #6877 )
...
* upgrade dotnet SDK
* upgrade dotnet SDK version in global.json
2019-11-14 09:39:31 -08:00
Rafi Kamal
394f5c8c0f
Whitelist newly added conformance test failures for Ruby, C#, and PHP
2019-11-12 13:38:58 -08:00
Rafi Kamal
58d4420e2d
Down Integrate Internal Changes
2019-11-12 13:38:58 -08:00
Sydney Acksman
b84929f7fb
Rename .CodeGen to .TestProtos in Makefile and script
2019-11-08 08:41:26 -06:00
Sydney Acksman
51fa766baa
Fix typos
...
Bring .NET Framework target down to 4.5
Rename project in comment
2019-11-08 07:23:51 -06:00
Sydney Acksman
a70c796988
Add project to solution
2019-11-08 07:23:51 -06:00
Sydney Acksman
8da87c6202
Rename Google.Protobuf.Test.CodeGen to Google.Protobuf.Test.TestProtos
2019-11-08 07:23:51 -06:00
Sydney Acksman
2bb49712aa
Add comment to summarize project
...
Set lang version to C# 3.0
Add .NET Standard 2.0 target
Fix partial diagnostic string since it requires C# 6
2019-11-08 07:23:50 -06:00
Sydney Acksman
63780dfb28
Rebase on master
2019-11-08 07:23:50 -06:00
Sydney Acksman
a85c4a3299
Move generated test code to a seperate lib
2019-11-08 07:23:50 -06:00
Sydney Acksman
c04a02774d
Change _Extensions property to normal body rather than expression
2019-11-07 15:30:12 -06:00