net.dongliu.prettypb.rpc.protocol.ConnectErrorCode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of prettypb-rpc Show documentation
Show all versions of prettypb-rpc Show documentation
proto rpc libs, compatible with proto-rpc-pro
//Generated by pretty java compiler, DO NOT MODIFY!
package net.dongliu.prettypb.rpc.protocol;
import net.dongliu.prettypb.runtime.include.*;
@ProtoEnum(name = "ConnectErrorCode", protoPackage = "")
public enum ConnectErrorCode {
ALREADY_CONNECTED(0),
;
private int value;
private ConnectErrorCode (int value) {
this.value = value;
}
public int getValue () {
return value;
}
public static ConnectErrorCode valueOf(int value) {
switch (value) {
case 0: return ALREADY_CONNECTED;
default: throw new IllegalArgumentException();
}
}
}