public org.bwapi.proxy.messages.GameMessages.UnitId getMinerals(int index) {
        if (mineralsBuilder_ == null) {
          return minerals_.get(index);
        } else {
          return mineralsBuilder_.getMessage(index);
        }
      }