Chris Kennelly
9e7cff0629
Automated Code Change
...
PiperOrigin-RevId: 612547901
11 months ago
Protobuf Team Bot
d4bfe52d99
Deprecate Arena::CreateMessage for OSS.
...
PiperOrigin-RevId: 612534673
11 months ago
Protobuf Team Bot
73d96dba54
Internal changes.
...
PiperOrigin-RevId: 612490675
11 months ago
Jakob Buchgraber
016a4b56fe
#protobuf #rust Make oneof enum Copy
...
PiperOrigin-RevId: 612423063
11 months ago
Protobuf Team Bot
024d90983e
Assume HasHasbit() for SingularMessage and !HasHasbit() for OneofMessage.
...
PiperOrigin-RevId: 612347702
11 months ago
Protobuf Team Bot
f7317e02e6
Refactor C# FieldDescriptor.FieldType for consistency.
...
PiperOrigin-RevId: 612337931
11 months ago
Protobuf Team Bot
7a51eb5370
Add port_def.inc and port_undef.inc. for reflection_visit_field_info.h.
...
PiperOrigin-RevId: 611794867
11 months ago
Protobuf Team Bot
11f274be08
Use parameterized tests for easier extension.
...
PiperOrigin-RevId: 611699734
11 months ago
Protobuf Team Bot
1d045c64c7
EagerParseLazyField for const Message&
...
PiperOrigin-RevId: 611681298
11 months ago
Protobuf Team Bot
45b881baa1
Make internal::EagerParseLazyFieldIgnoreUnparsed() internal to google3.
...
PiperOrigin-RevId: 611669493
11 months ago
Marcel Hlopko
66ef7bc133
Do not default to private visibility in rust_proto_library internal alias
...
PiperOrigin-RevId: 611607559
11 months ago
Protobuf Team Bot
7aac5538b4
Auto-generate files after cl/611586588
11 months ago
Protobuf Team Bot
cfc07df845
Open sourcing reflection_visit_fieds.
...
Note that VisitFields() is an internal API and only meant for internal protobuf
usages.
PiperOrigin-RevId: 611586588
11 months ago
Ilukatsk
988194a591
Fixed the use of c++ keywords within namespace names ( #15954 )
...
Closes #15954
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/15954 from Ilukatsk:main acf3fa436c
PiperOrigin-RevId: 611573919
11 months ago
Protobuf Team Bot
421040b32b
Enable Editions in the C# generator.
...
PiperOrigin-RevId: 611508658
11 months ago
Protobuf Team Bot
8958768d3c
Auto-generate files after cl/611488947
11 months ago
Eric Salo
4502dd1ea3
upb: fix upb_MiniTableField_IsInOneof() to be UPB_API_INLINE everywhere
...
PiperOrigin-RevId: 611488947
11 months ago
Protobuf Team Bot
7e7a7bcadf
Internal C++ version update.
...
PiperOrigin-RevId: 611475075
11 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
11 months ago
Protobuf Team Bot
b6c0c30633
Auto-generate files after cl/611246775
12 months ago
Protobuf Team Bot
450022de99
Runtime support for Protobuf Editions in C#.
...
PiperOrigin-RevId: 611246775
12 months ago
Mike Kruskal
119e71c40a
Run C# tests with non-Bazel protobuf-ci actions.
...
The Bazel action currently isn't setup to regenerate the proto gencode itself, meaning that it won't actually be running on changes in the pending PR. Long-term, we should migrate this back to Bazel after enabling proto codegen properly.
PiperOrigin-RevId: 611238217
12 months ago
Hong Shin
37c1e2e662
Make the protobuf parser final, and use default dtor
...
PiperOrigin-RevId: 611236371
12 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
12 months ago
Mike Kruskal
1f1e7e754c
Internal changes
...
PiperOrigin-RevId: 611144002
12 months ago
Sandy Zhang
a9d9bee2d6
Automated rollback of commit 5993e86986
.
...
PiperOrigin-RevId: 611140920
12 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
12 months ago
Mike Kruskal
bda13f3bfa
Add back error message unconditionally
...
PiperOrigin-RevId: 611105036
12 months ago
Chris Kennelly
08523897a5
Replace call to proto2::Arena::CreateMessage with Create.
...
PiperOrigin-RevId: 610960035
12 months ago
Protobuf Team Bot
6713c2f646
Clean up another Rust protobuf logspam message
...
PiperOrigin-RevId: 610921886
12 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
12 months ago
Protobuf Team Bot
cc55b85a0e
Use parameterized testing.
...
PiperOrigin-RevId: 610838257
12 months ago
Mike Kruskal
fc6adb6c0e
Actually fail if staleness fail
...
PiperOrigin-RevId: 610833812
12 months ago
Protobuf Team Bot
0070ac1188
Make UnsafeByteOperations stable; removing experimental annotation.
...
PiperOrigin-RevId: 610787227
12 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
12 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
12 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
12 months ago
Protobuf Team Bot
0ad1bfc2fa
Automated Code Change
...
PiperOrigin-RevId: 610771450
12 months ago
Mike Kruskal
396e26b475
Enable C++ tests for Bazel 7 on mac
...
PiperOrigin-RevId: 610573579
12 months ago
Mike Kruskal
f66d876a10
Allow base64 encoding of embedded edition defaults.
...
PiperOrigin-RevId: 610570515
12 months ago
Mike Kruskal
4dc2c07025
Disable Mac PHP 8.2 test
...
PiperOrigin-RevId: 610520746
12 months ago
Protobuf Team Bot
ab127f7501
Rename EagerParseLazyField to EagerParseLazyFieldIgnoreUnparsed
...
PiperOrigin-RevId: 610469115
12 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
12 months ago
Protobuf Team Bot
7ef3f87e3d
Auto-generate files after cl/610422312
12 months ago
Protobuf Team Bot
afbe9cc9b5
Internal change
...
PiperOrigin-RevId: 610422312
12 months ago
Protobuf Team Bot
7e5962d3bc
Auto-generate files after cl/610415350
12 months ago
Protobuf Team Bot
ed072f207c
Automated rollback of commit 6722988db6
.
...
PiperOrigin-RevId: 610415350
12 months ago
Thomas Van Lenten
9f52d5e380
[ObjC] Fix issue using GPBBootstrap.h only.
...
GPB_ENUM_FWD_DECLARE needs `int32_t`, so add the import so GPBBootstrap.h
stands on its own without needing users to import something else.
Add another compile test file to ensure this doesn't break.
PiperOrigin-RevId: 610403337
12 months ago
Protobuf Team Bot
9c0d130168
Automated Code Change
...
PiperOrigin-RevId: 610384942
12 months ago
Protobuf Team Bot
0e8bb1954d
Automated Code Change
...
PiperOrigin-RevId: 610367636
12 months ago