Sandy Zhang
c5c9c2fdf2
Prevent merging PRs directly in main with a failing Mergeable check, except when an `mergeable:force-allow` label is present.
...
This serves to prevent accidental PR merges outside of Copybara, but is not actually enforced by branch protection.
PiperOrigin-RevId: 492255443
2 years ago
Protobuf Team Bot
d301a9de3e
Internal Changez
...
PiperOrigin-RevId: 492253438
2 years ago
deannagarcia
9b37daf1ce
Add "public" modifier to Kotlin generated code
...
My previous attempt to do this https://github.com/protocolbuffers/protobuf/pull/11068#issuecomment-1333645637 missed this instance.
2 years ago
Protobuf Team Bot
370028c75d
[ObjC] Check the Printer failure status.
...
This was added a little while ago to Printer, so update to inspect it, as more
things use Emit, it likely matters more.
PiperOrigin-RevId: 492229456
2 years ago
Protobuf Team Bot
c928bf3f25
[ObjC] Convert GenerateSource over to Printer::Emit.
...
PiperOrigin-RevId: 492228634
2 years ago
Matt Kulukundis
10b8034be6
Add a code of conduct based on https://www.contributor-covenant.org/ and https://github.com/carbon-language/carbon-lang/blob/trunk/CODE_OF_CONDUCT.md
...
PiperOrigin-RevId: 492217200
2 years ago
Joshua Humphries
9a84a0128a
Add custom option numbers for use by Buf ( #11110 )
...
We are requesting a range of numbers instead of just one since we have some plans for a variety of orthogonal kinds of custom options. For example:
1. Injecting extra metadata into FileDescriptorProtos via custom options. (These options are inserted by the Buf tool when building proto sources, to encode additional metadata about the unit of files compiled.)
2. Configuration options for protoc plugins, that generate extra metadata into sources. (These options may be used by users when writing proto sources.)
The suggested approach of reserving just one number and making it a message that contains *all* options is unattractive since users of one category of options is unlikely to want to import types related to another category.
FWIW, there are several other rows above that have also chosen to reserve ranges of 5 or 10 numbers.
Closes #11110
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/11110 from jhump:jh/custom-options-for-buf-and-connect 68ef5ff1da
PiperOrigin-RevId: 492211135
2 years ago
Protobuf Team Bot
4df096f1e9
[ObjC] Move GenerateHeader over to Printer::Emit.
...
Update ImportWriter to have a second Emit api for the runtime files to
streamline things a bit better.
PiperOrigin-RevId: 492210147
2 years ago
Martijn Vels
75d31befc6
Implement ZeroCopyInputStream::ReadCord() in terms of absl::CordBuffer
...
PiperOrigin-RevId: 492078322
2 years ago
Protobuf Team Bot
9b0a8d3096
Fix lint warnings for protobuf GeneratedMessage.java
...
PiperOrigin-RevId: 492075312
2 years ago
Jorg Brown
782c7722e1
Merge pull request #11105 from protocolbuffers/21.x-202211301621
...
Update version.json to: 21.11-dev
2 years ago
Jorg Brown
06776db4e8
Update version.json to: 21.11-dev
2 years ago
Protobuf Team Bot
aa24ccda47
Internal change
...
PiperOrigin-RevId: 492049282
2 years ago
Mike Kruskal
129c3a4697
Fix copybara transformations for Python/C++ code.
...
PiperOrigin-RevId: 492014560
2 years ago
Protobuf Team Bot
09a08d1f75
LazyField::IsInitialized instead of LazyField::Get for oneof.
...
Oneof lazy fields can also benefit from prior verification just like
regular lazy fields.
PiperOrigin-RevId: 492014341
2 years ago
Jie Luo
24743cd6c7
Remove _SetType from python api_implementation.py
...
PiperOrigin-RevId: 492000386
2 years ago
Jie Luo
3d3bebf8ab
Internal change only
...
PiperOrigin-RevId: 491993057
2 years ago
Deanna Garcia
85debe8400
Internal change
...
PiperOrigin-RevId: 491992783
2 years ago
Protobuf Team Bot
568672c733
Fix doc typo
...
PiperOrigin-RevId: 491989064
2 years ago
Protobuf Team Bot
3b00bfff78
[ObjC] Update ImportWriter to use Printer::Emit.
...
PiperOrigin-RevId: 491967581
2 years ago
deannagarcia
51535c0a53
Merge pull request #11090 from protocolbuffers/deannagarcia-patch-11
...
Fix PHP homebrew installation failures
2 years ago
Deanna Garcia
33d1070fc4
Expose internal setExtension method for Kotlin
...
PiperOrigin-RevId: 491816141
2 years ago
deannagarcia
4465c092cf
Remove php 7.4 installation
2 years ago
Jorg Brown
9832e7815a
Merge pull request #11088 from protocolbuffers/21.x-202211291338
...
21.x 202211291338
2 years ago
deannagarcia
7e6c9844a2
Prohibit homebrew from automatically updating packages
...
When homebrew automatically updates packages we have less control over what version of packages we are running, this will make the script more deterministic. In addition, it will fix errors relating to updating irrelevant packages.
2 years ago
Jorg Brown
74dae8fe6c
Updating changelog
2 years ago
Protobuf Team Bot
11bc195441
Updating version.json and repo version numbers to: 21.10
2 years ago
Jorg Brown
f6ff28bfcb
Merge pull request #11075 from protocolbuffers/21.x-202211281808
...
21.x 202211281808
2 years ago
Theodore Rose
d03c11cce9
Merge pull request #11083 from protocolbuffers/deannagarcia-patch-10
...
Disable CocoaPods watchOS validation
2 years ago
deannagarcia
9933339c48
Disable CocoaPods watchOS validation
...
https://github.com/CocoaPods/CocoaPods/issues/11558 is causing this GHA to fail. It has been resolved in main, but this will continue to fail until a release is out and we migrate to it.
2 years ago
theodorerose
7cd953703a
kokoro trigger change
2 years ago
theodorerose
073b81a94d
kokoro trigger change
2 years ago
Matt Fowles Kulukundis
7c308c7d45
Merge pull request #11077 from jskeet/no-eol-check-csharp
...
Pre-emptively suppress target framework EOL warnings
2 years ago
Christian Blichmann
670b4f7232
Include header for Abseil's `flat_hash_set<>`
...
PiperOrigin-RevId: 491612837
2 years ago
Jon Skeet
e2ea242d64
Pre-emptively suppress target framework EOL warnings
...
We may want to remove .NET 5 support some time in 2023, but there's no rush to do so.
2 years ago
Protobuf Team Bot
726aace07c
[ObjC] Fix a clang tidy warning about const usage and make the FileGenerator const.
...
PiperOrigin-RevId: 491512974
2 years ago
Jorg Brown
0d7f85ca05
Updating changelog
2 years ago
Protobuf Team Bot
ed63a2c7e4
Updating version.json and repo version numbers to: 21.10-rc0
2 years ago
Protobuf Team Bot
afb5a268f1
Remove sometimes-ambiguous use of operator '<<'.
...
PiperOrigin-RevId: 491466927
2 years ago
Protobuf Team Bot
0a979584ee
Auto-generate files after cl/491417852
2 years ago
Protobuf Team Bot
585b41a2dd
Remove _internal_has_XXX APIs and directly check presence (e.g. has_bits, oneof case).
...
PiperOrigin-RevId: 491417852
2 years ago
deannagarcia
7268e2fe6a
Merge pull request #11068 from deannagarcia/21.x
...
Add public modifiers to kotlin code
2 years ago
Deanna Garcia
9a1ef54b47
Allow message name "List" without conflict
...
PiperOrigin-RevId: 491380902
2 years ago
Martijn Vels
d5f759f7a4
Optimize Arena Ctor/Dtor for lazy field
...
LazyField explicitly registers `ArenaDtor` for destructing the lazy Cord contents which is particularly heavily used in extension sets. This is inefficient as it requires an indirect thunk call into the lazy field instance which then itself calls the Cord destructor. We can directly register the Cord for destruction which results in half the cleanup space (Tagged cleanup), and a direct call into the Cord destructor.
PiperOrigin-RevId: 491379222
2 years ago
Theodore Rose
f3873dd6fc
Merge pull request #11039 from yksten/patch-1
...
Update third_party.md to include https://github.com/yksten/ProtobufWrapper
2 years ago
Kenji Abe
7845696b1a
Add more public modifiers
2 years ago
Deanna Garcia
6edfc80428
Cherrypick public modifier
2 years ago
Protobuf Team Bot
903639c328
[ObjC] Put out of range closed enum extension values in unknown fields.
...
For normal fields, closed enums get their out of range values put into unknown
fields, but that wasn't happening for extension fields, this fixes that by
adding the validation during parsing.
Also document on the getExtension API what happens with enums.
Add tests to confirm expected behaviors.
PiperOrigin-RevId: 491356730
2 years ago
Protobuf Team Bot
7a7bdde799
[ObjC] Final const cleanups for generator.
...
PiperOrigin-RevId: 491355456
2 years ago
Protobuf Team Bot
e8a9dcb0df
[ObjC] Move the has bits computation to the ctor.
...
This lets the source generation method become const since it doesn't have to
update any internal state.
PiperOrigin-RevId: 491354897
2 years ago