public int compareTo(getCourse_args other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;
      getCourse_args typedOther = (getCourse_args)other;

      lastComparison = Boolean.valueOf(isSetCourseNumber()).compareTo(typedOther.isSetCourseNumber());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetCourseNumber()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courseNumber, typedOther.courseNumber);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }