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; } }
public override int GetHashCode() { int hash = 1; if (chaincodeSpec_ != null) { hash ^= ChaincodeSpec.GetHashCode(); } if (IdGenerationAlg.Length != 0) { hash ^= IdGenerationAlg.GetHashCode(); } return(hash); }
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; } }
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); }