/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 4.0.2
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package com.twitter.ann.faiss;

public class ProgressiveDimClusteringParameters extends ClusteringParameters {
  private transient long swigCPtr;

  protected ProgressiveDimClusteringParameters(long cPtr, boolean cMemoryOwn) {
    super(swigfaissJNI.ProgressiveDimClusteringParameters_SWIGUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  protected static long getCPtr(ProgressiveDimClusteringParameters obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  @SuppressWarnings("deprecation")
  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        swigfaissJNI.delete_ProgressiveDimClusteringParameters(swigCPtr);
      }
      swigCPtr = 0;
    }
    super.delete();
  }

  public void setProgressive_dim_steps(int value) {
    swigfaissJNI.ProgressiveDimClusteringParameters_progressive_dim_steps_set(swigCPtr, this, value);
  }

  public int getProgressive_dim_steps() {
    return swigfaissJNI.ProgressiveDimClusteringParameters_progressive_dim_steps_get(swigCPtr, this);
  }

  public void setApply_pca(boolean value) {
    swigfaissJNI.ProgressiveDimClusteringParameters_apply_pca_set(swigCPtr, this, value);
  }

  public boolean getApply_pca() {
    return swigfaissJNI.ProgressiveDimClusteringParameters_apply_pca_get(swigCPtr, this);
  }

  public ProgressiveDimClusteringParameters() {
    this(swigfaissJNI.new_ProgressiveDimClusteringParameters(), true);
  }

}
