
wechat.protobuf.WXAccountStatus Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: wechat.proto
package wechat.protobuf;
/**
* Protobuf enum {@code wechat_proto.WXAccountStatus}
*/
public enum WXAccountStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
* WXAccountDef = 0;
*/
WXAccountDef(0),
/**
* Offline = 1;
*/
Offline(1),
/**
* Landing = 2;
*/
Landing(2),
/**
* Online = 3;
*/
Online(3),
;
/**
* WXAccountDef = 0;
*/
public static final int WXAccountDef_VALUE = 0;
/**
* Offline = 1;
*/
public static final int Offline_VALUE = 1;
/**
* Landing = 2;
*/
public static final int Landing_VALUE = 2;
/**
* Online = 3;
*/
public static final int Online_VALUE = 3;
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 WXAccountStatus 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 WXAccountStatus forNumber(int value) {
switch (value) {
case 0: return WXAccountDef;
case 1: return Offline;
case 2: return Landing;
case 3: return Online;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
WXAccountStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public WXAccountStatus findValueByNumber(int number) {
return WXAccountStatus.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(0);
}
private static final WXAccountStatus[] VALUES = values();
public static WXAccountStatus 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 WXAccountStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:wechat_proto.WXAccountStatus)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy