Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
9909 kshitij.so 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.catalog;
7
 
8
 
9
import java.util.Map;
10
import java.util.HashMap;
11
import org.apache.thrift.TEnum;
12
 
13
public enum Decision implements org.apache.thrift.TEnum {
14
  AUTO_DECREMENT_SUCCESS(1),
15
  AUTO_INCREMENT_SUCCESS(2),
16
  AUTO_DECREMENT_FAILED(3),
17
  AUTO_INCREMENT_FAILED(4);
18
 
19
  private final int value;
20
 
21
  private Decision(int value) {
22
    this.value = value;
23
  }
24
 
25
  /**
26
   * Get the integer value of this enum value, as defined in the Thrift IDL.
27
   */
28
  public int getValue() {
29
    return value;
30
  }
31
 
32
  /**
33
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
34
   * @return null if the value is not found.
35
   */
36
  public static Decision findByValue(int value) { 
37
    switch (value) {
38
      case 1:
39
        return AUTO_DECREMENT_SUCCESS;
40
      case 2:
41
        return AUTO_INCREMENT_SUCCESS;
42
      case 3:
43
        return AUTO_DECREMENT_FAILED;
44
      case 4:
45
        return AUTO_INCREMENT_FAILED;
46
      default:
47
        return null;
48
    }
49
  }
50
}