Protobuf Team Bot
514c9a8e2a
Breaking change: Make RepeatedField::GetArena non-const in order to support split RepeatedFields.
...
PiperOrigin-RevId: 503205991
2 years ago
Protobuf Team Bot
58f6216d8d
internal changes
...
PiperOrigin-RevId: 503201591
2 years ago
Protobuf Team Bot
ecac6cd113
Fix typo.
...
PiperOrigin-RevId: 503170967
2 years ago
James Newton-King
c019a79749
Fix .NET Native AOT warnings in Protobuf reflection ( #11128 )
...
The fixes from https://github.com/protocolbuffers/protobuf/pull/10978 . This PR can be merged without updating the SDK. Will allow people to use Protobuf + AOT sooner rather than later.
When the repo is updated to .NET 7 or .NET 8, the original PR can be rebased on latest to add AOT analysis and provide some AOT smoke tests.
cc @jskeet
Closes #11128
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/11128 from JamesNK:jamesnk/enable-aot-analysis-2 51ed1bd910
PiperOrigin-RevId: 503077675
2 years ago
Sandy Zhang
d61f75ff6d
Major version bump for C++ to 4 for 22-dev.
...
See https://protobuf.dev/news/2022-08-03/for breaking changes announcement for 22.x.
PiperOrigin-RevId: 503023824
2 years ago
Sandy Zhang
fbad8c0c1b
Clean up legacy CHANGES.txt.
...
Clarify some C++ breaking changes and remove Java test from changelogs.
PiperOrigin-RevId: 503023716
2 years ago
Mike Kruskal
08b97c3120
Automated rollback of commit 47e7983055
.
...
PiperOrigin-RevId: 503007139
2 years ago
Sandy Zhang
6fcc5228c7
Remove duplicate Java legacy CHANGES.txt changes.
...
These are legacy changelogs staged by the pre-Copybara legacy sync script when syncing from Piper to Github.
PiperOrigin-RevId: 503002834
2 years ago
Protobuf Team Bot
9d0821319d
Auto-generate files after cl/502994391
2 years ago
Mike Kruskal
47e7983055
Migrate std::operator+ to Abseil helpers in Java compiler directory.
...
This also opportunistically migrates many C-style and STL strings to string_view in touched code.
PiperOrigin-RevId: 502994391
2 years ago
Protobuf Team Bot
c5a8eb3ea8
Use Emit() in primitive_field.cc.
...
This change adds new aliases in field.cc for improved readability of Emit() calls.
PiperOrigin-RevId: 502994207
2 years ago
Mike Kruskal
6cadb1875a
Migrate std::operator+ to Abseil helpers in Ruby/PHP/Python compiler directories.
...
This also opportunistically migrates many C-style and STL strings to string_view in touched code.
PiperOrigin-RevId: 502975473
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
Protobuf Team Bot
978e989998
Auto-generate files after cl/502944405
2 years ago
Protobuf Team Bot
7399913b18
Internal change
...
PiperOrigin-RevId: 502944405
2 years ago
Protobuf Team Bot
29331cbd4c
Automated rollback of commit 112fa94402
.
...
PiperOrigin-RevId: 502941218
2 years ago
Protobuf Team Bot
6a0bd183ee
Do not crash when parsing Anys that contain a proto which is missing require fields.
...
This was a regression compared to the old parser.
PiperOrigin-RevId: 502883245
2 years ago
Martijn Vels
bc4c156eb2
Add EpsCopyInputStream::ReadCord() providing an efficient direct Cord API
...
PiperOrigin-RevId: 502878973
2 years ago
Mike Kruskal
324f0b57d7
Migrate std::operator+ to Abseil helpers in Objective-c compiler directory.
...
This also opportunistically migrates many C-style and STL strings to string_view in touched code.
PiperOrigin-RevId: 502774859
2 years ago
Mike Kruskal
5184022a17
Migrate std::operator+ to Abseil helpers in C# compiler directory.
...
This also opportunistically migrates many C-style and STL strings to string_view in touched code.
PiperOrigin-RevId: 502773031
2 years ago
Mike Kruskal
85b785c32b
Migrate std::operator+ to Abseil helpers in C++ compiler directory.
...
This also opportunistically migrates many C-style and STL strings to string_view in touched code.
PiperOrigin-RevId: 502739036
2 years ago
Mike Kruskal
4363ef2c92
Migrate std::operator+ to Abseil helpers in C++ runtime directory.
...
This also opportunistically migrates many C-style and STL strings to string_view in touched code.
PiperOrigin-RevId: 502731761
2 years ago
Protobuf Team Bot
f3f069ce68
Auto-generate files after cl/502696374
2 years ago
Mike Kruskal
021435611f
Remove mathutil stub.
...
This reduces the implementation to our much narrower current use-cases, hardcoded directly where we need it. It also unifies google3 and OSS behavior, which may have deviated over time.
PiperOrigin-RevId: 502696374
2 years ago
Mike Kruskal
5a8abe1c20
Add static asserts to container classes.
...
This will prevent unsupported uses of these classes downstream, which can behave surprisingly and increase the friction of changes to protobuf. Specifically RepeatedField, RepeatedPtrField, and Map will only be allowed to hold the types listed in https://protobuf.dev/programming-guides/proto . The old behavior allowed them to hold just about anything, including custom user types.
PiperOrigin-RevId: 502672732
2 years ago
Protobuf Team Bot
8ea499d662
Use absl::countl_zero rather than absl::bit_width, to save one instruction, and 4 bytes of x86 code, per use.
...
PiperOrigin-RevId: 502668997
2 years ago
Mike Kruskal
b80cc536de
Migrate std::operator+ to Abseil helpers in utility code.
...
This also opportunistically migrates many C-style and STL strings to string_view in touched code.
PiperOrigin-RevId: 502655455
2 years ago
Protobuf Team Bot
6379624149
Auto-generate files after cl/502639126
2 years ago
Protobuf Team Bot
874e2a7242
Rename buffer_ to patch_buffer_ to clarify its role and reduce confusion with
...
buffer_end_.
Use kPatchBufferSize to indicate the size of the patch buffer.
PiperOrigin-RevId: 502639126
2 years ago
Protobuf Team Bot
bc270dd2c3
Auto-generate files after cl/502633022
2 years ago
Tiago Quelhas
80c3f95e37
Add missing mnemonic on a couple of proto compilation actions.
...
PiperOrigin-RevId: 502633022
2 years ago
Protobuf Team Bot
98eda63822
Auto-generate files after cl/502611183
2 years ago
Protobuf Team Bot
44faee9877
[ObjC] Ensure more uniqueness on generated internal function name.
...
In the multi file case, the function to get the file descriptor has to be
referenced from multiple generated source, so it can't be `static`, ensure the
name is more unique to avoid issues.
PiperOrigin-RevId: 502611183
2 years ago
Protobuf Team Bot
d95b44eab3
Auto-generate files after cl/502580830
2 years ago
Protobuf Team Bot
dc66690699
Misc lint fixes.
...
PiperOrigin-RevId: 502580830
2 years ago
Protobuf Team Bot
e842f3fe3c
Auto-generate files after cl/502505767
2 years ago
Mike Kruskal
417c136eeb
Delete unused zigzag decoder helpers.
...
PiperOrigin-RevId: 502505767
2 years ago
Protobuf Team Bot
5d7e234745
Auto-generate files after cl/502333394
2 years ago
Protobuf Team Bot
4e69c50d62
Regenerate C# files as part of staleness checks
...
PiperOrigin-RevId: 502333394
2 years ago
Rob Shakir
7e0834c2f5
Add additional field number allocations for ygot. ( #11518 )
...
```
* (M) docs/options.md
- Add two addition field options that are used as markers for
specific YANG types in generated protobufs.
```
This adds two additional unique `FieldOptions` field numbers for annotat YANG leaf-lists, and leaf-lists of unions that need specific handling in field option code. Definitions for these fields are in github.com/openconfig/ygygot, particularly https://github.com/openconfig/ygot/blob/master/proto/yext/yext.proto .
Closes #11518
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/11518 from robshakir:main ea73e697e7
PiperOrigin-RevId: 502245756
2 years ago
Jonathan
895edc4e31
Protocol Buffer Documentation Link Update ( #11522 )
...
https://developers.google.com/protocol-buffers/ states that this site will be deprecated January 2023 and provides https://protobuf.dev/ as a link to the new location.
Closes #11522
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/11522 from strahl2e:patch-1 6b1ef0b4e3
PiperOrigin-RevId: 502245169
2 years ago
Protobuf Team Bot
7679378c7f
Auto-generate files after cl/502028351
2 years ago
Mike Kruskal
0968ecfb7a
Open-source generated string_view field methods.
...
PiperOrigin-RevId: 502028351
2 years ago
Mike Kruskal
232ecf4a6f
Bump protobuf to latest upb version.
...
PiperOrigin-RevId: 502022138
2 years ago
Protobuf Team Bot
112fa94402
Automated rollback of commit 9244d121b4
.
...
PiperOrigin-RevId: 501970102
2 years ago
Mike Kruskal
80bd660a61
Add static asserts to enforce more assumptions made in repeated field containers.
...
PiperOrigin-RevId: 501897045
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
Mike Kruskal
f95aafde6c
Migrate docker images to the new Artifact Registry location.
...
PiperOrigin-RevId: 501691973
2 years ago
Protobuf Team Bot
9d432bd38b
Drop the assert.
...
The first part was actually wrong (should have been ==), so since it
wasn't actually working as intended, just drop it.
PiperOrigin-RevId: 501572981
2 years ago