@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.
- package/dist/cjs/_proto/com/digitalasset/canton/crypto/v30/crypto.cjs.map +1 -1
- package/dist/cjs/_proto/com/digitalasset/canton/crypto/v30/crypto.d.cjs.map +1 -1
- package/dist/cjs/_proto/com/digitalasset/canton/protocol/v30/topology.cjs.map +1 -1
- package/dist/cjs/_proto/com/digitalasset/canton/protocol/v30/topology.d.cjs.map +1 -1
- package/dist/cjs/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.cjs.map +1 -1
- package/dist/cjs/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.cjs.map +1 -1
- package/dist/cjs/_proto/google/protobuf/descriptor.cjs.map +1 -1
- package/dist/esm/_proto/com/digitalasset/canton/crypto/v30/crypto.js.map +1 -1
- package/dist/esm/_proto/com/digitalasset/canton/protocol/v30/topology.js.map +1 -1
- package/dist/esm/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.js.map +1 -1
- package/dist/esm/_proto/google/protobuf/descriptor.js.map +1 -1
- package/dist/types/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts.map +1 -1
- package/dist/types/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts.map +1 -1
- package/dist/types/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts.map +1 -1
- package/dist/types/_proto/google/protobuf/descriptor.d.ts.map +1 -1
- package/package.json +10 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../../../src/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies\n// @generated from protobuf file \"com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.proto\" (package \"com.digitalasset.canton.topology.admin.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 { ServiceType } from '@protobuf-ts/runtime-rpc'\nimport type { BinaryWriteOptions } from '@protobuf-ts/runtime'\nimport type { IBinaryWriter } from '@protobuf-ts/runtime'\nimport { WireType } 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 { StoreId_Temporary } from './common.js'\nimport { SignedTopologyTransaction } from '../../../protocol/v30/topology.js'\nimport { Duration } from '../../../../../../google/protobuf/duration.js'\nimport { StoreId } from './common.js'\nimport { TopologyMapping } from '../../../protocol/v30/topology.js'\nimport { Enums_TopologyChangeOp } from '../../../protocol/v30/topology.js'\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.GenerateTransactionsRequest\n */\nexport interface GenerateTransactionsRequest {\n /**\n * transaction proposals for which to generate topology transactions\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.topology.admin.v30.GenerateTransactionsRequest.Proposal proposals = 1\n */\n proposals: GenerateTransactionsRequest_Proposal[]\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.GenerateTransactionsRequest.Proposal\n */\nexport interface GenerateTransactionsRequest_Proposal {\n /**\n * * Replace / Remove\n *\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.Enums.TopologyChangeOp operation = 1\n */\n operation: Enums_TopologyChangeOp\n /**\n * * Optionally, the serial number of this request (auto-determined if omitted)\n * NOTE: omitting the serial MAY end up overwriting previous mappings processed concurrently.\n * To avoid such cases, First read the state using the TopologyManagerReadService and update the mappings\n * accordingly, incrementing the serial by one and setting it here explicitly.\n *\n * @generated from protobuf field: uint32 serial = 2\n */\n serial: number\n /**\n * * The mapping to be authorized\n *\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.TopologyMapping mapping = 3\n */\n mapping?: TopologyMapping\n /**\n * Target store\n *\n * @generated from protobuf field: com.digitalasset.canton.topology.admin.v30.StoreId store = 4\n */\n store?: StoreId\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.GenerateTransactionsResponse\n */\nexport interface GenerateTransactionsResponse {\n /**\n * Generated transactions, in the same order as the mappings provided in the request\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.topology.admin.v30.GenerateTransactionsResponse.GeneratedTransaction generated_transactions = 1\n */\n generatedTransactions: GenerateTransactionsResponse_GeneratedTransaction[]\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.GenerateTransactionsResponse.GeneratedTransaction\n */\nexport interface GenerateTransactionsResponse_GeneratedTransaction {\n /**\n * Serialized com.digitalasset.canton.protocol.v30.TopologyTransaction\n *\n * @generated from protobuf field: bytes serialized_transaction = 1\n */\n serializedTransaction: Uint8Array\n /**\n * Hash of the transaction - this should be signed by the submitter to authorize the transaction\n *\n * @generated from protobuf field: bytes transaction_hash = 2\n */\n transactionHash: Uint8Array\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.AuthorizeRequest\n */\nexport interface AuthorizeRequest {\n /**\n * @generated from protobuf oneof: type\n */\n type:\n | {\n oneofKind: 'proposal'\n /**\n * *\n * Propose a transaction and distribute it.\n * If authorize if the node has enough signing keys\n *\n * @generated from protobuf field: com.digitalasset.canton.topology.admin.v30.AuthorizeRequest.Proposal proposal = 1\n */\n proposal: AuthorizeRequest_Proposal\n }\n | {\n oneofKind: 'transactionHash'\n /**\n * *\n * Authorize a transaction, meaning the node needs to be able to fully sign it locally.\n * Hash is in hexadecimal format.\n *\n * @generated from protobuf field: string transaction_hash = 2\n */\n transactionHash: string\n }\n | {\n oneofKind: undefined\n }\n /**\n * *\n * If true: the transaction is only signed if the new signatures will result in the transaction being fully\n * authorized. Otherwise returns as an error.\n * If false: the transaction is signed and the signature distributed. The transaction may still not be fully\n * authorized and remain as a proposal.\n *\n * @generated from protobuf field: bool must_fully_authorize = 3\n */\n mustFullyAuthorize: boolean\n /**\n * * Force specific changes even if dangerous\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.topology.admin.v30.ForceFlag force_changes = 4\n */\n forceChanges: ForceFlag[]\n /**\n * *\n * Fingerprint of the keys signing the authorization\n *\n * The signing key is used to identify a particular `NamespaceDelegation` certificate,\n * which is used to justify the given authorization.\n * Optional, if empty, suitable signing keys available known to the node are automatically selected.\n *\n * @generated from protobuf field: repeated string signed_by = 5\n */\n signedBy: string[]\n /**\n * *\n * The store that is used as the underlying source for executing this request.\n * If `store` is a synchronizer store, the resulting topology transaction will only be available on the respective synchronizer.\n * If `store` is the authorized store, the resulting topology transaction may or may not be synchronized automatically\n * to all synchronizers that the node is currently connected to or will be connected to in the future.\n *\n * Selecting a specific synchronizers store might be necessary, if the transaction to authorize by hash or the previous\n * generation of the submitted proposal is only available on the synchronizers store and not in the authorized store.\n *\n * @generated from protobuf field: com.digitalasset.canton.topology.admin.v30.StoreId store = 6\n */\n store?: StoreId\n /**\n * * Optional timeout to wait for the transaction to become effective in the store.\n *\n * @generated from protobuf field: google.protobuf.Duration wait_to_become_effective = 7\n */\n waitToBecomeEffective?: Duration\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.AuthorizeRequest.Proposal\n */\nexport interface AuthorizeRequest_Proposal {\n /**\n * * Replace / Remove\n *\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.Enums.TopologyChangeOp change = 1\n */\n change: Enums_TopologyChangeOp\n /**\n * * Optionally, the serial number of this request (auto-determined if omitted)\n *\n * @generated from protobuf field: uint32 serial = 2\n */\n serial: number\n /**\n * * The mapping to be authorized\n *\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.TopologyMapping mapping = 3\n */\n mapping?: TopologyMapping\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.AuthorizeResponse\n */\nexport interface AuthorizeResponse {\n /**\n * * the generated signed topology transaction\n *\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.SignedTopologyTransaction transaction = 1\n */\n transaction?: SignedTopologyTransaction\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.AddTransactionsRequest\n */\nexport interface AddTransactionsRequest {\n /**\n * *\n * The transactions that should be added to the target store as indicated by the parameter `store`.\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.protocol.v30.SignedTopologyTransaction transactions = 1\n */\n transactions: SignedTopologyTransaction[]\n /**\n * * Force specific changes even if dangerous\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.topology.admin.v30.ForceFlag force_changes = 2\n */\n forceChanges: ForceFlag[]\n /**\n * *\n * The store that is used as the underlying source for executing this request.\n * If `store` is a synchronizers store, the resulting topology transaction will only be available on the respective synchronizers.\n * If `store` is the authorized store, the resulting topology transaction may or may not be synchronized automatically\n * to all synchronizers that the node is currently connected to or will be connected to in the future.\n *\n * Selecting a specific synchronizers store might be necessary, if the transaction to authorize by hash or the previous\n * generation of the submitted proposal is only available on the synchronizers store and not in the authorized store.\n *\n * @generated from protobuf field: com.digitalasset.canton.topology.admin.v30.StoreId store = 3\n */\n store?: StoreId\n /**\n * * Optional timeout to wait for the transaction to become effective in the store.\n *\n * @generated from protobuf field: google.protobuf.Duration wait_to_become_effective = 7\n */\n waitToBecomeEffective?: Duration\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.AddTransactionsResponse\n */\nexport interface AddTransactionsResponse {}\n/**\n * *\n * Same message as AddTransactionsRequest, except that transactions are encoded in a byte string\n *\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.ImportTopologySnapshotRequest\n */\nexport interface ImportTopologySnapshotRequest {\n /**\n * @generated from protobuf field: bytes topology_snapshot = 1\n */\n topologySnapshot: Uint8Array\n /**\n * @generated from protobuf field: com.digitalasset.canton.topology.admin.v30.StoreId store = 2\n */\n store?: StoreId\n /**\n * * Optional timeout to wait for the transaction to become effective in the store.\n *\n * @generated from protobuf field: google.protobuf.Duration wait_to_become_effective = 3\n */\n waitToBecomeEffective?: Duration\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.ImportTopologySnapshotResponse\n */\nexport interface ImportTopologySnapshotResponse {}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.SignTransactionsRequest\n */\nexport interface SignTransactionsRequest {\n /**\n * * The transactions to be signed, but will not be stored in the authorized store\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.protocol.v30.SignedTopologyTransaction transactions = 1\n */\n transactions: SignedTopologyTransaction[]\n /**\n * *\n * Fingerprint of the keys signing the authorization\n *\n * The signing key is used to identify a particular `NamespaceDelegation` certificate,\n * which is used to justify the given authorization.\n * Optional, if empty, suitable signing keys available known to the node are automatically selected.\n *\n * @generated from protobuf field: repeated string signed_by = 2\n */\n signedBy: string[]\n /**\n * Target store\n *\n * @generated from protobuf field: com.digitalasset.canton.topology.admin.v30.StoreId store = 3\n */\n store?: StoreId\n /**\n * * Force specific changes even if dangerous\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.topology.admin.v30.ForceFlag force_flags = 4\n */\n forceFlags: ForceFlag[]\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.SignTransactionsResponse\n */\nexport interface SignTransactionsResponse {\n /**\n * * The transactions with the additional signatures from this node.\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.protocol.v30.SignedTopologyTransaction transactions = 1\n */\n transactions: SignedTopologyTransaction[]\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.CreateTemporaryTopologyStoreRequest\n */\nexport interface CreateTemporaryTopologyStoreRequest {\n /**\n * * The name of the topology store\n *\n * @generated from protobuf field: string name = 1\n */\n name: string\n /**\n * * The protocol version that should be used by the store\n *\n * @generated from protobuf field: uint32 protocol_version = 2\n */\n protocolVersion: number\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.CreateTemporaryTopologyStoreResponse\n */\nexport interface CreateTemporaryTopologyStoreResponse {\n /**\n * * The identifier of the topology store that should be used as a store filter string\n *\n * @generated from protobuf field: com.digitalasset.canton.topology.admin.v30.StoreId.Temporary store_id = 1\n */\n storeId?: StoreId_Temporary\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.DropTemporaryTopologyStoreRequest\n */\nexport interface DropTemporaryTopologyStoreRequest {\n /**\n * * The identifier of the topology store that should be dropped\n *\n * @generated from protobuf field: com.digitalasset.canton.topology.admin.v30.StoreId.Temporary store_id = 1\n */\n storeId?: StoreId_Temporary\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.DropTemporaryTopologyStoreResponse\n */\nexport interface DropTemporaryTopologyStoreResponse {}\n/**\n * @generated from protobuf enum com.digitalasset.canton.topology.admin.v30.ForceFlag\n */\nexport enum ForceFlag {\n /**\n * @generated from protobuf enum value: FORCE_FLAG_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * * Required when authorizing adding a topology transaction on behalf of another node.\n *\n * @generated from protobuf enum value: FORCE_FLAG_ALIEN_MEMBER = 1;\n */\n ALIEN_MEMBER = 1,\n /**\n * Deprecated, increasing ledger time record time tolerance does not require a force flag for PV >= 32\n *\n * @generated from protobuf enum value: FORCE_FLAG_LEDGER_TIME_RECORD_TIME_TOLERANCE_INCREASE = 2;\n */\n LEDGER_TIME_RECORD_TIME_TOLERANCE_INCREASE = 2,\n /**\n * * Required when revoking the vetting of a package\n *\n * @generated from protobuf enum value: FORCE_FLAG_ALLOW_UNVET_PACKAGE = 3;\n */\n ALLOW_UNVET_PACKAGE = 3,\n /**\n * * Required when vetting unknown packages (not uploaded).\n *\n * @generated from protobuf enum value: FORCE_FLAG_ALLOW_UNKNOWN_PACKAGE = 4;\n */\n ALLOW_UNKNOWN_PACKAGE = 4,\n /**\n * * Required when vetting a package with unvetted dependencies\n *\n * @generated from protobuf enum value: FORCE_FLAG_ALLOW_UNVETTED_DEPENDENCIES = 5;\n */\n ALLOW_UNVETTED_DEPENDENCIES = 5,\n /**\n * * Required when disabling a party with active contracts\n *\n * @generated from protobuf enum value: FORCE_FLAG_DISABLE_PARTY_WITH_ACTIVE_CONTRACTS = 6;\n */\n DISABLE_PARTY_WITH_ACTIVE_CONTRACTS = 6,\n /**\n * *\n * Required when using a key that is not suitable to sign a topology transaction.\n * Using this force flag likely causes the transaction to be rejected at a later stage of the processing.\n *\n * @generated from protobuf enum value: FORCE_FLAG_ALLOW_UNVALIDATED_SIGNING_KEYS = 7;\n */\n ALLOW_UNVALIDATED_SIGNING_KEYS = 7,\n /**\n * * Required when unvetting a package with active contracts\n *\n * @generated from protobuf enum value: FORCE_FLAG_ALLOW_UNVET_PACKAGE_WITH_ACTIVE_CONTRACTS = 8;\n */\n ALLOW_UNVET_PACKAGE_WITH_ACTIVE_CONTRACTS = 8,\n /**\n * * Required when increasing the submission time record time tolerance\n *\n * @generated from protobuf enum value: FORCE_FLAG_PREPARATION_TIME_RECORD_TIME_TOLERANCE_INCREASE = 9;\n */\n PREPARATION_TIME_RECORD_TIME_TOLERANCE_INCREASE = 9,\n /**\n * * Required when we want to change all participants' permissions to observation while the party is still a signatory of a contract.\n *\n * @generated from protobuf enum value: FORCE_FLAG_ALLOW_INSUFFICIENT_PARTICIPANT_PERMISSION_FOR_SIGNATORY_PARTY = 10;\n */\n ALLOW_INSUFFICIENT_PARTICIPANT_PERMISSION_FOR_SIGNATORY_PARTY = 10,\n /**\n * * Required when changing the party-to-participant mapping, that would result in insufficient\n * signatory-assigning participants and thus the assignment would be stuck.\n *\n * @generated from protobuf enum value: FORCE_FLAG_ALLOW_INSUFFICIENT_SIGNATORY_ASSIGNING_PARTICIPANTS_FOR_PARTY = 11;\n */\n ALLOW_INSUFFICIENT_SIGNATORY_ASSIGNING_PARTICIPANTS_FOR_PARTY = 11,\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass GenerateTransactionsRequest$Type extends MessageType<GenerateTransactionsRequest> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.GenerateTransactionsRequest',\n [\n {\n no: 1,\n name: 'proposals',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => GenerateTransactionsRequest_Proposal,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<GenerateTransactionsRequest>\n ): GenerateTransactionsRequest {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.proposals = []\n if (value !== undefined)\n reflectionMergePartial<GenerateTransactionsRequest>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: GenerateTransactionsRequest\n ): GenerateTransactionsRequest {\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.topology.admin.v30.GenerateTransactionsRequest.Proposal proposals */ 1:\n message.proposals.push(\n GenerateTransactionsRequest_Proposal.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: GenerateTransactionsRequest,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* repeated com.digitalasset.canton.topology.admin.v30.GenerateTransactionsRequest.Proposal proposals = 1; */\n for (let i = 0; i < message.proposals.length; i++)\n GenerateTransactionsRequest_Proposal.internalBinaryWrite(\n message.proposals[i],\n writer.tag(1, 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.topology.admin.v30.GenerateTransactionsRequest\n */\nexport const GenerateTransactionsRequest =\n new GenerateTransactionsRequest$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass GenerateTransactionsRequest_Proposal$Type extends MessageType<GenerateTransactionsRequest_Proposal> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.GenerateTransactionsRequest.Proposal',\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 { no: 4, name: 'store', kind: 'message', T: () => StoreId },\n ]\n )\n }\n create(\n value?: PartialMessage<GenerateTransactionsRequest_Proposal>\n ): GenerateTransactionsRequest_Proposal {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.operation = 0\n message.serial = 0\n if (value !== undefined)\n reflectionMergePartial<GenerateTransactionsRequest_Proposal>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: GenerateTransactionsRequest_Proposal\n ): GenerateTransactionsRequest_Proposal {\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 case /* com.digitalasset.canton.topology.admin.v30.StoreId store */ 4:\n message.store = StoreId.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.store\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: GenerateTransactionsRequest_Proposal,\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 /* com.digitalasset.canton.topology.admin.v30.StoreId store = 4; */\n if (message.store)\n StoreId.internalBinaryWrite(\n message.store,\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.topology.admin.v30.GenerateTransactionsRequest.Proposal\n */\nexport const GenerateTransactionsRequest_Proposal =\n new GenerateTransactionsRequest_Proposal$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass GenerateTransactionsResponse$Type extends MessageType<GenerateTransactionsResponse> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.GenerateTransactionsResponse',\n [\n {\n no: 1,\n name: 'generated_transactions',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => GenerateTransactionsResponse_GeneratedTransaction,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<GenerateTransactionsResponse>\n ): GenerateTransactionsResponse {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.generatedTransactions = []\n if (value !== undefined)\n reflectionMergePartial<GenerateTransactionsResponse>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: GenerateTransactionsResponse\n ): GenerateTransactionsResponse {\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.topology.admin.v30.GenerateTransactionsResponse.GeneratedTransaction generated_transactions */ 1:\n message.generatedTransactions.push(\n GenerateTransactionsResponse_GeneratedTransaction.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: GenerateTransactionsResponse,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* repeated com.digitalasset.canton.topology.admin.v30.GenerateTransactionsResponse.GeneratedTransaction generated_transactions = 1; */\n for (let i = 0; i < message.generatedTransactions.length; i++)\n GenerateTransactionsResponse_GeneratedTransaction.internalBinaryWrite(\n message.generatedTransactions[i],\n writer.tag(1, 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.topology.admin.v30.GenerateTransactionsResponse\n */\nexport const GenerateTransactionsResponse =\n new GenerateTransactionsResponse$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass GenerateTransactionsResponse_GeneratedTransaction$Type extends MessageType<GenerateTransactionsResponse_GeneratedTransaction> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.GenerateTransactionsResponse.GeneratedTransaction',\n [\n {\n no: 1,\n name: 'serialized_transaction',\n kind: 'scalar',\n T: 12 /*ScalarType.BYTES*/,\n },\n {\n no: 2,\n name: 'transaction_hash',\n kind: 'scalar',\n T: 12 /*ScalarType.BYTES*/,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<GenerateTransactionsResponse_GeneratedTransaction>\n ): GenerateTransactionsResponse_GeneratedTransaction {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.serializedTransaction = new Uint8Array(0)\n message.transactionHash = new Uint8Array(0)\n if (value !== undefined)\n reflectionMergePartial<GenerateTransactionsResponse_GeneratedTransaction>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: GenerateTransactionsResponse_GeneratedTransaction\n ): GenerateTransactionsResponse_GeneratedTransaction {\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 serialized_transaction */ 1:\n message.serializedTransaction = reader.bytes()\n break\n case /* bytes transaction_hash */ 2:\n message.transactionHash = 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: GenerateTransactionsResponse_GeneratedTransaction,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* bytes serialized_transaction = 1; */\n if (message.serializedTransaction.length)\n writer\n .tag(1, WireType.LengthDelimited)\n .bytes(message.serializedTransaction)\n /* bytes transaction_hash = 2; */\n if (message.transactionHash.length)\n writer\n .tag(2, WireType.LengthDelimited)\n .bytes(message.transactionHash)\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.topology.admin.v30.GenerateTransactionsResponse.GeneratedTransaction\n */\nexport const GenerateTransactionsResponse_GeneratedTransaction =\n new GenerateTransactionsResponse_GeneratedTransaction$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass AuthorizeRequest$Type extends MessageType<AuthorizeRequest> {\n constructor() {\n super('com.digitalasset.canton.topology.admin.v30.AuthorizeRequest', [\n {\n no: 1,\n name: 'proposal',\n kind: 'message',\n oneof: 'type',\n T: () => AuthorizeRequest_Proposal,\n },\n {\n no: 2,\n name: 'transaction_hash',\n kind: 'scalar',\n oneof: 'type',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 3,\n name: 'must_fully_authorize',\n kind: 'scalar',\n T: 8 /*ScalarType.BOOL*/,\n },\n {\n no: 4,\n name: 'force_changes',\n kind: 'enum',\n repeat: 1 /*RepeatType.PACKED*/,\n T: () => [\n 'com.digitalasset.canton.topology.admin.v30.ForceFlag',\n ForceFlag,\n 'FORCE_FLAG_',\n ],\n },\n {\n no: 5,\n name: 'signed_by',\n kind: 'scalar',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: 9 /*ScalarType.STRING*/,\n },\n { no: 6, name: 'store', kind: 'message', T: () => StoreId },\n {\n no: 7,\n name: 'wait_to_become_effective',\n kind: 'message',\n T: () => Duration,\n },\n ])\n }\n create(value?: PartialMessage<AuthorizeRequest>): AuthorizeRequest {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.type = { oneofKind: undefined }\n message.mustFullyAuthorize = false\n message.forceChanges = []\n message.signedBy = []\n if (value !== undefined)\n reflectionMergePartial<AuthorizeRequest>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: AuthorizeRequest\n ): AuthorizeRequest {\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.topology.admin.v30.AuthorizeRequest.Proposal proposal */ 1:\n message.type = {\n oneofKind: 'proposal',\n proposal: AuthorizeRequest_Proposal.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.type as any).proposal\n ),\n }\n break\n case /* string transaction_hash */ 2:\n message.type = {\n oneofKind: 'transactionHash',\n transactionHash: reader.string(),\n }\n break\n case /* bool must_fully_authorize */ 3:\n message.mustFullyAuthorize = reader.bool()\n break\n case /* repeated com.digitalasset.canton.topology.admin.v30.ForceFlag force_changes */ 4:\n if (wireType === WireType.LengthDelimited)\n for (\n let e = reader.int32() + reader.pos;\n reader.pos < e;\n\n )\n message.forceChanges.push(reader.int32())\n else message.forceChanges.push(reader.int32())\n break\n case /* repeated string signed_by */ 5:\n message.signedBy.push(reader.string())\n break\n case /* com.digitalasset.canton.topology.admin.v30.StoreId store */ 6:\n message.store = StoreId.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.store\n )\n break\n case /* google.protobuf.Duration wait_to_become_effective */ 7:\n message.waitToBecomeEffective = Duration.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.waitToBecomeEffective\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: AuthorizeRequest,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* com.digitalasset.canton.topology.admin.v30.AuthorizeRequest.Proposal proposal = 1; */\n if (message.type.oneofKind === 'proposal')\n AuthorizeRequest_Proposal.internalBinaryWrite(\n message.type.proposal,\n writer.tag(1, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* string transaction_hash = 2; */\n if (message.type.oneofKind === 'transactionHash')\n writer\n .tag(2, WireType.LengthDelimited)\n .string(message.type.transactionHash)\n /* bool must_fully_authorize = 3; */\n if (message.mustFullyAuthorize !== false)\n writer.tag(3, WireType.Varint).bool(message.mustFullyAuthorize)\n /* repeated com.digitalasset.canton.topology.admin.v30.ForceFlag force_changes = 4; */\n if (message.forceChanges.length) {\n writer.tag(4, WireType.LengthDelimited).fork()\n for (let i = 0; i < message.forceChanges.length; i++)\n writer.int32(message.forceChanges[i])\n writer.join()\n }\n /* repeated string signed_by = 5; */\n for (let i = 0; i < message.signedBy.length; i++)\n writer.tag(5, WireType.LengthDelimited).string(message.signedBy[i])\n /* com.digitalasset.canton.topology.admin.v30.StoreId store = 6; */\n if (message.store)\n StoreId.internalBinaryWrite(\n message.store,\n writer.tag(6, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* google.protobuf.Duration wait_to_become_effective = 7; */\n if (message.waitToBecomeEffective)\n Duration.internalBinaryWrite(\n message.waitToBecomeEffective,\n writer.tag(7, 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.topology.admin.v30.AuthorizeRequest\n */\nexport const AuthorizeRequest = new AuthorizeRequest$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass AuthorizeRequest_Proposal$Type extends MessageType<AuthorizeRequest_Proposal> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.AuthorizeRequest.Proposal',\n [\n {\n no: 1,\n name: 'change',\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 }\n create(\n value?: PartialMessage<AuthorizeRequest_Proposal>\n ): AuthorizeRequest_Proposal {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.change = 0\n message.serial = 0\n if (value !== undefined)\n reflectionMergePartial<AuthorizeRequest_Proposal>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: AuthorizeRequest_Proposal\n ): AuthorizeRequest_Proposal {\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 change */ 1:\n message.change = 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: AuthorizeRequest_Proposal,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* com.digitalasset.canton.protocol.v30.Enums.TopologyChangeOp change = 1; */\n if (message.change !== 0)\n writer.tag(1, WireType.Varint).int32(message.change)\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.topology.admin.v30.AuthorizeRequest.Proposal\n */\nexport const AuthorizeRequest_Proposal = new AuthorizeRequest_Proposal$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass AuthorizeResponse$Type extends MessageType<AuthorizeResponse> {\n constructor() {\n super('com.digitalasset.canton.topology.admin.v30.AuthorizeResponse', [\n {\n no: 1,\n name: 'transaction',\n kind: 'message',\n T: () => SignedTopologyTransaction,\n },\n ])\n }\n create(value?: PartialMessage<AuthorizeResponse>): AuthorizeResponse {\n const message = globalThis.Object.create(this.messagePrototype!)\n if (value !== undefined)\n reflectionMergePartial<AuthorizeResponse>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: AuthorizeResponse\n ): AuthorizeResponse {\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.SignedTopologyTransaction transaction */ 1:\n message.transaction =\n SignedTopologyTransaction.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.transaction\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: AuthorizeResponse,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* com.digitalasset.canton.protocol.v30.SignedTopologyTransaction transaction = 1; */\n if (message.transaction)\n SignedTopologyTransaction.internalBinaryWrite(\n message.transaction,\n writer.tag(1, 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.topology.admin.v30.AuthorizeResponse\n */\nexport const AuthorizeResponse = new AuthorizeResponse$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass AddTransactionsRequest$Type extends MessageType<AddTransactionsRequest> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.AddTransactionsRequest',\n [\n {\n no: 1,\n name: 'transactions',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => SignedTopologyTransaction,\n },\n {\n no: 2,\n name: 'force_changes',\n kind: 'enum',\n repeat: 1 /*RepeatType.PACKED*/,\n T: () => [\n 'com.digitalasset.canton.topology.admin.v30.ForceFlag',\n ForceFlag,\n 'FORCE_FLAG_',\n ],\n },\n { no: 3, name: 'store', kind: 'message', T: () => StoreId },\n {\n no: 7,\n name: 'wait_to_become_effective',\n kind: 'message',\n T: () => Duration,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<AddTransactionsRequest>\n ): AddTransactionsRequest {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.transactions = []\n message.forceChanges = []\n if (value !== undefined)\n reflectionMergePartial<AddTransactionsRequest>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: AddTransactionsRequest\n ): AddTransactionsRequest {\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.SignedTopologyTransaction transactions */ 1:\n message.transactions.push(\n SignedTopologyTransaction.internalBinaryRead(\n reader,\n reader.uint32(),\n options\n )\n )\n break\n case /* repeated com.digitalasset.canton.topology.admin.v30.ForceFlag force_changes */ 2:\n if (wireType === WireType.LengthDelimited)\n for (\n let e = reader.int32() + reader.pos;\n reader.pos < e;\n\n )\n message.forceChanges.push(reader.int32())\n else message.forceChanges.push(reader.int32())\n break\n case /* com.digitalasset.canton.topology.admin.v30.StoreId store */ 3:\n message.store = StoreId.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.store\n )\n break\n case /* google.protobuf.Duration wait_to_become_effective */ 7:\n message.waitToBecomeEffective = Duration.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.waitToBecomeEffective\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: AddTransactionsRequest,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* repeated com.digitalasset.canton.protocol.v30.SignedTopologyTransaction transactions = 1; */\n for (let i = 0; i < message.transactions.length; i++)\n SignedTopologyTransaction.internalBinaryWrite(\n message.transactions[i],\n writer.tag(1, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* repeated com.digitalasset.canton.topology.admin.v30.ForceFlag force_changes = 2; */\n if (message.forceChanges.length) {\n writer.tag(2, WireType.LengthDelimited).fork()\n for (let i = 0; i < message.forceChanges.length; i++)\n writer.int32(message.forceChanges[i])\n writer.join()\n }\n /* com.digitalasset.canton.topology.admin.v30.StoreId store = 3; */\n if (message.store)\n StoreId.internalBinaryWrite(\n message.store,\n writer.tag(3, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* google.protobuf.Duration wait_to_become_effective = 7; */\n if (message.waitToBecomeEffective)\n Duration.internalBinaryWrite(\n message.waitToBecomeEffective,\n writer.tag(7, 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.topology.admin.v30.AddTransactionsRequest\n */\nexport const AddTransactionsRequest = new AddTransactionsRequest$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass AddTransactionsResponse$Type extends MessageType<AddTransactionsResponse> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.AddTransactionsResponse',\n []\n )\n }\n create(\n value?: PartialMessage<AddTransactionsResponse>\n ): AddTransactionsResponse {\n const message = globalThis.Object.create(this.messagePrototype!)\n if (value !== undefined)\n reflectionMergePartial<AddTransactionsResponse>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: AddTransactionsResponse\n ): AddTransactionsResponse {\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: AddTransactionsResponse,\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.topology.admin.v30.AddTransactionsResponse\n */\nexport const AddTransactionsResponse = new AddTransactionsResponse$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass ImportTopologySnapshotRequest$Type extends MessageType<ImportTopologySnapshotRequest> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.ImportTopologySnapshotRequest',\n [\n {\n no: 1,\n name: 'topology_snapshot',\n kind: 'scalar',\n T: 12 /*ScalarType.BYTES*/,\n },\n { no: 2, name: 'store', kind: 'message', T: () => StoreId },\n {\n no: 3,\n name: 'wait_to_become_effective',\n kind: 'message',\n T: () => Duration,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<ImportTopologySnapshotRequest>\n ): ImportTopologySnapshotRequest {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.topologySnapshot = new Uint8Array(0)\n if (value !== undefined)\n reflectionMergePartial<ImportTopologySnapshotRequest>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: ImportTopologySnapshotRequest\n ): ImportTopologySnapshotRequest {\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 topology_snapshot */ 1:\n message.topologySnapshot = reader.bytes()\n break\n case /* com.digitalasset.canton.topology.admin.v30.StoreId store */ 2:\n message.store = StoreId.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.store\n )\n break\n case /* google.protobuf.Duration wait_to_become_effective */ 3:\n message.waitToBecomeEffective = Duration.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.waitToBecomeEffective\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: ImportTopologySnapshotRequest,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* bytes topology_snapshot = 1; */\n if (message.topologySnapshot.length)\n writer\n .tag(1, WireType.LengthDelimited)\n .bytes(message.topologySnapshot)\n /* com.digitalasset.canton.topology.admin.v30.StoreId store = 2; */\n if (message.store)\n StoreId.internalBinaryWrite(\n message.store,\n writer.tag(2, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* google.protobuf.Duration wait_to_become_effective = 3; */\n if (message.waitToBecomeEffective)\n Duration.internalBinaryWrite(\n message.waitToBecomeEffective,\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.topology.admin.v30.ImportTopologySnapshotRequest\n */\nexport const ImportTopologySnapshotRequest =\n new ImportTopologySnapshotRequest$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass ImportTopologySnapshotResponse$Type extends MessageType<ImportTopologySnapshotResponse> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.ImportTopologySnapshotResponse',\n []\n )\n }\n create(\n value?: PartialMessage<ImportTopologySnapshotResponse>\n ): ImportTopologySnapshotResponse {\n const message = globalThis.Object.create(this.messagePrototype!)\n if (value !== undefined)\n reflectionMergePartial<ImportTopologySnapshotResponse>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: ImportTopologySnapshotResponse\n ): ImportTopologySnapshotResponse {\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: ImportTopologySnapshotResponse,\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.topology.admin.v30.ImportTopologySnapshotResponse\n */\nexport const ImportTopologySnapshotResponse =\n new ImportTopologySnapshotResponse$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass SignTransactionsRequest$Type extends MessageType<SignTransactionsRequest> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.SignTransactionsRequest',\n [\n {\n no: 1,\n name: 'transactions',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => SignedTopologyTransaction,\n },\n {\n no: 2,\n name: 'signed_by',\n kind: 'scalar',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: 9 /*ScalarType.STRING*/,\n },\n { no: 3, name: 'store', kind: 'message', T: () => StoreId },\n {\n no: 4,\n name: 'force_flags',\n kind: 'enum',\n repeat: 1 /*RepeatType.PACKED*/,\n T: () => [\n 'com.digitalasset.canton.topology.admin.v30.ForceFlag',\n ForceFlag,\n 'FORCE_FLAG_',\n ],\n },\n ]\n )\n }\n create(\n value?: PartialMessage<SignTransactionsRequest>\n ): SignTransactionsRequest {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.transactions = []\n message.signedBy = []\n message.forceFlags = []\n if (value !== undefined)\n reflectionMergePartial<SignTransactionsRequest>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: SignTransactionsRequest\n ): SignTransactionsRequest {\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.SignedTopologyTransaction transactions */ 1:\n message.transactions.push(\n SignedTopologyTransaction.internalBinaryRead(\n reader,\n reader.uint32(),\n options\n )\n )\n break\n case /* repeated string signed_by */ 2:\n message.signedBy.push(reader.string())\n break\n case /* com.digitalasset.canton.topology.admin.v30.StoreId store */ 3:\n message.store = StoreId.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.store\n )\n break\n case /* repeated com.digitalasset.canton.topology.admin.v30.ForceFlag force_flags */ 4:\n if (wireType === WireType.LengthDelimited)\n for (\n let e = reader.int32() + reader.pos;\n reader.pos < e;\n\n )\n message.forceFlags.push(reader.int32())\n else message.forceFlags.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: SignTransactionsRequest,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* repeated com.digitalasset.canton.protocol.v30.SignedTopologyTransaction transactions = 1; */\n for (let i = 0; i < message.transactions.length; i++)\n SignedTopologyTransaction.internalBinaryWrite(\n message.transactions[i],\n writer.tag(1, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* repeated string signed_by = 2; */\n for (let i = 0; i < message.signedBy.length; i++)\n writer.tag(2, WireType.LengthDelimited).string(message.signedBy[i])\n /* com.digitalasset.canton.topology.admin.v30.StoreId store = 3; */\n if (message.store)\n StoreId.internalBinaryWrite(\n message.store,\n writer.tag(3, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* repeated com.digitalasset.canton.topology.admin.v30.ForceFlag force_flags = 4; */\n if (message.forceFlags.length) {\n writer.tag(4, WireType.LengthDelimited).fork()\n for (let i = 0; i < message.forceFlags.length; i++)\n writer.int32(message.forceFlags[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.topology.admin.v30.SignTransactionsRequest\n */\nexport const SignTransactionsRequest = new SignTransactionsRequest$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass SignTransactionsResponse$Type extends MessageType<SignTransactionsResponse> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.SignTransactionsResponse',\n [\n {\n no: 1,\n name: 'transactions',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => SignedTopologyTransaction,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<SignTransactionsResponse>\n ): SignTransactionsResponse {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.transactions = []\n if (value !== undefined)\n reflectionMergePartial<SignTransactionsResponse>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: SignTransactionsResponse\n ): SignTransactionsResponse {\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.SignedTopologyTransaction transactions */ 1:\n message.transactions.push(\n SignedTopologyTransaction.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: SignTransactionsResponse,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* repeated com.digitalasset.canton.protocol.v30.SignedTopologyTransaction transactions = 1; */\n for (let i = 0; i < message.transactions.length; i++)\n SignedTopologyTransaction.internalBinaryWrite(\n message.transactions[i],\n writer.tag(1, 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.topology.admin.v30.SignTransactionsResponse\n */\nexport const SignTransactionsResponse = new SignTransactionsResponse$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass CreateTemporaryTopologyStoreRequest$Type extends MessageType<CreateTemporaryTopologyStoreRequest> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.CreateTemporaryTopologyStoreRequest',\n [\n {\n no: 1,\n name: 'name',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'protocol_version',\n kind: 'scalar',\n T: 13 /*ScalarType.UINT32*/,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<CreateTemporaryTopologyStoreRequest>\n ): CreateTemporaryTopologyStoreRequest {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.name = ''\n message.protocolVersion = 0\n if (value !== undefined)\n reflectionMergePartial<CreateTemporaryTopologyStoreRequest>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: CreateTemporaryTopologyStoreRequest\n ): CreateTemporaryTopologyStoreRequest {\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 name */ 1:\n message.name = reader.string()\n break\n case /* uint32 protocol_version */ 2:\n message.protocolVersion = reader.uint32()\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: CreateTemporaryTopologyStoreRequest,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string name = 1; */\n if (message.name !== '')\n writer.tag(1, WireType.LengthDelimited).string(message.name)\n /* uint32 protocol_version = 2; */\n if (message.protocolVersion !== 0)\n writer.tag(2, WireType.Varint).uint32(message.protocolVersion)\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.topology.admin.v30.CreateTemporaryTopologyStoreRequest\n */\nexport const CreateTemporaryTopologyStoreRequest =\n new CreateTemporaryTopologyStoreRequest$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass CreateTemporaryTopologyStoreResponse$Type extends MessageType<CreateTemporaryTopologyStoreResponse> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.CreateTemporaryTopologyStoreResponse',\n [\n {\n no: 1,\n name: 'store_id',\n kind: 'message',\n T: () => StoreId_Temporary,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<CreateTemporaryTopologyStoreResponse>\n ): CreateTemporaryTopologyStoreResponse {\n const message = globalThis.Object.create(this.messagePrototype!)\n if (value !== undefined)\n reflectionMergePartial<CreateTemporaryTopologyStoreResponse>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: CreateTemporaryTopologyStoreResponse\n ): CreateTemporaryTopologyStoreResponse {\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.topology.admin.v30.StoreId.Temporary store_id */ 1:\n message.storeId = StoreId_Temporary.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.storeId\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: CreateTemporaryTopologyStoreResponse,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* com.digitalasset.canton.topology.admin.v30.StoreId.Temporary store_id = 1; */\n if (message.storeId)\n StoreId_Temporary.internalBinaryWrite(\n message.storeId,\n writer.tag(1, 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.topology.admin.v30.CreateTemporaryTopologyStoreResponse\n */\nexport const CreateTemporaryTopologyStoreResponse =\n new CreateTemporaryTopologyStoreResponse$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass DropTemporaryTopologyStoreRequest$Type extends MessageType<DropTemporaryTopologyStoreRequest> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.DropTemporaryTopologyStoreRequest',\n [\n {\n no: 1,\n name: 'store_id',\n kind: 'message',\n T: () => StoreId_Temporary,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<DropTemporaryTopologyStoreRequest>\n ): DropTemporaryTopologyStoreRequest {\n const message = globalThis.Object.create(this.messagePrototype!)\n if (value !== undefined)\n reflectionMergePartial<DropTemporaryTopologyStoreRequest>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: DropTemporaryTopologyStoreRequest\n ): DropTemporaryTopologyStoreRequest {\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.topology.admin.v30.StoreId.Temporary store_id */ 1:\n message.storeId = StoreId_Temporary.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.storeId\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: DropTemporaryTopologyStoreRequest,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* com.digitalasset.canton.topology.admin.v30.StoreId.Temporary store_id = 1; */\n if (message.storeId)\n StoreId_Temporary.internalBinaryWrite(\n message.storeId,\n writer.tag(1, 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.topology.admin.v30.DropTemporaryTopologyStoreRequest\n */\nexport const DropTemporaryTopologyStoreRequest =\n new DropTemporaryTopologyStoreRequest$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass DropTemporaryTopologyStoreResponse$Type extends MessageType<DropTemporaryTopologyStoreResponse> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.DropTemporaryTopologyStoreResponse',\n []\n )\n }\n create(\n value?: PartialMessage<DropTemporaryTopologyStoreResponse>\n ): DropTemporaryTopologyStoreResponse {\n const message = globalThis.Object.create(this.messagePrototype!)\n if (value !== undefined)\n reflectionMergePartial<DropTemporaryTopologyStoreResponse>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: DropTemporaryTopologyStoreResponse\n ): DropTemporaryTopologyStoreResponse {\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: DropTemporaryTopologyStoreResponse,\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.topology.admin.v30.DropTemporaryTopologyStoreResponse\n */\nexport const DropTemporaryTopologyStoreResponse =\n new DropTemporaryTopologyStoreResponse$Type()\n/**\n * @generated ServiceType for protobuf service com.digitalasset.canton.topology.admin.v30.TopologyManagerWriteService\n */\nexport const TopologyManagerWriteService = new ServiceType(\n 'com.digitalasset.canton.topology.admin.v30.TopologyManagerWriteService',\n [\n {\n name: 'Authorize',\n options: {},\n I: AuthorizeRequest,\n O: AuthorizeResponse,\n },\n {\n name: 'AddTransactions',\n options: {},\n I: AddTransactionsRequest,\n O: AddTransactionsResponse,\n },\n {\n name: 'ImportTopologySnapshot',\n clientStreaming: true,\n options: {},\n I: ImportTopologySnapshotRequest,\n O: ImportTopologySnapshotResponse,\n },\n {\n name: 'SignTransactions',\n options: {},\n I: SignTransactionsRequest,\n O: SignTransactionsResponse,\n },\n {\n name: 'GenerateTransactions',\n options: {},\n I: GenerateTransactionsRequest,\n O: GenerateTransactionsResponse,\n },\n {\n name: 'CreateTemporaryTopologyStore',\n options: {},\n I: CreateTemporaryTopologyStoreRequest,\n O: CreateTemporaryTopologyStoreResponse,\n },\n {\n name: 'DropTemporaryTopologyStore',\n options: {},\n I: DropTemporaryTopologyStoreRequest,\n O: DropTemporaryTopologyStoreResponse,\n },\n ]\n)\n"],"mappings":";;;;;;;;;;;;;;AAOA;;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../../src/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies\n// @generated from protobuf file \"com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.proto\" (package \"com.digitalasset.canton.topology.admin.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 { ServiceType } from '@protobuf-ts/runtime-rpc'\nimport type { BinaryWriteOptions } from '@protobuf-ts/runtime'\nimport type { IBinaryWriter } from '@protobuf-ts/runtime'\nimport { WireType } 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 { StoreId_Temporary } from './common.js'\nimport { SignedTopologyTransaction } from '../../../protocol/v30/topology.js'\nimport { Duration } from '../../../../../../google/protobuf/duration.js'\nimport { StoreId } from './common.js'\nimport { TopologyMapping } from '../../../protocol/v30/topology.js'\nimport { Enums_TopologyChangeOp } from '../../../protocol/v30/topology.js'\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.GenerateTransactionsRequest\n */\nexport interface GenerateTransactionsRequest {\n /**\n * transaction proposals for which to generate topology transactions\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.topology.admin.v30.GenerateTransactionsRequest.Proposal proposals = 1\n */\n proposals: GenerateTransactionsRequest_Proposal[]\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.GenerateTransactionsRequest.Proposal\n */\nexport interface GenerateTransactionsRequest_Proposal {\n /**\n * * Replace / Remove\n *\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.Enums.TopologyChangeOp operation = 1\n */\n operation: Enums_TopologyChangeOp\n /**\n * * Optionally, the serial number of this request (auto-determined if omitted)\n * NOTE: omitting the serial MAY end up overwriting previous mappings processed concurrently.\n * To avoid such cases, First read the state using the TopologyManagerReadService and update the mappings\n * accordingly, incrementing the serial by one and setting it here explicitly.\n *\n * @generated from protobuf field: uint32 serial = 2\n */\n serial: number\n /**\n * * The mapping to be authorized\n *\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.TopologyMapping mapping = 3\n */\n mapping?: TopologyMapping\n /**\n * Target store\n *\n * @generated from protobuf field: com.digitalasset.canton.topology.admin.v30.StoreId store = 4\n */\n store?: StoreId\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.GenerateTransactionsResponse\n */\nexport interface GenerateTransactionsResponse {\n /**\n * Generated transactions, in the same order as the mappings provided in the request\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.topology.admin.v30.GenerateTransactionsResponse.GeneratedTransaction generated_transactions = 1\n */\n generatedTransactions: GenerateTransactionsResponse_GeneratedTransaction[]\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.GenerateTransactionsResponse.GeneratedTransaction\n */\nexport interface GenerateTransactionsResponse_GeneratedTransaction {\n /**\n * Serialized com.digitalasset.canton.protocol.v30.TopologyTransaction\n *\n * @generated from protobuf field: bytes serialized_transaction = 1\n */\n serializedTransaction: Uint8Array\n /**\n * Hash of the transaction - this should be signed by the submitter to authorize the transaction\n *\n * @generated from protobuf field: bytes transaction_hash = 2\n */\n transactionHash: Uint8Array\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.AuthorizeRequest\n */\nexport interface AuthorizeRequest {\n /**\n * @generated from protobuf oneof: type\n */\n type:\n | {\n oneofKind: 'proposal'\n /**\n * *\n * Propose a transaction and distribute it.\n * If authorize if the node has enough signing keys\n *\n * @generated from protobuf field: com.digitalasset.canton.topology.admin.v30.AuthorizeRequest.Proposal proposal = 1\n */\n proposal: AuthorizeRequest_Proposal\n }\n | {\n oneofKind: 'transactionHash'\n /**\n * *\n * Authorize a transaction, meaning the node needs to be able to fully sign it locally.\n * Hash is in hexadecimal format.\n *\n * @generated from protobuf field: string transaction_hash = 2\n */\n transactionHash: string\n }\n | {\n oneofKind: undefined\n }\n /**\n * *\n * If true: the transaction is only signed if the new signatures will result in the transaction being fully\n * authorized. Otherwise returns as an error.\n * If false: the transaction is signed and the signature distributed. The transaction may still not be fully\n * authorized and remain as a proposal.\n *\n * @generated from protobuf field: bool must_fully_authorize = 3\n */\n mustFullyAuthorize: boolean\n /**\n * * Force specific changes even if dangerous\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.topology.admin.v30.ForceFlag force_changes = 4\n */\n forceChanges: ForceFlag[]\n /**\n * *\n * Fingerprint of the keys signing the authorization\n *\n * The signing key is used to identify a particular `NamespaceDelegation` certificate,\n * which is used to justify the given authorization.\n * Optional, if empty, suitable signing keys available known to the node are automatically selected.\n *\n * @generated from protobuf field: repeated string signed_by = 5\n */\n signedBy: string[]\n /**\n * *\n * The store that is used as the underlying source for executing this request.\n * If `store` is a synchronizer store, the resulting topology transaction will only be available on the respective synchronizer.\n * If `store` is the authorized store, the resulting topology transaction may or may not be synchronized automatically\n * to all synchronizers that the node is currently connected to or will be connected to in the future.\n *\n * Selecting a specific synchronizers store might be necessary, if the transaction to authorize by hash or the previous\n * generation of the submitted proposal is only available on the synchronizers store and not in the authorized store.\n *\n * @generated from protobuf field: com.digitalasset.canton.topology.admin.v30.StoreId store = 6\n */\n store?: StoreId\n /**\n * * Optional timeout to wait for the transaction to become effective in the store.\n *\n * @generated from protobuf field: google.protobuf.Duration wait_to_become_effective = 7\n */\n waitToBecomeEffective?: Duration\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.AuthorizeRequest.Proposal\n */\nexport interface AuthorizeRequest_Proposal {\n /**\n * * Replace / Remove\n *\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.Enums.TopologyChangeOp change = 1\n */\n change: Enums_TopologyChangeOp\n /**\n * * Optionally, the serial number of this request (auto-determined if omitted)\n *\n * @generated from protobuf field: uint32 serial = 2\n */\n serial: number\n /**\n * * The mapping to be authorized\n *\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.TopologyMapping mapping = 3\n */\n mapping?: TopologyMapping\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.AuthorizeResponse\n */\nexport interface AuthorizeResponse {\n /**\n * * the generated signed topology transaction\n *\n * @generated from protobuf field: com.digitalasset.canton.protocol.v30.SignedTopologyTransaction transaction = 1\n */\n transaction?: SignedTopologyTransaction\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.AddTransactionsRequest\n */\nexport interface AddTransactionsRequest {\n /**\n * *\n * The transactions that should be added to the target store as indicated by the parameter `store`.\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.protocol.v30.SignedTopologyTransaction transactions = 1\n */\n transactions: SignedTopologyTransaction[]\n /**\n * * Force specific changes even if dangerous\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.topology.admin.v30.ForceFlag force_changes = 2\n */\n forceChanges: ForceFlag[]\n /**\n * *\n * The store that is used as the underlying source for executing this request.\n * If `store` is a synchronizers store, the resulting topology transaction will only be available on the respective synchronizers.\n * If `store` is the authorized store, the resulting topology transaction may or may not be synchronized automatically\n * to all synchronizers that the node is currently connected to or will be connected to in the future.\n *\n * Selecting a specific synchronizers store might be necessary, if the transaction to authorize by hash or the previous\n * generation of the submitted proposal is only available on the synchronizers store and not in the authorized store.\n *\n * @generated from protobuf field: com.digitalasset.canton.topology.admin.v30.StoreId store = 3\n */\n store?: StoreId\n /**\n * * Optional timeout to wait for the transaction to become effective in the store.\n *\n * @generated from protobuf field: google.protobuf.Duration wait_to_become_effective = 7\n */\n waitToBecomeEffective?: Duration\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.AddTransactionsResponse\n */\nexport interface AddTransactionsResponse {}\n/**\n * *\n * Same message as AddTransactionsRequest, except that transactions are encoded in a byte string\n *\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.ImportTopologySnapshotRequest\n */\nexport interface ImportTopologySnapshotRequest {\n /**\n * @generated from protobuf field: bytes topology_snapshot = 1\n */\n topologySnapshot: Uint8Array\n /**\n * @generated from protobuf field: com.digitalasset.canton.topology.admin.v30.StoreId store = 2\n */\n store?: StoreId\n /**\n * * Optional timeout to wait for the transaction to become effective in the store.\n *\n * @generated from protobuf field: google.protobuf.Duration wait_to_become_effective = 3\n */\n waitToBecomeEffective?: Duration\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.ImportTopologySnapshotResponse\n */\nexport interface ImportTopologySnapshotResponse {}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.SignTransactionsRequest\n */\nexport interface SignTransactionsRequest {\n /**\n * * The transactions to be signed, but will not be stored in the authorized store\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.protocol.v30.SignedTopologyTransaction transactions = 1\n */\n transactions: SignedTopologyTransaction[]\n /**\n * *\n * Fingerprint of the keys signing the authorization\n *\n * The signing key is used to identify a particular `NamespaceDelegation` certificate,\n * which is used to justify the given authorization.\n * Optional, if empty, suitable signing keys available known to the node are automatically selected.\n *\n * @generated from protobuf field: repeated string signed_by = 2\n */\n signedBy: string[]\n /**\n * Target store\n *\n * @generated from protobuf field: com.digitalasset.canton.topology.admin.v30.StoreId store = 3\n */\n store?: StoreId\n /**\n * * Force specific changes even if dangerous\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.topology.admin.v30.ForceFlag force_flags = 4\n */\n forceFlags: ForceFlag[]\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.SignTransactionsResponse\n */\nexport interface SignTransactionsResponse {\n /**\n * * The transactions with the additional signatures from this node.\n *\n * @generated from protobuf field: repeated com.digitalasset.canton.protocol.v30.SignedTopologyTransaction transactions = 1\n */\n transactions: SignedTopologyTransaction[]\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.CreateTemporaryTopologyStoreRequest\n */\nexport interface CreateTemporaryTopologyStoreRequest {\n /**\n * * The name of the topology store\n *\n * @generated from protobuf field: string name = 1\n */\n name: string\n /**\n * * The protocol version that should be used by the store\n *\n * @generated from protobuf field: uint32 protocol_version = 2\n */\n protocolVersion: number\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.CreateTemporaryTopologyStoreResponse\n */\nexport interface CreateTemporaryTopologyStoreResponse {\n /**\n * * The identifier of the topology store that should be used as a store filter string\n *\n * @generated from protobuf field: com.digitalasset.canton.topology.admin.v30.StoreId.Temporary store_id = 1\n */\n storeId?: StoreId_Temporary\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.DropTemporaryTopologyStoreRequest\n */\nexport interface DropTemporaryTopologyStoreRequest {\n /**\n * * The identifier of the topology store that should be dropped\n *\n * @generated from protobuf field: com.digitalasset.canton.topology.admin.v30.StoreId.Temporary store_id = 1\n */\n storeId?: StoreId_Temporary\n}\n/**\n * @generated from protobuf message com.digitalasset.canton.topology.admin.v30.DropTemporaryTopologyStoreResponse\n */\nexport interface DropTemporaryTopologyStoreResponse {}\n/**\n * @generated from protobuf enum com.digitalasset.canton.topology.admin.v30.ForceFlag\n */\nexport enum ForceFlag {\n /**\n * @generated from protobuf enum value: FORCE_FLAG_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * * Required when authorizing adding a topology transaction on behalf of another node.\n *\n * @generated from protobuf enum value: FORCE_FLAG_ALIEN_MEMBER = 1;\n */\n ALIEN_MEMBER = 1,\n /**\n * Deprecated, increasing ledger time record time tolerance does not require a force flag for PV >= 32\n *\n * @generated from protobuf enum value: FORCE_FLAG_LEDGER_TIME_RECORD_TIME_TOLERANCE_INCREASE = 2;\n */\n LEDGER_TIME_RECORD_TIME_TOLERANCE_INCREASE = 2,\n /**\n * * Required when revoking the vetting of a package\n *\n * @generated from protobuf enum value: FORCE_FLAG_ALLOW_UNVET_PACKAGE = 3;\n */\n ALLOW_UNVET_PACKAGE = 3,\n /**\n * * Required when vetting unknown packages (not uploaded).\n *\n * @generated from protobuf enum value: FORCE_FLAG_ALLOW_UNKNOWN_PACKAGE = 4;\n */\n ALLOW_UNKNOWN_PACKAGE = 4,\n /**\n * * Required when vetting a package with unvetted dependencies\n *\n * @generated from protobuf enum value: FORCE_FLAG_ALLOW_UNVETTED_DEPENDENCIES = 5;\n */\n ALLOW_UNVETTED_DEPENDENCIES = 5,\n /**\n * * Required when disabling a party with active contracts\n *\n * @generated from protobuf enum value: FORCE_FLAG_DISABLE_PARTY_WITH_ACTIVE_CONTRACTS = 6;\n */\n DISABLE_PARTY_WITH_ACTIVE_CONTRACTS = 6,\n /**\n * *\n * Required when using a key that is not suitable to sign a topology transaction.\n * Using this force flag likely causes the transaction to be rejected at a later stage of the processing.\n *\n * @generated from protobuf enum value: FORCE_FLAG_ALLOW_UNVALIDATED_SIGNING_KEYS = 7;\n */\n ALLOW_UNVALIDATED_SIGNING_KEYS = 7,\n /**\n * * Required when unvetting a package with active contracts\n *\n * @generated from protobuf enum value: FORCE_FLAG_ALLOW_UNVET_PACKAGE_WITH_ACTIVE_CONTRACTS = 8;\n */\n ALLOW_UNVET_PACKAGE_WITH_ACTIVE_CONTRACTS = 8,\n /**\n * * Required when increasing the submission time record time tolerance\n *\n * @generated from protobuf enum value: FORCE_FLAG_PREPARATION_TIME_RECORD_TIME_TOLERANCE_INCREASE = 9;\n */\n PREPARATION_TIME_RECORD_TIME_TOLERANCE_INCREASE = 9,\n /**\n * * Required when we want to change all participants' permissions to observation while the party is still a signatory of a contract.\n *\n * @generated from protobuf enum value: FORCE_FLAG_ALLOW_INSUFFICIENT_PARTICIPANT_PERMISSION_FOR_SIGNATORY_PARTY = 10;\n */\n ALLOW_INSUFFICIENT_PARTICIPANT_PERMISSION_FOR_SIGNATORY_PARTY = 10,\n /**\n * * Required when changing the party-to-participant mapping, that would result in insufficient\n * signatory-assigning participants and thus the assignment would be stuck.\n *\n * @generated from protobuf enum value: FORCE_FLAG_ALLOW_INSUFFICIENT_SIGNATORY_ASSIGNING_PARTICIPANTS_FOR_PARTY = 11;\n */\n ALLOW_INSUFFICIENT_SIGNATORY_ASSIGNING_PARTICIPANTS_FOR_PARTY = 11,\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass GenerateTransactionsRequest$Type extends MessageType<GenerateTransactionsRequest> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.GenerateTransactionsRequest',\n [\n {\n no: 1,\n name: 'proposals',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => GenerateTransactionsRequest_Proposal,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<GenerateTransactionsRequest>\n ): GenerateTransactionsRequest {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.proposals = []\n if (value !== undefined)\n reflectionMergePartial<GenerateTransactionsRequest>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: GenerateTransactionsRequest\n ): GenerateTransactionsRequest {\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.topology.admin.v30.GenerateTransactionsRequest.Proposal proposals */ 1:\n message.proposals.push(\n GenerateTransactionsRequest_Proposal.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: GenerateTransactionsRequest,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* repeated com.digitalasset.canton.topology.admin.v30.GenerateTransactionsRequest.Proposal proposals = 1; */\n for (let i = 0; i < message.proposals.length; i++)\n GenerateTransactionsRequest_Proposal.internalBinaryWrite(\n message.proposals[i],\n writer.tag(1, 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.topology.admin.v30.GenerateTransactionsRequest\n */\nexport const GenerateTransactionsRequest =\n new GenerateTransactionsRequest$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass GenerateTransactionsRequest_Proposal$Type extends MessageType<GenerateTransactionsRequest_Proposal> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.GenerateTransactionsRequest.Proposal',\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 { no: 4, name: 'store', kind: 'message', T: () => StoreId },\n ]\n )\n }\n create(\n value?: PartialMessage<GenerateTransactionsRequest_Proposal>\n ): GenerateTransactionsRequest_Proposal {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.operation = 0\n message.serial = 0\n if (value !== undefined)\n reflectionMergePartial<GenerateTransactionsRequest_Proposal>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: GenerateTransactionsRequest_Proposal\n ): GenerateTransactionsRequest_Proposal {\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 case /* com.digitalasset.canton.topology.admin.v30.StoreId store */ 4:\n message.store = StoreId.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.store\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: GenerateTransactionsRequest_Proposal,\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 /* com.digitalasset.canton.topology.admin.v30.StoreId store = 4; */\n if (message.store)\n StoreId.internalBinaryWrite(\n message.store,\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.topology.admin.v30.GenerateTransactionsRequest.Proposal\n */\nexport const GenerateTransactionsRequest_Proposal =\n new GenerateTransactionsRequest_Proposal$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass GenerateTransactionsResponse$Type extends MessageType<GenerateTransactionsResponse> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.GenerateTransactionsResponse',\n [\n {\n no: 1,\n name: 'generated_transactions',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => GenerateTransactionsResponse_GeneratedTransaction,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<GenerateTransactionsResponse>\n ): GenerateTransactionsResponse {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.generatedTransactions = []\n if (value !== undefined)\n reflectionMergePartial<GenerateTransactionsResponse>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: GenerateTransactionsResponse\n ): GenerateTransactionsResponse {\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.topology.admin.v30.GenerateTransactionsResponse.GeneratedTransaction generated_transactions */ 1:\n message.generatedTransactions.push(\n GenerateTransactionsResponse_GeneratedTransaction.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: GenerateTransactionsResponse,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* repeated com.digitalasset.canton.topology.admin.v30.GenerateTransactionsResponse.GeneratedTransaction generated_transactions = 1; */\n for (let i = 0; i < message.generatedTransactions.length; i++)\n GenerateTransactionsResponse_GeneratedTransaction.internalBinaryWrite(\n message.generatedTransactions[i],\n writer.tag(1, 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.topology.admin.v30.GenerateTransactionsResponse\n */\nexport const GenerateTransactionsResponse =\n new GenerateTransactionsResponse$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass GenerateTransactionsResponse_GeneratedTransaction$Type extends MessageType<GenerateTransactionsResponse_GeneratedTransaction> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.GenerateTransactionsResponse.GeneratedTransaction',\n [\n {\n no: 1,\n name: 'serialized_transaction',\n kind: 'scalar',\n T: 12 /*ScalarType.BYTES*/,\n },\n {\n no: 2,\n name: 'transaction_hash',\n kind: 'scalar',\n T: 12 /*ScalarType.BYTES*/,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<GenerateTransactionsResponse_GeneratedTransaction>\n ): GenerateTransactionsResponse_GeneratedTransaction {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.serializedTransaction = new Uint8Array(0)\n message.transactionHash = new Uint8Array(0)\n if (value !== undefined)\n reflectionMergePartial<GenerateTransactionsResponse_GeneratedTransaction>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: GenerateTransactionsResponse_GeneratedTransaction\n ): GenerateTransactionsResponse_GeneratedTransaction {\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 serialized_transaction */ 1:\n message.serializedTransaction = reader.bytes()\n break\n case /* bytes transaction_hash */ 2:\n message.transactionHash = 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: GenerateTransactionsResponse_GeneratedTransaction,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* bytes serialized_transaction = 1; */\n if (message.serializedTransaction.length)\n writer\n .tag(1, WireType.LengthDelimited)\n .bytes(message.serializedTransaction)\n /* bytes transaction_hash = 2; */\n if (message.transactionHash.length)\n writer\n .tag(2, WireType.LengthDelimited)\n .bytes(message.transactionHash)\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.topology.admin.v30.GenerateTransactionsResponse.GeneratedTransaction\n */\nexport const GenerateTransactionsResponse_GeneratedTransaction =\n new GenerateTransactionsResponse_GeneratedTransaction$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass AuthorizeRequest$Type extends MessageType<AuthorizeRequest> {\n constructor() {\n super('com.digitalasset.canton.topology.admin.v30.AuthorizeRequest', [\n {\n no: 1,\n name: 'proposal',\n kind: 'message',\n oneof: 'type',\n T: () => AuthorizeRequest_Proposal,\n },\n {\n no: 2,\n name: 'transaction_hash',\n kind: 'scalar',\n oneof: 'type',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 3,\n name: 'must_fully_authorize',\n kind: 'scalar',\n T: 8 /*ScalarType.BOOL*/,\n },\n {\n no: 4,\n name: 'force_changes',\n kind: 'enum',\n repeat: 1 /*RepeatType.PACKED*/,\n T: () => [\n 'com.digitalasset.canton.topology.admin.v30.ForceFlag',\n ForceFlag,\n 'FORCE_FLAG_',\n ],\n },\n {\n no: 5,\n name: 'signed_by',\n kind: 'scalar',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: 9 /*ScalarType.STRING*/,\n },\n { no: 6, name: 'store', kind: 'message', T: () => StoreId },\n {\n no: 7,\n name: 'wait_to_become_effective',\n kind: 'message',\n T: () => Duration,\n },\n ])\n }\n create(value?: PartialMessage<AuthorizeRequest>): AuthorizeRequest {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.type = { oneofKind: undefined }\n message.mustFullyAuthorize = false\n message.forceChanges = []\n message.signedBy = []\n if (value !== undefined)\n reflectionMergePartial<AuthorizeRequest>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: AuthorizeRequest\n ): AuthorizeRequest {\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.topology.admin.v30.AuthorizeRequest.Proposal proposal */ 1:\n message.type = {\n oneofKind: 'proposal',\n proposal: AuthorizeRequest_Proposal.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n (message.type as any).proposal\n ),\n }\n break\n case /* string transaction_hash */ 2:\n message.type = {\n oneofKind: 'transactionHash',\n transactionHash: reader.string(),\n }\n break\n case /* bool must_fully_authorize */ 3:\n message.mustFullyAuthorize = reader.bool()\n break\n case /* repeated com.digitalasset.canton.topology.admin.v30.ForceFlag force_changes */ 4:\n if (wireType === WireType.LengthDelimited)\n for (\n let e = reader.int32() + reader.pos;\n reader.pos < e;\n )\n message.forceChanges.push(reader.int32())\n else message.forceChanges.push(reader.int32())\n break\n case /* repeated string signed_by */ 5:\n message.signedBy.push(reader.string())\n break\n case /* com.digitalasset.canton.topology.admin.v30.StoreId store */ 6:\n message.store = StoreId.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.store\n )\n break\n case /* google.protobuf.Duration wait_to_become_effective */ 7:\n message.waitToBecomeEffective = Duration.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.waitToBecomeEffective\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: AuthorizeRequest,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* com.digitalasset.canton.topology.admin.v30.AuthorizeRequest.Proposal proposal = 1; */\n if (message.type.oneofKind === 'proposal')\n AuthorizeRequest_Proposal.internalBinaryWrite(\n message.type.proposal,\n writer.tag(1, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* string transaction_hash = 2; */\n if (message.type.oneofKind === 'transactionHash')\n writer\n .tag(2, WireType.LengthDelimited)\n .string(message.type.transactionHash)\n /* bool must_fully_authorize = 3; */\n if (message.mustFullyAuthorize !== false)\n writer.tag(3, WireType.Varint).bool(message.mustFullyAuthorize)\n /* repeated com.digitalasset.canton.topology.admin.v30.ForceFlag force_changes = 4; */\n if (message.forceChanges.length) {\n writer.tag(4, WireType.LengthDelimited).fork()\n for (let i = 0; i < message.forceChanges.length; i++)\n writer.int32(message.forceChanges[i])\n writer.join()\n }\n /* repeated string signed_by = 5; */\n for (let i = 0; i < message.signedBy.length; i++)\n writer.tag(5, WireType.LengthDelimited).string(message.signedBy[i])\n /* com.digitalasset.canton.topology.admin.v30.StoreId store = 6; */\n if (message.store)\n StoreId.internalBinaryWrite(\n message.store,\n writer.tag(6, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* google.protobuf.Duration wait_to_become_effective = 7; */\n if (message.waitToBecomeEffective)\n Duration.internalBinaryWrite(\n message.waitToBecomeEffective,\n writer.tag(7, 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.topology.admin.v30.AuthorizeRequest\n */\nexport const AuthorizeRequest = new AuthorizeRequest$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass AuthorizeRequest_Proposal$Type extends MessageType<AuthorizeRequest_Proposal> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.AuthorizeRequest.Proposal',\n [\n {\n no: 1,\n name: 'change',\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 }\n create(\n value?: PartialMessage<AuthorizeRequest_Proposal>\n ): AuthorizeRequest_Proposal {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.change = 0\n message.serial = 0\n if (value !== undefined)\n reflectionMergePartial<AuthorizeRequest_Proposal>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: AuthorizeRequest_Proposal\n ): AuthorizeRequest_Proposal {\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 change */ 1:\n message.change = 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: AuthorizeRequest_Proposal,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* com.digitalasset.canton.protocol.v30.Enums.TopologyChangeOp change = 1; */\n if (message.change !== 0)\n writer.tag(1, WireType.Varint).int32(message.change)\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.topology.admin.v30.AuthorizeRequest.Proposal\n */\nexport const AuthorizeRequest_Proposal = new AuthorizeRequest_Proposal$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass AuthorizeResponse$Type extends MessageType<AuthorizeResponse> {\n constructor() {\n super('com.digitalasset.canton.topology.admin.v30.AuthorizeResponse', [\n {\n no: 1,\n name: 'transaction',\n kind: 'message',\n T: () => SignedTopologyTransaction,\n },\n ])\n }\n create(value?: PartialMessage<AuthorizeResponse>): AuthorizeResponse {\n const message = globalThis.Object.create(this.messagePrototype!)\n if (value !== undefined)\n reflectionMergePartial<AuthorizeResponse>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: AuthorizeResponse\n ): AuthorizeResponse {\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.SignedTopologyTransaction transaction */ 1:\n message.transaction =\n SignedTopologyTransaction.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.transaction\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: AuthorizeResponse,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* com.digitalasset.canton.protocol.v30.SignedTopologyTransaction transaction = 1; */\n if (message.transaction)\n SignedTopologyTransaction.internalBinaryWrite(\n message.transaction,\n writer.tag(1, 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.topology.admin.v30.AuthorizeResponse\n */\nexport const AuthorizeResponse = new AuthorizeResponse$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass AddTransactionsRequest$Type extends MessageType<AddTransactionsRequest> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.AddTransactionsRequest',\n [\n {\n no: 1,\n name: 'transactions',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => SignedTopologyTransaction,\n },\n {\n no: 2,\n name: 'force_changes',\n kind: 'enum',\n repeat: 1 /*RepeatType.PACKED*/,\n T: () => [\n 'com.digitalasset.canton.topology.admin.v30.ForceFlag',\n ForceFlag,\n 'FORCE_FLAG_',\n ],\n },\n { no: 3, name: 'store', kind: 'message', T: () => StoreId },\n {\n no: 7,\n name: 'wait_to_become_effective',\n kind: 'message',\n T: () => Duration,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<AddTransactionsRequest>\n ): AddTransactionsRequest {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.transactions = []\n message.forceChanges = []\n if (value !== undefined)\n reflectionMergePartial<AddTransactionsRequest>(this, message, value)\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: AddTransactionsRequest\n ): AddTransactionsRequest {\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.SignedTopologyTransaction transactions */ 1:\n message.transactions.push(\n SignedTopologyTransaction.internalBinaryRead(\n reader,\n reader.uint32(),\n options\n )\n )\n break\n case /* repeated com.digitalasset.canton.topology.admin.v30.ForceFlag force_changes */ 2:\n if (wireType === WireType.LengthDelimited)\n for (\n let e = reader.int32() + reader.pos;\n reader.pos < e;\n )\n message.forceChanges.push(reader.int32())\n else message.forceChanges.push(reader.int32())\n break\n case /* com.digitalasset.canton.topology.admin.v30.StoreId store */ 3:\n message.store = StoreId.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.store\n )\n break\n case /* google.protobuf.Duration wait_to_become_effective */ 7:\n message.waitToBecomeEffective = Duration.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.waitToBecomeEffective\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: AddTransactionsRequest,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* repeated com.digitalasset.canton.protocol.v30.SignedTopologyTransaction transactions = 1; */\n for (let i = 0; i < message.transactions.length; i++)\n SignedTopologyTransaction.internalBinaryWrite(\n message.transactions[i],\n writer.tag(1, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* repeated com.digitalasset.canton.topology.admin.v30.ForceFlag force_changes = 2; */\n if (message.forceChanges.length) {\n writer.tag(2, WireType.LengthDelimited).fork()\n for (let i = 0; i < message.forceChanges.length; i++)\n writer.int32(message.forceChanges[i])\n writer.join()\n }\n /* com.digitalasset.canton.topology.admin.v30.StoreId store = 3; */\n if (message.store)\n StoreId.internalBinaryWrite(\n message.store,\n writer.tag(3, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* google.protobuf.Duration wait_to_become_effective = 7; */\n if (message.waitToBecomeEffective)\n Duration.internalBinaryWrite(\n message.waitToBecomeEffective,\n writer.tag(7, 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.topology.admin.v30.AddTransactionsRequest\n */\nexport const AddTransactionsRequest = new AddTransactionsRequest$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass AddTransactionsResponse$Type extends MessageType<AddTransactionsResponse> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.AddTransactionsResponse',\n []\n )\n }\n create(\n value?: PartialMessage<AddTransactionsResponse>\n ): AddTransactionsResponse {\n const message = globalThis.Object.create(this.messagePrototype!)\n if (value !== undefined)\n reflectionMergePartial<AddTransactionsResponse>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: AddTransactionsResponse\n ): AddTransactionsResponse {\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: AddTransactionsResponse,\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.topology.admin.v30.AddTransactionsResponse\n */\nexport const AddTransactionsResponse = new AddTransactionsResponse$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass ImportTopologySnapshotRequest$Type extends MessageType<ImportTopologySnapshotRequest> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.ImportTopologySnapshotRequest',\n [\n {\n no: 1,\n name: 'topology_snapshot',\n kind: 'scalar',\n T: 12 /*ScalarType.BYTES*/,\n },\n { no: 2, name: 'store', kind: 'message', T: () => StoreId },\n {\n no: 3,\n name: 'wait_to_become_effective',\n kind: 'message',\n T: () => Duration,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<ImportTopologySnapshotRequest>\n ): ImportTopologySnapshotRequest {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.topologySnapshot = new Uint8Array(0)\n if (value !== undefined)\n reflectionMergePartial<ImportTopologySnapshotRequest>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: ImportTopologySnapshotRequest\n ): ImportTopologySnapshotRequest {\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 topology_snapshot */ 1:\n message.topologySnapshot = reader.bytes()\n break\n case /* com.digitalasset.canton.topology.admin.v30.StoreId store */ 2:\n message.store = StoreId.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.store\n )\n break\n case /* google.protobuf.Duration wait_to_become_effective */ 3:\n message.waitToBecomeEffective = Duration.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.waitToBecomeEffective\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: ImportTopologySnapshotRequest,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* bytes topology_snapshot = 1; */\n if (message.topologySnapshot.length)\n writer\n .tag(1, WireType.LengthDelimited)\n .bytes(message.topologySnapshot)\n /* com.digitalasset.canton.topology.admin.v30.StoreId store = 2; */\n if (message.store)\n StoreId.internalBinaryWrite(\n message.store,\n writer.tag(2, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* google.protobuf.Duration wait_to_become_effective = 3; */\n if (message.waitToBecomeEffective)\n Duration.internalBinaryWrite(\n message.waitToBecomeEffective,\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.topology.admin.v30.ImportTopologySnapshotRequest\n */\nexport const ImportTopologySnapshotRequest =\n new ImportTopologySnapshotRequest$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass ImportTopologySnapshotResponse$Type extends MessageType<ImportTopologySnapshotResponse> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.ImportTopologySnapshotResponse',\n []\n )\n }\n create(\n value?: PartialMessage<ImportTopologySnapshotResponse>\n ): ImportTopologySnapshotResponse {\n const message = globalThis.Object.create(this.messagePrototype!)\n if (value !== undefined)\n reflectionMergePartial<ImportTopologySnapshotResponse>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: ImportTopologySnapshotResponse\n ): ImportTopologySnapshotResponse {\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: ImportTopologySnapshotResponse,\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.topology.admin.v30.ImportTopologySnapshotResponse\n */\nexport const ImportTopologySnapshotResponse =\n new ImportTopologySnapshotResponse$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass SignTransactionsRequest$Type extends MessageType<SignTransactionsRequest> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.SignTransactionsRequest',\n [\n {\n no: 1,\n name: 'transactions',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => SignedTopologyTransaction,\n },\n {\n no: 2,\n name: 'signed_by',\n kind: 'scalar',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: 9 /*ScalarType.STRING*/,\n },\n { no: 3, name: 'store', kind: 'message', T: () => StoreId },\n {\n no: 4,\n name: 'force_flags',\n kind: 'enum',\n repeat: 1 /*RepeatType.PACKED*/,\n T: () => [\n 'com.digitalasset.canton.topology.admin.v30.ForceFlag',\n ForceFlag,\n 'FORCE_FLAG_',\n ],\n },\n ]\n )\n }\n create(\n value?: PartialMessage<SignTransactionsRequest>\n ): SignTransactionsRequest {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.transactions = []\n message.signedBy = []\n message.forceFlags = []\n if (value !== undefined)\n reflectionMergePartial<SignTransactionsRequest>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: SignTransactionsRequest\n ): SignTransactionsRequest {\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.SignedTopologyTransaction transactions */ 1:\n message.transactions.push(\n SignedTopologyTransaction.internalBinaryRead(\n reader,\n reader.uint32(),\n options\n )\n )\n break\n case /* repeated string signed_by */ 2:\n message.signedBy.push(reader.string())\n break\n case /* com.digitalasset.canton.topology.admin.v30.StoreId store */ 3:\n message.store = StoreId.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.store\n )\n break\n case /* repeated com.digitalasset.canton.topology.admin.v30.ForceFlag force_flags */ 4:\n if (wireType === WireType.LengthDelimited)\n for (\n let e = reader.int32() + reader.pos;\n reader.pos < e;\n )\n message.forceFlags.push(reader.int32())\n else message.forceFlags.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: SignTransactionsRequest,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* repeated com.digitalasset.canton.protocol.v30.SignedTopologyTransaction transactions = 1; */\n for (let i = 0; i < message.transactions.length; i++)\n SignedTopologyTransaction.internalBinaryWrite(\n message.transactions[i],\n writer.tag(1, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* repeated string signed_by = 2; */\n for (let i = 0; i < message.signedBy.length; i++)\n writer.tag(2, WireType.LengthDelimited).string(message.signedBy[i])\n /* com.digitalasset.canton.topology.admin.v30.StoreId store = 3; */\n if (message.store)\n StoreId.internalBinaryWrite(\n message.store,\n writer.tag(3, WireType.LengthDelimited).fork(),\n options\n ).join()\n /* repeated com.digitalasset.canton.topology.admin.v30.ForceFlag force_flags = 4; */\n if (message.forceFlags.length) {\n writer.tag(4, WireType.LengthDelimited).fork()\n for (let i = 0; i < message.forceFlags.length; i++)\n writer.int32(message.forceFlags[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.topology.admin.v30.SignTransactionsRequest\n */\nexport const SignTransactionsRequest = new SignTransactionsRequest$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass SignTransactionsResponse$Type extends MessageType<SignTransactionsResponse> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.SignTransactionsResponse',\n [\n {\n no: 1,\n name: 'transactions',\n kind: 'message',\n repeat: 2 /*RepeatType.UNPACKED*/,\n T: () => SignedTopologyTransaction,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<SignTransactionsResponse>\n ): SignTransactionsResponse {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.transactions = []\n if (value !== undefined)\n reflectionMergePartial<SignTransactionsResponse>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: SignTransactionsResponse\n ): SignTransactionsResponse {\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.SignedTopologyTransaction transactions */ 1:\n message.transactions.push(\n SignedTopologyTransaction.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: SignTransactionsResponse,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* repeated com.digitalasset.canton.protocol.v30.SignedTopologyTransaction transactions = 1; */\n for (let i = 0; i < message.transactions.length; i++)\n SignedTopologyTransaction.internalBinaryWrite(\n message.transactions[i],\n writer.tag(1, 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.topology.admin.v30.SignTransactionsResponse\n */\nexport const SignTransactionsResponse = new SignTransactionsResponse$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass CreateTemporaryTopologyStoreRequest$Type extends MessageType<CreateTemporaryTopologyStoreRequest> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.CreateTemporaryTopologyStoreRequest',\n [\n {\n no: 1,\n name: 'name',\n kind: 'scalar',\n T: 9 /*ScalarType.STRING*/,\n },\n {\n no: 2,\n name: 'protocol_version',\n kind: 'scalar',\n T: 13 /*ScalarType.UINT32*/,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<CreateTemporaryTopologyStoreRequest>\n ): CreateTemporaryTopologyStoreRequest {\n const message = globalThis.Object.create(this.messagePrototype!)\n message.name = ''\n message.protocolVersion = 0\n if (value !== undefined)\n reflectionMergePartial<CreateTemporaryTopologyStoreRequest>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: CreateTemporaryTopologyStoreRequest\n ): CreateTemporaryTopologyStoreRequest {\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 name */ 1:\n message.name = reader.string()\n break\n case /* uint32 protocol_version */ 2:\n message.protocolVersion = reader.uint32()\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: CreateTemporaryTopologyStoreRequest,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* string name = 1; */\n if (message.name !== '')\n writer.tag(1, WireType.LengthDelimited).string(message.name)\n /* uint32 protocol_version = 2; */\n if (message.protocolVersion !== 0)\n writer.tag(2, WireType.Varint).uint32(message.protocolVersion)\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.topology.admin.v30.CreateTemporaryTopologyStoreRequest\n */\nexport const CreateTemporaryTopologyStoreRequest =\n new CreateTemporaryTopologyStoreRequest$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass CreateTemporaryTopologyStoreResponse$Type extends MessageType<CreateTemporaryTopologyStoreResponse> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.CreateTemporaryTopologyStoreResponse',\n [\n {\n no: 1,\n name: 'store_id',\n kind: 'message',\n T: () => StoreId_Temporary,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<CreateTemporaryTopologyStoreResponse>\n ): CreateTemporaryTopologyStoreResponse {\n const message = globalThis.Object.create(this.messagePrototype!)\n if (value !== undefined)\n reflectionMergePartial<CreateTemporaryTopologyStoreResponse>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: CreateTemporaryTopologyStoreResponse\n ): CreateTemporaryTopologyStoreResponse {\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.topology.admin.v30.StoreId.Temporary store_id */ 1:\n message.storeId = StoreId_Temporary.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.storeId\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: CreateTemporaryTopologyStoreResponse,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* com.digitalasset.canton.topology.admin.v30.StoreId.Temporary store_id = 1; */\n if (message.storeId)\n StoreId_Temporary.internalBinaryWrite(\n message.storeId,\n writer.tag(1, 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.topology.admin.v30.CreateTemporaryTopologyStoreResponse\n */\nexport const CreateTemporaryTopologyStoreResponse =\n new CreateTemporaryTopologyStoreResponse$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass DropTemporaryTopologyStoreRequest$Type extends MessageType<DropTemporaryTopologyStoreRequest> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.DropTemporaryTopologyStoreRequest',\n [\n {\n no: 1,\n name: 'store_id',\n kind: 'message',\n T: () => StoreId_Temporary,\n },\n ]\n )\n }\n create(\n value?: PartialMessage<DropTemporaryTopologyStoreRequest>\n ): DropTemporaryTopologyStoreRequest {\n const message = globalThis.Object.create(this.messagePrototype!)\n if (value !== undefined)\n reflectionMergePartial<DropTemporaryTopologyStoreRequest>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: DropTemporaryTopologyStoreRequest\n ): DropTemporaryTopologyStoreRequest {\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.topology.admin.v30.StoreId.Temporary store_id */ 1:\n message.storeId = StoreId_Temporary.internalBinaryRead(\n reader,\n reader.uint32(),\n options,\n message.storeId\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: DropTemporaryTopologyStoreRequest,\n writer: IBinaryWriter,\n options: BinaryWriteOptions\n ): IBinaryWriter {\n /* com.digitalasset.canton.topology.admin.v30.StoreId.Temporary store_id = 1; */\n if (message.storeId)\n StoreId_Temporary.internalBinaryWrite(\n message.storeId,\n writer.tag(1, 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.topology.admin.v30.DropTemporaryTopologyStoreRequest\n */\nexport const DropTemporaryTopologyStoreRequest =\n new DropTemporaryTopologyStoreRequest$Type()\n// @generated message type with reflection information, may provide speed optimized methods\nclass DropTemporaryTopologyStoreResponse$Type extends MessageType<DropTemporaryTopologyStoreResponse> {\n constructor() {\n super(\n 'com.digitalasset.canton.topology.admin.v30.DropTemporaryTopologyStoreResponse',\n []\n )\n }\n create(\n value?: PartialMessage<DropTemporaryTopologyStoreResponse>\n ): DropTemporaryTopologyStoreResponse {\n const message = globalThis.Object.create(this.messagePrototype!)\n if (value !== undefined)\n reflectionMergePartial<DropTemporaryTopologyStoreResponse>(\n this,\n message,\n value\n )\n return message\n }\n internalBinaryRead(\n reader: IBinaryReader,\n length: number,\n options: BinaryReadOptions,\n target?: DropTemporaryTopologyStoreResponse\n ): DropTemporaryTopologyStoreResponse {\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: DropTemporaryTopologyStoreResponse,\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.topology.admin.v30.DropTemporaryTopologyStoreResponse\n */\nexport const DropTemporaryTopologyStoreResponse =\n new DropTemporaryTopologyStoreResponse$Type()\n/**\n * @generated ServiceType for protobuf service com.digitalasset.canton.topology.admin.v30.TopologyManagerWriteService\n */\nexport const TopologyManagerWriteService = new ServiceType(\n 'com.digitalasset.canton.topology.admin.v30.TopologyManagerWriteService',\n [\n {\n name: 'Authorize',\n options: {},\n I: AuthorizeRequest,\n O: AuthorizeResponse,\n },\n {\n name: 'AddTransactions',\n options: {},\n I: AddTransactionsRequest,\n O: AddTransactionsResponse,\n },\n {\n name: 'ImportTopologySnapshot',\n clientStreaming: true,\n options: {},\n I: ImportTopologySnapshotRequest,\n O: ImportTopologySnapshotResponse,\n },\n {\n name: 'SignTransactions',\n options: {},\n I: SignTransactionsRequest,\n O: SignTransactionsResponse,\n },\n {\n name: 'GenerateTransactions',\n options: {},\n I: GenerateTransactionsRequest,\n O: GenerateTransactionsResponse,\n },\n {\n name: 'CreateTemporaryTopologyStore',\n options: {},\n I: CreateTemporaryTopologyStoreRequest,\n O: CreateTemporaryTopologyStoreResponse,\n },\n {\n name: 'DropTemporaryTopologyStore',\n options: {},\n I: DropTemporaryTopologyStoreRequest,\n O: DropTemporaryTopologyStoreResponse,\n },\n ]\n)\n"],"mappings":";;;;;;;;;;;;;;AAOA;;","names":[]}
|