Protobuf Team Bot
421040b32b
Enable Editions in the C# generator.
...
PiperOrigin-RevId: 611508658
9 months ago
Protobuf Team Bot
7e7a7bcadf
Internal C++ version update.
...
PiperOrigin-RevId: 611475075
9 months ago
Mike Kruskal
4ae7c6d68b
Simplify C++ edition calculation to match other runtimes.
...
This should be a no-op change, enforced by other existing validation checks.
PiperOrigin-RevId: 611279553
9 months ago
Hong Shin
37c1e2e662
Make the protobuf parser final, and use default dtor
...
PiperOrigin-RevId: 611236371
9 months ago
Protobuf Team Bot
670e014065
Workaround `SERVICE_STOP` macro definition on WIN32.
...
One of the [GCP proto files](https://github.com/googleapis/googleapis/blob/master/google/cloud/securitycenter/v1/mitre_attack.proto#L186 ) recently introduce a message enum field named `SERVICE_STOP`. Unfortunately this clashes with a macro from `winsvc.h`, so add `SERVICE_STOP` to the push/undef/pop wrappers.
PiperOrigin-RevId: 611231375
9 months ago
Mike Kruskal
1f1e7e754c
Internal changes
...
PiperOrigin-RevId: 611144002
9 months ago
Sandy Zhang
a9d9bee2d6
Automated rollback of commit 5993e86986
.
...
PiperOrigin-RevId: 611140920
9 months ago
Protobuf Team Bot
fd4625e906
Remove setter_opt and add clearer for with-presence scalar fields, and add flat setter for msg fields.
...
PiperOrigin-RevId: 611140566
9 months ago
Chris Kennelly
08523897a5
Replace call to proto2::Arena::CreateMessage with Create.
...
PiperOrigin-RevId: 610960035
9 months ago
Protobuf Team Bot
6713c2f646
Clean up another Rust protobuf logspam message
...
PiperOrigin-RevId: 610921886
9 months ago
Sandy Zhang
5993e86986
Force descriptor initialization of dependencies at the beginning of the static init block.
...
This ensures that any dependent descriptors are already initialized before we use them and we're not initializing them lazily as-we-go. This should help ensure that dependent descriptors are fully initialized before we need them.
PiperOrigin-RevId: 610858264
9 months ago
Protobuf Team Bot
cc55b85a0e
Use parameterized testing.
...
PiperOrigin-RevId: 610838257
9 months ago
tony
fe60e5b971
Fix csharp doc commments ( #15955 )
...
Fix C# document comments when there is an extra `/` at the start of a comment line.
See https://github.com/grpc/grpc/issues/35905
Related to https://github.com/grpc/grpc/pull/36000 which also fixes the issue in the gRPC C# plugin
Closes #15955
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/15955 from tonydnewell:csharp-comment-fix d80e09ae20
PiperOrigin-RevId: 610784971
9 months ago
Sandy Zhang
8a17f5ddeb
Resolve features directly in setProto instead of temporarily setting to null.
...
Avoid potential races with other threads reading features that do not share a lock while features are temporarily null.
Special handling for proto1 mutable should not actually be needed, since setProto doesn't update dependency protos.
PiperOrigin-RevId: 610783483
9 months ago
Protobuf Team Bot
139ea4d385
Tweak "group to property name" mapping for C#. Under editions, where fields using a delimited encoding have independent field names from type names, we want to use the specified field name.
...
This change keeps the existing naming for properties generated from proto2 files, while improving the experience under editions. This introduces a C# incompatibility when upgrading a proto from proto2 to editions, but we anticipate this being a relatively rare problem.
PiperOrigin-RevId: 610783407
9 months ago
Protobuf Team Bot
0ad1bfc2fa
Automated Code Change
...
PiperOrigin-RevId: 610771450
9 months ago
Mike Kruskal
f66d876a10
Allow base64 encoding of embedded edition defaults.
...
PiperOrigin-RevId: 610570515
9 months ago
Protobuf Team Bot
ab127f7501
Rename EagerParseLazyField to EagerParseLazyFieldIgnoreUnparsed
...
PiperOrigin-RevId: 610469115
9 months ago
Marcin Kowalczyk
03a472ea08
Optimize `Reflection::ScratchSpace::CopyFromCord()`.
...
If the Cord is already flat, return a pointer to its data instead of copying
them to a string.
PiperOrigin-RevId: 610434454
9 months ago
Protobuf Team Bot
7ef3f87e3d
Auto-generate files after cl/610422312
9 months ago
Protobuf Team Bot
afbe9cc9b5
Internal change
...
PiperOrigin-RevId: 610422312
9 months ago
Protobuf Team Bot
7e5962d3bc
Auto-generate files after cl/610415350
9 months ago
Protobuf Team Bot
ed072f207c
Automated rollback of commit 6722988db6
.
...
PiperOrigin-RevId: 610415350
9 months ago
Protobuf Team Bot
9c0d130168
Automated Code Change
...
PiperOrigin-RevId: 610384942
9 months ago
Protobuf Team Bot
0e8bb1954d
Automated Code Change
...
PiperOrigin-RevId: 610367636
9 months ago
Protobuf Team Bot
2eb6e4f374
Automated Code Change
...
PiperOrigin-RevId: 610364921
9 months ago
Protobuf Team Bot
ee0a41cae3
Add states to support "ignore unparsed".
...
PiperOrigin-RevId: 609868025
9 months ago
Thomas Van Lenten
baaf402b29
Fix comment error.
...
PiperOrigin-RevId: 609830695
9 months ago
Protobuf Team Bot
f12f279be2
Deprecate Arena::CreateMessage internally first.
...
PiperOrigin-RevId: 609788176
9 months ago
Alyssa Haroldsen
fe5092a392
Support enums as map values
...
PiperOrigin-RevId: 609772950
9 months ago
Protobuf Team Bot
3590a8b7e8
Auto-generate files after cl/609769553
9 months ago
Protobuf Team Bot
6bf0d8a936
Drop MapEntry::_InternalParse and use the TcParser generated version instead.
...
PiperOrigin-RevId: 609769553
9 months ago
Ilya Tokar
5988dc2e37
Make msvc happy
...
For some reason __forceinline inline geives a warning, but
inline __forceinline isn't.
PiperOrigin-RevId: 609766125
9 months ago
Chris Kennelly
9f79ddf8b3
Replace call to proto2::Arena::CreateMessage with Create.
...
PiperOrigin-RevId: 609755924
9 months ago
Protobuf Team Bot
827900d0f5
Add C# to the list of codegen test languages for Editions.
...
PiperOrigin-RevId: 609754899
9 months ago
Thomas Van Lenten
f9731fdf73
[ObjC] Fix potential `-Wstrict-prototypes` warning.
...
PiperOrigin-RevId: 609718293
9 months ago
Protobuf Team Bot
5a0135e65a
Bring back 'flat' setters for singular scalars and strings.
...
The non-string field setters can bypass the vtables already, the string setters still go through the vtable path here because its more important to let them take an `impl SettableValue` to be able to set either a &str or a &ProtoStr already.
PiperOrigin-RevId: 609705233
9 months ago
Alyssa Haroldsen
c6af7f76b7
Replace UpbTypeConversions::empty_message_value with MaybeUninit/null
...
The API doesn't require the pointees be initialized first, and the writes are predictable.
PiperOrigin-RevId: 609540475
10 months ago
Alyssa Haroldsen
dd27b6b877
Use consistent name for the "get item from untyped map iterator" thunk
...
It now uses the same prefix as other thunks needed for the proxied type,
so the RawMapThunk helper can be used for enums.
Calling it a "iter next" thunk is misleading.
It does not increment the iterator as "next" implies,
it only gets the current key/value the iterator points to.
PiperOrigin-RevId: 609527442
10 months ago
Protobuf Team Bot
ce61fc80b6
Remove the override for _InternalParse from Message and inject the custom
...
behavior via DescriptorMethods instead.
PiperOrigin-RevId: 609470854
10 months ago
Protobuf Team Bot
22cbe3a435
Auto-generate files after cl/609454594
10 months ago
Ilya Tokar
4b31b781f6
Be less aggressive about prefetching in bytesizelong
...
PiperOrigin-RevId: 609454594
10 months ago
Protobuf Team Bot
2ec8e4da21
Auto-generate files after cl/609437563
10 months ago
Protobuf Team Bot
6722988db6
Improve pinning assembly when using a clang that supports it.
...
The new technique adds the relocation without adding an instruction that has to be executed in the code path.
PiperOrigin-RevId: 609437563
10 months ago
Alyssa Haroldsen
b33682537b
Refactor builtin map key type naming info for enums
...
PiperOrigin-RevId: 609434380
10 months ago
Protobuf Team Bot
e4eac25bb3
Auto-generate files after cl/609416940
10 months ago
Protobuf Team Bot
033ff1710e
Introduce a RustFieldType enum which captures the primitive types that a rust field can be.
...
The purpose is to avoid duplicating the mapping of different types that are only relevant to the serializer but not to the exposed api (e.g. FIXED32 vs INT32)
Treat type=GROUP as rust-type=MESSAGE here which is all that is needed for us to support groups in the rust codegen.
The RustFieldType is parallel to the preexisting FieldDescriptor::CppType which _almost_ does what we need, but it treats Bytes and Strings as the same cpptype which Rust codegen doesn't.
PiperOrigin-RevId: 609416940
10 months ago
Protobuf Team Bot
73e3aec316
Remove spammy logging message from rust protobuf codegen
...
PiperOrigin-RevId: 609354123
10 months ago
Chris Kennelly
b785fcb583
Automated Code Change
...
PiperOrigin-RevId: 609013830
10 months ago
Protobuf Team Bot
1f701a2ba9
Rename FieldBeneratorBase::descriptor_ to field_.
...
PiperOrigin-RevId: 608825012
10 months ago