# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc

import servicesCloudConfig_pb2 as servicesCloudConfig__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.getProductType = channel.unary_unary(
                '/servicesCloudConfig.servicesCloudConfigService/getProductType',
                request_serializer=servicesCloudConfig__pb2.ProductTypeRequest.SerializeToString,
                response_deserializer=servicesCloudConfig__pb2.ProductTypeResponse.FromString,
                )
        self.getPlansService = channel.unary_unary(
                '/servicesCloudConfig.servicesCloudConfigService/getPlansService',
                request_serializer=servicesCloudConfig__pb2.PlansServiceRequest.SerializeToString,
                response_deserializer=servicesCloudConfig__pb2.PlansServiceResponse.FromString,
                )
        self.getServicesAllContracted = channel.unary_unary(
                '/servicesCloudConfig.servicesCloudConfigService/getServicesAllContracted',
                request_serializer=servicesCloudConfig__pb2.ServicesAllContractedRequest.SerializeToString,
                response_deserializer=servicesCloudConfig__pb2.ServicesContractedResponse.FromString,
                )
        self.getIpServiceById = channel.unary_unary(
                '/servicesCloudConfig.servicesCloudConfigService/getIpServiceById',
                request_serializer=servicesCloudConfig__pb2.IpServiceByIdRequest.SerializeToString,
                response_deserializer=servicesCloudConfig__pb2.IpServiceByIdResponse.FromString,
                )
        self.getServicesCatalog = channel.unary_unary(
                '/servicesCloudConfig.servicesCloudConfigService/getServicesCatalog',
                request_serializer=servicesCloudConfig__pb2.ServicesByProductTypeRequest.SerializeToString,
                response_deserializer=servicesCloudConfig__pb2.ServicesByProductTypeResponse.FromString,
                )


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

    def getProductType(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def getPlansService(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def getServicesAllContracted(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def getIpServiceById(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def getServicesCatalog(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')


def add_servicesCloudConfigServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'getProductType': grpc.unary_unary_rpc_method_handler(
                    servicer.getProductType,
                    request_deserializer=servicesCloudConfig__pb2.ProductTypeRequest.FromString,
                    response_serializer=servicesCloudConfig__pb2.ProductTypeResponse.SerializeToString,
            ),
            'getPlansService': grpc.unary_unary_rpc_method_handler(
                    servicer.getPlansService,
                    request_deserializer=servicesCloudConfig__pb2.PlansServiceRequest.FromString,
                    response_serializer=servicesCloudConfig__pb2.PlansServiceResponse.SerializeToString,
            ),
            'getServicesAllContracted': grpc.unary_unary_rpc_method_handler(
                    servicer.getServicesAllContracted,
                    request_deserializer=servicesCloudConfig__pb2.ServicesAllContractedRequest.FromString,
                    response_serializer=servicesCloudConfig__pb2.ServicesContractedResponse.SerializeToString,
            ),
            'getIpServiceById': grpc.unary_unary_rpc_method_handler(
                    servicer.getIpServiceById,
                    request_deserializer=servicesCloudConfig__pb2.IpServiceByIdRequest.FromString,
                    response_serializer=servicesCloudConfig__pb2.IpServiceByIdResponse.SerializeToString,
            ),
            'getServicesCatalog': grpc.unary_unary_rpc_method_handler(
                    servicer.getServicesCatalog,
                    request_deserializer=servicesCloudConfig__pb2.ServicesByProductTypeRequest.FromString,
                    response_serializer=servicesCloudConfig__pb2.ServicesByProductTypeResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'servicesCloudConfig.servicesCloudConfigService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def getProductType(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, '/servicesCloudConfig.servicesCloudConfigService/getProductType',
            servicesCloudConfig__pb2.ProductTypeRequest.SerializeToString,
            servicesCloudConfig__pb2.ProductTypeResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def getPlansService(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, '/servicesCloudConfig.servicesCloudConfigService/getPlansService',
            servicesCloudConfig__pb2.PlansServiceRequest.SerializeToString,
            servicesCloudConfig__pb2.PlansServiceResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def getServicesAllContracted(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, '/servicesCloudConfig.servicesCloudConfigService/getServicesAllContracted',
            servicesCloudConfig__pb2.ServicesAllContractedRequest.SerializeToString,
            servicesCloudConfig__pb2.ServicesContractedResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def getIpServiceById(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, '/servicesCloudConfig.servicesCloudConfigService/getIpServiceById',
            servicesCloudConfig__pb2.IpServiceByIdRequest.SerializeToString,
            servicesCloudConfig__pb2.IpServiceByIdResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def getServicesCatalog(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, '/servicesCloudConfig.servicesCloudConfigService/getServicesCatalog',
            servicesCloudConfig__pb2.ServicesByProductTypeRequest.SerializeToString,
            servicesCloudConfig__pb2.ServicesByProductTypeResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
