1 # Copyright © 2018-2019 AT&T Intellectual Property.
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
18 from proto import BluePrintProcessing_pb2 as BluePrintProcessing__pb2
21 class BluePrintProcessingServiceStub(object):
22 # missing associated documentation comment in .proto file
25 def __init__(self, channel):
29 channel: A grpc.Channel.
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,
38 class BluePrintProcessingServiceServicer(object):
39 # missing associated documentation comment in .proto file
42 def process(self, request_iterator, context):
43 # missing associated documentation comment in .proto file
45 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
46 context.set_details('Method not implemented!')
47 raise NotImplementedError('Method not implemented!')
50 def add_BluePrintProcessingServiceServicer_to_server(servicer, server):
51 rpc_method_handlers = {
52 'process': grpc.stream_stream_rpc_method_handler(
54 request_deserializer=BluePrintProcessing__pb2.ExecutionServiceInput.FromString,
55 response_serializer=BluePrintProcessing__pb2.ExecutionServiceOutput.SerializeToString,
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,))