zhangskz
b15bf628e5
Merge 22.x back to main ( #12200 )
...
Closes #12200
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12200 from protocolbuffers:main-202303101853 1efa2e7205
PiperOrigin-RevId: 515722578
2 years ago
Mike Kruskal
25dfc39b11
Internal changes
...
PiperOrigin-RevId: 515648197
2 years ago
Protobuf Team Bot
81f89d509d
Updating version.json and repo version numbers to: 22.2
2 years ago
deannagarcia
15bd2c21cf
Merge 22.x back to main ( #12169 )
...
Closes #12169
PiperOrigin-RevId: 515161008
2 years ago
Protobuf Team Bot
839e8d25ea
Updating version.json and repo version numbers to: 22.1
2 years ago
Mike Kruskal
0b9134bb4e
Deprecate SupportsUnknownEnumValues on Message reflection. Use FieldDescriptor or EnumDescriptor instead.
...
PiperOrigin-RevId: 514618684
2 years ago
Adam Cozzette
5abab0f47e
Roll-forward of change to add Python support for retention attribute
...
PiperOrigin-RevId: 513318052
2 years ago
Jie Luo
dd9dd86fbc
Raise warnings for MessageFactory class usages
...
PiperOrigin-RevId: 512779287
2 years ago
Karol M. Langner
1b1ca24ae0
Call setUp on super, and fix import order
...
PiperOrigin-RevId: 512200880
2 years ago
Adam Cozzette
3942e53072
Automated rollback of commit 63389c027f
.
...
PiperOrigin-RevId: 512087869
2 years ago
Adam Cozzette
63389c027f
Add Python support for retention attribute
...
PiperOrigin-RevId: 511914565
2 years ago
Mike Kruskal
649cc30872
Open-source some of our string_view tests.
...
This support was added in 22.x, but we don't have any tests locking it down.
Closes https://github.com/protocolbuffers/protobuf/issues/8096
PiperOrigin-RevId: 510242380
2 years ago
Protobuf Team Bot
a847a8dc4b
Updating version.json and repo version numbers to: 22.0
2 years ago
Protobuf Team Bot
a594141cc4
Document known quirks of EnumDescriptor::is_closed() when importing across files with different syntaxes.
...
PiperOrigin-RevId: 509581394
2 years ago
Protobuf Team Bot
1de344fcd1
Document known quirks of EnumDescriptor::is_closed() when importing across files with different syntaxes.
...
PiperOrigin-RevId: 509581394
2 years ago
Protobuf Team Bot
4dd7a1e380
Updating version.json and repo version numbers to: 22.0-rc3
2 years ago
Protobuf Team Bot
fa7a079c11
Updating version.json and repo version numbers to: 22.0-rc2
2 years ago
Protobuf Team Bot
2b406251e4
Updating version.json and repo version numbers to: 22.0-rc1
2 years ago
Mike Kruskal
7bc3ed8835
Migrating downstream error collectors to use the new string_view overrides.
...
PiperOrigin-RevId: 504607264
2 years ago
Mike Kruskal
a9f1ea6371
Breaking change: Migrate to Abseil's logging library.
...
This deletes our old branches of internal Abseil code in favor of their newly open-sourced library. Notably, this removes the ability to turn CHECK crashes into exceptions.
PiperOrigin-RevId: 504460562
2 years ago
Mike Kruskal
7930cd1f9d
Upgrade to Abseil LTS 20230117 ( #11622 )
...
Closes #11622
PiperOrigin-RevId: 503588252
2 years ago
Mike Kruskal
9ee25ad91d
Silence deprecated usage
2 years ago
Mike Kruskal
f60f478f45
Enable new JSON field name conflict handling.
...
This will apply uniformly in both proto2 and proto3, taking into account `json_name` options. See https://github.com/protocolbuffers/protobuf/pull/10750 for more details.
PiperOrigin-RevId: 502972769
2 years ago
Mike Kruskal
3aaaf7d7ce
Add DescriptorPool-level opt-out for new JSON field name handling.
...
PiperOrigin-RevId: 502959921
2 years ago
Jie Luo
c80e7efac7
Soft deprecate python MessageFactory
...
Soft deprecate python MessageFactory. Added new replacement APIs GetMessageClass(descriptor) and GetMessagesFromFiles(files, pool)
PiperOrigin-RevId: 501802633
2 years ago
Protobuf Team Bot
258d67c0d3
Fix UnicodeDecodeError exception catching.
...
`str_lines` is a generator object, it won't be executed until Tokenizer() uses it.
PiperOrigin-RevId: 499824005
2 years ago
Jie Luo
f75fd051d6
Change extension_handle to field_descriptor in python `HasExtension()` and `ClearExtension()`
...
PiperOrigin-RevId: 499349711
2 years ago
Matt Fowles Kulukundis
1697e4558b
Main 202212161220 ( #11340 )
...
Closes #11340
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/11340 from protocolbuffers:main-202212161220 c39ccb73fb
PiperOrigin-RevId: 496029356
2 years ago
Protobuf Team Bot
9238c4843a
Add debug_redact field option to protobuf.
...
PiperOrigin-RevId: 496016877
2 years ago
Jie Luo
883ec1c3ef
Raise errors when serialize inf and nan for Value.number_value in json format. fixes #11259
...
PiperOrigin-RevId: 495976996
2 years ago
Hongcheng Xu
68d25df1d2
Clarifies ParseFromString method takes only binary form of proto
...
PiperOrigin-RevId: 495898678
2 years ago
Tommy Dew
1e6f8761cd
Resolve #10949 : use raise from in json_format.py ( #10966 )
...
Resolve #10949
Closes #10966
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/10966 from TommyDew42:use-raise-from-in-try-except 7b5cc290a1
PiperOrigin-RevId: 495774419
2 years ago
Mike Kruskal
6df908957a
Internal changes
...
PiperOrigin-RevId: 495485093
2 years ago
Mike Kruskal
bfed218c71
Internal changes
...
PiperOrigin-RevId: 495152163
2 years ago
Jie Luo
0dd27f9f93
delete python/google/protobuf/protobuf_test.py which is dead
...
PiperOrigin-RevId: 495146557
2 years ago
Jie Luo
de28d0b090
Removed python files from file_list and replace it with directory-based renames.
...
PiperOrigin-RevId: 495126987
2 years ago
Protobuf Team Bot
680881def1
Internal change
...
PiperOrigin-RevId: 495049673
2 years ago
Protobuf Team Bot
f6f6af5472
Internal change
...
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/11257 from Neakxs:apply-registration-for-protocel-extensions 8d04626e85
PiperOrigin-RevId: 494841129
2 years ago
Protobuf Team Bot
f0dc78d7e6
Updating version.json and repo version numbers to: 21.12
2 years ago
Eric Salo
1f58f1d7b8
allow reserved enums to be negative
...
https://github.com/protocolbuffers/upb/issues/1024
PiperOrigin-RevId: 494414605
2 years ago
Mike Kruskal
912850b6f4
Fix python breakage from bad export
...
PiperOrigin-RevId: 494305314
2 years ago
Joshua Haberman
a49bfa9825
Fixed text_format_test.py's imports.
...
PiperOrigin-RevId: 494249469
2 years ago
Jie Luo
324f26e0cd
Internal change only
...
PiperOrigin-RevId: 494030289
2 years ago
Mike Kruskal
032c9c8ada
Internal changes
...
PiperOrigin-RevId: 493986824
2 years ago
Protobuf Team Bot
99eb7fa891
Updating version.json and repo version numbers to: 21.11
2 years ago
Jie Luo
ea1c922d75
Internal change only
...
PiperOrigin-RevId: 493925498
2 years ago
Protobuf Team Bot
a474c5b9ff
Updating version.json and repo version numbers to: 21.11
2 years ago
Jie Luo
b9eb6bf759
Internal change only
...
PiperOrigin-RevId: 493742523
2 years ago
Mike Kruskal
9d5dc6c9ec
Internal changes
...
PiperOrigin-RevId: 493456444
2 years ago
Jie Luo
0822add4d4
Internal change only
...
PiperOrigin-RevId: 493165757
2 years ago