Jie Luo
533fbbb45e
Add tuple support to set Struct
...
fixes https://github.com/protocolbuffers/protobuf/issues/13205
PiperOrigin-RevId: 547465304
1 year ago
Adrian Sadłocha
d70e3dea0e
Update a doc comment
...
PiperOrigin-RevId: 547464862
1 year ago
Martijn Vels
befdd1672d
Add internally visible Arena enabled copy constructor
...
PiperOrigin-RevId: 547364398
1 year ago
Protobuf Team Bot
9772a5af19
Auto-generate files after cl/547362713
1 year ago
Martijn Vels
bda0158e85
Add a constexpr std::initializer_list<> constructor to HasBits
...
This provides easy constant / default initialization of donated string bit masks
PiperOrigin-RevId: 547362713
1 year ago
Mike Kruskal
d259fa9783
Updating version.json to: 25-dev ( #13277 )
...
Closes #13277
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/13277 from protocolbuffers:main-202307112329 0d4c4b0207
PiperOrigin-RevId: 547339203
1 year ago
Martijn Vels
5cf74223aa
Add protected `internal_visibility()` for Message derived classes.
...
PiperOrigin-RevId: 547316463
1 year ago
Protobuf Team Bot
b411d7d94a
Updating version.json to: 24.0-dev
1 year ago
Protobuf Team Bot
05835e374d
Updating version.json and repo version numbers to: 24.0-rc1
1 year ago
Protobuf Team Bot
0d4c4b0207
Updating version.json to: 25-dev
1 year ago
Thomas Van Lenten
d8b1a626dd
Use Printer::Emit formatting to remove optional args from GetOptionalDeprecatedAttribute.
...
PiperOrigin-RevId: 547303540
1 year ago
Thomas Van Lenten
0196d1e138
Move the two bools for EmitComment to a flags enum
...
Makes call sites easier to ready and should make things safer
if this ever needs some other support in the future.
PiperOrigin-RevId: 547284873
1 year ago
Mike Kruskal
9d43502e10
Update upb dependency ( #13271 )
...
Closes #13271
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/13271 from mkruskal-google:main 8fbcf76d25
PiperOrigin-RevId: 547269038
1 year ago
Joshua Haberman
3f98af287b
Updated Ruby min version to 2.7, and removed some compat code
...
PiperOrigin-RevId: 547245820
1 year ago
Protobuf Team Bot
a75def66cd
Define the shape of BytesMut with stubbed methods
...
This is the primary mutator for `bytes` fields, which proxy `[u8]`.
PiperOrigin-RevId: 547242972
1 year ago
Thomas Van Lenten
3c2af99960
Clearify that ExtensionGenerator gets a message or root class.
...
PiperOrigin-RevId: 547207538
1 year ago
Thomas Van Lenten
b830c62623
Remove no longer needed comment helper.
...
PiperOrigin-RevId: 547200328
1 year ago
Hong Shin
fcab1a4371
Add V0 support for signed ints
...
PiperOrigin-RevId: 547200059
1 year ago
Thomas Van Lenten
6c4ab101ce
Move MessageGenerator::GenerateSource over to Printer::Emit
...
There are whatespace changes because I couldn't get some of the
generated CPreProcessor things to line up in the exact same way.
PiperOrigin-RevId: 547188309
1 year ago
John (JD) Douceur
cb20aca1eb
Add Protobuf extension number for DTDL option ( #13247 )
...
This option will be used by extensions to the [Digital Twins Definition Language](https://github.com/Azure/opendigitaltwins-dtdl ) to support Protobuf serialization.
Closes #13247
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/13247 from jrdouceur:jrdouceur/dtdl-option 84192710c7
PiperOrigin-RevId: 547186193
1 year ago
Protobuf Team Bot
d42b23718a
Add remaining helper functions for Optional v0.6
...
None of these methods are necessary for users to use Optional, but they
are particularly useful and mirror the methods inside of
std::collections::hash_map::Entry.
PiperOrigin-RevId: 547038832
1 year ago
Mike Kruskal
ddb1f77d7a
Add daily check for 24.x staleness
...
PiperOrigin-RevId: 547017953
1 year ago
Protobuf Team Bot
3d6a28f95f
Auto-generate files after cl/546969351
1 year ago
Protobuf Team Bot
55e5230196
Clean up macros related to the phased rollout of TSan validation.
...
PiperOrigin-RevId: 546969351
1 year ago
Protobuf Team Bot
0d7a39663b
Implement the rest of the v0.6 Optional design
...
This introduces a new OptionalProxied trait in order to support the needed trait methods.
PiperOrigin-RevId: 546938819
1 year ago
Thomas Van Lenten
54377be12c
Move MessageGenerator::GenerateMessageHeader over to Printer::Emit
...
PiperOrigin-RevId: 546930919
1 year ago
Thomas Van Lenten
aa72b19bf9
Move *FieldGeneator over to Printer::Emit.
...
Minor updates to how comments are output to have a method
so folks can directly call Emit to handle multline things correctly.
PiperOrigin-RevId: 546921123
1 year ago
Hong Shin
b01794cb3b
Add test that ensures rust protos build with reserved keywords
...
Also confirmed that this fails to build without the `r#` inside singular_scalar.cc
PiperOrigin-RevId: 546906226
1 year ago
Hong Shin
4f20efbb78
Internal Change
...
PiperOrigin-RevId: 546867607
1 year ago
Protobuf Team Bot
d18cacaeb9
Migrate hash_map<bool, T> to std::array<T, 2>
...
PiperOrigin-RevId: 546859975
1 year ago
Hong Shin
b3942c0618
In this CL, we add V0 support for unsigned ints (32 and 64).
...
PiperOrigin-RevId: 546859828
1 year ago
Dmitri Gribenko
3508b47f34
Improve doc comments
...
No need to say "represents" when describing a type (all types represent
something in real world, they are not the real thing), and "ABI-compatible"
needs a dash.
PiperOrigin-RevId: 546813197
1 year ago
Matt Fowles Kulukundis
a01d047456
Refactor the object cache to better account for race conditions ( #13204 )
...
Supersedes #13075
Closes #13204
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/13204 from fowles:main 9b6aad673d
PiperOrigin-RevId: 546579459
1 year ago
مهدي شينون (Mehdi Chinoune)
c2f07bb80f
Fix building shared libraries on MinGW-w64 ( #13240 )
...
Closes #13240
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/13240 from MehdiChinoune:mingw-shared 45600c9ccc
PiperOrigin-RevId: 546541196
1 year ago
Protobuf Team Bot
51f79d4415
Automated rollback of commit 3fec30fe28
.
...
PiperOrigin-RevId: 546409814
1 year ago
Chris Kennelly
3fec30fe28
Remove TODO and unnecessary branch/store in optimized builds.
...
PiperOrigin-RevId: 546382890
1 year ago
Protobuf Team Bot
6bae7c2295
Reverse the dependency between message.h and reflection.h.
...
Otherwise we would have undefined templates in message.h.
PiperOrigin-RevId: 546314824
1 year ago
Protobuf Team Bot
3a3df3057b
Internal change.
...
PiperOrigin-RevId: 546314630
1 year ago
Brett McBride
d603b4199e
adding provide to php composer.json ( #13141 )
...
Adding composer config to allow the native protobuf extension to provide ext-protobuf.
This allows libraries to require at least one protobuf implementation. If the extension is not available, it can be provided by the native package. If the extension is available but the native package is required, the native will be installed.
Importantly, for libraries which require at least one of them to be installed, composer will complain if neither is available.
Closes #13141
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/13141 from brettmc:php-provides-ext 72d3e447f3
PiperOrigin-RevId: 546312826
1 year ago
Martijn Vels
5db61db331
Update comment for why templated function for Grow<> does not work here
...
PiperOrigin-RevId: 546289557
1 year ago
Protobuf Team Bot
cca0eee0e2
internal changes
...
PiperOrigin-RevId: 546287121
1 year ago
Martijn Vels
2d8b38f316
Add InternalVisibility and Arena enabled copy constructor to RepeatedField
...
PiperOrigin-RevId: 546121791
1 year ago
Yilei Yang
84b1beb3bb
Specify stacklevel=2 to these warnings.warn calls, so that users can actually see where these deprecated methods are called, instead of a trace in message_factory.py file itself.
...
PiperOrigin-RevId: 546104883
1 year ago
Jie Luo
a734d12d61
Use the default generated pool for some message factory tests.
...
Use the default generated pool for some message factory tests. Use a new descriptor
pool each time may turns out flake refleck test -- garbage collectors aren't
very predictable.
For blaze test third_party/py/google/protobuf/internal:message_factory_test_python_protos --runs_per_test_detects_flakes --runs_per_test=1000 --copt=-DPy_DEBUG
There were 30-50 failures before the change. Now tests are passing
PiperOrigin-RevId: 546091823
1 year ago
Protobuf Team Bot
0cb139cf9e
Auto-generate files after cl/546076822
1 year ago
Mike Kruskal
c3b72b99b4
Migrate internal C++-only test protos to editions.
...
This is some low hanging fruit that can increase our test coverage of editions. Since only the C++ backend is implemented today, we can't yet migrate any protos that are public, are used outside C++, or are depended on by any proto outside C++.
PiperOrigin-RevId: 546076822
1 year ago
Matt Kulukundis
a5516ca6cc
Require PHP version >=8.0, Ruby >=2.7, and Python >=3.8
...
If you are running an older version of PHP, you can install a previous release
of the protobuf PHP extension by running pecl install protobuf-3.23.3.
PiperOrigin-RevId: 546056449
1 year ago
Thomas Van Lenten
70002efe09
Move EnumFieldGenerator over to Printer::Print
...
PiperOrigin-RevId: 546039434
1 year ago
Thomas Van Lenten
f0d456b4b4
Move ExtensionGenerator over to Printer::Emit.
...
PiperOrigin-RevId: 546033854
1 year ago
Protobuf Team Bot
222b4b9cd6
Auto-generate files after cl/546026711
1 year ago