For example, for such Python code, generated by Protobuf:
class MyService(_service.Service):
__metaclass__ = service_reflection.GeneratedServiceType
DESCRIPTOR = _MYSERVICE
class MyService_Stub(MyService):
__metaclass__ = service_reflection.GeneratedServiceStubType
DESCRIPTOR = _MYSERVICE
Will such code, that will be inserted to insertion point by my own plugin,
be a solid slution, that will not break after new Protobuf releases?
class MyService_CustomStub(MyService):
__metaclass__ = my_own.GeneratedServiceStubType
DESCRIPTOR = MyService.DESCRIPTOR
On Wednesday, October 29, 2014 10:31:39 AM UTC+3, Andrew Pashkin wrote:
>
> Hi al!
>
> I'm seeking for way to replace original Protobuf's metaclasses with my own
> ones. What is the best way to do that?
>
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.