merlimat opened a new pull request, #25407:
URL: https://github.com/apache/pulsar/pull/25407
## Summary
Migrate the `pulsar-functions/proto` module from standard Google protobuf to
LightProto, continuing the effort to remove protobuf-java dependency from
Pulsar internals.
- Replace protobuf Gradle plugin with lightproto plugin in `build.gradle.kts`
- Replace `google.protobuf.Empty` with local `Empty` message for gRPC
compatibility (identical wire format)
- Bump LightProto to 0.6.6 (adds `parseFromJson()`/`toJson()` support,
replacing `JsonFormat`)
- Remove `protobuf-java-util` from `runtime-all` (no longer needed since
`JsonFormat` is replaced by native LightProto JSON)
- Adapt all Java sources across `instance`, `runtime`, `worker`, `utils`,
`secrets`, and `localrunner` modules to use LightProto API:
- Mutable objects instead of Builder pattern
- Indexed iteration for repeated fields
- `isX()` boolean getters, `getValue()` for enums
- `copyFrom()` instead of `toBuilder()`
- `parseFromJson()`/`toJson()` instead of `JsonFormat`
- `StreamObserver`-based async gRPC instead of `FutureStub`
### Documentation
- [x] `doc-not-needed`
### Matching PR in forked repository
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]