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

    boolean this_present_name = true && this.isSetName();
    boolean that_present_name = true && that.isSetName();
    if (this_present_name || that_present_name) {
      if (!(this_present_name && that_present_name))
        return false;
      if (!this.name.equals(that.name))
        return false;
    }

    boolean this_present_status = true && this.isSetStatus();
    boolean that_present_status = true && that.isSetStatus();
    if (this_present_status || that_present_status) {
      if (!(this_present_status && that_present_status))
        return false;
      if (!this.status.equals(that.status))
        return false;
    }

    boolean this_present_queryParallelism = true && this.isSetQueryParallelism();
    boolean that_present_queryParallelism = true && that.isSetQueryParallelism();
    if (this_present_queryParallelism || that_present_queryParallelism) {
      if (!(this_present_queryParallelism && that_present_queryParallelism))
        return false;
      if (this.queryParallelism != that.queryParallelism)
        return false;
    }

    boolean this_present_isSetQueryParallelism = true && this.isSetIsSetQueryParallelism();
    boolean that_present_isSetQueryParallelism = true && that.isSetIsSetQueryParallelism();
    if (this_present_isSetQueryParallelism || that_present_isSetQueryParallelism) {
      if (!(this_present_isSetQueryParallelism && that_present_isSetQueryParallelism))
        return false;
      if (this.isSetQueryParallelism != that.isSetQueryParallelism)
        return false;
    }

    boolean this_present_defaultPoolPath = true && this.isSetDefaultPoolPath();
    boolean that_present_defaultPoolPath = true && that.isSetDefaultPoolPath();
    if (this_present_defaultPoolPath || that_present_defaultPoolPath) {
      if (!(this_present_defaultPoolPath && that_present_defaultPoolPath))
        return false;
      if (!this.defaultPoolPath.equals(that.defaultPoolPath))
        return false;
    }

    boolean this_present_isSetDefaultPoolPath = true && this.isSetIsSetDefaultPoolPath();
    boolean that_present_isSetDefaultPoolPath = true && that.isSetIsSetDefaultPoolPath();
    if (this_present_isSetDefaultPoolPath || that_present_isSetDefaultPoolPath) {
      if (!(this_present_isSetDefaultPoolPath && that_present_isSetDefaultPoolPath))
        return false;
      if (this.isSetDefaultPoolPath != that.isSetDefaultPoolPath)
        return false;
    }

    boolean this_present_ns = true && this.isSetNs();
    boolean that_present_ns = true && that.isSetNs();
    if (this_present_ns || that_present_ns) {
      if (!(this_present_ns && that_present_ns))
        return false;
      if (!this.ns.equals(that.ns))
        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/WMNullableResourcePlan.java