Protobuf Team Bot
7d6198ed42
Print usage count if it's rarely used.
...
PiperOrigin-RevId: 597083184
1 year ago
Protobuf Team Bot
3b5b6e9f02
Allow friendly use of Reflection::MutableRaw(), Reflection::MutableRawNonOneof().
...
PiperOrigin-RevId: 597061355
1 year ago
Protobuf Team Bot
c5083a855a
InlinedArena needs copy constructor and copy assignment operator deleted
...
Deletes the default copy constructor and assignment operator.
PiperOrigin-RevId: 597041019
1 year ago
Hong Shin
373192ceff
Expunge unnecessary commentary from singular_message.cc and message.cc codegen
...
PiperOrigin-RevId: 597027922
1 year ago
Protobuf Team Bot
afd94185f7
Auto-generate files after cl/597019522
1 year ago
Eric Salo
facf959a78
upb: tag upb_Array.data as UPB_ONLYBITS()
...
PiperOrigin-RevId: 597019522
1 year ago
Protobuf Team Bot
e5b547bcb8
Change MsgMut's _mut() accessors to use (&mut self) instead of (&self)
...
If this took a &self there were holes in thread and memory safety, because it's allowed to get multiple &MsgMuts (but only &mut MsgMuts).
PiperOrigin-RevId: 596991263
1 year ago
Alyssa Haroldsen
0b5cd4e9ef
Implement repeated enum accessors
...
PiperOrigin-RevId: 596985413
1 year ago
Alyssa Haroldsen
20933b2b22
Implement singular enum accessors
...
PiperOrigin-RevId: 596984036
1 year ago
Protobuf Team Bot
f2c187df28
Auto-generate files after cl/596962024
1 year ago
Joshua Haberman
dbd4dcede0
Breaking Change: Removed `syntax` and added `has_presence?`/`is_packed?`.
...
Closes #15313
PiperOrigin-RevId: 596962024
1 year ago
Alyssa Haroldsen
e7be866a17
Support enums in DefaultValue
...
PiperOrigin-RevId: 596769895
1 year ago
Alyssa Haroldsen
e3d2551c8e
Move enum value name calculation
...
PiperOrigin-RevId: 596767666
1 year ago
Alyssa Haroldsen
fa67ce8d4d
Expand PrimitiveRsTypeName to work with non-primitives, rename, refactor
...
PiperOrigin-RevId: 596765288
1 year ago
Alyssa Haroldsen
1eab5a0237
Generate `pub use` for imported enums
...
PiperOrigin-RevId: 596762218
1 year ago
Alyssa Haroldsen
17b0f3f6a4
Add enum qualified path naming fns
...
PiperOrigin-RevId: 596738896
1 year ago
Alyssa Haroldsen
c16e0485c2
Refactor oneof/enum naming functions for consistency
...
PiperOrigin-RevId: 596734937
1 year ago
Protobuf Team Bot
f8d7885236
Add SPLIT test coverage to :analyze_profile_proto_test and disable force_split.
...
PiperOrigin-RevId: 596723248
1 year ago
Protobuf Team Bot
e1253cd905
Auto-generate files after cl/596706308
1 year ago
Eric Salo
87618fcbdd
upb: remove duplicate typedef for upb_TaggedMessagePtr
...
PiperOrigin-RevId: 596706308
1 year ago
Protobuf Team Bot
434d109d9c
Make utf8chars.chars iter return `impl Iterator + fmt::Debug`.
...
PiperOrigin-RevId: 596599987
1 year ago
Protobuf Team Bot
4e90eadcb3
Auto-generate files after cl/596588385
1 year ago
Eric Salo
c02f943f1a
upb: distinguish between fields and extensions in the public clear() accessors
...
PiperOrigin-RevId: 596588385
1 year ago
Jakob Buchgraber
991a2f4d54
#refactor Simplify maps through the new ProxiedInMapValue<K> trait
...
This change is a pure refactoring and simplification of the code. We replace all MapsWith<TYPE>KeyOps traits through a single generic ProxiedInMapValue<K> trait. Through connecting the runtime maps implementation with Proxied the code gets a lot simpler e.g. we can use View<T> instead of hardcoding the concrete type behind it.
I also expect this change to be beneficial for the gencode. In a subsequent CL we'll implement message values for maps. After this change we'll only have to implement a single trait, while before we had to implement num(key types) many traits.
PiperOrigin-RevId: 596562909
1 year ago
Protobuf Team Bot
1a21cb57b7
Auto-generate files after cl/596390524
1 year ago
Eric Salo
bdf24b2e0d
upb: add 'static' to some wire decoder functions
...
PiperOrigin-RevId: 596390524
1 year ago
Eric Salo
d228a44a2f
upb: fix some more compiler warnings in Ruby about missing return values
...
PiperOrigin-RevId: 596390202
1 year ago
Protobuf Team Bot
69cffdca9c
Annotate some Kotlin generated protobuf code.
...
Note that this change removes the use of ${$ and $}$ in
the body of a template `clear` method. These brackets are
currently unused (there's no Annotate call and the variables are
set to the empty string); it also shouldn't be necessary to
annotate non-definitions.
PiperOrigin-RevId: 596254156
1 year ago
Gabriel Féron
585c87904a
Fix BUILD.bazel for newer rules_android_ndk ( #15298 )
...
When using transitions, and `rules_android_ndk` the constraint needs to be changed to `@platforms`.
Closes #15298
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/15298 from gferon:fix-android-constraint d15c794da3
PiperOrigin-RevId: 596140608
1 year ago
Protobuf Team Bot
e77b709750
Remove unused PROTOBUF_FORCE_RESET_IN_CLEAR
...
PiperOrigin-RevId: 596124853
1 year ago
Protobuf Team Bot
7bb9c98133
Auto-generate files after cl/596105029
1 year ago
Protobuf Team Bot
b2e94f3c41
Use raw string for Emit
...
PiperOrigin-RevId: 596105029
1 year ago
Dmitri Gribenko
321b817147
Automated Code Change
...
PiperOrigin-RevId: 596091728
1 year ago
Protobuf Team Bot
d6ccc70078
IWYU cleanup.
...
PiperOrigin-RevId: 596074149
1 year ago
Protobuf Team Bot
7b2e9aac80
Change the ids used the unset field tracking to be Message+FieldDescriptor.
...
The absolute address of a member is unstable and can be invalidated by changes to other
fields. For example, for split fields.
PiperOrigin-RevId: 596072639
1 year ago
Alyssa Haroldsen
d1b328ace3
Fix nested enum generation when enums are the sole nested types
...
PiperOrigin-RevId: 596066421
1 year ago
Protobuf Team Bot
f5b50c5022
Add self pinning on all message accessors for weak descriptor messages.
...
This guarantees that no matter how you get the instance we pin the type on any
use.
Previously, casting a `Message*` to some generated type and calling methods on it could trigger undefined behavior unless the cast is down via the ones provided by the library (eg `DownCastToGenerated`).
PiperOrigin-RevId: 596066250
1 year ago
Sandy Zhang
0d8080ef29
Add to Proto2 JSON conformance test failure lists for C#, JRuby and PHP C
...
PiperOrigin-RevId: 596057023
1 year ago
Jason Lunn
bb38ba5575
Fix separate issues in JRuby's "native" `dup` and `inspect` methods. ( #15265 )
...
Update the stress test to exercise `proto3_optional` fields.
Closes #15265
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/15265 from protocolbuffers:fix_jruby_proto3_optional 4040e13a7b
PiperOrigin-RevId: 596028361
1 year ago
Joshua Haberman
a8b8ea02b7
Breaking Change: fixed json_encode/json_decode to use the message's pool.
...
This bug arises only in the uncommon case where there is more than one DescriptorPool. In such a case, JSON encode/decode should always use the pool of the message being encoded/decoded, not the generated pool.
Closes #15281
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/15281 from protocolbuffers:ruby-json-pool-fix 91e2dc55dc
PiperOrigin-RevId: 596027770
1 year ago
Protobuf Team Bot
55260d8321
Auto-generate files after cl/596018472
1 year ago
Protobuf Team Bot
679c1c9342
Update comment of "lazy" field option to reflect eager verification.
...
PiperOrigin-RevId: 596018472
1 year ago
Jie Luo
0905ba3462
Add "extend repeated with nothing" tests back for upb python
...
PiperOrigin-RevId: 596017378
1 year ago
Mike Kruskal
3acd85e0a9
Remove edition getter from python descriptor APIs
...
We've never released these, so this is not a breaking change.
PiperOrigin-RevId: 596007719
1 year ago
Protobuf Team Bot
0ae12df494
Internal change
...
PiperOrigin-RevId: 595999309
1 year ago
Protobuf Team Bot
42ecd61b3e
Extend Proto2 JSON test cases to cover more of the preexisting Proto3 JSON cases.
...
PiperOrigin-RevId: 595998208
1 year ago
Bastien Jacot-Guillarmod
0555d64af0
Internal
...
PiperOrigin-RevId: 595994998
1 year ago
Jie Luo
4ebba684c7
BREAKING CHANGE in v26: Remove RegisterExtension in message class
...
PiperOrigin-RevId: 595989309
1 year ago
Protobuf Team Bot
7bbc0b6536
Automated Code Change
...
PiperOrigin-RevId: 595845776
1 year ago
Protobuf Team Bot
13b97e1609
Automated Code Change
...
PiperOrigin-RevId: 595843517
1 year ago