Protobuf Team Bot
61127956a7
Auto-generate files after cl/568621264
1 year ago
Protobuf Team Bot
ab58f8fbab
Auto-generate files after cl/568554147
1 year ago
Lydon Chandra
96100bf1e4
add C# deterministic serialization ( #13160 )
...
https://github.com/protocolbuffers/protobuf/issues/12881
@jskeet review please :-) as this is my first contrib to protobuf, any design / performance feedback is very sought after
Closes #13160
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/13160 from fmg-lydonchandra:feature/12881_cs_serialization_deterministic ab7e01b804
PiperOrigin-RevId: 568448399
1 year ago
James Newton-King
67b9c76752
Add .NET debugging attributes ( #14097 )
...
I've been working with a large Protobuf model and noticed debugging issues that can easily be improved.
Add debugging attributes to collections, `ByteString`, and descriptors. No impact on runtime behavior. Debugger type proxies are what the debugger displays by default, but full data is available by selecting "Raw View".
`RepeatedField` and `MapField` now display their item count. This is standard across .NET collections. For example, .NET's list and dictionary both display `Count = {Count}`.
Note that previously, Protobuf collections displayed the result of `ToString`, which returned JSON. The JSON debug view isn't useful when there is too much content to display at once because it's truncated. That experience will be fairly common.
Count benefits:
* Always useful
* Makes debugging Protobuf collections feel more like regular .NET collections
* Collection contents is now easier to access with debugger type proxies
No dependency between this PR and https://github.com/protocolbuffers/protobuf/pull/13838 . Each can be merged independently.
**MapField before:**
![image](https://github.com/protocolbuffers/protobuf/assets/303201/9dd3baa9-4432-446e-9049-1f7268d5be4c )
**MapField after:**
![image](https://github.com/protocolbuffers/protobuf/assets/303201/ac4aea33-e339-49e0-9a67-c174d2608393 )
**RepeatedField before:**
![image](https://github.com/protocolbuffers/protobuf/assets/303201/16353785-bef4-4489-a3ab-de2437d51d4e )
**RepeatedField after:**
![image](https://github.com/protocolbuffers/protobuf/assets/303201/f3de7680-ded9-41d8-aac0-84a9e7b65c98 )
**ByteString before:**
![image](https://github.com/protocolbuffers/protobuf/assets/303201/4febc400-1eb7-46ee-911e-a7698783a358 )
**ByteString after:**
![image](https://github.com/protocolbuffers/protobuf/assets/303201/7635080e-9bb0-4f61-9a39-afbb9e575051 )
**Descriptor before:**
![image](https://github.com/protocolbuffers/protobuf/assets/303201/5b89792b-a16a-4641-a50c-5355b5230b5d )
**Descriptor after:**
![image](https://github.com/protocolbuffers/protobuf/assets/303201/5047dc1e-c93b-43d5-bb8c-a6976a9ae6da )
**TypeRegistry before:**
![image](https://github.com/protocolbuffers/protobuf/assets/303201/d4aedf19-22cc-49b5-8717-9299e00abc85 )
**TypeRegistry after:**
![image](https://github.com/protocolbuffers/protobuf/assets/303201/4a473595-74b9-40e2-96b8-2b103d5f44b0 )
Closes #14097
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/14097 from JamesNK:jamesnk/debugging f0dea3464d
PiperOrigin-RevId: 568444117
1 year ago
Protobuf Team Bot
2babd72727
Auto-generate files after PR #13838
1 year ago
Protobuf Team Bot
986cbb647b
Auto-generate files after cl/566628155
1 year ago
Sandy Zhang
81068e8e8c
Internal change
...
PiperOrigin-RevId: 566426899
1 year ago
Protobuf Team Bot
cc84eba821
Auto-generate files after cl/564534891
1 year ago
Joshua Haberman
f4f73699b0
Shorten our license headers into an abbreviated form that references LICENSE instead of including it in full.
...
PiperOrigin-RevId: 564534891
1 year ago
Joshua Haberman
9d27c2f8aa
Shorten our license headers into an abbreviated form that references LICENSE instead of including it in full.
...
PiperOrigin-RevId: 564518438
1 year ago
Protobuf Team Bot
45ed02805f
Auto-generate files after cl/564489381
1 year ago
Protobuf Team Bot
dfc8445c72
Auto-generate files after cl/564457642
1 year ago
Protobuf Team Bot
b106bb2abc
Auto-generate files after cl/564014227
1 year ago
Joshua Haberman
da40ff6fb1
Shorten our license headers into an abbreviated form that references LICENSE instead of including it in full.
...
PiperOrigin-RevId: 564015858
1 year ago
Joshua Haberman
296ae4e663
Shorten our license headers into an abbreviated form that references LICENSE instead of including it in full.
...
PiperOrigin-RevId: 564014227
1 year ago
Joshua Haberman
db20f5ffc9
Shorten our license headers into an abbreviated form that references LICENSE instead of including it in full.
...
PiperOrigin-RevId: 564013990
1 year ago
Joshua Haberman
638a860285
Shorten our license headers into an abbreviated form that references LICENSE instead of including it in full.
...
PiperOrigin-RevId: 563893662
1 year ago
Joshua Haberman
8c05a64f10
Shorten our license headers into an abbreviated form that references LICENSE instead of including it in full.
...
PiperOrigin-RevId: 563888984
1 year ago
Joshua Haberman
106de22416
Shorten our license headers into an abbreviated form that references LICENSE instead of including it in full.
...
PiperOrigin-RevId: 563888974
1 year ago
Joshua Haberman
8c45177016
Shorten our license headers into an abbreviated form that references LICENSE instead of including it in full.
...
PiperOrigin-RevId: 563888972
1 year ago
Joshua Haberman
95d3a2f097
Shorten our license headers into an abbreviated form that references LICENSE instead of including it in full.
...
PiperOrigin-RevId: 563888964
1 year ago
Joshua Haberman
e11db6ae6c
Shorten our license headers into an abbreviated form that references LICENSE instead of including it in full.
...
PiperOrigin-RevId: 563888963
1 year ago
Joshua Haberman
1438cc8931
Shorten our license headers into an abbreviated form that references LICENSE instead of including it in full.
...
PiperOrigin-RevId: 563888943
1 year ago
Joshua Haberman
50fc19229d
Shorten our license headers into an abbreviated form that references LICENSE instead of including it in full.
...
PiperOrigin-RevId: 563888930
1 year ago
Protobuf Team Bot
77f8c4974c
Auto-generate files after cl/563791580
1 year ago
Protobuf Team Bot
0e484c7777
Auto-generate files after cl/563175374
1 year ago
Protobuf Team Bot
fa98bb316a
Auto-generate files after cl/561993644
1 year ago
Protobuf Team Bot
2d67dc4b54
Auto-generate files after cl/559271634
1 year ago
Protobuf Team Bot
9f45862162
Auto-generate files after cl/557972284
1 year ago
Protobuf Team Bot
32ec0d5dbd
Auto-generate files after cl/557967343
1 year ago
Protobuf Team Bot
76f9547ebc
Auto-generate files after cl/555615362
1 year ago
Jie Luo
b359e5020a
Lock down ctype=CORD in proto file.
...
ctype can not be used for none string/bytes fields. ctye=CORD can not be used for extensions. A new macro PROTOBUF_FUTURE_REMOVE_WRONG_CTYPE is added that will be flipped for our next breaking release.
PiperOrigin-RevId: 555615362
1 year ago
ericsalo
843b74e601
Main 202308091812 ( #13489 )
...
Closes #13489
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/13489 from protocolbuffers:main-202308091812 e729f0bf5a
PiperOrigin-RevId: 555301642
1 year ago
Protobuf Team Bot
aba9a7f1a3
Internal change
...
PiperOrigin-RevId: 555251853
1 year ago
Protobuf Team Bot
093e258a71
Updating version.json and repo version numbers to: 24.0
1 year ago
Protobuf Team Bot
3487ae0c01
Updating version.json and repo version numbers to: 24.0-rc3
1 year ago
Protobuf Team Bot
034ec9d9f6
Updating version.json and repo version numbers to: 24.0-rc2
1 year ago
Protobuf Team Bot
f254501c65
Auto-generate files after cl/547959326
1 year ago
Protobuf Team Bot
4602d346a4
Auto-generate files after cl/547610367
1 year ago
Protobuf Team Bot
05835e374d
Updating version.json and repo version numbers to: 24.0-rc1
1 year ago
Protobuf Team Bot
318cc4eb78
Auto-generate files after cl/545757296
1 year ago
Protobuf Team Bot
194d18566b
Auto-generate files after cl/544805690
1 year ago
Protobuf Team Bot
00d8021801
Auto-generate files after cl/542949247
1 year ago
Matt Kulukundis
62fdfd1062
Fix a typo
...
PiperOrigin-RevId: 540349262
2 years ago
Protobuf Team Bot
2b1babf6ed
Auto-generate files after cl/536519387
2 years ago
Protobuf Team Bot
3185c2fa0b
Auto-generate files after cl/535728592
2 years ago
James Newton-King
cfb702a078
[C#] Replace regex that validates descriptor names ( #12174 )
...
This PR replaces the descriptor name validation regex with a validation method. This change allows the `System.Text.RegularExpressions` engine to be trimmed away in published apps that do standard protobuf serialization.
There are some other usages of `Regex` in Google.Protobuf, but they in `JsonParser`. They are only included in a published app if `JsonParser` is used.
Another benefit is a slightly faster app startup time. The removed regex was compiled, which has a high-ish fixed cost.
cc @jskeet @jtattermusch
Closes #12174
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12174 from JamesNK:jamesnk/remove-regex 9d065a3a71
PiperOrigin-RevId: 532210203
2 years ago
Protobuf Team Bot
d33b00bdaa
Auto-generate files after cl/532175274
2 years ago
Protobuf Team Bot
902af9abf7
Auto-generate files after cl/531610557
2 years ago
deannagarcia
0e23f18865
Merge to main after 23.0 release ( #12721 )
...
Closes #12721
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12721 from protocolbuffers:main-202305082101 36482b4c68
PiperOrigin-RevId: 530664393
2 years ago