コード例 #1
0
 public void MergeFrom(ChaincodeSpec other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Type != 0)
     {
         Type = other.Type;
     }
     if (other.chaincodeId_ != null)
     {
         if (chaincodeId_ == null)
         {
             chaincodeId_ = new global::Chaincode.NET.Protos.ChaincodeID();
         }
         ChaincodeId.MergeFrom(other.ChaincodeId);
     }
     if (other.input_ != null)
     {
         if (input_ == null)
         {
             input_ = new global::Chaincode.NET.Protos.ChaincodeInput();
         }
         Input.MergeFrom(other.Input);
     }
     if (other.Timeout != 0)
     {
         Timeout = other.Timeout;
     }
 }
コード例 #2
0
 public void MergeFrom(ChaincodeSpec other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Type != global::Protos.ChaincodeSpec.Types.Type.Undefined)
     {
         Type = other.Type;
     }
     if (other.chaincodeId_ != null)
     {
         if (chaincodeId_ == null)
         {
             ChaincodeId = new global::Protos.ChaincodeID();
         }
         ChaincodeId.MergeFrom(other.ChaincodeId);
     }
     if (other.input_ != null)
     {
         if (input_ == null)
         {
             Input = new global::Protos.ChaincodeInput();
         }
         Input.MergeFrom(other.Input);
     }
     if (other.Timeout != 0)
     {
         Timeout = other.Timeout;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #3
0
 public void MergeFrom(ChaincodeAction other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Results.Length != 0)
     {
         Results = other.Results;
     }
     if (other.Events.Length != 0)
     {
         Events = other.Events;
     }
     if (other.response_ != null)
     {
         if (response_ == null)
         {
             Response = new global::Protos.Response();
         }
         Response.MergeFrom(other.Response);
     }
     if (other.chaincodeId_ != null)
     {
         if (chaincodeId_ == null)
         {
             ChaincodeId = new global::Protos.ChaincodeID();
         }
         ChaincodeId.MergeFrom(other.ChaincodeId);
     }
     if (other.tokenExpectation_ != null)
     {
         if (tokenExpectation_ == null)
         {
             TokenExpectation = new global::Protos.TokenExpectation();
         }
         TokenExpectation.MergeFrom(other.TokenExpectation);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }