Service passing

19 views
Skip to first unread message

Rony Kositsky

unread,
May 27, 2020, 1:39:57 AM5/27/20
to Protocol Buffers
Hi,

Suppose I have a class and it's base class. I'm writing the protobuf protocol to use their methods.

class Base{
}


class Foo:Base{
}


They share some functionality, is there a way to avoid rewriting code by passing the service?
For example:

service BaseProto{
   rpc
SomeFunction()
}

service
FooProto{
   
**Passing the service here instead of rewriting SomeFunction()
}


Reply all
Reply to author
Forward
0 new messages