/**
 * Autogenerated by Thrift Compiler (0.20.0)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */
package com.jetbrains.python.console.protocol;


/**
 * Corresponds to completion types declared in "_pydev_bundle/_pydev_imports_tipper.py".
 */
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.20.0)", date = "2025-06-03")
public enum CompletionOptionType implements org.apache.thrift.TEnum {
  IMPORT(0),
  CLASS(1),
  FUNCTION(2),
  ATTR(3),
  BUILTIN(4),
  PARAM(5),
  IPYTHON(11),
  IPYTHON_MAGIC(12);

  private final int value;

  private CompletionOptionType(int value) {
    this.value = value;
  }

  /**
   * Get the integer value of this enum value, as defined in the Thrift IDL.
   */
  @Override
  public int getValue() {
    return value;
  }

  /**
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
   * @return null if the value is not found.
   */
  @org.apache.thrift.annotation.Nullable
  public static CompletionOptionType findByValue(int value) { 
    switch (value) {
      case 0:
        return IMPORT;
      case 1:
        return CLASS;
      case 2:
        return FUNCTION;
      case 3:
        return ATTR;
      case 4:
        return BUILTIN;
      case 5:
        return PARAM;
      case 11:
        return IPYTHON;
      case 12:
        return IPYTHON_MAGIC;
      default:
        return null;
    }
  }
}
