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

    boolean this_present_writeId = true;
    boolean that_present_writeId = true;
    if (this_present_writeId || that_present_writeId) {
      if (!(this_present_writeId && that_present_writeId))
        return false;
      if (this.writeId != that.writeId)
        return false;
    }

    boolean this_present_database = true && this.isSetDatabase();
    boolean that_present_database = true && that.isSetDatabase();
    if (this_present_database || that_present_database) {
      if (!(this_present_database && that_present_database))
        return false;
      if (!this.database.equals(that.database))
        return false;
    }

    boolean this_present_table = true && this.isSetTable();
    boolean that_present_table = true && that.isSetTable();
    if (this_present_table || that_present_table) {
      if (!(this_present_table && that_present_table))
        return false;
      if (!this.table.equals(that.table))
        return false;
    }

    boolean this_present_files = true && this.isSetFiles();
    boolean that_present_files = true && that.isSetFiles();
    if (this_present_files || that_present_files) {
      if (!(this_present_files && that_present_files))
        return false;
      if (!this.files.equals(that.files))
        return false;
    }

    boolean this_present_partition = true && this.isSetPartition();
    boolean that_present_partition = true && that.isSetPartition();
    if (this_present_partition || that_present_partition) {
      if (!(this_present_partition && that_present_partition))
        return false;
      if (!this.partition.equals(that.partition))
        return false;
    }

    boolean this_present_tableObj = true && this.isSetTableObj();
    boolean that_present_tableObj = true && that.isSetTableObj();
    if (this_present_tableObj || that_present_tableObj) {
      if (!(this_present_tableObj && that_present_tableObj))
        return false;
      if (!this.tableObj.equals(that.tableObj))
        return false;
    }

    boolean this_present_partitionObj = true && this.isSetPartitionObj();
    boolean that_present_partitionObj = true && that.isSetPartitionObj();
    if (this_present_partitionObj || that_present_partitionObj) {
      if (!(this_present_partitionObj && that_present_partitionObj))
        return false;
      if (!this.partitionObj.equals(that.partitionObj))
        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/WriteEventInfo.java