public void MergeFrom(ProtoTransactionInfo other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Version != 0)
     {
         Version = other.Version;
     }
     if (other.Nonce != 0UL)
     {
         Nonce = other.Nonce;
     }
     if (other.Toaddr.Length != 0)
     {
         Toaddr = other.Toaddr;
     }
     if (other.senderpubkey_ != null)
     {
         if (senderpubkey_ == null)
         {
             Senderpubkey = new global::MusZilCore.Proto.ByteArray();
         }
         Senderpubkey.MergeFrom(other.Senderpubkey);
     }
     if (other.amount_ != null)
     {
         if (amount_ == null)
         {
             Amount = new global::MusZilCore.Proto.ByteArray();
         }
         Amount.MergeFrom(other.Amount);
     }
     if (other.gasprice_ != null)
     {
         if (gasprice_ == null)
         {
             Gasprice = new global::MusZilCore.Proto.ByteArray();
         }
         Gasprice.MergeFrom(other.Gasprice);
     }
     if (other.Gaslimit != 0UL)
     {
         Gaslimit = other.Gaslimit;
     }
     if (other.Code.Length != 0)
     {
         Code = other.Code;
     }
     if (other.Data.Length != 0)
     {
         Data = other.Data;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Version != 0)
            {
                hash ^= Version.GetHashCode();
            }
            if (Nonce != 0UL)
            {
                hash ^= Nonce.GetHashCode();
            }
            if (Toaddr.Length != 0)
            {
                hash ^= Toaddr.GetHashCode();
            }
            if (senderpubkey_ != null)
            {
                hash ^= Senderpubkey.GetHashCode();
            }
            if (amount_ != null)
            {
                hash ^= Amount.GetHashCode();
            }
            if (gasprice_ != null)
            {
                hash ^= Gasprice.GetHashCode();
            }
            if (Gaslimit != 0UL)
            {
                hash ^= Gaslimit.GetHashCode();
            }
            if (Code.Length != 0)
            {
                hash ^= Code.GetHashCode();
            }
            if (Data.Length != 0)
            {
                hash ^= Data.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }