baidu / baidu/Jprotobuf-rpc-socket

可不可以直接使用proto 里定义的pojo对象,而不定义用@Protobuf 定义的对象?

Open
#86 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
535
Forks
216
PR merge metrics
No merged PRs in 30d

Description

后端用C++ 实现的,所以已经有proto 定义的IDL 对象了; 但是客户端是java,想用jprotobuf来做客户端,但是提示客户端传递的对象必须使用@Protobuf 标注。
如果能都用proto 来定义对象,那么前后端就统一了。

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the Java client serialization path and the validation that requires @Protobuf annotations. Check how proto-defined objects are currently handled, then determine whether those objects can be accepted for communication with the C++ backend. Done means the client can use the existing proto-defined objects without duplicating annotated classes and remains interoperable with the backend.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.