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

from app4_sdk.proto import plugin_pb2 as plugin__pb2
import registry_pb2 as registry__pb2

GRPC_GENERATED_VERSION = '1.76.0'
GRPC_VERSION = grpc.__version__
_version_not_supported = False

try:
    from grpc._utilities import first_version_is_lower
    _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
except ImportError:
    _version_not_supported = True

if _version_not_supported:
    raise RuntimeError(
        f'The grpc package installed is at version {GRPC_VERSION},'
        + ' but the generated code in registry_pb2_grpc.py depends on'
        + f' grpcio>={GRPC_GENERATED_VERSION}.'
        + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
        + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
    )


class PluginRegistryServiceStub(object):
    """PluginRegistryService - Central service for plugin version management
    """

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

        Args:
            channel: A grpc.Channel.
        """
        self.Register = channel.unary_unary(
                '/app4.registry.PluginRegistryService/Register',
                request_serializer=registry__pb2.RegisterRequest.SerializeToString,
                response_deserializer=registry__pb2.RegisterResponse.FromString,
                _registered_method=True)
        self.Unregister = channel.unary_unary(
                '/app4.registry.PluginRegistryService/Unregister',
                request_serializer=registry__pb2.UnregisterRequest.SerializeToString,
                response_deserializer=plugin__pb2.Empty.FromString,
                _registered_method=True)
        self.Heartbeat = channel.unary_unary(
                '/app4.registry.PluginRegistryService/Heartbeat',
                request_serializer=registry__pb2.HeartbeatRequest.SerializeToString,
                response_deserializer=registry__pb2.HeartbeatResponse.FromString,
                _registered_method=True)
        self.ResolveVersion = channel.unary_unary(
                '/app4.registry.PluginRegistryService/ResolveVersion',
                request_serializer=registry__pb2.ResolveRequest.SerializeToString,
                response_deserializer=registry__pb2.ResolveResponse.FromString,
                _registered_method=True)
        self.ListVersions = channel.unary_unary(
                '/app4.registry.PluginRegistryService/ListVersions',
                request_serializer=registry__pb2.ListVersionsRequest.SerializeToString,
                response_deserializer=registry__pb2.ListVersionsResponse.FromString,
                _registered_method=True)
        self.Subscribe = channel.unary_stream(
                '/app4.registry.PluginRegistryService/Subscribe',
                request_serializer=registry__pb2.SubscribeRequest.SerializeToString,
                response_deserializer=registry__pb2.RegistryEvent.FromString,
                _registered_method=True)
        self.Health = channel.unary_unary(
                '/app4.registry.PluginRegistryService/Health',
                request_serializer=plugin__pb2.Empty.SerializeToString,
                response_deserializer=registry__pb2.RegistryHealthResponse.FromString,
                _registered_method=True)
        self.ListAllPlugins = channel.unary_unary(
                '/app4.registry.PluginRegistryService/ListAllPlugins',
                request_serializer=plugin__pb2.Empty.SerializeToString,
                response_deserializer=registry__pb2.PluginList.FromString,
                _registered_method=True)
        self.DeprecateVersion = channel.unary_unary(
                '/app4.registry.PluginRegistryService/DeprecateVersion',
                request_serializer=registry__pb2.DeprecateVersionRequest.SerializeToString,
                response_deserializer=registry__pb2.DeprecateVersionResponse.FromString,
                _registered_method=True)
        self.RemoveVersion = channel.unary_unary(
                '/app4.registry.PluginRegistryService/RemoveVersion',
                request_serializer=registry__pb2.RemoveVersionRequest.SerializeToString,
                response_deserializer=registry__pb2.RemoveVersionResponse.FromString,
                _registered_method=True)
        self.StoreProviderConfig = channel.unary_unary(
                '/app4.registry.PluginRegistryService/StoreProviderConfig',
                request_serializer=registry__pb2.StoreProviderConfigRequest.SerializeToString,
                response_deserializer=registry__pb2.StoreProviderConfigResponse.FromString,
                _registered_method=True)
        self.GetProviderConfig = channel.unary_unary(
                '/app4.registry.PluginRegistryService/GetProviderConfig',
                request_serializer=registry__pb2.GetProviderConfigRequest.SerializeToString,
                response_deserializer=registry__pb2.GetProviderConfigResponse.FromString,
                _registered_method=True)
        self.DeleteProviderConfig = channel.unary_unary(
                '/app4.registry.PluginRegistryService/DeleteProviderConfig',
                request_serializer=registry__pb2.DeleteProviderConfigRequest.SerializeToString,
                response_deserializer=plugin__pb2.Empty.FromString,
                _registered_method=True)
        self.ListProviderConfigs = channel.unary_unary(
                '/app4.registry.PluginRegistryService/ListProviderConfigs',
                request_serializer=registry__pb2.ListProviderConfigsRequest.SerializeToString,
                response_deserializer=registry__pb2.ListProviderConfigsResponse.FromString,
                _registered_method=True)
        self.SubscribeProviderConfigs = channel.unary_stream(
                '/app4.registry.PluginRegistryService/SubscribeProviderConfigs',
                request_serializer=registry__pb2.SubscribeProviderConfigsRequest.SerializeToString,
                response_deserializer=registry__pb2.ProviderConfigEvent.FromString,
                _registered_method=True)
        self.NotifyConnect = channel.unary_unary(
                '/app4.registry.PluginRegistryService/NotifyConnect',
                request_serializer=registry__pb2.ConnectionEvent.SerializeToString,
                response_deserializer=plugin__pb2.Empty.FromString,
                _registered_method=True)
        self.NotifyDisconnect = channel.unary_unary(
                '/app4.registry.PluginRegistryService/NotifyDisconnect',
                request_serializer=registry__pb2.ConnectionEvent.SerializeToString,
                response_deserializer=plugin__pb2.Empty.FromString,
                _registered_method=True)
        self.ListConnections = channel.unary_unary(
                '/app4.registry.PluginRegistryService/ListConnections',
                request_serializer=registry__pb2.ListConnectionsRequest.SerializeToString,
                response_deserializer=registry__pb2.ListConnectionsResponse.FromString,
                _registered_method=True)


class PluginRegistryServiceServicer(object):
    """PluginRegistryService - Central service for plugin version management
    """

    def Register(self, request, context):
        """Plugin registration (called by plugin instances on startup)
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def Unregister(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 Heartbeat(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 ResolveVersion(self, request, context):
        """Version resolution (called by go-run instances)
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def ListVersions(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 Subscribe(self, request, context):
        """Real-time updates
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def Health(self, request, context):
        """Admin/health operations
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def ListAllPlugins(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 DeprecateVersion(self, request, context):
        """Version management
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def RemoveVersion(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 StoreProviderConfig(self, request, context):
        """Provider config storage (shared state for multi-instance deployments)
        go-run stores configs here on startup, plugins fetch on cache miss
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def GetProviderConfig(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 DeleteProviderConfig(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 ListProviderConfigs(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 SubscribeProviderConfigs(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 NotifyConnect(self, request, context):
        """App connection tracking (called by plugins when apps connect/disconnect)
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def NotifyDisconnect(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 ListConnections(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_PluginRegistryServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'Register': grpc.unary_unary_rpc_method_handler(
                    servicer.Register,
                    request_deserializer=registry__pb2.RegisterRequest.FromString,
                    response_serializer=registry__pb2.RegisterResponse.SerializeToString,
            ),
            'Unregister': grpc.unary_unary_rpc_method_handler(
                    servicer.Unregister,
                    request_deserializer=registry__pb2.UnregisterRequest.FromString,
                    response_serializer=plugin__pb2.Empty.SerializeToString,
            ),
            'Heartbeat': grpc.unary_unary_rpc_method_handler(
                    servicer.Heartbeat,
                    request_deserializer=registry__pb2.HeartbeatRequest.FromString,
                    response_serializer=registry__pb2.HeartbeatResponse.SerializeToString,
            ),
            'ResolveVersion': grpc.unary_unary_rpc_method_handler(
                    servicer.ResolveVersion,
                    request_deserializer=registry__pb2.ResolveRequest.FromString,
                    response_serializer=registry__pb2.ResolveResponse.SerializeToString,
            ),
            'ListVersions': grpc.unary_unary_rpc_method_handler(
                    servicer.ListVersions,
                    request_deserializer=registry__pb2.ListVersionsRequest.FromString,
                    response_serializer=registry__pb2.ListVersionsResponse.SerializeToString,
            ),
            'Subscribe': grpc.unary_stream_rpc_method_handler(
                    servicer.Subscribe,
                    request_deserializer=registry__pb2.SubscribeRequest.FromString,
                    response_serializer=registry__pb2.RegistryEvent.SerializeToString,
            ),
            'Health': grpc.unary_unary_rpc_method_handler(
                    servicer.Health,
                    request_deserializer=plugin__pb2.Empty.FromString,
                    response_serializer=registry__pb2.RegistryHealthResponse.SerializeToString,
            ),
            'ListAllPlugins': grpc.unary_unary_rpc_method_handler(
                    servicer.ListAllPlugins,
                    request_deserializer=plugin__pb2.Empty.FromString,
                    response_serializer=registry__pb2.PluginList.SerializeToString,
            ),
            'DeprecateVersion': grpc.unary_unary_rpc_method_handler(
                    servicer.DeprecateVersion,
                    request_deserializer=registry__pb2.DeprecateVersionRequest.FromString,
                    response_serializer=registry__pb2.DeprecateVersionResponse.SerializeToString,
            ),
            'RemoveVersion': grpc.unary_unary_rpc_method_handler(
                    servicer.RemoveVersion,
                    request_deserializer=registry__pb2.RemoveVersionRequest.FromString,
                    response_serializer=registry__pb2.RemoveVersionResponse.SerializeToString,
            ),
            'StoreProviderConfig': grpc.unary_unary_rpc_method_handler(
                    servicer.StoreProviderConfig,
                    request_deserializer=registry__pb2.StoreProviderConfigRequest.FromString,
                    response_serializer=registry__pb2.StoreProviderConfigResponse.SerializeToString,
            ),
            'GetProviderConfig': grpc.unary_unary_rpc_method_handler(
                    servicer.GetProviderConfig,
                    request_deserializer=registry__pb2.GetProviderConfigRequest.FromString,
                    response_serializer=registry__pb2.GetProviderConfigResponse.SerializeToString,
            ),
            'DeleteProviderConfig': grpc.unary_unary_rpc_method_handler(
                    servicer.DeleteProviderConfig,
                    request_deserializer=registry__pb2.DeleteProviderConfigRequest.FromString,
                    response_serializer=plugin__pb2.Empty.SerializeToString,
            ),
            'ListProviderConfigs': grpc.unary_unary_rpc_method_handler(
                    servicer.ListProviderConfigs,
                    request_deserializer=registry__pb2.ListProviderConfigsRequest.FromString,
                    response_serializer=registry__pb2.ListProviderConfigsResponse.SerializeToString,
            ),
            'SubscribeProviderConfigs': grpc.unary_stream_rpc_method_handler(
                    servicer.SubscribeProviderConfigs,
                    request_deserializer=registry__pb2.SubscribeProviderConfigsRequest.FromString,
                    response_serializer=registry__pb2.ProviderConfigEvent.SerializeToString,
            ),
            'NotifyConnect': grpc.unary_unary_rpc_method_handler(
                    servicer.NotifyConnect,
                    request_deserializer=registry__pb2.ConnectionEvent.FromString,
                    response_serializer=plugin__pb2.Empty.SerializeToString,
            ),
            'NotifyDisconnect': grpc.unary_unary_rpc_method_handler(
                    servicer.NotifyDisconnect,
                    request_deserializer=registry__pb2.ConnectionEvent.FromString,
                    response_serializer=plugin__pb2.Empty.SerializeToString,
            ),
            'ListConnections': grpc.unary_unary_rpc_method_handler(
                    servicer.ListConnections,
                    request_deserializer=registry__pb2.ListConnectionsRequest.FromString,
                    response_serializer=registry__pb2.ListConnectionsResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'app4.registry.PluginRegistryService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))
    server.add_registered_method_handlers('app4.registry.PluginRegistryService', rpc_method_handlers)


 # This class is part of an EXPERIMENTAL API.
class PluginRegistryService(object):
    """PluginRegistryService - Central service for plugin version management
    """

    @staticmethod
    def Register(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,
            '/app4.registry.PluginRegistryService/Register',
            registry__pb2.RegisterRequest.SerializeToString,
            registry__pb2.RegisterResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def Unregister(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,
            '/app4.registry.PluginRegistryService/Unregister',
            registry__pb2.UnregisterRequest.SerializeToString,
            plugin__pb2.Empty.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def Heartbeat(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,
            '/app4.registry.PluginRegistryService/Heartbeat',
            registry__pb2.HeartbeatRequest.SerializeToString,
            registry__pb2.HeartbeatResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def ResolveVersion(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,
            '/app4.registry.PluginRegistryService/ResolveVersion',
            registry__pb2.ResolveRequest.SerializeToString,
            registry__pb2.ResolveResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def ListVersions(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,
            '/app4.registry.PluginRegistryService/ListVersions',
            registry__pb2.ListVersionsRequest.SerializeToString,
            registry__pb2.ListVersionsResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def Subscribe(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_stream(
            request,
            target,
            '/app4.registry.PluginRegistryService/Subscribe',
            registry__pb2.SubscribeRequest.SerializeToString,
            registry__pb2.RegistryEvent.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def Health(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,
            '/app4.registry.PluginRegistryService/Health',
            plugin__pb2.Empty.SerializeToString,
            registry__pb2.RegistryHealthResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def ListAllPlugins(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,
            '/app4.registry.PluginRegistryService/ListAllPlugins',
            plugin__pb2.Empty.SerializeToString,
            registry__pb2.PluginList.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def DeprecateVersion(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,
            '/app4.registry.PluginRegistryService/DeprecateVersion',
            registry__pb2.DeprecateVersionRequest.SerializeToString,
            registry__pb2.DeprecateVersionResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def RemoveVersion(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,
            '/app4.registry.PluginRegistryService/RemoveVersion',
            registry__pb2.RemoveVersionRequest.SerializeToString,
            registry__pb2.RemoveVersionResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def StoreProviderConfig(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,
            '/app4.registry.PluginRegistryService/StoreProviderConfig',
            registry__pb2.StoreProviderConfigRequest.SerializeToString,
            registry__pb2.StoreProviderConfigResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def GetProviderConfig(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,
            '/app4.registry.PluginRegistryService/GetProviderConfig',
            registry__pb2.GetProviderConfigRequest.SerializeToString,
            registry__pb2.GetProviderConfigResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def DeleteProviderConfig(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,
            '/app4.registry.PluginRegistryService/DeleteProviderConfig',
            registry__pb2.DeleteProviderConfigRequest.SerializeToString,
            plugin__pb2.Empty.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def ListProviderConfigs(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,
            '/app4.registry.PluginRegistryService/ListProviderConfigs',
            registry__pb2.ListProviderConfigsRequest.SerializeToString,
            registry__pb2.ListProviderConfigsResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def SubscribeProviderConfigs(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_stream(
            request,
            target,
            '/app4.registry.PluginRegistryService/SubscribeProviderConfigs',
            registry__pb2.SubscribeProviderConfigsRequest.SerializeToString,
            registry__pb2.ProviderConfigEvent.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def NotifyConnect(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,
            '/app4.registry.PluginRegistryService/NotifyConnect',
            registry__pb2.ConnectionEvent.SerializeToString,
            plugin__pb2.Empty.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def NotifyDisconnect(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,
            '/app4.registry.PluginRegistryService/NotifyDisconnect',
            registry__pb2.ConnectionEvent.SerializeToString,
            plugin__pb2.Empty.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def ListConnections(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,
            '/app4.registry.PluginRegistryService/ListConnections',
            registry__pb2.ListConnectionsRequest.SerializeToString,
            registry__pb2.ListConnectionsResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)
