Remove redundant names in paths
[netvirt.git] / bgpmanager / impl / src / main / java / org / opendaylight / netvirt / bgpmanager / thrift / gen / af_safi.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 af_safi implements org.apache.thrift.TEnum {
13   SAFI_IPV4_LABELED_UNICAST(4),
14   SAFI_MPLS_VPN(5),
15   SAFI_EVPN(6);
16
17   private final int value;
18
19   private af_safi(int value) {
20     this.value = value;
21   }
22
23   /**
24    * Get the integer value of this enum value, as defined in the Thrift IDL.
25    */
26   public int getValue() {
27     return value;
28   }
29
30   /**
31    * Find a the enum type by its integer value, as defined in the Thrift IDL.
32    * @return null if the value is not found.
33    */
34   public static af_safi findByValue(int value) { 
35     switch (value) {
36       case 4:
37         return SAFI_IPV4_LABELED_UNICAST;
38       case 5:
39         return SAFI_MPLS_VPN;
40       case 6:
41         return SAFI_EVPN;
42       default:
43         return null;
44     }
45   }
46 }