/**
 * Autogenerated by Thrift
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */
package com.vesoft.nebula.meta;


import com.facebook.thrift.IntRangeSet;
import java.util.Map;
import java.util.HashMap;

@SuppressWarnings({ "unused" })
public enum JobStatus implements com.facebook.thrift.TEnum {
  QUEUE(1),
  RUNNING(2),
  FINISHED(3),
  FAILED(4),
  STOPPED(5),
  INVALID(255);

  private final int value;

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

  /**
   * Get the integer value of this enum value, as defined in the Thrift IDL.
   */
  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.
   */
  public static JobStatus findByValue(int value) { 
    switch (value) {
      case 1:
        return QUEUE;
      case 2:
        return RUNNING;
      case 3:
        return FINISHED;
      case 4:
        return FAILED;
      case 5:
        return STOPPED;
      case 255:
        return INVALID;
      default:
        return null;
    }
  }
}
