Protobuf Team Bot
9ce56e363c
Auto-generate files after cl/597923328
1 year ago
Eric Salo
8d0bfb0a5a
upb: delete upb:upb, upb:collections, upb/upb.hpp, upb/collections/
...
PiperOrigin-RevId: 597923328
1 year ago
Joshua Haberman
f2a91b33e1
Make `str(msg)` in Python print raw UTF-8 strings. Only invalid UTF-8 is escaped.
...
PiperOrigin-RevId: 597917280
1 year ago
Protobuf Team Bot
3a007b59ae
Internal versioning changes
...
PiperOrigin-RevId: 597906574
1 year ago
Protobuf Team Bot
6c4ea1fadb
Internal changes.
...
PiperOrigin-RevId: 597873923
1 year ago
Protobuf Team Bot
3b9bd6db71
Breaking Change: Remove unused overload of AbstractMessageLite.addAll that worked on a Collection instead of a List.
...
PiperOrigin-RevId: 597869849
1 year ago
Protobuf Team Bot
2f5305d7fe
Auto-generate files after cl/597850176
1 year ago
Marcel Hlopko
6860c38119
Read crate mapping in protoc
...
This enables us to get the correct crate names for Rust gencode.
PiperOrigin-RevId: 597850176
1 year ago
Protobuf Team Bot
9310d2e817
Breaking Change: Remove obsolete runtime internalBuildGeneratedFileFrom which was for backwards compatibility with old gencode.
...
Remove `sentinel.proto` and references to it.
This was announced in https://protobuf.dev/news/2023-12-05/ per our Cross-Version Runtime Guarantees: https://protobuf.dev/support/cross-version-runtime-guarantee/
PiperOrigin-RevId: 597849821
1 year ago
Protobuf Team Bot
e542443b53
Move the FieldInfoComment down into AccessorGenerator.
...
PiperOrigin-RevId: 597835662
1 year ago
Sandy Zhang
519284a559
Remove LegacyDescriptorsUtil.java and JRuby's use of legacy descriptor APIs
...
This is not a breaking change since this has not been released yet.
PiperOrigin-RevId: 597824548
1 year ago
Jakob Buchgraber
8d9e3e9a1c
#rust #protobuf Refactor maps to make ProxiedInMapValue independent of the runtime
...
- ProxiedInMapValue is defined in maps.rs, and no longer in the runtime files {upb, cpp}.rs.
- ProxiedInMapValue's methods accept and return Proxied types.
- InnerMapMut no longer has any generic type parameters.
- Through this refactoring the Map type is no longer a ZST. Creating a new map is now as simple as `Map::new()`.
PiperOrigin-RevId: 597765165
1 year ago
Marcel Hlopko
baaaca87b3
Split off file from //src/google/protobuf/testing
...
This change is needed to enable making Rust plugin depend on the file.h in non-testing code.
PiperOrigin-RevId: 597762822
1 year ago
Protobuf Team Bot
94a2a44851
Breaking Change: remove unnecessary overloads of methods:
...
hasExtension
getExtensionCount
getExtension
PiperOrigin-RevId: 597702196
1 year ago
Protobuf Team Bot
cdcd166f2b
Minor cleanup: IWYU, etc.
...
PiperOrigin-RevId: 597698437
1 year ago
Joshua Haberman
d14dbbc838
Breaking Change: Validate UTF-8 in string setters, [as previously announced]( https://protobuf.dev/news/2023-12-27/#php-breaking-changes ).
...
Pure-PHP was already validating UTF-8, but this makes the C extension validate also.
PiperOrigin-RevId: 597695655
1 year ago
Protobuf Team Bot
d1444e2282
Auto-generate files after cl/597686725
1 year ago
Mike Kruskal
93b219f4e8
Remove edition getter from C++ descriptor APIs
...
PiperOrigin-RevId: 597686725
1 year ago
Eric Salo
e6d8669958
upb: fix gencode bug with Map<*, bytes>
...
PiperOrigin-RevId: 597678769
1 year ago
Protobuf Team Bot
7bff169d32
Breaking Change: Remove unnecessary generated overrides for GeneratedMessage.Builder methods:
...
setUnknownFields
mergeUnknownFields
clone
setField
clearField
clearOneof
setRepeatedField
addRepeatedField
setExtension
addExtension
clearExtension
PiperOrigin-RevId: 597677225
1 year ago
Protobuf Team Bot
03440ec744
Auto-generate files after cl/597662892
1 year ago
Eric Salo
5c5f092606
upb: implement upb_Message
...
PiperOrigin-RevId: 597662892
1 year ago
Sandy Zhang
81ce69985a
Update Java generated code to call new resolveAllFeatures() runtime method stub.
...
This method stub was already added in a previous change. A followup change will make runtime changes implementing and relying on this method.
PiperOrigin-RevId: 597650170
1 year ago
Protobuf Team Bot
8812654500
Temporarily turn off extension support for weak descriptor messages.
...
As it is currently implemented it leads to descriptors being parsed before
extensions are registered, causing the descriptors to have unknown fields for
custom descriptor options.
PiperOrigin-RevId: 597645764
1 year ago
Protobuf Team Bot
5df0387224
Breaking Change: The base class for generated messages will be
...
GeneratedMessage, not GeneratedMessageV3.
Please rerun protoc on your .proto files to regenerate the binding code.
https://protobuf.dev/news/2023-12-05/
https://protobuf.dev/support/cross-version-runtime-guarantee/
To fix source compatibility with surrounding code make these replacements:
GeneratedMessageV3 --> GeneratedMessage
SingleFieldBuilderV3 --> SingleFieldBuilder
RepeatedFieldBuilderV3 --> RepeatedFieldBuilder
PiperOrigin-RevId: 597642289
1 year ago
Protobuf Team Bot
81e5433f5c
Auto-generate files after cl/597629658
1 year ago
Eric Salo
c7f44a02eb
upb: finish locking down the upb_Array internals
...
PiperOrigin-RevId: 597629658
1 year ago
Protobuf Team Bot
1581e72425
Disable linkage-monitor test in anticipation of a breaking (major version) java release: 4.26
...
PiperOrigin-RevId: 597629358
1 year ago
Alyssa Haroldsen
7374e26fec
Skip generating oneof message fields referencing other crates
...
PiperOrigin-RevId: 597617683
1 year ago
Alyssa Haroldsen
406fa60c9e
Edit comment in empty_repeated suggesting it's a thread-local value
...
PiperOrigin-RevId: 597610971
1 year ago
Hong Shin
f98af99bad
singular_message: rename prefix to msg_type for clarity
...
PiperOrigin-RevId: 597595699
1 year ago
Joshua Haberman
c7de9dce7c
Added missing package() declarations.
...
PiperOrigin-RevId: 597588597
1 year ago
Protobuf Team Bot
06327f0a7c
Auto-generate files after cl/597573362
1 year ago
Kevin King
4270f73aee
Add `upb_Array_GetMutable` accessor
...
PiperOrigin-RevId: 597573362
1 year ago
Protobuf Team Bot
fc982c0177
Fix missing ! making it so untyped_message would trigger a invalid Utf8 error IFF the string was _valid_ UTF8.
...
PiperOrigin-RevId: 597570464
1 year ago
Protobuf Team Bot
c988f9c0c7
cleanup: reduce warnings on MSVC builds
...
Protobuf sets the `/utf-8` flag in the linker, but this is a compiler flag [^1]. The linker emits a warning, polluting the logs for all downstream projects [^2] with many `LINK : warning LNK4044: unrecognized option '/utf-8'; ignored` lines.
[^1]: https://learn.microsoft.com/en-us/cpp/build/reference/utf-8-set-source-and-executable-character-sets-to-utf-8?view=msvc-170
[^2]: For an example, see [this build](https://github.com/googleapis/google-cloud-cpp/actions/runs/7484447749/job/20371331322#step:5:4146 )
PiperOrigin-RevId: 597570083
1 year ago
Marcel Hlopko
648c20d602
Pass crate mapping from Bazel to protoc
...
This will enable us to get the correct crate names for Rust gencode. The actual
reading of the mapping file in protoc happens in the followup.
PiperOrigin-RevId: 597509582
1 year ago
Alyssa Haroldsen
f4b042feb3
Improve user friendliness of oneof mutator types
...
PiperOrigin-RevId: 597490580
1 year ago
Jakob Buchgraber
8615daab29
#rust #unsafe Fix unsound cast of RepeatedMut to RepeatedView
...
When we implement Deref for RepeatedMut we cast it to a RepeatedView. The safety comments state that this is sound because both RepeatdView and RepeatedMut are repr(transparent) over InnerRepeatedMut. However, this has no longer been true after a recent change. RepeatedView and RepeatedMut had different layouts.
This change fixes the soundness issue by type casting the RawRepeatedField of a RepeatedMut to a RepeatedView. This is sound because RepeatedReview is repr(transparent) over RawRepeatedField.
PiperOrigin-RevId: 597488476
1 year ago
Hong Shin
27275da1c0
Fix typos in printer.h
...
PiperOrigin-RevId: 597400870
1 year ago
Protobuf Team Bot
c24d9de3ce
Add proto2::VisitFields() API.
...
PiperOrigin-RevId: 597398441
1 year ago
Protobuf Team Bot
41c8f2a5c6
Auto-generate files after cl/597378801
1 year ago
Mike Kruskal
f441ce89ed
Mint Edition 2024.
...
This will allow us to begin planning the default features for 2024, but since protoc doesn't declare support nobody will be able to use it yet.
PiperOrigin-RevId: 597378801
1 year ago
Sandy Zhang
cea942c872
Remove deadcode GenerateDescriptorInitializationCodeForMutable from Java code generator.
...
PiperOrigin-RevId: 597367715
1 year ago
Sandy Zhang
63623a688c
Remove public access to Java Edition APIs e.g. getEdition(), getEditionName().
...
Editions should not be used to make semantic decisions -- specific helpers (e.g. FieldDescriptor.hasPresence()) should be used instead. FileDescriptorProto can be used to access editions for *non semantic* purposes, incl. with ProtoFileUti.
These APIs have not been released yet and are thus non-breaking.
PiperOrigin-RevId: 597362543
1 year ago
Sandy Zhang
592ee9b192
Update to call descriptor outer class's getDescriptor() method instead of accessing internal descriptor variable directly.
...
PiperOrigin-RevId: 597355223
1 year ago
Mike Kruskal
748ab1608a
Breaking change: remove const GetArena method on RepeatedPtrField
...
PiperOrigin-RevId: 597349773
1 year ago
Protobuf Team Bot
1610bf149e
Auto-generate files after cl/597341799
1 year ago
Protobuf Team Bot
d4dfb9c4a6
Add kUpb_DecodeOption_AlwaysValidateUtf8 decode option, to force UTF-8 validation of proto2 strings.
...
PiperOrigin-RevId: 597341799
1 year ago
Protobuf Team Bot
686cfc6ab5
Protobuf Java cross-domain Poison Pills.
...
PiperOrigin-RevId: 597335599
1 year ago