Public Member Functions | |
def | __init__ (self, service_descriptor) |
def | __init__ (self, service_descriptor) |
def | BuildServiceStub (self, cls) |
def | BuildServiceStub (self, cls) |
Public Attributes | |
cls | |
descriptor | |
Private Member Functions | |
def | _GenerateStubMethod (self, method) |
def | _GenerateStubMethod (self, method) |
def | _StubMethod (self, stub, method_descriptor, rpc_controller, request, callback) |
def | _StubMethod (self, stub, method_descriptor, rpc_controller, request, callback) |
Private Attributes | |
__init__ | |
Constructs a protocol service stub class using a service descriptor. Given a service descriptor, this class constructs a suitable stub class. A stub is just a type-safe wrapper around an RpcChannel which emulates a local implementation of the service. One service stub builder instance constructs exactly one class. It means all instances of that class share the same service stub builder.
Definition at line 230 of file bloaty/third_party/protobuf/python/google/protobuf/service_reflection.py.
def google.protobuf.service_reflection._ServiceStubBuilder.__init__ | ( | self, | |
service_descriptor | |||
) |
Initializes an instance of the service stub class builder. Args: service_descriptor: ServiceDescriptor to use when constructing the stub class.
Definition at line 242 of file bloaty/third_party/protobuf/python/google/protobuf/service_reflection.py.
def google.protobuf.service_reflection._ServiceStubBuilder.__init__ | ( | self, | |
service_descriptor | |||
) |
Initializes an instance of the service stub class builder. Args: service_descriptor: ServiceDescriptor to use when constructing the stub class.
Definition at line 245 of file protobuf/python/google/protobuf/service_reflection.py.
|
private |
Definition at line 265 of file bloaty/third_party/protobuf/python/google/protobuf/service_reflection.py.
|
private |
Definition at line 268 of file protobuf/python/google/protobuf/service_reflection.py.
|
private |
The body of all service methods in the generated stub class. Args: stub: Stub instance. method_descriptor: Descriptor of the invoked method. rpc_controller: Rpc controller to execute the method. request: Request protocol message. callback: A callback to execute when the method finishes. Returns: Response message (in case of blocking call).
Definition at line 269 of file bloaty/third_party/protobuf/python/google/protobuf/service_reflection.py.
|
private |
The body of all service methods in the generated stub class. Args: stub: Stub instance. method_descriptor: Descriptor of the invoked method. rpc_controller: Rpc controller to execute the method. request: Request protocol message. callback: A callback to execute when the method finishes. Returns: Response message (in case of blocking call).
Definition at line 272 of file protobuf/python/google/protobuf/service_reflection.py.
def google.protobuf.service_reflection._ServiceStubBuilder.BuildServiceStub | ( | self, | |
cls | |||
) |
Constructs the stub class. Args: cls: The class that will be constructed.
Definition at line 251 of file bloaty/third_party/protobuf/python/google/protobuf/service_reflection.py.
def google.protobuf.service_reflection._ServiceStubBuilder.BuildServiceStub | ( | self, | |
cls | |||
) |
Constructs the stub class. Args: cls: The class that will be constructed.
Definition at line 254 of file protobuf/python/google/protobuf/service_reflection.py.
|
private |
Definition at line 261 of file bloaty/third_party/protobuf/python/google/protobuf/service_reflection.py.
google.protobuf.service_reflection._ServiceStubBuilder.cls |
Definition at line 260 of file bloaty/third_party/protobuf/python/google/protobuf/service_reflection.py.
google.protobuf.service_reflection._ServiceStubBuilder.descriptor |
Definition at line 249 of file bloaty/third_party/protobuf/python/google/protobuf/service_reflection.py.