Mike Kruskal
6ed3b558d2
Internal changes
...
PiperOrigin-RevId: 516893867
2 years ago
Protobuf Team Bot
d70ddf20d3
Fix lint warnings for protobuf GeneratedMessage.java
...
PiperOrigin-RevId: 516731120
2 years ago
Protobuf Team Bot
f257fd2eed
Auto-generate files after cl/516687577
2 years ago
Mike Kruskal
1d7bda4a78
Add hasbit to proto3 fields even when 'optional' is missing.
...
PiperOrigin-RevId: 516687577
2 years ago
Mike Kruskal
309c50e8f3
Internal Code Change
...
PiperOrigin-RevId: 516665926
2 years ago
Protobuf Team Bot
44bd03c609
Fix `FieldSet#writeMessageSetTo` to delegate to LazyFields when appropriate.
...
This fixes the following issue:
- In `FieldSet#getMessageSetSerializedSize` we delegate to `LazyField` for getting its size.
- Before this change, in `FieldSet#writeMessageTo` we do not delegate to LazyField's `byteString` method. Instead, we call `getValue` on the `FieldSet`.
- It's not guaranteed that `fieldSet.getSerializedSize() == fieldSet.getValue().getSerializedSize()`.
In particular, this can lead us to run into the message "Serializing com.google.protobuf.DynamicMessage to a byte array threw an IOException (should never happen)" because of mispredicted output size.
We fix the issue by following similar logic to `MessageSetSchema`- if "getSerializedSize" delegates to the LazyField, then the serializer should as well.
PiperOrigin-RevId: 516658372
2 years ago
Protobuf Team Bot
d30f9ee435
Auto-generate files after cl/516655054
2 years ago
Mike Kruskal
bdeacc7fb8
Internal Code Change
...
PiperOrigin-RevId: 516655054
2 years ago
Protobuf Team Bot
5d97d43863
Internal change.
...
PiperOrigin-RevId: 516635646
2 years ago
Sandy Zhang
6e6d0bce4a
Add Java FileDescriptor.copyHeadingTo() which copies file-level settings (e.g. syntax, package, file options) to FileDescriptorProto.Builder
...
PiperOrigin-RevId: 516635134
2 years ago
Protobuf Team Bot
330e10d53f
Add config option to print 64-bit integers in JSON as unquoted ints if they can be losslessly converted into a 64-bit float.
...
PiperOrigin-RevId: 516625978
2 years ago
Protobuf Team Bot
626c7e7734
Auto-generate files after cl/516537048
2 years ago
Mike Kruskal
3b2eadf3cd
Pull after committing regenerated files
...
PiperOrigin-RevId: 516537048
2 years ago
Mike Kruskal
a85eda6647
Provide proto3 optional APIs in visibility-scoped wrapper.
...
These will be made private in a later change.
PiperOrigin-RevId: 516402763
2 years ago
Protobuf Team Bot
f9af05b9fc
Move the empty package allowlist into the new allowlists directory.
...
PiperOrigin-RevId: 516352673
2 years ago
Mike Kruskal
70dfcb5dc4
Introduce a legacy wrapper around descriptor to begin hiding APIs for editions.
...
For now, we'll just be hiding syntax getters on FileDescriptor. Later on this will likely grow to include other APIs that distinguish between proto2/proto3.
PiperOrigin-RevId: 516334230
2 years ago
Mike Kruskal
57e4b64410
Internal Code Change
...
PiperOrigin-RevId: 516207118
2 years ago
Protobuf Team Bot
5ba8730342
Fix syntax error in enum docs
...
PiperOrigin-RevId: 516195446
2 years ago
Protobuf Team Bot
fe0a809d5e
Internal Code Change
...
PiperOrigin-RevId: 515868884
2 years ago
zhangskz
b15bf628e5
Merge 22.x back to main ( #12200 )
...
Closes #12200
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12200 from protocolbuffers:main-202303101853 1efa2e7205
PiperOrigin-RevId: 515722578
2 years ago
Mike Kruskal
25dfc39b11
Internal changes
...
PiperOrigin-RevId: 515648197
2 years ago
zhangskz
b6777d29cc
Merge pull request #12200 from protocolbuffers/main-202303101853
...
Merge 22.x back to main
2 years ago
Sandy Zhang
1efa2e7205
Merge release branch 22.x into main
2 years ago
zhangskz
787fc7ddba
Merge pull request #12199 from protocolbuffers/22.x-202303101751
...
22.x 202303101751
2 years ago
Protobuf Team Bot
653673916c
Updating version.json to: 22.3-dev
2 years ago
Protobuf Team Bot
81f89d509d
Updating version.json and repo version numbers to: 22.2
2 years ago
zhangskz
9540135894
Merge pull request #12194 from deannagarcia/finalPomFixes
...
Add version to intra proto dependencies and add kotlin stdlib dependency
2 years ago
Marcel Hlopko
5252bc8ec8
Rename a test
...
PiperOrigin-RevId: 515628124
2 years ago
Deanna Garcia
99ed01009f
Add version to intra proto dependencies and add kotlin stdlib dependency
2 years ago
Mike Kruskal
988dd96537
Migrate syntax reflection to new feature-based system.
...
As part of go/protobuf-editions, we will be abandoning `syntax` in place of the new editions framework. The first edition will turn each difference between proto2 and proto3 into a more targeted *feature* placed on proto descriptors. In preparation for this, we want to migrate everyone off direct inspection of `syntax`.
PiperOrigin-RevId: 515457103
2 years ago
Protobuf Team Bot
5ea6cd9afa
Automated rollback of commit cfea039918
.
...
PiperOrigin-RevId: 515425578
2 years ago
deannagarcia
080e3067b9
Merge pull request #12189 from deannagarcia/poms
...
Add $ back for osgi header
2 years ago
Protobuf Team Bot
2dd03a570a
Internal change
...
PiperOrigin-RevId: 515369480
2 years ago
Deanna Garcia
d80c12d322
Add $ back for osgi header
2 years ago
Protobuf Team Bot
6545c67a08
Fix lint warnings for protobuf GeneratedMessage.java
...
PiperOrigin-RevId: 515240930
2 years ago
deannagarcia
15bd2c21cf
Merge 22.x back to main ( #12169 )
...
Closes #12169
PiperOrigin-RevId: 515161008
2 years ago
Mike Kruskal
972609b679
Rollback: Migrate syntax reflection to new feature-based system.
...
PiperOrigin-RevId: 515146548
2 years ago
Protobuf Team Bot
055a6c669f
Add ParseFromCord to TextFormat
...
PiperOrigin-RevId: 515128212
2 years ago
Mike Kruskal
03c7692bfb
Pin codespell to v1.0 to prevent non-hermetic issues.
...
Also exempt generated code
PiperOrigin-RevId: 515114853
2 years ago
deannagarcia
be7f6b06c0
Merge pull request #12177 from deannagarcia/fixPom
...
Fix pom file errors caused by the extra "$"
2 years ago
Mike Kruskal
ee68c78d02
Internal Code Change
...
PiperOrigin-RevId: 515074226
2 years ago
Protobuf Team Bot
de5ee4f7d6
Internal changes to extensions.
...
PiperOrigin-RevId: 515063881
2 years ago
Deanna Garcia
8ac2337595
Remove $ in pom files
2 years ago
deannagarcia
832a19627a
Merge pull request #12168 from protocolbuffers/22.x-202303072154
...
Update version numbers for 22.1 release
2 years ago
Protobuf Team Bot
9c02d4c0de
Updating version.json to: 22.2-dev
2 years ago
Protobuf Team Bot
839e8d25ea
Updating version.json and repo version numbers to: 22.1
2 years ago
deannagarcia
b869151779
Merge pull request #12165 from deannagarcia/fixWindowsExe
...
Condition executable name on build system
2 years ago
Minh Quy
8aa2b177f1
feat(6178): emit ruby enum as integer ( #11673 )
...
Fixes #6178
- Add a new option `enums_as_integers` to emit enum as integer value.
Closes #11673
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/11673 from MQuy:feat/6178-ruby-enum-as-integer 90f986a5fd
PiperOrigin-RevId: 514789180
2 years ago
Protobuf Team Bot
818129adff
Auto-generate files after cl/514783686
2 years ago
Deanna Garcia
5476b46af3
Condition executable name on build system
2 years ago