blob: 40efb53bee15fc34720890b2365f7166a0462818 [file] [log] [blame]
Yi Tseng59ef1702017-10-05 23:33:22 -07001/*
2 * Copyright 2017-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.drivers.barefoot.pal;
18/**
19 * Autogenerated by Thrift Compiler (0.10.0)
20 *
21 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
22 * @generated
23 */
24
25import java.util.Map;
26import java.util.HashMap;
27import org.apache.thrift.TEnum;
28
29public enum pal_autoneg_policy_t implements org.apache.thrift.TEnum {
30 BF_AN_DEFAULT(0),
31 BF_AN_FORCE_ENABLE(1),
32 BF_AN_FORCE_DISABLE(2);
33
34 private final int value;
35
36 private pal_autoneg_policy_t(int value) {
37 this.value = value;
38 }
39
40 /**
41 * Get the integer value of this enum value, as defined in the Thrift IDL.
42 */
43 public int getValue() {
44 return value;
45 }
46
47 /**
48 * Find a the enum type by its integer value, as defined in the Thrift IDL.
49 * @return null if the value is not found.
50 */
51 public static pal_autoneg_policy_t findByValue(int value) {
52 switch (value) {
53 case 0:
54 return BF_AN_DEFAULT;
55 case 1:
56 return BF_AN_FORCE_ENABLE;
57 case 2:
58 return BF_AN_FORCE_DISABLE;
59 default:
60 return null;
61 }
62 }
63}