Home | History | Annotate | Download | only in protobuf

Lines Matching refs:stub

31 """Contains metaclasses used to create protocol service and service stub
89 it creates the service stub classes.
95 """Creates a message service stub class.
106 # when a service stub is subclassed.
232 """Constructs a protocol service stub class using a service descriptor.
234 Given a service descriptor, this class constructs a suitable stub class.
235 A stub is just a type-safe wrapper around an RpcChannel which emulates a
238 One service stub builder instance constructs exactly one class. It means all
239 instances of that class share the same service stub builder.
243 """Initializes an instance of the service stub class builder.
247 stub class.
252 """Constructs the stub class.
258 def _ServiceStubInit(stub, rpc_channel):
259 stub.rpc_channel = rpc_channel
269 def _StubMethod(self, stub, method_descriptor,
271 """The body of all service methods in the generated stub class.
274 stub: Stub instance.
282 return stub.rpc_channel.CallMethod(