@canton-network/core-ledger-proto 0.14.0 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../../src/_proto/com/digitalasset/canton/protocol/v30/topology.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies\n// @generated from protobuf file \"com/digitalasset/canton/protocol/v30/topology.proto\" (package \"com.digitalasset.canton.protocol.v30\", syntax proto3)\n// tslint:disable\n//\n// Copyright (c) 2025 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n//\nimport { WireType } from '@protobuf-ts/runtime'\nimport type { BinaryWriteOptions } from '@protobuf-ts/runtime'\nimport type { IBinaryWriter } from '@protobuf-ts/runtime'\nimport type { BinaryReadOptions } from '@protobuf-ts/runtime'\nimport type { IBinaryReader } from '@protobuf-ts/runtime'\nimport { UnknownFieldHandler } from '@protobuf-ts/runtime'\nimport type { PartialMessage } from '@protobuf-ts/runtime'\nimport { reflectionMergePartial } from '@protobuf-ts/runtime'\nimport { MessageType } from '@protobuf-ts/runtime'\nimport { Signature } from '../../crypto/v30/crypto.js'\nimport { DynamicSequencingParameters } from './sequencing_parameters.js'\nimport { DynamicSynchronizerParameters } from './synchronizer_parameters.js'\nimport { Timestamp } from '../../../../../google/protobuf/timestamp.js'\nimport { ParticipantSynchronizerLimits } from './synchronizer_parameters.js'\nimport { PublicKey } from '../../crypto/v30/crypto.js'\nimport { SigningPublicKey } from '../../crypto/v30/crypto.js'\n/**\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.Enums\n */\nexport interface Enums {}\n/**\n * @generated from protobuf enum com.digitalasset.canton.protocol.v30.Enums.TopologyChangeOp\n */\nexport enum Enums_TopologyChangeOp {\n /**\n * @generated from protobuf enum value: TOPOLOGY_CHANGE_OP_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * Adds a new or replaces an existing mapping\n *\n * @generated from protobuf enum value: TOPOLOGY_CHANGE_OP_ADD_REPLACE = 1;\n */\n ADD_REPLACE = 1,\n /**\n * Remove an existing mapping\n *\n * @generated from protobuf enum value: TOPOLOGY_CHANGE_OP_REMOVE = 2;\n */\n REMOVE = 2,\n}\n/**\n * enum indicating the participant permission level\n * Regardless of the ParticipantPermission level, all participants can submit a reassignment.\n *\n * @generated from protobuf enum com.digitalasset.canton.protocol.v30.Enums.ParticipantPermission\n */\nexport enum Enums_ParticipantPermission {\n /**\n * @generated from protobuf enum value: PARTICIPANT_PERMISSION_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * participant is active, can submit transactions and reassignments\n *\n * @generated from protobuf enum value: PARTICIPANT_PERMISSION_SUBMISSION = 1;\n */\n SUBMISSION = 1,\n /**\n * participant is passive, can only confirm transactions and submit reassignments\n *\n * @generated from protobuf enum value: PARTICIPANT_PERMISSION_CONFIRMATION = 2;\n */\n CONFIRMATION = 2,\n /**\n * participant is passive, can only observe transactions and submit reassignments\n *\n * @generated from protobuf enum value: PARTICIPANT_PERMISSION_OBSERVATION = 3;\n */\n OBSERVATION = 3,\n}\n/**\n * @generated from protobuf enum com.digitalasset.canton.protocol.v30.Enums.TopologyMappingCode\n */\nexport enum Enums_TopologyMappingCode {\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_NAMESPACE_DELEGATION = 1;\n */\n NAMESPACE_DELEGATION = 1,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_DECENTRALIZED_NAMESPACE_DEFINITION = 3;\n */\n DECENTRALIZED_NAMESPACE_DEFINITION = 3,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_OWNER_TO_KEY_MAPPING = 4;\n */\n OWNER_TO_KEY_MAPPING = 4,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_SYNCHRONIZER_TRUST_CERTIFICATE = 5;\n */\n SYNCHRONIZER_TRUST_CERTIFICATE = 5,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_PARTICIPANT_PERMISSION = 6;\n */\n PARTICIPANT_PERMISSION = 6,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_PARTY_HOSTING_LIMITS = 7;\n */\n PARTY_HOSTING_LIMITS = 7,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_VETTED_PACKAGES = 8;\n */\n VETTED_PACKAGES = 8,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_PARTY_TO_PARTICIPANT = 9;\n */\n PARTY_TO_PARTICIPANT = 9,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_SYNCHRONIZER_PARAMETERS_STATE = 11;\n */\n SYNCHRONIZER_PARAMETERS_STATE = 11,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_MEDIATOR_SYNCHRONIZER_STATE = 12;\n */\n MEDIATOR_SYNCHRONIZER_STATE = 12,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_SEQUENCER_SYNCHRONIZER_STATE = 13;\n */\n SEQUENCER_SYNCHRONIZER_STATE = 13,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_PURGE_TOPOLOGY_TXS = 15;\n */\n PURGE_TOPOLOGY_TXS = 15,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_SEQUENCING_DYNAMIC_PARAMETERS_STATE = 17;\n */\n SEQUENCING_DYNAMIC_PARAMETERS_STATE = 17,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_PARTY_TO_KEY_MAPPING = 18;\n */\n PARTY_TO_KEY_MAPPING = 18,\n}\n/**\n * [start NamespaceDelegation definition]\n * namespace delegation (equivalent to X509v3 CA root or intermediate CAs)\n * if is_root_delegation==false, the target key may sign all mappings requiring a signature\n * for the namespace except other NamespaceDelegation mappings.\n * authorization: a namespace delegation is either signed by the root key, or is signed by\n * a key for which there exists a series of properly authorized namespace delegations\n * that are ultimately signed by the root key\n * UNIQUE(namespace, target_key)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.NamespaceDelegation\n */\nexport interface NamespaceDelegation {\n /**\n * fingerprint of the root key defining the namespace\n *\n * @generated from protobuf field: string namespace = 1\n */\n namespace: string\n /**\n * target key of getting full rights on the namespace (if target == namespace, it's a root CA)\n *\n * @generated from protobuf field: com.digitalasset.canton.crypto.v30.SigningPublicKey target_key = 2\n */\n targetKey?: SigningPublicKey\n /**\n * flag indicating whether the given delegation is a root delegation or not\n * a root delegation is also allowed to issue other NamespaceDelegations.\n *\n * @deprecated\n * @generated from protobuf field: bool is_root_delegation = 3 [deprecated = true]\n */\n isRootDelegation: boolean\n /**\n * restricts target_key to only sign transactions with the specified mapping types.\n * for backwards compatibility, only the following combinations are valid:\n * * is_root_delegation = true, restriction = empty: the key can sign all mappings\n * * is_root_delegation = false, restriction = empty: the key can sign all mappings but namespace delegations\n * * is_root_delegation = false, restriction = non-empty: the key can only sign the mappings according the restriction that is set\n *\n * @generated from protobuf oneof: restriction\n */\n restriction:\n | {\n oneofKind: 'canSignAllMappings'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllMappings can_sign_all_mappings = 4\n */\n canSignAllMappings: NamespaceDelegation_CanSignAllMappings\n }\n | {\n oneofKind: 'canSignAllButNamespaceDelegations'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllButNamespaceDelegations can_sign_all_but_namespace_delegations = 5\n */\n canSignAllButNamespaceDelegations: NamespaceDelegation_CanSignAllButNamespaceDelegations\n }\n | {\n oneofKind: 'canSignSpecificMapings'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignSpecificMappings can_sign_specific_mapings = 6\n */\n canSignSpecificMapings: NamespaceDelegation_CanSignSpecificMappings\n }\n | {\n oneofKind: undefined\n }\n}\n/**\n * [start-docs-entry: namespace delegation restrictions]\n * the key can sign all currently known mappings and all mappings that will be added in future releases\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllMappings\n */\nexport interface NamespaceDelegation_CanSignAllMappings {}\n/**\n * the key can sign all currently known mappings and all mappings that will be added in future releases, except for\n * namespace delegations\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllButNamespaceDelegations\n */\nexport interface NamespaceDelegation_CanSignAllButNamespaceDelegations {}\n/**\n * the key can only sign the explicitly specified mappings\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignSpecificMappings\n */\nexport interface NamespaceDelegation_CanSignSpecificMappings {\n /**\n * @generated from protobuf field: repeated com.digitalasset.canton.protocol.v30.Enums.TopologyMappingCode mappings = 1\n */\n mappings: Enums_TopologyMappingCode[]\n}\n/**\n * a decentralized namespace definition that creates a new namespace supported by the\n * the original owners\n * authorization: the decentralized namespace definition with serial = 1 must be authorized by all the\n * owners of the namespace that form the decentralized namespace.\n * for definitions with serial > 1, we need the authorization of #threshold owners plus\n * all new owners\n *\n * any further transaction within the decentralized namespace other than decentralized namespace definitions needs\n * #threshold signatures of the owners\n *\n * UNIQUE(decentralized_namespace)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.DecentralizedNamespaceDefinition\n */\nexport interface DecentralizedNamespaceDefinition {\n /**\n * name of the decentralized namespace, computed from the hash of its initial owners\n *\n * @generated from protobuf field: string decentralized_namespace = 1\n */\n decentralizedNamespace: string\n /**\n * the threshold required for any subsequent update signing\n *\n * @generated from protobuf field: int32 threshold = 2\n */\n threshold: number\n /**\n * the namespaces of the owners\n *\n * @generated from protobuf field: repeated string owners = 3\n */\n owners: string[]\n}\n/**\n * mapping a member (participant, mediator, sequencer) to a key\n * authorization: whoever controls the member uid\n * UNIQUE(member)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.OwnerToKeyMapping\n */\nexport interface OwnerToKeyMapping {\n /**\n * the sequencing process member\n *\n * @generated from protobuf field: string member = 1\n */\n member: string\n /**\n * the designated keys\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.crypto.v30.PublicKey public_keys = 2\n */\n publicKeys: PublicKey[]\n}\n/**\n * [doc-entry-start: PartyToKeyMapping]\n * mapping a party to a key\n * authorization: whoever controls the party uid\n * UNIQUE(party)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.PartyToKeyMapping\n */\nexport interface PartyToKeyMapping {\n /**\n * the party\n *\n * @generated from protobuf field: string party = 1\n */\n party: string\n /**\n * the authorization threshold\n *\n * @generated from protobuf field: uint32 threshold = 3\n */\n threshold: number\n /**\n * the designated signing keys\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.crypto.v30.SigningPublicKey signing_keys = 4\n */\n signingKeys: SigningPublicKey[]\n}\n/**\n * the trust certificate issued by the participant confirming that the participant\n * wishes to be present on the given synchronizer\n * authorization: whoever controls the participant uid\n * UNIQUE(participant,synchronizer_id)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.SynchronizerTrustCertificate\n */\nexport interface SynchronizerTrustCertificate {\n /**\n * the uid of the participant\n *\n * @generated from protobuf field: string participant_uid = 1\n */\n participantUid: string\n /**\n * the uid of the synchronizer that the participant trusts\n *\n * @generated from protobuf field: string synchronizer_id = 2\n */\n synchronizerId: string\n}\n/**\n * the optional trust certificate of the synchronizer towards the participant\n * authorization: whoever controls the synchronizer id\n * UNIQUE(synchronizer_id,participant)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.ParticipantSynchronizerPermission\n */\nexport interface ParticipantSynchronizerPermission {\n /**\n * @generated from protobuf field: string synchronizer_id = 1\n */\n synchronizerId: string\n /**\n * @generated from protobuf field: string participant_uid = 2\n */\n participantUid: string\n /**\n * the permission level of the participant on this synchronizer (usually submission)\n *\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.Enums.ParticipantPermission permission = 3\n */\n permission: Enums_ParticipantPermission\n /**\n * optional individual limits for this participant\n *\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.ParticipantSynchronizerLimits limits = 4\n */\n limits?: ParticipantSynchronizerLimits\n /**\n * optional earliest time when participant can log in (again)\n * used to temporarily disable participants\n * In microseconds of UTC time since Unix epoch\n *\n * @generated from protobuf field: optional int64 login_after = 5\n */\n loginAfter?: bigint\n}\n/**\n * the optional hosting limits for a party on a given synchronizer\n * these limits can be used to limit the number of participants that can host a given party\n * authorization: whoever controls the synchronizer id\n * UNIQUE(synchronizer_id,party)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.PartyHostingLimits\n */\nexport interface PartyHostingLimits {\n /**\n * @generated from protobuf field: string synchronizer_id = 1\n */\n synchronizerId: string\n /**\n * @generated from protobuf field: string party = 2\n */\n party: string\n}\n/**\n * list of packages supported by this participant\n * authorization: whoever controls the participant uid\n * UNIQUE(participant)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.VettedPackages\n */\nexport interface VettedPackages {\n /**\n * the participant vetting the packages\n *\n * @generated from protobuf field: string participant_uid = 1\n */\n participantUid: string\n /**\n * DEPRECATED: no longer used, but kept for backwards compatibility.\n * the hashes of the vetted packages.\n * package hashes may only be listed in one of the two fields: package_ids or packages.\n * a package listed in package_ids is equivalent to a package listed in packages with unbounded validity.\n *\n * @deprecated\n * @generated from protobuf field: repeated string package_ids = 2 [deprecated = true]\n */\n packageIds: string[]\n /**\n * the hashes of vetted packages with a validity period.\n * only one entry per package_id is permitted.\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.protocol.v30.VettedPackages.VettedPackage packages = 4\n */\n packages: VettedPackages_VettedPackage[]\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.VettedPackages.VettedPackage\n */\nexport interface VettedPackages_VettedPackage {\n /**\n * the hash of the vetted package\n *\n * @generated from protobuf field: string package_id = 1\n */\n packageId: string\n /**\n * optional earliest ledger effective time (exclusive) as of which the package is considered valid.\n * must be less than or equal to valid_until if both are present.\n *\n * @generated from protobuf field: google.protobuf.Timestamp valid_from = 2\n */\n validFrom?: Timestamp\n /**\n * optional latest ledger effective time (inclusive) until which the package is considered valid.\n * must be greater than or equal to valid_from if both are present.\n *\n * @generated from protobuf field: google.protobuf.Timestamp valid_until = 3\n */\n validUntil?: Timestamp\n}\n/**\n * mapping that maps a party to a participant\n * authorization: whoever controls the party and all the owners of the participants that\n * were not already present in the tx with serial = n - 1\n * exception:\n * - a participant can disassociate itself with the party unilaterally as long there will be\n * enough participants to reach \"threshold\" during confirmation. The disassociating participant\n * must lower the threshold by one, if otherwise the number of hosting participants would go\n * below the threshold.\n * UNIQUE(party)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.PartyToParticipant\n */\nexport interface PartyToParticipant {\n /**\n * the party that is to be represented by the participants\n *\n * @generated from protobuf field: string party = 1\n */\n party: string\n /**\n * the signatory threshold required by the participants to be able to act on behalf of the party.\n * a mapping with threshold > 1 is considered a definition of a consortium party\n *\n * @generated from protobuf field: uint32 threshold = 2\n */\n threshold: number\n /**\n * which participants will host the party.\n * if threshold > 1, must be Confirmation or Observation\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.protocol.v30.PartyToParticipant.HostingParticipant participants = 3\n */\n participants: PartyToParticipant_HostingParticipant[]\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.PartyToParticipant.HostingParticipant\n */\nexport interface PartyToParticipant_HostingParticipant {\n /**\n * the target participant that the party should be mapped to\n *\n * @generated from protobuf field: string participant_uid = 1\n */\n participantUid: string\n /**\n * permission of the participant for this particular party (the actual\n * will be min of ParticipantSynchronizerPermission.ParticipantPermission and this setting)\n *\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.Enums.ParticipantPermission permission = 2\n */\n permission: Enums_ParticipantPermission\n}\n/**\n * which dynamic synchronizer parameters are supposed to be used on the given synchronizer\n * authorization: whoever controls the synchronizer\n * UNIQUE(synchronizer_id)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.SynchronizerParametersState\n */\nexport interface SynchronizerParametersState {\n /**\n * synchronizer affected by the new synchronizer parameters\n *\n * @generated from protobuf field: string synchronizer_id = 1\n */\n synchronizerId: string\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.DynamicSynchronizerParameters synchronizer_parameters = 2\n */\n synchronizerParameters?: DynamicSynchronizerParameters\n}\n/**\n * which sequencing dynamic parameters are supposed to be used on the given synchronizer; defaults are used when not set\n * authorization: whoever controls the synchronizer\n * UNIQUE(synchronizer_id)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.DynamicSequencingParametersState\n */\nexport interface DynamicSequencingParametersState {\n /**\n * synchronizer affected by the new synchronizer parameters\n *\n * @generated from protobuf field: string synchronizer_id = 1\n */\n synchronizerId: string\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.DynamicSequencingParameters sequencing_parameters = 2\n */\n sequencingParameters?: DynamicSequencingParameters\n}\n/**\n * which mediators and mediator groups are active on the given synchronizer\n * authorization: whoever controls the synchronizer\n * UNIQUE(synchronizer_id, group)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.MediatorSynchronizerState\n */\nexport interface MediatorSynchronizerState {\n /**\n * the synchronizer id of the mediator group\n *\n * @generated from protobuf field: string synchronizer_id = 1\n */\n synchronizerId: string\n /**\n * the group-id used for sharding multiple mediator groups\n *\n * @generated from protobuf field: uint32 group = 2\n */\n group: number\n /**\n * the signature threshold required to reach consensus among the mediators\n *\n * @generated from protobuf field: uint32 threshold = 3\n */\n threshold: number\n /**\n * the list of active mediators (uid) within the group\n *\n * @generated from protobuf field: repeated string active = 4\n */\n active: string[]\n /**\n * the list of observing mediators (uid) within the group (read messages but don't respond)\n *\n * @generated from protobuf field: repeated string observers = 5\n */\n observers: string[]\n}\n/**\n * which sequencers are active on the given synchronizer\n * authorization: whoever controls the synchronizer\n * UNIQUE(synchronizer_id)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.SequencerSynchronizerState\n */\nexport interface SequencerSynchronizerState {\n /**\n * the synchronizer id of the sequencer group\n *\n * @generated from protobuf field: string synchronizer_id = 1\n */\n synchronizerId: string\n /**\n * The system can tolerate up to min(threshold - 1, (activeWithSigningKey.size - 1)/3) malicious active sequencers,\n * where activeWithSigningKey is the set of sequencers from active that have an active OwnerToKeyMapping with a signing key.\n * In order to make the system resilient against f malicious active sequencers, you need to:\n * (1) configure threshold := f + 1,\n * (2) possibly add active sequencers such that f <= (activeWithSigningKey.size - 1)/3.\n * (3) possibly register signing keys for active sequencers,\n *\n * @generated from protobuf field: uint32 threshold = 2\n */\n threshold: number\n /**\n * the list of active sequencers\n * If a sequencer without an active signing key is added to this set, it has no effect on the topology state.\n *\n * @generated from protobuf field: repeated string active = 3\n */\n active: string[]\n /**\n * the list of observing sequencers (uid) within the group (read messages but don't respond)\n *\n * @generated from protobuf field: repeated string observers = 4\n */\n observers: string[]\n}\n/**\n * explicitly invalidate topology transactions for good\n * this can be used by the synchronizer to offboard participants forcefully or to\n * remove stray topology transactions\n * authorization: whoever controls the synchronizer\n * UNIQUE(synchronizer_id)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.PurgeTopologyTransaction\n */\nexport interface PurgeTopologyTransaction {\n /**\n * the synchronizer id\n *\n * @generated from protobuf field: string synchronizer_id = 1\n */\n synchronizerId: string\n /**\n * the list of mappings to remove from this synchronizer\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.protocol.v30.TopologyMapping mappings = 2\n */\n mappings: TopologyMapping[]\n}\n/**\n * [docs-entry-start: topology mapping]\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.TopologyMapping\n */\nexport interface TopologyMapping {\n /**\n * @generated from protobuf oneof: mapping\n */\n mapping:\n | {\n oneofKind: 'namespaceDelegation'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.NamespaceDelegation namespace_delegation = 1\n */\n namespaceDelegation: NamespaceDelegation\n }\n | {\n oneofKind: 'decentralizedNamespaceDefinition'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.DecentralizedNamespaceDefinition decentralized_namespace_definition = 3\n */\n decentralizedNamespaceDefinition: DecentralizedNamespaceDefinition\n }\n | {\n oneofKind: 'ownerToKeyMapping'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.OwnerToKeyMapping owner_to_key_mapping = 4\n */\n ownerToKeyMapping: OwnerToKeyMapping\n }\n | {\n oneofKind: 'synchronizerTrustCertificate'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.SynchronizerTrustCertificate synchronizer_trust_certificate = 5\n */\n synchronizerTrustCertificate: SynchronizerTrustCertificate\n }\n | {\n oneofKind: 'participantPermission'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.ParticipantSynchronizerPermission participant_permission = 6\n */\n participantPermission: ParticipantSynchronizerPermission\n }\n | {\n oneofKind: 'partyHostingLimits'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.PartyHostingLimits party_hosting_limits = 7\n */\n partyHostingLimits: PartyHostingLimits\n }\n | {\n oneofKind: 'vettedPackages'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.VettedPackages vetted_packages = 8\n */\n vettedPackages: VettedPackages\n }\n | {\n oneofKind: 'partyToParticipant'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.PartyToParticipant party_to_participant = 9\n */\n partyToParticipant: PartyToParticipant\n }\n | {\n oneofKind: 'synchronizerParametersState'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.SynchronizerParametersState synchronizer_parameters_state = 11\n */\n synchronizerParametersState: SynchronizerParametersState\n }\n | {\n oneofKind: 'mediatorSynchronizerState'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.MediatorSynchronizerState mediator_synchronizer_state = 12\n */\n mediatorSynchronizerState: MediatorSynchronizerState\n }\n | {\n oneofKind: 'sequencerSynchronizerState'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.SequencerSynchronizerState sequencer_synchronizer_state = 13\n */\n sequencerSynchronizerState: SequencerSynchronizerState\n }\n | {\n oneofKind: 'purgeTopologyTxs'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.PurgeTopologyTransaction purge_topology_txs = 14\n */\n purgeTopologyTxs: PurgeTopologyTransaction\n }\n | {\n oneofKind: 'sequencingDynamicParametersState'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.DynamicSequencingParametersState sequencing_dynamic_parameters_state = 15\n */\n sequencingDynamicParametersState: DynamicSequencingParametersState\n }\n | {\n oneofKind: 'partyToKeyMapping'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.PartyToKeyMapping party_to_key_mapping = 16\n */\n partyToKeyMapping: PartyToKeyMapping\n }\n | {\n oneofKind: undefined\n }\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.TopologyTransaction\n */\nexport interface TopologyTransaction {\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.Enums.TopologyChangeOp operation = 1\n */\n operation: Enums_TopologyChangeOp\n /**\n * Serial identifier of this transaction used to prevent replay attacks.\n * A topology transaction is replacing the existing transaction with serial - 1\n * that has the same unique key.\n *\n * @generated from protobuf field: uint32 serial = 2\n */\n serial: number\n /**\n * the element of this topology transaction\n *\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.TopologyMapping mapping = 3\n */\n mapping?: TopologyMapping\n}\n/**\n * Used in SignedTopologyTransaction to bundle together multiple transaction hashes\n * Allows submitters to only sign a single combined hash to authorize multiple transactions at once\n * The combined hash is computed from the transaction hashes\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.MultiTransactionSignatures\n */\nexport interface MultiTransactionSignatures {\n /**\n * List of topology transaction hashes.\n * Required\n *\n * @generated from protobuf field: repeated bytes transaction_hashes = 1\n */\n transactionHashes: Uint8Array[]\n /**\n * Signatures on the combined hash computed over the transaction_hashes\n * MUST contain at least one\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.crypto.v30.Signature signatures = 2\n */\n signatures: Signature[]\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.SignedTopologyTransaction\n */\nexport interface SignedTopologyTransaction {\n /**\n * serialized topology transaction (protobuf bytestring)\n *\n * @generated from protobuf field: bytes transaction = 1\n */\n transaction: Uint8Array\n /**\n * multiple signatures\n * Either this field OR the multi_transaction_signatures field MUST contain at least one signature\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.crypto.v30.Signature signatures = 2\n */\n signatures: Signature[]\n /**\n * if true, this transaction is just a proposal. this means that every signature is valid,\n * but the signatures are insufficient to properly authorize the transaction.\n * proposals are distributed via the topology channel too. proposals will be pruned automatically\n * when the nodes are pruned\n * TODO(#14045) implement pruning\n *\n * @generated from protobuf field: bool proposal = 3\n */\n proposal: boolean\n /**\n * If set, the transaction may be authorized by signing a hash computed from multiple transaction hashes\n * This allows to effectively authorize multiple transactions with a single signature.\n * Each item MUST contain the hash of this transaction\n * Optional\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.protocol.v30.MultiTransactionSignatures multi_transaction_signatures = 4\n */\n multiTransactionSignatures: MultiTransactionSignatures[]\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.SignedTopologyTransactions\n */\nexport interface SignedTopologyTransactions {\n /**\n * serialized signed topology transaction (protobuf bytestring)\n *\n * @generated from protobuf field: repeated bytes signed_transaction = 1\n */\n signedTransaction: Uint8Array[]\n}\n/**\n * * Accepted topology transaction\n *\n * A member sends topology transactions to the topology transaction broadcast address.\n * The transactions are validated by all members individually against their respective synchronizer store,\n * including the member the submitted the broadcast.\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.TopologyTransactionsBroadcast\n */\nexport interface TopologyTransactionsBroadcast {\n /**\n * @generated from protobuf field: string synchronizer_id = 1\n */\n synchronizerId: string\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.SignedTopologyTransactions signed_transactions = 2\n */\n signedTransactions?: SignedTopologyTransactions\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass Enums$Type extends MessageType<Enums> {\n constructor() {\n super('com.digitalasset.canton.protocol.v30.Enums', [])\n }\n create(value?: PartialMessage<Enums>): Enums {\n const message = globalThis.Object.create(this.messagePrototype!)\n if (value !== undefined)\n reflectionMergePartial<Enums>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: Enums\n ): Enums {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: Enums,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.Enums\n */\nexport const Enums = new Enums$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass NamespaceDelegation$Type extends MessageType<NamespaceDelegation> {\n constructor() {\n super('com.digitalasset.canton.protocol.v30.NamespaceDelegation', [\n {\n no: 1,\n name: 'namespace',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'target_key',\n kind: 'message',\n T: () => SigningPublicKey,\n },\n {\n no: 3,\n name: 'is_root_delegation',\n kind: 'scalar',\n T: 8 /*ScalarType.BOOL*/,\n },\n {\n no: 4,\n name: 'can_sign_all_mappings',\n kind: 'message',\n oneof: 'restriction',\n T: () => NamespaceDelegation_CanSignAllMappings,\n },\n {\n no: 5,\n name: 'can_sign_all_but_namespace_delegations',\n kind: 'message',\n oneof: 'restriction',\n T: () => NamespaceDelegation_CanSignAllButNamespaceDelegations,\n },\n {\n no: 6,\n name: 'can_sign_specific_mapings',\n kind: 'message',\n oneof: 'restriction',\n T: () => NamespaceDelegation_CanSignSpecificMappings,\n },\n ])\n }\n create(value?: PartialMessage<NamespaceDelegation>): NamespaceDelegation {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.namespace = ''\n message.isRootDelegation = false\n message.restriction = { oneofKind: undefined }\n if (value !== undefined)\n reflectionMergePartial<NamespaceDelegation>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: NamespaceDelegation\n ): NamespaceDelegation {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string namespace */ 1:\n message.namespace = reader.string()\n break\n case /* com.digitalasset.canton.crypto.v30.SigningPublicKey target_key */ 2:\n message.targetKey = SigningPublicKey.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.targetKey\n )\n break\n case /* bool is_root_delegation = 3 [deprecated = true] */ 3:\n message.isRootDelegation = reader.bool()\n break\n case /* com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllMappings can_sign_all_mappings */ 4:\n message.restriction = {\n oneofKind: 'canSignAllMappings',\n canSignAllMappings:\n NamespaceDelegation_CanSignAllMappings.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.restriction as any).canSignAllMappings\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllButNamespaceDelegations can_sign_all_but_namespace_delegations */ 5:\n message.restriction = {\n oneofKind: 'canSignAllButNamespaceDelegations',\n canSignAllButNamespaceDelegations:\n NamespaceDelegation_CanSignAllButNamespaceDelegations.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.restriction as any)\n .canSignAllButNamespaceDelegations\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignSpecificMappings can_sign_specific_mapings */ 6:\n message.restriction = {\n oneofKind: 'canSignSpecificMapings',\n canSignSpecificMapings:\n NamespaceDelegation_CanSignSpecificMappings.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.restriction as any)\n .canSignSpecificMapings\n ),\n }\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: NamespaceDelegation,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string namespace = 1; */\n if (message.namespace !== '')\n writer.tag(1, WireType.LengthDelimited).string(message.namespace)\n /* com.digitalasset.canton.crypto.v30.SigningPublicKey target_key = 2; */\n if (message.targetKey)\n SigningPublicKey.internalBinaryWrite(\n message.targetKey,\n writer.tag(2, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* bool is_root_delegation = 3 [deprecated = true]; */\n if (message.isRootDelegation !== false)\n writer.tag(3, WireType.Varint).bool(message.isRootDelegation)\n /* com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllMappings can_sign_all_mappings = 4; */\n if (message.restriction.oneofKind === 'canSignAllMappings')\n NamespaceDelegation_CanSignAllMappings.internalBinaryWrite(\n message.restriction.canSignAllMappings,\n writer.tag(4, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllButNamespaceDelegations can_sign_all_but_namespace_delegations = 5; */\n if (\n message.restriction.oneofKind ===\n 'canSignAllButNamespaceDelegations'\n )\n NamespaceDelegation_CanSignAllButNamespaceDelegations.internalBinaryWrite(\n message.restriction.canSignAllButNamespaceDelegations,\n writer.tag(5, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignSpecificMappings can_sign_specific_mapings = 6; */\n if (message.restriction.oneofKind === 'canSignSpecificMapings')\n NamespaceDelegation_CanSignSpecificMappings.internalBinaryWrite(\n message.restriction.canSignSpecificMapings,\n writer.tag(6, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.NamespaceDelegation\n */\nexport const NamespaceDelegation = new NamespaceDelegation$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass NamespaceDelegation_CanSignAllMappings$Type extends MessageType<NamespaceDelegation_CanSignAllMappings> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllMappings',\n []\n )\n }\n create(\n value?: PartialMessage<NamespaceDelegation_CanSignAllMappings>\n ): NamespaceDelegation_CanSignAllMappings {\n const message = globalThis.Object.create(this.messagePrototype!)\n if (value !== undefined)\n reflectionMergePartial<NamespaceDelegation_CanSignAllMappings>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: NamespaceDelegation_CanSignAllMappings\n ): NamespaceDelegation_CanSignAllMappings {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: NamespaceDelegation_CanSignAllMappings,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllMappings\n */\nexport const NamespaceDelegation_CanSignAllMappings =\n new NamespaceDelegation_CanSignAllMappings$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass NamespaceDelegation_CanSignAllButNamespaceDelegations$Type extends MessageType<NamespaceDelegation_CanSignAllButNamespaceDelegations> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllButNamespaceDelegations',\n []\n )\n }\n create(\n value?: PartialMessage<NamespaceDelegation_CanSignAllButNamespaceDelegations>\n ): NamespaceDelegation_CanSignAllButNamespaceDelegations {\n const message = globalThis.Object.create(this.messagePrototype!)\n if (value !== undefined)\n reflectionMergePartial<NamespaceDelegation_CanSignAllButNamespaceDelegations>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: NamespaceDelegation_CanSignAllButNamespaceDelegations\n ): NamespaceDelegation_CanSignAllButNamespaceDelegations {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: NamespaceDelegation_CanSignAllButNamespaceDelegations,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllButNamespaceDelegations\n */\nexport const NamespaceDelegation_CanSignAllButNamespaceDelegations =\n new NamespaceDelegation_CanSignAllButNamespaceDelegations$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass NamespaceDelegation_CanSignSpecificMappings$Type extends MessageType<NamespaceDelegation_CanSignSpecificMappings> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignSpecificMappings',\n [\n {\n no: 1,\n name: 'mappings',\n kind: 'enum',\n repeat: 1 /*RepeatType.PACKED*/,\n T: () => [\n 'com.digitalasset.canton.protocol.v30.Enums.TopologyMappingCode',\n Enums_TopologyMappingCode,\n 'TOPOLOGY_MAPPING_CODE_',\n ],\n },\n ]\n )\n }\n create(\n value?: PartialMessage<NamespaceDelegation_CanSignSpecificMappings>\n ): NamespaceDelegation_CanSignSpecificMappings {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.mappings = []\n if (value !== undefined)\n reflectionMergePartial<NamespaceDelegation_CanSignSpecificMappings>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: NamespaceDelegation_CanSignSpecificMappings\n ): NamespaceDelegation_CanSignSpecificMappings {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* repeated com.digitalasset.canton.protocol.v30.Enums.TopologyMappingCode mappings */ 1:\n if (wireType === WireType.LengthDelimited)\n for (\n let e = reader.int32() + reader.pos;\n reader.pos < e;\n\n )\n message.mappings.push(reader.int32())\n else message.mappings.push(reader.int32())\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: NamespaceDelegation_CanSignSpecificMappings,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* repeated com.digitalasset.canton.protocol.v30.Enums.TopologyMappingCode mappings = 1; */\n if (message.mappings.length) {\n writer.tag(1, WireType.LengthDelimited).fork()\n for (let i = 0; i < message.mappings.length; i++)\n writer.int32(message.mappings[i])\n writer.join()\n }\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignSpecificMappings\n */\nexport const NamespaceDelegation_CanSignSpecificMappings =\n new NamespaceDelegation_CanSignSpecificMappings$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass DecentralizedNamespaceDefinition$Type extends MessageType<DecentralizedNamespaceDefinition> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.DecentralizedNamespaceDefinition',\n [\n {\n no: 1,\n name: 'decentralized_namespace',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'threshold',\n kind: 'scalar',\n T: 5 /*ScalarType.INT32*/,\n },\n {\n no: 3,\n name: 'owners',\n kind: 'scalar',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: 9 /*ScalarType.STRING*/,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<DecentralizedNamespaceDefinition>\n ): DecentralizedNamespaceDefinition {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.decentralizedNamespace = ''\n message.threshold = 0\n message.owners = []\n if (value !== undefined)\n reflectionMergePartial<DecentralizedNamespaceDefinition>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: DecentralizedNamespaceDefinition\n ): DecentralizedNamespaceDefinition {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string decentralized_namespace */ 1:\n message.decentralizedNamespace = reader.string()\n break\n case /* int32 threshold */ 2:\n message.threshold = reader.int32()\n break\n case /* repeated string owners */ 3:\n message.owners.push(reader.string())\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: DecentralizedNamespaceDefinition,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string decentralized_namespace = 1; */\n if (message.decentralizedNamespace !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.decentralizedNamespace)\n /* int32 threshold = 2; */\n if (message.threshold !== 0)\n writer.tag(2, WireType.Varint).int32(message.threshold)\n /* repeated string owners = 3; */\n for (let i = 0; i < message.owners.length; i++)\n writer.tag(3, WireType.LengthDelimited).string(message.owners[i])\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.DecentralizedNamespaceDefinition\n */\nexport const DecentralizedNamespaceDefinition =\n new DecentralizedNamespaceDefinition$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass OwnerToKeyMapping$Type extends MessageType<OwnerToKeyMapping> {\n constructor() {\n super('com.digitalasset.canton.protocol.v30.OwnerToKeyMapping', [\n {\n no: 1,\n name: 'member',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'public_keys',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => PublicKey,\n },\n ])\n }\n create(value?: PartialMessage<OwnerToKeyMapping>): OwnerToKeyMapping {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.member = ''\n message.publicKeys = []\n if (value !== undefined)\n reflectionMergePartial<OwnerToKeyMapping>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: OwnerToKeyMapping\n ): OwnerToKeyMapping {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string member */ 1:\n message.member = reader.string()\n break\n case /* repeated com.digitalasset.canton.crypto.v30.PublicKey public_keys */ 2:\n message.publicKeys.push(\n PublicKey.internalBinaryRead(\n reader,\n reader.uint32(),\n options\n )\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: OwnerToKeyMapping,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string member = 1; */\n if (message.member !== '')\n writer.tag(1, WireType.LengthDelimited).string(message.member)\n /* repeated com.digitalasset.canton.crypto.v30.PublicKey public_keys = 2; */\n for (let i = 0; i < message.publicKeys.length; i++)\n PublicKey.internalBinaryWrite(\n message.publicKeys[i],\n writer.tag(2, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.OwnerToKeyMapping\n */\nexport const OwnerToKeyMapping = new OwnerToKeyMapping$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass PartyToKeyMapping$Type extends MessageType<PartyToKeyMapping> {\n constructor() {\n super('com.digitalasset.canton.protocol.v30.PartyToKeyMapping', [\n {\n no: 1,\n name: 'party',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 3,\n name: 'threshold',\n kind: 'scalar',\n T: 13 /*ScalarType.UINT32*/,\n },\n {\n no: 4,\n name: 'signing_keys',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => SigningPublicKey,\n },\n ])\n }\n create(value?: PartialMessage<PartyToKeyMapping>): PartyToKeyMapping {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.party = ''\n message.threshold = 0\n message.signingKeys = []\n if (value !== undefined)\n reflectionMergePartial<PartyToKeyMapping>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: PartyToKeyMapping\n ): PartyToKeyMapping {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string party */ 1:\n message.party = reader.string()\n break\n case /* uint32 threshold */ 3:\n message.threshold = reader.uint32()\n break\n case /* repeated com.digitalasset.canton.crypto.v30.SigningPublicKey signing_keys */ 4:\n message.signingKeys.push(\n SigningPublicKey.internalBinaryRead(\n reader,\n reader.uint32(),\n options\n )\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: PartyToKeyMapping,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string party = 1; */\n if (message.party !== '')\n writer.tag(1, WireType.LengthDelimited).string(message.party)\n /* uint32 threshold = 3; */\n if (message.threshold !== 0)\n writer.tag(3, WireType.Varint).uint32(message.threshold)\n /* repeated com.digitalasset.canton.crypto.v30.SigningPublicKey signing_keys = 4; */\n for (let i = 0; i < message.signingKeys.length; i++)\n SigningPublicKey.internalBinaryWrite(\n message.signingKeys[i],\n writer.tag(4, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.PartyToKeyMapping\n */\nexport const PartyToKeyMapping = new PartyToKeyMapping$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass SynchronizerTrustCertificate$Type extends MessageType<SynchronizerTrustCertificate> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.SynchronizerTrustCertificate',\n [\n {\n no: 1,\n name: 'participant_uid',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'synchronizer_id',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<SynchronizerTrustCertificate>\n ): SynchronizerTrustCertificate {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.participantUid = ''\n message.synchronizerId = ''\n if (value !== undefined)\n reflectionMergePartial<SynchronizerTrustCertificate>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: SynchronizerTrustCertificate\n ): SynchronizerTrustCertificate {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string participant_uid */ 1:\n message.participantUid = reader.string()\n break\n case /* string synchronizer_id */ 2:\n message.synchronizerId = reader.string()\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: SynchronizerTrustCertificate,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string participant_uid = 1; */\n if (message.participantUid !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.participantUid)\n /* string synchronizer_id = 2; */\n if (message.synchronizerId !== '')\n writer\n .tag(2, WireType.LengthDelimited)\n .string(message.synchronizerId)\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.SynchronizerTrustCertificate\n */\nexport const SynchronizerTrustCertificate =\n new SynchronizerTrustCertificate$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass ParticipantSynchronizerPermission$Type extends MessageType<ParticipantSynchronizerPermission> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.ParticipantSynchronizerPermission',\n [\n {\n no: 1,\n name: 'synchronizer_id',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'participant_uid',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 3,\n name: 'permission',\n kind: 'enum',\n T: () => [\n 'com.digitalasset.canton.protocol.v30.Enums.ParticipantPermission',\n Enums_ParticipantPermission,\n 'PARTICIPANT_PERMISSION_',\n ],\n },\n {\n no: 4,\n name: 'limits',\n kind: 'message',\n T: () => ParticipantSynchronizerLimits,\n },\n {\n no: 5,\n name: 'login_after',\n kind: 'scalar',\n opt: true,\n T: 3 /*ScalarType.INT64*/,\n L: 0 /*LongType.BIGINT*/,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<ParticipantSynchronizerPermission>\n ): ParticipantSynchronizerPermission {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.synchronizerId = ''\n message.participantUid = ''\n message.permission = 0\n if (value !== undefined)\n reflectionMergePartial<ParticipantSynchronizerPermission>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: ParticipantSynchronizerPermission\n ): ParticipantSynchronizerPermission {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string synchronizer_id */ 1:\n message.synchronizerId = reader.string()\n break\n case /* string participant_uid */ 2:\n message.participantUid = reader.string()\n break\n case /* com.digitalasset.canton.protocol.v30.Enums.ParticipantPermission permission */ 3:\n message.permission = reader.int32()\n break\n case /* com.digitalasset.canton.protocol.v30.ParticipantSynchronizerLimits limits */ 4:\n message.limits =\n ParticipantSynchronizerLimits.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.limits\n )\n break\n case /* optional int64 login_after */ 5:\n message.loginAfter = reader.int64().toBigInt()\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: ParticipantSynchronizerPermission,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string synchronizer_id = 1; */\n if (message.synchronizerId !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.synchronizerId)\n /* string participant_uid = 2; */\n if (message.participantUid !== '')\n writer\n .tag(2, WireType.LengthDelimited)\n .string(message.participantUid)\n /* com.digitalasset.canton.protocol.v30.Enums.ParticipantPermission permission = 3; */\n if (message.permission !== 0)\n writer.tag(3, WireType.Varint).int32(message.permission)\n /* com.digitalasset.canton.protocol.v30.ParticipantSynchronizerLimits limits = 4; */\n if (message.limits)\n ParticipantSynchronizerLimits.internalBinaryWrite(\n message.limits,\n writer.tag(4, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* optional int64 login_after = 5; */\n if (message.loginAfter !== undefined)\n writer.tag(5, WireType.Varint).int64(message.loginAfter)\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.ParticipantSynchronizerPermission\n */\nexport const ParticipantSynchronizerPermission =\n new ParticipantSynchronizerPermission$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass PartyHostingLimits$Type extends MessageType<PartyHostingLimits> {\n constructor() {\n super('com.digitalasset.canton.protocol.v30.PartyHostingLimits', [\n {\n no: 1,\n name: 'synchronizer_id',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'party',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n ])\n }\n create(value?: PartialMessage<PartyHostingLimits>): PartyHostingLimits {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.synchronizerId = ''\n message.party = ''\n if (value !== undefined)\n reflectionMergePartial<PartyHostingLimits>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: PartyHostingLimits\n ): PartyHostingLimits {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string synchronizer_id */ 1:\n message.synchronizerId = reader.string()\n break\n case /* string party */ 2:\n message.party = reader.string()\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: PartyHostingLimits,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string synchronizer_id = 1; */\n if (message.synchronizerId !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.synchronizerId)\n /* string party = 2; */\n if (message.party !== '')\n writer.tag(2, WireType.LengthDelimited).string(message.party)\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.PartyHostingLimits\n */\nexport const PartyHostingLimits = new PartyHostingLimits$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass VettedPackages$Type extends MessageType<VettedPackages> {\n constructor() {\n super('com.digitalasset.canton.protocol.v30.VettedPackages', [\n {\n no: 1,\n name: 'participant_uid',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'package_ids',\n kind: 'scalar',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 4,\n name: 'packages',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => VettedPackages_VettedPackage,\n },\n ])\n }\n create(value?: PartialMessage<VettedPackages>): VettedPackages {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.participantUid = ''\n message.packageIds = []\n message.packages = []\n if (value !== undefined)\n reflectionMergePartial<VettedPackages>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: VettedPackages\n ): VettedPackages {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string participant_uid */ 1:\n message.participantUid = reader.string()\n break\n case /* repeated string package_ids = 2 [deprecated = true] */ 2:\n message.packageIds.push(reader.string())\n break\n case /* repeated com.digitalasset.canton.protocol.v30.VettedPackages.VettedPackage packages */ 4:\n message.packages.push(\n VettedPackages_VettedPackage.internalBinaryRead(\n reader,\n reader.uint32(),\n options\n )\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: VettedPackages,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string participant_uid = 1; */\n if (message.participantUid !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.participantUid)\n /* repeated string package_ids = 2 [deprecated = true]; */\n for (let i = 0; i < message.packageIds.length; i++)\n writer\n .tag(2, WireType.LengthDelimited)\n .string(message.packageIds[i])\n /* repeated com.digitalasset.canton.protocol.v30.VettedPackages.VettedPackage packages = 4; */\n for (let i = 0; i < message.packages.length; i++)\n VettedPackages_VettedPackage.internalBinaryWrite(\n message.packages[i],\n writer.tag(4, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.VettedPackages\n */\nexport const VettedPackages = new VettedPackages$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass VettedPackages_VettedPackage$Type extends MessageType<VettedPackages_VettedPackage> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.VettedPackages.VettedPackage',\n [\n {\n no: 1,\n name: 'package_id',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'valid_from',\n kind: 'message',\n T: () => Timestamp,\n },\n {\n no: 3,\n name: 'valid_until',\n kind: 'message',\n T: () => Timestamp,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<VettedPackages_VettedPackage>\n ): VettedPackages_VettedPackage {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.packageId = ''\n if (value !== undefined)\n reflectionMergePartial<VettedPackages_VettedPackage>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: VettedPackages_VettedPackage\n ): VettedPackages_VettedPackage {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string package_id */ 1:\n message.packageId = reader.string()\n break\n case /* google.protobuf.Timestamp valid_from */ 2:\n message.validFrom = Timestamp.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.validFrom\n )\n break\n case /* google.protobuf.Timestamp valid_until */ 3:\n message.validUntil = Timestamp.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.validUntil\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: VettedPackages_VettedPackage,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string package_id = 1; */\n if (message.packageId !== '')\n writer.tag(1, WireType.LengthDelimited).string(message.packageId)\n /* google.protobuf.Timestamp valid_from = 2; */\n if (message.validFrom)\n Timestamp.internalBinaryWrite(\n message.validFrom,\n writer.tag(2, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* google.protobuf.Timestamp valid_until = 3; */\n if (message.validUntil)\n Timestamp.internalBinaryWrite(\n message.validUntil,\n writer.tag(3, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.VettedPackages.VettedPackage\n */\nexport const VettedPackages_VettedPackage =\n new VettedPackages_VettedPackage$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass PartyToParticipant$Type extends MessageType<PartyToParticipant> {\n constructor() {\n super('com.digitalasset.canton.protocol.v30.PartyToParticipant', [\n {\n no: 1,\n name: 'party',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'threshold',\n kind: 'scalar',\n T: 13 /*ScalarType.UINT32*/,\n },\n {\n no: 3,\n name: 'participants',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => PartyToParticipant_HostingParticipant,\n },\n ])\n }\n create(value?: PartialMessage<PartyToParticipant>): PartyToParticipant {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.party = ''\n message.threshold = 0\n message.participants = []\n if (value !== undefined)\n reflectionMergePartial<PartyToParticipant>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: PartyToParticipant\n ): PartyToParticipant {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string party */ 1:\n message.party = reader.string()\n break\n case /* uint32 threshold */ 2:\n message.threshold = reader.uint32()\n break\n case /* repeated com.digitalasset.canton.protocol.v30.PartyToParticipant.HostingParticipant participants */ 3:\n message.participants.push(\n PartyToParticipant_HostingParticipant.internalBinaryRead(\n reader,\n reader.uint32(),\n options\n )\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: PartyToParticipant,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string party = 1; */\n if (message.party !== '')\n writer.tag(1, WireType.LengthDelimited).string(message.party)\n /* uint32 threshold = 2; */\n if (message.threshold !== 0)\n writer.tag(2, WireType.Varint).uint32(message.threshold)\n /* repeated com.digitalasset.canton.protocol.v30.PartyToParticipant.HostingParticipant participants = 3; */\n for (let i = 0; i < message.participants.length; i++)\n PartyToParticipant_HostingParticipant.internalBinaryWrite(\n message.participants[i],\n writer.tag(3, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.PartyToParticipant\n */\nexport const PartyToParticipant = new PartyToParticipant$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass PartyToParticipant_HostingParticipant$Type extends MessageType<PartyToParticipant_HostingParticipant> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.PartyToParticipant.HostingParticipant',\n [\n {\n no: 1,\n name: 'participant_uid',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'permission',\n kind: 'enum',\n T: () => [\n 'com.digitalasset.canton.protocol.v30.Enums.ParticipantPermission',\n Enums_ParticipantPermission,\n 'PARTICIPANT_PERMISSION_',\n ],\n },\n ]\n )\n }\n create(\n value?: PartialMessage<PartyToParticipant_HostingParticipant>\n ): PartyToParticipant_HostingParticipant {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.participantUid = ''\n message.permission = 0\n if (value !== undefined)\n reflectionMergePartial<PartyToParticipant_HostingParticipant>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: PartyToParticipant_HostingParticipant\n ): PartyToParticipant_HostingParticipant {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string participant_uid */ 1:\n message.participantUid = reader.string()\n break\n case /* com.digitalasset.canton.protocol.v30.Enums.ParticipantPermission permission */ 2:\n message.permission = reader.int32()\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: PartyToParticipant_HostingParticipant,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string participant_uid = 1; */\n if (message.participantUid !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.participantUid)\n /* com.digitalasset.canton.protocol.v30.Enums.ParticipantPermission permission = 2; */\n if (message.permission !== 0)\n writer.tag(2, WireType.Varint).int32(message.permission)\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.PartyToParticipant.HostingParticipant\n */\nexport const PartyToParticipant_HostingParticipant =\n new PartyToParticipant_HostingParticipant$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass SynchronizerParametersState$Type extends MessageType<SynchronizerParametersState> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.SynchronizerParametersState',\n [\n {\n no: 1,\n name: 'synchronizer_id',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'synchronizer_parameters',\n kind: 'message',\n T: () => DynamicSynchronizerParameters,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<SynchronizerParametersState>\n ): SynchronizerParametersState {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.synchronizerId = ''\n if (value !== undefined)\n reflectionMergePartial<SynchronizerParametersState>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: SynchronizerParametersState\n ): SynchronizerParametersState {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string synchronizer_id */ 1:\n message.synchronizerId = reader.string()\n break\n case /* com.digitalasset.canton.protocol.v30.DynamicSynchronizerParameters synchronizer_parameters */ 2:\n message.synchronizerParameters =\n DynamicSynchronizerParameters.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.synchronizerParameters\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: SynchronizerParametersState,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string synchronizer_id = 1; */\n if (message.synchronizerId !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.synchronizerId)\n /* com.digitalasset.canton.protocol.v30.DynamicSynchronizerParameters synchronizer_parameters = 2; */\n if (message.synchronizerParameters)\n DynamicSynchronizerParameters.internalBinaryWrite(\n message.synchronizerParameters,\n writer.tag(2, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.SynchronizerParametersState\n */\nexport const SynchronizerParametersState =\n new SynchronizerParametersState$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass DynamicSequencingParametersState$Type extends MessageType<DynamicSequencingParametersState> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.DynamicSequencingParametersState',\n [\n {\n no: 1,\n name: 'synchronizer_id',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'sequencing_parameters',\n kind: 'message',\n T: () => DynamicSequencingParameters,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<DynamicSequencingParametersState>\n ): DynamicSequencingParametersState {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.synchronizerId = ''\n if (value !== undefined)\n reflectionMergePartial<DynamicSequencingParametersState>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: DynamicSequencingParametersState\n ): DynamicSequencingParametersState {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string synchronizer_id */ 1:\n message.synchronizerId = reader.string()\n break\n case /* com.digitalasset.canton.protocol.v30.DynamicSequencingParameters sequencing_parameters */ 2:\n message.sequencingParameters =\n DynamicSequencingParameters.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.sequencingParameters\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: DynamicSequencingParametersState,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string synchronizer_id = 1; */\n if (message.synchronizerId !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.synchronizerId)\n /* com.digitalasset.canton.protocol.v30.DynamicSequencingParameters sequencing_parameters = 2; */\n if (message.sequencingParameters)\n DynamicSequencingParameters.internalBinaryWrite(\n message.sequencingParameters,\n writer.tag(2, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.DynamicSequencingParametersState\n */\nexport const DynamicSequencingParametersState =\n new DynamicSequencingParametersState$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass MediatorSynchronizerState$Type extends MessageType<MediatorSynchronizerState> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.MediatorSynchronizerState',\n [\n {\n no: 1,\n name: 'synchronizer_id',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'group',\n kind: 'scalar',\n T: 13 /*ScalarType.UINT32*/,\n },\n {\n no: 3,\n name: 'threshold',\n kind: 'scalar',\n T: 13 /*ScalarType.UINT32*/,\n },\n {\n no: 4,\n name: 'active',\n kind: 'scalar',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 5,\n name: 'observers',\n kind: 'scalar',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: 9 /*ScalarType.STRING*/,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<MediatorSynchronizerState>\n ): MediatorSynchronizerState {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.synchronizerId = ''\n message.group = 0\n message.threshold = 0\n message.active = []\n message.observers = []\n if (value !== undefined)\n reflectionMergePartial<MediatorSynchronizerState>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: MediatorSynchronizerState\n ): MediatorSynchronizerState {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string synchronizer_id */ 1:\n message.synchronizerId = reader.string()\n break\n case /* uint32 group */ 2:\n message.group = reader.uint32()\n break\n case /* uint32 threshold */ 3:\n message.threshold = reader.uint32()\n break\n case /* repeated string active */ 4:\n message.active.push(reader.string())\n break\n case /* repeated string observers */ 5:\n message.observers.push(reader.string())\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: MediatorSynchronizerState,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string synchronizer_id = 1; */\n if (message.synchronizerId !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.synchronizerId)\n /* uint32 group = 2; */\n if (message.group !== 0)\n writer.tag(2, WireType.Varint).uint32(message.group)\n /* uint32 threshold = 3; */\n if (message.threshold !== 0)\n writer.tag(3, WireType.Varint).uint32(message.threshold)\n /* repeated string active = 4; */\n for (let i = 0; i < message.active.length; i++)\n writer.tag(4, WireType.LengthDelimited).string(message.active[i])\n /* repeated string observers = 5; */\n for (let i = 0; i < message.observers.length; i++)\n writer.tag(5, WireType.LengthDelimited).string(message.observers[i])\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.MediatorSynchronizerState\n */\nexport const MediatorSynchronizerState = new MediatorSynchronizerState$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass SequencerSynchronizerState$Type extends MessageType<SequencerSynchronizerState> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.SequencerSynchronizerState',\n [\n {\n no: 1,\n name: 'synchronizer_id',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'threshold',\n kind: 'scalar',\n T: 13 /*ScalarType.UINT32*/,\n },\n {\n no: 3,\n name: 'active',\n kind: 'scalar',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 4,\n name: 'observers',\n kind: 'scalar',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: 9 /*ScalarType.STRING*/,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<SequencerSynchronizerState>\n ): SequencerSynchronizerState {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.synchronizerId = ''\n message.threshold = 0\n message.active = []\n message.observers = []\n if (value !== undefined)\n reflectionMergePartial<SequencerSynchronizerState>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: SequencerSynchronizerState\n ): SequencerSynchronizerState {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string synchronizer_id */ 1:\n message.synchronizerId = reader.string()\n break\n case /* uint32 threshold */ 2:\n message.threshold = reader.uint32()\n break\n case /* repeated string active */ 3:\n message.active.push(reader.string())\n break\n case /* repeated string observers */ 4:\n message.observers.push(reader.string())\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: SequencerSynchronizerState,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string synchronizer_id = 1; */\n if (message.synchronizerId !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.synchronizerId)\n /* uint32 threshold = 2; */\n if (message.threshold !== 0)\n writer.tag(2, WireType.Varint).uint32(message.threshold)\n /* repeated string active = 3; */\n for (let i = 0; i < message.active.length; i++)\n writer.tag(3, WireType.LengthDelimited).string(message.active[i])\n /* repeated string observers = 4; */\n for (let i = 0; i < message.observers.length; i++)\n writer.tag(4, WireType.LengthDelimited).string(message.observers[i])\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.SequencerSynchronizerState\n */\nexport const SequencerSynchronizerState = new SequencerSynchronizerState$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass PurgeTopologyTransaction$Type extends MessageType<PurgeTopologyTransaction> {\n constructor() {\n super('com.digitalasset.canton.protocol.v30.PurgeTopologyTransaction', [\n {\n no: 1,\n name: 'synchronizer_id',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'mappings',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => TopologyMapping,\n },\n ])\n }\n create(\n value?: PartialMessage<PurgeTopologyTransaction>\n ): PurgeTopologyTransaction {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.synchronizerId = ''\n message.mappings = []\n if (value !== undefined)\n reflectionMergePartial<PurgeTopologyTransaction>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: PurgeTopologyTransaction\n ): PurgeTopologyTransaction {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string synchronizer_id */ 1:\n message.synchronizerId = reader.string()\n break\n case /* repeated com.digitalasset.canton.protocol.v30.TopologyMapping mappings */ 2:\n message.mappings.push(\n TopologyMapping.internalBinaryRead(\n reader,\n reader.uint32(),\n options\n )\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: PurgeTopologyTransaction,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string synchronizer_id = 1; */\n if (message.synchronizerId !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.synchronizerId)\n /* repeated com.digitalasset.canton.protocol.v30.TopologyMapping mappings = 2; */\n for (let i = 0; i < message.mappings.length; i++)\n TopologyMapping.internalBinaryWrite(\n message.mappings[i],\n writer.tag(2, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.PurgeTopologyTransaction\n */\nexport const PurgeTopologyTransaction = new PurgeTopologyTransaction$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass TopologyMapping$Type extends MessageType<TopologyMapping> {\n constructor() {\n super('com.digitalasset.canton.protocol.v30.TopologyMapping', [\n {\n no: 1,\n name: 'namespace_delegation',\n kind: 'message',\n oneof: 'mapping',\n T: () => NamespaceDelegation,\n },\n {\n no: 3,\n name: 'decentralized_namespace_definition',\n kind: 'message',\n oneof: 'mapping',\n T: () => DecentralizedNamespaceDefinition,\n },\n {\n no: 4,\n name: 'owner_to_key_mapping',\n kind: 'message',\n oneof: 'mapping',\n T: () => OwnerToKeyMapping,\n },\n {\n no: 5,\n name: 'synchronizer_trust_certificate',\n kind: 'message',\n oneof: 'mapping',\n T: () => SynchronizerTrustCertificate,\n },\n {\n no: 6,\n name: 'participant_permission',\n kind: 'message',\n oneof: 'mapping',\n T: () => ParticipantSynchronizerPermission,\n },\n {\n no: 7,\n name: 'party_hosting_limits',\n kind: 'message',\n oneof: 'mapping',\n T: () => PartyHostingLimits,\n },\n {\n no: 8,\n name: 'vetted_packages',\n kind: 'message',\n oneof: 'mapping',\n T: () => VettedPackages,\n },\n {\n no: 9,\n name: 'party_to_participant',\n kind: 'message',\n oneof: 'mapping',\n T: () => PartyToParticipant,\n },\n {\n no: 11,\n name: 'synchronizer_parameters_state',\n kind: 'message',\n oneof: 'mapping',\n T: () => SynchronizerParametersState,\n },\n {\n no: 12,\n name: 'mediator_synchronizer_state',\n kind: 'message',\n oneof: 'mapping',\n T: () => MediatorSynchronizerState,\n },\n {\n no: 13,\n name: 'sequencer_synchronizer_state',\n kind: 'message',\n oneof: 'mapping',\n T: () => SequencerSynchronizerState,\n },\n {\n no: 14,\n name: 'purge_topology_txs',\n kind: 'message',\n oneof: 'mapping',\n T: () => PurgeTopologyTransaction,\n },\n {\n no: 15,\n name: 'sequencing_dynamic_parameters_state',\n kind: 'message',\n oneof: 'mapping',\n T: () => DynamicSequencingParametersState,\n },\n {\n no: 16,\n name: 'party_to_key_mapping',\n kind: 'message',\n oneof: 'mapping',\n T: () => PartyToKeyMapping,\n },\n ])\n }\n create(value?: PartialMessage<TopologyMapping>): TopologyMapping {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.mapping = { oneofKind: undefined }\n if (value !== undefined)\n reflectionMergePartial<TopologyMapping>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: TopologyMapping\n ): TopologyMapping {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* com.digitalasset.canton.protocol.v30.NamespaceDelegation namespace_delegation */ 1:\n message.mapping = {\n oneofKind: 'namespaceDelegation',\n namespaceDelegation:\n NamespaceDelegation.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any).namespaceDelegation\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.DecentralizedNamespaceDefinition decentralized_namespace_definition */ 3:\n message.mapping = {\n oneofKind: 'decentralizedNamespaceDefinition',\n decentralizedNamespaceDefinition:\n DecentralizedNamespaceDefinition.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any)\n .decentralizedNamespaceDefinition\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.OwnerToKeyMapping owner_to_key_mapping */ 4:\n message.mapping = {\n oneofKind: 'ownerToKeyMapping',\n ownerToKeyMapping: OwnerToKeyMapping.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any).ownerToKeyMapping\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.SynchronizerTrustCertificate synchronizer_trust_certificate */ 5:\n message.mapping = {\n oneofKind: 'synchronizerTrustCertificate',\n synchronizerTrustCertificate:\n SynchronizerTrustCertificate.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any)\n .synchronizerTrustCertificate\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.ParticipantSynchronizerPermission participant_permission */ 6:\n message.mapping = {\n oneofKind: 'participantPermission',\n participantPermission:\n ParticipantSynchronizerPermission.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any).participantPermission\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.PartyHostingLimits party_hosting_limits */ 7:\n message.mapping = {\n oneofKind: 'partyHostingLimits',\n partyHostingLimits:\n PartyHostingLimits.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any).partyHostingLimits\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.VettedPackages vetted_packages */ 8:\n message.mapping = {\n oneofKind: 'vettedPackages',\n vettedPackages: VettedPackages.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any).vettedPackages\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.PartyToParticipant party_to_participant */ 9:\n message.mapping = {\n oneofKind: 'partyToParticipant',\n partyToParticipant:\n PartyToParticipant.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any).partyToParticipant\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.SynchronizerParametersState synchronizer_parameters_state */ 11:\n message.mapping = {\n oneofKind: 'synchronizerParametersState',\n synchronizerParametersState:\n SynchronizerParametersState.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any)\n .synchronizerParametersState\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.MediatorSynchronizerState mediator_synchronizer_state */ 12:\n message.mapping = {\n oneofKind: 'mediatorSynchronizerState',\n mediatorSynchronizerState:\n MediatorSynchronizerState.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any)\n .mediatorSynchronizerState\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.SequencerSynchronizerState sequencer_synchronizer_state */ 13:\n message.mapping = {\n oneofKind: 'sequencerSynchronizerState',\n sequencerSynchronizerState:\n SequencerSynchronizerState.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any)\n .sequencerSynchronizerState\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.PurgeTopologyTransaction purge_topology_txs */ 14:\n message.mapping = {\n oneofKind: 'purgeTopologyTxs',\n purgeTopologyTxs:\n PurgeTopologyTransaction.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any).purgeTopologyTxs\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.DynamicSequencingParametersState sequencing_dynamic_parameters_state */ 15:\n message.mapping = {\n oneofKind: 'sequencingDynamicParametersState',\n sequencingDynamicParametersState:\n DynamicSequencingParametersState.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any)\n .sequencingDynamicParametersState\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.PartyToKeyMapping party_to_key_mapping */ 16:\n message.mapping = {\n oneofKind: 'partyToKeyMapping',\n partyToKeyMapping: PartyToKeyMapping.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any).partyToKeyMapping\n ),\n }\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: TopologyMapping,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* com.digitalasset.canton.protocol.v30.NamespaceDelegation namespace_delegation = 1; */\n if (message.mapping.oneofKind === 'namespaceDelegation')\n NamespaceDelegation.internalBinaryWrite(\n message.mapping.namespaceDelegation,\n writer.tag(1, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.DecentralizedNamespaceDefinition decentralized_namespace_definition = 3; */\n if (message.mapping.oneofKind === 'decentralizedNamespaceDefinition')\n DecentralizedNamespaceDefinition.internalBinaryWrite(\n message.mapping.decentralizedNamespaceDefinition,\n writer.tag(3, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.OwnerToKeyMapping owner_to_key_mapping = 4; */\n if (message.mapping.oneofKind === 'ownerToKeyMapping')\n OwnerToKeyMapping.internalBinaryWrite(\n message.mapping.ownerToKeyMapping,\n writer.tag(4, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.SynchronizerTrustCertificate synchronizer_trust_certificate = 5; */\n if (message.mapping.oneofKind === 'synchronizerTrustCertificate')\n SynchronizerTrustCertificate.internalBinaryWrite(\n message.mapping.synchronizerTrustCertificate,\n writer.tag(5, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.ParticipantSynchronizerPermission participant_permission = 6; */\n if (message.mapping.oneofKind === 'participantPermission')\n ParticipantSynchronizerPermission.internalBinaryWrite(\n message.mapping.participantPermission,\n writer.tag(6, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.PartyHostingLimits party_hosting_limits = 7; */\n if (message.mapping.oneofKind === 'partyHostingLimits')\n PartyHostingLimits.internalBinaryWrite(\n message.mapping.partyHostingLimits,\n writer.tag(7, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.VettedPackages vetted_packages = 8; */\n if (message.mapping.oneofKind === 'vettedPackages')\n VettedPackages.internalBinaryWrite(\n message.mapping.vettedPackages,\n writer.tag(8, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.PartyToParticipant party_to_participant = 9; */\n if (message.mapping.oneofKind === 'partyToParticipant')\n PartyToParticipant.internalBinaryWrite(\n message.mapping.partyToParticipant,\n writer.tag(9, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.SynchronizerParametersState synchronizer_parameters_state = 11; */\n if (message.mapping.oneofKind === 'synchronizerParametersState')\n SynchronizerParametersState.internalBinaryWrite(\n message.mapping.synchronizerParametersState,\n writer.tag(11, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.MediatorSynchronizerState mediator_synchronizer_state = 12; */\n if (message.mapping.oneofKind === 'mediatorSynchronizerState')\n MediatorSynchronizerState.internalBinaryWrite(\n message.mapping.mediatorSynchronizerState,\n writer.tag(12, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.SequencerSynchronizerState sequencer_synchronizer_state = 13; */\n if (message.mapping.oneofKind === 'sequencerSynchronizerState')\n SequencerSynchronizerState.internalBinaryWrite(\n message.mapping.sequencerSynchronizerState,\n writer.tag(13, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.PurgeTopologyTransaction purge_topology_txs = 14; */\n if (message.mapping.oneofKind === 'purgeTopologyTxs')\n PurgeTopologyTransaction.internalBinaryWrite(\n message.mapping.purgeTopologyTxs,\n writer.tag(14, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.DynamicSequencingParametersState sequencing_dynamic_parameters_state = 15; */\n if (message.mapping.oneofKind === 'sequencingDynamicParametersState')\n DynamicSequencingParametersState.internalBinaryWrite(\n message.mapping.sequencingDynamicParametersState,\n writer.tag(15, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.PartyToKeyMapping party_to_key_mapping = 16; */\n if (message.mapping.oneofKind === 'partyToKeyMapping')\n PartyToKeyMapping.internalBinaryWrite(\n message.mapping.partyToKeyMapping,\n writer.tag(16, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.TopologyMapping\n */\nexport const TopologyMapping = new TopologyMapping$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass TopologyTransaction$Type extends MessageType<TopologyTransaction> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.TopologyTransaction',\n [\n {\n no: 1,\n name: 'operation',\n kind: 'enum',\n T: () => [\n 'com.digitalasset.canton.protocol.v30.Enums.TopologyChangeOp',\n Enums_TopologyChangeOp,\n 'TOPOLOGY_CHANGE_OP_',\n ],\n },\n {\n no: 2,\n name: 'serial',\n kind: 'scalar',\n T: 13 /*ScalarType.UINT32*/,\n },\n {\n no: 3,\n name: 'mapping',\n kind: 'message',\n T: () => TopologyMapping,\n },\n ],\n {\n 'scalapb.message': {\n companionExtends: [\n 'com.digitalasset.canton.version.StableProtoVersion',\n ],\n },\n }\n )\n }\n create(value?: PartialMessage<TopologyTransaction>): TopologyTransaction {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.operation = 0\n message.serial = 0\n if (value !== undefined)\n reflectionMergePartial<TopologyTransaction>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: TopologyTransaction\n ): TopologyTransaction {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* com.digitalasset.canton.protocol.v30.Enums.TopologyChangeOp operation */ 1:\n message.operation = reader.int32()\n break\n case /* uint32 serial */ 2:\n message.serial = reader.uint32()\n break\n case /* com.digitalasset.canton.protocol.v30.TopologyMapping mapping */ 3:\n message.mapping = TopologyMapping.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.mapping\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: TopologyTransaction,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* com.digitalasset.canton.protocol.v30.Enums.TopologyChangeOp operation = 1; */\n if (message.operation !== 0)\n writer.tag(1, WireType.Varint).int32(message.operation)\n /* uint32 serial = 2; */\n if (message.serial !== 0)\n writer.tag(2, WireType.Varint).uint32(message.serial)\n /* com.digitalasset.canton.protocol.v30.TopologyMapping mapping = 3; */\n if (message.mapping)\n TopologyMapping.internalBinaryWrite(\n message.mapping,\n writer.tag(3, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.TopologyTransaction\n */\nexport const TopologyTransaction = new TopologyTransaction$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass MultiTransactionSignatures$Type extends MessageType<MultiTransactionSignatures> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.MultiTransactionSignatures',\n [\n {\n no: 1,\n name: 'transaction_hashes',\n kind: 'scalar',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: 12 /*ScalarType.BYTES*/,\n },\n {\n no: 2,\n name: 'signatures',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => Signature,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<MultiTransactionSignatures>\n ): MultiTransactionSignatures {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.transactionHashes = []\n message.signatures = []\n if (value !== undefined)\n reflectionMergePartial<MultiTransactionSignatures>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: MultiTransactionSignatures\n ): MultiTransactionSignatures {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* repeated bytes transaction_hashes */ 1:\n message.transactionHashes.push(reader.bytes())\n break\n case /* repeated com.digitalasset.canton.crypto.v30.Signature signatures */ 2:\n message.signatures.push(\n Signature.internalBinaryRead(\n reader,\n reader.uint32(),\n options\n )\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: MultiTransactionSignatures,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* repeated bytes transaction_hashes = 1; */\n for (let i = 0; i < message.transactionHashes.length; i++)\n writer\n .tag(1, WireType.LengthDelimited)\n .bytes(message.transactionHashes[i])\n /* repeated com.digitalasset.canton.crypto.v30.Signature signatures = 2; */\n for (let i = 0; i < message.signatures.length; i++)\n Signature.internalBinaryWrite(\n message.signatures[i],\n writer.tag(2, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.MultiTransactionSignatures\n */\nexport const MultiTransactionSignatures = new MultiTransactionSignatures$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass SignedTopologyTransaction$Type extends MessageType<SignedTopologyTransaction> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.SignedTopologyTransaction',\n [\n {\n no: 1,\n name: 'transaction',\n kind: 'scalar',\n T: 12 /*ScalarType.BYTES*/,\n },\n {\n no: 2,\n name: 'signatures',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => Signature,\n },\n {\n no: 3,\n name: 'proposal',\n kind: 'scalar',\n T: 8 /*ScalarType.BOOL*/,\n },\n {\n no: 4,\n name: 'multi_transaction_signatures',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => MultiTransactionSignatures,\n },\n ],\n {\n 'scalapb.message': {\n companionExtends: [\n 'com.digitalasset.canton.version.StableProtoVersion',\n ],\n },\n }\n )\n }\n create(\n value?: PartialMessage<SignedTopologyTransaction>\n ): SignedTopologyTransaction {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.transaction = new Uint8Array(0)\n message.signatures = []\n message.proposal = false\n message.multiTransactionSignatures = []\n if (value !== undefined)\n reflectionMergePartial<SignedTopologyTransaction>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: SignedTopologyTransaction\n ): SignedTopologyTransaction {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* bytes transaction */ 1:\n message.transaction = reader.bytes()\n break\n case /* repeated com.digitalasset.canton.crypto.v30.Signature signatures */ 2:\n message.signatures.push(\n Signature.internalBinaryRead(\n reader,\n reader.uint32(),\n options\n )\n )\n break\n case /* bool proposal */ 3:\n message.proposal = reader.bool()\n break\n case /* repeated com.digitalasset.canton.protocol.v30.MultiTransactionSignatures multi_transaction_signatures */ 4:\n message.multiTransactionSignatures.push(\n MultiTransactionSignatures.internalBinaryRead(\n reader,\n reader.uint32(),\n options\n )\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: SignedTopologyTransaction,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* bytes transaction = 1; */\n if (message.transaction.length)\n writer.tag(1, WireType.LengthDelimited).bytes(message.transaction)\n /* repeated com.digitalasset.canton.crypto.v30.Signature signatures = 2; */\n for (let i = 0; i < message.signatures.length; i++)\n Signature.internalBinaryWrite(\n message.signatures[i],\n writer.tag(2, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* bool proposal = 3; */\n if (message.proposal !== false)\n writer.tag(3, WireType.Varint).bool(message.proposal)\n /* repeated com.digitalasset.canton.protocol.v30.MultiTransactionSignatures multi_transaction_signatures = 4; */\n for (let i = 0; i < message.multiTransactionSignatures.length; i++)\n MultiTransactionSignatures.internalBinaryWrite(\n message.multiTransactionSignatures[i],\n writer.tag(4, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.SignedTopologyTransaction\n */\nexport const SignedTopologyTransaction = new SignedTopologyTransaction$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass SignedTopologyTransactions$Type extends MessageType<SignedTopologyTransactions> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.SignedTopologyTransactions',\n [\n {\n no: 1,\n name: 'signed_transaction',\n kind: 'scalar',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: 12 /*ScalarType.BYTES*/,\n },\n ],\n {\n 'scalapb.message': {\n companionExtends: [\n 'com.digitalasset.canton.version.StableProtoVersion',\n ],\n },\n }\n )\n }\n create(\n value?: PartialMessage<SignedTopologyTransactions>\n ): SignedTopologyTransactions {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.signedTransaction = []\n if (value !== undefined)\n reflectionMergePartial<SignedTopologyTransactions>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: SignedTopologyTransactions\n ): SignedTopologyTransactions {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* repeated bytes signed_transaction */ 1:\n message.signedTransaction.push(reader.bytes())\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: SignedTopologyTransactions,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* repeated bytes signed_transaction = 1; */\n for (let i = 0; i < message.signedTransaction.length; i++)\n writer\n .tag(1, WireType.LengthDelimited)\n .bytes(message.signedTransaction[i])\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.SignedTopologyTransactions\n */\nexport const SignedTopologyTransactions = new SignedTopologyTransactions$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass TopologyTransactionsBroadcast$Type extends MessageType<TopologyTransactionsBroadcast> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.TopologyTransactionsBroadcast',\n [\n {\n no: 1,\n name: 'synchronizer_id',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'signed_transactions',\n kind: 'message',\n T: () => SignedTopologyTransactions,\n },\n ],\n {\n 'scalapb.message': {\n companionExtends: [\n 'com.digitalasset.canton.version.StableProtoVersion',\n ],\n },\n }\n )\n }\n create(\n value?: PartialMessage<TopologyTransactionsBroadcast>\n ): TopologyTransactionsBroadcast {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.synchronizerId = ''\n if (value !== undefined)\n reflectionMergePartial<TopologyTransactionsBroadcast>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: TopologyTransactionsBroadcast\n ): TopologyTransactionsBroadcast {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string synchronizer_id */ 1:\n message.synchronizerId = reader.string()\n break\n case /* com.digitalasset.canton.protocol.v30.SignedTopologyTransactions signed_transactions */ 2:\n message.signedTransactions =\n SignedTopologyTransactions.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.signedTransactions\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: TopologyTransactionsBroadcast,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string synchronizer_id = 1; */\n if (message.synchronizerId !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.synchronizerId)\n /* com.digitalasset.canton.protocol.v30.SignedTopologyTransactions signed_transactions = 2; */\n if (message.signedTransactions)\n SignedTopologyTransactions.internalBinaryWrite(\n message.signedTransactions,\n writer.tag(2, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.TopologyTransactionsBroadcast\n */\nexport const TopologyTransactionsBroadcast =\n new TopologyTransactionsBroadcast$Type()\n"],"mappings":";;;;;;;;;;;;;;AAQA;;","names":[]}
1
+ {"version":3,"sources":["../../../../../../../../src/_proto/com/digitalasset/canton/protocol/v30/topology.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies\n// @generated from protobuf file \"com/digitalasset/canton/protocol/v30/topology.proto\" (package \"com.digitalasset.canton.protocol.v30\", syntax proto3)\n// tslint:disable\n//\n// Copyright (c) 2025 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n//\nimport { WireType } from '@protobuf-ts/runtime'\nimport type { BinaryWriteOptions } from '@protobuf-ts/runtime'\nimport type { IBinaryWriter } from '@protobuf-ts/runtime'\nimport type { BinaryReadOptions } from '@protobuf-ts/runtime'\nimport type { IBinaryReader } from '@protobuf-ts/runtime'\nimport { UnknownFieldHandler } from '@protobuf-ts/runtime'\nimport type { PartialMessage } from '@protobuf-ts/runtime'\nimport { reflectionMergePartial } from '@protobuf-ts/runtime'\nimport { MessageType } from '@protobuf-ts/runtime'\nimport { Signature } from '../../crypto/v30/crypto.js'\nimport { DynamicSequencingParameters } from './sequencing_parameters.js'\nimport { DynamicSynchronizerParameters } from './synchronizer_parameters.js'\nimport { Timestamp } from '../../../../../google/protobuf/timestamp.js'\nimport { ParticipantSynchronizerLimits } from './synchronizer_parameters.js'\nimport { PublicKey } from '../../crypto/v30/crypto.js'\nimport { SigningPublicKey } from '../../crypto/v30/crypto.js'\n/**\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.Enums\n */\nexport interface Enums {}\n/**\n * @generated from protobuf enum com.digitalasset.canton.protocol.v30.Enums.TopologyChangeOp\n */\nexport enum Enums_TopologyChangeOp {\n /**\n * @generated from protobuf enum value: TOPOLOGY_CHANGE_OP_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * Adds a new or replaces an existing mapping\n *\n * @generated from protobuf enum value: TOPOLOGY_CHANGE_OP_ADD_REPLACE = 1;\n */\n ADD_REPLACE = 1,\n /**\n * Remove an existing mapping\n *\n * @generated from protobuf enum value: TOPOLOGY_CHANGE_OP_REMOVE = 2;\n */\n REMOVE = 2,\n}\n/**\n * enum indicating the participant permission level\n * Regardless of the ParticipantPermission level, all participants can submit a reassignment.\n *\n * @generated from protobuf enum com.digitalasset.canton.protocol.v30.Enums.ParticipantPermission\n */\nexport enum Enums_ParticipantPermission {\n /**\n * @generated from protobuf enum value: PARTICIPANT_PERMISSION_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * participant is active, can submit transactions and reassignments\n *\n * @generated from protobuf enum value: PARTICIPANT_PERMISSION_SUBMISSION = 1;\n */\n SUBMISSION = 1,\n /**\n * participant is passive, can only confirm transactions and submit reassignments\n *\n * @generated from protobuf enum value: PARTICIPANT_PERMISSION_CONFIRMATION = 2;\n */\n CONFIRMATION = 2,\n /**\n * participant is passive, can only observe transactions and submit reassignments\n *\n * @generated from protobuf enum value: PARTICIPANT_PERMISSION_OBSERVATION = 3;\n */\n OBSERVATION = 3,\n}\n/**\n * @generated from protobuf enum com.digitalasset.canton.protocol.v30.Enums.TopologyMappingCode\n */\nexport enum Enums_TopologyMappingCode {\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_NAMESPACE_DELEGATION = 1;\n */\n NAMESPACE_DELEGATION = 1,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_DECENTRALIZED_NAMESPACE_DEFINITION = 3;\n */\n DECENTRALIZED_NAMESPACE_DEFINITION = 3,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_OWNER_TO_KEY_MAPPING = 4;\n */\n OWNER_TO_KEY_MAPPING = 4,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_SYNCHRONIZER_TRUST_CERTIFICATE = 5;\n */\n SYNCHRONIZER_TRUST_CERTIFICATE = 5,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_PARTICIPANT_PERMISSION = 6;\n */\n PARTICIPANT_PERMISSION = 6,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_PARTY_HOSTING_LIMITS = 7;\n */\n PARTY_HOSTING_LIMITS = 7,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_VETTED_PACKAGES = 8;\n */\n VETTED_PACKAGES = 8,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_PARTY_TO_PARTICIPANT = 9;\n */\n PARTY_TO_PARTICIPANT = 9,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_SYNCHRONIZER_PARAMETERS_STATE = 11;\n */\n SYNCHRONIZER_PARAMETERS_STATE = 11,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_MEDIATOR_SYNCHRONIZER_STATE = 12;\n */\n MEDIATOR_SYNCHRONIZER_STATE = 12,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_SEQUENCER_SYNCHRONIZER_STATE = 13;\n */\n SEQUENCER_SYNCHRONIZER_STATE = 13,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_PURGE_TOPOLOGY_TXS = 15;\n */\n PURGE_TOPOLOGY_TXS = 15,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_SEQUENCING_DYNAMIC_PARAMETERS_STATE = 17;\n */\n SEQUENCING_DYNAMIC_PARAMETERS_STATE = 17,\n /**\n * @generated from protobuf enum value: TOPOLOGY_MAPPING_CODE_PARTY_TO_KEY_MAPPING = 18;\n */\n PARTY_TO_KEY_MAPPING = 18,\n}\n/**\n * [start NamespaceDelegation definition]\n * namespace delegation (equivalent to X509v3 CA root or intermediate CAs)\n * if is_root_delegation==false, the target key may sign all mappings requiring a signature\n * for the namespace except other NamespaceDelegation mappings.\n * authorization: a namespace delegation is either signed by the root key, or is signed by\n * a key for which there exists a series of properly authorized namespace delegations\n * that are ultimately signed by the root key\n * UNIQUE(namespace, target_key)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.NamespaceDelegation\n */\nexport interface NamespaceDelegation {\n /**\n * fingerprint of the root key defining the namespace\n *\n * @generated from protobuf field: string namespace = 1\n */\n namespace: string\n /**\n * target key of getting full rights on the namespace (if target == namespace, it's a root CA)\n *\n * @generated from protobuf field: com.digitalasset.canton.crypto.v30.SigningPublicKey target_key = 2\n */\n targetKey?: SigningPublicKey\n /**\n * flag indicating whether the given delegation is a root delegation or not\n * a root delegation is also allowed to issue other NamespaceDelegations.\n *\n * @deprecated\n * @generated from protobuf field: bool is_root_delegation = 3 [deprecated = true]\n */\n isRootDelegation: boolean\n /**\n * restricts target_key to only sign transactions with the specified mapping types.\n * for backwards compatibility, only the following combinations are valid:\n * * is_root_delegation = true, restriction = empty: the key can sign all mappings\n * * is_root_delegation = false, restriction = empty: the key can sign all mappings but namespace delegations\n * * is_root_delegation = false, restriction = non-empty: the key can only sign the mappings according the restriction that is set\n *\n * @generated from protobuf oneof: restriction\n */\n restriction:\n | {\n oneofKind: 'canSignAllMappings'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllMappings can_sign_all_mappings = 4\n */\n canSignAllMappings: NamespaceDelegation_CanSignAllMappings\n }\n | {\n oneofKind: 'canSignAllButNamespaceDelegations'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllButNamespaceDelegations can_sign_all_but_namespace_delegations = 5\n */\n canSignAllButNamespaceDelegations: NamespaceDelegation_CanSignAllButNamespaceDelegations\n }\n | {\n oneofKind: 'canSignSpecificMapings'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignSpecificMappings can_sign_specific_mapings = 6\n */\n canSignSpecificMapings: NamespaceDelegation_CanSignSpecificMappings\n }\n | {\n oneofKind: undefined\n }\n}\n/**\n * [start-docs-entry: namespace delegation restrictions]\n * the key can sign all currently known mappings and all mappings that will be added in future releases\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllMappings\n */\nexport interface NamespaceDelegation_CanSignAllMappings {}\n/**\n * the key can sign all currently known mappings and all mappings that will be added in future releases, except for\n * namespace delegations\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllButNamespaceDelegations\n */\nexport interface NamespaceDelegation_CanSignAllButNamespaceDelegations {}\n/**\n * the key can only sign the explicitly specified mappings\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignSpecificMappings\n */\nexport interface NamespaceDelegation_CanSignSpecificMappings {\n /**\n * @generated from protobuf field: repeated com.digitalasset.canton.protocol.v30.Enums.TopologyMappingCode mappings = 1\n */\n mappings: Enums_TopologyMappingCode[]\n}\n/**\n * a decentralized namespace definition that creates a new namespace supported by the\n * the original owners\n * authorization: the decentralized namespace definition with serial = 1 must be authorized by all the\n * owners of the namespace that form the decentralized namespace.\n * for definitions with serial > 1, we need the authorization of #threshold owners plus\n * all new owners\n *\n * any further transaction within the decentralized namespace other than decentralized namespace definitions needs\n * #threshold signatures of the owners\n *\n * UNIQUE(decentralized_namespace)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.DecentralizedNamespaceDefinition\n */\nexport interface DecentralizedNamespaceDefinition {\n /**\n * name of the decentralized namespace, computed from the hash of its initial owners\n *\n * @generated from protobuf field: string decentralized_namespace = 1\n */\n decentralizedNamespace: string\n /**\n * the threshold required for any subsequent update signing\n *\n * @generated from protobuf field: int32 threshold = 2\n */\n threshold: number\n /**\n * the namespaces of the owners\n *\n * @generated from protobuf field: repeated string owners = 3\n */\n owners: string[]\n}\n/**\n * mapping a member (participant, mediator, sequencer) to a key\n * authorization: whoever controls the member uid\n * UNIQUE(member)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.OwnerToKeyMapping\n */\nexport interface OwnerToKeyMapping {\n /**\n * the sequencing process member\n *\n * @generated from protobuf field: string member = 1\n */\n member: string\n /**\n * the designated keys\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.crypto.v30.PublicKey public_keys = 2\n */\n publicKeys: PublicKey[]\n}\n/**\n * [doc-entry-start: PartyToKeyMapping]\n * mapping a party to a key\n * authorization: whoever controls the party uid\n * UNIQUE(party)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.PartyToKeyMapping\n */\nexport interface PartyToKeyMapping {\n /**\n * the party\n *\n * @generated from protobuf field: string party = 1\n */\n party: string\n /**\n * the authorization threshold\n *\n * @generated from protobuf field: uint32 threshold = 3\n */\n threshold: number\n /**\n * the designated signing keys\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.crypto.v30.SigningPublicKey signing_keys = 4\n */\n signingKeys: SigningPublicKey[]\n}\n/**\n * the trust certificate issued by the participant confirming that the participant\n * wishes to be present on the given synchronizer\n * authorization: whoever controls the participant uid\n * UNIQUE(participant,synchronizer_id)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.SynchronizerTrustCertificate\n */\nexport interface SynchronizerTrustCertificate {\n /**\n * the uid of the participant\n *\n * @generated from protobuf field: string participant_uid = 1\n */\n participantUid: string\n /**\n * the uid of the synchronizer that the participant trusts\n *\n * @generated from protobuf field: string synchronizer_id = 2\n */\n synchronizerId: string\n}\n/**\n * the optional trust certificate of the synchronizer towards the participant\n * authorization: whoever controls the synchronizer id\n * UNIQUE(synchronizer_id,participant)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.ParticipantSynchronizerPermission\n */\nexport interface ParticipantSynchronizerPermission {\n /**\n * @generated from protobuf field: string synchronizer_id = 1\n */\n synchronizerId: string\n /**\n * @generated from protobuf field: string participant_uid = 2\n */\n participantUid: string\n /**\n * the permission level of the participant on this synchronizer (usually submission)\n *\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.Enums.ParticipantPermission permission = 3\n */\n permission: Enums_ParticipantPermission\n /**\n * optional individual limits for this participant\n *\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.ParticipantSynchronizerLimits limits = 4\n */\n limits?: ParticipantSynchronizerLimits\n /**\n * optional earliest time when participant can log in (again)\n * used to temporarily disable participants\n * In microseconds of UTC time since Unix epoch\n *\n * @generated from protobuf field: optional int64 login_after = 5\n */\n loginAfter?: bigint\n}\n/**\n * the optional hosting limits for a party on a given synchronizer\n * these limits can be used to limit the number of participants that can host a given party\n * authorization: whoever controls the synchronizer id\n * UNIQUE(synchronizer_id,party)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.PartyHostingLimits\n */\nexport interface PartyHostingLimits {\n /**\n * @generated from protobuf field: string synchronizer_id = 1\n */\n synchronizerId: string\n /**\n * @generated from protobuf field: string party = 2\n */\n party: string\n}\n/**\n * list of packages supported by this participant\n * authorization: whoever controls the participant uid\n * UNIQUE(participant)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.VettedPackages\n */\nexport interface VettedPackages {\n /**\n * the participant vetting the packages\n *\n * @generated from protobuf field: string participant_uid = 1\n */\n participantUid: string\n /**\n * DEPRECATED: no longer used, but kept for backwards compatibility.\n * the hashes of the vetted packages.\n * package hashes may only be listed in one of the two fields: package_ids or packages.\n * a package listed in package_ids is equivalent to a package listed in packages with unbounded validity.\n *\n * @deprecated\n * @generated from protobuf field: repeated string package_ids = 2 [deprecated = true]\n */\n packageIds: string[]\n /**\n * the hashes of vetted packages with a validity period.\n * only one entry per package_id is permitted.\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.protocol.v30.VettedPackages.VettedPackage packages = 4\n */\n packages: VettedPackages_VettedPackage[]\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.VettedPackages.VettedPackage\n */\nexport interface VettedPackages_VettedPackage {\n /**\n * the hash of the vetted package\n *\n * @generated from protobuf field: string package_id = 1\n */\n packageId: string\n /**\n * optional earliest ledger effective time (exclusive) as of which the package is considered valid.\n * must be less than or equal to valid_until if both are present.\n *\n * @generated from protobuf field: google.protobuf.Timestamp valid_from = 2\n */\n validFrom?: Timestamp\n /**\n * optional latest ledger effective time (inclusive) until which the package is considered valid.\n * must be greater than or equal to valid_from if both are present.\n *\n * @generated from protobuf field: google.protobuf.Timestamp valid_until = 3\n */\n validUntil?: Timestamp\n}\n/**\n * mapping that maps a party to a participant\n * authorization: whoever controls the party and all the owners of the participants that\n * were not already present in the tx with serial = n - 1\n * exception:\n * - a participant can disassociate itself with the party unilaterally as long there will be\n * enough participants to reach \"threshold\" during confirmation. The disassociating participant\n * must lower the threshold by one, if otherwise the number of hosting participants would go\n * below the threshold.\n * UNIQUE(party)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.PartyToParticipant\n */\nexport interface PartyToParticipant {\n /**\n * the party that is to be represented by the participants\n *\n * @generated from protobuf field: string party = 1\n */\n party: string\n /**\n * the signatory threshold required by the participants to be able to act on behalf of the party.\n * a mapping with threshold > 1 is considered a definition of a consortium party\n *\n * @generated from protobuf field: uint32 threshold = 2\n */\n threshold: number\n /**\n * which participants will host the party.\n * if threshold > 1, must be Confirmation or Observation\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.protocol.v30.PartyToParticipant.HostingParticipant participants = 3\n */\n participants: PartyToParticipant_HostingParticipant[]\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.PartyToParticipant.HostingParticipant\n */\nexport interface PartyToParticipant_HostingParticipant {\n /**\n * the target participant that the party should be mapped to\n *\n * @generated from protobuf field: string participant_uid = 1\n */\n participantUid: string\n /**\n * permission of the participant for this particular party (the actual\n * will be min of ParticipantSynchronizerPermission.ParticipantPermission and this setting)\n *\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.Enums.ParticipantPermission permission = 2\n */\n permission: Enums_ParticipantPermission\n}\n/**\n * which dynamic synchronizer parameters are supposed to be used on the given synchronizer\n * authorization: whoever controls the synchronizer\n * UNIQUE(synchronizer_id)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.SynchronizerParametersState\n */\nexport interface SynchronizerParametersState {\n /**\n * synchronizer affected by the new synchronizer parameters\n *\n * @generated from protobuf field: string synchronizer_id = 1\n */\n synchronizerId: string\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.DynamicSynchronizerParameters synchronizer_parameters = 2\n */\n synchronizerParameters?: DynamicSynchronizerParameters\n}\n/**\n * which sequencing dynamic parameters are supposed to be used on the given synchronizer; defaults are used when not set\n * authorization: whoever controls the synchronizer\n * UNIQUE(synchronizer_id)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.DynamicSequencingParametersState\n */\nexport interface DynamicSequencingParametersState {\n /**\n * synchronizer affected by the new synchronizer parameters\n *\n * @generated from protobuf field: string synchronizer_id = 1\n */\n synchronizerId: string\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.DynamicSequencingParameters sequencing_parameters = 2\n */\n sequencingParameters?: DynamicSequencingParameters\n}\n/**\n * which mediators and mediator groups are active on the given synchronizer\n * authorization: whoever controls the synchronizer\n * UNIQUE(synchronizer_id, group)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.MediatorSynchronizerState\n */\nexport interface MediatorSynchronizerState {\n /**\n * the synchronizer id of the mediator group\n *\n * @generated from protobuf field: string synchronizer_id = 1\n */\n synchronizerId: string\n /**\n * the group-id used for sharding multiple mediator groups\n *\n * @generated from protobuf field: uint32 group = 2\n */\n group: number\n /**\n * the signature threshold required to reach consensus among the mediators\n *\n * @generated from protobuf field: uint32 threshold = 3\n */\n threshold: number\n /**\n * the list of active mediators (uid) within the group\n *\n * @generated from protobuf field: repeated string active = 4\n */\n active: string[]\n /**\n * the list of observing mediators (uid) within the group (read messages but don't respond)\n *\n * @generated from protobuf field: repeated string observers = 5\n */\n observers: string[]\n}\n/**\n * which sequencers are active on the given synchronizer\n * authorization: whoever controls the synchronizer\n * UNIQUE(synchronizer_id)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.SequencerSynchronizerState\n */\nexport interface SequencerSynchronizerState {\n /**\n * the synchronizer id of the sequencer group\n *\n * @generated from protobuf field: string synchronizer_id = 1\n */\n synchronizerId: string\n /**\n * The system can tolerate up to min(threshold - 1, (activeWithSigningKey.size - 1)/3) malicious active sequencers,\n * where activeWithSigningKey is the set of sequencers from active that have an active OwnerToKeyMapping with a signing key.\n * In order to make the system resilient against f malicious active sequencers, you need to:\n * (1) configure threshold := f + 1,\n * (2) possibly add active sequencers such that f <= (activeWithSigningKey.size - 1)/3.\n * (3) possibly register signing keys for active sequencers,\n *\n * @generated from protobuf field: uint32 threshold = 2\n */\n threshold: number\n /**\n * the list of active sequencers\n * If a sequencer without an active signing key is added to this set, it has no effect on the topology state.\n *\n * @generated from protobuf field: repeated string active = 3\n */\n active: string[]\n /**\n * the list of observing sequencers (uid) within the group (read messages but don't respond)\n *\n * @generated from protobuf field: repeated string observers = 4\n */\n observers: string[]\n}\n/**\n * explicitly invalidate topology transactions for good\n * this can be used by the synchronizer to offboard participants forcefully or to\n * remove stray topology transactions\n * authorization: whoever controls the synchronizer\n * UNIQUE(synchronizer_id)\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.PurgeTopologyTransaction\n */\nexport interface PurgeTopologyTransaction {\n /**\n * the synchronizer id\n *\n * @generated from protobuf field: string synchronizer_id = 1\n */\n synchronizerId: string\n /**\n * the list of mappings to remove from this synchronizer\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.protocol.v30.TopologyMapping mappings = 2\n */\n mappings: TopologyMapping[]\n}\n/**\n * [docs-entry-start: topology mapping]\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.TopologyMapping\n */\nexport interface TopologyMapping {\n /**\n * @generated from protobuf oneof: mapping\n */\n mapping:\n | {\n oneofKind: 'namespaceDelegation'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.NamespaceDelegation namespace_delegation = 1\n */\n namespaceDelegation: NamespaceDelegation\n }\n | {\n oneofKind: 'decentralizedNamespaceDefinition'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.DecentralizedNamespaceDefinition decentralized_namespace_definition = 3\n */\n decentralizedNamespaceDefinition: DecentralizedNamespaceDefinition\n }\n | {\n oneofKind: 'ownerToKeyMapping'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.OwnerToKeyMapping owner_to_key_mapping = 4\n */\n ownerToKeyMapping: OwnerToKeyMapping\n }\n | {\n oneofKind: 'synchronizerTrustCertificate'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.SynchronizerTrustCertificate synchronizer_trust_certificate = 5\n */\n synchronizerTrustCertificate: SynchronizerTrustCertificate\n }\n | {\n oneofKind: 'participantPermission'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.ParticipantSynchronizerPermission participant_permission = 6\n */\n participantPermission: ParticipantSynchronizerPermission\n }\n | {\n oneofKind: 'partyHostingLimits'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.PartyHostingLimits party_hosting_limits = 7\n */\n partyHostingLimits: PartyHostingLimits\n }\n | {\n oneofKind: 'vettedPackages'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.VettedPackages vetted_packages = 8\n */\n vettedPackages: VettedPackages\n }\n | {\n oneofKind: 'partyToParticipant'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.PartyToParticipant party_to_participant = 9\n */\n partyToParticipant: PartyToParticipant\n }\n | {\n oneofKind: 'synchronizerParametersState'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.SynchronizerParametersState synchronizer_parameters_state = 11\n */\n synchronizerParametersState: SynchronizerParametersState\n }\n | {\n oneofKind: 'mediatorSynchronizerState'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.MediatorSynchronizerState mediator_synchronizer_state = 12\n */\n mediatorSynchronizerState: MediatorSynchronizerState\n }\n | {\n oneofKind: 'sequencerSynchronizerState'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.SequencerSynchronizerState sequencer_synchronizer_state = 13\n */\n sequencerSynchronizerState: SequencerSynchronizerState\n }\n | {\n oneofKind: 'purgeTopologyTxs'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.PurgeTopologyTransaction purge_topology_txs = 14\n */\n purgeTopologyTxs: PurgeTopologyTransaction\n }\n | {\n oneofKind: 'sequencingDynamicParametersState'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.DynamicSequencingParametersState sequencing_dynamic_parameters_state = 15\n */\n sequencingDynamicParametersState: DynamicSequencingParametersState\n }\n | {\n oneofKind: 'partyToKeyMapping'\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.PartyToKeyMapping party_to_key_mapping = 16\n */\n partyToKeyMapping: PartyToKeyMapping\n }\n | {\n oneofKind: undefined\n }\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.TopologyTransaction\n */\nexport interface TopologyTransaction {\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.Enums.TopologyChangeOp operation = 1\n */\n operation: Enums_TopologyChangeOp\n /**\n * Serial identifier of this transaction used to prevent replay attacks.\n * A topology transaction is replacing the existing transaction with serial - 1\n * that has the same unique key.\n *\n * @generated from protobuf field: uint32 serial = 2\n */\n serial: number\n /**\n * the element of this topology transaction\n *\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.TopologyMapping mapping = 3\n */\n mapping?: TopologyMapping\n}\n/**\n * Used in SignedTopologyTransaction to bundle together multiple transaction hashes\n * Allows submitters to only sign a single combined hash to authorize multiple transactions at once\n * The combined hash is computed from the transaction hashes\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.MultiTransactionSignatures\n */\nexport interface MultiTransactionSignatures {\n /**\n * List of topology transaction hashes.\n * Required\n *\n * @generated from protobuf field: repeated bytes transaction_hashes = 1\n */\n transactionHashes: Uint8Array[]\n /**\n * Signatures on the combined hash computed over the transaction_hashes\n * MUST contain at least one\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.crypto.v30.Signature signatures = 2\n */\n signatures: Signature[]\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.SignedTopologyTransaction\n */\nexport interface SignedTopologyTransaction {\n /**\n * serialized topology transaction (protobuf bytestring)\n *\n * @generated from protobuf field: bytes transaction = 1\n */\n transaction: Uint8Array\n /**\n * multiple signatures\n * Either this field OR the multi_transaction_signatures field MUST contain at least one signature\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.crypto.v30.Signature signatures = 2\n */\n signatures: Signature[]\n /**\n * if true, this transaction is just a proposal. this means that every signature is valid,\n * but the signatures are insufficient to properly authorize the transaction.\n * proposals are distributed via the topology channel too. proposals will be pruned automatically\n * when the nodes are pruned\n * TODO(#14045) implement pruning\n *\n * @generated from protobuf field: bool proposal = 3\n */\n proposal: boolean\n /**\n * If set, the transaction may be authorized by signing a hash computed from multiple transaction hashes\n * This allows to effectively authorize multiple transactions with a single signature.\n * Each item MUST contain the hash of this transaction\n * Optional\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.protocol.v30.MultiTransactionSignatures multi_transaction_signatures = 4\n */\n multiTransactionSignatures: MultiTransactionSignatures[]\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.SignedTopologyTransactions\n */\nexport interface SignedTopologyTransactions {\n /**\n * serialized signed topology transaction (protobuf bytestring)\n *\n * @generated from protobuf field: repeated bytes signed_transaction = 1\n */\n signedTransaction: Uint8Array[]\n}\n/**\n * * Accepted topology transaction\n *\n * A member sends topology transactions to the topology transaction broadcast address.\n * The transactions are validated by all members individually against their respective synchronizer store,\n * including the member the submitted the broadcast.\n *\n * @generated from protobuf message com.digitalasset.canton.protocol.v30.TopologyTransactionsBroadcast\n */\nexport interface TopologyTransactionsBroadcast {\n /**\n * @generated from protobuf field: string synchronizer_id = 1\n */\n synchronizerId: string\n /**\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.SignedTopologyTransactions signed_transactions = 2\n */\n signedTransactions?: SignedTopologyTransactions\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass Enums$Type extends MessageType<Enums> {\n constructor() {\n super('com.digitalasset.canton.protocol.v30.Enums', [])\n }\n create(value?: PartialMessage<Enums>): Enums {\n const message = globalThis.Object.create(this.messagePrototype!)\n if (value !== undefined)\n reflectionMergePartial<Enums>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: Enums\n ): Enums {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: Enums,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.Enums\n */\nexport const Enums = new Enums$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass NamespaceDelegation$Type extends MessageType<NamespaceDelegation> {\n constructor() {\n super('com.digitalasset.canton.protocol.v30.NamespaceDelegation', [\n {\n no: 1,\n name: 'namespace',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'target_key',\n kind: 'message',\n T: () => SigningPublicKey,\n },\n {\n no: 3,\n name: 'is_root_delegation',\n kind: 'scalar',\n T: 8 /*ScalarType.BOOL*/,\n },\n {\n no: 4,\n name: 'can_sign_all_mappings',\n kind: 'message',\n oneof: 'restriction',\n T: () => NamespaceDelegation_CanSignAllMappings,\n },\n {\n no: 5,\n name: 'can_sign_all_but_namespace_delegations',\n kind: 'message',\n oneof: 'restriction',\n T: () => NamespaceDelegation_CanSignAllButNamespaceDelegations,\n },\n {\n no: 6,\n name: 'can_sign_specific_mapings',\n kind: 'message',\n oneof: 'restriction',\n T: () => NamespaceDelegation_CanSignSpecificMappings,\n },\n ])\n }\n create(value?: PartialMessage<NamespaceDelegation>): NamespaceDelegation {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.namespace = ''\n message.isRootDelegation = false\n message.restriction = { oneofKind: undefined }\n if (value !== undefined)\n reflectionMergePartial<NamespaceDelegation>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: NamespaceDelegation\n ): NamespaceDelegation {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string namespace */ 1:\n message.namespace = reader.string()\n break\n case /* com.digitalasset.canton.crypto.v30.SigningPublicKey target_key */ 2:\n message.targetKey = SigningPublicKey.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.targetKey\n )\n break\n case /* bool is_root_delegation = 3 [deprecated = true] */ 3:\n message.isRootDelegation = reader.bool()\n break\n case /* com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllMappings can_sign_all_mappings */ 4:\n message.restriction = {\n oneofKind: 'canSignAllMappings',\n canSignAllMappings:\n NamespaceDelegation_CanSignAllMappings.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.restriction as any).canSignAllMappings\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllButNamespaceDelegations can_sign_all_but_namespace_delegations */ 5:\n message.restriction = {\n oneofKind: 'canSignAllButNamespaceDelegations',\n canSignAllButNamespaceDelegations:\n NamespaceDelegation_CanSignAllButNamespaceDelegations.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.restriction as any)\n .canSignAllButNamespaceDelegations\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignSpecificMappings can_sign_specific_mapings */ 6:\n message.restriction = {\n oneofKind: 'canSignSpecificMapings',\n canSignSpecificMapings:\n NamespaceDelegation_CanSignSpecificMappings.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.restriction as any)\n .canSignSpecificMapings\n ),\n }\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: NamespaceDelegation,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string namespace = 1; */\n if (message.namespace !== '')\n writer.tag(1, WireType.LengthDelimited).string(message.namespace)\n /* com.digitalasset.canton.crypto.v30.SigningPublicKey target_key = 2; */\n if (message.targetKey)\n SigningPublicKey.internalBinaryWrite(\n message.targetKey,\n writer.tag(2, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* bool is_root_delegation = 3 [deprecated = true]; */\n if (message.isRootDelegation !== false)\n writer.tag(3, WireType.Varint).bool(message.isRootDelegation)\n /* com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllMappings can_sign_all_mappings = 4; */\n if (message.restriction.oneofKind === 'canSignAllMappings')\n NamespaceDelegation_CanSignAllMappings.internalBinaryWrite(\n message.restriction.canSignAllMappings,\n writer.tag(4, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllButNamespaceDelegations can_sign_all_but_namespace_delegations = 5; */\n if (\n message.restriction.oneofKind ===\n 'canSignAllButNamespaceDelegations'\n )\n NamespaceDelegation_CanSignAllButNamespaceDelegations.internalBinaryWrite(\n message.restriction.canSignAllButNamespaceDelegations,\n writer.tag(5, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignSpecificMappings can_sign_specific_mapings = 6; */\n if (message.restriction.oneofKind === 'canSignSpecificMapings')\n NamespaceDelegation_CanSignSpecificMappings.internalBinaryWrite(\n message.restriction.canSignSpecificMapings,\n writer.tag(6, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.NamespaceDelegation\n */\nexport const NamespaceDelegation = new NamespaceDelegation$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass NamespaceDelegation_CanSignAllMappings$Type extends MessageType<NamespaceDelegation_CanSignAllMappings> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllMappings',\n []\n )\n }\n create(\n value?: PartialMessage<NamespaceDelegation_CanSignAllMappings>\n ): NamespaceDelegation_CanSignAllMappings {\n const message = globalThis.Object.create(this.messagePrototype!)\n if (value !== undefined)\n reflectionMergePartial<NamespaceDelegation_CanSignAllMappings>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: NamespaceDelegation_CanSignAllMappings\n ): NamespaceDelegation_CanSignAllMappings {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: NamespaceDelegation_CanSignAllMappings,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllMappings\n */\nexport const NamespaceDelegation_CanSignAllMappings =\n new NamespaceDelegation_CanSignAllMappings$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass NamespaceDelegation_CanSignAllButNamespaceDelegations$Type extends MessageType<NamespaceDelegation_CanSignAllButNamespaceDelegations> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllButNamespaceDelegations',\n []\n )\n }\n create(\n value?: PartialMessage<NamespaceDelegation_CanSignAllButNamespaceDelegations>\n ): NamespaceDelegation_CanSignAllButNamespaceDelegations {\n const message = globalThis.Object.create(this.messagePrototype!)\n if (value !== undefined)\n reflectionMergePartial<NamespaceDelegation_CanSignAllButNamespaceDelegations>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: NamespaceDelegation_CanSignAllButNamespaceDelegations\n ): NamespaceDelegation_CanSignAllButNamespaceDelegations {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: NamespaceDelegation_CanSignAllButNamespaceDelegations,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignAllButNamespaceDelegations\n */\nexport const NamespaceDelegation_CanSignAllButNamespaceDelegations =\n new NamespaceDelegation_CanSignAllButNamespaceDelegations$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass NamespaceDelegation_CanSignSpecificMappings$Type extends MessageType<NamespaceDelegation_CanSignSpecificMappings> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignSpecificMappings',\n [\n {\n no: 1,\n name: 'mappings',\n kind: 'enum',\n repeat: 1 /*RepeatType.PACKED*/,\n T: () => [\n 'com.digitalasset.canton.protocol.v30.Enums.TopologyMappingCode',\n Enums_TopologyMappingCode,\n 'TOPOLOGY_MAPPING_CODE_',\n ],\n },\n ]\n )\n }\n create(\n value?: PartialMessage<NamespaceDelegation_CanSignSpecificMappings>\n ): NamespaceDelegation_CanSignSpecificMappings {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.mappings = []\n if (value !== undefined)\n reflectionMergePartial<NamespaceDelegation_CanSignSpecificMappings>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: NamespaceDelegation_CanSignSpecificMappings\n ): NamespaceDelegation_CanSignSpecificMappings {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* repeated com.digitalasset.canton.protocol.v30.Enums.TopologyMappingCode mappings */ 1:\n if (wireType === WireType.LengthDelimited)\n for (\n let e = reader.int32() + reader.pos;\n reader.pos < e;\n )\n message.mappings.push(reader.int32())\n else message.mappings.push(reader.int32())\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: NamespaceDelegation_CanSignSpecificMappings,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* repeated com.digitalasset.canton.protocol.v30.Enums.TopologyMappingCode mappings = 1; */\n if (message.mappings.length) {\n writer.tag(1, WireType.LengthDelimited).fork()\n for (let i = 0; i < message.mappings.length; i++)\n writer.int32(message.mappings[i])\n writer.join()\n }\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.NamespaceDelegation.CanSignSpecificMappings\n */\nexport const NamespaceDelegation_CanSignSpecificMappings =\n new NamespaceDelegation_CanSignSpecificMappings$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass DecentralizedNamespaceDefinition$Type extends MessageType<DecentralizedNamespaceDefinition> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.DecentralizedNamespaceDefinition',\n [\n {\n no: 1,\n name: 'decentralized_namespace',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'threshold',\n kind: 'scalar',\n T: 5 /*ScalarType.INT32*/,\n },\n {\n no: 3,\n name: 'owners',\n kind: 'scalar',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: 9 /*ScalarType.STRING*/,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<DecentralizedNamespaceDefinition>\n ): DecentralizedNamespaceDefinition {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.decentralizedNamespace = ''\n message.threshold = 0\n message.owners = []\n if (value !== undefined)\n reflectionMergePartial<DecentralizedNamespaceDefinition>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: DecentralizedNamespaceDefinition\n ): DecentralizedNamespaceDefinition {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string decentralized_namespace */ 1:\n message.decentralizedNamespace = reader.string()\n break\n case /* int32 threshold */ 2:\n message.threshold = reader.int32()\n break\n case /* repeated string owners */ 3:\n message.owners.push(reader.string())\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: DecentralizedNamespaceDefinition,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string decentralized_namespace = 1; */\n if (message.decentralizedNamespace !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.decentralizedNamespace)\n /* int32 threshold = 2; */\n if (message.threshold !== 0)\n writer.tag(2, WireType.Varint).int32(message.threshold)\n /* repeated string owners = 3; */\n for (let i = 0; i < message.owners.length; i++)\n writer.tag(3, WireType.LengthDelimited).string(message.owners[i])\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.DecentralizedNamespaceDefinition\n */\nexport const DecentralizedNamespaceDefinition =\n new DecentralizedNamespaceDefinition$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass OwnerToKeyMapping$Type extends MessageType<OwnerToKeyMapping> {\n constructor() {\n super('com.digitalasset.canton.protocol.v30.OwnerToKeyMapping', [\n {\n no: 1,\n name: 'member',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'public_keys',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => PublicKey,\n },\n ])\n }\n create(value?: PartialMessage<OwnerToKeyMapping>): OwnerToKeyMapping {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.member = ''\n message.publicKeys = []\n if (value !== undefined)\n reflectionMergePartial<OwnerToKeyMapping>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: OwnerToKeyMapping\n ): OwnerToKeyMapping {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string member */ 1:\n message.member = reader.string()\n break\n case /* repeated com.digitalasset.canton.crypto.v30.PublicKey public_keys */ 2:\n message.publicKeys.push(\n PublicKey.internalBinaryRead(\n reader,\n reader.uint32(),\n options\n )\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: OwnerToKeyMapping,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string member = 1; */\n if (message.member !== '')\n writer.tag(1, WireType.LengthDelimited).string(message.member)\n /* repeated com.digitalasset.canton.crypto.v30.PublicKey public_keys = 2; */\n for (let i = 0; i < message.publicKeys.length; i++)\n PublicKey.internalBinaryWrite(\n message.publicKeys[i],\n writer.tag(2, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.OwnerToKeyMapping\n */\nexport const OwnerToKeyMapping = new OwnerToKeyMapping$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass PartyToKeyMapping$Type extends MessageType<PartyToKeyMapping> {\n constructor() {\n super('com.digitalasset.canton.protocol.v30.PartyToKeyMapping', [\n {\n no: 1,\n name: 'party',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 3,\n name: 'threshold',\n kind: 'scalar',\n T: 13 /*ScalarType.UINT32*/,\n },\n {\n no: 4,\n name: 'signing_keys',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => SigningPublicKey,\n },\n ])\n }\n create(value?: PartialMessage<PartyToKeyMapping>): PartyToKeyMapping {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.party = ''\n message.threshold = 0\n message.signingKeys = []\n if (value !== undefined)\n reflectionMergePartial<PartyToKeyMapping>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: PartyToKeyMapping\n ): PartyToKeyMapping {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string party */ 1:\n message.party = reader.string()\n break\n case /* uint32 threshold */ 3:\n message.threshold = reader.uint32()\n break\n case /* repeated com.digitalasset.canton.crypto.v30.SigningPublicKey signing_keys */ 4:\n message.signingKeys.push(\n SigningPublicKey.internalBinaryRead(\n reader,\n reader.uint32(),\n options\n )\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: PartyToKeyMapping,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string party = 1; */\n if (message.party !== '')\n writer.tag(1, WireType.LengthDelimited).string(message.party)\n /* uint32 threshold = 3; */\n if (message.threshold !== 0)\n writer.tag(3, WireType.Varint).uint32(message.threshold)\n /* repeated com.digitalasset.canton.crypto.v30.SigningPublicKey signing_keys = 4; */\n for (let i = 0; i < message.signingKeys.length; i++)\n SigningPublicKey.internalBinaryWrite(\n message.signingKeys[i],\n writer.tag(4, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.PartyToKeyMapping\n */\nexport const PartyToKeyMapping = new PartyToKeyMapping$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass SynchronizerTrustCertificate$Type extends MessageType<SynchronizerTrustCertificate> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.SynchronizerTrustCertificate',\n [\n {\n no: 1,\n name: 'participant_uid',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'synchronizer_id',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<SynchronizerTrustCertificate>\n ): SynchronizerTrustCertificate {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.participantUid = ''\n message.synchronizerId = ''\n if (value !== undefined)\n reflectionMergePartial<SynchronizerTrustCertificate>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: SynchronizerTrustCertificate\n ): SynchronizerTrustCertificate {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string participant_uid */ 1:\n message.participantUid = reader.string()\n break\n case /* string synchronizer_id */ 2:\n message.synchronizerId = reader.string()\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: SynchronizerTrustCertificate,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string participant_uid = 1; */\n if (message.participantUid !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.participantUid)\n /* string synchronizer_id = 2; */\n if (message.synchronizerId !== '')\n writer\n .tag(2, WireType.LengthDelimited)\n .string(message.synchronizerId)\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.SynchronizerTrustCertificate\n */\nexport const SynchronizerTrustCertificate =\n new SynchronizerTrustCertificate$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass ParticipantSynchronizerPermission$Type extends MessageType<ParticipantSynchronizerPermission> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.ParticipantSynchronizerPermission',\n [\n {\n no: 1,\n name: 'synchronizer_id',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'participant_uid',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 3,\n name: 'permission',\n kind: 'enum',\n T: () => [\n 'com.digitalasset.canton.protocol.v30.Enums.ParticipantPermission',\n Enums_ParticipantPermission,\n 'PARTICIPANT_PERMISSION_',\n ],\n },\n {\n no: 4,\n name: 'limits',\n kind: 'message',\n T: () => ParticipantSynchronizerLimits,\n },\n {\n no: 5,\n name: 'login_after',\n kind: 'scalar',\n opt: true,\n T: 3 /*ScalarType.INT64*/,\n L: 0 /*LongType.BIGINT*/,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<ParticipantSynchronizerPermission>\n ): ParticipantSynchronizerPermission {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.synchronizerId = ''\n message.participantUid = ''\n message.permission = 0\n if (value !== undefined)\n reflectionMergePartial<ParticipantSynchronizerPermission>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: ParticipantSynchronizerPermission\n ): ParticipantSynchronizerPermission {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string synchronizer_id */ 1:\n message.synchronizerId = reader.string()\n break\n case /* string participant_uid */ 2:\n message.participantUid = reader.string()\n break\n case /* com.digitalasset.canton.protocol.v30.Enums.ParticipantPermission permission */ 3:\n message.permission = reader.int32()\n break\n case /* com.digitalasset.canton.protocol.v30.ParticipantSynchronizerLimits limits */ 4:\n message.limits =\n ParticipantSynchronizerLimits.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.limits\n )\n break\n case /* optional int64 login_after */ 5:\n message.loginAfter = reader.int64().toBigInt()\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: ParticipantSynchronizerPermission,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string synchronizer_id = 1; */\n if (message.synchronizerId !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.synchronizerId)\n /* string participant_uid = 2; */\n if (message.participantUid !== '')\n writer\n .tag(2, WireType.LengthDelimited)\n .string(message.participantUid)\n /* com.digitalasset.canton.protocol.v30.Enums.ParticipantPermission permission = 3; */\n if (message.permission !== 0)\n writer.tag(3, WireType.Varint).int32(message.permission)\n /* com.digitalasset.canton.protocol.v30.ParticipantSynchronizerLimits limits = 4; */\n if (message.limits)\n ParticipantSynchronizerLimits.internalBinaryWrite(\n message.limits,\n writer.tag(4, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* optional int64 login_after = 5; */\n if (message.loginAfter !== undefined)\n writer.tag(5, WireType.Varint).int64(message.loginAfter)\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.ParticipantSynchronizerPermission\n */\nexport const ParticipantSynchronizerPermission =\n new ParticipantSynchronizerPermission$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass PartyHostingLimits$Type extends MessageType<PartyHostingLimits> {\n constructor() {\n super('com.digitalasset.canton.protocol.v30.PartyHostingLimits', [\n {\n no: 1,\n name: 'synchronizer_id',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'party',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n ])\n }\n create(value?: PartialMessage<PartyHostingLimits>): PartyHostingLimits {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.synchronizerId = ''\n message.party = ''\n if (value !== undefined)\n reflectionMergePartial<PartyHostingLimits>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: PartyHostingLimits\n ): PartyHostingLimits {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string synchronizer_id */ 1:\n message.synchronizerId = reader.string()\n break\n case /* string party */ 2:\n message.party = reader.string()\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: PartyHostingLimits,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string synchronizer_id = 1; */\n if (message.synchronizerId !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.synchronizerId)\n /* string party = 2; */\n if (message.party !== '')\n writer.tag(2, WireType.LengthDelimited).string(message.party)\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.PartyHostingLimits\n */\nexport const PartyHostingLimits = new PartyHostingLimits$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass VettedPackages$Type extends MessageType<VettedPackages> {\n constructor() {\n super('com.digitalasset.canton.protocol.v30.VettedPackages', [\n {\n no: 1,\n name: 'participant_uid',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'package_ids',\n kind: 'scalar',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 4,\n name: 'packages',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => VettedPackages_VettedPackage,\n },\n ])\n }\n create(value?: PartialMessage<VettedPackages>): VettedPackages {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.participantUid = ''\n message.packageIds = []\n message.packages = []\n if (value !== undefined)\n reflectionMergePartial<VettedPackages>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: VettedPackages\n ): VettedPackages {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string participant_uid */ 1:\n message.participantUid = reader.string()\n break\n case /* repeated string package_ids = 2 [deprecated = true] */ 2:\n message.packageIds.push(reader.string())\n break\n case /* repeated com.digitalasset.canton.protocol.v30.VettedPackages.VettedPackage packages */ 4:\n message.packages.push(\n VettedPackages_VettedPackage.internalBinaryRead(\n reader,\n reader.uint32(),\n options\n )\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: VettedPackages,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string participant_uid = 1; */\n if (message.participantUid !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.participantUid)\n /* repeated string package_ids = 2 [deprecated = true]; */\n for (let i = 0; i < message.packageIds.length; i++)\n writer\n .tag(2, WireType.LengthDelimited)\n .string(message.packageIds[i])\n /* repeated com.digitalasset.canton.protocol.v30.VettedPackages.VettedPackage packages = 4; */\n for (let i = 0; i < message.packages.length; i++)\n VettedPackages_VettedPackage.internalBinaryWrite(\n message.packages[i],\n writer.tag(4, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.VettedPackages\n */\nexport const VettedPackages = new VettedPackages$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass VettedPackages_VettedPackage$Type extends MessageType<VettedPackages_VettedPackage> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.VettedPackages.VettedPackage',\n [\n {\n no: 1,\n name: 'package_id',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'valid_from',\n kind: 'message',\n T: () => Timestamp,\n },\n {\n no: 3,\n name: 'valid_until',\n kind: 'message',\n T: () => Timestamp,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<VettedPackages_VettedPackage>\n ): VettedPackages_VettedPackage {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.packageId = ''\n if (value !== undefined)\n reflectionMergePartial<VettedPackages_VettedPackage>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: VettedPackages_VettedPackage\n ): VettedPackages_VettedPackage {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string package_id */ 1:\n message.packageId = reader.string()\n break\n case /* google.protobuf.Timestamp valid_from */ 2:\n message.validFrom = Timestamp.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.validFrom\n )\n break\n case /* google.protobuf.Timestamp valid_until */ 3:\n message.validUntil = Timestamp.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.validUntil\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: VettedPackages_VettedPackage,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string package_id = 1; */\n if (message.packageId !== '')\n writer.tag(1, WireType.LengthDelimited).string(message.packageId)\n /* google.protobuf.Timestamp valid_from = 2; */\n if (message.validFrom)\n Timestamp.internalBinaryWrite(\n message.validFrom,\n writer.tag(2, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* google.protobuf.Timestamp valid_until = 3; */\n if (message.validUntil)\n Timestamp.internalBinaryWrite(\n message.validUntil,\n writer.tag(3, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.VettedPackages.VettedPackage\n */\nexport const VettedPackages_VettedPackage =\n new VettedPackages_VettedPackage$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass PartyToParticipant$Type extends MessageType<PartyToParticipant> {\n constructor() {\n super('com.digitalasset.canton.protocol.v30.PartyToParticipant', [\n {\n no: 1,\n name: 'party',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'threshold',\n kind: 'scalar',\n T: 13 /*ScalarType.UINT32*/,\n },\n {\n no: 3,\n name: 'participants',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => PartyToParticipant_HostingParticipant,\n },\n ])\n }\n create(value?: PartialMessage<PartyToParticipant>): PartyToParticipant {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.party = ''\n message.threshold = 0\n message.participants = []\n if (value !== undefined)\n reflectionMergePartial<PartyToParticipant>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: PartyToParticipant\n ): PartyToParticipant {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string party */ 1:\n message.party = reader.string()\n break\n case /* uint32 threshold */ 2:\n message.threshold = reader.uint32()\n break\n case /* repeated com.digitalasset.canton.protocol.v30.PartyToParticipant.HostingParticipant participants */ 3:\n message.participants.push(\n PartyToParticipant_HostingParticipant.internalBinaryRead(\n reader,\n reader.uint32(),\n options\n )\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: PartyToParticipant,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string party = 1; */\n if (message.party !== '')\n writer.tag(1, WireType.LengthDelimited).string(message.party)\n /* uint32 threshold = 2; */\n if (message.threshold !== 0)\n writer.tag(2, WireType.Varint).uint32(message.threshold)\n /* repeated com.digitalasset.canton.protocol.v30.PartyToParticipant.HostingParticipant participants = 3; */\n for (let i = 0; i < message.participants.length; i++)\n PartyToParticipant_HostingParticipant.internalBinaryWrite(\n message.participants[i],\n writer.tag(3, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.PartyToParticipant\n */\nexport const PartyToParticipant = new PartyToParticipant$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass PartyToParticipant_HostingParticipant$Type extends MessageType<PartyToParticipant_HostingParticipant> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.PartyToParticipant.HostingParticipant',\n [\n {\n no: 1,\n name: 'participant_uid',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'permission',\n kind: 'enum',\n T: () => [\n 'com.digitalasset.canton.protocol.v30.Enums.ParticipantPermission',\n Enums_ParticipantPermission,\n 'PARTICIPANT_PERMISSION_',\n ],\n },\n ]\n )\n }\n create(\n value?: PartialMessage<PartyToParticipant_HostingParticipant>\n ): PartyToParticipant_HostingParticipant {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.participantUid = ''\n message.permission = 0\n if (value !== undefined)\n reflectionMergePartial<PartyToParticipant_HostingParticipant>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: PartyToParticipant_HostingParticipant\n ): PartyToParticipant_HostingParticipant {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string participant_uid */ 1:\n message.participantUid = reader.string()\n break\n case /* com.digitalasset.canton.protocol.v30.Enums.ParticipantPermission permission */ 2:\n message.permission = reader.int32()\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: PartyToParticipant_HostingParticipant,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string participant_uid = 1; */\n if (message.participantUid !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.participantUid)\n /* com.digitalasset.canton.protocol.v30.Enums.ParticipantPermission permission = 2; */\n if (message.permission !== 0)\n writer.tag(2, WireType.Varint).int32(message.permission)\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.PartyToParticipant.HostingParticipant\n */\nexport const PartyToParticipant_HostingParticipant =\n new PartyToParticipant_HostingParticipant$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass SynchronizerParametersState$Type extends MessageType<SynchronizerParametersState> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.SynchronizerParametersState',\n [\n {\n no: 1,\n name: 'synchronizer_id',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'synchronizer_parameters',\n kind: 'message',\n T: () => DynamicSynchronizerParameters,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<SynchronizerParametersState>\n ): SynchronizerParametersState {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.synchronizerId = ''\n if (value !== undefined)\n reflectionMergePartial<SynchronizerParametersState>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: SynchronizerParametersState\n ): SynchronizerParametersState {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string synchronizer_id */ 1:\n message.synchronizerId = reader.string()\n break\n case /* com.digitalasset.canton.protocol.v30.DynamicSynchronizerParameters synchronizer_parameters */ 2:\n message.synchronizerParameters =\n DynamicSynchronizerParameters.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.synchronizerParameters\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: SynchronizerParametersState,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string synchronizer_id = 1; */\n if (message.synchronizerId !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.synchronizerId)\n /* com.digitalasset.canton.protocol.v30.DynamicSynchronizerParameters synchronizer_parameters = 2; */\n if (message.synchronizerParameters)\n DynamicSynchronizerParameters.internalBinaryWrite(\n message.synchronizerParameters,\n writer.tag(2, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.SynchronizerParametersState\n */\nexport const SynchronizerParametersState =\n new SynchronizerParametersState$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass DynamicSequencingParametersState$Type extends MessageType<DynamicSequencingParametersState> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.DynamicSequencingParametersState',\n [\n {\n no: 1,\n name: 'synchronizer_id',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'sequencing_parameters',\n kind: 'message',\n T: () => DynamicSequencingParameters,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<DynamicSequencingParametersState>\n ): DynamicSequencingParametersState {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.synchronizerId = ''\n if (value !== undefined)\n reflectionMergePartial<DynamicSequencingParametersState>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: DynamicSequencingParametersState\n ): DynamicSequencingParametersState {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string synchronizer_id */ 1:\n message.synchronizerId = reader.string()\n break\n case /* com.digitalasset.canton.protocol.v30.DynamicSequencingParameters sequencing_parameters */ 2:\n message.sequencingParameters =\n DynamicSequencingParameters.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.sequencingParameters\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: DynamicSequencingParametersState,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string synchronizer_id = 1; */\n if (message.synchronizerId !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.synchronizerId)\n /* com.digitalasset.canton.protocol.v30.DynamicSequencingParameters sequencing_parameters = 2; */\n if (message.sequencingParameters)\n DynamicSequencingParameters.internalBinaryWrite(\n message.sequencingParameters,\n writer.tag(2, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.DynamicSequencingParametersState\n */\nexport const DynamicSequencingParametersState =\n new DynamicSequencingParametersState$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass MediatorSynchronizerState$Type extends MessageType<MediatorSynchronizerState> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.MediatorSynchronizerState',\n [\n {\n no: 1,\n name: 'synchronizer_id',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'group',\n kind: 'scalar',\n T: 13 /*ScalarType.UINT32*/,\n },\n {\n no: 3,\n name: 'threshold',\n kind: 'scalar',\n T: 13 /*ScalarType.UINT32*/,\n },\n {\n no: 4,\n name: 'active',\n kind: 'scalar',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 5,\n name: 'observers',\n kind: 'scalar',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: 9 /*ScalarType.STRING*/,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<MediatorSynchronizerState>\n ): MediatorSynchronizerState {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.synchronizerId = ''\n message.group = 0\n message.threshold = 0\n message.active = []\n message.observers = []\n if (value !== undefined)\n reflectionMergePartial<MediatorSynchronizerState>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: MediatorSynchronizerState\n ): MediatorSynchronizerState {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string synchronizer_id */ 1:\n message.synchronizerId = reader.string()\n break\n case /* uint32 group */ 2:\n message.group = reader.uint32()\n break\n case /* uint32 threshold */ 3:\n message.threshold = reader.uint32()\n break\n case /* repeated string active */ 4:\n message.active.push(reader.string())\n break\n case /* repeated string observers */ 5:\n message.observers.push(reader.string())\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: MediatorSynchronizerState,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string synchronizer_id = 1; */\n if (message.synchronizerId !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.synchronizerId)\n /* uint32 group = 2; */\n if (message.group !== 0)\n writer.tag(2, WireType.Varint).uint32(message.group)\n /* uint32 threshold = 3; */\n if (message.threshold !== 0)\n writer.tag(3, WireType.Varint).uint32(message.threshold)\n /* repeated string active = 4; */\n for (let i = 0; i < message.active.length; i++)\n writer.tag(4, WireType.LengthDelimited).string(message.active[i])\n /* repeated string observers = 5; */\n for (let i = 0; i < message.observers.length; i++)\n writer.tag(5, WireType.LengthDelimited).string(message.observers[i])\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.MediatorSynchronizerState\n */\nexport const MediatorSynchronizerState = new MediatorSynchronizerState$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass SequencerSynchronizerState$Type extends MessageType<SequencerSynchronizerState> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.SequencerSynchronizerState',\n [\n {\n no: 1,\n name: 'synchronizer_id',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'threshold',\n kind: 'scalar',\n T: 13 /*ScalarType.UINT32*/,\n },\n {\n no: 3,\n name: 'active',\n kind: 'scalar',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 4,\n name: 'observers',\n kind: 'scalar',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: 9 /*ScalarType.STRING*/,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<SequencerSynchronizerState>\n ): SequencerSynchronizerState {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.synchronizerId = ''\n message.threshold = 0\n message.active = []\n message.observers = []\n if (value !== undefined)\n reflectionMergePartial<SequencerSynchronizerState>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: SequencerSynchronizerState\n ): SequencerSynchronizerState {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string synchronizer_id */ 1:\n message.synchronizerId = reader.string()\n break\n case /* uint32 threshold */ 2:\n message.threshold = reader.uint32()\n break\n case /* repeated string active */ 3:\n message.active.push(reader.string())\n break\n case /* repeated string observers */ 4:\n message.observers.push(reader.string())\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: SequencerSynchronizerState,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string synchronizer_id = 1; */\n if (message.synchronizerId !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.synchronizerId)\n /* uint32 threshold = 2; */\n if (message.threshold !== 0)\n writer.tag(2, WireType.Varint).uint32(message.threshold)\n /* repeated string active = 3; */\n for (let i = 0; i < message.active.length; i++)\n writer.tag(3, WireType.LengthDelimited).string(message.active[i])\n /* repeated string observers = 4; */\n for (let i = 0; i < message.observers.length; i++)\n writer.tag(4, WireType.LengthDelimited).string(message.observers[i])\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.SequencerSynchronizerState\n */\nexport const SequencerSynchronizerState = new SequencerSynchronizerState$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass PurgeTopologyTransaction$Type extends MessageType<PurgeTopologyTransaction> {\n constructor() {\n super('com.digitalasset.canton.protocol.v30.PurgeTopologyTransaction', [\n {\n no: 1,\n name: 'synchronizer_id',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'mappings',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => TopologyMapping,\n },\n ])\n }\n create(\n value?: PartialMessage<PurgeTopologyTransaction>\n ): PurgeTopologyTransaction {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.synchronizerId = ''\n message.mappings = []\n if (value !== undefined)\n reflectionMergePartial<PurgeTopologyTransaction>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: PurgeTopologyTransaction\n ): PurgeTopologyTransaction {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string synchronizer_id */ 1:\n message.synchronizerId = reader.string()\n break\n case /* repeated com.digitalasset.canton.protocol.v30.TopologyMapping mappings */ 2:\n message.mappings.push(\n TopologyMapping.internalBinaryRead(\n reader,\n reader.uint32(),\n options\n )\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: PurgeTopologyTransaction,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string synchronizer_id = 1; */\n if (message.synchronizerId !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.synchronizerId)\n /* repeated com.digitalasset.canton.protocol.v30.TopologyMapping mappings = 2; */\n for (let i = 0; i < message.mappings.length; i++)\n TopologyMapping.internalBinaryWrite(\n message.mappings[i],\n writer.tag(2, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.PurgeTopologyTransaction\n */\nexport const PurgeTopologyTransaction = new PurgeTopologyTransaction$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass TopologyMapping$Type extends MessageType<TopologyMapping> {\n constructor() {\n super('com.digitalasset.canton.protocol.v30.TopologyMapping', [\n {\n no: 1,\n name: 'namespace_delegation',\n kind: 'message',\n oneof: 'mapping',\n T: () => NamespaceDelegation,\n },\n {\n no: 3,\n name: 'decentralized_namespace_definition',\n kind: 'message',\n oneof: 'mapping',\n T: () => DecentralizedNamespaceDefinition,\n },\n {\n no: 4,\n name: 'owner_to_key_mapping',\n kind: 'message',\n oneof: 'mapping',\n T: () => OwnerToKeyMapping,\n },\n {\n no: 5,\n name: 'synchronizer_trust_certificate',\n kind: 'message',\n oneof: 'mapping',\n T: () => SynchronizerTrustCertificate,\n },\n {\n no: 6,\n name: 'participant_permission',\n kind: 'message',\n oneof: 'mapping',\n T: () => ParticipantSynchronizerPermission,\n },\n {\n no: 7,\n name: 'party_hosting_limits',\n kind: 'message',\n oneof: 'mapping',\n T: () => PartyHostingLimits,\n },\n {\n no: 8,\n name: 'vetted_packages',\n kind: 'message',\n oneof: 'mapping',\n T: () => VettedPackages,\n },\n {\n no: 9,\n name: 'party_to_participant',\n kind: 'message',\n oneof: 'mapping',\n T: () => PartyToParticipant,\n },\n {\n no: 11,\n name: 'synchronizer_parameters_state',\n kind: 'message',\n oneof: 'mapping',\n T: () => SynchronizerParametersState,\n },\n {\n no: 12,\n name: 'mediator_synchronizer_state',\n kind: 'message',\n oneof: 'mapping',\n T: () => MediatorSynchronizerState,\n },\n {\n no: 13,\n name: 'sequencer_synchronizer_state',\n kind: 'message',\n oneof: 'mapping',\n T: () => SequencerSynchronizerState,\n },\n {\n no: 14,\n name: 'purge_topology_txs',\n kind: 'message',\n oneof: 'mapping',\n T: () => PurgeTopologyTransaction,\n },\n {\n no: 15,\n name: 'sequencing_dynamic_parameters_state',\n kind: 'message',\n oneof: 'mapping',\n T: () => DynamicSequencingParametersState,\n },\n {\n no: 16,\n name: 'party_to_key_mapping',\n kind: 'message',\n oneof: 'mapping',\n T: () => PartyToKeyMapping,\n },\n ])\n }\n create(value?: PartialMessage<TopologyMapping>): TopologyMapping {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.mapping = { oneofKind: undefined }\n if (value !== undefined)\n reflectionMergePartial<TopologyMapping>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: TopologyMapping\n ): TopologyMapping {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* com.digitalasset.canton.protocol.v30.NamespaceDelegation namespace_delegation */ 1:\n message.mapping = {\n oneofKind: 'namespaceDelegation',\n namespaceDelegation:\n NamespaceDelegation.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any).namespaceDelegation\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.DecentralizedNamespaceDefinition decentralized_namespace_definition */ 3:\n message.mapping = {\n oneofKind: 'decentralizedNamespaceDefinition',\n decentralizedNamespaceDefinition:\n DecentralizedNamespaceDefinition.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any)\n .decentralizedNamespaceDefinition\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.OwnerToKeyMapping owner_to_key_mapping */ 4:\n message.mapping = {\n oneofKind: 'ownerToKeyMapping',\n ownerToKeyMapping: OwnerToKeyMapping.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any).ownerToKeyMapping\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.SynchronizerTrustCertificate synchronizer_trust_certificate */ 5:\n message.mapping = {\n oneofKind: 'synchronizerTrustCertificate',\n synchronizerTrustCertificate:\n SynchronizerTrustCertificate.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any)\n .synchronizerTrustCertificate\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.ParticipantSynchronizerPermission participant_permission */ 6:\n message.mapping = {\n oneofKind: 'participantPermission',\n participantPermission:\n ParticipantSynchronizerPermission.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any).participantPermission\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.PartyHostingLimits party_hosting_limits */ 7:\n message.mapping = {\n oneofKind: 'partyHostingLimits',\n partyHostingLimits:\n PartyHostingLimits.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any).partyHostingLimits\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.VettedPackages vetted_packages */ 8:\n message.mapping = {\n oneofKind: 'vettedPackages',\n vettedPackages: VettedPackages.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any).vettedPackages\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.PartyToParticipant party_to_participant */ 9:\n message.mapping = {\n oneofKind: 'partyToParticipant',\n partyToParticipant:\n PartyToParticipant.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any).partyToParticipant\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.SynchronizerParametersState synchronizer_parameters_state */ 11:\n message.mapping = {\n oneofKind: 'synchronizerParametersState',\n synchronizerParametersState:\n SynchronizerParametersState.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any)\n .synchronizerParametersState\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.MediatorSynchronizerState mediator_synchronizer_state */ 12:\n message.mapping = {\n oneofKind: 'mediatorSynchronizerState',\n mediatorSynchronizerState:\n MediatorSynchronizerState.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any)\n .mediatorSynchronizerState\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.SequencerSynchronizerState sequencer_synchronizer_state */ 13:\n message.mapping = {\n oneofKind: 'sequencerSynchronizerState',\n sequencerSynchronizerState:\n SequencerSynchronizerState.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any)\n .sequencerSynchronizerState\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.PurgeTopologyTransaction purge_topology_txs */ 14:\n message.mapping = {\n oneofKind: 'purgeTopologyTxs',\n purgeTopologyTxs:\n PurgeTopologyTransaction.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any).purgeTopologyTxs\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.DynamicSequencingParametersState sequencing_dynamic_parameters_state */ 15:\n message.mapping = {\n oneofKind: 'sequencingDynamicParametersState',\n sequencingDynamicParametersState:\n DynamicSequencingParametersState.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any)\n .sequencingDynamicParametersState\n ),\n }\n break\n case /* com.digitalasset.canton.protocol.v30.PartyToKeyMapping party_to_key_mapping */ 16:\n message.mapping = {\n oneofKind: 'partyToKeyMapping',\n partyToKeyMapping: PartyToKeyMapping.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.mapping as any).partyToKeyMapping\n ),\n }\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: TopologyMapping,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* com.digitalasset.canton.protocol.v30.NamespaceDelegation namespace_delegation = 1; */\n if (message.mapping.oneofKind === 'namespaceDelegation')\n NamespaceDelegation.internalBinaryWrite(\n message.mapping.namespaceDelegation,\n writer.tag(1, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.DecentralizedNamespaceDefinition decentralized_namespace_definition = 3; */\n if (message.mapping.oneofKind === 'decentralizedNamespaceDefinition')\n DecentralizedNamespaceDefinition.internalBinaryWrite(\n message.mapping.decentralizedNamespaceDefinition,\n writer.tag(3, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.OwnerToKeyMapping owner_to_key_mapping = 4; */\n if (message.mapping.oneofKind === 'ownerToKeyMapping')\n OwnerToKeyMapping.internalBinaryWrite(\n message.mapping.ownerToKeyMapping,\n writer.tag(4, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.SynchronizerTrustCertificate synchronizer_trust_certificate = 5; */\n if (message.mapping.oneofKind === 'synchronizerTrustCertificate')\n SynchronizerTrustCertificate.internalBinaryWrite(\n message.mapping.synchronizerTrustCertificate,\n writer.tag(5, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.ParticipantSynchronizerPermission participant_permission = 6; */\n if (message.mapping.oneofKind === 'participantPermission')\n ParticipantSynchronizerPermission.internalBinaryWrite(\n message.mapping.participantPermission,\n writer.tag(6, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.PartyHostingLimits party_hosting_limits = 7; */\n if (message.mapping.oneofKind === 'partyHostingLimits')\n PartyHostingLimits.internalBinaryWrite(\n message.mapping.partyHostingLimits,\n writer.tag(7, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.VettedPackages vetted_packages = 8; */\n if (message.mapping.oneofKind === 'vettedPackages')\n VettedPackages.internalBinaryWrite(\n message.mapping.vettedPackages,\n writer.tag(8, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.PartyToParticipant party_to_participant = 9; */\n if (message.mapping.oneofKind === 'partyToParticipant')\n PartyToParticipant.internalBinaryWrite(\n message.mapping.partyToParticipant,\n writer.tag(9, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.SynchronizerParametersState synchronizer_parameters_state = 11; */\n if (message.mapping.oneofKind === 'synchronizerParametersState')\n SynchronizerParametersState.internalBinaryWrite(\n message.mapping.synchronizerParametersState,\n writer.tag(11, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.MediatorSynchronizerState mediator_synchronizer_state = 12; */\n if (message.mapping.oneofKind === 'mediatorSynchronizerState')\n MediatorSynchronizerState.internalBinaryWrite(\n message.mapping.mediatorSynchronizerState,\n writer.tag(12, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.SequencerSynchronizerState sequencer_synchronizer_state = 13; */\n if (message.mapping.oneofKind === 'sequencerSynchronizerState')\n SequencerSynchronizerState.internalBinaryWrite(\n message.mapping.sequencerSynchronizerState,\n writer.tag(13, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.PurgeTopologyTransaction purge_topology_txs = 14; */\n if (message.mapping.oneofKind === 'purgeTopologyTxs')\n PurgeTopologyTransaction.internalBinaryWrite(\n message.mapping.purgeTopologyTxs,\n writer.tag(14, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.DynamicSequencingParametersState sequencing_dynamic_parameters_state = 15; */\n if (message.mapping.oneofKind === 'sequencingDynamicParametersState')\n DynamicSequencingParametersState.internalBinaryWrite(\n message.mapping.sequencingDynamicParametersState,\n writer.tag(15, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* com.digitalasset.canton.protocol.v30.PartyToKeyMapping party_to_key_mapping = 16; */\n if (message.mapping.oneofKind === 'partyToKeyMapping')\n PartyToKeyMapping.internalBinaryWrite(\n message.mapping.partyToKeyMapping,\n writer.tag(16, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.TopologyMapping\n */\nexport const TopologyMapping = new TopologyMapping$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass TopologyTransaction$Type extends MessageType<TopologyTransaction> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.TopologyTransaction',\n [\n {\n no: 1,\n name: 'operation',\n kind: 'enum',\n T: () => [\n 'com.digitalasset.canton.protocol.v30.Enums.TopologyChangeOp',\n Enums_TopologyChangeOp,\n 'TOPOLOGY_CHANGE_OP_',\n ],\n },\n {\n no: 2,\n name: 'serial',\n kind: 'scalar',\n T: 13 /*ScalarType.UINT32*/,\n },\n {\n no: 3,\n name: 'mapping',\n kind: 'message',\n T: () => TopologyMapping,\n },\n ],\n {\n 'scalapb.message': {\n companionExtends: [\n 'com.digitalasset.canton.version.StableProtoVersion',\n ],\n },\n }\n )\n }\n create(value?: PartialMessage<TopologyTransaction>): TopologyTransaction {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.operation = 0\n message.serial = 0\n if (value !== undefined)\n reflectionMergePartial<TopologyTransaction>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: TopologyTransaction\n ): TopologyTransaction {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* com.digitalasset.canton.protocol.v30.Enums.TopologyChangeOp operation */ 1:\n message.operation = reader.int32()\n break\n case /* uint32 serial */ 2:\n message.serial = reader.uint32()\n break\n case /* com.digitalasset.canton.protocol.v30.TopologyMapping mapping */ 3:\n message.mapping = TopologyMapping.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.mapping\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: TopologyTransaction,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* com.digitalasset.canton.protocol.v30.Enums.TopologyChangeOp operation = 1; */\n if (message.operation !== 0)\n writer.tag(1, WireType.Varint).int32(message.operation)\n /* uint32 serial = 2; */\n if (message.serial !== 0)\n writer.tag(2, WireType.Varint).uint32(message.serial)\n /* com.digitalasset.canton.protocol.v30.TopologyMapping mapping = 3; */\n if (message.mapping)\n TopologyMapping.internalBinaryWrite(\n message.mapping,\n writer.tag(3, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.TopologyTransaction\n */\nexport const TopologyTransaction = new TopologyTransaction$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass MultiTransactionSignatures$Type extends MessageType<MultiTransactionSignatures> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.MultiTransactionSignatures',\n [\n {\n no: 1,\n name: 'transaction_hashes',\n kind: 'scalar',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: 12 /*ScalarType.BYTES*/,\n },\n {\n no: 2,\n name: 'signatures',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => Signature,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<MultiTransactionSignatures>\n ): MultiTransactionSignatures {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.transactionHashes = []\n message.signatures = []\n if (value !== undefined)\n reflectionMergePartial<MultiTransactionSignatures>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: MultiTransactionSignatures\n ): MultiTransactionSignatures {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* repeated bytes transaction_hashes */ 1:\n message.transactionHashes.push(reader.bytes())\n break\n case /* repeated com.digitalasset.canton.crypto.v30.Signature signatures */ 2:\n message.signatures.push(\n Signature.internalBinaryRead(\n reader,\n reader.uint32(),\n options\n )\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: MultiTransactionSignatures,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* repeated bytes transaction_hashes = 1; */\n for (let i = 0; i < message.transactionHashes.length; i++)\n writer\n .tag(1, WireType.LengthDelimited)\n .bytes(message.transactionHashes[i])\n /* repeated com.digitalasset.canton.crypto.v30.Signature signatures = 2; */\n for (let i = 0; i < message.signatures.length; i++)\n Signature.internalBinaryWrite(\n message.signatures[i],\n writer.tag(2, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.MultiTransactionSignatures\n */\nexport const MultiTransactionSignatures = new MultiTransactionSignatures$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass SignedTopologyTransaction$Type extends MessageType<SignedTopologyTransaction> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.SignedTopologyTransaction',\n [\n {\n no: 1,\n name: 'transaction',\n kind: 'scalar',\n T: 12 /*ScalarType.BYTES*/,\n },\n {\n no: 2,\n name: 'signatures',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => Signature,\n },\n {\n no: 3,\n name: 'proposal',\n kind: 'scalar',\n T: 8 /*ScalarType.BOOL*/,\n },\n {\n no: 4,\n name: 'multi_transaction_signatures',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => MultiTransactionSignatures,\n },\n ],\n {\n 'scalapb.message': {\n companionExtends: [\n 'com.digitalasset.canton.version.StableProtoVersion',\n ],\n },\n }\n )\n }\n create(\n value?: PartialMessage<SignedTopologyTransaction>\n ): SignedTopologyTransaction {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.transaction = new Uint8Array(0)\n message.signatures = []\n message.proposal = false\n message.multiTransactionSignatures = []\n if (value !== undefined)\n reflectionMergePartial<SignedTopologyTransaction>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: SignedTopologyTransaction\n ): SignedTopologyTransaction {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* bytes transaction */ 1:\n message.transaction = reader.bytes()\n break\n case /* repeated com.digitalasset.canton.crypto.v30.Signature signatures */ 2:\n message.signatures.push(\n Signature.internalBinaryRead(\n reader,\n reader.uint32(),\n options\n )\n )\n break\n case /* bool proposal */ 3:\n message.proposal = reader.bool()\n break\n case /* repeated com.digitalasset.canton.protocol.v30.MultiTransactionSignatures multi_transaction_signatures */ 4:\n message.multiTransactionSignatures.push(\n MultiTransactionSignatures.internalBinaryRead(\n reader,\n reader.uint32(),\n options\n )\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: SignedTopologyTransaction,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* bytes transaction = 1; */\n if (message.transaction.length)\n writer.tag(1, WireType.LengthDelimited).bytes(message.transaction)\n /* repeated com.digitalasset.canton.crypto.v30.Signature signatures = 2; */\n for (let i = 0; i < message.signatures.length; i++)\n Signature.internalBinaryWrite(\n message.signatures[i],\n writer.tag(2, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* bool proposal = 3; */\n if (message.proposal !== false)\n writer.tag(3, WireType.Varint).bool(message.proposal)\n /* repeated com.digitalasset.canton.protocol.v30.MultiTransactionSignatures multi_transaction_signatures = 4; */\n for (let i = 0; i < message.multiTransactionSignatures.length; i++)\n MultiTransactionSignatures.internalBinaryWrite(\n message.multiTransactionSignatures[i],\n writer.tag(4, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.SignedTopologyTransaction\n */\nexport const SignedTopologyTransaction = new SignedTopologyTransaction$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass SignedTopologyTransactions$Type extends MessageType<SignedTopologyTransactions> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.SignedTopologyTransactions',\n [\n {\n no: 1,\n name: 'signed_transaction',\n kind: 'scalar',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: 12 /*ScalarType.BYTES*/,\n },\n ],\n {\n 'scalapb.message': {\n companionExtends: [\n 'com.digitalasset.canton.version.StableProtoVersion',\n ],\n },\n }\n )\n }\n create(\n value?: PartialMessage<SignedTopologyTransactions>\n ): SignedTopologyTransactions {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.signedTransaction = []\n if (value !== undefined)\n reflectionMergePartial<SignedTopologyTransactions>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: SignedTopologyTransactions\n ): SignedTopologyTransactions {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* repeated bytes signed_transaction */ 1:\n message.signedTransaction.push(reader.bytes())\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: SignedTopologyTransactions,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* repeated bytes signed_transaction = 1; */\n for (let i = 0; i < message.signedTransaction.length; i++)\n writer\n .tag(1, WireType.LengthDelimited)\n .bytes(message.signedTransaction[i])\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.SignedTopologyTransactions\n */\nexport const SignedTopologyTransactions = new SignedTopologyTransactions$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass TopologyTransactionsBroadcast$Type extends MessageType<TopologyTransactionsBroadcast> {\n constructor() {\n super(\n 'com.digitalasset.canton.protocol.v30.TopologyTransactionsBroadcast',\n [\n {\n no: 1,\n name: 'synchronizer_id',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'signed_transactions',\n kind: 'message',\n T: () => SignedTopologyTransactions,\n },\n ],\n {\n 'scalapb.message': {\n companionExtends: [\n 'com.digitalasset.canton.version.StableProtoVersion',\n ],\n },\n }\n )\n }\n create(\n value?: PartialMessage<TopologyTransactionsBroadcast>\n ): TopologyTransactionsBroadcast {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.synchronizerId = ''\n if (value !== undefined)\n reflectionMergePartial<TopologyTransactionsBroadcast>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: TopologyTransactionsBroadcast\n ): TopologyTransactionsBroadcast {\n let message = target ?? this.create(),\n end = reader.pos + length\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag()\n switch (fieldNo) {\n case /* string synchronizer_id */ 1:\n message.synchronizerId = reader.string()\n break\n case /* com.digitalasset.canton.protocol.v30.SignedTopologyTransactions signed_transactions */ 2:\n message.signedTransactions =\n SignedTopologyTransactions.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.signedTransactions\n )\n break\n default:\n let u = options.readUnknownField\n if (u === 'throw')\n throw new globalThis.Error(\n `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`\n )\n let d = reader.skip(wireType)\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(\n this.typeName,\n message,\n fieldNo,\n wireType,\n d\n )\n }\n }\n return message\n }\n internalBinaryWrite(\n message: TopologyTransactionsBroadcast,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string synchronizer_id = 1; */\n if (message.synchronizerId !== '')\n writer\n .tag(1, WireType.LengthDelimited)\n .string(message.synchronizerId)\n /* com.digitalasset.canton.protocol.v30.SignedTopologyTransactions signed_transactions = 2; */\n if (message.signedTransactions)\n SignedTopologyTransactions.internalBinaryWrite(\n message.signedTransactions,\n writer.tag(2, WireType.LengthDelimited).fork(),\n options\n ).join()\n let u = options.writeUnknownFields\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(\n this.typeName,\n message,\n writer\n )\n return writer\n }\n}\n/**\n * @generated MessageType for protobuf message com.digitalasset.canton.protocol.v30.TopologyTransactionsBroadcast\n */\nexport const TopologyTransactionsBroadcast =\n new TopologyTransactionsBroadcast$Type()\n"],"mappings":";;;;;;;;;;;;;;AAQA;;","names":[]}