Changing the name of auto generated api's

23 views
Skip to first unread message

MANIK BHASIN

unread,
Jan 6, 2020, 5:02:54 AM1/6/20
to Protocol Buffers
Hi I am new to proto buff, I have a simple question whether we can change the names of auto generated apis by using some keyword in .proto files? , as the auto generated apis names always start with the service name or with .proto file name.

Leo Hilbert

unread,
Jan 6, 2020, 8:03:50 AM1/6/20
to Protocol Buffers
Hi, a little more information would be helpful.
When you are talking about "Services", you mean GRPC-Services? What programming-language are you using? And by APIs you mean the generated files/classes? 
What do you want your generated classes to be called instead? What I can think of (for java at least) would be "option java_multiple_files = true;"
This will create one Class per Message/Service instead of one for the whole Proto-File.
Reply all
Reply to author
Forward
0 new messages