32667995a4a2df0b3775a527e0f920f6990a5527
[netvirt.git] / vpnservice / bgpmanager / bgpmanager-impl / src / main / java / org / opendaylight / netvirt / bgpmanager / thrift / gen / encap_type.java
1 /**
2  * Autogenerated by Thrift Compiler (0.9.1)
3  *
4  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5  *  @generated
6  */
7
8 package org.opendaylight.netvirt.bgpmanager.thrift.gen;
9
10 import java.util.Map;
11 import java.util.HashMap;
12 import org.apache.thrift.TEnum;
13
14 public enum encap_type implements org.apache.thrift.TEnum {
15   L2TPV3_OVER_IP(1),
16   GRE(2),
17   IP_IN_IP(7),
18   VXLAN(8),
19   MPLS(10);
20
21   private final int value;
22
23   private encap_type(int value) {
24     this.value = value;
25   }
26
27   /**
28    * Get the integer value of this enum value, as defined in the Thrift IDL.
29    */
30   public int getValue() {
31     return value;
32   }
33
34   /**
35    * Find a the enum type by its integer value, as defined in the Thrift IDL.
36    * @return null if the value is not found.
37    */
38   public static encap_type findByValue(int value) { 
39     switch (value) {
40       case 1:
41         return L2TPV3_OVER_IP;
42       case 2:
43         return GRE;
44       case 7:
45         return IP_IN_IP;
46       case 8:
47         return VXLAN;
48       case 10:
49         return MPLS;
50       default:
51         return null;
52     }
53   }
54 }
55