Protobuf Team Bot
66f80bb8a1
Internal change
...
PiperOrigin-RevId: 686647297
2 months ago
Protobuf Team Bot
6ded0291e3
Auto-generate files after PR #18238
2 months ago
Zoey Greer
fbe6168a02
Address warning regarding incorrectly-terminated heredoc in `src/google/protobuf/compiler/test_plugin_injection.bzl` ( #18238 )
...
Closes #18238
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/18238 from tempoz:tempoz-fix-heredoc 87644ab5e9
PiperOrigin-RevId: 686625159
2 months ago
Protobuf Team Bot
90c4487d27
Auto-generate files after cl/686608991
2 months ago
Sandy Zhang
92bed48179
Remove obsolete references to 21.x and 22.x branches that used to use Kokoro
...
PiperOrigin-RevId: 686608991
2 months ago
Protobuf Team Bot
463ca91ecd
Auto-generate files after cl/686600589
2 months ago
Protobuf Team Bot
ecec105916
Add `DynamicCastMessage` overloads for `std::shared_ptr` to replace uses of
...
`std::dynamic_pointer_cast`.
PiperOrigin-RevId: 686603280
2 months ago
Protobuf Team Bot
9e200bebb2
Internal change
...
PiperOrigin-RevId: 686600589
2 months ago
Protobuf Team Bot
62592a014c
Auto-generate files after cl/686588307
2 months ago
Mike Kruskal
2ea63b0b84
Automated rollback of commit d99d1a60c0
.
...
PiperOrigin-RevId: 686588307
2 months ago
Protobuf Team Bot
14b1488981
Auto-generate files after cl/686572636
2 months ago
Protobuf Team Bot
a0eb24061f
Replace use of C++17 with disabling a warning
...
PiperOrigin-RevId: 686572636
2 months ago
Protobuf Team Bot
8259925cc4
Auto-generate files after cl/686552884
2 months ago
Protobuf Team Bot
b1d362033d
Internal change
...
PiperOrigin-RevId: 686552884
2 months ago
Protobuf Team Bot
008046df6e
Auto-generate files after cl/686533265
2 months ago
Protobuf Team Bot
dfaec17efb
Internal change
...
PiperOrigin-RevId: 686533265
2 months ago
Protobuf Team Bot
08f9c603a2
Auto-generate files after cl/686518474
2 months ago
Protobuf Team Bot
6a4ed21083
Internal change
...
PiperOrigin-RevId: 686518474
2 months ago
Protobuf Team Bot
22345e2b6b
Auto-generate files after cl/686506438
2 months ago
Mike Kruskal
b4b1e08d68
Fix examples link in Java README
...
Fixes https://github.com/protocolbuffers/protobuf/issues/18836
PiperOrigin-RevId: 686506438
2 months ago
Protobuf Team Bot
17c7f4b086
Auto-generate files after cl/686502474
2 months ago
Protobuf Team Bot
35c904de32
Internal change
...
PiperOrigin-RevId: 686502474
2 months ago
Protobuf Team Bot
5c5d407c1e
Auto-generate files after cl/686483259
2 months ago
Protobuf Team Bot
db4d5c2bb5
Internal change
...
PiperOrigin-RevId: 686483259
2 months ago
Protobuf Team Bot
8ac70a2acf
Auto-generate files after cl/686475508
2 months ago
Hong Shin
7824085416
hpb: add support for retrieving mutable handles on returned map values
...
Before this CL, it was only possible to get CHandles when fetching messages from a map. proto2::cpp does not have this restriction, so we patch this gap in here.
+utilize the new Emit :)
PiperOrigin-RevId: 686475508
2 months ago
Protobuf Team Bot
10f611a1b5
Auto-generate files after cl/686376466
2 months ago
Protobuf Team Bot
9ff4ec7772
Internal change
...
PiperOrigin-RevId: 686376466
2 months ago
Protobuf Team Bot
e4803d77dd
Auto-generate files after cl/686323338
2 months ago
Mark Hansen
f63b0ece75
Combine dead-code gencode switch clauses for smaller codegen
...
For messages with no required fields, SET_MEMOIZED_IS_INITIALIZED is never called, see the early returns above http://google3/third_party/java_src/protobuf/current/java/com/google/protobuf/GeneratedMessageLite.java;l=1526;rcl=684621860 if we return '1'.
So we can put whatever logic in here we want, and we can avoid codegenning the 'return null' instructions.
This should generate slightly smaller dex and oat code.
https://godbolt.org/z/bGWaf68xv
PiperOrigin-RevId: 686323338
2 months ago
Protobuf Team Bot
73d40a036a
Auto-generate files after cl/686304907
2 months ago
Mark Hansen
b8557ebbd4
Fix indentation on closing brace in gencode
...
PiperOrigin-RevId: 686304907
2 months ago
Protobuf Team Bot
dee200aaab
Auto-generate files after cl/686300005
2 months ago
Mark Hansen
0a419d4ce6
Fix indentation in lite message clear by adding newline
...
PiperOrigin-RevId: 686300005
2 months ago
Protobuf Team Bot
c73b222911
Auto-generate files after cl/686293878
2 months ago
Mark Hansen
1286f4d931
Tidy up lite gencode by adding newline
...
PiperOrigin-RevId: 686293878
2 months ago
Protobuf Team Bot
99779450fe
Auto-generate files after cl/686288520
2 months ago
Mark Hansen
cfb6f87b49
Remove unnecessary @SuppressWarnings("unchecked")
...
There are no unchecked conversions generated. The only cast is `(byte)`.
PiperOrigin-RevId: 686288520
2 months ago
Protobuf Team Bot
a4a277d583
Auto-generate files after cl/686278377
2 months ago
Sandy Zhang
ee5aa499af
Fix unexpected NumberFormatException in Durations.parse() by replacing with documented thrown ParseException.
...
This fixes parsing of invalid second value long to throw the correct exception. Most users should already be handling ParseExceptions e.g. for invalid nanos
PiperOrigin-RevId: 686281774
2 months ago
Mark Hansen
3b2a6081eb
Tidy up lite gencode by adding newline.
...
PiperOrigin-RevId: 686279958
2 months ago
Mark Hansen
11b8c8ccf3
Remove unnecessary @SuppressWarnings("fallthrough")
...
This code doesn't fall through.
PiperOrigin-RevId: 686278377
2 months ago
Protobuf Team Bot
ef91b0ef8b
Auto-generate files after cl/686265348
2 months ago
Mike Kruskal
d3735bc2a0
Support fetching CMake dependencies via `-Dprotobuf_FETCH_DEPENDENCIES=ON`
...
This ports upb's WORKSPACE scraping logic to protobuf, and allows us to dynamically fetch our dependencies at the exact same pinned version as in Bazel via protobuf_FETCH_DEPENDENCIES=ON. This is mostly for development purposes, and is preferable to git submodules. In a later cl we will flip the default behavior to "package"
#test-continuous
PiperOrigin-RevId: 686265348
2 months ago
Mark Hansen
2b0a414573
Change access of GeneratedMessageLite.MethodToInvoke to 'protected'
...
This should only be used by subclasses, and making it protected makes that more
enforced by the compiler.
PiperOrigin-RevId: 686257899
2 months ago
Sandy Zhang
4997f3d070
Breaking Change: Update major version numbers for C++ and Python.
...
This is per the breaking change announcement in https://protobuf.dev/news/2024-10-02/
Note that Objective-C's major version number was bumped already in cl/684131809
PiperOrigin-RevId: 686247631
2 months ago
Protobuf Team Bot
8ec13ede1f
Load Shell rules everywhere in protobuf
...
Autoloads don't work in repositories where they load from. Protobuf thus needs to have Shell loads.
PiperOrigin-RevId: 686244006
2 months ago
Protobuf Team Bot
96cce6249e
Auto-generate files after cl/686236500
2 months ago
Protobuf Team Bot
085c6e3234
For messages with all trivially copyable fields use the trivial copy of Impl_ in the copy constructor.
...
PiperOrigin-RevId: 686236500
2 months ago
deannagarcia
27ddb9ce34
Give Kotlin jars an OSGi Manifest ( #18812 )
...
Extend our Java OSGi library to have a version that works for Kotlin. Add a `protobuf_versioned_kt_jvm_library` that creates a bundle with the OSGi manifest and call that instead of `kt_jvm_library` for all our kotlin maven release targets.
Closes #18812
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/18812 from deannagarcia:kotlinOSGi 81bab06f61
PiperOrigin-RevId: 686220820
2 months ago