public boolean equals(ScheduledQuery that) {
    if (that == null)
      return false;
    if (this == that)
      return true;

    boolean this_present_scheduleKey = true && this.isSetScheduleKey();
    boolean that_present_scheduleKey = true && that.isSetScheduleKey();
    if (this_present_scheduleKey || that_present_scheduleKey) {
      if (!(this_present_scheduleKey && that_present_scheduleKey))
        return false;
      if (!this.scheduleKey.equals(that.scheduleKey))
        return false;
    }

    boolean this_present_enabled = true && this.isSetEnabled();
    boolean that_present_enabled = true && that.isSetEnabled();
    if (this_present_enabled || that_present_enabled) {
      if (!(this_present_enabled && that_present_enabled))
        return false;
      if (this.enabled != that.enabled)
        return false;
    }

    boolean this_present_schedule = true && this.isSetSchedule();
    boolean that_present_schedule = true && that.isSetSchedule();
    if (this_present_schedule || that_present_schedule) {
      if (!(this_present_schedule && that_present_schedule))
        return false;
      if (!this.schedule.equals(that.schedule))
        return false;
    }

    boolean this_present_user = true && this.isSetUser();
    boolean that_present_user = true && that.isSetUser();
    if (this_present_user || that_present_user) {
      if (!(this_present_user && that_present_user))
        return false;
      if (!this.user.equals(that.user))
        return false;
    }

    boolean this_present_query = true && this.isSetQuery();
    boolean that_present_query = true && that.isSetQuery();
    if (this_present_query || that_present_query) {
      if (!(this_present_query && that_present_query))
        return false;
      if (!this.query.equals(that.query))
        return false;
    }

    boolean this_present_nextExecution = true && this.isSetNextExecution();
    boolean that_present_nextExecution = true && that.isSetNextExecution();
    if (this_present_nextExecution || that_present_nextExecution) {
      if (!(this_present_nextExecution && that_present_nextExecution))
        return false;
      if (this.nextExecution != that.nextExecution)
        return false;
    }

    return true;
  }
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ScheduledQuery.java