private static Tcp.Write GenTcpWrite(AMsg aMsg) { return(Tcp.Write.Create(ByteString.FromBytes(ProtoTool.Serialize(aMsg)))); }