public org.bwapi.proxy.messages.GameMessages.UnitTypeOrBuilder getRefineryOrBuilder() {
        if (refineryBuilder_ != null) {
          return refineryBuilder_.getMessageOrBuilder();
        } else {
          return refinery_;
        }
      }