예제 #1
0
 public void MergeFrom(JoinClusterResult other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ErrorMsg.Length != 0)
     {
         ErrorMsg = other.ErrorMsg;
     }
     if (other.localEndpoint_ != null)
     {
         if (localEndpoint_ == null)
         {
             localEndpoint_ = new global::PeerEndpoint();
         }
         LocalEndpoint.MergeFrom(other.LocalEndpoint);
     }
     metaNodes_.Add(other.metaNodes_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }