Ejemplo n.º 1
0
 public void MergeFrom(ProtoVaspInfo other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.VaspIdentity.Length != 0)
     {
         VaspIdentity = other.VaspIdentity;
     }
     if (other.VaspPubkey.Length != 0)
     {
         VaspPubkey = other.VaspPubkey;
     }
     if (other.postalAddress_ != null)
     {
         if (postalAddress_ == null)
         {
             PostalAddress = new global::OpenVASP.ProtocolMessages.Messages.ProtoPostalAddress();
         }
         PostalAddress.MergeFrom(other.PostalAddress);
     }
     if (other.placeOfBirth_ != null)
     {
         if (placeOfBirth_ == null)
         {
             PlaceOfBirth = new global::OpenVASP.ProtocolMessages.Messages.ProtoPlaceOfBirth();
         }
         PlaceOfBirth.MergeFrom(other.PlaceOfBirth);
     }
     naturalPersonId_.Add(other.naturalPersonId_);
     juridicalPersonId_.Add(other.juridicalPersonId_);
     if (other.Bic.Length != 0)
     {
         Bic = other.Bic;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }