public int getTrainingQueueCount() {
        if (trainingQueueBuilder_ == null) {
          return trainingQueue_.size();
        } else {
          return trainingQueueBuilder_.getCount();
        }
      }