congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ServerMessage$ServerInfo.getVersion
Code IndexAdd Tabnine to your IDE (free)

How to use
getVersion
method
in
com.jzy.game.message.ServerMessage$ServerInfo

Best Java code snippets using com.jzy.game.message.ServerMessage$ServerInfo.getVersion (Showing top 3 results out of 315)

origin: jzyong/game-server

info.setFreeMemory(serverInfo.getFreeMemory());
info.setTotalMemory(serverInfo.getTotalMemory());
info.setVersion(serverInfo.getVersion());
origin: jzyong/game-server

/**
 * 消息转换
 * @author JiangZhiYong
 * @QQ 359135103
 * 2017年8月29日 下午2:21:52
 * @param info
 * @return
 */
private ServerInfo getServerInfo(ServerMessage.ServerInfo info) {
  ServerInfo serverInfo = new ServerInfo();
  serverInfo.setIp(info.getIp());
  serverInfo.setId(info.getId());
  serverInfo.setPort(info.getPort());
  serverInfo.setState(info.getState());
  serverInfo.setOnline(info.getOnline());
  serverInfo.setMaxUserCount(info.getMaxUserCount());
  serverInfo.setName(info.getName());
  serverInfo.setHttpPort(info.getHttpport());
  serverInfo.setWwwip(info.getWwwip());
  serverInfo.setFreeMemory(info.getFreeMemory());
  serverInfo.setTotalMemory(info.getTotalMemory());
  serverInfo.setVersion(info.getVersion());
  return serverInfo;
}
origin: jzyong/game-server

/**
 * <code>optional string version = 13;</code>
 *
 * <pre>
 *版本号
 * </pre>
 */
public Builder clearVersion() {
 bitField0_ = (bitField0_ & ~0x00001000);
 version_ = getDefaultInstance().getVersion();
 onChanged();
 return this;
}
/**
com.jzy.game.messageServerMessage$ServerInfogetVersion

Javadoc

optional string version = 13;
 
版本号 

Popular methods of ServerMessage$ServerInfo

  • getId
    required int32 id = 1; 服务器ID
  • getIp
    optional string ip = 2; 内网地址
  • getMaxUserCount
    optional int32 maxUserCount = 7; 在线人数
  • getName
    optional string name = 9; 名字
  • getOnline
    optional int32 online = 6; 在线人数
  • getPort
    optional int32 port = 4; 端口
  • getWwwip
    optional string wwwip = 10; 外网地址
  • newBuilder
  • getHttpport
    optional int32 httpport = 8; http端口
  • getState
    optional int32 state = 5; 状态 -1表示维护;0表示准备开启;1表示正常,2表示不显示,3表示内部开启
  • getFreeMemory
    optional int32 freeMemory = 11; 空闲内存
  • getTotalMemory
    optional int32 totalMemory = 12; 可用内存
  • getFreeMemory,
  • getTotalMemory,
  • getType,
  • <init>,
  • getDefaultInstance,
  • getIpBytes,
  • getNameBytes,
  • getSerializedSize,
  • getUnknownFields

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now