public org.bwapi.proxy.messages.GameMessages.UnitType getRefinery() {
        if (refineryBuilder_ == null) {
          return refinery_;
        } else {
          return refineryBuilder_.getMessage();
        }
      }