public override int GetHashCode()
        {
            int hash = 1;

            hash ^= lottery_.GetHashCode();
            if (salerAddress_ != null)
            {
                hash ^= SalerAddress.GetHashCode();
            }
            if (ProportionSale != 0)
            {
                hash ^= ProportionSale.GetHashCode();
            }
            if (ProportionBonus != 0)
            {
                hash ^= ProportionBonus.GetHashCode();
            }
            if (TargetPeriod != 0)
            {
                hash ^= TargetPeriod.GetHashCode();
            }
            if (senderAddress_ != null)
            {
                hash ^= SenderAddress.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public void MergeFrom(Lotteries other)
 {
     if (other == null)
     {
         return;
     }
     lottery_.Add(other.lottery_);
     if (other.salerAddress_ != null)
     {
         if (salerAddress_ == null)
         {
             SalerAddress = new global::AElf.Types.Address();
         }
         SalerAddress.MergeFrom(other.SalerAddress);
     }
     if (other.ProportionSale != 0)
     {
         ProportionSale = other.ProportionSale;
     }
     if (other.ProportionBonus != 0)
     {
         ProportionBonus = other.ProportionBonus;
     }
     if (other.TargetPeriod != 0)
     {
         TargetPeriod = other.TargetPeriod;
     }
     if (other.senderAddress_ != null)
     {
         if (senderAddress_ == null)
         {
             SenderAddress = new global::AElf.Types.Address();
         }
         SenderAddress.MergeFrom(other.SenderAddress);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }