
wechat.protobuf.ControllerType Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: wechat.proto
package wechat.protobuf;
/**
* Protobuf enum {@code wechat_proto.ControllerType}
*/
public enum ControllerType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* WeChatCheckQRCode = 0;
*/
WeChatCheckQRCode(0),
/**
* WeChatCheckManualAuth = 1;
*/
WeChatCheckManualAuth(1),
/**
* WeChatSyncData = 2;
*/
WeChatSyncData(2),
;
/**
* WeChatCheckQRCode = 0;
*/
public static final int WeChatCheckQRCode_VALUE = 0;
/**
* WeChatCheckManualAuth = 1;
*/
public static final int WeChatCheckManualAuth_VALUE = 1;
/**
* WeChatSyncData = 2;
*/
public static final int WeChatSyncData_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ControllerType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ControllerType forNumber(int value) {
switch (value) {
case 0: return WeChatCheckQRCode;
case 1: return WeChatCheckManualAuth;
case 2: return WeChatSyncData;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ControllerType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ControllerType findValueByNumber(int number) {
return ControllerType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return wechat.protobuf.Wechat.getDescriptor().getEnumTypes().get(1);
}
private static final ControllerType[] VALUES = values();
public static ControllerType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private ControllerType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:wechat_proto.ControllerType)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy