Add bi-directional GRPC python executor.
[ccsdk/cds.git] / ms / py-executor / blueprints_grpc / proto / BluePrintProcessing_pb2_grpc.py
1 #  Copyright © 2018-2019 AT&T Intellectual Property.
2 #
3 #  Licensed under the Apache License, Version 2.0 (the "License");
4 #  you may not use this file except in compliance with the License.
5 #  You may obtain a copy of the License at
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #  Unless required by applicable law or agreed to in writing, software
10 #  distributed under the License is distributed on an "AS IS" BASIS,
11 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #  See the License for the specific language governing permissions and
13 #  limitations under the License.
14
15 # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
16 import grpc
17
18 from blueprints_grpc.proto import BluePrintProcessing_pb2 as BluePrintProcessing__pb2
19
20
21 class BluePrintProcessingServiceStub(object):
22   # missing associated documentation comment in .proto file
23   pass
24
25   def __init__(self, channel):
26     """Constructor.
27
28     Args:
29       channel: A grpc.Channel.
30     """
31     self.process = channel.stream_stream(
32         '/org.onap.ccsdk.cds.controllerblueprints.processing.api.BluePrintProcessingService/process',
33         request_serializer=BluePrintProcessing__pb2.ExecutionServiceInput.SerializeToString,
34         response_deserializer=BluePrintProcessing__pb2.ExecutionServiceOutput.FromString,
35         )
36
37
38 class BluePrintProcessingServiceServicer(object):
39   # missing associated documentation comment in .proto file
40   pass
41
42   def process(self, request_iterator, context):
43     # missing associated documentation comment in .proto file
44     pass
45     context.set_code(grpc.StatusCode.UNIMPLEMENTED)
46     context.set_details('Method not implemented!')
47     raise NotImplementedError('Method not implemented!')
48
49
50 def add_BluePrintProcessingServiceServicer_to_server(servicer, server):
51   rpc_method_handlers = {
52       'process': grpc.stream_stream_rpc_method_handler(
53           servicer.process,
54           request_deserializer=BluePrintProcessing__pb2.ExecutionServiceInput.FromString,
55           response_serializer=BluePrintProcessing__pb2.ExecutionServiceOutput.SerializeToString,
56       ),
57   }
58   generic_handler = grpc.method_handlers_generic_handler(
59       'org.onap.ccsdk.cds.controllerblueprints.processing.api.BluePrintProcessingService', rpc_method_handlers)
60   server.add_generic_rpc_handlers((generic_handler,))