# Copyright (c) 2017-2025 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# fmt: off
# isort: skip_file
# 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 . import topology_manager_write_service_pb2 as com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2

GRPC_GENERATED_VERSION = '1.72.1'
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},'
        + f' but the generated code in com/digitalasset/canton/topology/admin/v0/topology_manager_write_service_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 TopologyManagerWriteServiceStub(object):
    """Missing associated documentation comment in .proto file."""

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

        Args:
            channel: A grpc.Channel.
        """
        self.AuthorizePartyToParticipant = channel.unary_unary(
                '/com.digitalasset.canton.topology.admin.v0.TopologyManagerWriteService/AuthorizePartyToParticipant',
                request_serializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.PartyToParticipantAuthorization.SerializeToString,
                response_deserializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.FromString,
                _registered_method=True)
        self.AuthorizeOwnerToKeyMapping = channel.unary_unary(
                '/com.digitalasset.canton.topology.admin.v0.TopologyManagerWriteService/AuthorizeOwnerToKeyMapping',
                request_serializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.OwnerToKeyMappingAuthorization.SerializeToString,
                response_deserializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.FromString,
                _registered_method=True)
        self.AuthorizeNamespaceDelegation = channel.unary_unary(
                '/com.digitalasset.canton.topology.admin.v0.TopologyManagerWriteService/AuthorizeNamespaceDelegation',
                request_serializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.NamespaceDelegationAuthorization.SerializeToString,
                response_deserializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.FromString,
                _registered_method=True)
        self.AuthorizeIdentifierDelegation = channel.unary_unary(
                '/com.digitalasset.canton.topology.admin.v0.TopologyManagerWriteService/AuthorizeIdentifierDelegation',
                request_serializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.IdentifierDelegationAuthorization.SerializeToString,
                response_deserializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.FromString,
                _registered_method=True)
        self.AuthorizeVettedPackages = channel.unary_unary(
                '/com.digitalasset.canton.topology.admin.v0.TopologyManagerWriteService/AuthorizeVettedPackages',
                request_serializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.VettedPackagesAuthorization.SerializeToString,
                response_deserializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.FromString,
                _registered_method=True)
        self.AuthorizeCheckOnlyPackages = channel.unary_unary(
                '/com.digitalasset.canton.topology.admin.v0.TopologyManagerWriteService/AuthorizeCheckOnlyPackages',
                request_serializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.CheckOnlyPackagesAuthorization.SerializeToString,
                response_deserializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.FromString,
                _registered_method=True)
        self.AuthorizeDomainParametersChange = channel.unary_unary(
                '/com.digitalasset.canton.topology.admin.v0.TopologyManagerWriteService/AuthorizeDomainParametersChange',
                request_serializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.DomainParametersChangeAuthorization.SerializeToString,
                response_deserializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.FromString,
                _registered_method=True)
        self.AuthorizeParticipantDomainState = channel.unary_unary(
                '/com.digitalasset.canton.topology.admin.v0.TopologyManagerWriteService/AuthorizeParticipantDomainState',
                request_serializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.ParticipantDomainStateAuthorization.SerializeToString,
                response_deserializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.FromString,
                _registered_method=True)
        self.AuthorizeMediatorDomainState = channel.unary_unary(
                '/com.digitalasset.canton.topology.admin.v0.TopologyManagerWriteService/AuthorizeMediatorDomainState',
                request_serializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.MediatorDomainStateAuthorization.SerializeToString,
                response_deserializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.FromString,
                _registered_method=True)
        self.AddSignedTopologyTransaction = channel.unary_unary(
                '/com.digitalasset.canton.topology.admin.v0.TopologyManagerWriteService/AddSignedTopologyTransaction',
                request_serializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.SignedTopologyTransactionAddition.SerializeToString,
                response_deserializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AdditionSuccess.FromString,
                _registered_method=True)


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

    def AuthorizePartyToParticipant(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 AuthorizeOwnerToKeyMapping(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 AuthorizeNamespaceDelegation(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 AuthorizeIdentifierDelegation(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 AuthorizeVettedPackages(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 AuthorizeCheckOnlyPackages(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 AuthorizeDomainParametersChange(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 AuthorizeParticipantDomainState(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 AuthorizeMediatorDomainState(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 AddSignedTopologyTransaction(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_TopologyManagerWriteServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'AuthorizePartyToParticipant': grpc.unary_unary_rpc_method_handler(
                    servicer.AuthorizePartyToParticipant,
                    request_deserializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.PartyToParticipantAuthorization.FromString,
                    response_serializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.SerializeToString,
            ),
            'AuthorizeOwnerToKeyMapping': grpc.unary_unary_rpc_method_handler(
                    servicer.AuthorizeOwnerToKeyMapping,
                    request_deserializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.OwnerToKeyMappingAuthorization.FromString,
                    response_serializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.SerializeToString,
            ),
            'AuthorizeNamespaceDelegation': grpc.unary_unary_rpc_method_handler(
                    servicer.AuthorizeNamespaceDelegation,
                    request_deserializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.NamespaceDelegationAuthorization.FromString,
                    response_serializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.SerializeToString,
            ),
            'AuthorizeIdentifierDelegation': grpc.unary_unary_rpc_method_handler(
                    servicer.AuthorizeIdentifierDelegation,
                    request_deserializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.IdentifierDelegationAuthorization.FromString,
                    response_serializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.SerializeToString,
            ),
            'AuthorizeVettedPackages': grpc.unary_unary_rpc_method_handler(
                    servicer.AuthorizeVettedPackages,
                    request_deserializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.VettedPackagesAuthorization.FromString,
                    response_serializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.SerializeToString,
            ),
            'AuthorizeCheckOnlyPackages': grpc.unary_unary_rpc_method_handler(
                    servicer.AuthorizeCheckOnlyPackages,
                    request_deserializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.CheckOnlyPackagesAuthorization.FromString,
                    response_serializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.SerializeToString,
            ),
            'AuthorizeDomainParametersChange': grpc.unary_unary_rpc_method_handler(
                    servicer.AuthorizeDomainParametersChange,
                    request_deserializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.DomainParametersChangeAuthorization.FromString,
                    response_serializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.SerializeToString,
            ),
            'AuthorizeParticipantDomainState': grpc.unary_unary_rpc_method_handler(
                    servicer.AuthorizeParticipantDomainState,
                    request_deserializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.ParticipantDomainStateAuthorization.FromString,
                    response_serializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.SerializeToString,
            ),
            'AuthorizeMediatorDomainState': grpc.unary_unary_rpc_method_handler(
                    servicer.AuthorizeMediatorDomainState,
                    request_deserializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.MediatorDomainStateAuthorization.FromString,
                    response_serializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.SerializeToString,
            ),
            'AddSignedTopologyTransaction': grpc.unary_unary_rpc_method_handler(
                    servicer.AddSignedTopologyTransaction,
                    request_deserializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.SignedTopologyTransactionAddition.FromString,
                    response_serializer=com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AdditionSuccess.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'com.digitalasset.canton.topology.admin.v0.TopologyManagerWriteService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))
    server.add_registered_method_handlers('com.digitalasset.canton.topology.admin.v0.TopologyManagerWriteService', rpc_method_handlers)


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

    @staticmethod
    def AuthorizePartyToParticipant(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,
            '/com.digitalasset.canton.topology.admin.v0.TopologyManagerWriteService/AuthorizePartyToParticipant',
            com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.PartyToParticipantAuthorization.SerializeToString,
            com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def AuthorizeOwnerToKeyMapping(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,
            '/com.digitalasset.canton.topology.admin.v0.TopologyManagerWriteService/AuthorizeOwnerToKeyMapping',
            com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.OwnerToKeyMappingAuthorization.SerializeToString,
            com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def AuthorizeNamespaceDelegation(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,
            '/com.digitalasset.canton.topology.admin.v0.TopologyManagerWriteService/AuthorizeNamespaceDelegation',
            com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.NamespaceDelegationAuthorization.SerializeToString,
            com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def AuthorizeIdentifierDelegation(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,
            '/com.digitalasset.canton.topology.admin.v0.TopologyManagerWriteService/AuthorizeIdentifierDelegation',
            com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.IdentifierDelegationAuthorization.SerializeToString,
            com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def AuthorizeVettedPackages(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,
            '/com.digitalasset.canton.topology.admin.v0.TopologyManagerWriteService/AuthorizeVettedPackages',
            com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.VettedPackagesAuthorization.SerializeToString,
            com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def AuthorizeCheckOnlyPackages(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,
            '/com.digitalasset.canton.topology.admin.v0.TopologyManagerWriteService/AuthorizeCheckOnlyPackages',
            com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.CheckOnlyPackagesAuthorization.SerializeToString,
            com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def AuthorizeDomainParametersChange(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,
            '/com.digitalasset.canton.topology.admin.v0.TopologyManagerWriteService/AuthorizeDomainParametersChange',
            com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.DomainParametersChangeAuthorization.SerializeToString,
            com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def AuthorizeParticipantDomainState(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,
            '/com.digitalasset.canton.topology.admin.v0.TopologyManagerWriteService/AuthorizeParticipantDomainState',
            com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.ParticipantDomainStateAuthorization.SerializeToString,
            com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def AuthorizeMediatorDomainState(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,
            '/com.digitalasset.canton.topology.admin.v0.TopologyManagerWriteService/AuthorizeMediatorDomainState',
            com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.MediatorDomainStateAuthorization.SerializeToString,
            com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AuthorizationSuccess.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def AddSignedTopologyTransaction(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,
            '/com.digitalasset.canton.topology.admin.v0.TopologyManagerWriteService/AddSignedTopologyTransaction',
            com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.SignedTopologyTransactionAddition.SerializeToString,
            com_dot_digitalasset_dot_canton_dot_topology_dot_admin_dot_v0_dot_topology__manager__write__service__pb2.AdditionSuccess.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)
