public org.bwapi.proxy.messages.GameMessages.UnitType getType() {
        if (typeBuilder_ == null) {
          return type_;
        } else {
          return typeBuilder_.getMessage();
        }
      }