public Builder addTrainingQueue(org.bwapi.proxy.messages.GameMessages.UnitType value) {
        if (trainingQueueBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTrainingQueueIsMutable();
          trainingQueue_.add(value);
          onChanged();
        } else {
          trainingQueueBuilder_.addMessage(value);
        }
        return this;
      }