From 8d4335203bc1c5d4749d973cb688a5e408548c5f Mon Sep 17 00:00:00 2001 From: Varorbc Date: Tue, 4 Jun 2024 22:32:45 +0800 Subject: [PATCH] add csharp namespace option --- common/collection.proto | 1 + common/common.proto | 1 + common/configtx.proto | 1 + common/configuration.proto | 1 + common/ledger.proto | 1 + common/policies.proto | 1 + discovery/protocol.proto | 1 + gateway/gateway.proto | 1 + gossip/message.proto | 1 + ledger/queryresult/kv_query_result.proto | 1 + ledger/rwset/kvrwset/kv_rwset.proto | 1 + ledger/rwset/rwset.proto | 1 + msp/identities.proto | 1 + msp/msp_config.proto | 1 + msp/msp_principal.proto | 1 + orderer/ab.proto | 1 + orderer/blockattestation.proto | 1 + orderer/cluster.proto | 1 + orderer/clusterserver.proto | 1 + orderer/configuration.proto | 1 + orderer/etcdraft/configuration.proto | 1 + orderer/etcdraft/metadata.proto | 1 + orderer/smartbft/configuration.proto | 1 + peer/chaincode.proto | 1 + peer/chaincode_event.proto | 1 + peer/chaincode_shim.proto | 1 + peer/collection.proto | 1 + peer/configuration.proto | 1 + peer/events.proto | 1 + peer/lifecycle/chaincode_definition.proto | 1 + peer/lifecycle/db.proto | 1 + peer/lifecycle/lifecycle.proto | 1 + peer/peer.proto | 1 + peer/policy.proto | 1 + peer/proposal.proto | 1 + peer/proposal_response.proto | 1 + peer/query.proto | 1 + peer/resources.proto | 1 + peer/signed_cc_dep_spec.proto | 1 + peer/snapshot.proto | 1 + peer/transaction.proto | 1 + transientstore/transientstore.proto | 1 + 42 files changed, 42 insertions(+) diff --git a/common/collection.proto b/common/collection.proto index a09e815..79faeb6 100644 --- a/common/collection.proto +++ b/common/collection.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Common"; option go_package = "github.com/hyperledger/fabric-protos-go/common"; option java_package = "org.hyperledger.fabric.protos.common"; diff --git a/common/common.proto b/common/common.proto index dafee8a..531cf98 100644 --- a/common/common.proto +++ b/common/common.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Common"; option go_package = "github.com/hyperledger/fabric-protos-go/common"; option java_package = "org.hyperledger.fabric.protos.common"; diff --git a/common/configtx.proto b/common/configtx.proto index f60e154..e64f62b 100644 --- a/common/configtx.proto +++ b/common/configtx.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Common"; option go_package = "github.com/hyperledger/fabric-protos-go/common"; option java_package = "org.hyperledger.fabric.protos.common"; diff --git a/common/configuration.proto b/common/configuration.proto index b13bf13..c4f8ecc 100644 --- a/common/configuration.proto +++ b/common/configuration.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Common"; option go_package = "github.com/hyperledger/fabric-protos-go/common"; option java_package = "org.hyperledger.fabric.protos.common"; diff --git a/common/ledger.proto b/common/ledger.proto index 6c6500d..6e418e6 100644 --- a/common/ledger.proto +++ b/common/ledger.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Common"; option go_package = "github.com/hyperledger/fabric-protos-go/common"; option java_package = "org.hyperledger.fabric.protos.common"; diff --git a/common/policies.proto b/common/policies.proto index 9afaa10..010137c 100644 --- a/common/policies.proto +++ b/common/policies.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Common"; option go_package = "github.com/hyperledger/fabric-protos-go/common"; option java_package = "org.hyperledger.fabric.protos.common"; diff --git a/discovery/protocol.proto b/discovery/protocol.proto index 5ab72b2..b904b99 100644 --- a/discovery/protocol.proto +++ b/discovery/protocol.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Discovery"; option go_package = "github.com/hyperledger/fabric-protos-go/discovery"; option java_package = "org.hyperledger.fabric.protos.discovery"; diff --git a/gateway/gateway.proto b/gateway/gateway.proto index 58f3f59..7574b05 100644 --- a/gateway/gateway.proto +++ b/gateway/gateway.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Gateway"; option go_package = "github.com/hyperledger/fabric-protos-go/gateway"; option java_multiple_files = true; option java_package = "org.hyperledger.fabric.protos.gateway"; diff --git a/gossip/message.proto b/gossip/message.proto index bd2560f..add9763 100644 --- a/gossip/message.proto +++ b/gossip/message.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Gossip"; option go_package = "github.com/hyperledger/fabric-protos-go/gossip"; option java_package = "org.hyperledger.fabric.protos.gossip"; diff --git a/ledger/queryresult/kv_query_result.proto b/ledger/queryresult/kv_query_result.proto index 77c6471..8710089 100644 --- a/ledger/queryresult/kv_query_result.proto +++ b/ledger/queryresult/kv_query_result.proto @@ -6,6 +6,7 @@ syntax = "proto3"; package queryresult; +option csharp_namespace = "Hyperledger.Fabric.Protos.Ledger.QueryResult"; option go_package = "github.com/hyperledger/fabric-protos-go/ledger/queryresult"; option java_package = "org.hyperledger.fabric.protos.ledger.queryresult"; diff --git a/ledger/rwset/kvrwset/kv_rwset.proto b/ledger/rwset/kvrwset/kv_rwset.proto index 1850a86..a3ae12c 100644 --- a/ledger/rwset/kvrwset/kv_rwset.proto +++ b/ledger/rwset/kvrwset/kv_rwset.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Ledger.RWSet.KVRWSet"; option go_package = "github.com/hyperledger/fabric-protos-go/ledger/rwset/kvrwset"; option java_package = "org.hyperledger.fabric.protos.ledger.rwset.kvrwset"; diff --git a/ledger/rwset/rwset.proto b/ledger/rwset/rwset.proto index d9e29c5..fe41872 100644 --- a/ledger/rwset/rwset.proto +++ b/ledger/rwset/rwset.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Ledger.RWSet"; option go_package = "github.com/hyperledger/fabric-protos-go/ledger/rwset"; option java_package = "org.hyperledger.fabric.protos.ledger.rwset"; diff --git a/msp/identities.proto b/msp/identities.proto index 46453cf..ed5518b 100644 --- a/msp/identities.proto +++ b/msp/identities.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.MSP"; option go_package = "github.com/hyperledger/fabric-protos-go/msp"; option java_package = "org.hyperledger.fabric.protos.msp"; diff --git a/msp/msp_config.proto b/msp/msp_config.proto index c459e3d..6e33f76 100644 --- a/msp/msp_config.proto +++ b/msp/msp_config.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.MSP"; option go_package = "github.com/hyperledger/fabric-protos-go/msp"; option java_package = "org.hyperledger.fabric.protos.msp"; option java_outer_classname = "MspConfigPackage"; diff --git a/msp/msp_principal.proto b/msp/msp_principal.proto index bb9521a..3a1d20c 100644 --- a/msp/msp_principal.proto +++ b/msp/msp_principal.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Common"; option go_package = "github.com/hyperledger/fabric-protos-go/msp"; option java_package = "org.hyperledger.fabric.protos.common"; diff --git a/orderer/ab.proto b/orderer/ab.proto index 76adc70..9c59faf 100644 --- a/orderer/ab.proto +++ b/orderer/ab.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Orderer"; option go_package = "github.com/hyperledger/fabric-protos-go/orderer"; option java_package = "org.hyperledger.fabric.protos.orderer"; diff --git a/orderer/blockattestation.proto b/orderer/blockattestation.proto index c54cd44..f50ec29 100644 --- a/orderer/blockattestation.proto +++ b/orderer/blockattestation.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Orderer"; option go_package = "github.com/hyperledger/fabric-protos-go/orderer"; option java_package = "org.hyperledger.fabric.protos.orderer"; diff --git a/orderer/cluster.proto b/orderer/cluster.proto index 8ff94b3..a8117f2 100644 --- a/orderer/cluster.proto +++ b/orderer/cluster.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Orderer"; option go_package = "github.com/hyperledger/fabric-protos-go/orderer"; option java_package = "org.hyperledger.fabric.protos.orderer"; diff --git a/orderer/clusterserver.proto b/orderer/clusterserver.proto index 59d721f..c1eb032 100644 --- a/orderer/clusterserver.proto +++ b/orderer/clusterserver.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Orderer"; option go_package = "github.com/hyperledger/fabric-protos-go/orderer"; option java_package = "org.hyperledger.fabric.protos.orderer"; diff --git a/orderer/configuration.proto b/orderer/configuration.proto index 1de1dd8..728946d 100644 --- a/orderer/configuration.proto +++ b/orderer/configuration.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Orderer"; option go_package = "github.com/hyperledger/fabric-protos-go/orderer"; option java_package = "org.hyperledger.fabric.protos.orderer"; diff --git a/orderer/etcdraft/configuration.proto b/orderer/etcdraft/configuration.proto index 3ad6037..3e8e215 100644 --- a/orderer/etcdraft/configuration.proto +++ b/orderer/etcdraft/configuration.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Orderer.EtcdRaft"; option go_package = "github.com/hyperledger/fabric-protos-go/orderer/etcdraft"; option java_package = "org.hyperledger.fabric.protos.orderer.etcdraft"; diff --git a/orderer/etcdraft/metadata.proto b/orderer/etcdraft/metadata.proto index 0cf74a1..1908ba2 100644 --- a/orderer/etcdraft/metadata.proto +++ b/orderer/etcdraft/metadata.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Orderer.EtcdRaft"; option go_package = "github.com/hyperledger/fabric-protos-go/orderer/etcdraft"; option java_package = "org.hyperledger.fabric.protos.orderer.etcdraft"; diff --git a/orderer/smartbft/configuration.proto b/orderer/smartbft/configuration.proto index f3ec0ed..0dd2b74 100644 --- a/orderer/smartbft/configuration.proto +++ b/orderer/smartbft/configuration.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Orderer.SmartBFT"; option go_package = "github.com/hyperledger/fabric-protos-go/orderer/smartbft"; option java_package = "org.hyperledger.fabric.protos.orderer.smartbft"; diff --git a/peer/chaincode.proto b/peer/chaincode.proto index 4e4cd62..1f62993 100644 --- a/peer/chaincode.proto +++ b/peer/chaincode.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Peer"; option java_package = "org.hyperledger.fabric.protos.peer"; option go_package = "github.com/hyperledger/fabric-protos-go/peer"; diff --git a/peer/chaincode_event.proto b/peer/chaincode_event.proto index 41f75ea..dd29116 100644 --- a/peer/chaincode_event.proto +++ b/peer/chaincode_event.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Peer"; option java_package = "org.hyperledger.fabric.protos.peer"; option java_outer_classname = "ChaincodeEventPackage"; option go_package = "github.com/hyperledger/fabric-protos-go/peer"; diff --git a/peer/chaincode_shim.proto b/peer/chaincode_shim.proto index a12750b..d9f573a 100644 --- a/peer/chaincode_shim.proto +++ b/peer/chaincode_shim.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Peer"; option java_package = "org.hyperledger.fabric.protos.peer"; option go_package = "github.com/hyperledger/fabric-protos-go/peer"; diff --git a/peer/collection.proto b/peer/collection.proto index dad26d8..42f7a8b 100644 --- a/peer/collection.proto +++ b/peer/collection.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Peer"; option go_package = "github.com/hyperledger/fabric-protos-go/peer"; option java_package = "org.hyperledger.fabric.protos.peer"; diff --git a/peer/configuration.proto b/peer/configuration.proto index e9b41bc..4ec74a1 100644 --- a/peer/configuration.proto +++ b/peer/configuration.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Peer"; option java_package = "org.hyperledger.fabric.protos.peer"; option go_package = "github.com/hyperledger/fabric-protos-go/peer"; diff --git a/peer/events.proto b/peer/events.proto index 522189c..8b00fff 100644 --- a/peer/events.proto +++ b/peer/events.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Peer"; option java_package = "org.hyperledger.fabric.protos.peer"; option java_outer_classname = "EventsPackage"; option go_package = "github.com/hyperledger/fabric-protos-go/peer"; diff --git a/peer/lifecycle/chaincode_definition.proto b/peer/lifecycle/chaincode_definition.proto index bfe01fb..400560d 100644 --- a/peer/lifecycle/chaincode_definition.proto +++ b/peer/lifecycle/chaincode_definition.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Peer.Lifecycle"; option java_package = "org.hyperledger.fabric.protos.peer.lifecycle"; option go_package = "github.com/hyperledger/fabric-protos-go/peer/lifecycle"; diff --git a/peer/lifecycle/db.proto b/peer/lifecycle/db.proto index 9adb5d5..8b6818c 100644 --- a/peer/lifecycle/db.proto +++ b/peer/lifecycle/db.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Peer.Lifecycle"; option java_package = "org.hyperledger.fabric.protos.peer.lifecycle"; option go_package = "github.com/hyperledger/fabric-protos-go/peer/lifecycle"; diff --git a/peer/lifecycle/lifecycle.proto b/peer/lifecycle/lifecycle.proto index 5d4ff7e..216aa4f 100644 --- a/peer/lifecycle/lifecycle.proto +++ b/peer/lifecycle/lifecycle.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Peer.Lifecycle"; option java_package = "org.hyperledger.fabric.protos.peer.lifecycle"; option go_package = "github.com/hyperledger/fabric-protos-go/peer/lifecycle"; diff --git a/peer/peer.proto b/peer/peer.proto index 396b74a..950c597 100644 --- a/peer/peer.proto +++ b/peer/peer.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Peer"; option java_package = "org.hyperledger.fabric.protos.peer"; option go_package = "github.com/hyperledger/fabric-protos-go/peer"; diff --git a/peer/policy.proto b/peer/policy.proto index 1f67451..3ccb6ed 100644 --- a/peer/policy.proto +++ b/peer/policy.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Peer"; option go_package = "github.com/hyperledger/fabric-protos-go/peer"; option java_package = "org.hyperledger.fabric.protos.peer"; diff --git a/peer/proposal.proto b/peer/proposal.proto index 31ccb4d..7cefd58 100644 --- a/peer/proposal.proto +++ b/peer/proposal.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Peer"; option go_package = "github.com/hyperledger/fabric-protos-go/peer"; option java_package = "org.hyperledger.fabric.protos.peer"; option java_outer_classname = "ProposalPackage"; diff --git a/peer/proposal_response.proto b/peer/proposal_response.proto index 78de21e..d5595af 100644 --- a/peer/proposal_response.proto +++ b/peer/proposal_response.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Peer"; option go_package = "github.com/hyperledger/fabric-protos-go/peer"; option java_package = "org.hyperledger.fabric.protos.peer"; option java_outer_classname = "ProposalResponsePackage"; diff --git a/peer/query.proto b/peer/query.proto index d35d9c1..2005847 100644 --- a/peer/query.proto +++ b/peer/query.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Peer"; option java_package = "org.hyperledger.fabric.protos.peer"; option go_package = "github.com/hyperledger/fabric-protos-go/peer"; diff --git a/peer/resources.proto b/peer/resources.proto index be9bdd0..d22418c 100644 --- a/peer/resources.proto +++ b/peer/resources.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Peer"; option java_package = "org.hyperledger.fabric.protos.peer"; option go_package = "github.com/hyperledger/fabric-protos-go/peer"; diff --git a/peer/signed_cc_dep_spec.proto b/peer/signed_cc_dep_spec.proto index 05f4689..0cfd107 100644 --- a/peer/signed_cc_dep_spec.proto +++ b/peer/signed_cc_dep_spec.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Peer"; option java_package = "org.hyperledger.fabric.protos.peer"; option go_package = "github.com/hyperledger/fabric-protos-go/peer"; diff --git a/peer/snapshot.proto b/peer/snapshot.proto index af1708b..af04ca3 100644 --- a/peer/snapshot.proto +++ b/peer/snapshot.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Peer"; option go_package = "github.com/hyperledger/fabric-protos-go/peer"; option java_package = "org.hyperledger.fabric.protos.peer"; diff --git a/peer/transaction.proto b/peer/transaction.proto index 93ef234..9feceee 100644 --- a/peer/transaction.proto +++ b/peer/transaction.proto @@ -4,6 +4,7 @@ syntax = "proto3"; +option csharp_namespace = "Hyperledger.Fabric.Protos.Peer"; option go_package = "github.com/hyperledger/fabric-protos-go/peer"; option java_package = "org.hyperledger.fabric.protos.peer"; option java_outer_classname = "TransactionPackage"; diff --git a/transientstore/transientstore.proto b/transientstore/transientstore.proto index 745ee9e..32f602a 100644 --- a/transientstore/transientstore.proto +++ b/transientstore/transientstore.proto @@ -6,6 +6,7 @@ syntax = "proto3"; package transientstore; +option csharp_namespace = "Hyperledger.Fabric.Protos.TransientStore"; option go_package = "github.com/hyperledger/fabric-protos-go/transientstore"; option java_package = "org.hyperledger.fabric.protos.transientstore";