googleapis / googleapis/google-cloud-java
[sdk-platform-java] Provide .proto files with Editions Syntax and .class files compatible with protobuf-java v4
- Langage dominant
- Java
- Étoiles
- 2.1k
- Forks
- 1.2k
- Merge moyen
- 1 j 23 h
- PR mergées (30 j)
- 154
Description
**Is your feature request related to a problem? Please describe.**
It is currently not possible to fully use [Protobuf Editions](https://protobuf.dev/editions/) in most of my company's protobuf definitions, because the dependency com.google.api.grpc:proto-google-common-protos is not provided in a Protobuf 2023 version. We depend on types like google.type.Date almost everywhere.
Transcompiling our own .proto-Files leads to Java code that is dependent on com.google.protobuf:protobuf-java in v4, but the precompiled classes in com.google.api.grpc:proto-google-common-protos require v3 and there are binary incompatible changes between the two. It is therefore not possible to use com.google.api.grpc:proto-google-common-protos as before.
**Describe the solution you'd like**
A new version of the library is published that contains .proto files in Protobuf 2023 syntax and .class files compatible with com.google.protobuf:protobuf-java v4.x.y
**Describe alternatives you've considered**
If no new version of the library is provided by google itself, we'd have to resort to distributing our own company-internal fork of the library that contains the updated .proto files (optional) and .class files precompiled with protoc v4.
Since the [Java-Runtime v3 reaches end of support within a year](https://protobuf.dev/support/version-support/#java) and our company (and I imagine other companies as well) cannot switch all or protobuf over night, this cannot remain unresolved for long.
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.