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

from powergate.admin.v1 import admin_pb2 as powergate_dot_admin_dot_v1_dot_admin__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.NewAddress = channel.unary_unary(
                '/powergate.admin.v1.AdminService/NewAddress',
                request_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.NewAddressRequest.SerializeToString,
                response_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.NewAddressResponse.FromString,
                )
        self.Addresses = channel.unary_unary(
                '/powergate.admin.v1.AdminService/Addresses',
                request_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.AddressesRequest.SerializeToString,
                response_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.AddressesResponse.FromString,
                )
        self.SendFil = channel.unary_unary(
                '/powergate.admin.v1.AdminService/SendFil',
                request_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.SendFilRequest.SerializeToString,
                response_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.SendFilResponse.FromString,
                )
        self.CreateUser = channel.unary_unary(
                '/powergate.admin.v1.AdminService/CreateUser',
                request_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.CreateUserRequest.SerializeToString,
                response_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.CreateUserResponse.FromString,
                )
        self.Users = channel.unary_unary(
                '/powergate.admin.v1.AdminService/Users',
                request_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.UsersRequest.SerializeToString,
                response_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.UsersResponse.FromString,
                )
        self.QueuedStorageJobs = channel.unary_unary(
                '/powergate.admin.v1.AdminService/QueuedStorageJobs',
                request_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.QueuedStorageJobsRequest.SerializeToString,
                response_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.QueuedStorageJobsResponse.FromString,
                )
        self.ExecutingStorageJobs = channel.unary_unary(
                '/powergate.admin.v1.AdminService/ExecutingStorageJobs',
                request_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.ExecutingStorageJobsRequest.SerializeToString,
                response_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.ExecutingStorageJobsResponse.FromString,
                )
        self.LatestFinalStorageJobs = channel.unary_unary(
                '/powergate.admin.v1.AdminService/LatestFinalStorageJobs',
                request_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.LatestFinalStorageJobsRequest.SerializeToString,
                response_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.LatestFinalStorageJobsResponse.FromString,
                )
        self.LatestSuccessfulStorageJobs = channel.unary_unary(
                '/powergate.admin.v1.AdminService/LatestSuccessfulStorageJobs',
                request_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.LatestSuccessfulStorageJobsRequest.SerializeToString,
                response_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.LatestSuccessfulStorageJobsResponse.FromString,
                )
        self.StorageJobsSummary = channel.unary_unary(
                '/powergate.admin.v1.AdminService/StorageJobsSummary',
                request_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.StorageJobsSummaryRequest.SerializeToString,
                response_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.StorageJobsSummaryResponse.FromString,
                )
        self.GCStaged = channel.unary_unary(
                '/powergate.admin.v1.AdminService/GCStaged',
                request_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.GCStagedRequest.SerializeToString,
                response_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.GCStagedResponse.FromString,
                )
        self.PinnedCids = channel.unary_unary(
                '/powergate.admin.v1.AdminService/PinnedCids',
                request_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.PinnedCidsRequest.SerializeToString,
                response_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.PinnedCidsResponse.FromString,
                )


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

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

    def Addresses(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 SendFil(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 CreateUser(self, request, context):
        """Users
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

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

    def ExecutingStorageJobs(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 LatestFinalStorageJobs(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 LatestSuccessfulStorageJobs(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 StorageJobsSummary(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 GCStaged(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 PinnedCids(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_AdminServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'NewAddress': grpc.unary_unary_rpc_method_handler(
                    servicer.NewAddress,
                    request_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.NewAddressRequest.FromString,
                    response_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.NewAddressResponse.SerializeToString,
            ),
            'Addresses': grpc.unary_unary_rpc_method_handler(
                    servicer.Addresses,
                    request_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.AddressesRequest.FromString,
                    response_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.AddressesResponse.SerializeToString,
            ),
            'SendFil': grpc.unary_unary_rpc_method_handler(
                    servicer.SendFil,
                    request_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.SendFilRequest.FromString,
                    response_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.SendFilResponse.SerializeToString,
            ),
            'CreateUser': grpc.unary_unary_rpc_method_handler(
                    servicer.CreateUser,
                    request_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.CreateUserRequest.FromString,
                    response_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.CreateUserResponse.SerializeToString,
            ),
            'Users': grpc.unary_unary_rpc_method_handler(
                    servicer.Users,
                    request_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.UsersRequest.FromString,
                    response_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.UsersResponse.SerializeToString,
            ),
            'QueuedStorageJobs': grpc.unary_unary_rpc_method_handler(
                    servicer.QueuedStorageJobs,
                    request_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.QueuedStorageJobsRequest.FromString,
                    response_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.QueuedStorageJobsResponse.SerializeToString,
            ),
            'ExecutingStorageJobs': grpc.unary_unary_rpc_method_handler(
                    servicer.ExecutingStorageJobs,
                    request_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.ExecutingStorageJobsRequest.FromString,
                    response_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.ExecutingStorageJobsResponse.SerializeToString,
            ),
            'LatestFinalStorageJobs': grpc.unary_unary_rpc_method_handler(
                    servicer.LatestFinalStorageJobs,
                    request_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.LatestFinalStorageJobsRequest.FromString,
                    response_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.LatestFinalStorageJobsResponse.SerializeToString,
            ),
            'LatestSuccessfulStorageJobs': grpc.unary_unary_rpc_method_handler(
                    servicer.LatestSuccessfulStorageJobs,
                    request_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.LatestSuccessfulStorageJobsRequest.FromString,
                    response_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.LatestSuccessfulStorageJobsResponse.SerializeToString,
            ),
            'StorageJobsSummary': grpc.unary_unary_rpc_method_handler(
                    servicer.StorageJobsSummary,
                    request_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.StorageJobsSummaryRequest.FromString,
                    response_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.StorageJobsSummaryResponse.SerializeToString,
            ),
            'GCStaged': grpc.unary_unary_rpc_method_handler(
                    servicer.GCStaged,
                    request_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.GCStagedRequest.FromString,
                    response_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.GCStagedResponse.SerializeToString,
            ),
            'PinnedCids': grpc.unary_unary_rpc_method_handler(
                    servicer.PinnedCids,
                    request_deserializer=powergate_dot_admin_dot_v1_dot_admin__pb2.PinnedCidsRequest.FromString,
                    response_serializer=powergate_dot_admin_dot_v1_dot_admin__pb2.PinnedCidsResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'powergate.admin.v1.AdminService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def NewAddress(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, '/powergate.admin.v1.AdminService/NewAddress',
            powergate_dot_admin_dot_v1_dot_admin__pb2.NewAddressRequest.SerializeToString,
            powergate_dot_admin_dot_v1_dot_admin__pb2.NewAddressResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def Addresses(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, '/powergate.admin.v1.AdminService/Addresses',
            powergate_dot_admin_dot_v1_dot_admin__pb2.AddressesRequest.SerializeToString,
            powergate_dot_admin_dot_v1_dot_admin__pb2.AddressesResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def SendFil(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, '/powergate.admin.v1.AdminService/SendFil',
            powergate_dot_admin_dot_v1_dot_admin__pb2.SendFilRequest.SerializeToString,
            powergate_dot_admin_dot_v1_dot_admin__pb2.SendFilResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def CreateUser(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, '/powergate.admin.v1.AdminService/CreateUser',
            powergate_dot_admin_dot_v1_dot_admin__pb2.CreateUserRequest.SerializeToString,
            powergate_dot_admin_dot_v1_dot_admin__pb2.CreateUserResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def Users(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, '/powergate.admin.v1.AdminService/Users',
            powergate_dot_admin_dot_v1_dot_admin__pb2.UsersRequest.SerializeToString,
            powergate_dot_admin_dot_v1_dot_admin__pb2.UsersResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def QueuedStorageJobs(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, '/powergate.admin.v1.AdminService/QueuedStorageJobs',
            powergate_dot_admin_dot_v1_dot_admin__pb2.QueuedStorageJobsRequest.SerializeToString,
            powergate_dot_admin_dot_v1_dot_admin__pb2.QueuedStorageJobsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def ExecutingStorageJobs(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, '/powergate.admin.v1.AdminService/ExecutingStorageJobs',
            powergate_dot_admin_dot_v1_dot_admin__pb2.ExecutingStorageJobsRequest.SerializeToString,
            powergate_dot_admin_dot_v1_dot_admin__pb2.ExecutingStorageJobsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def LatestFinalStorageJobs(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, '/powergate.admin.v1.AdminService/LatestFinalStorageJobs',
            powergate_dot_admin_dot_v1_dot_admin__pb2.LatestFinalStorageJobsRequest.SerializeToString,
            powergate_dot_admin_dot_v1_dot_admin__pb2.LatestFinalStorageJobsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def LatestSuccessfulStorageJobs(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, '/powergate.admin.v1.AdminService/LatestSuccessfulStorageJobs',
            powergate_dot_admin_dot_v1_dot_admin__pb2.LatestSuccessfulStorageJobsRequest.SerializeToString,
            powergate_dot_admin_dot_v1_dot_admin__pb2.LatestSuccessfulStorageJobsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def StorageJobsSummary(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, '/powergate.admin.v1.AdminService/StorageJobsSummary',
            powergate_dot_admin_dot_v1_dot_admin__pb2.StorageJobsSummaryRequest.SerializeToString,
            powergate_dot_admin_dot_v1_dot_admin__pb2.StorageJobsSummaryResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GCStaged(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, '/powergate.admin.v1.AdminService/GCStaged',
            powergate_dot_admin_dot_v1_dot_admin__pb2.GCStagedRequest.SerializeToString,
            powergate_dot_admin_dot_v1_dot_admin__pb2.GCStagedResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def PinnedCids(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, '/powergate.admin.v1.AdminService/PinnedCids',
            powergate_dot_admin_dot_v1_dot_admin__pb2.PinnedCidsRequest.SerializeToString,
            powergate_dot_admin_dot_v1_dot_admin__pb2.PinnedCidsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
