public org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder getMineralsOrBuilder(
          int index) {
        if (mineralsBuilder_ == null) {
          return minerals_.get(index);  } else {
          return mineralsBuilder_.getMessageOrBuilder(index);
        }
      }