public org.bwapi.proxy.messages.GameMessages.UnitType getTrainingQueue(int index) {
        if (trainingQueueBuilder_ == null) {
          return trainingQueue_.get(index);
        } else {
          return trainingQueueBuilder_.getMessage(index);
        }
      }