syntax = "proto3"; message AgentInfo { string agentId = 1; } message InitResponse { string secretKey = 1; } message ReqTempKeyInfo { string apiKey = 1; int64 localIp = 2; string hostName = 3; } message TempKeyInfo { string tempKey = 1; double pollInterval = 2; } message TempKey { string value = 1; } message AuthStatus { enum AuthStatusType { AUTH_WAIT = 0; AUTH_ACCEPT = 1; AUTH_REFUSE = 2; } AuthStatusType type = 1; } service Initializer { rpc startAgent(AgentInfo) returns (InitResponse) {} rpc requestTempKey(ReqTempKeyInfo) returns (TempKeyInfo) {} rpc CheckAuth(TempKey) returns (AuthStatus) {} }