Protobuf Team Bot
98511549b5
Use the simpler set_x() instead of x_mut().set() in the Rust conformance test.
...
PiperOrigin-RevId: 613272179
1 year ago
Protobuf Team Bot
009078df7a
Move Protobuf C++ versions out of port_def.inc to runtime_version.h so that the version can be used for preprocessing by users.
...
PiperOrigin-RevId: 613271110
1 year ago
Protobuf Team Bot
33f367d2ba
Auto-generate files after cl/613258771
1 year ago
Éamonn McManus
6cbcff4bb6
Clarify that `upb_Message_SetString` does not copy data.
...
PiperOrigin-RevId: 613258771
1 year ago
Trayan Zapryanov
fac929d9aa
Cache StringBuilder instances in the .NET JsonTextTokenizer.
...
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/15794 from TrayanZapryanov:cache_stringbuilder 596147e6f1
PiperOrigin-RevId: 613251480
1 year ago
Protobuf Team Bot
3dadd0e1ee
Generate an error early while parsing if the message nesting is too large. It
...
will fail anyway later on when trying to create a descriptor but this way we
prevent stack overflows on the parser.
PiperOrigin-RevId: 613245970
1 year ago
Protobuf Team Bot
53ad6a4478
Put an explicit warning about the incovenience of working against main and a recommendation to use a supported release in the root readme.
...
PiperOrigin-RevId: 613234330
1 year ago
Protobuf Team Bot
554a00c40a
Introduce Python Protobuf runtime version.
...
PiperOrigin-RevId: 613224059
1 year ago
Jakob Buchgraber
03687b798b
#rust #protobuf Implement custom Debug for C++ kernel
...
This change implements a custom Debug for messages, views and muts in the C++ kernel. Debug defers to proto2::Utf8Format.
It implements this only for the C++ kernel. We will need to pull in additional dependencies beyond minitables to implement it for UPB as well. This will be done at a later point.
PiperOrigin-RevId: 613191236
1 year ago
Jakob Buchgraber
997281b5bb
#protobuf #rust use align parameter in __pb_rust_alloc
...
PiperOrigin-RevId: 613181914
1 year ago
Jakob Buchgraber
11bbab1664
#protobuf #rust Build gencode files when building a rust_proto_library target
...
from the command line.
PiperOrigin-RevId: 613167071
1 year ago
Sandy Zhang
5b32936822
Register Scalar/MessageMapContainerTypes as virtual subclasses of MutableMapping instead of inheriting directly.
...
This prevents these from using abc.ABCMeta metaclass to avoid deprecation warning:
```
DeprecationWarning: Type google._upb._message.MessageMapContainer uses PyType_Spec with a metaclass that has custom tp_new. This is deprecated and will no longer be allowed in Python 3.14.
```
Fixes #15077
Fixes #12186
PiperOrigin-RevId: 613029479
1 year ago
Protobuf Team Bot
ff83c91654
Auto-generate files after cl/613016814
1 year ago
Protobuf Team Bot
e8244da7c6
Adds mutable extension accessors to the codegen for upb C for getting mutable extension messages.
...
PiperOrigin-RevId: 613017999
1 year ago
Mike Kruskal
7de0ad1adb
Add a unittest locking down presence behavior for proto3 extensions
...
PiperOrigin-RevId: 613016814
1 year ago
Protobuf Team Bot
16f96d15eb
Stop using EagerParseLazyFieldByMutation.
...
PiperOrigin-RevId: 613016289
1 year ago
Protobuf Team Bot
9f4e01ffca
Automated rollback of commit 8e833bfc66
.
...
PiperOrigin-RevId: 613004543
1 year ago
Protobuf Team Bot
6332267b1d
Add EagerParseLazyField no IgnoreParse
...
PiperOrigin-RevId: 612999269
1 year ago
Sandy Zhang
9f001a9658
Fix descriptor to access type via getType() s.t. messages using delimited encoding are consistently treated as groups for Java lite.
...
This should fix InvalidWireTypeException in the case of getLiteType() not treating messages with delimited encoding as groups: http://shortn/_2TEPuwIj6P
getJavaType() and needsUtf8Check() changes are no-ops since the type is the same regardless, but these are updated for consistency.
PiperOrigin-RevId: 612972996
1 year ago
Protobuf Team Bot
730db2ddde
Auto-generate files after cl/612967791
1 year ago
Protobuf Team Bot
8e833bfc66
Fix missing port_def/port_undef includes
...
PiperOrigin-RevId: 612971492
1 year ago
Protobuf Team Bot
5ec1e25d6e
Auto-generate files after cl/612961189
1 year ago
Protobuf Team Bot
87abd5d2ca
Add "DO" "NOT" "SUBMIT" to Protobuf c++ gencode.
...
PiperOrigin-RevId: 612967791
1 year ago
Protobuf Team Bot
6789e66766
Raw access to oneof LazyField must be LazyField*.
...
PiperOrigin-RevId: 612961986
1 year ago
Éamonn McManus
507f037f7e
Document the return value of `upb_Message_SetField`.
...
PiperOrigin-RevId: 612961189
1 year ago
Sandy Zhang
9a262c2091
Update setup-php to 2.30.0 and re-enable macOS PHP 8.2 tests.
...
setup-php 2.30.0 should fix https://github.com/shivammathur/setup-php/issues/823
PiperOrigin-RevId: 612882408
1 year ago
Sandy Zhang
360531cd08
Drop Ruby 2.7.
...
This updates the required ruby version to >= 3.0 and removes Ruby 2.7 tests from main branch, in anticipation for end of Ruby 2.7 support on 3/31 in 27.x
See https://cloud.google.com/ruby/getting-started/supported-ruby-versions
PiperOrigin-RevId: 612841114
1 year ago
Mike Kruskal
c78b189609
Internal change
...
PiperOrigin-RevId: 612549494
1 year ago
Chris Kennelly
9e7cff0629
Automated Code Change
...
PiperOrigin-RevId: 612547901
1 year ago
Protobuf Team Bot
d4bfe52d99
Deprecate Arena::CreateMessage for OSS.
...
PiperOrigin-RevId: 612534673
1 year ago
Protobuf Team Bot
73d96dba54
Internal changes.
...
PiperOrigin-RevId: 612490675
1 year ago
Jakob Buchgraber
016a4b56fe
#protobuf #rust Make oneof enum Copy
...
PiperOrigin-RevId: 612423063
1 year ago
Protobuf Team Bot
024d90983e
Assume HasHasbit() for SingularMessage and !HasHasbit() for OneofMessage.
...
PiperOrigin-RevId: 612347702
1 year ago
Protobuf Team Bot
f7317e02e6
Refactor C# FieldDescriptor.FieldType for consistency.
...
PiperOrigin-RevId: 612337931
1 year ago
Protobuf Team Bot
7a51eb5370
Add port_def.inc and port_undef.inc. for reflection_visit_field_info.h.
...
PiperOrigin-RevId: 611794867
1 year ago
Protobuf Team Bot
11f274be08
Use parameterized tests for easier extension.
...
PiperOrigin-RevId: 611699734
1 year ago
Protobuf Team Bot
1d045c64c7
EagerParseLazyField for const Message&
...
PiperOrigin-RevId: 611681298
1 year ago
Protobuf Team Bot
45b881baa1
Make internal::EagerParseLazyFieldIgnoreUnparsed() internal to google3.
...
PiperOrigin-RevId: 611669493
1 year ago
Marcel Hlopko
66ef7bc133
Do not default to private visibility in rust_proto_library internal alias
...
PiperOrigin-RevId: 611607559
1 year ago
Protobuf Team Bot
7aac5538b4
Auto-generate files after cl/611586588
1 year 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
1 year 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
1 year ago
Protobuf Team Bot
421040b32b
Enable Editions in the C# generator.
...
PiperOrigin-RevId: 611508658
1 year ago
Protobuf Team Bot
8958768d3c
Auto-generate files after cl/611488947
1 year ago
Eric Salo
4502dd1ea3
upb: fix upb_MiniTableField_IsInOneof() to be UPB_API_INLINE everywhere
...
PiperOrigin-RevId: 611488947
1 year ago
Protobuf Team Bot
7e7a7bcadf
Internal C++ version update.
...
PiperOrigin-RevId: 611475075
1 year 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
1 year ago
Protobuf Team Bot
b6c0c30633
Auto-generate files after cl/611246775
1 year ago
Protobuf Team Bot
450022de99
Runtime support for Protobuf Editions in C#.
...
PiperOrigin-RevId: 611246775
1 year 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
1 year ago