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