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

from grebble_flow.grpc.generated.internal.v1 import app_pb2 as grebble__flow_dot_grpc_dot_generated_dot_internal_dot_v1_dot_app__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.AppInfo = channel.unary_unary(
                '/grebbleFlow.v1.ExternalApp/AppInfo',
                request_serializer=grebble__flow_dot_grpc_dot_generated_dot_internal_dot_v1_dot_app__pb2.AppExternalInfoRequest.SerializeToString,
                response_deserializer=grebble__flow_dot_grpc_dot_generated_dot_internal_dot_v1_dot_app__pb2.AppInfoExternalResponse.FromString,
                )


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

    def AppInfo(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_ExternalAppServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'AppInfo': grpc.unary_unary_rpc_method_handler(
                    servicer.AppInfo,
                    request_deserializer=grebble__flow_dot_grpc_dot_generated_dot_internal_dot_v1_dot_app__pb2.AppExternalInfoRequest.FromString,
                    response_serializer=grebble__flow_dot_grpc_dot_generated_dot_internal_dot_v1_dot_app__pb2.AppInfoExternalResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'grebbleFlow.v1.ExternalApp', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def AppInfo(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, '/grebbleFlow.v1.ExternalApp/AppInfo',
            grebble__flow_dot_grpc_dot_generated_dot_internal_dot_v1_dot_app__pb2.AppExternalInfoRequest.SerializeToString,
            grebble__flow_dot_grpc_dot_generated_dot_internal_dot_v1_dot_app__pb2.AppInfoExternalResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
