Exemplo n.º 1
0
 public void MergeFrom(ChaincodeDeploymentSpec other)
 {
     if (other == null)
     {
         return;
     }
     if (other.chaincodeSpec_ != null)
     {
         if (chaincodeSpec_ == null)
         {
             chaincodeSpec_ = new global::Chaincode.NET.Protos.ChaincodeSpec();
         }
         ChaincodeSpec.MergeFrom(other.ChaincodeSpec);
     }
     if (other.effectiveDate_ != null)
     {
         if (effectiveDate_ == null)
         {
             effectiveDate_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         EffectiveDate.MergeFrom(other.EffectiveDate);
     }
     if (other.CodePackage.Length != 0)
     {
         CodePackage = other.CodePackage;
     }
     if (other.ExecEnv != 0)
     {
         ExecEnv = other.ExecEnv;
     }
 }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (chaincodeSpec_ != null)
            {
                hash ^= ChaincodeSpec.GetHashCode();
            }
            if (IdGenerationAlg.Length != 0)
            {
                hash ^= IdGenerationAlg.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 3
0
 public void MergeFrom(ChaincodeInvocationSpec other)
 {
     if (other == null)
     {
         return;
     }
     if (other.chaincodeSpec_ != null)
     {
         if (chaincodeSpec_ == null)
         {
             chaincodeSpec_ = new global::Chaincode.NET.Protos.ChaincodeSpec();
         }
         ChaincodeSpec.MergeFrom(other.ChaincodeSpec);
     }
     if (other.IdGenerationAlg.Length != 0)
     {
         IdGenerationAlg = other.IdGenerationAlg;
     }
 }
Exemplo n.º 4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (chaincodeSpec_ != null)
            {
                hash ^= ChaincodeSpec.GetHashCode();
            }
            if (effectiveDate_ != null)
            {
                hash ^= EffectiveDate.GetHashCode();
            }
            if (CodePackage.Length != 0)
            {
                hash ^= CodePackage.GetHashCode();
            }
            if (ExecEnv != 0)
            {
                hash ^= ExecEnv.GetHashCode();
            }
            return(hash);
        }