<filename>Projects/grpc-helloworld/calculation-inpython/src/protos/generated/calculations_pb2_grpc.py
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc

import calculations_pb2 as calculations__pb2


class CalculationServiceStub(object):
    """Missing associated documentation comment in .proto file."""

    def __init__(self, channel):
        """Constructor.

        Args:
            channel: A grpc.Channel.
        """
        self.AddNumbers = channel.unary_unary(
                '/calculations.CalculationService/AddNumbers',
                request_serializer=calculations__pb2.AddRequest.SerializeToString,
                response_deserializer=calculations__pb2.AddResponse.FromString,
                )


class CalculationServiceServicer(object):
    """Missing associated documentation comment in .proto file."""

    def AddNumbers(self, request, context):
        """Unary API
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')


def add_CalculationServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'AddNumbers': grpc.unary_unary_rpc_method_handler(
                    servicer.AddNumbers,
                    request_deserializer=calculations__pb2.AddRequest.FromString,
                    response_serializer=calculations__pb2.AddResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'calculations.CalculationService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


 # This class is part of an EXPERIMENTAL API.
class CalculationService(object):
    """Missing associated documentation comment in .proto file."""

    @staticmethod
    def AddNumbers(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/calculations.CalculationService/AddNumbers',
            calculations__pb2.AddRequest.SerializeToString,
            calculations__pb2.AddResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
