2 """Client and server classes corresponding to protobuf-defined services."""
5 import hellostreamingworld_pb2
as hellostreamingworld__pb2
9 """The greeting service definition.
16 channel: A grpc.Channel.
19 '/hellostreamingworld.MultiGreeter/sayHello',
20 request_serializer=hellostreamingworld__pb2.HelloRequest.SerializeToString,
21 response_deserializer=hellostreamingworld__pb2.HelloReply.FromString,
26 """The greeting service definition.
30 """Sends multiple greetings
32 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
33 context.set_details(
'Method not implemented!')
34 raise NotImplementedError(
'Method not implemented!')
38 rpc_method_handlers = {
41 request_deserializer=hellostreamingworld__pb2.HelloRequest.FromString,
42 response_serializer=hellostreamingworld__pb2.HelloReply.SerializeToString,
46 'hellostreamingworld.MultiGreeter', rpc_method_handlers)
47 server.add_generic_rpc_handlers((generic_handler,))
52 """The greeting service definition.
59 channel_credentials=
None,
60 call_credentials=
None,
66 return grpc.experimental.unary_stream(request, target,
'/hellostreamingworld.MultiGreeter/sayHello',
67 hellostreamingworld__pb2.HelloRequest.SerializeToString,
68 hellostreamingworld__pb2.HelloReply.FromString,
69 options, channel_credentials,
70 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)