cicada.userdriver.config.PutOptionEnum Maven / Gradle / Ivy
/**
* Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package cicada.userdriver.config;
import java.util.Map;
import java.util.HashMap;
import org.apache.thrift.TEnum;
public enum PutOptionEnum implements org.apache.thrift.TEnum {
NickName(1),
TrueName(2),
Sex(4),
Birthday(8),
Phone(16),
Email(32),
NowPlace(64),
Certificate(128),
OpenId(256);
private final int value;
private PutOptionEnum(int value) {
this.value = value;
}
/**
* Get the integer value of this enum value, as defined in the Thrift IDL.
*/
public int getValue() {
return value;
}
/**
* Find a the enum type by its integer value, as defined in the Thrift IDL.
* @return null if the value is not found.
*/
public static PutOptionEnum findByValue(int value) {
switch (value) {
case 1:
return NickName;
case 2:
return TrueName;
case 4:
return Sex;
case 8:
return Birthday;
case 16:
return Phone;
case 32:
return Email;
case 64:
return NowPlace;
case 128:
return Certificate;
case 256:
return OpenId;
default:
return null;
}
}
}