PageRenderTime 118ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 2ms

/src/main/java/com/evernote/edam/notestore/NoteStore.java

http://github.com/evernote/evernote-sdk-java
Java | 13456 lines | 11499 code | 1487 blank | 470 comment | 3059 complexity | fcb37622fb0c50662ba30817f74025f3 MD5 | raw file
Possible License(s): BSD-3-Clause-No-Nuclear-License-2014
  1. /**
  2. * Autogenerated by Thrift
  3. *
  4. * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  5. */
  6. package com.evernote.edam.notestore;
  7. import java.util.List;
  8. import java.util.ArrayList;
  9. import java.util.Map;
  10. import java.util.HashMap;
  11. import java.util.Set;
  12. import java.util.HashSet;
  13. import com.evernote.thrift.*;
  14. import com.evernote.thrift.protocol.*;
  15. public class NoteStore {
  16. public interface Iface extends NoteStoreIface { }
  17. public static class Client implements TServiceClient, Iface {
  18. public Client(TProtocol prot)
  19. {
  20. this(prot, prot);
  21. }
  22. public Client(TProtocol iprot, TProtocol oprot)
  23. {
  24. iprot_ = iprot;
  25. oprot_ = oprot;
  26. }
  27. protected TProtocol iprot_;
  28. protected TProtocol oprot_;
  29. protected int seqid_;
  30. public TProtocol getInputProtocol()
  31. {
  32. return this.iprot_;
  33. }
  34. public TProtocol getOutputProtocol()
  35. {
  36. return this.oprot_;
  37. }
  38. public SyncState getSyncState(String authenticationToken) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  39. {
  40. send_getSyncState(authenticationToken);
  41. return recv_getSyncState();
  42. }
  43. public void send_getSyncState(String authenticationToken) throws TException
  44. {
  45. oprot_.writeMessageBegin(new TMessage("getSyncState", TMessageType.CALL, ++seqid_));
  46. getSyncState_args args = new getSyncState_args();
  47. args.setAuthenticationToken(authenticationToken);
  48. args.write(oprot_);
  49. oprot_.writeMessageEnd();
  50. oprot_.getTransport().flush();
  51. }
  52. public SyncState recv_getSyncState() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  53. {
  54. TMessage msg = iprot_.readMessageBegin();
  55. if (msg.type == TMessageType.EXCEPTION) {
  56. TApplicationException x = TApplicationException.read(iprot_);
  57. iprot_.readMessageEnd();
  58. throw x;
  59. }
  60. if (msg.seqid != seqid_) {
  61. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getSyncState failed: out of sequence response");
  62. }
  63. getSyncState_result result = new getSyncState_result();
  64. result.read(iprot_);
  65. iprot_.readMessageEnd();
  66. if (result.isSetSuccess()) {
  67. return result.success;
  68. }
  69. if (result.userException != null) {
  70. throw result.userException;
  71. }
  72. if (result.systemException != null) {
  73. throw result.systemException;
  74. }
  75. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSyncState failed: unknown result");
  76. }
  77. public SyncState getSyncStateWithMetrics(String authenticationToken, ClientUsageMetrics clientMetrics) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  78. {
  79. send_getSyncStateWithMetrics(authenticationToken, clientMetrics);
  80. return recv_getSyncStateWithMetrics();
  81. }
  82. public void send_getSyncStateWithMetrics(String authenticationToken, ClientUsageMetrics clientMetrics) throws TException
  83. {
  84. oprot_.writeMessageBegin(new TMessage("getSyncStateWithMetrics", TMessageType.CALL, ++seqid_));
  85. getSyncStateWithMetrics_args args = new getSyncStateWithMetrics_args();
  86. args.setAuthenticationToken(authenticationToken);
  87. args.setClientMetrics(clientMetrics);
  88. args.write(oprot_);
  89. oprot_.writeMessageEnd();
  90. oprot_.getTransport().flush();
  91. }
  92. public SyncState recv_getSyncStateWithMetrics() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  93. {
  94. TMessage msg = iprot_.readMessageBegin();
  95. if (msg.type == TMessageType.EXCEPTION) {
  96. TApplicationException x = TApplicationException.read(iprot_);
  97. iprot_.readMessageEnd();
  98. throw x;
  99. }
  100. if (msg.seqid != seqid_) {
  101. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getSyncStateWithMetrics failed: out of sequence response");
  102. }
  103. getSyncStateWithMetrics_result result = new getSyncStateWithMetrics_result();
  104. result.read(iprot_);
  105. iprot_.readMessageEnd();
  106. if (result.isSetSuccess()) {
  107. return result.success;
  108. }
  109. if (result.userException != null) {
  110. throw result.userException;
  111. }
  112. if (result.systemException != null) {
  113. throw result.systemException;
  114. }
  115. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSyncStateWithMetrics failed: unknown result");
  116. }
  117. public SyncChunk getSyncChunk(String authenticationToken, int afterUSN, int maxEntries, boolean fullSyncOnly) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  118. {
  119. send_getSyncChunk(authenticationToken, afterUSN, maxEntries, fullSyncOnly);
  120. return recv_getSyncChunk();
  121. }
  122. public void send_getSyncChunk(String authenticationToken, int afterUSN, int maxEntries, boolean fullSyncOnly) throws TException
  123. {
  124. oprot_.writeMessageBegin(new TMessage("getSyncChunk", TMessageType.CALL, ++seqid_));
  125. getSyncChunk_args args = new getSyncChunk_args();
  126. args.setAuthenticationToken(authenticationToken);
  127. args.setAfterUSN(afterUSN);
  128. args.setMaxEntries(maxEntries);
  129. args.setFullSyncOnly(fullSyncOnly);
  130. args.write(oprot_);
  131. oprot_.writeMessageEnd();
  132. oprot_.getTransport().flush();
  133. }
  134. public SyncChunk recv_getSyncChunk() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  135. {
  136. TMessage msg = iprot_.readMessageBegin();
  137. if (msg.type == TMessageType.EXCEPTION) {
  138. TApplicationException x = TApplicationException.read(iprot_);
  139. iprot_.readMessageEnd();
  140. throw x;
  141. }
  142. if (msg.seqid != seqid_) {
  143. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getSyncChunk failed: out of sequence response");
  144. }
  145. getSyncChunk_result result = new getSyncChunk_result();
  146. result.read(iprot_);
  147. iprot_.readMessageEnd();
  148. if (result.isSetSuccess()) {
  149. return result.success;
  150. }
  151. if (result.userException != null) {
  152. throw result.userException;
  153. }
  154. if (result.systemException != null) {
  155. throw result.systemException;
  156. }
  157. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSyncChunk failed: unknown result");
  158. }
  159. public SyncChunk getFilteredSyncChunk(String authenticationToken, int afterUSN, int maxEntries, SyncChunkFilter filter) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  160. {
  161. send_getFilteredSyncChunk(authenticationToken, afterUSN, maxEntries, filter);
  162. return recv_getFilteredSyncChunk();
  163. }
  164. public void send_getFilteredSyncChunk(String authenticationToken, int afterUSN, int maxEntries, SyncChunkFilter filter) throws TException
  165. {
  166. oprot_.writeMessageBegin(new TMessage("getFilteredSyncChunk", TMessageType.CALL, ++seqid_));
  167. getFilteredSyncChunk_args args = new getFilteredSyncChunk_args();
  168. args.setAuthenticationToken(authenticationToken);
  169. args.setAfterUSN(afterUSN);
  170. args.setMaxEntries(maxEntries);
  171. args.setFilter(filter);
  172. args.write(oprot_);
  173. oprot_.writeMessageEnd();
  174. oprot_.getTransport().flush();
  175. }
  176. public SyncChunk recv_getFilteredSyncChunk() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  177. {
  178. TMessage msg = iprot_.readMessageBegin();
  179. if (msg.type == TMessageType.EXCEPTION) {
  180. TApplicationException x = TApplicationException.read(iprot_);
  181. iprot_.readMessageEnd();
  182. throw x;
  183. }
  184. if (msg.seqid != seqid_) {
  185. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getFilteredSyncChunk failed: out of sequence response");
  186. }
  187. getFilteredSyncChunk_result result = new getFilteredSyncChunk_result();
  188. result.read(iprot_);
  189. iprot_.readMessageEnd();
  190. if (result.isSetSuccess()) {
  191. return result.success;
  192. }
  193. if (result.userException != null) {
  194. throw result.userException;
  195. }
  196. if (result.systemException != null) {
  197. throw result.systemException;
  198. }
  199. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getFilteredSyncChunk failed: unknown result");
  200. }
  201. public SyncState getLinkedNotebookSyncState(String authenticationToken, com.evernote.edam.type.LinkedNotebook linkedNotebook) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  202. {
  203. send_getLinkedNotebookSyncState(authenticationToken, linkedNotebook);
  204. return recv_getLinkedNotebookSyncState();
  205. }
  206. public void send_getLinkedNotebookSyncState(String authenticationToken, com.evernote.edam.type.LinkedNotebook linkedNotebook) throws TException
  207. {
  208. oprot_.writeMessageBegin(new TMessage("getLinkedNotebookSyncState", TMessageType.CALL, ++seqid_));
  209. getLinkedNotebookSyncState_args args = new getLinkedNotebookSyncState_args();
  210. args.setAuthenticationToken(authenticationToken);
  211. args.setLinkedNotebook(linkedNotebook);
  212. args.write(oprot_);
  213. oprot_.writeMessageEnd();
  214. oprot_.getTransport().flush();
  215. }
  216. public SyncState recv_getLinkedNotebookSyncState() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  217. {
  218. TMessage msg = iprot_.readMessageBegin();
  219. if (msg.type == TMessageType.EXCEPTION) {
  220. TApplicationException x = TApplicationException.read(iprot_);
  221. iprot_.readMessageEnd();
  222. throw x;
  223. }
  224. if (msg.seqid != seqid_) {
  225. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getLinkedNotebookSyncState failed: out of sequence response");
  226. }
  227. getLinkedNotebookSyncState_result result = new getLinkedNotebookSyncState_result();
  228. result.read(iprot_);
  229. iprot_.readMessageEnd();
  230. if (result.isSetSuccess()) {
  231. return result.success;
  232. }
  233. if (result.userException != null) {
  234. throw result.userException;
  235. }
  236. if (result.systemException != null) {
  237. throw result.systemException;
  238. }
  239. if (result.notFoundException != null) {
  240. throw result.notFoundException;
  241. }
  242. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLinkedNotebookSyncState failed: unknown result");
  243. }
  244. public SyncChunk getLinkedNotebookSyncChunk(String authenticationToken, com.evernote.edam.type.LinkedNotebook linkedNotebook, int afterUSN, int maxEntries, boolean fullSyncOnly) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  245. {
  246. send_getLinkedNotebookSyncChunk(authenticationToken, linkedNotebook, afterUSN, maxEntries, fullSyncOnly);
  247. return recv_getLinkedNotebookSyncChunk();
  248. }
  249. public void send_getLinkedNotebookSyncChunk(String authenticationToken, com.evernote.edam.type.LinkedNotebook linkedNotebook, int afterUSN, int maxEntries, boolean fullSyncOnly) throws TException
  250. {
  251. oprot_.writeMessageBegin(new TMessage("getLinkedNotebookSyncChunk", TMessageType.CALL, ++seqid_));
  252. getLinkedNotebookSyncChunk_args args = new getLinkedNotebookSyncChunk_args();
  253. args.setAuthenticationToken(authenticationToken);
  254. args.setLinkedNotebook(linkedNotebook);
  255. args.setAfterUSN(afterUSN);
  256. args.setMaxEntries(maxEntries);
  257. args.setFullSyncOnly(fullSyncOnly);
  258. args.write(oprot_);
  259. oprot_.writeMessageEnd();
  260. oprot_.getTransport().flush();
  261. }
  262. public SyncChunk recv_getLinkedNotebookSyncChunk() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  263. {
  264. TMessage msg = iprot_.readMessageBegin();
  265. if (msg.type == TMessageType.EXCEPTION) {
  266. TApplicationException x = TApplicationException.read(iprot_);
  267. iprot_.readMessageEnd();
  268. throw x;
  269. }
  270. if (msg.seqid != seqid_) {
  271. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getLinkedNotebookSyncChunk failed: out of sequence response");
  272. }
  273. getLinkedNotebookSyncChunk_result result = new getLinkedNotebookSyncChunk_result();
  274. result.read(iprot_);
  275. iprot_.readMessageEnd();
  276. if (result.isSetSuccess()) {
  277. return result.success;
  278. }
  279. if (result.userException != null) {
  280. throw result.userException;
  281. }
  282. if (result.systemException != null) {
  283. throw result.systemException;
  284. }
  285. if (result.notFoundException != null) {
  286. throw result.notFoundException;
  287. }
  288. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLinkedNotebookSyncChunk failed: unknown result");
  289. }
  290. public List<com.evernote.edam.type.Notebook> listNotebooks(String authenticationToken) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  291. {
  292. send_listNotebooks(authenticationToken);
  293. return recv_listNotebooks();
  294. }
  295. public void send_listNotebooks(String authenticationToken) throws TException
  296. {
  297. oprot_.writeMessageBegin(new TMessage("listNotebooks", TMessageType.CALL, ++seqid_));
  298. listNotebooks_args args = new listNotebooks_args();
  299. args.setAuthenticationToken(authenticationToken);
  300. args.write(oprot_);
  301. oprot_.writeMessageEnd();
  302. oprot_.getTransport().flush();
  303. }
  304. public List<com.evernote.edam.type.Notebook> recv_listNotebooks() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  305. {
  306. TMessage msg = iprot_.readMessageBegin();
  307. if (msg.type == TMessageType.EXCEPTION) {
  308. TApplicationException x = TApplicationException.read(iprot_);
  309. iprot_.readMessageEnd();
  310. throw x;
  311. }
  312. if (msg.seqid != seqid_) {
  313. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "listNotebooks failed: out of sequence response");
  314. }
  315. listNotebooks_result result = new listNotebooks_result();
  316. result.read(iprot_);
  317. iprot_.readMessageEnd();
  318. if (result.isSetSuccess()) {
  319. return result.success;
  320. }
  321. if (result.userException != null) {
  322. throw result.userException;
  323. }
  324. if (result.systemException != null) {
  325. throw result.systemException;
  326. }
  327. throw new TApplicationException(TApplicationException.MISSING_RESULT, "listNotebooks failed: unknown result");
  328. }
  329. public com.evernote.edam.type.Notebook getNotebook(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  330. {
  331. send_getNotebook(authenticationToken, guid);
  332. return recv_getNotebook();
  333. }
  334. public void send_getNotebook(String authenticationToken, String guid) throws TException
  335. {
  336. oprot_.writeMessageBegin(new TMessage("getNotebook", TMessageType.CALL, ++seqid_));
  337. getNotebook_args args = new getNotebook_args();
  338. args.setAuthenticationToken(authenticationToken);
  339. args.setGuid(guid);
  340. args.write(oprot_);
  341. oprot_.writeMessageEnd();
  342. oprot_.getTransport().flush();
  343. }
  344. public com.evernote.edam.type.Notebook recv_getNotebook() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  345. {
  346. TMessage msg = iprot_.readMessageBegin();
  347. if (msg.type == TMessageType.EXCEPTION) {
  348. TApplicationException x = TApplicationException.read(iprot_);
  349. iprot_.readMessageEnd();
  350. throw x;
  351. }
  352. if (msg.seqid != seqid_) {
  353. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getNotebook failed: out of sequence response");
  354. }
  355. getNotebook_result result = new getNotebook_result();
  356. result.read(iprot_);
  357. iprot_.readMessageEnd();
  358. if (result.isSetSuccess()) {
  359. return result.success;
  360. }
  361. if (result.userException != null) {
  362. throw result.userException;
  363. }
  364. if (result.systemException != null) {
  365. throw result.systemException;
  366. }
  367. if (result.notFoundException != null) {
  368. throw result.notFoundException;
  369. }
  370. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getNotebook failed: unknown result");
  371. }
  372. public com.evernote.edam.type.Notebook getDefaultNotebook(String authenticationToken) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  373. {
  374. send_getDefaultNotebook(authenticationToken);
  375. return recv_getDefaultNotebook();
  376. }
  377. public void send_getDefaultNotebook(String authenticationToken) throws TException
  378. {
  379. oprot_.writeMessageBegin(new TMessage("getDefaultNotebook", TMessageType.CALL, ++seqid_));
  380. getDefaultNotebook_args args = new getDefaultNotebook_args();
  381. args.setAuthenticationToken(authenticationToken);
  382. args.write(oprot_);
  383. oprot_.writeMessageEnd();
  384. oprot_.getTransport().flush();
  385. }
  386. public com.evernote.edam.type.Notebook recv_getDefaultNotebook() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  387. {
  388. TMessage msg = iprot_.readMessageBegin();
  389. if (msg.type == TMessageType.EXCEPTION) {
  390. TApplicationException x = TApplicationException.read(iprot_);
  391. iprot_.readMessageEnd();
  392. throw x;
  393. }
  394. if (msg.seqid != seqid_) {
  395. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getDefaultNotebook failed: out of sequence response");
  396. }
  397. getDefaultNotebook_result result = new getDefaultNotebook_result();
  398. result.read(iprot_);
  399. iprot_.readMessageEnd();
  400. if (result.isSetSuccess()) {
  401. return result.success;
  402. }
  403. if (result.userException != null) {
  404. throw result.userException;
  405. }
  406. if (result.systemException != null) {
  407. throw result.systemException;
  408. }
  409. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultNotebook failed: unknown result");
  410. }
  411. public com.evernote.edam.type.Notebook createNotebook(String authenticationToken, com.evernote.edam.type.Notebook notebook) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  412. {
  413. send_createNotebook(authenticationToken, notebook);
  414. return recv_createNotebook();
  415. }
  416. public void send_createNotebook(String authenticationToken, com.evernote.edam.type.Notebook notebook) throws TException
  417. {
  418. oprot_.writeMessageBegin(new TMessage("createNotebook", TMessageType.CALL, ++seqid_));
  419. createNotebook_args args = new createNotebook_args();
  420. args.setAuthenticationToken(authenticationToken);
  421. args.setNotebook(notebook);
  422. args.write(oprot_);
  423. oprot_.writeMessageEnd();
  424. oprot_.getTransport().flush();
  425. }
  426. public com.evernote.edam.type.Notebook recv_createNotebook() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  427. {
  428. TMessage msg = iprot_.readMessageBegin();
  429. if (msg.type == TMessageType.EXCEPTION) {
  430. TApplicationException x = TApplicationException.read(iprot_);
  431. iprot_.readMessageEnd();
  432. throw x;
  433. }
  434. if (msg.seqid != seqid_) {
  435. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "createNotebook failed: out of sequence response");
  436. }
  437. createNotebook_result result = new createNotebook_result();
  438. result.read(iprot_);
  439. iprot_.readMessageEnd();
  440. if (result.isSetSuccess()) {
  441. return result.success;
  442. }
  443. if (result.userException != null) {
  444. throw result.userException;
  445. }
  446. if (result.systemException != null) {
  447. throw result.systemException;
  448. }
  449. throw new TApplicationException(TApplicationException.MISSING_RESULT, "createNotebook failed: unknown result");
  450. }
  451. public int updateNotebook(String authenticationToken, com.evernote.edam.type.Notebook notebook) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  452. {
  453. send_updateNotebook(authenticationToken, notebook);
  454. return recv_updateNotebook();
  455. }
  456. public void send_updateNotebook(String authenticationToken, com.evernote.edam.type.Notebook notebook) throws TException
  457. {
  458. oprot_.writeMessageBegin(new TMessage("updateNotebook", TMessageType.CALL, ++seqid_));
  459. updateNotebook_args args = new updateNotebook_args();
  460. args.setAuthenticationToken(authenticationToken);
  461. args.setNotebook(notebook);
  462. args.write(oprot_);
  463. oprot_.writeMessageEnd();
  464. oprot_.getTransport().flush();
  465. }
  466. public int recv_updateNotebook() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  467. {
  468. TMessage msg = iprot_.readMessageBegin();
  469. if (msg.type == TMessageType.EXCEPTION) {
  470. TApplicationException x = TApplicationException.read(iprot_);
  471. iprot_.readMessageEnd();
  472. throw x;
  473. }
  474. if (msg.seqid != seqid_) {
  475. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "updateNotebook failed: out of sequence response");
  476. }
  477. updateNotebook_result result = new updateNotebook_result();
  478. result.read(iprot_);
  479. iprot_.readMessageEnd();
  480. if (result.isSetSuccess()) {
  481. return result.success;
  482. }
  483. if (result.userException != null) {
  484. throw result.userException;
  485. }
  486. if (result.systemException != null) {
  487. throw result.systemException;
  488. }
  489. if (result.notFoundException != null) {
  490. throw result.notFoundException;
  491. }
  492. throw new TApplicationException(TApplicationException.MISSING_RESULT, "updateNotebook failed: unknown result");
  493. }
  494. public int expungeNotebook(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  495. {
  496. send_expungeNotebook(authenticationToken, guid);
  497. return recv_expungeNotebook();
  498. }
  499. public void send_expungeNotebook(String authenticationToken, String guid) throws TException
  500. {
  501. oprot_.writeMessageBegin(new TMessage("expungeNotebook", TMessageType.CALL, ++seqid_));
  502. expungeNotebook_args args = new expungeNotebook_args();
  503. args.setAuthenticationToken(authenticationToken);
  504. args.setGuid(guid);
  505. args.write(oprot_);
  506. oprot_.writeMessageEnd();
  507. oprot_.getTransport().flush();
  508. }
  509. public int recv_expungeNotebook() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  510. {
  511. TMessage msg = iprot_.readMessageBegin();
  512. if (msg.type == TMessageType.EXCEPTION) {
  513. TApplicationException x = TApplicationException.read(iprot_);
  514. iprot_.readMessageEnd();
  515. throw x;
  516. }
  517. if (msg.seqid != seqid_) {
  518. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "expungeNotebook failed: out of sequence response");
  519. }
  520. expungeNotebook_result result = new expungeNotebook_result();
  521. result.read(iprot_);
  522. iprot_.readMessageEnd();
  523. if (result.isSetSuccess()) {
  524. return result.success;
  525. }
  526. if (result.userException != null) {
  527. throw result.userException;
  528. }
  529. if (result.systemException != null) {
  530. throw result.systemException;
  531. }
  532. if (result.notFoundException != null) {
  533. throw result.notFoundException;
  534. }
  535. throw new TApplicationException(TApplicationException.MISSING_RESULT, "expungeNotebook failed: unknown result");
  536. }
  537. public List<com.evernote.edam.type.Tag> listTags(String authenticationToken) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  538. {
  539. send_listTags(authenticationToken);
  540. return recv_listTags();
  541. }
  542. public void send_listTags(String authenticationToken) throws TException
  543. {
  544. oprot_.writeMessageBegin(new TMessage("listTags", TMessageType.CALL, ++seqid_));
  545. listTags_args args = new listTags_args();
  546. args.setAuthenticationToken(authenticationToken);
  547. args.write(oprot_);
  548. oprot_.writeMessageEnd();
  549. oprot_.getTransport().flush();
  550. }
  551. public List<com.evernote.edam.type.Tag> recv_listTags() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  552. {
  553. TMessage msg = iprot_.readMessageBegin();
  554. if (msg.type == TMessageType.EXCEPTION) {
  555. TApplicationException x = TApplicationException.read(iprot_);
  556. iprot_.readMessageEnd();
  557. throw x;
  558. }
  559. if (msg.seqid != seqid_) {
  560. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "listTags failed: out of sequence response");
  561. }
  562. listTags_result result = new listTags_result();
  563. result.read(iprot_);
  564. iprot_.readMessageEnd();
  565. if (result.isSetSuccess()) {
  566. return result.success;
  567. }
  568. if (result.userException != null) {
  569. throw result.userException;
  570. }
  571. if (result.systemException != null) {
  572. throw result.systemException;
  573. }
  574. throw new TApplicationException(TApplicationException.MISSING_RESULT, "listTags failed: unknown result");
  575. }
  576. public List<com.evernote.edam.type.Tag> listTagsByNotebook(String authenticationToken, String notebookGuid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  577. {
  578. send_listTagsByNotebook(authenticationToken, notebookGuid);
  579. return recv_listTagsByNotebook();
  580. }
  581. public void send_listTagsByNotebook(String authenticationToken, String notebookGuid) throws TException
  582. {
  583. oprot_.writeMessageBegin(new TMessage("listTagsByNotebook", TMessageType.CALL, ++seqid_));
  584. listTagsByNotebook_args args = new listTagsByNotebook_args();
  585. args.setAuthenticationToken(authenticationToken);
  586. args.setNotebookGuid(notebookGuid);
  587. args.write(oprot_);
  588. oprot_.writeMessageEnd();
  589. oprot_.getTransport().flush();
  590. }
  591. public List<com.evernote.edam.type.Tag> recv_listTagsByNotebook() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  592. {
  593. TMessage msg = iprot_.readMessageBegin();
  594. if (msg.type == TMessageType.EXCEPTION) {
  595. TApplicationException x = TApplicationException.read(iprot_);
  596. iprot_.readMessageEnd();
  597. throw x;
  598. }
  599. if (msg.seqid != seqid_) {
  600. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "listTagsByNotebook failed: out of sequence response");
  601. }
  602. listTagsByNotebook_result result = new listTagsByNotebook_result();
  603. result.read(iprot_);
  604. iprot_.readMessageEnd();
  605. if (result.isSetSuccess()) {
  606. return result.success;
  607. }
  608. if (result.userException != null) {
  609. throw result.userException;
  610. }
  611. if (result.systemException != null) {
  612. throw result.systemException;
  613. }
  614. if (result.notFoundException != null) {
  615. throw result.notFoundException;
  616. }
  617. throw new TApplicationException(TApplicationException.MISSING_RESULT, "listTagsByNotebook failed: unknown result");
  618. }
  619. public com.evernote.edam.type.Tag getTag(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  620. {
  621. send_getTag(authenticationToken, guid);
  622. return recv_getTag();
  623. }
  624. public void send_getTag(String authenticationToken, String guid) throws TException
  625. {
  626. oprot_.writeMessageBegin(new TMessage("getTag", TMessageType.CALL, ++seqid_));
  627. getTag_args args = new getTag_args();
  628. args.setAuthenticationToken(authenticationToken);
  629. args.setGuid(guid);
  630. args.write(oprot_);
  631. oprot_.writeMessageEnd();
  632. oprot_.getTransport().flush();
  633. }
  634. public com.evernote.edam.type.Tag recv_getTag() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  635. {
  636. TMessage msg = iprot_.readMessageBegin();
  637. if (msg.type == TMessageType.EXCEPTION) {
  638. TApplicationException x = TApplicationException.read(iprot_);
  639. iprot_.readMessageEnd();
  640. throw x;
  641. }
  642. if (msg.seqid != seqid_) {
  643. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getTag failed: out of sequence response");
  644. }
  645. getTag_result result = new getTag_result();
  646. result.read(iprot_);
  647. iprot_.readMessageEnd();
  648. if (result.isSetSuccess()) {
  649. return result.success;
  650. }
  651. if (result.userException != null) {
  652. throw result.userException;
  653. }
  654. if (result.systemException != null) {
  655. throw result.systemException;
  656. }
  657. if (result.notFoundException != null) {
  658. throw result.notFoundException;
  659. }
  660. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTag failed: unknown result");
  661. }
  662. public com.evernote.edam.type.Tag createTag(String authenticationToken, com.evernote.edam.type.Tag tag) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  663. {
  664. send_createTag(authenticationToken, tag);
  665. return recv_createTag();
  666. }
  667. public void send_createTag(String authenticationToken, com.evernote.edam.type.Tag tag) throws TException
  668. {
  669. oprot_.writeMessageBegin(new TMessage("createTag", TMessageType.CALL, ++seqid_));
  670. createTag_args args = new createTag_args();
  671. args.setAuthenticationToken(authenticationToken);
  672. args.setTag(tag);
  673. args.write(oprot_);
  674. oprot_.writeMessageEnd();
  675. oprot_.getTransport().flush();
  676. }
  677. public com.evernote.edam.type.Tag recv_createTag() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  678. {
  679. TMessage msg = iprot_.readMessageBegin();
  680. if (msg.type == TMessageType.EXCEPTION) {
  681. TApplicationException x = TApplicationException.read(iprot_);
  682. iprot_.readMessageEnd();
  683. throw x;
  684. }
  685. if (msg.seqid != seqid_) {
  686. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "createTag failed: out of sequence response");
  687. }
  688. createTag_result result = new createTag_result();
  689. result.read(iprot_);
  690. iprot_.readMessageEnd();
  691. if (result.isSetSuccess()) {
  692. return result.success;
  693. }
  694. if (result.userException != null) {
  695. throw result.userException;
  696. }
  697. if (result.systemException != null) {
  698. throw result.systemException;
  699. }
  700. if (result.notFoundException != null) {
  701. throw result.notFoundException;
  702. }
  703. throw new TApplicationException(TApplicationException.MISSING_RESULT, "createTag failed: unknown result");
  704. }
  705. public int updateTag(String authenticationToken, com.evernote.edam.type.Tag tag) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  706. {
  707. send_updateTag(authenticationToken, tag);
  708. return recv_updateTag();
  709. }
  710. public void send_updateTag(String authenticationToken, com.evernote.edam.type.Tag tag) throws TException
  711. {
  712. oprot_.writeMessageBegin(new TMessage("updateTag", TMessageType.CALL, ++seqid_));
  713. updateTag_args args = new updateTag_args();
  714. args.setAuthenticationToken(authenticationToken);
  715. args.setTag(tag);
  716. args.write(oprot_);
  717. oprot_.writeMessageEnd();
  718. oprot_.getTransport().flush();
  719. }
  720. public int recv_updateTag() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  721. {
  722. TMessage msg = iprot_.readMessageBegin();
  723. if (msg.type == TMessageType.EXCEPTION) {
  724. TApplicationException x = TApplicationException.read(iprot_);
  725. iprot_.readMessageEnd();
  726. throw x;
  727. }
  728. if (msg.seqid != seqid_) {
  729. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "updateTag failed: out of sequence response");
  730. }
  731. updateTag_result result = new updateTag_result();
  732. result.read(iprot_);
  733. iprot_.readMessageEnd();
  734. if (result.isSetSuccess()) {
  735. return result.success;
  736. }
  737. if (result.userException != null) {
  738. throw result.userException;
  739. }
  740. if (result.systemException != null) {
  741. throw result.systemException;
  742. }
  743. if (result.notFoundException != null) {
  744. throw result.notFoundException;
  745. }
  746. throw new TApplicationException(TApplicationException.MISSING_RESULT, "updateTag failed: unknown result");
  747. }
  748. public void untagAll(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  749. {
  750. send_untagAll(authenticationToken, guid);
  751. recv_untagAll();
  752. }
  753. public void send_untagAll(String authenticationToken, String guid) throws TException
  754. {
  755. oprot_.writeMessageBegin(new TMessage("untagAll", TMessageType.CALL, ++seqid_));
  756. untagAll_args args = new untagAll_args();
  757. args.setAuthenticationToken(authenticationToken);
  758. args.setGuid(guid);
  759. args.write(oprot_);
  760. oprot_.writeMessageEnd();
  761. oprot_.getTransport().flush();
  762. }
  763. public void recv_untagAll() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  764. {
  765. TMessage msg = iprot_.readMessageBegin();
  766. if (msg.type == TMessageType.EXCEPTION) {
  767. TApplicationException x = TApplicationException.read(iprot_);
  768. iprot_.readMessageEnd();
  769. throw x;
  770. }
  771. if (msg.seqid != seqid_) {
  772. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "untagAll failed: out of sequence response");
  773. }
  774. untagAll_result result = new untagAll_result();
  775. result.read(iprot_);
  776. iprot_.readMessageEnd();
  777. if (result.userException != null) {
  778. throw result.userException;
  779. }
  780. if (result.systemException != null) {
  781. throw result.systemException;
  782. }
  783. if (result.notFoundException != null) {
  784. throw result.notFoundException;
  785. }
  786. return;
  787. }
  788. public int expungeTag(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  789. {
  790. send_expungeTag(authenticationToken, guid);
  791. return recv_expungeTag();
  792. }
  793. public void send_expungeTag(String authenticationToken, String guid) throws TException
  794. {
  795. oprot_.writeMessageBegin(new TMessage("expungeTag", TMessageType.CALL, ++seqid_));
  796. expungeTag_args args = new expungeTag_args();
  797. args.setAuthenticationToken(authenticationToken);
  798. args.setGuid(guid);
  799. args.write(oprot_);
  800. oprot_.writeMessageEnd();
  801. oprot_.getTransport().flush();
  802. }
  803. public int recv_expungeTag() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  804. {
  805. TMessage msg = iprot_.readMessageBegin();
  806. if (msg.type == TMessageType.EXCEPTION) {
  807. TApplicationException x = TApplicationException.read(iprot_);
  808. iprot_.readMessageEnd();
  809. throw x;
  810. }
  811. if (msg.seqid != seqid_) {
  812. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "expungeTag failed: out of sequence response");
  813. }
  814. expungeTag_result result = new expungeTag_result();
  815. result.read(iprot_);
  816. iprot_.readMessageEnd();
  817. if (result.isSetSuccess()) {
  818. return result.success;
  819. }
  820. if (result.userException != null) {
  821. throw result.userException;
  822. }
  823. if (result.systemException != null) {
  824. throw result.systemException;
  825. }
  826. if (result.notFoundException != null) {
  827. throw result.notFoundException;
  828. }
  829. throw new TApplicationException(TApplicationException.MISSING_RESULT, "expungeTag failed: unknown result");
  830. }
  831. public List<com.evernote.edam.type.SavedSearch> listSearches(String authenticationToken) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  832. {
  833. send_listSearches(authenticationToken);
  834. return recv_listSearches();
  835. }
  836. public void send_listSearches(String authenticationToken) throws TException
  837. {
  838. oprot_.writeMessageBegin(new TMessage("listSearches", TMessageType.CALL, ++seqid_));
  839. listSearches_args args = new listSearches_args();
  840. args.setAuthenticationToken(authenticationToken);
  841. args.write(oprot_);
  842. oprot_.writeMessageEnd();
  843. oprot_.getTransport().flush();
  844. }
  845. public List<com.evernote.edam.type.SavedSearch> recv_listSearches() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  846. {
  847. TMessage msg = iprot_.readMessageBegin();
  848. if (msg.type == TMessageType.EXCEPTION) {
  849. TApplicationException x = TApplicationException.read(iprot_);
  850. iprot_.readMessageEnd();
  851. throw x;
  852. }
  853. if (msg.seqid != seqid_) {
  854. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "listSearches failed: out of sequence response");
  855. }
  856. listSearches_result result = new listSearches_result();
  857. result.read(iprot_);
  858. iprot_.readMessageEnd();
  859. if (result.isSetSuccess()) {
  860. return result.success;
  861. }
  862. if (result.userException != null) {
  863. throw result.userException;
  864. }
  865. if (result.systemException != null) {
  866. throw result.systemException;
  867. }
  868. throw new TApplicationException(TApplicationException.MISSING_RESULT, "listSearches failed: unknown result");
  869. }
  870. public com.evernote.edam.type.SavedSearch getSearch(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  871. {
  872. send_getSearch(authenticationToken, guid);
  873. return recv_getSearch();
  874. }
  875. public void send_getSearch(String authenticationToken, String guid) throws TException
  876. {
  877. oprot_.writeMessageBegin(new TMessage("getSearch", TMessageType.CALL, ++seqid_));
  878. getSearch_args args = new getSearch_args();
  879. args.setAuthenticationToken(authenticationToken);
  880. args.setGuid(guid);
  881. args.write(oprot_);
  882. oprot_.writeMessageEnd();
  883. oprot_.getTransport().flush();
  884. }
  885. public com.evernote.edam.type.SavedSearch recv_getSearch() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  886. {
  887. TMessage msg = iprot_.readMessageBegin();
  888. if (msg.type == TMessageType.EXCEPTION) {
  889. TApplicationException x = TApplicationException.read(iprot_);
  890. iprot_.readMessageEnd();
  891. throw x;
  892. }
  893. if (msg.seqid != seqid_) {
  894. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getSearch failed: out of sequence response");
  895. }
  896. getSearch_result result = new getSearch_result();
  897. result.read(iprot_);
  898. iprot_.readMessageEnd();
  899. if (result.isSetSuccess()) {
  900. return result.success;
  901. }
  902. if (result.userException != null) {
  903. throw result.userException;
  904. }
  905. if (result.systemException != null) {
  906. throw result.systemException;
  907. }
  908. if (result.notFoundException != null) {
  909. throw result.notFoundException;
  910. }
  911. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSearch failed: unknown result");
  912. }
  913. public com.evernote.edam.type.SavedSearch createSearch(String authenticationToken, com.evernote.edam.type.SavedSearch search) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  914. {
  915. send_createSearch(authenticationToken, search);
  916. return recv_createSearch();
  917. }
  918. public void send_createSearch(String authenticationToken, com.evernote.edam.type.SavedSearch search) throws TException
  919. {
  920. oprot_.writeMessageBegin(new TMessage("createSearch", TMessageType.CALL, ++seqid_));
  921. createSearch_args args = new createSearch_args();
  922. args.setAuthenticationToken(authenticationToken);
  923. args.setSearch(search);
  924. args.write(oprot_);
  925. oprot_.writeMessageEnd();
  926. oprot_.getTransport().flush();
  927. }
  928. public com.evernote.edam.type.SavedSearch recv_createSearch() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  929. {
  930. TMessage msg = iprot_.readMessageBegin();
  931. if (msg.type == TMessageType.EXCEPTION) {
  932. TApplicationException x = TApplicationException.read(iprot_);
  933. iprot_.readMessageEnd();
  934. throw x;
  935. }
  936. if (msg.seqid != seqid_) {
  937. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "createSearch failed: out of sequence response");
  938. }
  939. createSearch_result result = new createSearch_result();
  940. result.read(iprot_);
  941. iprot_.readMessageEnd();
  942. if (result.isSetSuccess()) {
  943. return result.success;
  944. }
  945. if (result.userException != null) {
  946. throw result.userException;
  947. }
  948. if (result.systemException != null) {
  949. throw result.systemException;
  950. }
  951. throw new TApplicationException(TApplicationException.MISSING_RESULT, "createSearch failed: unknown result");
  952. }
  953. public int updateSearch(String authenticationToken, com.evernote.edam.type.SavedSearch search) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  954. {
  955. send_updateSearch(authenticationToken, search);
  956. return recv_updateSearch();
  957. }
  958. public void send_updateSearch(String authenticationToken, com.evernote.edam.type.SavedSearch search) throws TException
  959. {
  960. oprot_.writeMessageBegin(new TMessage("updateSearch", TMessageType.CALL, ++seqid_));
  961. updateSearch_args args = new updateSearch_args();
  962. args.setAuthenticationToken(authenticationToken);
  963. args.setSearch(search);
  964. args.write(oprot_);
  965. oprot_.writeMessageEnd();
  966. oprot_.getTransport().flush();
  967. }
  968. public int recv_updateSearch() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  969. {
  970. TMessage msg = iprot_.readMessageBegin();
  971. if (msg.type == TMessageType.EXCEPTION) {
  972. TApplicationException x = TApplicationException.read(iprot_);
  973. iprot_.readMessageEnd();
  974. throw x;
  975. }
  976. if (msg.seqid != seqid_) {
  977. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "updateSearch failed: out of sequence response");
  978. }
  979. updateSearch_result result = new updateSearch_result();
  980. result.read(iprot_);
  981. iprot_.readMessageEnd();
  982. if (result.isSetSuccess()) {
  983. return result.success;
  984. }
  985. if (result.userException != null) {
  986. throw result.userException;
  987. }
  988. if (result.systemException != null) {
  989. throw result.systemException;
  990. }
  991. if (result.notFoundException != null) {
  992. throw result.notFoundException;
  993. }
  994. throw new TApplicationException(TApplicationException.MISSING_RESULT, "updateSearch failed: unknown result");
  995. }
  996. public int expungeSearch(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  997. {
  998. send_expungeSearch(authenticationToken, guid);
  999. return recv_expungeSearch();
  1000. }
  1001. public void send_expungeSearch(String authenticationToken, String guid) throws TException
  1002. {
  1003. oprot_.writeMessageBegin(new TMessage("expungeSearch", TMessageType.CALL, ++seqid_));
  1004. expungeSearch_args args = new expungeSearch_args();
  1005. args.setAuthenticationToken(authenticationToken);
  1006. args.setGuid(guid);
  1007. args.write(oprot_);
  1008. oprot_.writeMessageEnd();
  1009. oprot_.getTransport().flush();
  1010. }
  1011. public int recv_expungeSearch() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1012. {
  1013. TMessage msg = iprot_.readMessageBegin();
  1014. if (msg.type == TMessageType.EXCEPTION) {
  1015. TApplicationException x = TApplicationException.read(iprot_);
  1016. iprot_.readMessageEnd();
  1017. throw x;
  1018. }
  1019. if (msg.seqid != seqid_) {
  1020. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "expungeSearch failed: out of sequence response");
  1021. }
  1022. expungeSearch_result result = new expungeSearch_result();
  1023. result.read(iprot_);
  1024. iprot_.readMessageEnd();
  1025. if (result.isSetSuccess()) {
  1026. return result.success;
  1027. }
  1028. if (result.userException != null) {
  1029. throw result.userException;
  1030. }
  1031. if (result.systemException != null) {
  1032. throw result.systemException;
  1033. }
  1034. if (result.notFoundException != null) {
  1035. throw result.notFoundException;
  1036. }
  1037. throw new TApplicationException(TApplicationException.MISSING_RESULT, "expungeSearch failed: unknown result");
  1038. }
  1039. public NoteList findNotes(String authenticationToken, NoteFilter filter, int offset, int maxNotes) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1040. {
  1041. send_findNotes(authenticationToken, filter, offset, maxNotes);
  1042. return recv_findNotes();
  1043. }
  1044. public void send_findNotes(String authenticationToken, NoteFilter filter, int offset, int maxNotes) throws TException
  1045. {
  1046. oprot_.writeMessageBegin(new TMessage("findNotes", TMessageType.CALL, ++seqid_));
  1047. findNotes_args args = new findNotes_args();
  1048. args.setAuthenticationToken(authenticationToken);
  1049. args.setFilter(filter);
  1050. args.setOffset(offset);
  1051. args.setMaxNotes(maxNotes);
  1052. args.write(oprot_);
  1053. oprot_.writeMessageEnd();
  1054. oprot_.getTransport().flush();
  1055. }
  1056. public NoteList recv_findNotes() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1057. {
  1058. TMessage msg = iprot_.readMessageBegin();
  1059. if (msg.type == TMessageType.EXCEPTION) {
  1060. TApplicationException x = TApplicationException.read(iprot_);
  1061. iprot_.readMessageEnd();
  1062. throw x;
  1063. }
  1064. if (msg.seqid != seqid_) {
  1065. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "findNotes failed: out of sequence response");
  1066. }
  1067. findNotes_result result = new findNotes_result();
  1068. result.read(iprot_);
  1069. iprot_.readMessageEnd();
  1070. if (result.isSetSuccess()) {
  1071. return result.success;
  1072. }
  1073. if (result.userException != null) {
  1074. throw result.userException;
  1075. }
  1076. if (result.systemException != null) {
  1077. throw result.systemException;
  1078. }
  1079. if (result.notFoundException != null) {
  1080. throw result.notFoundException;
  1081. }
  1082. throw new TApplicationException(TApplicationException.MISSING_RESULT, "findNotes failed: unknown result");
  1083. }
  1084. public int findNoteOffset(String authenticationToken, NoteFilter filter, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1085. {
  1086. send_findNoteOffset(authenticationToken, filter, guid);
  1087. return recv_findNoteOffset();
  1088. }
  1089. public void send_findNoteOffset(String authenticationToken, NoteFilter filter, String guid) throws TException
  1090. {
  1091. oprot_.writeMessageBegin(new TMessage("findNoteOffset", TMessageType.CALL, ++seqid_));
  1092. findNoteOffset_args args = new findNoteOffset_args();
  1093. args.setAuthenticationToken(authenticationToken);
  1094. args.setFilter(filter);
  1095. args.setGuid(guid);
  1096. args.write(oprot_);
  1097. oprot_.writeMessageEnd();
  1098. oprot_.getTransport().flush();
  1099. }
  1100. public int recv_findNoteOffset() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1101. {
  1102. TMessage msg = iprot_.readMessageBegin();
  1103. if (msg.type == TMessageType.EXCEPTION) {
  1104. TApplicationException x = TApplicationException.read(iprot_);
  1105. iprot_.readMessageEnd();
  1106. throw x;
  1107. }
  1108. if (msg.seqid != seqid_) {
  1109. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "findNoteOffset failed: out of sequence response");
  1110. }
  1111. findNoteOffset_result result = new findNoteOffset_result();
  1112. result.read(iprot_);
  1113. iprot_.readMessageEnd();
  1114. if (result.isSetSuccess()) {
  1115. return result.success;
  1116. }
  1117. if (result.userException != null) {
  1118. throw result.userException;
  1119. }
  1120. if (result.systemException != null) {
  1121. throw result.systemException;
  1122. }
  1123. if (result.notFoundException != null) {
  1124. throw result.notFoundException;
  1125. }
  1126. throw new TApplicationException(TApplicationException.MISSING_RESULT, "findNoteOffset failed: unknown result");
  1127. }
  1128. public NotesMetadataList findNotesMetadata(String authenticationToken, NoteFilter filter, int offset, int maxNotes, NotesMetadataResultSpec resultSpec) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1129. {
  1130. send_findNotesMetadata(authenticationToken, filter, offset, maxNotes, resultSpec);
  1131. return recv_findNotesMetadata();
  1132. }
  1133. public void send_findNotesMetadata(String authenticationToken, NoteFilter filter, int offset, int maxNotes, NotesMetadataResultSpec resultSpec) throws TException
  1134. {
  1135. oprot_.writeMessageBegin(new TMessage("findNotesMetadata", TMessageType.CALL, ++seqid_));
  1136. findNotesMetadata_args args = new findNotesMetadata_args();
  1137. args.setAuthenticationToken(authenticationToken);
  1138. args.setFilter(filter);
  1139. args.setOffset(offset);
  1140. args.setMaxNotes(maxNotes);
  1141. args.setResultSpec(resultSpec);
  1142. args.write(oprot_);
  1143. oprot_.writeMessageEnd();
  1144. oprot_.getTransport().flush();
  1145. }
  1146. public NotesMetadataList recv_findNotesMetadata() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1147. {
  1148. TMessage msg = iprot_.readMessageBegin();
  1149. if (msg.type == TMessageType.EXCEPTION) {
  1150. TApplicationException x = TApplicationException.read(iprot_);
  1151. iprot_.readMessageEnd();
  1152. throw x;
  1153. }
  1154. if (msg.seqid != seqid_) {
  1155. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "findNotesMetadata failed: out of sequence response");
  1156. }
  1157. findNotesMetadata_result result = new findNotesMetadata_result();
  1158. result.read(iprot_);
  1159. iprot_.readMessageEnd();
  1160. if (result.isSetSuccess()) {
  1161. return result.success;
  1162. }
  1163. if (result.userException != null) {
  1164. throw result.userException;
  1165. }
  1166. if (result.systemException != null) {
  1167. throw result.systemException;
  1168. }
  1169. if (result.notFoundException != null) {
  1170. throw result.notFoundException;
  1171. }
  1172. throw new TApplicationException(TApplicationException.MISSING_RESULT, "findNotesMetadata failed: unknown result");
  1173. }
  1174. public NoteCollectionCounts findNoteCounts(String authenticationToken, NoteFilter filter, boolean withTrash) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1175. {
  1176. send_findNoteCounts(authenticationToken, filter, withTrash);
  1177. return recv_findNoteCounts();
  1178. }
  1179. public void send_findNoteCounts(String authenticationToken, NoteFilter filter, boolean withTrash) throws TException
  1180. {
  1181. oprot_.writeMessageBegin(new TMessage("findNoteCounts", TMessageType.CALL, ++seqid_));
  1182. findNoteCounts_args args = new findNoteCounts_args();
  1183. args.setAuthenticationToken(authenticationToken);
  1184. args.setFilter(filter);
  1185. args.setWithTrash(withTrash);
  1186. args.write(oprot_);
  1187. oprot_.writeMessageEnd();
  1188. oprot_.getTransport().flush();
  1189. }
  1190. public NoteCollectionCounts recv_findNoteCounts() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1191. {
  1192. TMessage msg = iprot_.readMessageBegin();
  1193. if (msg.type == TMessageType.EXCEPTION) {
  1194. TApplicationException x = TApplicationException.read(iprot_);
  1195. iprot_.readMessageEnd();
  1196. throw x;
  1197. }
  1198. if (msg.seqid != seqid_) {
  1199. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "findNoteCounts failed: out of sequence response");
  1200. }
  1201. findNoteCounts_result result = new findNoteCounts_result();
  1202. result.read(iprot_);
  1203. iprot_.readMessageEnd();
  1204. if (result.isSetSuccess()) {
  1205. return result.success;
  1206. }
  1207. if (result.userException != null) {
  1208. throw result.userException;
  1209. }
  1210. if (result.systemException != null) {
  1211. throw result.systemException;
  1212. }
  1213. if (result.notFoundException != null) {
  1214. throw result.notFoundException;
  1215. }
  1216. throw new TApplicationException(TApplicationException.MISSING_RESULT, "findNoteCounts failed: unknown result");
  1217. }
  1218. public com.evernote.edam.type.Note getNote(String authenticationToken, String guid, boolean withContent, boolean withResourcesData, boolean withResourcesRecognition, boolean withResourcesAlternateData) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1219. {
  1220. send_getNote(authenticationToken, guid, withContent, withResourcesData, withResourcesRecognition, withResourcesAlternateData);
  1221. return recv_getNote();
  1222. }
  1223. public void send_getNote(String authenticationToken, String guid, boolean withContent, boolean withResourcesData, boolean withResourcesRecognition, boolean withResourcesAlternateData) throws TException
  1224. {
  1225. oprot_.writeMessageBegin(new TMessage("getNote", TMessageType.CALL, ++seqid_));
  1226. getNote_args args = new getNote_args();
  1227. args.setAuthenticationToken(authenticationToken);
  1228. args.setGuid(guid);
  1229. args.setWithContent(withContent);
  1230. args.setWithResourcesData(withResourcesData);
  1231. args.setWithResourcesRecognition(withResourcesRecognition);
  1232. args.setWithResourcesAlternateData(withResourcesAlternateData);
  1233. args.write(oprot_);
  1234. oprot_.writeMessageEnd();
  1235. oprot_.getTransport().flush();
  1236. }
  1237. public com.evernote.edam.type.Note recv_getNote() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1238. {
  1239. TMessage msg = iprot_.readMessageBegin();
  1240. if (msg.type == TMessageType.EXCEPTION) {
  1241. TApplicationException x = TApplicationException.read(iprot_);
  1242. iprot_.readMessageEnd();
  1243. throw x;
  1244. }
  1245. if (msg.seqid != seqid_) {
  1246. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getNote failed: out of sequence response");
  1247. }
  1248. getNote_result result = new getNote_result();
  1249. result.read(iprot_);
  1250. iprot_.readMessageEnd();
  1251. if (result.isSetSuccess()) {
  1252. return result.success;
  1253. }
  1254. if (result.userException != null) {
  1255. throw result.userException;
  1256. }
  1257. if (result.systemException != null) {
  1258. throw result.systemException;
  1259. }
  1260. if (result.notFoundException != null) {
  1261. throw result.notFoundException;
  1262. }
  1263. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getNote failed: unknown result");
  1264. }
  1265. public com.evernote.edam.type.LazyMap getNoteApplicationData(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1266. {
  1267. send_getNoteApplicationData(authenticationToken, guid);
  1268. return recv_getNoteApplicationData();
  1269. }
  1270. public void send_getNoteApplicationData(String authenticationToken, String guid) throws TException
  1271. {
  1272. oprot_.writeMessageBegin(new TMessage("getNoteApplicationData", TMessageType.CALL, ++seqid_));
  1273. getNoteApplicationData_args args = new getNoteApplicationData_args();
  1274. args.setAuthenticationToken(authenticationToken);
  1275. args.setGuid(guid);
  1276. args.write(oprot_);
  1277. oprot_.writeMessageEnd();
  1278. oprot_.getTransport().flush();
  1279. }
  1280. public com.evernote.edam.type.LazyMap recv_getNoteApplicationData() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1281. {
  1282. TMessage msg = iprot_.readMessageBegin();
  1283. if (msg.type == TMessageType.EXCEPTION) {
  1284. TApplicationException x = TApplicationException.read(iprot_);
  1285. iprot_.readMessageEnd();
  1286. throw x;
  1287. }
  1288. if (msg.seqid != seqid_) {
  1289. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getNoteApplicationData failed: out of sequence response");
  1290. }
  1291. getNoteApplicationData_result result = new getNoteApplicationData_result();
  1292. result.read(iprot_);
  1293. iprot_.readMessageEnd();
  1294. if (result.isSetSuccess()) {
  1295. return result.success;
  1296. }
  1297. if (result.userException != null) {
  1298. throw result.userException;
  1299. }
  1300. if (result.systemException != null) {
  1301. throw result.systemException;
  1302. }
  1303. if (result.notFoundException != null) {
  1304. throw result.notFoundException;
  1305. }
  1306. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getNoteApplicationData failed: unknown result");
  1307. }
  1308. public String getNoteApplicationDataEntry(String authenticationToken, String guid, String key) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1309. {
  1310. send_getNoteApplicationDataEntry(authenticationToken, guid, key);
  1311. return recv_getNoteApplicationDataEntry();
  1312. }
  1313. public void send_getNoteApplicationDataEntry(String authenticationToken, String guid, String key) throws TException
  1314. {
  1315. oprot_.writeMessageBegin(new TMessage("getNoteApplicationDataEntry", TMessageType.CALL, ++seqid_));
  1316. getNoteApplicationDataEntry_args args = new getNoteApplicationDataEntry_args();
  1317. args.setAuthenticationToken(authenticationToken);
  1318. args.setGuid(guid);
  1319. args.setKey(key);
  1320. args.write(oprot_);
  1321. oprot_.writeMessageEnd();
  1322. oprot_.getTransport().flush();
  1323. }
  1324. public String recv_getNoteApplicationDataEntry() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1325. {
  1326. TMessage msg = iprot_.readMessageBegin();
  1327. if (msg.type == TMessageType.EXCEPTION) {
  1328. TApplicationException x = TApplicationException.read(iprot_);
  1329. iprot_.readMessageEnd();
  1330. throw x;
  1331. }
  1332. if (msg.seqid != seqid_) {
  1333. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getNoteApplicationDataEntry failed: out of sequence response");
  1334. }
  1335. getNoteApplicationDataEntry_result result = new getNoteApplicationDataEntry_result();
  1336. result.read(iprot_);
  1337. iprot_.readMessageEnd();
  1338. if (result.isSetSuccess()) {
  1339. return result.success;
  1340. }
  1341. if (result.userException != null) {
  1342. throw result.userException;
  1343. }
  1344. if (result.systemException != null) {
  1345. throw result.systemException;
  1346. }
  1347. if (result.notFoundException != null) {
  1348. throw result.notFoundException;
  1349. }
  1350. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getNoteApplicationDataEntry failed: unknown result");
  1351. }
  1352. public int setNoteApplicationDataEntry(String authenticationToken, String guid, String key, String value) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1353. {
  1354. send_setNoteApplicationDataEntry(authenticationToken, guid, key, value);
  1355. return recv_setNoteApplicationDataEntry();
  1356. }
  1357. public void send_setNoteApplicationDataEntry(String authenticationToken, String guid, String key, String value) throws TException
  1358. {
  1359. oprot_.writeMessageBegin(new TMessage("setNoteApplicationDataEntry", TMessageType.CALL, ++seqid_));
  1360. setNoteApplicationDataEntry_args args = new setNoteApplicationDataEntry_args();
  1361. args.setAuthenticationToken(authenticationToken);
  1362. args.setGuid(guid);
  1363. args.setKey(key);
  1364. args.setValue(value);
  1365. args.write(oprot_);
  1366. oprot_.writeMessageEnd();
  1367. oprot_.getTransport().flush();
  1368. }
  1369. public int recv_setNoteApplicationDataEntry() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1370. {
  1371. TMessage msg = iprot_.readMessageBegin();
  1372. if (msg.type == TMessageType.EXCEPTION) {
  1373. TApplicationException x = TApplicationException.read(iprot_);
  1374. iprot_.readMessageEnd();
  1375. throw x;
  1376. }
  1377. if (msg.seqid != seqid_) {
  1378. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "setNoteApplicationDataEntry failed: out of sequence response");
  1379. }
  1380. setNoteApplicationDataEntry_result result = new setNoteApplicationDataEntry_result();
  1381. result.read(iprot_);
  1382. iprot_.readMessageEnd();
  1383. if (result.isSetSuccess()) {
  1384. return result.success;
  1385. }
  1386. if (result.userException != null) {
  1387. throw result.userException;
  1388. }
  1389. if (result.systemException != null) {
  1390. throw result.systemException;
  1391. }
  1392. if (result.notFoundException != null) {
  1393. throw result.notFoundException;
  1394. }
  1395. throw new TApplicationException(TApplicationException.MISSING_RESULT, "setNoteApplicationDataEntry failed: unknown result");
  1396. }
  1397. public int unsetNoteApplicationDataEntry(String authenticationToken, String guid, String key) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1398. {
  1399. send_unsetNoteApplicationDataEntry(authenticationToken, guid, key);
  1400. return recv_unsetNoteApplicationDataEntry();
  1401. }
  1402. public void send_unsetNoteApplicationDataEntry(String authenticationToken, String guid, String key) throws TException
  1403. {
  1404. oprot_.writeMessageBegin(new TMessage("unsetNoteApplicationDataEntry", TMessageType.CALL, ++seqid_));
  1405. unsetNoteApplicationDataEntry_args args = new unsetNoteApplicationDataEntry_args();
  1406. args.setAuthenticationToken(authenticationToken);
  1407. args.setGuid(guid);
  1408. args.setKey(key);
  1409. args.write(oprot_);
  1410. oprot_.writeMessageEnd();
  1411. oprot_.getTransport().flush();
  1412. }
  1413. public int recv_unsetNoteApplicationDataEntry() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1414. {
  1415. TMessage msg = iprot_.readMessageBegin();
  1416. if (msg.type == TMessageType.EXCEPTION) {
  1417. TApplicationException x = TApplicationException.read(iprot_);
  1418. iprot_.readMessageEnd();
  1419. throw x;
  1420. }
  1421. if (msg.seqid != seqid_) {
  1422. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "unsetNoteApplicationDataEntry failed: out of sequence response");
  1423. }
  1424. unsetNoteApplicationDataEntry_result result = new unsetNoteApplicationDataEntry_result();
  1425. result.read(iprot_);
  1426. iprot_.readMessageEnd();
  1427. if (result.isSetSuccess()) {
  1428. return result.success;
  1429. }
  1430. if (result.userException != null) {
  1431. throw result.userException;
  1432. }
  1433. if (result.systemException != null) {
  1434. throw result.systemException;
  1435. }
  1436. if (result.notFoundException != null) {
  1437. throw result.notFoundException;
  1438. }
  1439. throw new TApplicationException(TApplicationException.MISSING_RESULT, "unsetNoteApplicationDataEntry failed: unknown result");
  1440. }
  1441. public String getNoteContent(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1442. {
  1443. send_getNoteContent(authenticationToken, guid);
  1444. return recv_getNoteContent();
  1445. }
  1446. public void send_getNoteContent(String authenticationToken, String guid) throws TException
  1447. {
  1448. oprot_.writeMessageBegin(new TMessage("getNoteContent", TMessageType.CALL, ++seqid_));
  1449. getNoteContent_args args = new getNoteContent_args();
  1450. args.setAuthenticationToken(authenticationToken);
  1451. args.setGuid(guid);
  1452. args.write(oprot_);
  1453. oprot_.writeMessageEnd();
  1454. oprot_.getTransport().flush();
  1455. }
  1456. public String recv_getNoteContent() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1457. {
  1458. TMessage msg = iprot_.readMessageBegin();
  1459. if (msg.type == TMessageType.EXCEPTION) {
  1460. TApplicationException x = TApplicationException.read(iprot_);
  1461. iprot_.readMessageEnd();
  1462. throw x;
  1463. }
  1464. if (msg.seqid != seqid_) {
  1465. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getNoteContent failed: out of sequence response");
  1466. }
  1467. getNoteContent_result result = new getNoteContent_result();
  1468. result.read(iprot_);
  1469. iprot_.readMessageEnd();
  1470. if (result.isSetSuccess()) {
  1471. return result.success;
  1472. }
  1473. if (result.userException != null) {
  1474. throw result.userException;
  1475. }
  1476. if (result.systemException != null) {
  1477. throw result.systemException;
  1478. }
  1479. if (result.notFoundException != null) {
  1480. throw result.notFoundException;
  1481. }
  1482. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getNoteContent failed: unknown result");
  1483. }
  1484. public String getNoteSearchText(String authenticationToken, String guid, boolean noteOnly, boolean tokenizeForIndexing) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1485. {
  1486. send_getNoteSearchText(authenticationToken, guid, noteOnly, tokenizeForIndexing);
  1487. return recv_getNoteSearchText();
  1488. }
  1489. public void send_getNoteSearchText(String authenticationToken, String guid, boolean noteOnly, boolean tokenizeForIndexing) throws TException
  1490. {
  1491. oprot_.writeMessageBegin(new TMessage("getNoteSearchText", TMessageType.CALL, ++seqid_));
  1492. getNoteSearchText_args args = new getNoteSearchText_args();
  1493. args.setAuthenticationToken(authenticationToken);
  1494. args.setGuid(guid);
  1495. args.setNoteOnly(noteOnly);
  1496. args.setTokenizeForIndexing(tokenizeForIndexing);
  1497. args.write(oprot_);
  1498. oprot_.writeMessageEnd();
  1499. oprot_.getTransport().flush();
  1500. }
  1501. public String recv_getNoteSearchText() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1502. {
  1503. TMessage msg = iprot_.readMessageBegin();
  1504. if (msg.type == TMessageType.EXCEPTION) {
  1505. TApplicationException x = TApplicationException.read(iprot_);
  1506. iprot_.readMessageEnd();
  1507. throw x;
  1508. }
  1509. if (msg.seqid != seqid_) {
  1510. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getNoteSearchText failed: out of sequence response");
  1511. }
  1512. getNoteSearchText_result result = new getNoteSearchText_result();
  1513. result.read(iprot_);
  1514. iprot_.readMessageEnd();
  1515. if (result.isSetSuccess()) {
  1516. return result.success;
  1517. }
  1518. if (result.userException != null) {
  1519. throw result.userException;
  1520. }
  1521. if (result.systemException != null) {
  1522. throw result.systemException;
  1523. }
  1524. if (result.notFoundException != null) {
  1525. throw result.notFoundException;
  1526. }
  1527. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getNoteSearchText failed: unknown result");
  1528. }
  1529. public String getResourceSearchText(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1530. {
  1531. send_getResourceSearchText(authenticationToken, guid);
  1532. return recv_getResourceSearchText();
  1533. }
  1534. public void send_getResourceSearchText(String authenticationToken, String guid) throws TException
  1535. {
  1536. oprot_.writeMessageBegin(new TMessage("getResourceSearchText", TMessageType.CALL, ++seqid_));
  1537. getResourceSearchText_args args = new getResourceSearchText_args();
  1538. args.setAuthenticationToken(authenticationToken);
  1539. args.setGuid(guid);
  1540. args.write(oprot_);
  1541. oprot_.writeMessageEnd();
  1542. oprot_.getTransport().flush();
  1543. }
  1544. public String recv_getResourceSearchText() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1545. {
  1546. TMessage msg = iprot_.readMessageBegin();
  1547. if (msg.type == TMessageType.EXCEPTION) {
  1548. TApplicationException x = TApplicationException.read(iprot_);
  1549. iprot_.readMessageEnd();
  1550. throw x;
  1551. }
  1552. if (msg.seqid != seqid_) {
  1553. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getResourceSearchText failed: out of sequence response");
  1554. }
  1555. getResourceSearchText_result result = new getResourceSearchText_result();
  1556. result.read(iprot_);
  1557. iprot_.readMessageEnd();
  1558. if (result.isSetSuccess()) {
  1559. return result.success;
  1560. }
  1561. if (result.userException != null) {
  1562. throw result.userException;
  1563. }
  1564. if (result.systemException != null) {
  1565. throw result.systemException;
  1566. }
  1567. if (result.notFoundException != null) {
  1568. throw result.notFoundException;
  1569. }
  1570. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getResourceSearchText failed: unknown result");
  1571. }
  1572. public List<String> getNoteTagNames(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1573. {
  1574. send_getNoteTagNames(authenticationToken, guid);
  1575. return recv_getNoteTagNames();
  1576. }
  1577. public void send_getNoteTagNames(String authenticationToken, String guid) throws TException
  1578. {
  1579. oprot_.writeMessageBegin(new TMessage("getNoteTagNames", TMessageType.CALL, ++seqid_));
  1580. getNoteTagNames_args args = new getNoteTagNames_args();
  1581. args.setAuthenticationToken(authenticationToken);
  1582. args.setGuid(guid);
  1583. args.write(oprot_);
  1584. oprot_.writeMessageEnd();
  1585. oprot_.getTransport().flush();
  1586. }
  1587. public List<String> recv_getNoteTagNames() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1588. {
  1589. TMessage msg = iprot_.readMessageBegin();
  1590. if (msg.type == TMessageType.EXCEPTION) {
  1591. TApplicationException x = TApplicationException.read(iprot_);
  1592. iprot_.readMessageEnd();
  1593. throw x;
  1594. }
  1595. if (msg.seqid != seqid_) {
  1596. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getNoteTagNames failed: out of sequence response");
  1597. }
  1598. getNoteTagNames_result result = new getNoteTagNames_result();
  1599. result.read(iprot_);
  1600. iprot_.readMessageEnd();
  1601. if (result.isSetSuccess()) {
  1602. return result.success;
  1603. }
  1604. if (result.userException != null) {
  1605. throw result.userException;
  1606. }
  1607. if (result.systemException != null) {
  1608. throw result.systemException;
  1609. }
  1610. if (result.notFoundException != null) {
  1611. throw result.notFoundException;
  1612. }
  1613. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getNoteTagNames failed: unknown result");
  1614. }
  1615. public com.evernote.edam.type.Note createNote(String authenticationToken, com.evernote.edam.type.Note note) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1616. {
  1617. send_createNote(authenticationToken, note);
  1618. return recv_createNote();
  1619. }
  1620. public void send_createNote(String authenticationToken, com.evernote.edam.type.Note note) throws TException
  1621. {
  1622. oprot_.writeMessageBegin(new TMessage("createNote", TMessageType.CALL, ++seqid_));
  1623. createNote_args args = new createNote_args();
  1624. args.setAuthenticationToken(authenticationToken);
  1625. args.setNote(note);
  1626. args.write(oprot_);
  1627. oprot_.writeMessageEnd();
  1628. oprot_.getTransport().flush();
  1629. }
  1630. public com.evernote.edam.type.Note recv_createNote() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1631. {
  1632. TMessage msg = iprot_.readMessageBegin();
  1633. if (msg.type == TMessageType.EXCEPTION) {
  1634. TApplicationException x = TApplicationException.read(iprot_);
  1635. iprot_.readMessageEnd();
  1636. throw x;
  1637. }
  1638. if (msg.seqid != seqid_) {
  1639. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "createNote failed: out of sequence response");
  1640. }
  1641. createNote_result result = new createNote_result();
  1642. result.read(iprot_);
  1643. iprot_.readMessageEnd();
  1644. if (result.isSetSuccess()) {
  1645. return result.success;
  1646. }
  1647. if (result.userException != null) {
  1648. throw result.userException;
  1649. }
  1650. if (result.systemException != null) {
  1651. throw result.systemException;
  1652. }
  1653. if (result.notFoundException != null) {
  1654. throw result.notFoundException;
  1655. }
  1656. throw new TApplicationException(TApplicationException.MISSING_RESULT, "createNote failed: unknown result");
  1657. }
  1658. public com.evernote.edam.type.Note updateNote(String authenticationToken, com.evernote.edam.type.Note note) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1659. {
  1660. send_updateNote(authenticationToken, note);
  1661. return recv_updateNote();
  1662. }
  1663. public void send_updateNote(String authenticationToken, com.evernote.edam.type.Note note) throws TException
  1664. {
  1665. oprot_.writeMessageBegin(new TMessage("updateNote", TMessageType.CALL, ++seqid_));
  1666. updateNote_args args = new updateNote_args();
  1667. args.setAuthenticationToken(authenticationToken);
  1668. args.setNote(note);
  1669. args.write(oprot_);
  1670. oprot_.writeMessageEnd();
  1671. oprot_.getTransport().flush();
  1672. }
  1673. public com.evernote.edam.type.Note recv_updateNote() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1674. {
  1675. TMessage msg = iprot_.readMessageBegin();
  1676. if (msg.type == TMessageType.EXCEPTION) {
  1677. TApplicationException x = TApplicationException.read(iprot_);
  1678. iprot_.readMessageEnd();
  1679. throw x;
  1680. }
  1681. if (msg.seqid != seqid_) {
  1682. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "updateNote failed: out of sequence response");
  1683. }
  1684. updateNote_result result = new updateNote_result();
  1685. result.read(iprot_);
  1686. iprot_.readMessageEnd();
  1687. if (result.isSetSuccess()) {
  1688. return result.success;
  1689. }
  1690. if (result.userException != null) {
  1691. throw result.userException;
  1692. }
  1693. if (result.systemException != null) {
  1694. throw result.systemException;
  1695. }
  1696. if (result.notFoundException != null) {
  1697. throw result.notFoundException;
  1698. }
  1699. throw new TApplicationException(TApplicationException.MISSING_RESULT, "updateNote failed: unknown result");
  1700. }
  1701. public int deleteNote(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1702. {
  1703. send_deleteNote(authenticationToken, guid);
  1704. return recv_deleteNote();
  1705. }
  1706. public void send_deleteNote(String authenticationToken, String guid) throws TException
  1707. {
  1708. oprot_.writeMessageBegin(new TMessage("deleteNote", TMessageType.CALL, ++seqid_));
  1709. deleteNote_args args = new deleteNote_args();
  1710. args.setAuthenticationToken(authenticationToken);
  1711. args.setGuid(guid);
  1712. args.write(oprot_);
  1713. oprot_.writeMessageEnd();
  1714. oprot_.getTransport().flush();
  1715. }
  1716. public int recv_deleteNote() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1717. {
  1718. TMessage msg = iprot_.readMessageBegin();
  1719. if (msg.type == TMessageType.EXCEPTION) {
  1720. TApplicationException x = TApplicationException.read(iprot_);
  1721. iprot_.readMessageEnd();
  1722. throw x;
  1723. }
  1724. if (msg.seqid != seqid_) {
  1725. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "deleteNote failed: out of sequence response");
  1726. }
  1727. deleteNote_result result = new deleteNote_result();
  1728. result.read(iprot_);
  1729. iprot_.readMessageEnd();
  1730. if (result.isSetSuccess()) {
  1731. return result.success;
  1732. }
  1733. if (result.userException != null) {
  1734. throw result.userException;
  1735. }
  1736. if (result.systemException != null) {
  1737. throw result.systemException;
  1738. }
  1739. if (result.notFoundException != null) {
  1740. throw result.notFoundException;
  1741. }
  1742. throw new TApplicationException(TApplicationException.MISSING_RESULT, "deleteNote failed: unknown result");
  1743. }
  1744. public int expungeNote(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1745. {
  1746. send_expungeNote(authenticationToken, guid);
  1747. return recv_expungeNote();
  1748. }
  1749. public void send_expungeNote(String authenticationToken, String guid) throws TException
  1750. {
  1751. oprot_.writeMessageBegin(new TMessage("expungeNote", TMessageType.CALL, ++seqid_));
  1752. expungeNote_args args = new expungeNote_args();
  1753. args.setAuthenticationToken(authenticationToken);
  1754. args.setGuid(guid);
  1755. args.write(oprot_);
  1756. oprot_.writeMessageEnd();
  1757. oprot_.getTransport().flush();
  1758. }
  1759. public int recv_expungeNote() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1760. {
  1761. TMessage msg = iprot_.readMessageBegin();
  1762. if (msg.type == TMessageType.EXCEPTION) {
  1763. TApplicationException x = TApplicationException.read(iprot_);
  1764. iprot_.readMessageEnd();
  1765. throw x;
  1766. }
  1767. if (msg.seqid != seqid_) {
  1768. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "expungeNote failed: out of sequence response");
  1769. }
  1770. expungeNote_result result = new expungeNote_result();
  1771. result.read(iprot_);
  1772. iprot_.readMessageEnd();
  1773. if (result.isSetSuccess()) {
  1774. return result.success;
  1775. }
  1776. if (result.userException != null) {
  1777. throw result.userException;
  1778. }
  1779. if (result.systemException != null) {
  1780. throw result.systemException;
  1781. }
  1782. if (result.notFoundException != null) {
  1783. throw result.notFoundException;
  1784. }
  1785. throw new TApplicationException(TApplicationException.MISSING_RESULT, "expungeNote failed: unknown result");
  1786. }
  1787. public int expungeNotes(String authenticationToken, List<String> noteGuids) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1788. {
  1789. send_expungeNotes(authenticationToken, noteGuids);
  1790. return recv_expungeNotes();
  1791. }
  1792. public void send_expungeNotes(String authenticationToken, List<String> noteGuids) throws TException
  1793. {
  1794. oprot_.writeMessageBegin(new TMessage("expungeNotes", TMessageType.CALL, ++seqid_));
  1795. expungeNotes_args args = new expungeNotes_args();
  1796. args.setAuthenticationToken(authenticationToken);
  1797. args.setNoteGuids(noteGuids);
  1798. args.write(oprot_);
  1799. oprot_.writeMessageEnd();
  1800. oprot_.getTransport().flush();
  1801. }
  1802. public int recv_expungeNotes() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1803. {
  1804. TMessage msg = iprot_.readMessageBegin();
  1805. if (msg.type == TMessageType.EXCEPTION) {
  1806. TApplicationException x = TApplicationException.read(iprot_);
  1807. iprot_.readMessageEnd();
  1808. throw x;
  1809. }
  1810. if (msg.seqid != seqid_) {
  1811. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "expungeNotes failed: out of sequence response");
  1812. }
  1813. expungeNotes_result result = new expungeNotes_result();
  1814. result.read(iprot_);
  1815. iprot_.readMessageEnd();
  1816. if (result.isSetSuccess()) {
  1817. return result.success;
  1818. }
  1819. if (result.userException != null) {
  1820. throw result.userException;
  1821. }
  1822. if (result.systemException != null) {
  1823. throw result.systemException;
  1824. }
  1825. if (result.notFoundException != null) {
  1826. throw result.notFoundException;
  1827. }
  1828. throw new TApplicationException(TApplicationException.MISSING_RESULT, "expungeNotes failed: unknown result");
  1829. }
  1830. public int expungeInactiveNotes(String authenticationToken) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  1831. {
  1832. send_expungeInactiveNotes(authenticationToken);
  1833. return recv_expungeInactiveNotes();
  1834. }
  1835. public void send_expungeInactiveNotes(String authenticationToken) throws TException
  1836. {
  1837. oprot_.writeMessageBegin(new TMessage("expungeInactiveNotes", TMessageType.CALL, ++seqid_));
  1838. expungeInactiveNotes_args args = new expungeInactiveNotes_args();
  1839. args.setAuthenticationToken(authenticationToken);
  1840. args.write(oprot_);
  1841. oprot_.writeMessageEnd();
  1842. oprot_.getTransport().flush();
  1843. }
  1844. public int recv_expungeInactiveNotes() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  1845. {
  1846. TMessage msg = iprot_.readMessageBegin();
  1847. if (msg.type == TMessageType.EXCEPTION) {
  1848. TApplicationException x = TApplicationException.read(iprot_);
  1849. iprot_.readMessageEnd();
  1850. throw x;
  1851. }
  1852. if (msg.seqid != seqid_) {
  1853. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "expungeInactiveNotes failed: out of sequence response");
  1854. }
  1855. expungeInactiveNotes_result result = new expungeInactiveNotes_result();
  1856. result.read(iprot_);
  1857. iprot_.readMessageEnd();
  1858. if (result.isSetSuccess()) {
  1859. return result.success;
  1860. }
  1861. if (result.userException != null) {
  1862. throw result.userException;
  1863. }
  1864. if (result.systemException != null) {
  1865. throw result.systemException;
  1866. }
  1867. throw new TApplicationException(TApplicationException.MISSING_RESULT, "expungeInactiveNotes failed: unknown result");
  1868. }
  1869. public com.evernote.edam.type.Note copyNote(String authenticationToken, String noteGuid, String toNotebookGuid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1870. {
  1871. send_copyNote(authenticationToken, noteGuid, toNotebookGuid);
  1872. return recv_copyNote();
  1873. }
  1874. public void send_copyNote(String authenticationToken, String noteGuid, String toNotebookGuid) throws TException
  1875. {
  1876. oprot_.writeMessageBegin(new TMessage("copyNote", TMessageType.CALL, ++seqid_));
  1877. copyNote_args args = new copyNote_args();
  1878. args.setAuthenticationToken(authenticationToken);
  1879. args.setNoteGuid(noteGuid);
  1880. args.setToNotebookGuid(toNotebookGuid);
  1881. args.write(oprot_);
  1882. oprot_.writeMessageEnd();
  1883. oprot_.getTransport().flush();
  1884. }
  1885. public com.evernote.edam.type.Note recv_copyNote() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1886. {
  1887. TMessage msg = iprot_.readMessageBegin();
  1888. if (msg.type == TMessageType.EXCEPTION) {
  1889. TApplicationException x = TApplicationException.read(iprot_);
  1890. iprot_.readMessageEnd();
  1891. throw x;
  1892. }
  1893. if (msg.seqid != seqid_) {
  1894. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "copyNote failed: out of sequence response");
  1895. }
  1896. copyNote_result result = new copyNote_result();
  1897. result.read(iprot_);
  1898. iprot_.readMessageEnd();
  1899. if (result.isSetSuccess()) {
  1900. return result.success;
  1901. }
  1902. if (result.userException != null) {
  1903. throw result.userException;
  1904. }
  1905. if (result.systemException != null) {
  1906. throw result.systemException;
  1907. }
  1908. if (result.notFoundException != null) {
  1909. throw result.notFoundException;
  1910. }
  1911. throw new TApplicationException(TApplicationException.MISSING_RESULT, "copyNote failed: unknown result");
  1912. }
  1913. public List<NoteVersionId> listNoteVersions(String authenticationToken, String noteGuid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1914. {
  1915. send_listNoteVersions(authenticationToken, noteGuid);
  1916. return recv_listNoteVersions();
  1917. }
  1918. public void send_listNoteVersions(String authenticationToken, String noteGuid) throws TException
  1919. {
  1920. oprot_.writeMessageBegin(new TMessage("listNoteVersions", TMessageType.CALL, ++seqid_));
  1921. listNoteVersions_args args = new listNoteVersions_args();
  1922. args.setAuthenticationToken(authenticationToken);
  1923. args.setNoteGuid(noteGuid);
  1924. args.write(oprot_);
  1925. oprot_.writeMessageEnd();
  1926. oprot_.getTransport().flush();
  1927. }
  1928. public List<NoteVersionId> recv_listNoteVersions() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1929. {
  1930. TMessage msg = iprot_.readMessageBegin();
  1931. if (msg.type == TMessageType.EXCEPTION) {
  1932. TApplicationException x = TApplicationException.read(iprot_);
  1933. iprot_.readMessageEnd();
  1934. throw x;
  1935. }
  1936. if (msg.seqid != seqid_) {
  1937. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "listNoteVersions failed: out of sequence response");
  1938. }
  1939. listNoteVersions_result result = new listNoteVersions_result();
  1940. result.read(iprot_);
  1941. iprot_.readMessageEnd();
  1942. if (result.isSetSuccess()) {
  1943. return result.success;
  1944. }
  1945. if (result.userException != null) {
  1946. throw result.userException;
  1947. }
  1948. if (result.systemException != null) {
  1949. throw result.systemException;
  1950. }
  1951. if (result.notFoundException != null) {
  1952. throw result.notFoundException;
  1953. }
  1954. throw new TApplicationException(TApplicationException.MISSING_RESULT, "listNoteVersions failed: unknown result");
  1955. }
  1956. public com.evernote.edam.type.Note getNoteVersion(String authenticationToken, String noteGuid, int updateSequenceNum, boolean withResourcesData, boolean withResourcesRecognition, boolean withResourcesAlternateData) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1957. {
  1958. send_getNoteVersion(authenticationToken, noteGuid, updateSequenceNum, withResourcesData, withResourcesRecognition, withResourcesAlternateData);
  1959. return recv_getNoteVersion();
  1960. }
  1961. public void send_getNoteVersion(String authenticationToken, String noteGuid, int updateSequenceNum, boolean withResourcesData, boolean withResourcesRecognition, boolean withResourcesAlternateData) throws TException
  1962. {
  1963. oprot_.writeMessageBegin(new TMessage("getNoteVersion", TMessageType.CALL, ++seqid_));
  1964. getNoteVersion_args args = new getNoteVersion_args();
  1965. args.setAuthenticationToken(authenticationToken);
  1966. args.setNoteGuid(noteGuid);
  1967. args.setUpdateSequenceNum(updateSequenceNum);
  1968. args.setWithResourcesData(withResourcesData);
  1969. args.setWithResourcesRecognition(withResourcesRecognition);
  1970. args.setWithResourcesAlternateData(withResourcesAlternateData);
  1971. args.write(oprot_);
  1972. oprot_.writeMessageEnd();
  1973. oprot_.getTransport().flush();
  1974. }
  1975. public com.evernote.edam.type.Note recv_getNoteVersion() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  1976. {
  1977. TMessage msg = iprot_.readMessageBegin();
  1978. if (msg.type == TMessageType.EXCEPTION) {
  1979. TApplicationException x = TApplicationException.read(iprot_);
  1980. iprot_.readMessageEnd();
  1981. throw x;
  1982. }
  1983. if (msg.seqid != seqid_) {
  1984. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getNoteVersion failed: out of sequence response");
  1985. }
  1986. getNoteVersion_result result = new getNoteVersion_result();
  1987. result.read(iprot_);
  1988. iprot_.readMessageEnd();
  1989. if (result.isSetSuccess()) {
  1990. return result.success;
  1991. }
  1992. if (result.userException != null) {
  1993. throw result.userException;
  1994. }
  1995. if (result.systemException != null) {
  1996. throw result.systemException;
  1997. }
  1998. if (result.notFoundException != null) {
  1999. throw result.notFoundException;
  2000. }
  2001. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getNoteVersion failed: unknown result");
  2002. }
  2003. public com.evernote.edam.type.Resource getResource(String authenticationToken, String guid, boolean withData, boolean withRecognition, boolean withAttributes, boolean withAlternateData) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2004. {
  2005. send_getResource(authenticationToken, guid, withData, withRecognition, withAttributes, withAlternateData);
  2006. return recv_getResource();
  2007. }
  2008. public void send_getResource(String authenticationToken, String guid, boolean withData, boolean withRecognition, boolean withAttributes, boolean withAlternateData) throws TException
  2009. {
  2010. oprot_.writeMessageBegin(new TMessage("getResource", TMessageType.CALL, ++seqid_));
  2011. getResource_args args = new getResource_args();
  2012. args.setAuthenticationToken(authenticationToken);
  2013. args.setGuid(guid);
  2014. args.setWithData(withData);
  2015. args.setWithRecognition(withRecognition);
  2016. args.setWithAttributes(withAttributes);
  2017. args.setWithAlternateData(withAlternateData);
  2018. args.write(oprot_);
  2019. oprot_.writeMessageEnd();
  2020. oprot_.getTransport().flush();
  2021. }
  2022. public com.evernote.edam.type.Resource recv_getResource() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2023. {
  2024. TMessage msg = iprot_.readMessageBegin();
  2025. if (msg.type == TMessageType.EXCEPTION) {
  2026. TApplicationException x = TApplicationException.read(iprot_);
  2027. iprot_.readMessageEnd();
  2028. throw x;
  2029. }
  2030. if (msg.seqid != seqid_) {
  2031. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getResource failed: out of sequence response");
  2032. }
  2033. getResource_result result = new getResource_result();
  2034. result.read(iprot_);
  2035. iprot_.readMessageEnd();
  2036. if (result.isSetSuccess()) {
  2037. return result.success;
  2038. }
  2039. if (result.userException != null) {
  2040. throw result.userException;
  2041. }
  2042. if (result.systemException != null) {
  2043. throw result.systemException;
  2044. }
  2045. if (result.notFoundException != null) {
  2046. throw result.notFoundException;
  2047. }
  2048. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getResource failed: unknown result");
  2049. }
  2050. public com.evernote.edam.type.LazyMap getResourceApplicationData(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2051. {
  2052. send_getResourceApplicationData(authenticationToken, guid);
  2053. return recv_getResourceApplicationData();
  2054. }
  2055. public void send_getResourceApplicationData(String authenticationToken, String guid) throws TException
  2056. {
  2057. oprot_.writeMessageBegin(new TMessage("getResourceApplicationData", TMessageType.CALL, ++seqid_));
  2058. getResourceApplicationData_args args = new getResourceApplicationData_args();
  2059. args.setAuthenticationToken(authenticationToken);
  2060. args.setGuid(guid);
  2061. args.write(oprot_);
  2062. oprot_.writeMessageEnd();
  2063. oprot_.getTransport().flush();
  2064. }
  2065. public com.evernote.edam.type.LazyMap recv_getResourceApplicationData() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2066. {
  2067. TMessage msg = iprot_.readMessageBegin();
  2068. if (msg.type == TMessageType.EXCEPTION) {
  2069. TApplicationException x = TApplicationException.read(iprot_);
  2070. iprot_.readMessageEnd();
  2071. throw x;
  2072. }
  2073. if (msg.seqid != seqid_) {
  2074. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getResourceApplicationData failed: out of sequence response");
  2075. }
  2076. getResourceApplicationData_result result = new getResourceApplicationData_result();
  2077. result.read(iprot_);
  2078. iprot_.readMessageEnd();
  2079. if (result.isSetSuccess()) {
  2080. return result.success;
  2081. }
  2082. if (result.userException != null) {
  2083. throw result.userException;
  2084. }
  2085. if (result.systemException != null) {
  2086. throw result.systemException;
  2087. }
  2088. if (result.notFoundException != null) {
  2089. throw result.notFoundException;
  2090. }
  2091. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getResourceApplicationData failed: unknown result");
  2092. }
  2093. public String getResourceApplicationDataEntry(String authenticationToken, String guid, String key) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2094. {
  2095. send_getResourceApplicationDataEntry(authenticationToken, guid, key);
  2096. return recv_getResourceApplicationDataEntry();
  2097. }
  2098. public void send_getResourceApplicationDataEntry(String authenticationToken, String guid, String key) throws TException
  2099. {
  2100. oprot_.writeMessageBegin(new TMessage("getResourceApplicationDataEntry", TMessageType.CALL, ++seqid_));
  2101. getResourceApplicationDataEntry_args args = new getResourceApplicationDataEntry_args();
  2102. args.setAuthenticationToken(authenticationToken);
  2103. args.setGuid(guid);
  2104. args.setKey(key);
  2105. args.write(oprot_);
  2106. oprot_.writeMessageEnd();
  2107. oprot_.getTransport().flush();
  2108. }
  2109. public String recv_getResourceApplicationDataEntry() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2110. {
  2111. TMessage msg = iprot_.readMessageBegin();
  2112. if (msg.type == TMessageType.EXCEPTION) {
  2113. TApplicationException x = TApplicationException.read(iprot_);
  2114. iprot_.readMessageEnd();
  2115. throw x;
  2116. }
  2117. if (msg.seqid != seqid_) {
  2118. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getResourceApplicationDataEntry failed: out of sequence response");
  2119. }
  2120. getResourceApplicationDataEntry_result result = new getResourceApplicationDataEntry_result();
  2121. result.read(iprot_);
  2122. iprot_.readMessageEnd();
  2123. if (result.isSetSuccess()) {
  2124. return result.success;
  2125. }
  2126. if (result.userException != null) {
  2127. throw result.userException;
  2128. }
  2129. if (result.systemException != null) {
  2130. throw result.systemException;
  2131. }
  2132. if (result.notFoundException != null) {
  2133. throw result.notFoundException;
  2134. }
  2135. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getResourceApplicationDataEntry failed: unknown result");
  2136. }
  2137. public int setResourceApplicationDataEntry(String authenticationToken, String guid, String key, String value) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2138. {
  2139. send_setResourceApplicationDataEntry(authenticationToken, guid, key, value);
  2140. return recv_setResourceApplicationDataEntry();
  2141. }
  2142. public void send_setResourceApplicationDataEntry(String authenticationToken, String guid, String key, String value) throws TException
  2143. {
  2144. oprot_.writeMessageBegin(new TMessage("setResourceApplicationDataEntry", TMessageType.CALL, ++seqid_));
  2145. setResourceApplicationDataEntry_args args = new setResourceApplicationDataEntry_args();
  2146. args.setAuthenticationToken(authenticationToken);
  2147. args.setGuid(guid);
  2148. args.setKey(key);
  2149. args.setValue(value);
  2150. args.write(oprot_);
  2151. oprot_.writeMessageEnd();
  2152. oprot_.getTransport().flush();
  2153. }
  2154. public int recv_setResourceApplicationDataEntry() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2155. {
  2156. TMessage msg = iprot_.readMessageBegin();
  2157. if (msg.type == TMessageType.EXCEPTION) {
  2158. TApplicationException x = TApplicationException.read(iprot_);
  2159. iprot_.readMessageEnd();
  2160. throw x;
  2161. }
  2162. if (msg.seqid != seqid_) {
  2163. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "setResourceApplicationDataEntry failed: out of sequence response");
  2164. }
  2165. setResourceApplicationDataEntry_result result = new setResourceApplicationDataEntry_result();
  2166. result.read(iprot_);
  2167. iprot_.readMessageEnd();
  2168. if (result.isSetSuccess()) {
  2169. return result.success;
  2170. }
  2171. if (result.userException != null) {
  2172. throw result.userException;
  2173. }
  2174. if (result.systemException != null) {
  2175. throw result.systemException;
  2176. }
  2177. if (result.notFoundException != null) {
  2178. throw result.notFoundException;
  2179. }
  2180. throw new TApplicationException(TApplicationException.MISSING_RESULT, "setResourceApplicationDataEntry failed: unknown result");
  2181. }
  2182. public int unsetResourceApplicationDataEntry(String authenticationToken, String guid, String key) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2183. {
  2184. send_unsetResourceApplicationDataEntry(authenticationToken, guid, key);
  2185. return recv_unsetResourceApplicationDataEntry();
  2186. }
  2187. public void send_unsetResourceApplicationDataEntry(String authenticationToken, String guid, String key) throws TException
  2188. {
  2189. oprot_.writeMessageBegin(new TMessage("unsetResourceApplicationDataEntry", TMessageType.CALL, ++seqid_));
  2190. unsetResourceApplicationDataEntry_args args = new unsetResourceApplicationDataEntry_args();
  2191. args.setAuthenticationToken(authenticationToken);
  2192. args.setGuid(guid);
  2193. args.setKey(key);
  2194. args.write(oprot_);
  2195. oprot_.writeMessageEnd();
  2196. oprot_.getTransport().flush();
  2197. }
  2198. public int recv_unsetResourceApplicationDataEntry() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2199. {
  2200. TMessage msg = iprot_.readMessageBegin();
  2201. if (msg.type == TMessageType.EXCEPTION) {
  2202. TApplicationException x = TApplicationException.read(iprot_);
  2203. iprot_.readMessageEnd();
  2204. throw x;
  2205. }
  2206. if (msg.seqid != seqid_) {
  2207. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "unsetResourceApplicationDataEntry failed: out of sequence response");
  2208. }
  2209. unsetResourceApplicationDataEntry_result result = new unsetResourceApplicationDataEntry_result();
  2210. result.read(iprot_);
  2211. iprot_.readMessageEnd();
  2212. if (result.isSetSuccess()) {
  2213. return result.success;
  2214. }
  2215. if (result.userException != null) {
  2216. throw result.userException;
  2217. }
  2218. if (result.systemException != null) {
  2219. throw result.systemException;
  2220. }
  2221. if (result.notFoundException != null) {
  2222. throw result.notFoundException;
  2223. }
  2224. throw new TApplicationException(TApplicationException.MISSING_RESULT, "unsetResourceApplicationDataEntry failed: unknown result");
  2225. }
  2226. public int updateResource(String authenticationToken, com.evernote.edam.type.Resource resource) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2227. {
  2228. send_updateResource(authenticationToken, resource);
  2229. return recv_updateResource();
  2230. }
  2231. public void send_updateResource(String authenticationToken, com.evernote.edam.type.Resource resource) throws TException
  2232. {
  2233. oprot_.writeMessageBegin(new TMessage("updateResource", TMessageType.CALL, ++seqid_));
  2234. updateResource_args args = new updateResource_args();
  2235. args.setAuthenticationToken(authenticationToken);
  2236. args.setResource(resource);
  2237. args.write(oprot_);
  2238. oprot_.writeMessageEnd();
  2239. oprot_.getTransport().flush();
  2240. }
  2241. public int recv_updateResource() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2242. {
  2243. TMessage msg = iprot_.readMessageBegin();
  2244. if (msg.type == TMessageType.EXCEPTION) {
  2245. TApplicationException x = TApplicationException.read(iprot_);
  2246. iprot_.readMessageEnd();
  2247. throw x;
  2248. }
  2249. if (msg.seqid != seqid_) {
  2250. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "updateResource failed: out of sequence response");
  2251. }
  2252. updateResource_result result = new updateResource_result();
  2253. result.read(iprot_);
  2254. iprot_.readMessageEnd();
  2255. if (result.isSetSuccess()) {
  2256. return result.success;
  2257. }
  2258. if (result.userException != null) {
  2259. throw result.userException;
  2260. }
  2261. if (result.systemException != null) {
  2262. throw result.systemException;
  2263. }
  2264. if (result.notFoundException != null) {
  2265. throw result.notFoundException;
  2266. }
  2267. throw new TApplicationException(TApplicationException.MISSING_RESULT, "updateResource failed: unknown result");
  2268. }
  2269. public byte[] getResourceData(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2270. {
  2271. send_getResourceData(authenticationToken, guid);
  2272. return recv_getResourceData();
  2273. }
  2274. public void send_getResourceData(String authenticationToken, String guid) throws TException
  2275. {
  2276. oprot_.writeMessageBegin(new TMessage("getResourceData", TMessageType.CALL, ++seqid_));
  2277. getResourceData_args args = new getResourceData_args();
  2278. args.setAuthenticationToken(authenticationToken);
  2279. args.setGuid(guid);
  2280. args.write(oprot_);
  2281. oprot_.writeMessageEnd();
  2282. oprot_.getTransport().flush();
  2283. }
  2284. public byte[] recv_getResourceData() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2285. {
  2286. TMessage msg = iprot_.readMessageBegin();
  2287. if (msg.type == TMessageType.EXCEPTION) {
  2288. TApplicationException x = TApplicationException.read(iprot_);
  2289. iprot_.readMessageEnd();
  2290. throw x;
  2291. }
  2292. if (msg.seqid != seqid_) {
  2293. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getResourceData failed: out of sequence response");
  2294. }
  2295. getResourceData_result result = new getResourceData_result();
  2296. result.read(iprot_);
  2297. iprot_.readMessageEnd();
  2298. if (result.isSetSuccess()) {
  2299. return result.success;
  2300. }
  2301. if (result.userException != null) {
  2302. throw result.userException;
  2303. }
  2304. if (result.systemException != null) {
  2305. throw result.systemException;
  2306. }
  2307. if (result.notFoundException != null) {
  2308. throw result.notFoundException;
  2309. }
  2310. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getResourceData failed: unknown result");
  2311. }
  2312. public com.evernote.edam.type.Resource getResourceByHash(String authenticationToken, String noteGuid, byte[] contentHash, boolean withData, boolean withRecognition, boolean withAlternateData) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2313. {
  2314. send_getResourceByHash(authenticationToken, noteGuid, contentHash, withData, withRecognition, withAlternateData);
  2315. return recv_getResourceByHash();
  2316. }
  2317. public void send_getResourceByHash(String authenticationToken, String noteGuid, byte[] contentHash, boolean withData, boolean withRecognition, boolean withAlternateData) throws TException
  2318. {
  2319. oprot_.writeMessageBegin(new TMessage("getResourceByHash", TMessageType.CALL, ++seqid_));
  2320. getResourceByHash_args args = new getResourceByHash_args();
  2321. args.setAuthenticationToken(authenticationToken);
  2322. args.setNoteGuid(noteGuid);
  2323. args.setContentHash(contentHash);
  2324. args.setWithData(withData);
  2325. args.setWithRecognition(withRecognition);
  2326. args.setWithAlternateData(withAlternateData);
  2327. args.write(oprot_);
  2328. oprot_.writeMessageEnd();
  2329. oprot_.getTransport().flush();
  2330. }
  2331. public com.evernote.edam.type.Resource recv_getResourceByHash() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2332. {
  2333. TMessage msg = iprot_.readMessageBegin();
  2334. if (msg.type == TMessageType.EXCEPTION) {
  2335. TApplicationException x = TApplicationException.read(iprot_);
  2336. iprot_.readMessageEnd();
  2337. throw x;
  2338. }
  2339. if (msg.seqid != seqid_) {
  2340. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getResourceByHash failed: out of sequence response");
  2341. }
  2342. getResourceByHash_result result = new getResourceByHash_result();
  2343. result.read(iprot_);
  2344. iprot_.readMessageEnd();
  2345. if (result.isSetSuccess()) {
  2346. return result.success;
  2347. }
  2348. if (result.userException != null) {
  2349. throw result.userException;
  2350. }
  2351. if (result.systemException != null) {
  2352. throw result.systemException;
  2353. }
  2354. if (result.notFoundException != null) {
  2355. throw result.notFoundException;
  2356. }
  2357. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getResourceByHash failed: unknown result");
  2358. }
  2359. public byte[] getResourceRecognition(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2360. {
  2361. send_getResourceRecognition(authenticationToken, guid);
  2362. return recv_getResourceRecognition();
  2363. }
  2364. public void send_getResourceRecognition(String authenticationToken, String guid) throws TException
  2365. {
  2366. oprot_.writeMessageBegin(new TMessage("getResourceRecognition", TMessageType.CALL, ++seqid_));
  2367. getResourceRecognition_args args = new getResourceRecognition_args();
  2368. args.setAuthenticationToken(authenticationToken);
  2369. args.setGuid(guid);
  2370. args.write(oprot_);
  2371. oprot_.writeMessageEnd();
  2372. oprot_.getTransport().flush();
  2373. }
  2374. public byte[] recv_getResourceRecognition() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2375. {
  2376. TMessage msg = iprot_.readMessageBegin();
  2377. if (msg.type == TMessageType.EXCEPTION) {
  2378. TApplicationException x = TApplicationException.read(iprot_);
  2379. iprot_.readMessageEnd();
  2380. throw x;
  2381. }
  2382. if (msg.seqid != seqid_) {
  2383. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getResourceRecognition failed: out of sequence response");
  2384. }
  2385. getResourceRecognition_result result = new getResourceRecognition_result();
  2386. result.read(iprot_);
  2387. iprot_.readMessageEnd();
  2388. if (result.isSetSuccess()) {
  2389. return result.success;
  2390. }
  2391. if (result.userException != null) {
  2392. throw result.userException;
  2393. }
  2394. if (result.systemException != null) {
  2395. throw result.systemException;
  2396. }
  2397. if (result.notFoundException != null) {
  2398. throw result.notFoundException;
  2399. }
  2400. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getResourceRecognition failed: unknown result");
  2401. }
  2402. public byte[] getResourceAlternateData(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2403. {
  2404. send_getResourceAlternateData(authenticationToken, guid);
  2405. return recv_getResourceAlternateData();
  2406. }
  2407. public void send_getResourceAlternateData(String authenticationToken, String guid) throws TException
  2408. {
  2409. oprot_.writeMessageBegin(new TMessage("getResourceAlternateData", TMessageType.CALL, ++seqid_));
  2410. getResourceAlternateData_args args = new getResourceAlternateData_args();
  2411. args.setAuthenticationToken(authenticationToken);
  2412. args.setGuid(guid);
  2413. args.write(oprot_);
  2414. oprot_.writeMessageEnd();
  2415. oprot_.getTransport().flush();
  2416. }
  2417. public byte[] recv_getResourceAlternateData() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2418. {
  2419. TMessage msg = iprot_.readMessageBegin();
  2420. if (msg.type == TMessageType.EXCEPTION) {
  2421. TApplicationException x = TApplicationException.read(iprot_);
  2422. iprot_.readMessageEnd();
  2423. throw x;
  2424. }
  2425. if (msg.seqid != seqid_) {
  2426. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getResourceAlternateData failed: out of sequence response");
  2427. }
  2428. getResourceAlternateData_result result = new getResourceAlternateData_result();
  2429. result.read(iprot_);
  2430. iprot_.readMessageEnd();
  2431. if (result.isSetSuccess()) {
  2432. return result.success;
  2433. }
  2434. if (result.userException != null) {
  2435. throw result.userException;
  2436. }
  2437. if (result.systemException != null) {
  2438. throw result.systemException;
  2439. }
  2440. if (result.notFoundException != null) {
  2441. throw result.notFoundException;
  2442. }
  2443. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getResourceAlternateData failed: unknown result");
  2444. }
  2445. public com.evernote.edam.type.ResourceAttributes getResourceAttributes(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2446. {
  2447. send_getResourceAttributes(authenticationToken, guid);
  2448. return recv_getResourceAttributes();
  2449. }
  2450. public void send_getResourceAttributes(String authenticationToken, String guid) throws TException
  2451. {
  2452. oprot_.writeMessageBegin(new TMessage("getResourceAttributes", TMessageType.CALL, ++seqid_));
  2453. getResourceAttributes_args args = new getResourceAttributes_args();
  2454. args.setAuthenticationToken(authenticationToken);
  2455. args.setGuid(guid);
  2456. args.write(oprot_);
  2457. oprot_.writeMessageEnd();
  2458. oprot_.getTransport().flush();
  2459. }
  2460. public com.evernote.edam.type.ResourceAttributes recv_getResourceAttributes() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2461. {
  2462. TMessage msg = iprot_.readMessageBegin();
  2463. if (msg.type == TMessageType.EXCEPTION) {
  2464. TApplicationException x = TApplicationException.read(iprot_);
  2465. iprot_.readMessageEnd();
  2466. throw x;
  2467. }
  2468. if (msg.seqid != seqid_) {
  2469. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getResourceAttributes failed: out of sequence response");
  2470. }
  2471. getResourceAttributes_result result = new getResourceAttributes_result();
  2472. result.read(iprot_);
  2473. iprot_.readMessageEnd();
  2474. if (result.isSetSuccess()) {
  2475. return result.success;
  2476. }
  2477. if (result.userException != null) {
  2478. throw result.userException;
  2479. }
  2480. if (result.systemException != null) {
  2481. throw result.systemException;
  2482. }
  2483. if (result.notFoundException != null) {
  2484. throw result.notFoundException;
  2485. }
  2486. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getResourceAttributes failed: unknown result");
  2487. }
  2488. public com.evernote.edam.type.Notebook getPublicNotebook(int userId, String publicUri) throws com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2489. {
  2490. send_getPublicNotebook(userId, publicUri);
  2491. return recv_getPublicNotebook();
  2492. }
  2493. public void send_getPublicNotebook(int userId, String publicUri) throws TException
  2494. {
  2495. oprot_.writeMessageBegin(new TMessage("getPublicNotebook", TMessageType.CALL, ++seqid_));
  2496. getPublicNotebook_args args = new getPublicNotebook_args();
  2497. args.setUserId(userId);
  2498. args.setPublicUri(publicUri);
  2499. args.write(oprot_);
  2500. oprot_.writeMessageEnd();
  2501. oprot_.getTransport().flush();
  2502. }
  2503. public com.evernote.edam.type.Notebook recv_getPublicNotebook() throws com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  2504. {
  2505. TMessage msg = iprot_.readMessageBegin();
  2506. if (msg.type == TMessageType.EXCEPTION) {
  2507. TApplicationException x = TApplicationException.read(iprot_);
  2508. iprot_.readMessageEnd();
  2509. throw x;
  2510. }
  2511. if (msg.seqid != seqid_) {
  2512. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getPublicNotebook failed: out of sequence response");
  2513. }
  2514. getPublicNotebook_result result = new getPublicNotebook_result();
  2515. result.read(iprot_);
  2516. iprot_.readMessageEnd();
  2517. if (result.isSetSuccess()) {
  2518. return result.success;
  2519. }
  2520. if (result.systemException != null) {
  2521. throw result.systemException;
  2522. }
  2523. if (result.notFoundException != null) {
  2524. throw result.notFoundException;
  2525. }
  2526. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getPublicNotebook failed: unknown result");
  2527. }
  2528. public com.evernote.edam.type.SharedNotebook createSharedNotebook(String authenticationToken, com.evernote.edam.type.SharedNotebook sharedNotebook) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  2529. {
  2530. send_createSharedNotebook(authenticationToken, sharedNotebook);
  2531. return recv_createSharedNotebook();
  2532. }
  2533. public void send_createSharedNotebook(String authenticationToken, com.evernote.edam.type.SharedNotebook sharedNotebook) throws TException
  2534. {
  2535. oprot_.writeMessageBegin(new TMessage("createSharedNotebook", TMessageType.CALL, ++seqid_));
  2536. createSharedNotebook_args args = new createSharedNotebook_args();
  2537. args.setAuthenticationToken(authenticationToken);
  2538. args.setSharedNotebook(sharedNotebook);
  2539. args.write(oprot_);
  2540. oprot_.writeMessageEnd();
  2541. oprot_.getTransport().flush();
  2542. }
  2543. public com.evernote.edam.type.SharedNotebook recv_createSharedNotebook() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  2544. {
  2545. TMessage msg = iprot_.readMessageBegin();
  2546. if (msg.type == TMessageType.EXCEPTION) {
  2547. TApplicationException x = TApplicationException.read(iprot_);
  2548. iprot_.readMessageEnd();
  2549. throw x;
  2550. }
  2551. if (msg.seqid != seqid_) {
  2552. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "createSharedNotebook failed: out of sequence response");
  2553. }
  2554. createSharedNotebook_result result = new createSharedNotebook_result();
  2555. result.read(iprot_);
  2556. iprot_.readMessageEnd();
  2557. if (result.isSetSuccess()) {
  2558. return result.success;
  2559. }
  2560. if (result.userException != null) {
  2561. throw result.userException;
  2562. }
  2563. if (result.notFoundException != null) {
  2564. throw result.notFoundException;
  2565. }
  2566. if (result.systemException != null) {
  2567. throw result.systemException;
  2568. }
  2569. throw new TApplicationException(TApplicationException.MISSING_RESULT, "createSharedNotebook failed: unknown result");
  2570. }
  2571. public int updateSharedNotebook(String authenticationToken, com.evernote.edam.type.SharedNotebook sharedNotebook) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  2572. {
  2573. send_updateSharedNotebook(authenticationToken, sharedNotebook);
  2574. return recv_updateSharedNotebook();
  2575. }
  2576. public void send_updateSharedNotebook(String authenticationToken, com.evernote.edam.type.SharedNotebook sharedNotebook) throws TException
  2577. {
  2578. oprot_.writeMessageBegin(new TMessage("updateSharedNotebook", TMessageType.CALL, ++seqid_));
  2579. updateSharedNotebook_args args = new updateSharedNotebook_args();
  2580. args.setAuthenticationToken(authenticationToken);
  2581. args.setSharedNotebook(sharedNotebook);
  2582. args.write(oprot_);
  2583. oprot_.writeMessageEnd();
  2584. oprot_.getTransport().flush();
  2585. }
  2586. public int recv_updateSharedNotebook() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  2587. {
  2588. TMessage msg = iprot_.readMessageBegin();
  2589. if (msg.type == TMessageType.EXCEPTION) {
  2590. TApplicationException x = TApplicationException.read(iprot_);
  2591. iprot_.readMessageEnd();
  2592. throw x;
  2593. }
  2594. if (msg.seqid != seqid_) {
  2595. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "updateSharedNotebook failed: out of sequence response");
  2596. }
  2597. updateSharedNotebook_result result = new updateSharedNotebook_result();
  2598. result.read(iprot_);
  2599. iprot_.readMessageEnd();
  2600. if (result.isSetSuccess()) {
  2601. return result.success;
  2602. }
  2603. if (result.userException != null) {
  2604. throw result.userException;
  2605. }
  2606. if (result.notFoundException != null) {
  2607. throw result.notFoundException;
  2608. }
  2609. if (result.systemException != null) {
  2610. throw result.systemException;
  2611. }
  2612. throw new TApplicationException(TApplicationException.MISSING_RESULT, "updateSharedNotebook failed: unknown result");
  2613. }
  2614. public int setSharedNotebookRecipientSettings(String authenticationToken, long sharedNotebookId, com.evernote.edam.type.SharedNotebookRecipientSettings recipientSettings) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  2615. {
  2616. send_setSharedNotebookRecipientSettings(authenticationToken, sharedNotebookId, recipientSettings);
  2617. return recv_setSharedNotebookRecipientSettings();
  2618. }
  2619. public void send_setSharedNotebookRecipientSettings(String authenticationToken, long sharedNotebookId, com.evernote.edam.type.SharedNotebookRecipientSettings recipientSettings) throws TException
  2620. {
  2621. oprot_.writeMessageBegin(new TMessage("setSharedNotebookRecipientSettings", TMessageType.CALL, ++seqid_));
  2622. setSharedNotebookRecipientSettings_args args = new setSharedNotebookRecipientSettings_args();
  2623. args.setAuthenticationToken(authenticationToken);
  2624. args.setSharedNotebookId(sharedNotebookId);
  2625. args.setRecipientSettings(recipientSettings);
  2626. args.write(oprot_);
  2627. oprot_.writeMessageEnd();
  2628. oprot_.getTransport().flush();
  2629. }
  2630. public int recv_setSharedNotebookRecipientSettings() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  2631. {
  2632. TMessage msg = iprot_.readMessageBegin();
  2633. if (msg.type == TMessageType.EXCEPTION) {
  2634. TApplicationException x = TApplicationException.read(iprot_);
  2635. iprot_.readMessageEnd();
  2636. throw x;
  2637. }
  2638. if (msg.seqid != seqid_) {
  2639. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "setSharedNotebookRecipientSettings failed: out of sequence response");
  2640. }
  2641. setSharedNotebookRecipientSettings_result result = new setSharedNotebookRecipientSettings_result();
  2642. result.read(iprot_);
  2643. iprot_.readMessageEnd();
  2644. if (result.isSetSuccess()) {
  2645. return result.success;
  2646. }
  2647. if (result.userException != null) {
  2648. throw result.userException;
  2649. }
  2650. if (result.notFoundException != null) {
  2651. throw result.notFoundException;
  2652. }
  2653. if (result.systemException != null) {
  2654. throw result.systemException;
  2655. }
  2656. throw new TApplicationException(TApplicationException.MISSING_RESULT, "setSharedNotebookRecipientSettings failed: unknown result");
  2657. }
  2658. public int sendMessageToSharedNotebookMembers(String authenticationToken, String notebookGuid, String messageText, List<String> recipients) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  2659. {
  2660. send_sendMessageToSharedNotebookMembers(authenticationToken, notebookGuid, messageText, recipients);
  2661. return recv_sendMessageToSharedNotebookMembers();
  2662. }
  2663. public void send_sendMessageToSharedNotebookMembers(String authenticationToken, String notebookGuid, String messageText, List<String> recipients) throws TException
  2664. {
  2665. oprot_.writeMessageBegin(new TMessage("sendMessageToSharedNotebookMembers", TMessageType.CALL, ++seqid_));
  2666. sendMessageToSharedNotebookMembers_args args = new sendMessageToSharedNotebookMembers_args();
  2667. args.setAuthenticationToken(authenticationToken);
  2668. args.setNotebookGuid(notebookGuid);
  2669. args.setMessageText(messageText);
  2670. args.setRecipients(recipients);
  2671. args.write(oprot_);
  2672. oprot_.writeMessageEnd();
  2673. oprot_.getTransport().flush();
  2674. }
  2675. public int recv_sendMessageToSharedNotebookMembers() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  2676. {
  2677. TMessage msg = iprot_.readMessageBegin();
  2678. if (msg.type == TMessageType.EXCEPTION) {
  2679. TApplicationException x = TApplicationException.read(iprot_);
  2680. iprot_.readMessageEnd();
  2681. throw x;
  2682. }
  2683. if (msg.seqid != seqid_) {
  2684. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "sendMessageToSharedNotebookMembers failed: out of sequence response");
  2685. }
  2686. sendMessageToSharedNotebookMembers_result result = new sendMessageToSharedNotebookMembers_result();
  2687. result.read(iprot_);
  2688. iprot_.readMessageEnd();
  2689. if (result.isSetSuccess()) {
  2690. return result.success;
  2691. }
  2692. if (result.userException != null) {
  2693. throw result.userException;
  2694. }
  2695. if (result.notFoundException != null) {
  2696. throw result.notFoundException;
  2697. }
  2698. if (result.systemException != null) {
  2699. throw result.systemException;
  2700. }
  2701. throw new TApplicationException(TApplicationException.MISSING_RESULT, "sendMessageToSharedNotebookMembers failed: unknown result");
  2702. }
  2703. public List<com.evernote.edam.type.SharedNotebook> listSharedNotebooks(String authenticationToken) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  2704. {
  2705. send_listSharedNotebooks(authenticationToken);
  2706. return recv_listSharedNotebooks();
  2707. }
  2708. public void send_listSharedNotebooks(String authenticationToken) throws TException
  2709. {
  2710. oprot_.writeMessageBegin(new TMessage("listSharedNotebooks", TMessageType.CALL, ++seqid_));
  2711. listSharedNotebooks_args args = new listSharedNotebooks_args();
  2712. args.setAuthenticationToken(authenticationToken);
  2713. args.write(oprot_);
  2714. oprot_.writeMessageEnd();
  2715. oprot_.getTransport().flush();
  2716. }
  2717. public List<com.evernote.edam.type.SharedNotebook> recv_listSharedNotebooks() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  2718. {
  2719. TMessage msg = iprot_.readMessageBegin();
  2720. if (msg.type == TMessageType.EXCEPTION) {
  2721. TApplicationException x = TApplicationException.read(iprot_);
  2722. iprot_.readMessageEnd();
  2723. throw x;
  2724. }
  2725. if (msg.seqid != seqid_) {
  2726. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "listSharedNotebooks failed: out of sequence response");
  2727. }
  2728. listSharedNotebooks_result result = new listSharedNotebooks_result();
  2729. result.read(iprot_);
  2730. iprot_.readMessageEnd();
  2731. if (result.isSetSuccess()) {
  2732. return result.success;
  2733. }
  2734. if (result.userException != null) {
  2735. throw result.userException;
  2736. }
  2737. if (result.notFoundException != null) {
  2738. throw result.notFoundException;
  2739. }
  2740. if (result.systemException != null) {
  2741. throw result.systemException;
  2742. }
  2743. throw new TApplicationException(TApplicationException.MISSING_RESULT, "listSharedNotebooks failed: unknown result");
  2744. }
  2745. public int expungeSharedNotebooks(String authenticationToken, List<Long> sharedNotebookIds) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  2746. {
  2747. send_expungeSharedNotebooks(authenticationToken, sharedNotebookIds);
  2748. return recv_expungeSharedNotebooks();
  2749. }
  2750. public void send_expungeSharedNotebooks(String authenticationToken, List<Long> sharedNotebookIds) throws TException
  2751. {
  2752. oprot_.writeMessageBegin(new TMessage("expungeSharedNotebooks", TMessageType.CALL, ++seqid_));
  2753. expungeSharedNotebooks_args args = new expungeSharedNotebooks_args();
  2754. args.setAuthenticationToken(authenticationToken);
  2755. args.setSharedNotebookIds(sharedNotebookIds);
  2756. args.write(oprot_);
  2757. oprot_.writeMessageEnd();
  2758. oprot_.getTransport().flush();
  2759. }
  2760. public int recv_expungeSharedNotebooks() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  2761. {
  2762. TMessage msg = iprot_.readMessageBegin();
  2763. if (msg.type == TMessageType.EXCEPTION) {
  2764. TApplicationException x = TApplicationException.read(iprot_);
  2765. iprot_.readMessageEnd();
  2766. throw x;
  2767. }
  2768. if (msg.seqid != seqid_) {
  2769. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "expungeSharedNotebooks failed: out of sequence response");
  2770. }
  2771. expungeSharedNotebooks_result result = new expungeSharedNotebooks_result();
  2772. result.read(iprot_);
  2773. iprot_.readMessageEnd();
  2774. if (result.isSetSuccess()) {
  2775. return result.success;
  2776. }
  2777. if (result.userException != null) {
  2778. throw result.userException;
  2779. }
  2780. if (result.notFoundException != null) {
  2781. throw result.notFoundException;
  2782. }
  2783. if (result.systemException != null) {
  2784. throw result.systemException;
  2785. }
  2786. throw new TApplicationException(TApplicationException.MISSING_RESULT, "expungeSharedNotebooks failed: unknown result");
  2787. }
  2788. public com.evernote.edam.type.LinkedNotebook createLinkedNotebook(String authenticationToken, com.evernote.edam.type.LinkedNotebook linkedNotebook) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  2789. {
  2790. send_createLinkedNotebook(authenticationToken, linkedNotebook);
  2791. return recv_createLinkedNotebook();
  2792. }
  2793. public void send_createLinkedNotebook(String authenticationToken, com.evernote.edam.type.LinkedNotebook linkedNotebook) throws TException
  2794. {
  2795. oprot_.writeMessageBegin(new TMessage("createLinkedNotebook", TMessageType.CALL, ++seqid_));
  2796. createLinkedNotebook_args args = new createLinkedNotebook_args();
  2797. args.setAuthenticationToken(authenticationToken);
  2798. args.setLinkedNotebook(linkedNotebook);
  2799. args.write(oprot_);
  2800. oprot_.writeMessageEnd();
  2801. oprot_.getTransport().flush();
  2802. }
  2803. public com.evernote.edam.type.LinkedNotebook recv_createLinkedNotebook() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  2804. {
  2805. TMessage msg = iprot_.readMessageBegin();
  2806. if (msg.type == TMessageType.EXCEPTION) {
  2807. TApplicationException x = TApplicationException.read(iprot_);
  2808. iprot_.readMessageEnd();
  2809. throw x;
  2810. }
  2811. if (msg.seqid != seqid_) {
  2812. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "createLinkedNotebook failed: out of sequence response");
  2813. }
  2814. createLinkedNotebook_result result = new createLinkedNotebook_result();
  2815. result.read(iprot_);
  2816. iprot_.readMessageEnd();
  2817. if (result.isSetSuccess()) {
  2818. return result.success;
  2819. }
  2820. if (result.userException != null) {
  2821. throw result.userException;
  2822. }
  2823. if (result.notFoundException != null) {
  2824. throw result.notFoundException;
  2825. }
  2826. if (result.systemException != null) {
  2827. throw result.systemException;
  2828. }
  2829. throw new TApplicationException(TApplicationException.MISSING_RESULT, "createLinkedNotebook failed: unknown result");
  2830. }
  2831. public int updateLinkedNotebook(String authenticationToken, com.evernote.edam.type.LinkedNotebook linkedNotebook) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  2832. {
  2833. send_updateLinkedNotebook(authenticationToken, linkedNotebook);
  2834. return recv_updateLinkedNotebook();
  2835. }
  2836. public void send_updateLinkedNotebook(String authenticationToken, com.evernote.edam.type.LinkedNotebook linkedNotebook) throws TException
  2837. {
  2838. oprot_.writeMessageBegin(new TMessage("updateLinkedNotebook", TMessageType.CALL, ++seqid_));
  2839. updateLinkedNotebook_args args = new updateLinkedNotebook_args();
  2840. args.setAuthenticationToken(authenticationToken);
  2841. args.setLinkedNotebook(linkedNotebook);
  2842. args.write(oprot_);
  2843. oprot_.writeMessageEnd();
  2844. oprot_.getTransport().flush();
  2845. }
  2846. public int recv_updateLinkedNotebook() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  2847. {
  2848. TMessage msg = iprot_.readMessageBegin();
  2849. if (msg.type == TMessageType.EXCEPTION) {
  2850. TApplicationException x = TApplicationException.read(iprot_);
  2851. iprot_.readMessageEnd();
  2852. throw x;
  2853. }
  2854. if (msg.seqid != seqid_) {
  2855. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "updateLinkedNotebook failed: out of sequence response");
  2856. }
  2857. updateLinkedNotebook_result result = new updateLinkedNotebook_result();
  2858. result.read(iprot_);
  2859. iprot_.readMessageEnd();
  2860. if (result.isSetSuccess()) {
  2861. return result.success;
  2862. }
  2863. if (result.userException != null) {
  2864. throw result.userException;
  2865. }
  2866. if (result.notFoundException != null) {
  2867. throw result.notFoundException;
  2868. }
  2869. if (result.systemException != null) {
  2870. throw result.systemException;
  2871. }
  2872. throw new TApplicationException(TApplicationException.MISSING_RESULT, "updateLinkedNotebook failed: unknown result");
  2873. }
  2874. public List<com.evernote.edam.type.LinkedNotebook> listLinkedNotebooks(String authenticationToken) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  2875. {
  2876. send_listLinkedNotebooks(authenticationToken);
  2877. return recv_listLinkedNotebooks();
  2878. }
  2879. public void send_listLinkedNotebooks(String authenticationToken) throws TException
  2880. {
  2881. oprot_.writeMessageBegin(new TMessage("listLinkedNotebooks", TMessageType.CALL, ++seqid_));
  2882. listLinkedNotebooks_args args = new listLinkedNotebooks_args();
  2883. args.setAuthenticationToken(authenticationToken);
  2884. args.write(oprot_);
  2885. oprot_.writeMessageEnd();
  2886. oprot_.getTransport().flush();
  2887. }
  2888. public List<com.evernote.edam.type.LinkedNotebook> recv_listLinkedNotebooks() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  2889. {
  2890. TMessage msg = iprot_.readMessageBegin();
  2891. if (msg.type == TMessageType.EXCEPTION) {
  2892. TApplicationException x = TApplicationException.read(iprot_);
  2893. iprot_.readMessageEnd();
  2894. throw x;
  2895. }
  2896. if (msg.seqid != seqid_) {
  2897. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "listLinkedNotebooks failed: out of sequence response");
  2898. }
  2899. listLinkedNotebooks_result result = new listLinkedNotebooks_result();
  2900. result.read(iprot_);
  2901. iprot_.readMessageEnd();
  2902. if (result.isSetSuccess()) {
  2903. return result.success;
  2904. }
  2905. if (result.userException != null) {
  2906. throw result.userException;
  2907. }
  2908. if (result.notFoundException != null) {
  2909. throw result.notFoundException;
  2910. }
  2911. if (result.systemException != null) {
  2912. throw result.systemException;
  2913. }
  2914. throw new TApplicationException(TApplicationException.MISSING_RESULT, "listLinkedNotebooks failed: unknown result");
  2915. }
  2916. public int expungeLinkedNotebook(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  2917. {
  2918. send_expungeLinkedNotebook(authenticationToken, guid);
  2919. return recv_expungeLinkedNotebook();
  2920. }
  2921. public void send_expungeLinkedNotebook(String authenticationToken, String guid) throws TException
  2922. {
  2923. oprot_.writeMessageBegin(new TMessage("expungeLinkedNotebook", TMessageType.CALL, ++seqid_));
  2924. expungeLinkedNotebook_args args = new expungeLinkedNotebook_args();
  2925. args.setAuthenticationToken(authenticationToken);
  2926. args.setGuid(guid);
  2927. args.write(oprot_);
  2928. oprot_.writeMessageEnd();
  2929. oprot_.getTransport().flush();
  2930. }
  2931. public int recv_expungeLinkedNotebook() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  2932. {
  2933. TMessage msg = iprot_.readMessageBegin();
  2934. if (msg.type == TMessageType.EXCEPTION) {
  2935. TApplicationException x = TApplicationException.read(iprot_);
  2936. iprot_.readMessageEnd();
  2937. throw x;
  2938. }
  2939. if (msg.seqid != seqid_) {
  2940. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "expungeLinkedNotebook failed: out of sequence response");
  2941. }
  2942. expungeLinkedNotebook_result result = new expungeLinkedNotebook_result();
  2943. result.read(iprot_);
  2944. iprot_.readMessageEnd();
  2945. if (result.isSetSuccess()) {
  2946. return result.success;
  2947. }
  2948. if (result.userException != null) {
  2949. throw result.userException;
  2950. }
  2951. if (result.notFoundException != null) {
  2952. throw result.notFoundException;
  2953. }
  2954. if (result.systemException != null) {
  2955. throw result.systemException;
  2956. }
  2957. throw new TApplicationException(TApplicationException.MISSING_RESULT, "expungeLinkedNotebook failed: unknown result");
  2958. }
  2959. public com.evernote.edam.userstore.AuthenticationResult authenticateToSharedNotebook(String shareKey, String authenticationToken) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  2960. {
  2961. send_authenticateToSharedNotebook(shareKey, authenticationToken);
  2962. return recv_authenticateToSharedNotebook();
  2963. }
  2964. public void send_authenticateToSharedNotebook(String shareKey, String authenticationToken) throws TException
  2965. {
  2966. oprot_.writeMessageBegin(new TMessage("authenticateToSharedNotebook", TMessageType.CALL, ++seqid_));
  2967. authenticateToSharedNotebook_args args = new authenticateToSharedNotebook_args();
  2968. args.setShareKey(shareKey);
  2969. args.setAuthenticationToken(authenticationToken);
  2970. args.write(oprot_);
  2971. oprot_.writeMessageEnd();
  2972. oprot_.getTransport().flush();
  2973. }
  2974. public com.evernote.edam.userstore.AuthenticationResult recv_authenticateToSharedNotebook() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  2975. {
  2976. TMessage msg = iprot_.readMessageBegin();
  2977. if (msg.type == TMessageType.EXCEPTION) {
  2978. TApplicationException x = TApplicationException.read(iprot_);
  2979. iprot_.readMessageEnd();
  2980. throw x;
  2981. }
  2982. if (msg.seqid != seqid_) {
  2983. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "authenticateToSharedNotebook failed: out of sequence response");
  2984. }
  2985. authenticateToSharedNotebook_result result = new authenticateToSharedNotebook_result();
  2986. result.read(iprot_);
  2987. iprot_.readMessageEnd();
  2988. if (result.isSetSuccess()) {
  2989. return result.success;
  2990. }
  2991. if (result.userException != null) {
  2992. throw result.userException;
  2993. }
  2994. if (result.notFoundException != null) {
  2995. throw result.notFoundException;
  2996. }
  2997. if (result.systemException != null) {
  2998. throw result.systemException;
  2999. }
  3000. throw new TApplicationException(TApplicationException.MISSING_RESULT, "authenticateToSharedNotebook failed: unknown result");
  3001. }
  3002. public com.evernote.edam.type.SharedNotebook getSharedNotebookByAuth(String authenticationToken) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  3003. {
  3004. send_getSharedNotebookByAuth(authenticationToken);
  3005. return recv_getSharedNotebookByAuth();
  3006. }
  3007. public void send_getSharedNotebookByAuth(String authenticationToken) throws TException
  3008. {
  3009. oprot_.writeMessageBegin(new TMessage("getSharedNotebookByAuth", TMessageType.CALL, ++seqid_));
  3010. getSharedNotebookByAuth_args args = new getSharedNotebookByAuth_args();
  3011. args.setAuthenticationToken(authenticationToken);
  3012. args.write(oprot_);
  3013. oprot_.writeMessageEnd();
  3014. oprot_.getTransport().flush();
  3015. }
  3016. public com.evernote.edam.type.SharedNotebook recv_getSharedNotebookByAuth() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  3017. {
  3018. TMessage msg = iprot_.readMessageBegin();
  3019. if (msg.type == TMessageType.EXCEPTION) {
  3020. TApplicationException x = TApplicationException.read(iprot_);
  3021. iprot_.readMessageEnd();
  3022. throw x;
  3023. }
  3024. if (msg.seqid != seqid_) {
  3025. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getSharedNotebookByAuth failed: out of sequence response");
  3026. }
  3027. getSharedNotebookByAuth_result result = new getSharedNotebookByAuth_result();
  3028. result.read(iprot_);
  3029. iprot_.readMessageEnd();
  3030. if (result.isSetSuccess()) {
  3031. return result.success;
  3032. }
  3033. if (result.userException != null) {
  3034. throw result.userException;
  3035. }
  3036. if (result.notFoundException != null) {
  3037. throw result.notFoundException;
  3038. }
  3039. if (result.systemException != null) {
  3040. throw result.systemException;
  3041. }
  3042. throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSharedNotebookByAuth failed: unknown result");
  3043. }
  3044. public void emailNote(String authenticationToken, NoteEmailParameters parameters) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  3045. {
  3046. send_emailNote(authenticationToken, parameters);
  3047. recv_emailNote();
  3048. }
  3049. public void send_emailNote(String authenticationToken, NoteEmailParameters parameters) throws TException
  3050. {
  3051. oprot_.writeMessageBegin(new TMessage("emailNote", TMessageType.CALL, ++seqid_));
  3052. emailNote_args args = new emailNote_args();
  3053. args.setAuthenticationToken(authenticationToken);
  3054. args.setParameters(parameters);
  3055. args.write(oprot_);
  3056. oprot_.writeMessageEnd();
  3057. oprot_.getTransport().flush();
  3058. }
  3059. public void recv_emailNote() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  3060. {
  3061. TMessage msg = iprot_.readMessageBegin();
  3062. if (msg.type == TMessageType.EXCEPTION) {
  3063. TApplicationException x = TApplicationException.read(iprot_);
  3064. iprot_.readMessageEnd();
  3065. throw x;
  3066. }
  3067. if (msg.seqid != seqid_) {
  3068. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "emailNote failed: out of sequence response");
  3069. }
  3070. emailNote_result result = new emailNote_result();
  3071. result.read(iprot_);
  3072. iprot_.readMessageEnd();
  3073. if (result.userException != null) {
  3074. throw result.userException;
  3075. }
  3076. if (result.notFoundException != null) {
  3077. throw result.notFoundException;
  3078. }
  3079. if (result.systemException != null) {
  3080. throw result.systemException;
  3081. }
  3082. return;
  3083. }
  3084. public String shareNote(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  3085. {
  3086. send_shareNote(authenticationToken, guid);
  3087. return recv_shareNote();
  3088. }
  3089. public void send_shareNote(String authenticationToken, String guid) throws TException
  3090. {
  3091. oprot_.writeMessageBegin(new TMessage("shareNote", TMessageType.CALL, ++seqid_));
  3092. shareNote_args args = new shareNote_args();
  3093. args.setAuthenticationToken(authenticationToken);
  3094. args.setGuid(guid);
  3095. args.write(oprot_);
  3096. oprot_.writeMessageEnd();
  3097. oprot_.getTransport().flush();
  3098. }
  3099. public String recv_shareNote() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  3100. {
  3101. TMessage msg = iprot_.readMessageBegin();
  3102. if (msg.type == TMessageType.EXCEPTION) {
  3103. TApplicationException x = TApplicationException.read(iprot_);
  3104. iprot_.readMessageEnd();
  3105. throw x;
  3106. }
  3107. if (msg.seqid != seqid_) {
  3108. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "shareNote failed: out of sequence response");
  3109. }
  3110. shareNote_result result = new shareNote_result();
  3111. result.read(iprot_);
  3112. iprot_.readMessageEnd();
  3113. if (result.isSetSuccess()) {
  3114. return result.success;
  3115. }
  3116. if (result.userException != null) {
  3117. throw result.userException;
  3118. }
  3119. if (result.notFoundException != null) {
  3120. throw result.notFoundException;
  3121. }
  3122. if (result.systemException != null) {
  3123. throw result.systemException;
  3124. }
  3125. throw new TApplicationException(TApplicationException.MISSING_RESULT, "shareNote failed: unknown result");
  3126. }
  3127. public void stopSharingNote(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  3128. {
  3129. send_stopSharingNote(authenticationToken, guid);
  3130. recv_stopSharingNote();
  3131. }
  3132. public void send_stopSharingNote(String authenticationToken, String guid) throws TException
  3133. {
  3134. oprot_.writeMessageBegin(new TMessage("stopSharingNote", TMessageType.CALL, ++seqid_));
  3135. stopSharingNote_args args = new stopSharingNote_args();
  3136. args.setAuthenticationToken(authenticationToken);
  3137. args.setGuid(guid);
  3138. args.write(oprot_);
  3139. oprot_.writeMessageEnd();
  3140. oprot_.getTransport().flush();
  3141. }
  3142. public void recv_stopSharingNote() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  3143. {
  3144. TMessage msg = iprot_.readMessageBegin();
  3145. if (msg.type == TMessageType.EXCEPTION) {
  3146. TApplicationException x = TApplicationException.read(iprot_);
  3147. iprot_.readMessageEnd();
  3148. throw x;
  3149. }
  3150. if (msg.seqid != seqid_) {
  3151. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "stopSharingNote failed: out of sequence response");
  3152. }
  3153. stopSharingNote_result result = new stopSharingNote_result();
  3154. result.read(iprot_);
  3155. iprot_.readMessageEnd();
  3156. if (result.userException != null) {
  3157. throw result.userException;
  3158. }
  3159. if (result.notFoundException != null) {
  3160. throw result.notFoundException;
  3161. }
  3162. if (result.systemException != null) {
  3163. throw result.systemException;
  3164. }
  3165. return;
  3166. }
  3167. public com.evernote.edam.userstore.AuthenticationResult authenticateToSharedNote(String guid, String noteKey, String authenticationToken) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  3168. {
  3169. send_authenticateToSharedNote(guid, noteKey, authenticationToken);
  3170. return recv_authenticateToSharedNote();
  3171. }
  3172. public void send_authenticateToSharedNote(String guid, String noteKey, String authenticationToken) throws TException
  3173. {
  3174. oprot_.writeMessageBegin(new TMessage("authenticateToSharedNote", TMessageType.CALL, ++seqid_));
  3175. authenticateToSharedNote_args args = new authenticateToSharedNote_args();
  3176. args.setGuid(guid);
  3177. args.setNoteKey(noteKey);
  3178. args.setAuthenticationToken(authenticationToken);
  3179. args.write(oprot_);
  3180. oprot_.writeMessageEnd();
  3181. oprot_.getTransport().flush();
  3182. }
  3183. public com.evernote.edam.userstore.AuthenticationResult recv_authenticateToSharedNote() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMNotFoundException, com.evernote.edam.error.EDAMSystemException, TException
  3184. {
  3185. TMessage msg = iprot_.readMessageBegin();
  3186. if (msg.type == TMessageType.EXCEPTION) {
  3187. TApplicationException x = TApplicationException.read(iprot_);
  3188. iprot_.readMessageEnd();
  3189. throw x;
  3190. }
  3191. if (msg.seqid != seqid_) {
  3192. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "authenticateToSharedNote failed: out of sequence response");
  3193. }
  3194. authenticateToSharedNote_result result = new authenticateToSharedNote_result();
  3195. result.read(iprot_);
  3196. iprot_.readMessageEnd();
  3197. if (result.isSetSuccess()) {
  3198. return result.success;
  3199. }
  3200. if (result.userException != null) {
  3201. throw result.userException;
  3202. }
  3203. if (result.notFoundException != null) {
  3204. throw result.notFoundException;
  3205. }
  3206. if (result.systemException != null) {
  3207. throw result.systemException;
  3208. }
  3209. throw new TApplicationException(TApplicationException.MISSING_RESULT, "authenticateToSharedNote failed: unknown result");
  3210. }
  3211. public RelatedResult findRelated(String authenticationToken, RelatedQuery query, RelatedResultSpec resultSpec) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  3212. {
  3213. send_findRelated(authenticationToken, query, resultSpec);
  3214. return recv_findRelated();
  3215. }
  3216. public void send_findRelated(String authenticationToken, RelatedQuery query, RelatedResultSpec resultSpec) throws TException
  3217. {
  3218. oprot_.writeMessageBegin(new TMessage("findRelated", TMessageType.CALL, ++seqid_));
  3219. findRelated_args args = new findRelated_args();
  3220. args.setAuthenticationToken(authenticationToken);
  3221. args.setQuery(query);
  3222. args.setResultSpec(resultSpec);
  3223. args.write(oprot_);
  3224. oprot_.writeMessageEnd();
  3225. oprot_.getTransport().flush();
  3226. }
  3227. public RelatedResult recv_findRelated() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
  3228. {
  3229. TMessage msg = iprot_.readMessageBegin();
  3230. if (msg.type == TMessageType.EXCEPTION) {
  3231. TApplicationException x = TApplicationException.read(iprot_);
  3232. iprot_.readMessageEnd();
  3233. throw x;
  3234. }
  3235. if (msg.seqid != seqid_) {
  3236. throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "findRelated failed: out of sequence response");
  3237. }
  3238. findRelated_result result = new findRelated_result();
  3239. result.read(iprot_);
  3240. iprot_.readMessageEnd();
  3241. if (result.isSetSuccess()) {
  3242. return result.success;
  3243. }
  3244. if (result.userException != null) {
  3245. throw result.userException;
  3246. }
  3247. if (result.systemException != null) {
  3248. throw result.systemException;
  3249. }
  3250. if (result.notFoundException != null) {
  3251. throw result.notFoundException;
  3252. }
  3253. throw new TApplicationException(TApplicationException.MISSING_RESULT, "findRelated failed: unknown result");
  3254. }
  3255. }
  3256. private static class getSyncState_args implements TBase<getSyncState_args>, java.io.Serializable, Cloneable {
  3257. private static final TStruct STRUCT_DESC = new TStruct("getSyncState_args");
  3258. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  3259. private String authenticationToken;
  3260. // isset id assignments
  3261. public getSyncState_args() {
  3262. }
  3263. /**
  3264. * Performs a deep copy on <i>other</i>.
  3265. */
  3266. public getSyncState_args(getSyncState_args other) {
  3267. if (other.isSetAuthenticationToken()) {
  3268. this.authenticationToken = other.authenticationToken;
  3269. }
  3270. }
  3271. public getSyncState_args deepCopy() {
  3272. return new getSyncState_args(this);
  3273. }
  3274. public void clear() {
  3275. this.authenticationToken = null;
  3276. }
  3277. public void setAuthenticationToken(String authenticationToken) {
  3278. this.authenticationToken = authenticationToken;
  3279. }
  3280. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  3281. public boolean isSetAuthenticationToken() {
  3282. return this.authenticationToken != null;
  3283. }
  3284. public int compareTo(getSyncState_args other) {
  3285. if (!getClass().equals(other.getClass())) {
  3286. return getClass().getName().compareTo(other.getClass().getName());
  3287. }
  3288. int lastComparison = 0;
  3289. getSyncState_args typedOther = (getSyncState_args)other;
  3290. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  3291. if (lastComparison != 0) {
  3292. return lastComparison;
  3293. }
  3294. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  3295. if (lastComparison != 0) {
  3296. return lastComparison;
  3297. }
  3298. }
  3299. return 0;
  3300. }
  3301. public void read(TProtocol iprot) throws TException {
  3302. TField field;
  3303. iprot.readStructBegin();
  3304. while (true)
  3305. {
  3306. field = iprot.readFieldBegin();
  3307. if (field.type == TType.STOP) {
  3308. break;
  3309. }
  3310. switch (field.id) {
  3311. case 1: // AUTHENTICATION_TOKEN
  3312. if (field.type == TType.STRING) {
  3313. this.authenticationToken = iprot.readString();
  3314. } else {
  3315. TProtocolUtil.skip(iprot, field.type);
  3316. }
  3317. break;
  3318. default:
  3319. TProtocolUtil.skip(iprot, field.type);
  3320. }
  3321. iprot.readFieldEnd();
  3322. }
  3323. iprot.readStructEnd();
  3324. validate();
  3325. }
  3326. public void write(TProtocol oprot) throws TException {
  3327. validate();
  3328. oprot.writeStructBegin(STRUCT_DESC);
  3329. if (this.authenticationToken != null) {
  3330. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  3331. oprot.writeString(this.authenticationToken);
  3332. oprot.writeFieldEnd();
  3333. }
  3334. oprot.writeFieldStop();
  3335. oprot.writeStructEnd();
  3336. }
  3337. public void validate() throws TException {
  3338. // check for required fields
  3339. }
  3340. }
  3341. private static class getSyncState_result implements TBase<getSyncState_result>, java.io.Serializable, Cloneable {
  3342. private static final TStruct STRUCT_DESC = new TStruct("getSyncState_result");
  3343. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  3344. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  3345. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  3346. private SyncState success;
  3347. private com.evernote.edam.error.EDAMUserException userException;
  3348. private com.evernote.edam.error.EDAMSystemException systemException;
  3349. // isset id assignments
  3350. public getSyncState_result() {
  3351. }
  3352. /**
  3353. * Performs a deep copy on <i>other</i>.
  3354. */
  3355. public getSyncState_result(getSyncState_result other) {
  3356. if (other.isSetSuccess()) {
  3357. this.success = new SyncState(other.success);
  3358. }
  3359. if (other.isSetUserException()) {
  3360. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  3361. }
  3362. if (other.isSetSystemException()) {
  3363. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  3364. }
  3365. }
  3366. public getSyncState_result deepCopy() {
  3367. return new getSyncState_result(this);
  3368. }
  3369. public void clear() {
  3370. this.success = null;
  3371. this.userException = null;
  3372. this.systemException = null;
  3373. }
  3374. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  3375. public boolean isSetSuccess() {
  3376. return this.success != null;
  3377. }
  3378. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  3379. public boolean isSetUserException() {
  3380. return this.userException != null;
  3381. }
  3382. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  3383. public boolean isSetSystemException() {
  3384. return this.systemException != null;
  3385. }
  3386. public int compareTo(getSyncState_result other) {
  3387. if (!getClass().equals(other.getClass())) {
  3388. return getClass().getName().compareTo(other.getClass().getName());
  3389. }
  3390. int lastComparison = 0;
  3391. getSyncState_result typedOther = (getSyncState_result)other;
  3392. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  3393. if (lastComparison != 0) {
  3394. return lastComparison;
  3395. }
  3396. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  3397. if (lastComparison != 0) {
  3398. return lastComparison;
  3399. }
  3400. }
  3401. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  3402. if (lastComparison != 0) {
  3403. return lastComparison;
  3404. }
  3405. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  3406. if (lastComparison != 0) {
  3407. return lastComparison;
  3408. }
  3409. }
  3410. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  3411. if (lastComparison != 0) {
  3412. return lastComparison;
  3413. }
  3414. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  3415. if (lastComparison != 0) {
  3416. return lastComparison;
  3417. }
  3418. }
  3419. return 0;
  3420. }
  3421. public void read(TProtocol iprot) throws TException {
  3422. TField field;
  3423. iprot.readStructBegin();
  3424. while (true)
  3425. {
  3426. field = iprot.readFieldBegin();
  3427. if (field.type == TType.STOP) {
  3428. break;
  3429. }
  3430. switch (field.id) {
  3431. case 0: // SUCCESS
  3432. if (field.type == TType.STRUCT) {
  3433. this.success = new SyncState();
  3434. this.success.read(iprot);
  3435. } else {
  3436. TProtocolUtil.skip(iprot, field.type);
  3437. }
  3438. break;
  3439. case 1: // USER_EXCEPTION
  3440. if (field.type == TType.STRUCT) {
  3441. this.userException = new com.evernote.edam.error.EDAMUserException();
  3442. this.userException.read(iprot);
  3443. } else {
  3444. TProtocolUtil.skip(iprot, field.type);
  3445. }
  3446. break;
  3447. case 2: // SYSTEM_EXCEPTION
  3448. if (field.type == TType.STRUCT) {
  3449. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  3450. this.systemException.read(iprot);
  3451. } else {
  3452. TProtocolUtil.skip(iprot, field.type);
  3453. }
  3454. break;
  3455. default:
  3456. TProtocolUtil.skip(iprot, field.type);
  3457. }
  3458. iprot.readFieldEnd();
  3459. }
  3460. iprot.readStructEnd();
  3461. validate();
  3462. }
  3463. public void write(TProtocol oprot) throws TException {
  3464. oprot.writeStructBegin(STRUCT_DESC);
  3465. if (this.isSetSuccess()) {
  3466. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  3467. this.success.write(oprot);
  3468. oprot.writeFieldEnd();
  3469. } else if (this.isSetUserException()) {
  3470. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  3471. this.userException.write(oprot);
  3472. oprot.writeFieldEnd();
  3473. } else if (this.isSetSystemException()) {
  3474. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  3475. this.systemException.write(oprot);
  3476. oprot.writeFieldEnd();
  3477. }
  3478. oprot.writeFieldStop();
  3479. oprot.writeStructEnd();
  3480. }
  3481. public void validate() throws TException {
  3482. // check for required fields
  3483. }
  3484. }
  3485. private static class getSyncStateWithMetrics_args implements TBase<getSyncStateWithMetrics_args>, java.io.Serializable, Cloneable {
  3486. private static final TStruct STRUCT_DESC = new TStruct("getSyncStateWithMetrics_args");
  3487. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  3488. private static final TField CLIENT_METRICS_FIELD_DESC = new TField("clientMetrics", TType.STRUCT, (short)2);
  3489. private String authenticationToken;
  3490. private ClientUsageMetrics clientMetrics;
  3491. // isset id assignments
  3492. public getSyncStateWithMetrics_args() {
  3493. }
  3494. /**
  3495. * Performs a deep copy on <i>other</i>.
  3496. */
  3497. public getSyncStateWithMetrics_args(getSyncStateWithMetrics_args other) {
  3498. if (other.isSetAuthenticationToken()) {
  3499. this.authenticationToken = other.authenticationToken;
  3500. }
  3501. if (other.isSetClientMetrics()) {
  3502. this.clientMetrics = new ClientUsageMetrics(other.clientMetrics);
  3503. }
  3504. }
  3505. public getSyncStateWithMetrics_args deepCopy() {
  3506. return new getSyncStateWithMetrics_args(this);
  3507. }
  3508. public void clear() {
  3509. this.authenticationToken = null;
  3510. this.clientMetrics = null;
  3511. }
  3512. public void setAuthenticationToken(String authenticationToken) {
  3513. this.authenticationToken = authenticationToken;
  3514. }
  3515. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  3516. public boolean isSetAuthenticationToken() {
  3517. return this.authenticationToken != null;
  3518. }
  3519. public void setClientMetrics(ClientUsageMetrics clientMetrics) {
  3520. this.clientMetrics = clientMetrics;
  3521. }
  3522. /** Returns true if field clientMetrics is set (has been asigned a value) and false otherwise */
  3523. public boolean isSetClientMetrics() {
  3524. return this.clientMetrics != null;
  3525. }
  3526. public int compareTo(getSyncStateWithMetrics_args other) {
  3527. if (!getClass().equals(other.getClass())) {
  3528. return getClass().getName().compareTo(other.getClass().getName());
  3529. }
  3530. int lastComparison = 0;
  3531. getSyncStateWithMetrics_args typedOther = (getSyncStateWithMetrics_args)other;
  3532. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  3533. if (lastComparison != 0) {
  3534. return lastComparison;
  3535. }
  3536. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  3537. if (lastComparison != 0) {
  3538. return lastComparison;
  3539. }
  3540. }
  3541. lastComparison = Boolean.valueOf(isSetClientMetrics()).compareTo(typedOther.isSetClientMetrics());
  3542. if (lastComparison != 0) {
  3543. return lastComparison;
  3544. }
  3545. if (isSetClientMetrics()) { lastComparison = TBaseHelper.compareTo(this.clientMetrics, typedOther.clientMetrics);
  3546. if (lastComparison != 0) {
  3547. return lastComparison;
  3548. }
  3549. }
  3550. return 0;
  3551. }
  3552. public void read(TProtocol iprot) throws TException {
  3553. TField field;
  3554. iprot.readStructBegin();
  3555. while (true)
  3556. {
  3557. field = iprot.readFieldBegin();
  3558. if (field.type == TType.STOP) {
  3559. break;
  3560. }
  3561. switch (field.id) {
  3562. case 1: // AUTHENTICATION_TOKEN
  3563. if (field.type == TType.STRING) {
  3564. this.authenticationToken = iprot.readString();
  3565. } else {
  3566. TProtocolUtil.skip(iprot, field.type);
  3567. }
  3568. break;
  3569. case 2: // CLIENT_METRICS
  3570. if (field.type == TType.STRUCT) {
  3571. this.clientMetrics = new ClientUsageMetrics();
  3572. this.clientMetrics.read(iprot);
  3573. } else {
  3574. TProtocolUtil.skip(iprot, field.type);
  3575. }
  3576. break;
  3577. default:
  3578. TProtocolUtil.skip(iprot, field.type);
  3579. }
  3580. iprot.readFieldEnd();
  3581. }
  3582. iprot.readStructEnd();
  3583. validate();
  3584. }
  3585. public void write(TProtocol oprot) throws TException {
  3586. validate();
  3587. oprot.writeStructBegin(STRUCT_DESC);
  3588. if (this.authenticationToken != null) {
  3589. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  3590. oprot.writeString(this.authenticationToken);
  3591. oprot.writeFieldEnd();
  3592. }
  3593. if (this.clientMetrics != null) {
  3594. oprot.writeFieldBegin(CLIENT_METRICS_FIELD_DESC);
  3595. this.clientMetrics.write(oprot);
  3596. oprot.writeFieldEnd();
  3597. }
  3598. oprot.writeFieldStop();
  3599. oprot.writeStructEnd();
  3600. }
  3601. public void validate() throws TException {
  3602. // check for required fields
  3603. }
  3604. }
  3605. private static class getSyncStateWithMetrics_result implements TBase<getSyncStateWithMetrics_result>, java.io.Serializable, Cloneable {
  3606. private static final TStruct STRUCT_DESC = new TStruct("getSyncStateWithMetrics_result");
  3607. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  3608. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  3609. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  3610. private SyncState success;
  3611. private com.evernote.edam.error.EDAMUserException userException;
  3612. private com.evernote.edam.error.EDAMSystemException systemException;
  3613. // isset id assignments
  3614. public getSyncStateWithMetrics_result() {
  3615. }
  3616. /**
  3617. * Performs a deep copy on <i>other</i>.
  3618. */
  3619. public getSyncStateWithMetrics_result(getSyncStateWithMetrics_result other) {
  3620. if (other.isSetSuccess()) {
  3621. this.success = new SyncState(other.success);
  3622. }
  3623. if (other.isSetUserException()) {
  3624. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  3625. }
  3626. if (other.isSetSystemException()) {
  3627. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  3628. }
  3629. }
  3630. public getSyncStateWithMetrics_result deepCopy() {
  3631. return new getSyncStateWithMetrics_result(this);
  3632. }
  3633. public void clear() {
  3634. this.success = null;
  3635. this.userException = null;
  3636. this.systemException = null;
  3637. }
  3638. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  3639. public boolean isSetSuccess() {
  3640. return this.success != null;
  3641. }
  3642. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  3643. public boolean isSetUserException() {
  3644. return this.userException != null;
  3645. }
  3646. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  3647. public boolean isSetSystemException() {
  3648. return this.systemException != null;
  3649. }
  3650. public int compareTo(getSyncStateWithMetrics_result other) {
  3651. if (!getClass().equals(other.getClass())) {
  3652. return getClass().getName().compareTo(other.getClass().getName());
  3653. }
  3654. int lastComparison = 0;
  3655. getSyncStateWithMetrics_result typedOther = (getSyncStateWithMetrics_result)other;
  3656. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  3657. if (lastComparison != 0) {
  3658. return lastComparison;
  3659. }
  3660. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  3661. if (lastComparison != 0) {
  3662. return lastComparison;
  3663. }
  3664. }
  3665. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  3666. if (lastComparison != 0) {
  3667. return lastComparison;
  3668. }
  3669. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  3670. if (lastComparison != 0) {
  3671. return lastComparison;
  3672. }
  3673. }
  3674. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  3675. if (lastComparison != 0) {
  3676. return lastComparison;
  3677. }
  3678. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  3679. if (lastComparison != 0) {
  3680. return lastComparison;
  3681. }
  3682. }
  3683. return 0;
  3684. }
  3685. public void read(TProtocol iprot) throws TException {
  3686. TField field;
  3687. iprot.readStructBegin();
  3688. while (true)
  3689. {
  3690. field = iprot.readFieldBegin();
  3691. if (field.type == TType.STOP) {
  3692. break;
  3693. }
  3694. switch (field.id) {
  3695. case 0: // SUCCESS
  3696. if (field.type == TType.STRUCT) {
  3697. this.success = new SyncState();
  3698. this.success.read(iprot);
  3699. } else {
  3700. TProtocolUtil.skip(iprot, field.type);
  3701. }
  3702. break;
  3703. case 1: // USER_EXCEPTION
  3704. if (field.type == TType.STRUCT) {
  3705. this.userException = new com.evernote.edam.error.EDAMUserException();
  3706. this.userException.read(iprot);
  3707. } else {
  3708. TProtocolUtil.skip(iprot, field.type);
  3709. }
  3710. break;
  3711. case 2: // SYSTEM_EXCEPTION
  3712. if (field.type == TType.STRUCT) {
  3713. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  3714. this.systemException.read(iprot);
  3715. } else {
  3716. TProtocolUtil.skip(iprot, field.type);
  3717. }
  3718. break;
  3719. default:
  3720. TProtocolUtil.skip(iprot, field.type);
  3721. }
  3722. iprot.readFieldEnd();
  3723. }
  3724. iprot.readStructEnd();
  3725. validate();
  3726. }
  3727. public void write(TProtocol oprot) throws TException {
  3728. oprot.writeStructBegin(STRUCT_DESC);
  3729. if (this.isSetSuccess()) {
  3730. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  3731. this.success.write(oprot);
  3732. oprot.writeFieldEnd();
  3733. } else if (this.isSetUserException()) {
  3734. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  3735. this.userException.write(oprot);
  3736. oprot.writeFieldEnd();
  3737. } else if (this.isSetSystemException()) {
  3738. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  3739. this.systemException.write(oprot);
  3740. oprot.writeFieldEnd();
  3741. }
  3742. oprot.writeFieldStop();
  3743. oprot.writeStructEnd();
  3744. }
  3745. public void validate() throws TException {
  3746. // check for required fields
  3747. }
  3748. }
  3749. private static class getSyncChunk_args implements TBase<getSyncChunk_args>, java.io.Serializable, Cloneable {
  3750. private static final TStruct STRUCT_DESC = new TStruct("getSyncChunk_args");
  3751. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  3752. private static final TField AFTER_USN_FIELD_DESC = new TField("afterUSN", TType.I32, (short)2);
  3753. private static final TField MAX_ENTRIES_FIELD_DESC = new TField("maxEntries", TType.I32, (short)3);
  3754. private static final TField FULL_SYNC_ONLY_FIELD_DESC = new TField("fullSyncOnly", TType.BOOL, (short)4);
  3755. private String authenticationToken;
  3756. private int afterUSN;
  3757. private int maxEntries;
  3758. private boolean fullSyncOnly;
  3759. // isset id assignments
  3760. private static final int __AFTERUSN_ISSET_ID = 0;
  3761. private static final int __MAXENTRIES_ISSET_ID = 1;
  3762. private static final int __FULLSYNCONLY_ISSET_ID = 2;
  3763. private boolean[] __isset_vector = new boolean[3];
  3764. public getSyncChunk_args() {
  3765. }
  3766. /**
  3767. * Performs a deep copy on <i>other</i>.
  3768. */
  3769. public getSyncChunk_args(getSyncChunk_args other) {
  3770. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  3771. if (other.isSetAuthenticationToken()) {
  3772. this.authenticationToken = other.authenticationToken;
  3773. }
  3774. this.afterUSN = other.afterUSN;
  3775. this.maxEntries = other.maxEntries;
  3776. this.fullSyncOnly = other.fullSyncOnly;
  3777. }
  3778. public getSyncChunk_args deepCopy() {
  3779. return new getSyncChunk_args(this);
  3780. }
  3781. public void clear() {
  3782. this.authenticationToken = null;
  3783. setAfterUSNIsSet(false);
  3784. this.afterUSN = 0;
  3785. setMaxEntriesIsSet(false);
  3786. this.maxEntries = 0;
  3787. setFullSyncOnlyIsSet(false);
  3788. this.fullSyncOnly = false;
  3789. }
  3790. public void setAuthenticationToken(String authenticationToken) {
  3791. this.authenticationToken = authenticationToken;
  3792. }
  3793. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  3794. public boolean isSetAuthenticationToken() {
  3795. return this.authenticationToken != null;
  3796. }
  3797. public void setAfterUSN(int afterUSN) {
  3798. this.afterUSN = afterUSN;
  3799. setAfterUSNIsSet(true);
  3800. }
  3801. /** Returns true if field afterUSN is set (has been asigned a value) and false otherwise */
  3802. public boolean isSetAfterUSN() {
  3803. return __isset_vector[__AFTERUSN_ISSET_ID];
  3804. }
  3805. public void setAfterUSNIsSet(boolean value) {
  3806. __isset_vector[__AFTERUSN_ISSET_ID] = value;
  3807. }
  3808. public void setMaxEntries(int maxEntries) {
  3809. this.maxEntries = maxEntries;
  3810. setMaxEntriesIsSet(true);
  3811. }
  3812. /** Returns true if field maxEntries is set (has been asigned a value) and false otherwise */
  3813. public boolean isSetMaxEntries() {
  3814. return __isset_vector[__MAXENTRIES_ISSET_ID];
  3815. }
  3816. public void setMaxEntriesIsSet(boolean value) {
  3817. __isset_vector[__MAXENTRIES_ISSET_ID] = value;
  3818. }
  3819. public void setFullSyncOnly(boolean fullSyncOnly) {
  3820. this.fullSyncOnly = fullSyncOnly;
  3821. setFullSyncOnlyIsSet(true);
  3822. }
  3823. /** Returns true if field fullSyncOnly is set (has been asigned a value) and false otherwise */
  3824. public boolean isSetFullSyncOnly() {
  3825. return __isset_vector[__FULLSYNCONLY_ISSET_ID];
  3826. }
  3827. public void setFullSyncOnlyIsSet(boolean value) {
  3828. __isset_vector[__FULLSYNCONLY_ISSET_ID] = value;
  3829. }
  3830. public int compareTo(getSyncChunk_args other) {
  3831. if (!getClass().equals(other.getClass())) {
  3832. return getClass().getName().compareTo(other.getClass().getName());
  3833. }
  3834. int lastComparison = 0;
  3835. getSyncChunk_args typedOther = (getSyncChunk_args)other;
  3836. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  3837. if (lastComparison != 0) {
  3838. return lastComparison;
  3839. }
  3840. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  3841. if (lastComparison != 0) {
  3842. return lastComparison;
  3843. }
  3844. }
  3845. lastComparison = Boolean.valueOf(isSetAfterUSN()).compareTo(typedOther.isSetAfterUSN());
  3846. if (lastComparison != 0) {
  3847. return lastComparison;
  3848. }
  3849. if (isSetAfterUSN()) { lastComparison = TBaseHelper.compareTo(this.afterUSN, typedOther.afterUSN);
  3850. if (lastComparison != 0) {
  3851. return lastComparison;
  3852. }
  3853. }
  3854. lastComparison = Boolean.valueOf(isSetMaxEntries()).compareTo(typedOther.isSetMaxEntries());
  3855. if (lastComparison != 0) {
  3856. return lastComparison;
  3857. }
  3858. if (isSetMaxEntries()) { lastComparison = TBaseHelper.compareTo(this.maxEntries, typedOther.maxEntries);
  3859. if (lastComparison != 0) {
  3860. return lastComparison;
  3861. }
  3862. }
  3863. lastComparison = Boolean.valueOf(isSetFullSyncOnly()).compareTo(typedOther.isSetFullSyncOnly());
  3864. if (lastComparison != 0) {
  3865. return lastComparison;
  3866. }
  3867. if (isSetFullSyncOnly()) { lastComparison = TBaseHelper.compareTo(this.fullSyncOnly, typedOther.fullSyncOnly);
  3868. if (lastComparison != 0) {
  3869. return lastComparison;
  3870. }
  3871. }
  3872. return 0;
  3873. }
  3874. public void read(TProtocol iprot) throws TException {
  3875. TField field;
  3876. iprot.readStructBegin();
  3877. while (true)
  3878. {
  3879. field = iprot.readFieldBegin();
  3880. if (field.type == TType.STOP) {
  3881. break;
  3882. }
  3883. switch (field.id) {
  3884. case 1: // AUTHENTICATION_TOKEN
  3885. if (field.type == TType.STRING) {
  3886. this.authenticationToken = iprot.readString();
  3887. } else {
  3888. TProtocolUtil.skip(iprot, field.type);
  3889. }
  3890. break;
  3891. case 2: // AFTER_USN
  3892. if (field.type == TType.I32) {
  3893. this.afterUSN = iprot.readI32();
  3894. setAfterUSNIsSet(true);
  3895. } else {
  3896. TProtocolUtil.skip(iprot, field.type);
  3897. }
  3898. break;
  3899. case 3: // MAX_ENTRIES
  3900. if (field.type == TType.I32) {
  3901. this.maxEntries = iprot.readI32();
  3902. setMaxEntriesIsSet(true);
  3903. } else {
  3904. TProtocolUtil.skip(iprot, field.type);
  3905. }
  3906. break;
  3907. case 4: // FULL_SYNC_ONLY
  3908. if (field.type == TType.BOOL) {
  3909. this.fullSyncOnly = iprot.readBool();
  3910. setFullSyncOnlyIsSet(true);
  3911. } else {
  3912. TProtocolUtil.skip(iprot, field.type);
  3913. }
  3914. break;
  3915. default:
  3916. TProtocolUtil.skip(iprot, field.type);
  3917. }
  3918. iprot.readFieldEnd();
  3919. }
  3920. iprot.readStructEnd();
  3921. validate();
  3922. }
  3923. public void write(TProtocol oprot) throws TException {
  3924. validate();
  3925. oprot.writeStructBegin(STRUCT_DESC);
  3926. if (this.authenticationToken != null) {
  3927. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  3928. oprot.writeString(this.authenticationToken);
  3929. oprot.writeFieldEnd();
  3930. }
  3931. oprot.writeFieldBegin(AFTER_USN_FIELD_DESC);
  3932. oprot.writeI32(this.afterUSN);
  3933. oprot.writeFieldEnd();
  3934. oprot.writeFieldBegin(MAX_ENTRIES_FIELD_DESC);
  3935. oprot.writeI32(this.maxEntries);
  3936. oprot.writeFieldEnd();
  3937. oprot.writeFieldBegin(FULL_SYNC_ONLY_FIELD_DESC);
  3938. oprot.writeBool(this.fullSyncOnly);
  3939. oprot.writeFieldEnd();
  3940. oprot.writeFieldStop();
  3941. oprot.writeStructEnd();
  3942. }
  3943. public void validate() throws TException {
  3944. // check for required fields
  3945. }
  3946. }
  3947. private static class getSyncChunk_result implements TBase<getSyncChunk_result>, java.io.Serializable, Cloneable {
  3948. private static final TStruct STRUCT_DESC = new TStruct("getSyncChunk_result");
  3949. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  3950. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  3951. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  3952. private SyncChunk success;
  3953. private com.evernote.edam.error.EDAMUserException userException;
  3954. private com.evernote.edam.error.EDAMSystemException systemException;
  3955. // isset id assignments
  3956. public getSyncChunk_result() {
  3957. }
  3958. /**
  3959. * Performs a deep copy on <i>other</i>.
  3960. */
  3961. public getSyncChunk_result(getSyncChunk_result other) {
  3962. if (other.isSetSuccess()) {
  3963. this.success = new SyncChunk(other.success);
  3964. }
  3965. if (other.isSetUserException()) {
  3966. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  3967. }
  3968. if (other.isSetSystemException()) {
  3969. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  3970. }
  3971. }
  3972. public getSyncChunk_result deepCopy() {
  3973. return new getSyncChunk_result(this);
  3974. }
  3975. public void clear() {
  3976. this.success = null;
  3977. this.userException = null;
  3978. this.systemException = null;
  3979. }
  3980. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  3981. public boolean isSetSuccess() {
  3982. return this.success != null;
  3983. }
  3984. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  3985. public boolean isSetUserException() {
  3986. return this.userException != null;
  3987. }
  3988. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  3989. public boolean isSetSystemException() {
  3990. return this.systemException != null;
  3991. }
  3992. public int compareTo(getSyncChunk_result other) {
  3993. if (!getClass().equals(other.getClass())) {
  3994. return getClass().getName().compareTo(other.getClass().getName());
  3995. }
  3996. int lastComparison = 0;
  3997. getSyncChunk_result typedOther = (getSyncChunk_result)other;
  3998. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  3999. if (lastComparison != 0) {
  4000. return lastComparison;
  4001. }
  4002. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  4003. if (lastComparison != 0) {
  4004. return lastComparison;
  4005. }
  4006. }
  4007. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  4008. if (lastComparison != 0) {
  4009. return lastComparison;
  4010. }
  4011. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  4012. if (lastComparison != 0) {
  4013. return lastComparison;
  4014. }
  4015. }
  4016. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  4017. if (lastComparison != 0) {
  4018. return lastComparison;
  4019. }
  4020. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  4021. if (lastComparison != 0) {
  4022. return lastComparison;
  4023. }
  4024. }
  4025. return 0;
  4026. }
  4027. public void read(TProtocol iprot) throws TException {
  4028. TField field;
  4029. iprot.readStructBegin();
  4030. while (true)
  4031. {
  4032. field = iprot.readFieldBegin();
  4033. if (field.type == TType.STOP) {
  4034. break;
  4035. }
  4036. switch (field.id) {
  4037. case 0: // SUCCESS
  4038. if (field.type == TType.STRUCT) {
  4039. this.success = new SyncChunk();
  4040. this.success.read(iprot);
  4041. } else {
  4042. TProtocolUtil.skip(iprot, field.type);
  4043. }
  4044. break;
  4045. case 1: // USER_EXCEPTION
  4046. if (field.type == TType.STRUCT) {
  4047. this.userException = new com.evernote.edam.error.EDAMUserException();
  4048. this.userException.read(iprot);
  4049. } else {
  4050. TProtocolUtil.skip(iprot, field.type);
  4051. }
  4052. break;
  4053. case 2: // SYSTEM_EXCEPTION
  4054. if (field.type == TType.STRUCT) {
  4055. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  4056. this.systemException.read(iprot);
  4057. } else {
  4058. TProtocolUtil.skip(iprot, field.type);
  4059. }
  4060. break;
  4061. default:
  4062. TProtocolUtil.skip(iprot, field.type);
  4063. }
  4064. iprot.readFieldEnd();
  4065. }
  4066. iprot.readStructEnd();
  4067. validate();
  4068. }
  4069. public void write(TProtocol oprot) throws TException {
  4070. oprot.writeStructBegin(STRUCT_DESC);
  4071. if (this.isSetSuccess()) {
  4072. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  4073. this.success.write(oprot);
  4074. oprot.writeFieldEnd();
  4075. } else if (this.isSetUserException()) {
  4076. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  4077. this.userException.write(oprot);
  4078. oprot.writeFieldEnd();
  4079. } else if (this.isSetSystemException()) {
  4080. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  4081. this.systemException.write(oprot);
  4082. oprot.writeFieldEnd();
  4083. }
  4084. oprot.writeFieldStop();
  4085. oprot.writeStructEnd();
  4086. }
  4087. public void validate() throws TException {
  4088. // check for required fields
  4089. }
  4090. }
  4091. private static class getFilteredSyncChunk_args implements TBase<getFilteredSyncChunk_args>, java.io.Serializable, Cloneable {
  4092. private static final TStruct STRUCT_DESC = new TStruct("getFilteredSyncChunk_args");
  4093. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  4094. private static final TField AFTER_USN_FIELD_DESC = new TField("afterUSN", TType.I32, (short)2);
  4095. private static final TField MAX_ENTRIES_FIELD_DESC = new TField("maxEntries", TType.I32, (short)3);
  4096. private static final TField FILTER_FIELD_DESC = new TField("filter", TType.STRUCT, (short)4);
  4097. private String authenticationToken;
  4098. private int afterUSN;
  4099. private int maxEntries;
  4100. private SyncChunkFilter filter;
  4101. // isset id assignments
  4102. private static final int __AFTERUSN_ISSET_ID = 0;
  4103. private static final int __MAXENTRIES_ISSET_ID = 1;
  4104. private boolean[] __isset_vector = new boolean[2];
  4105. public getFilteredSyncChunk_args() {
  4106. }
  4107. /**
  4108. * Performs a deep copy on <i>other</i>.
  4109. */
  4110. public getFilteredSyncChunk_args(getFilteredSyncChunk_args other) {
  4111. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  4112. if (other.isSetAuthenticationToken()) {
  4113. this.authenticationToken = other.authenticationToken;
  4114. }
  4115. this.afterUSN = other.afterUSN;
  4116. this.maxEntries = other.maxEntries;
  4117. if (other.isSetFilter()) {
  4118. this.filter = new SyncChunkFilter(other.filter);
  4119. }
  4120. }
  4121. public getFilteredSyncChunk_args deepCopy() {
  4122. return new getFilteredSyncChunk_args(this);
  4123. }
  4124. public void clear() {
  4125. this.authenticationToken = null;
  4126. setAfterUSNIsSet(false);
  4127. this.afterUSN = 0;
  4128. setMaxEntriesIsSet(false);
  4129. this.maxEntries = 0;
  4130. this.filter = null;
  4131. }
  4132. public void setAuthenticationToken(String authenticationToken) {
  4133. this.authenticationToken = authenticationToken;
  4134. }
  4135. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  4136. public boolean isSetAuthenticationToken() {
  4137. return this.authenticationToken != null;
  4138. }
  4139. public void setAfterUSN(int afterUSN) {
  4140. this.afterUSN = afterUSN;
  4141. setAfterUSNIsSet(true);
  4142. }
  4143. /** Returns true if field afterUSN is set (has been asigned a value) and false otherwise */
  4144. public boolean isSetAfterUSN() {
  4145. return __isset_vector[__AFTERUSN_ISSET_ID];
  4146. }
  4147. public void setAfterUSNIsSet(boolean value) {
  4148. __isset_vector[__AFTERUSN_ISSET_ID] = value;
  4149. }
  4150. public void setMaxEntries(int maxEntries) {
  4151. this.maxEntries = maxEntries;
  4152. setMaxEntriesIsSet(true);
  4153. }
  4154. /** Returns true if field maxEntries is set (has been asigned a value) and false otherwise */
  4155. public boolean isSetMaxEntries() {
  4156. return __isset_vector[__MAXENTRIES_ISSET_ID];
  4157. }
  4158. public void setMaxEntriesIsSet(boolean value) {
  4159. __isset_vector[__MAXENTRIES_ISSET_ID] = value;
  4160. }
  4161. public void setFilter(SyncChunkFilter filter) {
  4162. this.filter = filter;
  4163. }
  4164. /** Returns true if field filter is set (has been asigned a value) and false otherwise */
  4165. public boolean isSetFilter() {
  4166. return this.filter != null;
  4167. }
  4168. public int compareTo(getFilteredSyncChunk_args other) {
  4169. if (!getClass().equals(other.getClass())) {
  4170. return getClass().getName().compareTo(other.getClass().getName());
  4171. }
  4172. int lastComparison = 0;
  4173. getFilteredSyncChunk_args typedOther = (getFilteredSyncChunk_args)other;
  4174. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  4175. if (lastComparison != 0) {
  4176. return lastComparison;
  4177. }
  4178. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  4179. if (lastComparison != 0) {
  4180. return lastComparison;
  4181. }
  4182. }
  4183. lastComparison = Boolean.valueOf(isSetAfterUSN()).compareTo(typedOther.isSetAfterUSN());
  4184. if (lastComparison != 0) {
  4185. return lastComparison;
  4186. }
  4187. if (isSetAfterUSN()) { lastComparison = TBaseHelper.compareTo(this.afterUSN, typedOther.afterUSN);
  4188. if (lastComparison != 0) {
  4189. return lastComparison;
  4190. }
  4191. }
  4192. lastComparison = Boolean.valueOf(isSetMaxEntries()).compareTo(typedOther.isSetMaxEntries());
  4193. if (lastComparison != 0) {
  4194. return lastComparison;
  4195. }
  4196. if (isSetMaxEntries()) { lastComparison = TBaseHelper.compareTo(this.maxEntries, typedOther.maxEntries);
  4197. if (lastComparison != 0) {
  4198. return lastComparison;
  4199. }
  4200. }
  4201. lastComparison = Boolean.valueOf(isSetFilter()).compareTo(typedOther.isSetFilter());
  4202. if (lastComparison != 0) {
  4203. return lastComparison;
  4204. }
  4205. if (isSetFilter()) { lastComparison = TBaseHelper.compareTo(this.filter, typedOther.filter);
  4206. if (lastComparison != 0) {
  4207. return lastComparison;
  4208. }
  4209. }
  4210. return 0;
  4211. }
  4212. public void read(TProtocol iprot) throws TException {
  4213. TField field;
  4214. iprot.readStructBegin();
  4215. while (true)
  4216. {
  4217. field = iprot.readFieldBegin();
  4218. if (field.type == TType.STOP) {
  4219. break;
  4220. }
  4221. switch (field.id) {
  4222. case 1: // AUTHENTICATION_TOKEN
  4223. if (field.type == TType.STRING) {
  4224. this.authenticationToken = iprot.readString();
  4225. } else {
  4226. TProtocolUtil.skip(iprot, field.type);
  4227. }
  4228. break;
  4229. case 2: // AFTER_USN
  4230. if (field.type == TType.I32) {
  4231. this.afterUSN = iprot.readI32();
  4232. setAfterUSNIsSet(true);
  4233. } else {
  4234. TProtocolUtil.skip(iprot, field.type);
  4235. }
  4236. break;
  4237. case 3: // MAX_ENTRIES
  4238. if (field.type == TType.I32) {
  4239. this.maxEntries = iprot.readI32();
  4240. setMaxEntriesIsSet(true);
  4241. } else {
  4242. TProtocolUtil.skip(iprot, field.type);
  4243. }
  4244. break;
  4245. case 4: // FILTER
  4246. if (field.type == TType.STRUCT) {
  4247. this.filter = new SyncChunkFilter();
  4248. this.filter.read(iprot);
  4249. } else {
  4250. TProtocolUtil.skip(iprot, field.type);
  4251. }
  4252. break;
  4253. default:
  4254. TProtocolUtil.skip(iprot, field.type);
  4255. }
  4256. iprot.readFieldEnd();
  4257. }
  4258. iprot.readStructEnd();
  4259. validate();
  4260. }
  4261. public void write(TProtocol oprot) throws TException {
  4262. validate();
  4263. oprot.writeStructBegin(STRUCT_DESC);
  4264. if (this.authenticationToken != null) {
  4265. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  4266. oprot.writeString(this.authenticationToken);
  4267. oprot.writeFieldEnd();
  4268. }
  4269. oprot.writeFieldBegin(AFTER_USN_FIELD_DESC);
  4270. oprot.writeI32(this.afterUSN);
  4271. oprot.writeFieldEnd();
  4272. oprot.writeFieldBegin(MAX_ENTRIES_FIELD_DESC);
  4273. oprot.writeI32(this.maxEntries);
  4274. oprot.writeFieldEnd();
  4275. if (this.filter != null) {
  4276. oprot.writeFieldBegin(FILTER_FIELD_DESC);
  4277. this.filter.write(oprot);
  4278. oprot.writeFieldEnd();
  4279. }
  4280. oprot.writeFieldStop();
  4281. oprot.writeStructEnd();
  4282. }
  4283. public void validate() throws TException {
  4284. // check for required fields
  4285. }
  4286. }
  4287. private static class getFilteredSyncChunk_result implements TBase<getFilteredSyncChunk_result>, java.io.Serializable, Cloneable {
  4288. private static final TStruct STRUCT_DESC = new TStruct("getFilteredSyncChunk_result");
  4289. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  4290. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  4291. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  4292. private SyncChunk success;
  4293. private com.evernote.edam.error.EDAMUserException userException;
  4294. private com.evernote.edam.error.EDAMSystemException systemException;
  4295. // isset id assignments
  4296. public getFilteredSyncChunk_result() {
  4297. }
  4298. /**
  4299. * Performs a deep copy on <i>other</i>.
  4300. */
  4301. public getFilteredSyncChunk_result(getFilteredSyncChunk_result other) {
  4302. if (other.isSetSuccess()) {
  4303. this.success = new SyncChunk(other.success);
  4304. }
  4305. if (other.isSetUserException()) {
  4306. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  4307. }
  4308. if (other.isSetSystemException()) {
  4309. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  4310. }
  4311. }
  4312. public getFilteredSyncChunk_result deepCopy() {
  4313. return new getFilteredSyncChunk_result(this);
  4314. }
  4315. public void clear() {
  4316. this.success = null;
  4317. this.userException = null;
  4318. this.systemException = null;
  4319. }
  4320. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  4321. public boolean isSetSuccess() {
  4322. return this.success != null;
  4323. }
  4324. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  4325. public boolean isSetUserException() {
  4326. return this.userException != null;
  4327. }
  4328. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  4329. public boolean isSetSystemException() {
  4330. return this.systemException != null;
  4331. }
  4332. public int compareTo(getFilteredSyncChunk_result other) {
  4333. if (!getClass().equals(other.getClass())) {
  4334. return getClass().getName().compareTo(other.getClass().getName());
  4335. }
  4336. int lastComparison = 0;
  4337. getFilteredSyncChunk_result typedOther = (getFilteredSyncChunk_result)other;
  4338. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  4339. if (lastComparison != 0) {
  4340. return lastComparison;
  4341. }
  4342. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  4343. if (lastComparison != 0) {
  4344. return lastComparison;
  4345. }
  4346. }
  4347. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  4348. if (lastComparison != 0) {
  4349. return lastComparison;
  4350. }
  4351. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  4352. if (lastComparison != 0) {
  4353. return lastComparison;
  4354. }
  4355. }
  4356. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  4357. if (lastComparison != 0) {
  4358. return lastComparison;
  4359. }
  4360. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  4361. if (lastComparison != 0) {
  4362. return lastComparison;
  4363. }
  4364. }
  4365. return 0;
  4366. }
  4367. public void read(TProtocol iprot) throws TException {
  4368. TField field;
  4369. iprot.readStructBegin();
  4370. while (true)
  4371. {
  4372. field = iprot.readFieldBegin();
  4373. if (field.type == TType.STOP) {
  4374. break;
  4375. }
  4376. switch (field.id) {
  4377. case 0: // SUCCESS
  4378. if (field.type == TType.STRUCT) {
  4379. this.success = new SyncChunk();
  4380. this.success.read(iprot);
  4381. } else {
  4382. TProtocolUtil.skip(iprot, field.type);
  4383. }
  4384. break;
  4385. case 1: // USER_EXCEPTION
  4386. if (field.type == TType.STRUCT) {
  4387. this.userException = new com.evernote.edam.error.EDAMUserException();
  4388. this.userException.read(iprot);
  4389. } else {
  4390. TProtocolUtil.skip(iprot, field.type);
  4391. }
  4392. break;
  4393. case 2: // SYSTEM_EXCEPTION
  4394. if (field.type == TType.STRUCT) {
  4395. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  4396. this.systemException.read(iprot);
  4397. } else {
  4398. TProtocolUtil.skip(iprot, field.type);
  4399. }
  4400. break;
  4401. default:
  4402. TProtocolUtil.skip(iprot, field.type);
  4403. }
  4404. iprot.readFieldEnd();
  4405. }
  4406. iprot.readStructEnd();
  4407. validate();
  4408. }
  4409. public void write(TProtocol oprot) throws TException {
  4410. oprot.writeStructBegin(STRUCT_DESC);
  4411. if (this.isSetSuccess()) {
  4412. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  4413. this.success.write(oprot);
  4414. oprot.writeFieldEnd();
  4415. } else if (this.isSetUserException()) {
  4416. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  4417. this.userException.write(oprot);
  4418. oprot.writeFieldEnd();
  4419. } else if (this.isSetSystemException()) {
  4420. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  4421. this.systemException.write(oprot);
  4422. oprot.writeFieldEnd();
  4423. }
  4424. oprot.writeFieldStop();
  4425. oprot.writeStructEnd();
  4426. }
  4427. public void validate() throws TException {
  4428. // check for required fields
  4429. }
  4430. }
  4431. private static class getLinkedNotebookSyncState_args implements TBase<getLinkedNotebookSyncState_args>, java.io.Serializable, Cloneable {
  4432. private static final TStruct STRUCT_DESC = new TStruct("getLinkedNotebookSyncState_args");
  4433. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  4434. private static final TField LINKED_NOTEBOOK_FIELD_DESC = new TField("linkedNotebook", TType.STRUCT, (short)2);
  4435. private String authenticationToken;
  4436. private com.evernote.edam.type.LinkedNotebook linkedNotebook;
  4437. // isset id assignments
  4438. public getLinkedNotebookSyncState_args() {
  4439. }
  4440. /**
  4441. * Performs a deep copy on <i>other</i>.
  4442. */
  4443. public getLinkedNotebookSyncState_args(getLinkedNotebookSyncState_args other) {
  4444. if (other.isSetAuthenticationToken()) {
  4445. this.authenticationToken = other.authenticationToken;
  4446. }
  4447. if (other.isSetLinkedNotebook()) {
  4448. this.linkedNotebook = new com.evernote.edam.type.LinkedNotebook(other.linkedNotebook);
  4449. }
  4450. }
  4451. public getLinkedNotebookSyncState_args deepCopy() {
  4452. return new getLinkedNotebookSyncState_args(this);
  4453. }
  4454. public void clear() {
  4455. this.authenticationToken = null;
  4456. this.linkedNotebook = null;
  4457. }
  4458. public void setAuthenticationToken(String authenticationToken) {
  4459. this.authenticationToken = authenticationToken;
  4460. }
  4461. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  4462. public boolean isSetAuthenticationToken() {
  4463. return this.authenticationToken != null;
  4464. }
  4465. public void setLinkedNotebook(com.evernote.edam.type.LinkedNotebook linkedNotebook) {
  4466. this.linkedNotebook = linkedNotebook;
  4467. }
  4468. /** Returns true if field linkedNotebook is set (has been asigned a value) and false otherwise */
  4469. public boolean isSetLinkedNotebook() {
  4470. return this.linkedNotebook != null;
  4471. }
  4472. public int compareTo(getLinkedNotebookSyncState_args other) {
  4473. if (!getClass().equals(other.getClass())) {
  4474. return getClass().getName().compareTo(other.getClass().getName());
  4475. }
  4476. int lastComparison = 0;
  4477. getLinkedNotebookSyncState_args typedOther = (getLinkedNotebookSyncState_args)other;
  4478. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  4479. if (lastComparison != 0) {
  4480. return lastComparison;
  4481. }
  4482. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  4483. if (lastComparison != 0) {
  4484. return lastComparison;
  4485. }
  4486. }
  4487. lastComparison = Boolean.valueOf(isSetLinkedNotebook()).compareTo(typedOther.isSetLinkedNotebook());
  4488. if (lastComparison != 0) {
  4489. return lastComparison;
  4490. }
  4491. if (isSetLinkedNotebook()) { lastComparison = TBaseHelper.compareTo(this.linkedNotebook, typedOther.linkedNotebook);
  4492. if (lastComparison != 0) {
  4493. return lastComparison;
  4494. }
  4495. }
  4496. return 0;
  4497. }
  4498. public void read(TProtocol iprot) throws TException {
  4499. TField field;
  4500. iprot.readStructBegin();
  4501. while (true)
  4502. {
  4503. field = iprot.readFieldBegin();
  4504. if (field.type == TType.STOP) {
  4505. break;
  4506. }
  4507. switch (field.id) {
  4508. case 1: // AUTHENTICATION_TOKEN
  4509. if (field.type == TType.STRING) {
  4510. this.authenticationToken = iprot.readString();
  4511. } else {
  4512. TProtocolUtil.skip(iprot, field.type);
  4513. }
  4514. break;
  4515. case 2: // LINKED_NOTEBOOK
  4516. if (field.type == TType.STRUCT) {
  4517. this.linkedNotebook = new com.evernote.edam.type.LinkedNotebook();
  4518. this.linkedNotebook.read(iprot);
  4519. } else {
  4520. TProtocolUtil.skip(iprot, field.type);
  4521. }
  4522. break;
  4523. default:
  4524. TProtocolUtil.skip(iprot, field.type);
  4525. }
  4526. iprot.readFieldEnd();
  4527. }
  4528. iprot.readStructEnd();
  4529. validate();
  4530. }
  4531. public void write(TProtocol oprot) throws TException {
  4532. validate();
  4533. oprot.writeStructBegin(STRUCT_DESC);
  4534. if (this.authenticationToken != null) {
  4535. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  4536. oprot.writeString(this.authenticationToken);
  4537. oprot.writeFieldEnd();
  4538. }
  4539. if (this.linkedNotebook != null) {
  4540. oprot.writeFieldBegin(LINKED_NOTEBOOK_FIELD_DESC);
  4541. this.linkedNotebook.write(oprot);
  4542. oprot.writeFieldEnd();
  4543. }
  4544. oprot.writeFieldStop();
  4545. oprot.writeStructEnd();
  4546. }
  4547. public void validate() throws TException {
  4548. // check for required fields
  4549. }
  4550. }
  4551. private static class getLinkedNotebookSyncState_result implements TBase<getLinkedNotebookSyncState_result>, java.io.Serializable, Cloneable {
  4552. private static final TStruct STRUCT_DESC = new TStruct("getLinkedNotebookSyncState_result");
  4553. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  4554. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  4555. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  4556. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  4557. private SyncState success;
  4558. private com.evernote.edam.error.EDAMUserException userException;
  4559. private com.evernote.edam.error.EDAMSystemException systemException;
  4560. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  4561. // isset id assignments
  4562. public getLinkedNotebookSyncState_result() {
  4563. }
  4564. /**
  4565. * Performs a deep copy on <i>other</i>.
  4566. */
  4567. public getLinkedNotebookSyncState_result(getLinkedNotebookSyncState_result other) {
  4568. if (other.isSetSuccess()) {
  4569. this.success = new SyncState(other.success);
  4570. }
  4571. if (other.isSetUserException()) {
  4572. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  4573. }
  4574. if (other.isSetSystemException()) {
  4575. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  4576. }
  4577. if (other.isSetNotFoundException()) {
  4578. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  4579. }
  4580. }
  4581. public getLinkedNotebookSyncState_result deepCopy() {
  4582. return new getLinkedNotebookSyncState_result(this);
  4583. }
  4584. public void clear() {
  4585. this.success = null;
  4586. this.userException = null;
  4587. this.systemException = null;
  4588. this.notFoundException = null;
  4589. }
  4590. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  4591. public boolean isSetSuccess() {
  4592. return this.success != null;
  4593. }
  4594. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  4595. public boolean isSetUserException() {
  4596. return this.userException != null;
  4597. }
  4598. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  4599. public boolean isSetSystemException() {
  4600. return this.systemException != null;
  4601. }
  4602. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  4603. public boolean isSetNotFoundException() {
  4604. return this.notFoundException != null;
  4605. }
  4606. public int compareTo(getLinkedNotebookSyncState_result other) {
  4607. if (!getClass().equals(other.getClass())) {
  4608. return getClass().getName().compareTo(other.getClass().getName());
  4609. }
  4610. int lastComparison = 0;
  4611. getLinkedNotebookSyncState_result typedOther = (getLinkedNotebookSyncState_result)other;
  4612. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  4613. if (lastComparison != 0) {
  4614. return lastComparison;
  4615. }
  4616. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  4617. if (lastComparison != 0) {
  4618. return lastComparison;
  4619. }
  4620. }
  4621. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  4622. if (lastComparison != 0) {
  4623. return lastComparison;
  4624. }
  4625. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  4626. if (lastComparison != 0) {
  4627. return lastComparison;
  4628. }
  4629. }
  4630. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  4631. if (lastComparison != 0) {
  4632. return lastComparison;
  4633. }
  4634. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  4635. if (lastComparison != 0) {
  4636. return lastComparison;
  4637. }
  4638. }
  4639. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  4640. if (lastComparison != 0) {
  4641. return lastComparison;
  4642. }
  4643. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  4644. if (lastComparison != 0) {
  4645. return lastComparison;
  4646. }
  4647. }
  4648. return 0;
  4649. }
  4650. public void read(TProtocol iprot) throws TException {
  4651. TField field;
  4652. iprot.readStructBegin();
  4653. while (true)
  4654. {
  4655. field = iprot.readFieldBegin();
  4656. if (field.type == TType.STOP) {
  4657. break;
  4658. }
  4659. switch (field.id) {
  4660. case 0: // SUCCESS
  4661. if (field.type == TType.STRUCT) {
  4662. this.success = new SyncState();
  4663. this.success.read(iprot);
  4664. } else {
  4665. TProtocolUtil.skip(iprot, field.type);
  4666. }
  4667. break;
  4668. case 1: // USER_EXCEPTION
  4669. if (field.type == TType.STRUCT) {
  4670. this.userException = new com.evernote.edam.error.EDAMUserException();
  4671. this.userException.read(iprot);
  4672. } else {
  4673. TProtocolUtil.skip(iprot, field.type);
  4674. }
  4675. break;
  4676. case 2: // SYSTEM_EXCEPTION
  4677. if (field.type == TType.STRUCT) {
  4678. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  4679. this.systemException.read(iprot);
  4680. } else {
  4681. TProtocolUtil.skip(iprot, field.type);
  4682. }
  4683. break;
  4684. case 3: // NOT_FOUND_EXCEPTION
  4685. if (field.type == TType.STRUCT) {
  4686. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  4687. this.notFoundException.read(iprot);
  4688. } else {
  4689. TProtocolUtil.skip(iprot, field.type);
  4690. }
  4691. break;
  4692. default:
  4693. TProtocolUtil.skip(iprot, field.type);
  4694. }
  4695. iprot.readFieldEnd();
  4696. }
  4697. iprot.readStructEnd();
  4698. validate();
  4699. }
  4700. public void write(TProtocol oprot) throws TException {
  4701. oprot.writeStructBegin(STRUCT_DESC);
  4702. if (this.isSetSuccess()) {
  4703. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  4704. this.success.write(oprot);
  4705. oprot.writeFieldEnd();
  4706. } else if (this.isSetUserException()) {
  4707. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  4708. this.userException.write(oprot);
  4709. oprot.writeFieldEnd();
  4710. } else if (this.isSetSystemException()) {
  4711. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  4712. this.systemException.write(oprot);
  4713. oprot.writeFieldEnd();
  4714. } else if (this.isSetNotFoundException()) {
  4715. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  4716. this.notFoundException.write(oprot);
  4717. oprot.writeFieldEnd();
  4718. }
  4719. oprot.writeFieldStop();
  4720. oprot.writeStructEnd();
  4721. }
  4722. public void validate() throws TException {
  4723. // check for required fields
  4724. }
  4725. }
  4726. private static class getLinkedNotebookSyncChunk_args implements TBase<getLinkedNotebookSyncChunk_args>, java.io.Serializable, Cloneable {
  4727. private static final TStruct STRUCT_DESC = new TStruct("getLinkedNotebookSyncChunk_args");
  4728. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  4729. private static final TField LINKED_NOTEBOOK_FIELD_DESC = new TField("linkedNotebook", TType.STRUCT, (short)2);
  4730. private static final TField AFTER_USN_FIELD_DESC = new TField("afterUSN", TType.I32, (short)3);
  4731. private static final TField MAX_ENTRIES_FIELD_DESC = new TField("maxEntries", TType.I32, (short)4);
  4732. private static final TField FULL_SYNC_ONLY_FIELD_DESC = new TField("fullSyncOnly", TType.BOOL, (short)5);
  4733. private String authenticationToken;
  4734. private com.evernote.edam.type.LinkedNotebook linkedNotebook;
  4735. private int afterUSN;
  4736. private int maxEntries;
  4737. private boolean fullSyncOnly;
  4738. // isset id assignments
  4739. private static final int __AFTERUSN_ISSET_ID = 0;
  4740. private static final int __MAXENTRIES_ISSET_ID = 1;
  4741. private static final int __FULLSYNCONLY_ISSET_ID = 2;
  4742. private boolean[] __isset_vector = new boolean[3];
  4743. public getLinkedNotebookSyncChunk_args() {
  4744. }
  4745. /**
  4746. * Performs a deep copy on <i>other</i>.
  4747. */
  4748. public getLinkedNotebookSyncChunk_args(getLinkedNotebookSyncChunk_args other) {
  4749. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  4750. if (other.isSetAuthenticationToken()) {
  4751. this.authenticationToken = other.authenticationToken;
  4752. }
  4753. if (other.isSetLinkedNotebook()) {
  4754. this.linkedNotebook = new com.evernote.edam.type.LinkedNotebook(other.linkedNotebook);
  4755. }
  4756. this.afterUSN = other.afterUSN;
  4757. this.maxEntries = other.maxEntries;
  4758. this.fullSyncOnly = other.fullSyncOnly;
  4759. }
  4760. public getLinkedNotebookSyncChunk_args deepCopy() {
  4761. return new getLinkedNotebookSyncChunk_args(this);
  4762. }
  4763. public void clear() {
  4764. this.authenticationToken = null;
  4765. this.linkedNotebook = null;
  4766. setAfterUSNIsSet(false);
  4767. this.afterUSN = 0;
  4768. setMaxEntriesIsSet(false);
  4769. this.maxEntries = 0;
  4770. setFullSyncOnlyIsSet(false);
  4771. this.fullSyncOnly = false;
  4772. }
  4773. public void setAuthenticationToken(String authenticationToken) {
  4774. this.authenticationToken = authenticationToken;
  4775. }
  4776. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  4777. public boolean isSetAuthenticationToken() {
  4778. return this.authenticationToken != null;
  4779. }
  4780. public void setLinkedNotebook(com.evernote.edam.type.LinkedNotebook linkedNotebook) {
  4781. this.linkedNotebook = linkedNotebook;
  4782. }
  4783. /** Returns true if field linkedNotebook is set (has been asigned a value) and false otherwise */
  4784. public boolean isSetLinkedNotebook() {
  4785. return this.linkedNotebook != null;
  4786. }
  4787. public void setAfterUSN(int afterUSN) {
  4788. this.afterUSN = afterUSN;
  4789. setAfterUSNIsSet(true);
  4790. }
  4791. /** Returns true if field afterUSN is set (has been asigned a value) and false otherwise */
  4792. public boolean isSetAfterUSN() {
  4793. return __isset_vector[__AFTERUSN_ISSET_ID];
  4794. }
  4795. public void setAfterUSNIsSet(boolean value) {
  4796. __isset_vector[__AFTERUSN_ISSET_ID] = value;
  4797. }
  4798. public void setMaxEntries(int maxEntries) {
  4799. this.maxEntries = maxEntries;
  4800. setMaxEntriesIsSet(true);
  4801. }
  4802. /** Returns true if field maxEntries is set (has been asigned a value) and false otherwise */
  4803. public boolean isSetMaxEntries() {
  4804. return __isset_vector[__MAXENTRIES_ISSET_ID];
  4805. }
  4806. public void setMaxEntriesIsSet(boolean value) {
  4807. __isset_vector[__MAXENTRIES_ISSET_ID] = value;
  4808. }
  4809. public void setFullSyncOnly(boolean fullSyncOnly) {
  4810. this.fullSyncOnly = fullSyncOnly;
  4811. setFullSyncOnlyIsSet(true);
  4812. }
  4813. /** Returns true if field fullSyncOnly is set (has been asigned a value) and false otherwise */
  4814. public boolean isSetFullSyncOnly() {
  4815. return __isset_vector[__FULLSYNCONLY_ISSET_ID];
  4816. }
  4817. public void setFullSyncOnlyIsSet(boolean value) {
  4818. __isset_vector[__FULLSYNCONLY_ISSET_ID] = value;
  4819. }
  4820. public int compareTo(getLinkedNotebookSyncChunk_args other) {
  4821. if (!getClass().equals(other.getClass())) {
  4822. return getClass().getName().compareTo(other.getClass().getName());
  4823. }
  4824. int lastComparison = 0;
  4825. getLinkedNotebookSyncChunk_args typedOther = (getLinkedNotebookSyncChunk_args)other;
  4826. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  4827. if (lastComparison != 0) {
  4828. return lastComparison;
  4829. }
  4830. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  4831. if (lastComparison != 0) {
  4832. return lastComparison;
  4833. }
  4834. }
  4835. lastComparison = Boolean.valueOf(isSetLinkedNotebook()).compareTo(typedOther.isSetLinkedNotebook());
  4836. if (lastComparison != 0) {
  4837. return lastComparison;
  4838. }
  4839. if (isSetLinkedNotebook()) { lastComparison = TBaseHelper.compareTo(this.linkedNotebook, typedOther.linkedNotebook);
  4840. if (lastComparison != 0) {
  4841. return lastComparison;
  4842. }
  4843. }
  4844. lastComparison = Boolean.valueOf(isSetAfterUSN()).compareTo(typedOther.isSetAfterUSN());
  4845. if (lastComparison != 0) {
  4846. return lastComparison;
  4847. }
  4848. if (isSetAfterUSN()) { lastComparison = TBaseHelper.compareTo(this.afterUSN, typedOther.afterUSN);
  4849. if (lastComparison != 0) {
  4850. return lastComparison;
  4851. }
  4852. }
  4853. lastComparison = Boolean.valueOf(isSetMaxEntries()).compareTo(typedOther.isSetMaxEntries());
  4854. if (lastComparison != 0) {
  4855. return lastComparison;
  4856. }
  4857. if (isSetMaxEntries()) { lastComparison = TBaseHelper.compareTo(this.maxEntries, typedOther.maxEntries);
  4858. if (lastComparison != 0) {
  4859. return lastComparison;
  4860. }
  4861. }
  4862. lastComparison = Boolean.valueOf(isSetFullSyncOnly()).compareTo(typedOther.isSetFullSyncOnly());
  4863. if (lastComparison != 0) {
  4864. return lastComparison;
  4865. }
  4866. if (isSetFullSyncOnly()) { lastComparison = TBaseHelper.compareTo(this.fullSyncOnly, typedOther.fullSyncOnly);
  4867. if (lastComparison != 0) {
  4868. return lastComparison;
  4869. }
  4870. }
  4871. return 0;
  4872. }
  4873. public void read(TProtocol iprot) throws TException {
  4874. TField field;
  4875. iprot.readStructBegin();
  4876. while (true)
  4877. {
  4878. field = iprot.readFieldBegin();
  4879. if (field.type == TType.STOP) {
  4880. break;
  4881. }
  4882. switch (field.id) {
  4883. case 1: // AUTHENTICATION_TOKEN
  4884. if (field.type == TType.STRING) {
  4885. this.authenticationToken = iprot.readString();
  4886. } else {
  4887. TProtocolUtil.skip(iprot, field.type);
  4888. }
  4889. break;
  4890. case 2: // LINKED_NOTEBOOK
  4891. if (field.type == TType.STRUCT) {
  4892. this.linkedNotebook = new com.evernote.edam.type.LinkedNotebook();
  4893. this.linkedNotebook.read(iprot);
  4894. } else {
  4895. TProtocolUtil.skip(iprot, field.type);
  4896. }
  4897. break;
  4898. case 3: // AFTER_USN
  4899. if (field.type == TType.I32) {
  4900. this.afterUSN = iprot.readI32();
  4901. setAfterUSNIsSet(true);
  4902. } else {
  4903. TProtocolUtil.skip(iprot, field.type);
  4904. }
  4905. break;
  4906. case 4: // MAX_ENTRIES
  4907. if (field.type == TType.I32) {
  4908. this.maxEntries = iprot.readI32();
  4909. setMaxEntriesIsSet(true);
  4910. } else {
  4911. TProtocolUtil.skip(iprot, field.type);
  4912. }
  4913. break;
  4914. case 5: // FULL_SYNC_ONLY
  4915. if (field.type == TType.BOOL) {
  4916. this.fullSyncOnly = iprot.readBool();
  4917. setFullSyncOnlyIsSet(true);
  4918. } else {
  4919. TProtocolUtil.skip(iprot, field.type);
  4920. }
  4921. break;
  4922. default:
  4923. TProtocolUtil.skip(iprot, field.type);
  4924. }
  4925. iprot.readFieldEnd();
  4926. }
  4927. iprot.readStructEnd();
  4928. validate();
  4929. }
  4930. public void write(TProtocol oprot) throws TException {
  4931. validate();
  4932. oprot.writeStructBegin(STRUCT_DESC);
  4933. if (this.authenticationToken != null) {
  4934. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  4935. oprot.writeString(this.authenticationToken);
  4936. oprot.writeFieldEnd();
  4937. }
  4938. if (this.linkedNotebook != null) {
  4939. oprot.writeFieldBegin(LINKED_NOTEBOOK_FIELD_DESC);
  4940. this.linkedNotebook.write(oprot);
  4941. oprot.writeFieldEnd();
  4942. }
  4943. oprot.writeFieldBegin(AFTER_USN_FIELD_DESC);
  4944. oprot.writeI32(this.afterUSN);
  4945. oprot.writeFieldEnd();
  4946. oprot.writeFieldBegin(MAX_ENTRIES_FIELD_DESC);
  4947. oprot.writeI32(this.maxEntries);
  4948. oprot.writeFieldEnd();
  4949. oprot.writeFieldBegin(FULL_SYNC_ONLY_FIELD_DESC);
  4950. oprot.writeBool(this.fullSyncOnly);
  4951. oprot.writeFieldEnd();
  4952. oprot.writeFieldStop();
  4953. oprot.writeStructEnd();
  4954. }
  4955. public void validate() throws TException {
  4956. // check for required fields
  4957. }
  4958. }
  4959. private static class getLinkedNotebookSyncChunk_result implements TBase<getLinkedNotebookSyncChunk_result>, java.io.Serializable, Cloneable {
  4960. private static final TStruct STRUCT_DESC = new TStruct("getLinkedNotebookSyncChunk_result");
  4961. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  4962. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  4963. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  4964. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  4965. private SyncChunk success;
  4966. private com.evernote.edam.error.EDAMUserException userException;
  4967. private com.evernote.edam.error.EDAMSystemException systemException;
  4968. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  4969. // isset id assignments
  4970. public getLinkedNotebookSyncChunk_result() {
  4971. }
  4972. /**
  4973. * Performs a deep copy on <i>other</i>.
  4974. */
  4975. public getLinkedNotebookSyncChunk_result(getLinkedNotebookSyncChunk_result other) {
  4976. if (other.isSetSuccess()) {
  4977. this.success = new SyncChunk(other.success);
  4978. }
  4979. if (other.isSetUserException()) {
  4980. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  4981. }
  4982. if (other.isSetSystemException()) {
  4983. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  4984. }
  4985. if (other.isSetNotFoundException()) {
  4986. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  4987. }
  4988. }
  4989. public getLinkedNotebookSyncChunk_result deepCopy() {
  4990. return new getLinkedNotebookSyncChunk_result(this);
  4991. }
  4992. public void clear() {
  4993. this.success = null;
  4994. this.userException = null;
  4995. this.systemException = null;
  4996. this.notFoundException = null;
  4997. }
  4998. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  4999. public boolean isSetSuccess() {
  5000. return this.success != null;
  5001. }
  5002. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  5003. public boolean isSetUserException() {
  5004. return this.userException != null;
  5005. }
  5006. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  5007. public boolean isSetSystemException() {
  5008. return this.systemException != null;
  5009. }
  5010. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  5011. public boolean isSetNotFoundException() {
  5012. return this.notFoundException != null;
  5013. }
  5014. public int compareTo(getLinkedNotebookSyncChunk_result other) {
  5015. if (!getClass().equals(other.getClass())) {
  5016. return getClass().getName().compareTo(other.getClass().getName());
  5017. }
  5018. int lastComparison = 0;
  5019. getLinkedNotebookSyncChunk_result typedOther = (getLinkedNotebookSyncChunk_result)other;
  5020. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  5021. if (lastComparison != 0) {
  5022. return lastComparison;
  5023. }
  5024. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  5025. if (lastComparison != 0) {
  5026. return lastComparison;
  5027. }
  5028. }
  5029. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  5030. if (lastComparison != 0) {
  5031. return lastComparison;
  5032. }
  5033. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  5034. if (lastComparison != 0) {
  5035. return lastComparison;
  5036. }
  5037. }
  5038. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  5039. if (lastComparison != 0) {
  5040. return lastComparison;
  5041. }
  5042. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  5043. if (lastComparison != 0) {
  5044. return lastComparison;
  5045. }
  5046. }
  5047. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  5048. if (lastComparison != 0) {
  5049. return lastComparison;
  5050. }
  5051. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  5052. if (lastComparison != 0) {
  5053. return lastComparison;
  5054. }
  5055. }
  5056. return 0;
  5057. }
  5058. public void read(TProtocol iprot) throws TException {
  5059. TField field;
  5060. iprot.readStructBegin();
  5061. while (true)
  5062. {
  5063. field = iprot.readFieldBegin();
  5064. if (field.type == TType.STOP) {
  5065. break;
  5066. }
  5067. switch (field.id) {
  5068. case 0: // SUCCESS
  5069. if (field.type == TType.STRUCT) {
  5070. this.success = new SyncChunk();
  5071. this.success.read(iprot);
  5072. } else {
  5073. TProtocolUtil.skip(iprot, field.type);
  5074. }
  5075. break;
  5076. case 1: // USER_EXCEPTION
  5077. if (field.type == TType.STRUCT) {
  5078. this.userException = new com.evernote.edam.error.EDAMUserException();
  5079. this.userException.read(iprot);
  5080. } else {
  5081. TProtocolUtil.skip(iprot, field.type);
  5082. }
  5083. break;
  5084. case 2: // SYSTEM_EXCEPTION
  5085. if (field.type == TType.STRUCT) {
  5086. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  5087. this.systemException.read(iprot);
  5088. } else {
  5089. TProtocolUtil.skip(iprot, field.type);
  5090. }
  5091. break;
  5092. case 3: // NOT_FOUND_EXCEPTION
  5093. if (field.type == TType.STRUCT) {
  5094. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  5095. this.notFoundException.read(iprot);
  5096. } else {
  5097. TProtocolUtil.skip(iprot, field.type);
  5098. }
  5099. break;
  5100. default:
  5101. TProtocolUtil.skip(iprot, field.type);
  5102. }
  5103. iprot.readFieldEnd();
  5104. }
  5105. iprot.readStructEnd();
  5106. validate();
  5107. }
  5108. public void write(TProtocol oprot) throws TException {
  5109. oprot.writeStructBegin(STRUCT_DESC);
  5110. if (this.isSetSuccess()) {
  5111. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  5112. this.success.write(oprot);
  5113. oprot.writeFieldEnd();
  5114. } else if (this.isSetUserException()) {
  5115. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  5116. this.userException.write(oprot);
  5117. oprot.writeFieldEnd();
  5118. } else if (this.isSetSystemException()) {
  5119. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  5120. this.systemException.write(oprot);
  5121. oprot.writeFieldEnd();
  5122. } else if (this.isSetNotFoundException()) {
  5123. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  5124. this.notFoundException.write(oprot);
  5125. oprot.writeFieldEnd();
  5126. }
  5127. oprot.writeFieldStop();
  5128. oprot.writeStructEnd();
  5129. }
  5130. public void validate() throws TException {
  5131. // check for required fields
  5132. }
  5133. }
  5134. private static class listNotebooks_args implements TBase<listNotebooks_args>, java.io.Serializable, Cloneable {
  5135. private static final TStruct STRUCT_DESC = new TStruct("listNotebooks_args");
  5136. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  5137. private String authenticationToken;
  5138. // isset id assignments
  5139. public listNotebooks_args() {
  5140. }
  5141. /**
  5142. * Performs a deep copy on <i>other</i>.
  5143. */
  5144. public listNotebooks_args(listNotebooks_args other) {
  5145. if (other.isSetAuthenticationToken()) {
  5146. this.authenticationToken = other.authenticationToken;
  5147. }
  5148. }
  5149. public listNotebooks_args deepCopy() {
  5150. return new listNotebooks_args(this);
  5151. }
  5152. public void clear() {
  5153. this.authenticationToken = null;
  5154. }
  5155. public void setAuthenticationToken(String authenticationToken) {
  5156. this.authenticationToken = authenticationToken;
  5157. }
  5158. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  5159. public boolean isSetAuthenticationToken() {
  5160. return this.authenticationToken != null;
  5161. }
  5162. public int compareTo(listNotebooks_args other) {
  5163. if (!getClass().equals(other.getClass())) {
  5164. return getClass().getName().compareTo(other.getClass().getName());
  5165. }
  5166. int lastComparison = 0;
  5167. listNotebooks_args typedOther = (listNotebooks_args)other;
  5168. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  5169. if (lastComparison != 0) {
  5170. return lastComparison;
  5171. }
  5172. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  5173. if (lastComparison != 0) {
  5174. return lastComparison;
  5175. }
  5176. }
  5177. return 0;
  5178. }
  5179. public void read(TProtocol iprot) throws TException {
  5180. TField field;
  5181. iprot.readStructBegin();
  5182. while (true)
  5183. {
  5184. field = iprot.readFieldBegin();
  5185. if (field.type == TType.STOP) {
  5186. break;
  5187. }
  5188. switch (field.id) {
  5189. case 1: // AUTHENTICATION_TOKEN
  5190. if (field.type == TType.STRING) {
  5191. this.authenticationToken = iprot.readString();
  5192. } else {
  5193. TProtocolUtil.skip(iprot, field.type);
  5194. }
  5195. break;
  5196. default:
  5197. TProtocolUtil.skip(iprot, field.type);
  5198. }
  5199. iprot.readFieldEnd();
  5200. }
  5201. iprot.readStructEnd();
  5202. validate();
  5203. }
  5204. public void write(TProtocol oprot) throws TException {
  5205. validate();
  5206. oprot.writeStructBegin(STRUCT_DESC);
  5207. if (this.authenticationToken != null) {
  5208. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  5209. oprot.writeString(this.authenticationToken);
  5210. oprot.writeFieldEnd();
  5211. }
  5212. oprot.writeFieldStop();
  5213. oprot.writeStructEnd();
  5214. }
  5215. public void validate() throws TException {
  5216. // check for required fields
  5217. }
  5218. }
  5219. private static class listNotebooks_result implements TBase<listNotebooks_result>, java.io.Serializable, Cloneable {
  5220. private static final TStruct STRUCT_DESC = new TStruct("listNotebooks_result");
  5221. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
  5222. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  5223. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  5224. private List<com.evernote.edam.type.Notebook> success;
  5225. private com.evernote.edam.error.EDAMUserException userException;
  5226. private com.evernote.edam.error.EDAMSystemException systemException;
  5227. // isset id assignments
  5228. public listNotebooks_result() {
  5229. }
  5230. /**
  5231. * Performs a deep copy on <i>other</i>.
  5232. */
  5233. public listNotebooks_result(listNotebooks_result other) {
  5234. if (other.isSetSuccess()) {
  5235. List<com.evernote.edam.type.Notebook> __this__success = new ArrayList<com.evernote.edam.type.Notebook>();
  5236. for (com.evernote.edam.type.Notebook other_element : other.success) {
  5237. __this__success.add(new com.evernote.edam.type.Notebook(other_element));
  5238. }
  5239. this.success = __this__success;
  5240. }
  5241. if (other.isSetUserException()) {
  5242. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  5243. }
  5244. if (other.isSetSystemException()) {
  5245. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  5246. }
  5247. }
  5248. public listNotebooks_result deepCopy() {
  5249. return new listNotebooks_result(this);
  5250. }
  5251. public void clear() {
  5252. this.success = null;
  5253. this.userException = null;
  5254. this.systemException = null;
  5255. }
  5256. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  5257. public boolean isSetSuccess() {
  5258. return this.success != null;
  5259. }
  5260. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  5261. public boolean isSetUserException() {
  5262. return this.userException != null;
  5263. }
  5264. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  5265. public boolean isSetSystemException() {
  5266. return this.systemException != null;
  5267. }
  5268. public int compareTo(listNotebooks_result other) {
  5269. if (!getClass().equals(other.getClass())) {
  5270. return getClass().getName().compareTo(other.getClass().getName());
  5271. }
  5272. int lastComparison = 0;
  5273. listNotebooks_result typedOther = (listNotebooks_result)other;
  5274. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  5275. if (lastComparison != 0) {
  5276. return lastComparison;
  5277. }
  5278. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  5279. if (lastComparison != 0) {
  5280. return lastComparison;
  5281. }
  5282. }
  5283. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  5284. if (lastComparison != 0) {
  5285. return lastComparison;
  5286. }
  5287. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  5288. if (lastComparison != 0) {
  5289. return lastComparison;
  5290. }
  5291. }
  5292. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  5293. if (lastComparison != 0) {
  5294. return lastComparison;
  5295. }
  5296. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  5297. if (lastComparison != 0) {
  5298. return lastComparison;
  5299. }
  5300. }
  5301. return 0;
  5302. }
  5303. public void read(TProtocol iprot) throws TException {
  5304. TField field;
  5305. iprot.readStructBegin();
  5306. while (true)
  5307. {
  5308. field = iprot.readFieldBegin();
  5309. if (field.type == TType.STOP) {
  5310. break;
  5311. }
  5312. switch (field.id) {
  5313. case 0: // SUCCESS
  5314. if (field.type == TType.LIST) {
  5315. {
  5316. TList _list110 = iprot.readListBegin();
  5317. this.success = new ArrayList<com.evernote.edam.type.Notebook>(_list110.size);
  5318. for (int _i111 = 0; _i111 < _list110.size; ++_i111)
  5319. {
  5320. com.evernote.edam.type.Notebook _elem112;
  5321. _elem112 = new com.evernote.edam.type.Notebook();
  5322. _elem112.read(iprot);
  5323. this.success.add(_elem112);
  5324. }
  5325. iprot.readListEnd();
  5326. }
  5327. } else {
  5328. TProtocolUtil.skip(iprot, field.type);
  5329. }
  5330. break;
  5331. case 1: // USER_EXCEPTION
  5332. if (field.type == TType.STRUCT) {
  5333. this.userException = new com.evernote.edam.error.EDAMUserException();
  5334. this.userException.read(iprot);
  5335. } else {
  5336. TProtocolUtil.skip(iprot, field.type);
  5337. }
  5338. break;
  5339. case 2: // SYSTEM_EXCEPTION
  5340. if (field.type == TType.STRUCT) {
  5341. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  5342. this.systemException.read(iprot);
  5343. } else {
  5344. TProtocolUtil.skip(iprot, field.type);
  5345. }
  5346. break;
  5347. default:
  5348. TProtocolUtil.skip(iprot, field.type);
  5349. }
  5350. iprot.readFieldEnd();
  5351. }
  5352. iprot.readStructEnd();
  5353. validate();
  5354. }
  5355. public void write(TProtocol oprot) throws TException {
  5356. oprot.writeStructBegin(STRUCT_DESC);
  5357. if (this.isSetSuccess()) {
  5358. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  5359. {
  5360. oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
  5361. for (com.evernote.edam.type.Notebook _iter113 : this.success)
  5362. {
  5363. _iter113.write(oprot);
  5364. }
  5365. oprot.writeListEnd();
  5366. }
  5367. oprot.writeFieldEnd();
  5368. } else if (this.isSetUserException()) {
  5369. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  5370. this.userException.write(oprot);
  5371. oprot.writeFieldEnd();
  5372. } else if (this.isSetSystemException()) {
  5373. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  5374. this.systemException.write(oprot);
  5375. oprot.writeFieldEnd();
  5376. }
  5377. oprot.writeFieldStop();
  5378. oprot.writeStructEnd();
  5379. }
  5380. public void validate() throws TException {
  5381. // check for required fields
  5382. }
  5383. }
  5384. private static class getNotebook_args implements TBase<getNotebook_args>, java.io.Serializable, Cloneable {
  5385. private static final TStruct STRUCT_DESC = new TStruct("getNotebook_args");
  5386. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  5387. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  5388. private String authenticationToken;
  5389. private String guid;
  5390. // isset id assignments
  5391. public getNotebook_args() {
  5392. }
  5393. /**
  5394. * Performs a deep copy on <i>other</i>.
  5395. */
  5396. public getNotebook_args(getNotebook_args other) {
  5397. if (other.isSetAuthenticationToken()) {
  5398. this.authenticationToken = other.authenticationToken;
  5399. }
  5400. if (other.isSetGuid()) {
  5401. this.guid = other.guid;
  5402. }
  5403. }
  5404. public getNotebook_args deepCopy() {
  5405. return new getNotebook_args(this);
  5406. }
  5407. public void clear() {
  5408. this.authenticationToken = null;
  5409. this.guid = null;
  5410. }
  5411. public void setAuthenticationToken(String authenticationToken) {
  5412. this.authenticationToken = authenticationToken;
  5413. }
  5414. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  5415. public boolean isSetAuthenticationToken() {
  5416. return this.authenticationToken != null;
  5417. }
  5418. public void setGuid(String guid) {
  5419. this.guid = guid;
  5420. }
  5421. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  5422. public boolean isSetGuid() {
  5423. return this.guid != null;
  5424. }
  5425. public int compareTo(getNotebook_args other) {
  5426. if (!getClass().equals(other.getClass())) {
  5427. return getClass().getName().compareTo(other.getClass().getName());
  5428. }
  5429. int lastComparison = 0;
  5430. getNotebook_args typedOther = (getNotebook_args)other;
  5431. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  5432. if (lastComparison != 0) {
  5433. return lastComparison;
  5434. }
  5435. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  5436. if (lastComparison != 0) {
  5437. return lastComparison;
  5438. }
  5439. }
  5440. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  5441. if (lastComparison != 0) {
  5442. return lastComparison;
  5443. }
  5444. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  5445. if (lastComparison != 0) {
  5446. return lastComparison;
  5447. }
  5448. }
  5449. return 0;
  5450. }
  5451. public void read(TProtocol iprot) throws TException {
  5452. TField field;
  5453. iprot.readStructBegin();
  5454. while (true)
  5455. {
  5456. field = iprot.readFieldBegin();
  5457. if (field.type == TType.STOP) {
  5458. break;
  5459. }
  5460. switch (field.id) {
  5461. case 1: // AUTHENTICATION_TOKEN
  5462. if (field.type == TType.STRING) {
  5463. this.authenticationToken = iprot.readString();
  5464. } else {
  5465. TProtocolUtil.skip(iprot, field.type);
  5466. }
  5467. break;
  5468. case 2: // GUID
  5469. if (field.type == TType.STRING) {
  5470. this.guid = iprot.readString();
  5471. } else {
  5472. TProtocolUtil.skip(iprot, field.type);
  5473. }
  5474. break;
  5475. default:
  5476. TProtocolUtil.skip(iprot, field.type);
  5477. }
  5478. iprot.readFieldEnd();
  5479. }
  5480. iprot.readStructEnd();
  5481. validate();
  5482. }
  5483. public void write(TProtocol oprot) throws TException {
  5484. validate();
  5485. oprot.writeStructBegin(STRUCT_DESC);
  5486. if (this.authenticationToken != null) {
  5487. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  5488. oprot.writeString(this.authenticationToken);
  5489. oprot.writeFieldEnd();
  5490. }
  5491. if (this.guid != null) {
  5492. oprot.writeFieldBegin(GUID_FIELD_DESC);
  5493. oprot.writeString(this.guid);
  5494. oprot.writeFieldEnd();
  5495. }
  5496. oprot.writeFieldStop();
  5497. oprot.writeStructEnd();
  5498. }
  5499. public void validate() throws TException {
  5500. // check for required fields
  5501. }
  5502. }
  5503. private static class getNotebook_result implements TBase<getNotebook_result>, java.io.Serializable, Cloneable {
  5504. private static final TStruct STRUCT_DESC = new TStruct("getNotebook_result");
  5505. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  5506. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  5507. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  5508. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  5509. private com.evernote.edam.type.Notebook success;
  5510. private com.evernote.edam.error.EDAMUserException userException;
  5511. private com.evernote.edam.error.EDAMSystemException systemException;
  5512. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  5513. // isset id assignments
  5514. public getNotebook_result() {
  5515. }
  5516. /**
  5517. * Performs a deep copy on <i>other</i>.
  5518. */
  5519. public getNotebook_result(getNotebook_result other) {
  5520. if (other.isSetSuccess()) {
  5521. this.success = new com.evernote.edam.type.Notebook(other.success);
  5522. }
  5523. if (other.isSetUserException()) {
  5524. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  5525. }
  5526. if (other.isSetSystemException()) {
  5527. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  5528. }
  5529. if (other.isSetNotFoundException()) {
  5530. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  5531. }
  5532. }
  5533. public getNotebook_result deepCopy() {
  5534. return new getNotebook_result(this);
  5535. }
  5536. public void clear() {
  5537. this.success = null;
  5538. this.userException = null;
  5539. this.systemException = null;
  5540. this.notFoundException = null;
  5541. }
  5542. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  5543. public boolean isSetSuccess() {
  5544. return this.success != null;
  5545. }
  5546. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  5547. public boolean isSetUserException() {
  5548. return this.userException != null;
  5549. }
  5550. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  5551. public boolean isSetSystemException() {
  5552. return this.systemException != null;
  5553. }
  5554. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  5555. public boolean isSetNotFoundException() {
  5556. return this.notFoundException != null;
  5557. }
  5558. public int compareTo(getNotebook_result other) {
  5559. if (!getClass().equals(other.getClass())) {
  5560. return getClass().getName().compareTo(other.getClass().getName());
  5561. }
  5562. int lastComparison = 0;
  5563. getNotebook_result typedOther = (getNotebook_result)other;
  5564. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  5565. if (lastComparison != 0) {
  5566. return lastComparison;
  5567. }
  5568. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  5569. if (lastComparison != 0) {
  5570. return lastComparison;
  5571. }
  5572. }
  5573. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  5574. if (lastComparison != 0) {
  5575. return lastComparison;
  5576. }
  5577. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  5578. if (lastComparison != 0) {
  5579. return lastComparison;
  5580. }
  5581. }
  5582. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  5583. if (lastComparison != 0) {
  5584. return lastComparison;
  5585. }
  5586. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  5587. if (lastComparison != 0) {
  5588. return lastComparison;
  5589. }
  5590. }
  5591. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  5592. if (lastComparison != 0) {
  5593. return lastComparison;
  5594. }
  5595. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  5596. if (lastComparison != 0) {
  5597. return lastComparison;
  5598. }
  5599. }
  5600. return 0;
  5601. }
  5602. public void read(TProtocol iprot) throws TException {
  5603. TField field;
  5604. iprot.readStructBegin();
  5605. while (true)
  5606. {
  5607. field = iprot.readFieldBegin();
  5608. if (field.type == TType.STOP) {
  5609. break;
  5610. }
  5611. switch (field.id) {
  5612. case 0: // SUCCESS
  5613. if (field.type == TType.STRUCT) {
  5614. this.success = new com.evernote.edam.type.Notebook();
  5615. this.success.read(iprot);
  5616. } else {
  5617. TProtocolUtil.skip(iprot, field.type);
  5618. }
  5619. break;
  5620. case 1: // USER_EXCEPTION
  5621. if (field.type == TType.STRUCT) {
  5622. this.userException = new com.evernote.edam.error.EDAMUserException();
  5623. this.userException.read(iprot);
  5624. } else {
  5625. TProtocolUtil.skip(iprot, field.type);
  5626. }
  5627. break;
  5628. case 2: // SYSTEM_EXCEPTION
  5629. if (field.type == TType.STRUCT) {
  5630. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  5631. this.systemException.read(iprot);
  5632. } else {
  5633. TProtocolUtil.skip(iprot, field.type);
  5634. }
  5635. break;
  5636. case 3: // NOT_FOUND_EXCEPTION
  5637. if (field.type == TType.STRUCT) {
  5638. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  5639. this.notFoundException.read(iprot);
  5640. } else {
  5641. TProtocolUtil.skip(iprot, field.type);
  5642. }
  5643. break;
  5644. default:
  5645. TProtocolUtil.skip(iprot, field.type);
  5646. }
  5647. iprot.readFieldEnd();
  5648. }
  5649. iprot.readStructEnd();
  5650. validate();
  5651. }
  5652. public void write(TProtocol oprot) throws TException {
  5653. oprot.writeStructBegin(STRUCT_DESC);
  5654. if (this.isSetSuccess()) {
  5655. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  5656. this.success.write(oprot);
  5657. oprot.writeFieldEnd();
  5658. } else if (this.isSetUserException()) {
  5659. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  5660. this.userException.write(oprot);
  5661. oprot.writeFieldEnd();
  5662. } else if (this.isSetSystemException()) {
  5663. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  5664. this.systemException.write(oprot);
  5665. oprot.writeFieldEnd();
  5666. } else if (this.isSetNotFoundException()) {
  5667. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  5668. this.notFoundException.write(oprot);
  5669. oprot.writeFieldEnd();
  5670. }
  5671. oprot.writeFieldStop();
  5672. oprot.writeStructEnd();
  5673. }
  5674. public void validate() throws TException {
  5675. // check for required fields
  5676. }
  5677. }
  5678. private static class getDefaultNotebook_args implements TBase<getDefaultNotebook_args>, java.io.Serializable, Cloneable {
  5679. private static final TStruct STRUCT_DESC = new TStruct("getDefaultNotebook_args");
  5680. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  5681. private String authenticationToken;
  5682. // isset id assignments
  5683. public getDefaultNotebook_args() {
  5684. }
  5685. /**
  5686. * Performs a deep copy on <i>other</i>.
  5687. */
  5688. public getDefaultNotebook_args(getDefaultNotebook_args other) {
  5689. if (other.isSetAuthenticationToken()) {
  5690. this.authenticationToken = other.authenticationToken;
  5691. }
  5692. }
  5693. public getDefaultNotebook_args deepCopy() {
  5694. return new getDefaultNotebook_args(this);
  5695. }
  5696. public void clear() {
  5697. this.authenticationToken = null;
  5698. }
  5699. public void setAuthenticationToken(String authenticationToken) {
  5700. this.authenticationToken = authenticationToken;
  5701. }
  5702. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  5703. public boolean isSetAuthenticationToken() {
  5704. return this.authenticationToken != null;
  5705. }
  5706. public int compareTo(getDefaultNotebook_args other) {
  5707. if (!getClass().equals(other.getClass())) {
  5708. return getClass().getName().compareTo(other.getClass().getName());
  5709. }
  5710. int lastComparison = 0;
  5711. getDefaultNotebook_args typedOther = (getDefaultNotebook_args)other;
  5712. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  5713. if (lastComparison != 0) {
  5714. return lastComparison;
  5715. }
  5716. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  5717. if (lastComparison != 0) {
  5718. return lastComparison;
  5719. }
  5720. }
  5721. return 0;
  5722. }
  5723. public void read(TProtocol iprot) throws TException {
  5724. TField field;
  5725. iprot.readStructBegin();
  5726. while (true)
  5727. {
  5728. field = iprot.readFieldBegin();
  5729. if (field.type == TType.STOP) {
  5730. break;
  5731. }
  5732. switch (field.id) {
  5733. case 1: // AUTHENTICATION_TOKEN
  5734. if (field.type == TType.STRING) {
  5735. this.authenticationToken = iprot.readString();
  5736. } else {
  5737. TProtocolUtil.skip(iprot, field.type);
  5738. }
  5739. break;
  5740. default:
  5741. TProtocolUtil.skip(iprot, field.type);
  5742. }
  5743. iprot.readFieldEnd();
  5744. }
  5745. iprot.readStructEnd();
  5746. validate();
  5747. }
  5748. public void write(TProtocol oprot) throws TException {
  5749. validate();
  5750. oprot.writeStructBegin(STRUCT_DESC);
  5751. if (this.authenticationToken != null) {
  5752. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  5753. oprot.writeString(this.authenticationToken);
  5754. oprot.writeFieldEnd();
  5755. }
  5756. oprot.writeFieldStop();
  5757. oprot.writeStructEnd();
  5758. }
  5759. public void validate() throws TException {
  5760. // check for required fields
  5761. }
  5762. }
  5763. private static class getDefaultNotebook_result implements TBase<getDefaultNotebook_result>, java.io.Serializable, Cloneable {
  5764. private static final TStruct STRUCT_DESC = new TStruct("getDefaultNotebook_result");
  5765. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  5766. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  5767. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  5768. private com.evernote.edam.type.Notebook success;
  5769. private com.evernote.edam.error.EDAMUserException userException;
  5770. private com.evernote.edam.error.EDAMSystemException systemException;
  5771. // isset id assignments
  5772. public getDefaultNotebook_result() {
  5773. }
  5774. /**
  5775. * Performs a deep copy on <i>other</i>.
  5776. */
  5777. public getDefaultNotebook_result(getDefaultNotebook_result other) {
  5778. if (other.isSetSuccess()) {
  5779. this.success = new com.evernote.edam.type.Notebook(other.success);
  5780. }
  5781. if (other.isSetUserException()) {
  5782. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  5783. }
  5784. if (other.isSetSystemException()) {
  5785. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  5786. }
  5787. }
  5788. public getDefaultNotebook_result deepCopy() {
  5789. return new getDefaultNotebook_result(this);
  5790. }
  5791. public void clear() {
  5792. this.success = null;
  5793. this.userException = null;
  5794. this.systemException = null;
  5795. }
  5796. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  5797. public boolean isSetSuccess() {
  5798. return this.success != null;
  5799. }
  5800. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  5801. public boolean isSetUserException() {
  5802. return this.userException != null;
  5803. }
  5804. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  5805. public boolean isSetSystemException() {
  5806. return this.systemException != null;
  5807. }
  5808. public int compareTo(getDefaultNotebook_result other) {
  5809. if (!getClass().equals(other.getClass())) {
  5810. return getClass().getName().compareTo(other.getClass().getName());
  5811. }
  5812. int lastComparison = 0;
  5813. getDefaultNotebook_result typedOther = (getDefaultNotebook_result)other;
  5814. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  5815. if (lastComparison != 0) {
  5816. return lastComparison;
  5817. }
  5818. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  5819. if (lastComparison != 0) {
  5820. return lastComparison;
  5821. }
  5822. }
  5823. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  5824. if (lastComparison != 0) {
  5825. return lastComparison;
  5826. }
  5827. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  5828. if (lastComparison != 0) {
  5829. return lastComparison;
  5830. }
  5831. }
  5832. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  5833. if (lastComparison != 0) {
  5834. return lastComparison;
  5835. }
  5836. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  5837. if (lastComparison != 0) {
  5838. return lastComparison;
  5839. }
  5840. }
  5841. return 0;
  5842. }
  5843. public void read(TProtocol iprot) throws TException {
  5844. TField field;
  5845. iprot.readStructBegin();
  5846. while (true)
  5847. {
  5848. field = iprot.readFieldBegin();
  5849. if (field.type == TType.STOP) {
  5850. break;
  5851. }
  5852. switch (field.id) {
  5853. case 0: // SUCCESS
  5854. if (field.type == TType.STRUCT) {
  5855. this.success = new com.evernote.edam.type.Notebook();
  5856. this.success.read(iprot);
  5857. } else {
  5858. TProtocolUtil.skip(iprot, field.type);
  5859. }
  5860. break;
  5861. case 1: // USER_EXCEPTION
  5862. if (field.type == TType.STRUCT) {
  5863. this.userException = new com.evernote.edam.error.EDAMUserException();
  5864. this.userException.read(iprot);
  5865. } else {
  5866. TProtocolUtil.skip(iprot, field.type);
  5867. }
  5868. break;
  5869. case 2: // SYSTEM_EXCEPTION
  5870. if (field.type == TType.STRUCT) {
  5871. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  5872. this.systemException.read(iprot);
  5873. } else {
  5874. TProtocolUtil.skip(iprot, field.type);
  5875. }
  5876. break;
  5877. default:
  5878. TProtocolUtil.skip(iprot, field.type);
  5879. }
  5880. iprot.readFieldEnd();
  5881. }
  5882. iprot.readStructEnd();
  5883. validate();
  5884. }
  5885. public void write(TProtocol oprot) throws TException {
  5886. oprot.writeStructBegin(STRUCT_DESC);
  5887. if (this.isSetSuccess()) {
  5888. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  5889. this.success.write(oprot);
  5890. oprot.writeFieldEnd();
  5891. } else if (this.isSetUserException()) {
  5892. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  5893. this.userException.write(oprot);
  5894. oprot.writeFieldEnd();
  5895. } else if (this.isSetSystemException()) {
  5896. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  5897. this.systemException.write(oprot);
  5898. oprot.writeFieldEnd();
  5899. }
  5900. oprot.writeFieldStop();
  5901. oprot.writeStructEnd();
  5902. }
  5903. public void validate() throws TException {
  5904. // check for required fields
  5905. }
  5906. }
  5907. private static class createNotebook_args implements TBase<createNotebook_args>, java.io.Serializable, Cloneable {
  5908. private static final TStruct STRUCT_DESC = new TStruct("createNotebook_args");
  5909. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  5910. private static final TField NOTEBOOK_FIELD_DESC = new TField("notebook", TType.STRUCT, (short)2);
  5911. private String authenticationToken;
  5912. private com.evernote.edam.type.Notebook notebook;
  5913. // isset id assignments
  5914. public createNotebook_args() {
  5915. }
  5916. /**
  5917. * Performs a deep copy on <i>other</i>.
  5918. */
  5919. public createNotebook_args(createNotebook_args other) {
  5920. if (other.isSetAuthenticationToken()) {
  5921. this.authenticationToken = other.authenticationToken;
  5922. }
  5923. if (other.isSetNotebook()) {
  5924. this.notebook = new com.evernote.edam.type.Notebook(other.notebook);
  5925. }
  5926. }
  5927. public createNotebook_args deepCopy() {
  5928. return new createNotebook_args(this);
  5929. }
  5930. public void clear() {
  5931. this.authenticationToken = null;
  5932. this.notebook = null;
  5933. }
  5934. public void setAuthenticationToken(String authenticationToken) {
  5935. this.authenticationToken = authenticationToken;
  5936. }
  5937. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  5938. public boolean isSetAuthenticationToken() {
  5939. return this.authenticationToken != null;
  5940. }
  5941. public void setNotebook(com.evernote.edam.type.Notebook notebook) {
  5942. this.notebook = notebook;
  5943. }
  5944. /** Returns true if field notebook is set (has been asigned a value) and false otherwise */
  5945. public boolean isSetNotebook() {
  5946. return this.notebook != null;
  5947. }
  5948. public int compareTo(createNotebook_args other) {
  5949. if (!getClass().equals(other.getClass())) {
  5950. return getClass().getName().compareTo(other.getClass().getName());
  5951. }
  5952. int lastComparison = 0;
  5953. createNotebook_args typedOther = (createNotebook_args)other;
  5954. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  5955. if (lastComparison != 0) {
  5956. return lastComparison;
  5957. }
  5958. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  5959. if (lastComparison != 0) {
  5960. return lastComparison;
  5961. }
  5962. }
  5963. lastComparison = Boolean.valueOf(isSetNotebook()).compareTo(typedOther.isSetNotebook());
  5964. if (lastComparison != 0) {
  5965. return lastComparison;
  5966. }
  5967. if (isSetNotebook()) { lastComparison = TBaseHelper.compareTo(this.notebook, typedOther.notebook);
  5968. if (lastComparison != 0) {
  5969. return lastComparison;
  5970. }
  5971. }
  5972. return 0;
  5973. }
  5974. public void read(TProtocol iprot) throws TException {
  5975. TField field;
  5976. iprot.readStructBegin();
  5977. while (true)
  5978. {
  5979. field = iprot.readFieldBegin();
  5980. if (field.type == TType.STOP) {
  5981. break;
  5982. }
  5983. switch (field.id) {
  5984. case 1: // AUTHENTICATION_TOKEN
  5985. if (field.type == TType.STRING) {
  5986. this.authenticationToken = iprot.readString();
  5987. } else {
  5988. TProtocolUtil.skip(iprot, field.type);
  5989. }
  5990. break;
  5991. case 2: // NOTEBOOK
  5992. if (field.type == TType.STRUCT) {
  5993. this.notebook = new com.evernote.edam.type.Notebook();
  5994. this.notebook.read(iprot);
  5995. } else {
  5996. TProtocolUtil.skip(iprot, field.type);
  5997. }
  5998. break;
  5999. default:
  6000. TProtocolUtil.skip(iprot, field.type);
  6001. }
  6002. iprot.readFieldEnd();
  6003. }
  6004. iprot.readStructEnd();
  6005. validate();
  6006. }
  6007. public void write(TProtocol oprot) throws TException {
  6008. validate();
  6009. oprot.writeStructBegin(STRUCT_DESC);
  6010. if (this.authenticationToken != null) {
  6011. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  6012. oprot.writeString(this.authenticationToken);
  6013. oprot.writeFieldEnd();
  6014. }
  6015. if (this.notebook != null) {
  6016. oprot.writeFieldBegin(NOTEBOOK_FIELD_DESC);
  6017. this.notebook.write(oprot);
  6018. oprot.writeFieldEnd();
  6019. }
  6020. oprot.writeFieldStop();
  6021. oprot.writeStructEnd();
  6022. }
  6023. public void validate() throws TException {
  6024. // check for required fields
  6025. }
  6026. }
  6027. private static class createNotebook_result implements TBase<createNotebook_result>, java.io.Serializable, Cloneable {
  6028. private static final TStruct STRUCT_DESC = new TStruct("createNotebook_result");
  6029. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  6030. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  6031. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  6032. private com.evernote.edam.type.Notebook success;
  6033. private com.evernote.edam.error.EDAMUserException userException;
  6034. private com.evernote.edam.error.EDAMSystemException systemException;
  6035. // isset id assignments
  6036. public createNotebook_result() {
  6037. }
  6038. /**
  6039. * Performs a deep copy on <i>other</i>.
  6040. */
  6041. public createNotebook_result(createNotebook_result other) {
  6042. if (other.isSetSuccess()) {
  6043. this.success = new com.evernote.edam.type.Notebook(other.success);
  6044. }
  6045. if (other.isSetUserException()) {
  6046. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  6047. }
  6048. if (other.isSetSystemException()) {
  6049. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  6050. }
  6051. }
  6052. public createNotebook_result deepCopy() {
  6053. return new createNotebook_result(this);
  6054. }
  6055. public void clear() {
  6056. this.success = null;
  6057. this.userException = null;
  6058. this.systemException = null;
  6059. }
  6060. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  6061. public boolean isSetSuccess() {
  6062. return this.success != null;
  6063. }
  6064. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  6065. public boolean isSetUserException() {
  6066. return this.userException != null;
  6067. }
  6068. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  6069. public boolean isSetSystemException() {
  6070. return this.systemException != null;
  6071. }
  6072. public int compareTo(createNotebook_result other) {
  6073. if (!getClass().equals(other.getClass())) {
  6074. return getClass().getName().compareTo(other.getClass().getName());
  6075. }
  6076. int lastComparison = 0;
  6077. createNotebook_result typedOther = (createNotebook_result)other;
  6078. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  6079. if (lastComparison != 0) {
  6080. return lastComparison;
  6081. }
  6082. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  6083. if (lastComparison != 0) {
  6084. return lastComparison;
  6085. }
  6086. }
  6087. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  6088. if (lastComparison != 0) {
  6089. return lastComparison;
  6090. }
  6091. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  6092. if (lastComparison != 0) {
  6093. return lastComparison;
  6094. }
  6095. }
  6096. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  6097. if (lastComparison != 0) {
  6098. return lastComparison;
  6099. }
  6100. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  6101. if (lastComparison != 0) {
  6102. return lastComparison;
  6103. }
  6104. }
  6105. return 0;
  6106. }
  6107. public void read(TProtocol iprot) throws TException {
  6108. TField field;
  6109. iprot.readStructBegin();
  6110. while (true)
  6111. {
  6112. field = iprot.readFieldBegin();
  6113. if (field.type == TType.STOP) {
  6114. break;
  6115. }
  6116. switch (field.id) {
  6117. case 0: // SUCCESS
  6118. if (field.type == TType.STRUCT) {
  6119. this.success = new com.evernote.edam.type.Notebook();
  6120. this.success.read(iprot);
  6121. } else {
  6122. TProtocolUtil.skip(iprot, field.type);
  6123. }
  6124. break;
  6125. case 1: // USER_EXCEPTION
  6126. if (field.type == TType.STRUCT) {
  6127. this.userException = new com.evernote.edam.error.EDAMUserException();
  6128. this.userException.read(iprot);
  6129. } else {
  6130. TProtocolUtil.skip(iprot, field.type);
  6131. }
  6132. break;
  6133. case 2: // SYSTEM_EXCEPTION
  6134. if (field.type == TType.STRUCT) {
  6135. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  6136. this.systemException.read(iprot);
  6137. } else {
  6138. TProtocolUtil.skip(iprot, field.type);
  6139. }
  6140. break;
  6141. default:
  6142. TProtocolUtil.skip(iprot, field.type);
  6143. }
  6144. iprot.readFieldEnd();
  6145. }
  6146. iprot.readStructEnd();
  6147. validate();
  6148. }
  6149. public void write(TProtocol oprot) throws TException {
  6150. oprot.writeStructBegin(STRUCT_DESC);
  6151. if (this.isSetSuccess()) {
  6152. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  6153. this.success.write(oprot);
  6154. oprot.writeFieldEnd();
  6155. } else if (this.isSetUserException()) {
  6156. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  6157. this.userException.write(oprot);
  6158. oprot.writeFieldEnd();
  6159. } else if (this.isSetSystemException()) {
  6160. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  6161. this.systemException.write(oprot);
  6162. oprot.writeFieldEnd();
  6163. }
  6164. oprot.writeFieldStop();
  6165. oprot.writeStructEnd();
  6166. }
  6167. public void validate() throws TException {
  6168. // check for required fields
  6169. }
  6170. }
  6171. private static class updateNotebook_args implements TBase<updateNotebook_args>, java.io.Serializable, Cloneable {
  6172. private static final TStruct STRUCT_DESC = new TStruct("updateNotebook_args");
  6173. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  6174. private static final TField NOTEBOOK_FIELD_DESC = new TField("notebook", TType.STRUCT, (short)2);
  6175. private String authenticationToken;
  6176. private com.evernote.edam.type.Notebook notebook;
  6177. // isset id assignments
  6178. public updateNotebook_args() {
  6179. }
  6180. /**
  6181. * Performs a deep copy on <i>other</i>.
  6182. */
  6183. public updateNotebook_args(updateNotebook_args other) {
  6184. if (other.isSetAuthenticationToken()) {
  6185. this.authenticationToken = other.authenticationToken;
  6186. }
  6187. if (other.isSetNotebook()) {
  6188. this.notebook = new com.evernote.edam.type.Notebook(other.notebook);
  6189. }
  6190. }
  6191. public updateNotebook_args deepCopy() {
  6192. return new updateNotebook_args(this);
  6193. }
  6194. public void clear() {
  6195. this.authenticationToken = null;
  6196. this.notebook = null;
  6197. }
  6198. public void setAuthenticationToken(String authenticationToken) {
  6199. this.authenticationToken = authenticationToken;
  6200. }
  6201. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  6202. public boolean isSetAuthenticationToken() {
  6203. return this.authenticationToken != null;
  6204. }
  6205. public void setNotebook(com.evernote.edam.type.Notebook notebook) {
  6206. this.notebook = notebook;
  6207. }
  6208. /** Returns true if field notebook is set (has been asigned a value) and false otherwise */
  6209. public boolean isSetNotebook() {
  6210. return this.notebook != null;
  6211. }
  6212. public int compareTo(updateNotebook_args other) {
  6213. if (!getClass().equals(other.getClass())) {
  6214. return getClass().getName().compareTo(other.getClass().getName());
  6215. }
  6216. int lastComparison = 0;
  6217. updateNotebook_args typedOther = (updateNotebook_args)other;
  6218. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  6219. if (lastComparison != 0) {
  6220. return lastComparison;
  6221. }
  6222. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  6223. if (lastComparison != 0) {
  6224. return lastComparison;
  6225. }
  6226. }
  6227. lastComparison = Boolean.valueOf(isSetNotebook()).compareTo(typedOther.isSetNotebook());
  6228. if (lastComparison != 0) {
  6229. return lastComparison;
  6230. }
  6231. if (isSetNotebook()) { lastComparison = TBaseHelper.compareTo(this.notebook, typedOther.notebook);
  6232. if (lastComparison != 0) {
  6233. return lastComparison;
  6234. }
  6235. }
  6236. return 0;
  6237. }
  6238. public void read(TProtocol iprot) throws TException {
  6239. TField field;
  6240. iprot.readStructBegin();
  6241. while (true)
  6242. {
  6243. field = iprot.readFieldBegin();
  6244. if (field.type == TType.STOP) {
  6245. break;
  6246. }
  6247. switch (field.id) {
  6248. case 1: // AUTHENTICATION_TOKEN
  6249. if (field.type == TType.STRING) {
  6250. this.authenticationToken = iprot.readString();
  6251. } else {
  6252. TProtocolUtil.skip(iprot, field.type);
  6253. }
  6254. break;
  6255. case 2: // NOTEBOOK
  6256. if (field.type == TType.STRUCT) {
  6257. this.notebook = new com.evernote.edam.type.Notebook();
  6258. this.notebook.read(iprot);
  6259. } else {
  6260. TProtocolUtil.skip(iprot, field.type);
  6261. }
  6262. break;
  6263. default:
  6264. TProtocolUtil.skip(iprot, field.type);
  6265. }
  6266. iprot.readFieldEnd();
  6267. }
  6268. iprot.readStructEnd();
  6269. validate();
  6270. }
  6271. public void write(TProtocol oprot) throws TException {
  6272. validate();
  6273. oprot.writeStructBegin(STRUCT_DESC);
  6274. if (this.authenticationToken != null) {
  6275. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  6276. oprot.writeString(this.authenticationToken);
  6277. oprot.writeFieldEnd();
  6278. }
  6279. if (this.notebook != null) {
  6280. oprot.writeFieldBegin(NOTEBOOK_FIELD_DESC);
  6281. this.notebook.write(oprot);
  6282. oprot.writeFieldEnd();
  6283. }
  6284. oprot.writeFieldStop();
  6285. oprot.writeStructEnd();
  6286. }
  6287. public void validate() throws TException {
  6288. // check for required fields
  6289. }
  6290. }
  6291. private static class updateNotebook_result implements TBase<updateNotebook_result>, java.io.Serializable, Cloneable {
  6292. private static final TStruct STRUCT_DESC = new TStruct("updateNotebook_result");
  6293. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);
  6294. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  6295. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  6296. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  6297. private int success;
  6298. private com.evernote.edam.error.EDAMUserException userException;
  6299. private com.evernote.edam.error.EDAMSystemException systemException;
  6300. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  6301. // isset id assignments
  6302. private static final int __SUCCESS_ISSET_ID = 0;
  6303. private boolean[] __isset_vector = new boolean[1];
  6304. public updateNotebook_result() {
  6305. }
  6306. /**
  6307. * Performs a deep copy on <i>other</i>.
  6308. */
  6309. public updateNotebook_result(updateNotebook_result other) {
  6310. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  6311. this.success = other.success;
  6312. if (other.isSetUserException()) {
  6313. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  6314. }
  6315. if (other.isSetSystemException()) {
  6316. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  6317. }
  6318. if (other.isSetNotFoundException()) {
  6319. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  6320. }
  6321. }
  6322. public updateNotebook_result deepCopy() {
  6323. return new updateNotebook_result(this);
  6324. }
  6325. public void clear() {
  6326. setSuccessIsSet(false);
  6327. this.success = 0;
  6328. this.userException = null;
  6329. this.systemException = null;
  6330. this.notFoundException = null;
  6331. }
  6332. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  6333. public boolean isSetSuccess() {
  6334. return __isset_vector[__SUCCESS_ISSET_ID];
  6335. }
  6336. public void setSuccessIsSet(boolean value) {
  6337. __isset_vector[__SUCCESS_ISSET_ID] = value;
  6338. }
  6339. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  6340. public boolean isSetUserException() {
  6341. return this.userException != null;
  6342. }
  6343. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  6344. public boolean isSetSystemException() {
  6345. return this.systemException != null;
  6346. }
  6347. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  6348. public boolean isSetNotFoundException() {
  6349. return this.notFoundException != null;
  6350. }
  6351. public int compareTo(updateNotebook_result other) {
  6352. if (!getClass().equals(other.getClass())) {
  6353. return getClass().getName().compareTo(other.getClass().getName());
  6354. }
  6355. int lastComparison = 0;
  6356. updateNotebook_result typedOther = (updateNotebook_result)other;
  6357. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  6358. if (lastComparison != 0) {
  6359. return lastComparison;
  6360. }
  6361. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  6362. if (lastComparison != 0) {
  6363. return lastComparison;
  6364. }
  6365. }
  6366. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  6367. if (lastComparison != 0) {
  6368. return lastComparison;
  6369. }
  6370. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  6371. if (lastComparison != 0) {
  6372. return lastComparison;
  6373. }
  6374. }
  6375. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  6376. if (lastComparison != 0) {
  6377. return lastComparison;
  6378. }
  6379. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  6380. if (lastComparison != 0) {
  6381. return lastComparison;
  6382. }
  6383. }
  6384. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  6385. if (lastComparison != 0) {
  6386. return lastComparison;
  6387. }
  6388. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  6389. if (lastComparison != 0) {
  6390. return lastComparison;
  6391. }
  6392. }
  6393. return 0;
  6394. }
  6395. public void read(TProtocol iprot) throws TException {
  6396. TField field;
  6397. iprot.readStructBegin();
  6398. while (true)
  6399. {
  6400. field = iprot.readFieldBegin();
  6401. if (field.type == TType.STOP) {
  6402. break;
  6403. }
  6404. switch (field.id) {
  6405. case 0: // SUCCESS
  6406. if (field.type == TType.I32) {
  6407. this.success = iprot.readI32();
  6408. setSuccessIsSet(true);
  6409. } else {
  6410. TProtocolUtil.skip(iprot, field.type);
  6411. }
  6412. break;
  6413. case 1: // USER_EXCEPTION
  6414. if (field.type == TType.STRUCT) {
  6415. this.userException = new com.evernote.edam.error.EDAMUserException();
  6416. this.userException.read(iprot);
  6417. } else {
  6418. TProtocolUtil.skip(iprot, field.type);
  6419. }
  6420. break;
  6421. case 2: // SYSTEM_EXCEPTION
  6422. if (field.type == TType.STRUCT) {
  6423. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  6424. this.systemException.read(iprot);
  6425. } else {
  6426. TProtocolUtil.skip(iprot, field.type);
  6427. }
  6428. break;
  6429. case 3: // NOT_FOUND_EXCEPTION
  6430. if (field.type == TType.STRUCT) {
  6431. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  6432. this.notFoundException.read(iprot);
  6433. } else {
  6434. TProtocolUtil.skip(iprot, field.type);
  6435. }
  6436. break;
  6437. default:
  6438. TProtocolUtil.skip(iprot, field.type);
  6439. }
  6440. iprot.readFieldEnd();
  6441. }
  6442. iprot.readStructEnd();
  6443. validate();
  6444. }
  6445. public void write(TProtocol oprot) throws TException {
  6446. oprot.writeStructBegin(STRUCT_DESC);
  6447. if (this.isSetSuccess()) {
  6448. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  6449. oprot.writeI32(this.success);
  6450. oprot.writeFieldEnd();
  6451. } else if (this.isSetUserException()) {
  6452. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  6453. this.userException.write(oprot);
  6454. oprot.writeFieldEnd();
  6455. } else if (this.isSetSystemException()) {
  6456. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  6457. this.systemException.write(oprot);
  6458. oprot.writeFieldEnd();
  6459. } else if (this.isSetNotFoundException()) {
  6460. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  6461. this.notFoundException.write(oprot);
  6462. oprot.writeFieldEnd();
  6463. }
  6464. oprot.writeFieldStop();
  6465. oprot.writeStructEnd();
  6466. }
  6467. public void validate() throws TException {
  6468. // check for required fields
  6469. }
  6470. }
  6471. private static class expungeNotebook_args implements TBase<expungeNotebook_args>, java.io.Serializable, Cloneable {
  6472. private static final TStruct STRUCT_DESC = new TStruct("expungeNotebook_args");
  6473. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  6474. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  6475. private String authenticationToken;
  6476. private String guid;
  6477. // isset id assignments
  6478. public expungeNotebook_args() {
  6479. }
  6480. /**
  6481. * Performs a deep copy on <i>other</i>.
  6482. */
  6483. public expungeNotebook_args(expungeNotebook_args other) {
  6484. if (other.isSetAuthenticationToken()) {
  6485. this.authenticationToken = other.authenticationToken;
  6486. }
  6487. if (other.isSetGuid()) {
  6488. this.guid = other.guid;
  6489. }
  6490. }
  6491. public expungeNotebook_args deepCopy() {
  6492. return new expungeNotebook_args(this);
  6493. }
  6494. public void clear() {
  6495. this.authenticationToken = null;
  6496. this.guid = null;
  6497. }
  6498. public void setAuthenticationToken(String authenticationToken) {
  6499. this.authenticationToken = authenticationToken;
  6500. }
  6501. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  6502. public boolean isSetAuthenticationToken() {
  6503. return this.authenticationToken != null;
  6504. }
  6505. public void setGuid(String guid) {
  6506. this.guid = guid;
  6507. }
  6508. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  6509. public boolean isSetGuid() {
  6510. return this.guid != null;
  6511. }
  6512. public int compareTo(expungeNotebook_args other) {
  6513. if (!getClass().equals(other.getClass())) {
  6514. return getClass().getName().compareTo(other.getClass().getName());
  6515. }
  6516. int lastComparison = 0;
  6517. expungeNotebook_args typedOther = (expungeNotebook_args)other;
  6518. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  6519. if (lastComparison != 0) {
  6520. return lastComparison;
  6521. }
  6522. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  6523. if (lastComparison != 0) {
  6524. return lastComparison;
  6525. }
  6526. }
  6527. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  6528. if (lastComparison != 0) {
  6529. return lastComparison;
  6530. }
  6531. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  6532. if (lastComparison != 0) {
  6533. return lastComparison;
  6534. }
  6535. }
  6536. return 0;
  6537. }
  6538. public void read(TProtocol iprot) throws TException {
  6539. TField field;
  6540. iprot.readStructBegin();
  6541. while (true)
  6542. {
  6543. field = iprot.readFieldBegin();
  6544. if (field.type == TType.STOP) {
  6545. break;
  6546. }
  6547. switch (field.id) {
  6548. case 1: // AUTHENTICATION_TOKEN
  6549. if (field.type == TType.STRING) {
  6550. this.authenticationToken = iprot.readString();
  6551. } else {
  6552. TProtocolUtil.skip(iprot, field.type);
  6553. }
  6554. break;
  6555. case 2: // GUID
  6556. if (field.type == TType.STRING) {
  6557. this.guid = iprot.readString();
  6558. } else {
  6559. TProtocolUtil.skip(iprot, field.type);
  6560. }
  6561. break;
  6562. default:
  6563. TProtocolUtil.skip(iprot, field.type);
  6564. }
  6565. iprot.readFieldEnd();
  6566. }
  6567. iprot.readStructEnd();
  6568. validate();
  6569. }
  6570. public void write(TProtocol oprot) throws TException {
  6571. validate();
  6572. oprot.writeStructBegin(STRUCT_DESC);
  6573. if (this.authenticationToken != null) {
  6574. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  6575. oprot.writeString(this.authenticationToken);
  6576. oprot.writeFieldEnd();
  6577. }
  6578. if (this.guid != null) {
  6579. oprot.writeFieldBegin(GUID_FIELD_DESC);
  6580. oprot.writeString(this.guid);
  6581. oprot.writeFieldEnd();
  6582. }
  6583. oprot.writeFieldStop();
  6584. oprot.writeStructEnd();
  6585. }
  6586. public void validate() throws TException {
  6587. // check for required fields
  6588. }
  6589. }
  6590. private static class expungeNotebook_result implements TBase<expungeNotebook_result>, java.io.Serializable, Cloneable {
  6591. private static final TStruct STRUCT_DESC = new TStruct("expungeNotebook_result");
  6592. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);
  6593. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  6594. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  6595. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  6596. private int success;
  6597. private com.evernote.edam.error.EDAMUserException userException;
  6598. private com.evernote.edam.error.EDAMSystemException systemException;
  6599. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  6600. // isset id assignments
  6601. private static final int __SUCCESS_ISSET_ID = 0;
  6602. private boolean[] __isset_vector = new boolean[1];
  6603. public expungeNotebook_result() {
  6604. }
  6605. /**
  6606. * Performs a deep copy on <i>other</i>.
  6607. */
  6608. public expungeNotebook_result(expungeNotebook_result other) {
  6609. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  6610. this.success = other.success;
  6611. if (other.isSetUserException()) {
  6612. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  6613. }
  6614. if (other.isSetSystemException()) {
  6615. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  6616. }
  6617. if (other.isSetNotFoundException()) {
  6618. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  6619. }
  6620. }
  6621. public expungeNotebook_result deepCopy() {
  6622. return new expungeNotebook_result(this);
  6623. }
  6624. public void clear() {
  6625. setSuccessIsSet(false);
  6626. this.success = 0;
  6627. this.userException = null;
  6628. this.systemException = null;
  6629. this.notFoundException = null;
  6630. }
  6631. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  6632. public boolean isSetSuccess() {
  6633. return __isset_vector[__SUCCESS_ISSET_ID];
  6634. }
  6635. public void setSuccessIsSet(boolean value) {
  6636. __isset_vector[__SUCCESS_ISSET_ID] = value;
  6637. }
  6638. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  6639. public boolean isSetUserException() {
  6640. return this.userException != null;
  6641. }
  6642. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  6643. public boolean isSetSystemException() {
  6644. return this.systemException != null;
  6645. }
  6646. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  6647. public boolean isSetNotFoundException() {
  6648. return this.notFoundException != null;
  6649. }
  6650. public int compareTo(expungeNotebook_result other) {
  6651. if (!getClass().equals(other.getClass())) {
  6652. return getClass().getName().compareTo(other.getClass().getName());
  6653. }
  6654. int lastComparison = 0;
  6655. expungeNotebook_result typedOther = (expungeNotebook_result)other;
  6656. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  6657. if (lastComparison != 0) {
  6658. return lastComparison;
  6659. }
  6660. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  6661. if (lastComparison != 0) {
  6662. return lastComparison;
  6663. }
  6664. }
  6665. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  6666. if (lastComparison != 0) {
  6667. return lastComparison;
  6668. }
  6669. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  6670. if (lastComparison != 0) {
  6671. return lastComparison;
  6672. }
  6673. }
  6674. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  6675. if (lastComparison != 0) {
  6676. return lastComparison;
  6677. }
  6678. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  6679. if (lastComparison != 0) {
  6680. return lastComparison;
  6681. }
  6682. }
  6683. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  6684. if (lastComparison != 0) {
  6685. return lastComparison;
  6686. }
  6687. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  6688. if (lastComparison != 0) {
  6689. return lastComparison;
  6690. }
  6691. }
  6692. return 0;
  6693. }
  6694. public void read(TProtocol iprot) throws TException {
  6695. TField field;
  6696. iprot.readStructBegin();
  6697. while (true)
  6698. {
  6699. field = iprot.readFieldBegin();
  6700. if (field.type == TType.STOP) {
  6701. break;
  6702. }
  6703. switch (field.id) {
  6704. case 0: // SUCCESS
  6705. if (field.type == TType.I32) {
  6706. this.success = iprot.readI32();
  6707. setSuccessIsSet(true);
  6708. } else {
  6709. TProtocolUtil.skip(iprot, field.type);
  6710. }
  6711. break;
  6712. case 1: // USER_EXCEPTION
  6713. if (field.type == TType.STRUCT) {
  6714. this.userException = new com.evernote.edam.error.EDAMUserException();
  6715. this.userException.read(iprot);
  6716. } else {
  6717. TProtocolUtil.skip(iprot, field.type);
  6718. }
  6719. break;
  6720. case 2: // SYSTEM_EXCEPTION
  6721. if (field.type == TType.STRUCT) {
  6722. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  6723. this.systemException.read(iprot);
  6724. } else {
  6725. TProtocolUtil.skip(iprot, field.type);
  6726. }
  6727. break;
  6728. case 3: // NOT_FOUND_EXCEPTION
  6729. if (field.type == TType.STRUCT) {
  6730. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  6731. this.notFoundException.read(iprot);
  6732. } else {
  6733. TProtocolUtil.skip(iprot, field.type);
  6734. }
  6735. break;
  6736. default:
  6737. TProtocolUtil.skip(iprot, field.type);
  6738. }
  6739. iprot.readFieldEnd();
  6740. }
  6741. iprot.readStructEnd();
  6742. validate();
  6743. }
  6744. public void write(TProtocol oprot) throws TException {
  6745. oprot.writeStructBegin(STRUCT_DESC);
  6746. if (this.isSetSuccess()) {
  6747. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  6748. oprot.writeI32(this.success);
  6749. oprot.writeFieldEnd();
  6750. } else if (this.isSetUserException()) {
  6751. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  6752. this.userException.write(oprot);
  6753. oprot.writeFieldEnd();
  6754. } else if (this.isSetSystemException()) {
  6755. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  6756. this.systemException.write(oprot);
  6757. oprot.writeFieldEnd();
  6758. } else if (this.isSetNotFoundException()) {
  6759. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  6760. this.notFoundException.write(oprot);
  6761. oprot.writeFieldEnd();
  6762. }
  6763. oprot.writeFieldStop();
  6764. oprot.writeStructEnd();
  6765. }
  6766. public void validate() throws TException {
  6767. // check for required fields
  6768. }
  6769. }
  6770. private static class listTags_args implements TBase<listTags_args>, java.io.Serializable, Cloneable {
  6771. private static final TStruct STRUCT_DESC = new TStruct("listTags_args");
  6772. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  6773. private String authenticationToken;
  6774. // isset id assignments
  6775. public listTags_args() {
  6776. }
  6777. /**
  6778. * Performs a deep copy on <i>other</i>.
  6779. */
  6780. public listTags_args(listTags_args other) {
  6781. if (other.isSetAuthenticationToken()) {
  6782. this.authenticationToken = other.authenticationToken;
  6783. }
  6784. }
  6785. public listTags_args deepCopy() {
  6786. return new listTags_args(this);
  6787. }
  6788. public void clear() {
  6789. this.authenticationToken = null;
  6790. }
  6791. public void setAuthenticationToken(String authenticationToken) {
  6792. this.authenticationToken = authenticationToken;
  6793. }
  6794. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  6795. public boolean isSetAuthenticationToken() {
  6796. return this.authenticationToken != null;
  6797. }
  6798. public int compareTo(listTags_args other) {
  6799. if (!getClass().equals(other.getClass())) {
  6800. return getClass().getName().compareTo(other.getClass().getName());
  6801. }
  6802. int lastComparison = 0;
  6803. listTags_args typedOther = (listTags_args)other;
  6804. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  6805. if (lastComparison != 0) {
  6806. return lastComparison;
  6807. }
  6808. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  6809. if (lastComparison != 0) {
  6810. return lastComparison;
  6811. }
  6812. }
  6813. return 0;
  6814. }
  6815. public void read(TProtocol iprot) throws TException {
  6816. TField field;
  6817. iprot.readStructBegin();
  6818. while (true)
  6819. {
  6820. field = iprot.readFieldBegin();
  6821. if (field.type == TType.STOP) {
  6822. break;
  6823. }
  6824. switch (field.id) {
  6825. case 1: // AUTHENTICATION_TOKEN
  6826. if (field.type == TType.STRING) {
  6827. this.authenticationToken = iprot.readString();
  6828. } else {
  6829. TProtocolUtil.skip(iprot, field.type);
  6830. }
  6831. break;
  6832. default:
  6833. TProtocolUtil.skip(iprot, field.type);
  6834. }
  6835. iprot.readFieldEnd();
  6836. }
  6837. iprot.readStructEnd();
  6838. validate();
  6839. }
  6840. public void write(TProtocol oprot) throws TException {
  6841. validate();
  6842. oprot.writeStructBegin(STRUCT_DESC);
  6843. if (this.authenticationToken != null) {
  6844. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  6845. oprot.writeString(this.authenticationToken);
  6846. oprot.writeFieldEnd();
  6847. }
  6848. oprot.writeFieldStop();
  6849. oprot.writeStructEnd();
  6850. }
  6851. public void validate() throws TException {
  6852. // check for required fields
  6853. }
  6854. }
  6855. private static class listTags_result implements TBase<listTags_result>, java.io.Serializable, Cloneable {
  6856. private static final TStruct STRUCT_DESC = new TStruct("listTags_result");
  6857. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
  6858. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  6859. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  6860. private List<com.evernote.edam.type.Tag> success;
  6861. private com.evernote.edam.error.EDAMUserException userException;
  6862. private com.evernote.edam.error.EDAMSystemException systemException;
  6863. // isset id assignments
  6864. public listTags_result() {
  6865. }
  6866. /**
  6867. * Performs a deep copy on <i>other</i>.
  6868. */
  6869. public listTags_result(listTags_result other) {
  6870. if (other.isSetSuccess()) {
  6871. List<com.evernote.edam.type.Tag> __this__success = new ArrayList<com.evernote.edam.type.Tag>();
  6872. for (com.evernote.edam.type.Tag other_element : other.success) {
  6873. __this__success.add(new com.evernote.edam.type.Tag(other_element));
  6874. }
  6875. this.success = __this__success;
  6876. }
  6877. if (other.isSetUserException()) {
  6878. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  6879. }
  6880. if (other.isSetSystemException()) {
  6881. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  6882. }
  6883. }
  6884. public listTags_result deepCopy() {
  6885. return new listTags_result(this);
  6886. }
  6887. public void clear() {
  6888. this.success = null;
  6889. this.userException = null;
  6890. this.systemException = null;
  6891. }
  6892. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  6893. public boolean isSetSuccess() {
  6894. return this.success != null;
  6895. }
  6896. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  6897. public boolean isSetUserException() {
  6898. return this.userException != null;
  6899. }
  6900. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  6901. public boolean isSetSystemException() {
  6902. return this.systemException != null;
  6903. }
  6904. public int compareTo(listTags_result other) {
  6905. if (!getClass().equals(other.getClass())) {
  6906. return getClass().getName().compareTo(other.getClass().getName());
  6907. }
  6908. int lastComparison = 0;
  6909. listTags_result typedOther = (listTags_result)other;
  6910. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  6911. if (lastComparison != 0) {
  6912. return lastComparison;
  6913. }
  6914. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  6915. if (lastComparison != 0) {
  6916. return lastComparison;
  6917. }
  6918. }
  6919. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  6920. if (lastComparison != 0) {
  6921. return lastComparison;
  6922. }
  6923. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  6924. if (lastComparison != 0) {
  6925. return lastComparison;
  6926. }
  6927. }
  6928. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  6929. if (lastComparison != 0) {
  6930. return lastComparison;
  6931. }
  6932. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  6933. if (lastComparison != 0) {
  6934. return lastComparison;
  6935. }
  6936. }
  6937. return 0;
  6938. }
  6939. public void read(TProtocol iprot) throws TException {
  6940. TField field;
  6941. iprot.readStructBegin();
  6942. while (true)
  6943. {
  6944. field = iprot.readFieldBegin();
  6945. if (field.type == TType.STOP) {
  6946. break;
  6947. }
  6948. switch (field.id) {
  6949. case 0: // SUCCESS
  6950. if (field.type == TType.LIST) {
  6951. {
  6952. TList _list114 = iprot.readListBegin();
  6953. this.success = new ArrayList<com.evernote.edam.type.Tag>(_list114.size);
  6954. for (int _i115 = 0; _i115 < _list114.size; ++_i115)
  6955. {
  6956. com.evernote.edam.type.Tag _elem116;
  6957. _elem116 = new com.evernote.edam.type.Tag();
  6958. _elem116.read(iprot);
  6959. this.success.add(_elem116);
  6960. }
  6961. iprot.readListEnd();
  6962. }
  6963. } else {
  6964. TProtocolUtil.skip(iprot, field.type);
  6965. }
  6966. break;
  6967. case 1: // USER_EXCEPTION
  6968. if (field.type == TType.STRUCT) {
  6969. this.userException = new com.evernote.edam.error.EDAMUserException();
  6970. this.userException.read(iprot);
  6971. } else {
  6972. TProtocolUtil.skip(iprot, field.type);
  6973. }
  6974. break;
  6975. case 2: // SYSTEM_EXCEPTION
  6976. if (field.type == TType.STRUCT) {
  6977. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  6978. this.systemException.read(iprot);
  6979. } else {
  6980. TProtocolUtil.skip(iprot, field.type);
  6981. }
  6982. break;
  6983. default:
  6984. TProtocolUtil.skip(iprot, field.type);
  6985. }
  6986. iprot.readFieldEnd();
  6987. }
  6988. iprot.readStructEnd();
  6989. validate();
  6990. }
  6991. public void write(TProtocol oprot) throws TException {
  6992. oprot.writeStructBegin(STRUCT_DESC);
  6993. if (this.isSetSuccess()) {
  6994. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  6995. {
  6996. oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
  6997. for (com.evernote.edam.type.Tag _iter117 : this.success)
  6998. {
  6999. _iter117.write(oprot);
  7000. }
  7001. oprot.writeListEnd();
  7002. }
  7003. oprot.writeFieldEnd();
  7004. } else if (this.isSetUserException()) {
  7005. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  7006. this.userException.write(oprot);
  7007. oprot.writeFieldEnd();
  7008. } else if (this.isSetSystemException()) {
  7009. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  7010. this.systemException.write(oprot);
  7011. oprot.writeFieldEnd();
  7012. }
  7013. oprot.writeFieldStop();
  7014. oprot.writeStructEnd();
  7015. }
  7016. public void validate() throws TException {
  7017. // check for required fields
  7018. }
  7019. }
  7020. private static class listTagsByNotebook_args implements TBase<listTagsByNotebook_args>, java.io.Serializable, Cloneable {
  7021. private static final TStruct STRUCT_DESC = new TStruct("listTagsByNotebook_args");
  7022. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  7023. private static final TField NOTEBOOK_GUID_FIELD_DESC = new TField("notebookGuid", TType.STRING, (short)2);
  7024. private String authenticationToken;
  7025. private String notebookGuid;
  7026. // isset id assignments
  7027. public listTagsByNotebook_args() {
  7028. }
  7029. /**
  7030. * Performs a deep copy on <i>other</i>.
  7031. */
  7032. public listTagsByNotebook_args(listTagsByNotebook_args other) {
  7033. if (other.isSetAuthenticationToken()) {
  7034. this.authenticationToken = other.authenticationToken;
  7035. }
  7036. if (other.isSetNotebookGuid()) {
  7037. this.notebookGuid = other.notebookGuid;
  7038. }
  7039. }
  7040. public listTagsByNotebook_args deepCopy() {
  7041. return new listTagsByNotebook_args(this);
  7042. }
  7043. public void clear() {
  7044. this.authenticationToken = null;
  7045. this.notebookGuid = null;
  7046. }
  7047. public void setAuthenticationToken(String authenticationToken) {
  7048. this.authenticationToken = authenticationToken;
  7049. }
  7050. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  7051. public boolean isSetAuthenticationToken() {
  7052. return this.authenticationToken != null;
  7053. }
  7054. public void setNotebookGuid(String notebookGuid) {
  7055. this.notebookGuid = notebookGuid;
  7056. }
  7057. /** Returns true if field notebookGuid is set (has been asigned a value) and false otherwise */
  7058. public boolean isSetNotebookGuid() {
  7059. return this.notebookGuid != null;
  7060. }
  7061. public int compareTo(listTagsByNotebook_args other) {
  7062. if (!getClass().equals(other.getClass())) {
  7063. return getClass().getName().compareTo(other.getClass().getName());
  7064. }
  7065. int lastComparison = 0;
  7066. listTagsByNotebook_args typedOther = (listTagsByNotebook_args)other;
  7067. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  7068. if (lastComparison != 0) {
  7069. return lastComparison;
  7070. }
  7071. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  7072. if (lastComparison != 0) {
  7073. return lastComparison;
  7074. }
  7075. }
  7076. lastComparison = Boolean.valueOf(isSetNotebookGuid()).compareTo(typedOther.isSetNotebookGuid());
  7077. if (lastComparison != 0) {
  7078. return lastComparison;
  7079. }
  7080. if (isSetNotebookGuid()) { lastComparison = TBaseHelper.compareTo(this.notebookGuid, typedOther.notebookGuid);
  7081. if (lastComparison != 0) {
  7082. return lastComparison;
  7083. }
  7084. }
  7085. return 0;
  7086. }
  7087. public void read(TProtocol iprot) throws TException {
  7088. TField field;
  7089. iprot.readStructBegin();
  7090. while (true)
  7091. {
  7092. field = iprot.readFieldBegin();
  7093. if (field.type == TType.STOP) {
  7094. break;
  7095. }
  7096. switch (field.id) {
  7097. case 1: // AUTHENTICATION_TOKEN
  7098. if (field.type == TType.STRING) {
  7099. this.authenticationToken = iprot.readString();
  7100. } else {
  7101. TProtocolUtil.skip(iprot, field.type);
  7102. }
  7103. break;
  7104. case 2: // NOTEBOOK_GUID
  7105. if (field.type == TType.STRING) {
  7106. this.notebookGuid = iprot.readString();
  7107. } else {
  7108. TProtocolUtil.skip(iprot, field.type);
  7109. }
  7110. break;
  7111. default:
  7112. TProtocolUtil.skip(iprot, field.type);
  7113. }
  7114. iprot.readFieldEnd();
  7115. }
  7116. iprot.readStructEnd();
  7117. validate();
  7118. }
  7119. public void write(TProtocol oprot) throws TException {
  7120. validate();
  7121. oprot.writeStructBegin(STRUCT_DESC);
  7122. if (this.authenticationToken != null) {
  7123. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  7124. oprot.writeString(this.authenticationToken);
  7125. oprot.writeFieldEnd();
  7126. }
  7127. if (this.notebookGuid != null) {
  7128. oprot.writeFieldBegin(NOTEBOOK_GUID_FIELD_DESC);
  7129. oprot.writeString(this.notebookGuid);
  7130. oprot.writeFieldEnd();
  7131. }
  7132. oprot.writeFieldStop();
  7133. oprot.writeStructEnd();
  7134. }
  7135. public void validate() throws TException {
  7136. // check for required fields
  7137. }
  7138. }
  7139. private static class listTagsByNotebook_result implements TBase<listTagsByNotebook_result>, java.io.Serializable, Cloneable {
  7140. private static final TStruct STRUCT_DESC = new TStruct("listTagsByNotebook_result");
  7141. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
  7142. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  7143. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  7144. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  7145. private List<com.evernote.edam.type.Tag> success;
  7146. private com.evernote.edam.error.EDAMUserException userException;
  7147. private com.evernote.edam.error.EDAMSystemException systemException;
  7148. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  7149. // isset id assignments
  7150. public listTagsByNotebook_result() {
  7151. }
  7152. /**
  7153. * Performs a deep copy on <i>other</i>.
  7154. */
  7155. public listTagsByNotebook_result(listTagsByNotebook_result other) {
  7156. if (other.isSetSuccess()) {
  7157. List<com.evernote.edam.type.Tag> __this__success = new ArrayList<com.evernote.edam.type.Tag>();
  7158. for (com.evernote.edam.type.Tag other_element : other.success) {
  7159. __this__success.add(new com.evernote.edam.type.Tag(other_element));
  7160. }
  7161. this.success = __this__success;
  7162. }
  7163. if (other.isSetUserException()) {
  7164. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  7165. }
  7166. if (other.isSetSystemException()) {
  7167. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  7168. }
  7169. if (other.isSetNotFoundException()) {
  7170. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  7171. }
  7172. }
  7173. public listTagsByNotebook_result deepCopy() {
  7174. return new listTagsByNotebook_result(this);
  7175. }
  7176. public void clear() {
  7177. this.success = null;
  7178. this.userException = null;
  7179. this.systemException = null;
  7180. this.notFoundException = null;
  7181. }
  7182. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  7183. public boolean isSetSuccess() {
  7184. return this.success != null;
  7185. }
  7186. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  7187. public boolean isSetUserException() {
  7188. return this.userException != null;
  7189. }
  7190. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  7191. public boolean isSetSystemException() {
  7192. return this.systemException != null;
  7193. }
  7194. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  7195. public boolean isSetNotFoundException() {
  7196. return this.notFoundException != null;
  7197. }
  7198. public int compareTo(listTagsByNotebook_result other) {
  7199. if (!getClass().equals(other.getClass())) {
  7200. return getClass().getName().compareTo(other.getClass().getName());
  7201. }
  7202. int lastComparison = 0;
  7203. listTagsByNotebook_result typedOther = (listTagsByNotebook_result)other;
  7204. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  7205. if (lastComparison != 0) {
  7206. return lastComparison;
  7207. }
  7208. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  7209. if (lastComparison != 0) {
  7210. return lastComparison;
  7211. }
  7212. }
  7213. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  7214. if (lastComparison != 0) {
  7215. return lastComparison;
  7216. }
  7217. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  7218. if (lastComparison != 0) {
  7219. return lastComparison;
  7220. }
  7221. }
  7222. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  7223. if (lastComparison != 0) {
  7224. return lastComparison;
  7225. }
  7226. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  7227. if (lastComparison != 0) {
  7228. return lastComparison;
  7229. }
  7230. }
  7231. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  7232. if (lastComparison != 0) {
  7233. return lastComparison;
  7234. }
  7235. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  7236. if (lastComparison != 0) {
  7237. return lastComparison;
  7238. }
  7239. }
  7240. return 0;
  7241. }
  7242. public void read(TProtocol iprot) throws TException {
  7243. TField field;
  7244. iprot.readStructBegin();
  7245. while (true)
  7246. {
  7247. field = iprot.readFieldBegin();
  7248. if (field.type == TType.STOP) {
  7249. break;
  7250. }
  7251. switch (field.id) {
  7252. case 0: // SUCCESS
  7253. if (field.type == TType.LIST) {
  7254. {
  7255. TList _list118 = iprot.readListBegin();
  7256. this.success = new ArrayList<com.evernote.edam.type.Tag>(_list118.size);
  7257. for (int _i119 = 0; _i119 < _list118.size; ++_i119)
  7258. {
  7259. com.evernote.edam.type.Tag _elem120;
  7260. _elem120 = new com.evernote.edam.type.Tag();
  7261. _elem120.read(iprot);
  7262. this.success.add(_elem120);
  7263. }
  7264. iprot.readListEnd();
  7265. }
  7266. } else {
  7267. TProtocolUtil.skip(iprot, field.type);
  7268. }
  7269. break;
  7270. case 1: // USER_EXCEPTION
  7271. if (field.type == TType.STRUCT) {
  7272. this.userException = new com.evernote.edam.error.EDAMUserException();
  7273. this.userException.read(iprot);
  7274. } else {
  7275. TProtocolUtil.skip(iprot, field.type);
  7276. }
  7277. break;
  7278. case 2: // SYSTEM_EXCEPTION
  7279. if (field.type == TType.STRUCT) {
  7280. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  7281. this.systemException.read(iprot);
  7282. } else {
  7283. TProtocolUtil.skip(iprot, field.type);
  7284. }
  7285. break;
  7286. case 3: // NOT_FOUND_EXCEPTION
  7287. if (field.type == TType.STRUCT) {
  7288. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  7289. this.notFoundException.read(iprot);
  7290. } else {
  7291. TProtocolUtil.skip(iprot, field.type);
  7292. }
  7293. break;
  7294. default:
  7295. TProtocolUtil.skip(iprot, field.type);
  7296. }
  7297. iprot.readFieldEnd();
  7298. }
  7299. iprot.readStructEnd();
  7300. validate();
  7301. }
  7302. public void write(TProtocol oprot) throws TException {
  7303. oprot.writeStructBegin(STRUCT_DESC);
  7304. if (this.isSetSuccess()) {
  7305. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  7306. {
  7307. oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
  7308. for (com.evernote.edam.type.Tag _iter121 : this.success)
  7309. {
  7310. _iter121.write(oprot);
  7311. }
  7312. oprot.writeListEnd();
  7313. }
  7314. oprot.writeFieldEnd();
  7315. } else if (this.isSetUserException()) {
  7316. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  7317. this.userException.write(oprot);
  7318. oprot.writeFieldEnd();
  7319. } else if (this.isSetSystemException()) {
  7320. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  7321. this.systemException.write(oprot);
  7322. oprot.writeFieldEnd();
  7323. } else if (this.isSetNotFoundException()) {
  7324. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  7325. this.notFoundException.write(oprot);
  7326. oprot.writeFieldEnd();
  7327. }
  7328. oprot.writeFieldStop();
  7329. oprot.writeStructEnd();
  7330. }
  7331. public void validate() throws TException {
  7332. // check for required fields
  7333. }
  7334. }
  7335. private static class getTag_args implements TBase<getTag_args>, java.io.Serializable, Cloneable {
  7336. private static final TStruct STRUCT_DESC = new TStruct("getTag_args");
  7337. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  7338. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  7339. private String authenticationToken;
  7340. private String guid;
  7341. // isset id assignments
  7342. public getTag_args() {
  7343. }
  7344. /**
  7345. * Performs a deep copy on <i>other</i>.
  7346. */
  7347. public getTag_args(getTag_args other) {
  7348. if (other.isSetAuthenticationToken()) {
  7349. this.authenticationToken = other.authenticationToken;
  7350. }
  7351. if (other.isSetGuid()) {
  7352. this.guid = other.guid;
  7353. }
  7354. }
  7355. public getTag_args deepCopy() {
  7356. return new getTag_args(this);
  7357. }
  7358. public void clear() {
  7359. this.authenticationToken = null;
  7360. this.guid = null;
  7361. }
  7362. public void setAuthenticationToken(String authenticationToken) {
  7363. this.authenticationToken = authenticationToken;
  7364. }
  7365. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  7366. public boolean isSetAuthenticationToken() {
  7367. return this.authenticationToken != null;
  7368. }
  7369. public void setGuid(String guid) {
  7370. this.guid = guid;
  7371. }
  7372. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  7373. public boolean isSetGuid() {
  7374. return this.guid != null;
  7375. }
  7376. public int compareTo(getTag_args other) {
  7377. if (!getClass().equals(other.getClass())) {
  7378. return getClass().getName().compareTo(other.getClass().getName());
  7379. }
  7380. int lastComparison = 0;
  7381. getTag_args typedOther = (getTag_args)other;
  7382. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  7383. if (lastComparison != 0) {
  7384. return lastComparison;
  7385. }
  7386. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  7387. if (lastComparison != 0) {
  7388. return lastComparison;
  7389. }
  7390. }
  7391. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  7392. if (lastComparison != 0) {
  7393. return lastComparison;
  7394. }
  7395. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  7396. if (lastComparison != 0) {
  7397. return lastComparison;
  7398. }
  7399. }
  7400. return 0;
  7401. }
  7402. public void read(TProtocol iprot) throws TException {
  7403. TField field;
  7404. iprot.readStructBegin();
  7405. while (true)
  7406. {
  7407. field = iprot.readFieldBegin();
  7408. if (field.type == TType.STOP) {
  7409. break;
  7410. }
  7411. switch (field.id) {
  7412. case 1: // AUTHENTICATION_TOKEN
  7413. if (field.type == TType.STRING) {
  7414. this.authenticationToken = iprot.readString();
  7415. } else {
  7416. TProtocolUtil.skip(iprot, field.type);
  7417. }
  7418. break;
  7419. case 2: // GUID
  7420. if (field.type == TType.STRING) {
  7421. this.guid = iprot.readString();
  7422. } else {
  7423. TProtocolUtil.skip(iprot, field.type);
  7424. }
  7425. break;
  7426. default:
  7427. TProtocolUtil.skip(iprot, field.type);
  7428. }
  7429. iprot.readFieldEnd();
  7430. }
  7431. iprot.readStructEnd();
  7432. validate();
  7433. }
  7434. public void write(TProtocol oprot) throws TException {
  7435. validate();
  7436. oprot.writeStructBegin(STRUCT_DESC);
  7437. if (this.authenticationToken != null) {
  7438. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  7439. oprot.writeString(this.authenticationToken);
  7440. oprot.writeFieldEnd();
  7441. }
  7442. if (this.guid != null) {
  7443. oprot.writeFieldBegin(GUID_FIELD_DESC);
  7444. oprot.writeString(this.guid);
  7445. oprot.writeFieldEnd();
  7446. }
  7447. oprot.writeFieldStop();
  7448. oprot.writeStructEnd();
  7449. }
  7450. public void validate() throws TException {
  7451. // check for required fields
  7452. }
  7453. }
  7454. private static class getTag_result implements TBase<getTag_result>, java.io.Serializable, Cloneable {
  7455. private static final TStruct STRUCT_DESC = new TStruct("getTag_result");
  7456. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  7457. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  7458. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  7459. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  7460. private com.evernote.edam.type.Tag success;
  7461. private com.evernote.edam.error.EDAMUserException userException;
  7462. private com.evernote.edam.error.EDAMSystemException systemException;
  7463. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  7464. // isset id assignments
  7465. public getTag_result() {
  7466. }
  7467. /**
  7468. * Performs a deep copy on <i>other</i>.
  7469. */
  7470. public getTag_result(getTag_result other) {
  7471. if (other.isSetSuccess()) {
  7472. this.success = new com.evernote.edam.type.Tag(other.success);
  7473. }
  7474. if (other.isSetUserException()) {
  7475. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  7476. }
  7477. if (other.isSetSystemException()) {
  7478. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  7479. }
  7480. if (other.isSetNotFoundException()) {
  7481. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  7482. }
  7483. }
  7484. public getTag_result deepCopy() {
  7485. return new getTag_result(this);
  7486. }
  7487. public void clear() {
  7488. this.success = null;
  7489. this.userException = null;
  7490. this.systemException = null;
  7491. this.notFoundException = null;
  7492. }
  7493. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  7494. public boolean isSetSuccess() {
  7495. return this.success != null;
  7496. }
  7497. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  7498. public boolean isSetUserException() {
  7499. return this.userException != null;
  7500. }
  7501. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  7502. public boolean isSetSystemException() {
  7503. return this.systemException != null;
  7504. }
  7505. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  7506. public boolean isSetNotFoundException() {
  7507. return this.notFoundException != null;
  7508. }
  7509. public int compareTo(getTag_result other) {
  7510. if (!getClass().equals(other.getClass())) {
  7511. return getClass().getName().compareTo(other.getClass().getName());
  7512. }
  7513. int lastComparison = 0;
  7514. getTag_result typedOther = (getTag_result)other;
  7515. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  7516. if (lastComparison != 0) {
  7517. return lastComparison;
  7518. }
  7519. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  7520. if (lastComparison != 0) {
  7521. return lastComparison;
  7522. }
  7523. }
  7524. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  7525. if (lastComparison != 0) {
  7526. return lastComparison;
  7527. }
  7528. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  7529. if (lastComparison != 0) {
  7530. return lastComparison;
  7531. }
  7532. }
  7533. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  7534. if (lastComparison != 0) {
  7535. return lastComparison;
  7536. }
  7537. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  7538. if (lastComparison != 0) {
  7539. return lastComparison;
  7540. }
  7541. }
  7542. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  7543. if (lastComparison != 0) {
  7544. return lastComparison;
  7545. }
  7546. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  7547. if (lastComparison != 0) {
  7548. return lastComparison;
  7549. }
  7550. }
  7551. return 0;
  7552. }
  7553. public void read(TProtocol iprot) throws TException {
  7554. TField field;
  7555. iprot.readStructBegin();
  7556. while (true)
  7557. {
  7558. field = iprot.readFieldBegin();
  7559. if (field.type == TType.STOP) {
  7560. break;
  7561. }
  7562. switch (field.id) {
  7563. case 0: // SUCCESS
  7564. if (field.type == TType.STRUCT) {
  7565. this.success = new com.evernote.edam.type.Tag();
  7566. this.success.read(iprot);
  7567. } else {
  7568. TProtocolUtil.skip(iprot, field.type);
  7569. }
  7570. break;
  7571. case 1: // USER_EXCEPTION
  7572. if (field.type == TType.STRUCT) {
  7573. this.userException = new com.evernote.edam.error.EDAMUserException();
  7574. this.userException.read(iprot);
  7575. } else {
  7576. TProtocolUtil.skip(iprot, field.type);
  7577. }
  7578. break;
  7579. case 2: // SYSTEM_EXCEPTION
  7580. if (field.type == TType.STRUCT) {
  7581. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  7582. this.systemException.read(iprot);
  7583. } else {
  7584. TProtocolUtil.skip(iprot, field.type);
  7585. }
  7586. break;
  7587. case 3: // NOT_FOUND_EXCEPTION
  7588. if (field.type == TType.STRUCT) {
  7589. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  7590. this.notFoundException.read(iprot);
  7591. } else {
  7592. TProtocolUtil.skip(iprot, field.type);
  7593. }
  7594. break;
  7595. default:
  7596. TProtocolUtil.skip(iprot, field.type);
  7597. }
  7598. iprot.readFieldEnd();
  7599. }
  7600. iprot.readStructEnd();
  7601. validate();
  7602. }
  7603. public void write(TProtocol oprot) throws TException {
  7604. oprot.writeStructBegin(STRUCT_DESC);
  7605. if (this.isSetSuccess()) {
  7606. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  7607. this.success.write(oprot);
  7608. oprot.writeFieldEnd();
  7609. } else if (this.isSetUserException()) {
  7610. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  7611. this.userException.write(oprot);
  7612. oprot.writeFieldEnd();
  7613. } else if (this.isSetSystemException()) {
  7614. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  7615. this.systemException.write(oprot);
  7616. oprot.writeFieldEnd();
  7617. } else if (this.isSetNotFoundException()) {
  7618. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  7619. this.notFoundException.write(oprot);
  7620. oprot.writeFieldEnd();
  7621. }
  7622. oprot.writeFieldStop();
  7623. oprot.writeStructEnd();
  7624. }
  7625. public void validate() throws TException {
  7626. // check for required fields
  7627. }
  7628. }
  7629. private static class createTag_args implements TBase<createTag_args>, java.io.Serializable, Cloneable {
  7630. private static final TStruct STRUCT_DESC = new TStruct("createTag_args");
  7631. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  7632. private static final TField TAG_FIELD_DESC = new TField("tag", TType.STRUCT, (short)2);
  7633. private String authenticationToken;
  7634. private com.evernote.edam.type.Tag tag;
  7635. // isset id assignments
  7636. public createTag_args() {
  7637. }
  7638. /**
  7639. * Performs a deep copy on <i>other</i>.
  7640. */
  7641. public createTag_args(createTag_args other) {
  7642. if (other.isSetAuthenticationToken()) {
  7643. this.authenticationToken = other.authenticationToken;
  7644. }
  7645. if (other.isSetTag()) {
  7646. this.tag = new com.evernote.edam.type.Tag(other.tag);
  7647. }
  7648. }
  7649. public createTag_args deepCopy() {
  7650. return new createTag_args(this);
  7651. }
  7652. public void clear() {
  7653. this.authenticationToken = null;
  7654. this.tag = null;
  7655. }
  7656. public void setAuthenticationToken(String authenticationToken) {
  7657. this.authenticationToken = authenticationToken;
  7658. }
  7659. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  7660. public boolean isSetAuthenticationToken() {
  7661. return this.authenticationToken != null;
  7662. }
  7663. public void setTag(com.evernote.edam.type.Tag tag) {
  7664. this.tag = tag;
  7665. }
  7666. /** Returns true if field tag is set (has been asigned a value) and false otherwise */
  7667. public boolean isSetTag() {
  7668. return this.tag != null;
  7669. }
  7670. public int compareTo(createTag_args other) {
  7671. if (!getClass().equals(other.getClass())) {
  7672. return getClass().getName().compareTo(other.getClass().getName());
  7673. }
  7674. int lastComparison = 0;
  7675. createTag_args typedOther = (createTag_args)other;
  7676. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  7677. if (lastComparison != 0) {
  7678. return lastComparison;
  7679. }
  7680. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  7681. if (lastComparison != 0) {
  7682. return lastComparison;
  7683. }
  7684. }
  7685. lastComparison = Boolean.valueOf(isSetTag()).compareTo(typedOther.isSetTag());
  7686. if (lastComparison != 0) {
  7687. return lastComparison;
  7688. }
  7689. if (isSetTag()) { lastComparison = TBaseHelper.compareTo(this.tag, typedOther.tag);
  7690. if (lastComparison != 0) {
  7691. return lastComparison;
  7692. }
  7693. }
  7694. return 0;
  7695. }
  7696. public void read(TProtocol iprot) throws TException {
  7697. TField field;
  7698. iprot.readStructBegin();
  7699. while (true)
  7700. {
  7701. field = iprot.readFieldBegin();
  7702. if (field.type == TType.STOP) {
  7703. break;
  7704. }
  7705. switch (field.id) {
  7706. case 1: // AUTHENTICATION_TOKEN
  7707. if (field.type == TType.STRING) {
  7708. this.authenticationToken = iprot.readString();
  7709. } else {
  7710. TProtocolUtil.skip(iprot, field.type);
  7711. }
  7712. break;
  7713. case 2: // TAG
  7714. if (field.type == TType.STRUCT) {
  7715. this.tag = new com.evernote.edam.type.Tag();
  7716. this.tag.read(iprot);
  7717. } else {
  7718. TProtocolUtil.skip(iprot, field.type);
  7719. }
  7720. break;
  7721. default:
  7722. TProtocolUtil.skip(iprot, field.type);
  7723. }
  7724. iprot.readFieldEnd();
  7725. }
  7726. iprot.readStructEnd();
  7727. validate();
  7728. }
  7729. public void write(TProtocol oprot) throws TException {
  7730. validate();
  7731. oprot.writeStructBegin(STRUCT_DESC);
  7732. if (this.authenticationToken != null) {
  7733. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  7734. oprot.writeString(this.authenticationToken);
  7735. oprot.writeFieldEnd();
  7736. }
  7737. if (this.tag != null) {
  7738. oprot.writeFieldBegin(TAG_FIELD_DESC);
  7739. this.tag.write(oprot);
  7740. oprot.writeFieldEnd();
  7741. }
  7742. oprot.writeFieldStop();
  7743. oprot.writeStructEnd();
  7744. }
  7745. public void validate() throws TException {
  7746. // check for required fields
  7747. }
  7748. }
  7749. private static class createTag_result implements TBase<createTag_result>, java.io.Serializable, Cloneable {
  7750. private static final TStruct STRUCT_DESC = new TStruct("createTag_result");
  7751. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  7752. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  7753. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  7754. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  7755. private com.evernote.edam.type.Tag success;
  7756. private com.evernote.edam.error.EDAMUserException userException;
  7757. private com.evernote.edam.error.EDAMSystemException systemException;
  7758. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  7759. // isset id assignments
  7760. public createTag_result() {
  7761. }
  7762. /**
  7763. * Performs a deep copy on <i>other</i>.
  7764. */
  7765. public createTag_result(createTag_result other) {
  7766. if (other.isSetSuccess()) {
  7767. this.success = new com.evernote.edam.type.Tag(other.success);
  7768. }
  7769. if (other.isSetUserException()) {
  7770. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  7771. }
  7772. if (other.isSetSystemException()) {
  7773. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  7774. }
  7775. if (other.isSetNotFoundException()) {
  7776. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  7777. }
  7778. }
  7779. public createTag_result deepCopy() {
  7780. return new createTag_result(this);
  7781. }
  7782. public void clear() {
  7783. this.success = null;
  7784. this.userException = null;
  7785. this.systemException = null;
  7786. this.notFoundException = null;
  7787. }
  7788. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  7789. public boolean isSetSuccess() {
  7790. return this.success != null;
  7791. }
  7792. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  7793. public boolean isSetUserException() {
  7794. return this.userException != null;
  7795. }
  7796. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  7797. public boolean isSetSystemException() {
  7798. return this.systemException != null;
  7799. }
  7800. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  7801. public boolean isSetNotFoundException() {
  7802. return this.notFoundException != null;
  7803. }
  7804. public int compareTo(createTag_result other) {
  7805. if (!getClass().equals(other.getClass())) {
  7806. return getClass().getName().compareTo(other.getClass().getName());
  7807. }
  7808. int lastComparison = 0;
  7809. createTag_result typedOther = (createTag_result)other;
  7810. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  7811. if (lastComparison != 0) {
  7812. return lastComparison;
  7813. }
  7814. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  7815. if (lastComparison != 0) {
  7816. return lastComparison;
  7817. }
  7818. }
  7819. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  7820. if (lastComparison != 0) {
  7821. return lastComparison;
  7822. }
  7823. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  7824. if (lastComparison != 0) {
  7825. return lastComparison;
  7826. }
  7827. }
  7828. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  7829. if (lastComparison != 0) {
  7830. return lastComparison;
  7831. }
  7832. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  7833. if (lastComparison != 0) {
  7834. return lastComparison;
  7835. }
  7836. }
  7837. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  7838. if (lastComparison != 0) {
  7839. return lastComparison;
  7840. }
  7841. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  7842. if (lastComparison != 0) {
  7843. return lastComparison;
  7844. }
  7845. }
  7846. return 0;
  7847. }
  7848. public void read(TProtocol iprot) throws TException {
  7849. TField field;
  7850. iprot.readStructBegin();
  7851. while (true)
  7852. {
  7853. field = iprot.readFieldBegin();
  7854. if (field.type == TType.STOP) {
  7855. break;
  7856. }
  7857. switch (field.id) {
  7858. case 0: // SUCCESS
  7859. if (field.type == TType.STRUCT) {
  7860. this.success = new com.evernote.edam.type.Tag();
  7861. this.success.read(iprot);
  7862. } else {
  7863. TProtocolUtil.skip(iprot, field.type);
  7864. }
  7865. break;
  7866. case 1: // USER_EXCEPTION
  7867. if (field.type == TType.STRUCT) {
  7868. this.userException = new com.evernote.edam.error.EDAMUserException();
  7869. this.userException.read(iprot);
  7870. } else {
  7871. TProtocolUtil.skip(iprot, field.type);
  7872. }
  7873. break;
  7874. case 2: // SYSTEM_EXCEPTION
  7875. if (field.type == TType.STRUCT) {
  7876. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  7877. this.systemException.read(iprot);
  7878. } else {
  7879. TProtocolUtil.skip(iprot, field.type);
  7880. }
  7881. break;
  7882. case 3: // NOT_FOUND_EXCEPTION
  7883. if (field.type == TType.STRUCT) {
  7884. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  7885. this.notFoundException.read(iprot);
  7886. } else {
  7887. TProtocolUtil.skip(iprot, field.type);
  7888. }
  7889. break;
  7890. default:
  7891. TProtocolUtil.skip(iprot, field.type);
  7892. }
  7893. iprot.readFieldEnd();
  7894. }
  7895. iprot.readStructEnd();
  7896. validate();
  7897. }
  7898. public void write(TProtocol oprot) throws TException {
  7899. oprot.writeStructBegin(STRUCT_DESC);
  7900. if (this.isSetSuccess()) {
  7901. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  7902. this.success.write(oprot);
  7903. oprot.writeFieldEnd();
  7904. } else if (this.isSetUserException()) {
  7905. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  7906. this.userException.write(oprot);
  7907. oprot.writeFieldEnd();
  7908. } else if (this.isSetSystemException()) {
  7909. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  7910. this.systemException.write(oprot);
  7911. oprot.writeFieldEnd();
  7912. } else if (this.isSetNotFoundException()) {
  7913. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  7914. this.notFoundException.write(oprot);
  7915. oprot.writeFieldEnd();
  7916. }
  7917. oprot.writeFieldStop();
  7918. oprot.writeStructEnd();
  7919. }
  7920. public void validate() throws TException {
  7921. // check for required fields
  7922. }
  7923. }
  7924. private static class updateTag_args implements TBase<updateTag_args>, java.io.Serializable, Cloneable {
  7925. private static final TStruct STRUCT_DESC = new TStruct("updateTag_args");
  7926. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  7927. private static final TField TAG_FIELD_DESC = new TField("tag", TType.STRUCT, (short)2);
  7928. private String authenticationToken;
  7929. private com.evernote.edam.type.Tag tag;
  7930. // isset id assignments
  7931. public updateTag_args() {
  7932. }
  7933. /**
  7934. * Performs a deep copy on <i>other</i>.
  7935. */
  7936. public updateTag_args(updateTag_args other) {
  7937. if (other.isSetAuthenticationToken()) {
  7938. this.authenticationToken = other.authenticationToken;
  7939. }
  7940. if (other.isSetTag()) {
  7941. this.tag = new com.evernote.edam.type.Tag(other.tag);
  7942. }
  7943. }
  7944. public updateTag_args deepCopy() {
  7945. return new updateTag_args(this);
  7946. }
  7947. public void clear() {
  7948. this.authenticationToken = null;
  7949. this.tag = null;
  7950. }
  7951. public void setAuthenticationToken(String authenticationToken) {
  7952. this.authenticationToken = authenticationToken;
  7953. }
  7954. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  7955. public boolean isSetAuthenticationToken() {
  7956. return this.authenticationToken != null;
  7957. }
  7958. public void setTag(com.evernote.edam.type.Tag tag) {
  7959. this.tag = tag;
  7960. }
  7961. /** Returns true if field tag is set (has been asigned a value) and false otherwise */
  7962. public boolean isSetTag() {
  7963. return this.tag != null;
  7964. }
  7965. public int compareTo(updateTag_args other) {
  7966. if (!getClass().equals(other.getClass())) {
  7967. return getClass().getName().compareTo(other.getClass().getName());
  7968. }
  7969. int lastComparison = 0;
  7970. updateTag_args typedOther = (updateTag_args)other;
  7971. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  7972. if (lastComparison != 0) {
  7973. return lastComparison;
  7974. }
  7975. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  7976. if (lastComparison != 0) {
  7977. return lastComparison;
  7978. }
  7979. }
  7980. lastComparison = Boolean.valueOf(isSetTag()).compareTo(typedOther.isSetTag());
  7981. if (lastComparison != 0) {
  7982. return lastComparison;
  7983. }
  7984. if (isSetTag()) { lastComparison = TBaseHelper.compareTo(this.tag, typedOther.tag);
  7985. if (lastComparison != 0) {
  7986. return lastComparison;
  7987. }
  7988. }
  7989. return 0;
  7990. }
  7991. public void read(TProtocol iprot) throws TException {
  7992. TField field;
  7993. iprot.readStructBegin();
  7994. while (true)
  7995. {
  7996. field = iprot.readFieldBegin();
  7997. if (field.type == TType.STOP) {
  7998. break;
  7999. }
  8000. switch (field.id) {
  8001. case 1: // AUTHENTICATION_TOKEN
  8002. if (field.type == TType.STRING) {
  8003. this.authenticationToken = iprot.readString();
  8004. } else {
  8005. TProtocolUtil.skip(iprot, field.type);
  8006. }
  8007. break;
  8008. case 2: // TAG
  8009. if (field.type == TType.STRUCT) {
  8010. this.tag = new com.evernote.edam.type.Tag();
  8011. this.tag.read(iprot);
  8012. } else {
  8013. TProtocolUtil.skip(iprot, field.type);
  8014. }
  8015. break;
  8016. default:
  8017. TProtocolUtil.skip(iprot, field.type);
  8018. }
  8019. iprot.readFieldEnd();
  8020. }
  8021. iprot.readStructEnd();
  8022. validate();
  8023. }
  8024. public void write(TProtocol oprot) throws TException {
  8025. validate();
  8026. oprot.writeStructBegin(STRUCT_DESC);
  8027. if (this.authenticationToken != null) {
  8028. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  8029. oprot.writeString(this.authenticationToken);
  8030. oprot.writeFieldEnd();
  8031. }
  8032. if (this.tag != null) {
  8033. oprot.writeFieldBegin(TAG_FIELD_DESC);
  8034. this.tag.write(oprot);
  8035. oprot.writeFieldEnd();
  8036. }
  8037. oprot.writeFieldStop();
  8038. oprot.writeStructEnd();
  8039. }
  8040. public void validate() throws TException {
  8041. // check for required fields
  8042. }
  8043. }
  8044. private static class updateTag_result implements TBase<updateTag_result>, java.io.Serializable, Cloneable {
  8045. private static final TStruct STRUCT_DESC = new TStruct("updateTag_result");
  8046. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);
  8047. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  8048. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  8049. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  8050. private int success;
  8051. private com.evernote.edam.error.EDAMUserException userException;
  8052. private com.evernote.edam.error.EDAMSystemException systemException;
  8053. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  8054. // isset id assignments
  8055. private static final int __SUCCESS_ISSET_ID = 0;
  8056. private boolean[] __isset_vector = new boolean[1];
  8057. public updateTag_result() {
  8058. }
  8059. /**
  8060. * Performs a deep copy on <i>other</i>.
  8061. */
  8062. public updateTag_result(updateTag_result other) {
  8063. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  8064. this.success = other.success;
  8065. if (other.isSetUserException()) {
  8066. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  8067. }
  8068. if (other.isSetSystemException()) {
  8069. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  8070. }
  8071. if (other.isSetNotFoundException()) {
  8072. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  8073. }
  8074. }
  8075. public updateTag_result deepCopy() {
  8076. return new updateTag_result(this);
  8077. }
  8078. public void clear() {
  8079. setSuccessIsSet(false);
  8080. this.success = 0;
  8081. this.userException = null;
  8082. this.systemException = null;
  8083. this.notFoundException = null;
  8084. }
  8085. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  8086. public boolean isSetSuccess() {
  8087. return __isset_vector[__SUCCESS_ISSET_ID];
  8088. }
  8089. public void setSuccessIsSet(boolean value) {
  8090. __isset_vector[__SUCCESS_ISSET_ID] = value;
  8091. }
  8092. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  8093. public boolean isSetUserException() {
  8094. return this.userException != null;
  8095. }
  8096. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  8097. public boolean isSetSystemException() {
  8098. return this.systemException != null;
  8099. }
  8100. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  8101. public boolean isSetNotFoundException() {
  8102. return this.notFoundException != null;
  8103. }
  8104. public int compareTo(updateTag_result other) {
  8105. if (!getClass().equals(other.getClass())) {
  8106. return getClass().getName().compareTo(other.getClass().getName());
  8107. }
  8108. int lastComparison = 0;
  8109. updateTag_result typedOther = (updateTag_result)other;
  8110. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  8111. if (lastComparison != 0) {
  8112. return lastComparison;
  8113. }
  8114. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  8115. if (lastComparison != 0) {
  8116. return lastComparison;
  8117. }
  8118. }
  8119. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  8120. if (lastComparison != 0) {
  8121. return lastComparison;
  8122. }
  8123. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  8124. if (lastComparison != 0) {
  8125. return lastComparison;
  8126. }
  8127. }
  8128. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  8129. if (lastComparison != 0) {
  8130. return lastComparison;
  8131. }
  8132. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  8133. if (lastComparison != 0) {
  8134. return lastComparison;
  8135. }
  8136. }
  8137. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  8138. if (lastComparison != 0) {
  8139. return lastComparison;
  8140. }
  8141. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  8142. if (lastComparison != 0) {
  8143. return lastComparison;
  8144. }
  8145. }
  8146. return 0;
  8147. }
  8148. public void read(TProtocol iprot) throws TException {
  8149. TField field;
  8150. iprot.readStructBegin();
  8151. while (true)
  8152. {
  8153. field = iprot.readFieldBegin();
  8154. if (field.type == TType.STOP) {
  8155. break;
  8156. }
  8157. switch (field.id) {
  8158. case 0: // SUCCESS
  8159. if (field.type == TType.I32) {
  8160. this.success = iprot.readI32();
  8161. setSuccessIsSet(true);
  8162. } else {
  8163. TProtocolUtil.skip(iprot, field.type);
  8164. }
  8165. break;
  8166. case 1: // USER_EXCEPTION
  8167. if (field.type == TType.STRUCT) {
  8168. this.userException = new com.evernote.edam.error.EDAMUserException();
  8169. this.userException.read(iprot);
  8170. } else {
  8171. TProtocolUtil.skip(iprot, field.type);
  8172. }
  8173. break;
  8174. case 2: // SYSTEM_EXCEPTION
  8175. if (field.type == TType.STRUCT) {
  8176. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  8177. this.systemException.read(iprot);
  8178. } else {
  8179. TProtocolUtil.skip(iprot, field.type);
  8180. }
  8181. break;
  8182. case 3: // NOT_FOUND_EXCEPTION
  8183. if (field.type == TType.STRUCT) {
  8184. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  8185. this.notFoundException.read(iprot);
  8186. } else {
  8187. TProtocolUtil.skip(iprot, field.type);
  8188. }
  8189. break;
  8190. default:
  8191. TProtocolUtil.skip(iprot, field.type);
  8192. }
  8193. iprot.readFieldEnd();
  8194. }
  8195. iprot.readStructEnd();
  8196. validate();
  8197. }
  8198. public void write(TProtocol oprot) throws TException {
  8199. oprot.writeStructBegin(STRUCT_DESC);
  8200. if (this.isSetSuccess()) {
  8201. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  8202. oprot.writeI32(this.success);
  8203. oprot.writeFieldEnd();
  8204. } else if (this.isSetUserException()) {
  8205. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  8206. this.userException.write(oprot);
  8207. oprot.writeFieldEnd();
  8208. } else if (this.isSetSystemException()) {
  8209. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  8210. this.systemException.write(oprot);
  8211. oprot.writeFieldEnd();
  8212. } else if (this.isSetNotFoundException()) {
  8213. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  8214. this.notFoundException.write(oprot);
  8215. oprot.writeFieldEnd();
  8216. }
  8217. oprot.writeFieldStop();
  8218. oprot.writeStructEnd();
  8219. }
  8220. public void validate() throws TException {
  8221. // check for required fields
  8222. }
  8223. }
  8224. private static class untagAll_args implements TBase<untagAll_args>, java.io.Serializable, Cloneable {
  8225. private static final TStruct STRUCT_DESC = new TStruct("untagAll_args");
  8226. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  8227. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  8228. private String authenticationToken;
  8229. private String guid;
  8230. // isset id assignments
  8231. public untagAll_args() {
  8232. }
  8233. /**
  8234. * Performs a deep copy on <i>other</i>.
  8235. */
  8236. public untagAll_args(untagAll_args other) {
  8237. if (other.isSetAuthenticationToken()) {
  8238. this.authenticationToken = other.authenticationToken;
  8239. }
  8240. if (other.isSetGuid()) {
  8241. this.guid = other.guid;
  8242. }
  8243. }
  8244. public untagAll_args deepCopy() {
  8245. return new untagAll_args(this);
  8246. }
  8247. public void clear() {
  8248. this.authenticationToken = null;
  8249. this.guid = null;
  8250. }
  8251. public void setAuthenticationToken(String authenticationToken) {
  8252. this.authenticationToken = authenticationToken;
  8253. }
  8254. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  8255. public boolean isSetAuthenticationToken() {
  8256. return this.authenticationToken != null;
  8257. }
  8258. public void setGuid(String guid) {
  8259. this.guid = guid;
  8260. }
  8261. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  8262. public boolean isSetGuid() {
  8263. return this.guid != null;
  8264. }
  8265. public int compareTo(untagAll_args other) {
  8266. if (!getClass().equals(other.getClass())) {
  8267. return getClass().getName().compareTo(other.getClass().getName());
  8268. }
  8269. int lastComparison = 0;
  8270. untagAll_args typedOther = (untagAll_args)other;
  8271. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  8272. if (lastComparison != 0) {
  8273. return lastComparison;
  8274. }
  8275. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  8276. if (lastComparison != 0) {
  8277. return lastComparison;
  8278. }
  8279. }
  8280. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  8281. if (lastComparison != 0) {
  8282. return lastComparison;
  8283. }
  8284. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  8285. if (lastComparison != 0) {
  8286. return lastComparison;
  8287. }
  8288. }
  8289. return 0;
  8290. }
  8291. public void read(TProtocol iprot) throws TException {
  8292. TField field;
  8293. iprot.readStructBegin();
  8294. while (true)
  8295. {
  8296. field = iprot.readFieldBegin();
  8297. if (field.type == TType.STOP) {
  8298. break;
  8299. }
  8300. switch (field.id) {
  8301. case 1: // AUTHENTICATION_TOKEN
  8302. if (field.type == TType.STRING) {
  8303. this.authenticationToken = iprot.readString();
  8304. } else {
  8305. TProtocolUtil.skip(iprot, field.type);
  8306. }
  8307. break;
  8308. case 2: // GUID
  8309. if (field.type == TType.STRING) {
  8310. this.guid = iprot.readString();
  8311. } else {
  8312. TProtocolUtil.skip(iprot, field.type);
  8313. }
  8314. break;
  8315. default:
  8316. TProtocolUtil.skip(iprot, field.type);
  8317. }
  8318. iprot.readFieldEnd();
  8319. }
  8320. iprot.readStructEnd();
  8321. validate();
  8322. }
  8323. public void write(TProtocol oprot) throws TException {
  8324. validate();
  8325. oprot.writeStructBegin(STRUCT_DESC);
  8326. if (this.authenticationToken != null) {
  8327. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  8328. oprot.writeString(this.authenticationToken);
  8329. oprot.writeFieldEnd();
  8330. }
  8331. if (this.guid != null) {
  8332. oprot.writeFieldBegin(GUID_FIELD_DESC);
  8333. oprot.writeString(this.guid);
  8334. oprot.writeFieldEnd();
  8335. }
  8336. oprot.writeFieldStop();
  8337. oprot.writeStructEnd();
  8338. }
  8339. public void validate() throws TException {
  8340. // check for required fields
  8341. }
  8342. }
  8343. private static class untagAll_result implements TBase<untagAll_result>, java.io.Serializable, Cloneable {
  8344. private static final TStruct STRUCT_DESC = new TStruct("untagAll_result");
  8345. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  8346. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  8347. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  8348. private com.evernote.edam.error.EDAMUserException userException;
  8349. private com.evernote.edam.error.EDAMSystemException systemException;
  8350. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  8351. // isset id assignments
  8352. public untagAll_result() {
  8353. }
  8354. /**
  8355. * Performs a deep copy on <i>other</i>.
  8356. */
  8357. public untagAll_result(untagAll_result other) {
  8358. if (other.isSetUserException()) {
  8359. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  8360. }
  8361. if (other.isSetSystemException()) {
  8362. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  8363. }
  8364. if (other.isSetNotFoundException()) {
  8365. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  8366. }
  8367. }
  8368. public untagAll_result deepCopy() {
  8369. return new untagAll_result(this);
  8370. }
  8371. public void clear() {
  8372. this.userException = null;
  8373. this.systemException = null;
  8374. this.notFoundException = null;
  8375. }
  8376. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  8377. public boolean isSetUserException() {
  8378. return this.userException != null;
  8379. }
  8380. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  8381. public boolean isSetSystemException() {
  8382. return this.systemException != null;
  8383. }
  8384. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  8385. public boolean isSetNotFoundException() {
  8386. return this.notFoundException != null;
  8387. }
  8388. public int compareTo(untagAll_result other) {
  8389. if (!getClass().equals(other.getClass())) {
  8390. return getClass().getName().compareTo(other.getClass().getName());
  8391. }
  8392. int lastComparison = 0;
  8393. untagAll_result typedOther = (untagAll_result)other;
  8394. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  8395. if (lastComparison != 0) {
  8396. return lastComparison;
  8397. }
  8398. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  8399. if (lastComparison != 0) {
  8400. return lastComparison;
  8401. }
  8402. }
  8403. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  8404. if (lastComparison != 0) {
  8405. return lastComparison;
  8406. }
  8407. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  8408. if (lastComparison != 0) {
  8409. return lastComparison;
  8410. }
  8411. }
  8412. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  8413. if (lastComparison != 0) {
  8414. return lastComparison;
  8415. }
  8416. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  8417. if (lastComparison != 0) {
  8418. return lastComparison;
  8419. }
  8420. }
  8421. return 0;
  8422. }
  8423. public void read(TProtocol iprot) throws TException {
  8424. TField field;
  8425. iprot.readStructBegin();
  8426. while (true)
  8427. {
  8428. field = iprot.readFieldBegin();
  8429. if (field.type == TType.STOP) {
  8430. break;
  8431. }
  8432. switch (field.id) {
  8433. case 1: // USER_EXCEPTION
  8434. if (field.type == TType.STRUCT) {
  8435. this.userException = new com.evernote.edam.error.EDAMUserException();
  8436. this.userException.read(iprot);
  8437. } else {
  8438. TProtocolUtil.skip(iprot, field.type);
  8439. }
  8440. break;
  8441. case 2: // SYSTEM_EXCEPTION
  8442. if (field.type == TType.STRUCT) {
  8443. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  8444. this.systemException.read(iprot);
  8445. } else {
  8446. TProtocolUtil.skip(iprot, field.type);
  8447. }
  8448. break;
  8449. case 3: // NOT_FOUND_EXCEPTION
  8450. if (field.type == TType.STRUCT) {
  8451. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  8452. this.notFoundException.read(iprot);
  8453. } else {
  8454. TProtocolUtil.skip(iprot, field.type);
  8455. }
  8456. break;
  8457. default:
  8458. TProtocolUtil.skip(iprot, field.type);
  8459. }
  8460. iprot.readFieldEnd();
  8461. }
  8462. iprot.readStructEnd();
  8463. validate();
  8464. }
  8465. public void write(TProtocol oprot) throws TException {
  8466. oprot.writeStructBegin(STRUCT_DESC);
  8467. if (this.isSetUserException()) {
  8468. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  8469. this.userException.write(oprot);
  8470. oprot.writeFieldEnd();
  8471. } else if (this.isSetSystemException()) {
  8472. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  8473. this.systemException.write(oprot);
  8474. oprot.writeFieldEnd();
  8475. } else if (this.isSetNotFoundException()) {
  8476. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  8477. this.notFoundException.write(oprot);
  8478. oprot.writeFieldEnd();
  8479. }
  8480. oprot.writeFieldStop();
  8481. oprot.writeStructEnd();
  8482. }
  8483. public void validate() throws TException {
  8484. // check for required fields
  8485. }
  8486. }
  8487. private static class expungeTag_args implements TBase<expungeTag_args>, java.io.Serializable, Cloneable {
  8488. private static final TStruct STRUCT_DESC = new TStruct("expungeTag_args");
  8489. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  8490. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  8491. private String authenticationToken;
  8492. private String guid;
  8493. // isset id assignments
  8494. public expungeTag_args() {
  8495. }
  8496. /**
  8497. * Performs a deep copy on <i>other</i>.
  8498. */
  8499. public expungeTag_args(expungeTag_args other) {
  8500. if (other.isSetAuthenticationToken()) {
  8501. this.authenticationToken = other.authenticationToken;
  8502. }
  8503. if (other.isSetGuid()) {
  8504. this.guid = other.guid;
  8505. }
  8506. }
  8507. public expungeTag_args deepCopy() {
  8508. return new expungeTag_args(this);
  8509. }
  8510. public void clear() {
  8511. this.authenticationToken = null;
  8512. this.guid = null;
  8513. }
  8514. public void setAuthenticationToken(String authenticationToken) {
  8515. this.authenticationToken = authenticationToken;
  8516. }
  8517. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  8518. public boolean isSetAuthenticationToken() {
  8519. return this.authenticationToken != null;
  8520. }
  8521. public void setGuid(String guid) {
  8522. this.guid = guid;
  8523. }
  8524. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  8525. public boolean isSetGuid() {
  8526. return this.guid != null;
  8527. }
  8528. public int compareTo(expungeTag_args other) {
  8529. if (!getClass().equals(other.getClass())) {
  8530. return getClass().getName().compareTo(other.getClass().getName());
  8531. }
  8532. int lastComparison = 0;
  8533. expungeTag_args typedOther = (expungeTag_args)other;
  8534. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  8535. if (lastComparison != 0) {
  8536. return lastComparison;
  8537. }
  8538. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  8539. if (lastComparison != 0) {
  8540. return lastComparison;
  8541. }
  8542. }
  8543. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  8544. if (lastComparison != 0) {
  8545. return lastComparison;
  8546. }
  8547. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  8548. if (lastComparison != 0) {
  8549. return lastComparison;
  8550. }
  8551. }
  8552. return 0;
  8553. }
  8554. public void read(TProtocol iprot) throws TException {
  8555. TField field;
  8556. iprot.readStructBegin();
  8557. while (true)
  8558. {
  8559. field = iprot.readFieldBegin();
  8560. if (field.type == TType.STOP) {
  8561. break;
  8562. }
  8563. switch (field.id) {
  8564. case 1: // AUTHENTICATION_TOKEN
  8565. if (field.type == TType.STRING) {
  8566. this.authenticationToken = iprot.readString();
  8567. } else {
  8568. TProtocolUtil.skip(iprot, field.type);
  8569. }
  8570. break;
  8571. case 2: // GUID
  8572. if (field.type == TType.STRING) {
  8573. this.guid = iprot.readString();
  8574. } else {
  8575. TProtocolUtil.skip(iprot, field.type);
  8576. }
  8577. break;
  8578. default:
  8579. TProtocolUtil.skip(iprot, field.type);
  8580. }
  8581. iprot.readFieldEnd();
  8582. }
  8583. iprot.readStructEnd();
  8584. validate();
  8585. }
  8586. public void write(TProtocol oprot) throws TException {
  8587. validate();
  8588. oprot.writeStructBegin(STRUCT_DESC);
  8589. if (this.authenticationToken != null) {
  8590. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  8591. oprot.writeString(this.authenticationToken);
  8592. oprot.writeFieldEnd();
  8593. }
  8594. if (this.guid != null) {
  8595. oprot.writeFieldBegin(GUID_FIELD_DESC);
  8596. oprot.writeString(this.guid);
  8597. oprot.writeFieldEnd();
  8598. }
  8599. oprot.writeFieldStop();
  8600. oprot.writeStructEnd();
  8601. }
  8602. public void validate() throws TException {
  8603. // check for required fields
  8604. }
  8605. }
  8606. private static class expungeTag_result implements TBase<expungeTag_result>, java.io.Serializable, Cloneable {
  8607. private static final TStruct STRUCT_DESC = new TStruct("expungeTag_result");
  8608. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);
  8609. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  8610. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  8611. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  8612. private int success;
  8613. private com.evernote.edam.error.EDAMUserException userException;
  8614. private com.evernote.edam.error.EDAMSystemException systemException;
  8615. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  8616. // isset id assignments
  8617. private static final int __SUCCESS_ISSET_ID = 0;
  8618. private boolean[] __isset_vector = new boolean[1];
  8619. public expungeTag_result() {
  8620. }
  8621. /**
  8622. * Performs a deep copy on <i>other</i>.
  8623. */
  8624. public expungeTag_result(expungeTag_result other) {
  8625. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  8626. this.success = other.success;
  8627. if (other.isSetUserException()) {
  8628. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  8629. }
  8630. if (other.isSetSystemException()) {
  8631. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  8632. }
  8633. if (other.isSetNotFoundException()) {
  8634. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  8635. }
  8636. }
  8637. public expungeTag_result deepCopy() {
  8638. return new expungeTag_result(this);
  8639. }
  8640. public void clear() {
  8641. setSuccessIsSet(false);
  8642. this.success = 0;
  8643. this.userException = null;
  8644. this.systemException = null;
  8645. this.notFoundException = null;
  8646. }
  8647. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  8648. public boolean isSetSuccess() {
  8649. return __isset_vector[__SUCCESS_ISSET_ID];
  8650. }
  8651. public void setSuccessIsSet(boolean value) {
  8652. __isset_vector[__SUCCESS_ISSET_ID] = value;
  8653. }
  8654. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  8655. public boolean isSetUserException() {
  8656. return this.userException != null;
  8657. }
  8658. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  8659. public boolean isSetSystemException() {
  8660. return this.systemException != null;
  8661. }
  8662. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  8663. public boolean isSetNotFoundException() {
  8664. return this.notFoundException != null;
  8665. }
  8666. public int compareTo(expungeTag_result other) {
  8667. if (!getClass().equals(other.getClass())) {
  8668. return getClass().getName().compareTo(other.getClass().getName());
  8669. }
  8670. int lastComparison = 0;
  8671. expungeTag_result typedOther = (expungeTag_result)other;
  8672. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  8673. if (lastComparison != 0) {
  8674. return lastComparison;
  8675. }
  8676. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  8677. if (lastComparison != 0) {
  8678. return lastComparison;
  8679. }
  8680. }
  8681. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  8682. if (lastComparison != 0) {
  8683. return lastComparison;
  8684. }
  8685. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  8686. if (lastComparison != 0) {
  8687. return lastComparison;
  8688. }
  8689. }
  8690. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  8691. if (lastComparison != 0) {
  8692. return lastComparison;
  8693. }
  8694. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  8695. if (lastComparison != 0) {
  8696. return lastComparison;
  8697. }
  8698. }
  8699. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  8700. if (lastComparison != 0) {
  8701. return lastComparison;
  8702. }
  8703. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  8704. if (lastComparison != 0) {
  8705. return lastComparison;
  8706. }
  8707. }
  8708. return 0;
  8709. }
  8710. public void read(TProtocol iprot) throws TException {
  8711. TField field;
  8712. iprot.readStructBegin();
  8713. while (true)
  8714. {
  8715. field = iprot.readFieldBegin();
  8716. if (field.type == TType.STOP) {
  8717. break;
  8718. }
  8719. switch (field.id) {
  8720. case 0: // SUCCESS
  8721. if (field.type == TType.I32) {
  8722. this.success = iprot.readI32();
  8723. setSuccessIsSet(true);
  8724. } else {
  8725. TProtocolUtil.skip(iprot, field.type);
  8726. }
  8727. break;
  8728. case 1: // USER_EXCEPTION
  8729. if (field.type == TType.STRUCT) {
  8730. this.userException = new com.evernote.edam.error.EDAMUserException();
  8731. this.userException.read(iprot);
  8732. } else {
  8733. TProtocolUtil.skip(iprot, field.type);
  8734. }
  8735. break;
  8736. case 2: // SYSTEM_EXCEPTION
  8737. if (field.type == TType.STRUCT) {
  8738. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  8739. this.systemException.read(iprot);
  8740. } else {
  8741. TProtocolUtil.skip(iprot, field.type);
  8742. }
  8743. break;
  8744. case 3: // NOT_FOUND_EXCEPTION
  8745. if (field.type == TType.STRUCT) {
  8746. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  8747. this.notFoundException.read(iprot);
  8748. } else {
  8749. TProtocolUtil.skip(iprot, field.type);
  8750. }
  8751. break;
  8752. default:
  8753. TProtocolUtil.skip(iprot, field.type);
  8754. }
  8755. iprot.readFieldEnd();
  8756. }
  8757. iprot.readStructEnd();
  8758. validate();
  8759. }
  8760. public void write(TProtocol oprot) throws TException {
  8761. oprot.writeStructBegin(STRUCT_DESC);
  8762. if (this.isSetSuccess()) {
  8763. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  8764. oprot.writeI32(this.success);
  8765. oprot.writeFieldEnd();
  8766. } else if (this.isSetUserException()) {
  8767. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  8768. this.userException.write(oprot);
  8769. oprot.writeFieldEnd();
  8770. } else if (this.isSetSystemException()) {
  8771. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  8772. this.systemException.write(oprot);
  8773. oprot.writeFieldEnd();
  8774. } else if (this.isSetNotFoundException()) {
  8775. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  8776. this.notFoundException.write(oprot);
  8777. oprot.writeFieldEnd();
  8778. }
  8779. oprot.writeFieldStop();
  8780. oprot.writeStructEnd();
  8781. }
  8782. public void validate() throws TException {
  8783. // check for required fields
  8784. }
  8785. }
  8786. private static class listSearches_args implements TBase<listSearches_args>, java.io.Serializable, Cloneable {
  8787. private static final TStruct STRUCT_DESC = new TStruct("listSearches_args");
  8788. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  8789. private String authenticationToken;
  8790. // isset id assignments
  8791. public listSearches_args() {
  8792. }
  8793. /**
  8794. * Performs a deep copy on <i>other</i>.
  8795. */
  8796. public listSearches_args(listSearches_args other) {
  8797. if (other.isSetAuthenticationToken()) {
  8798. this.authenticationToken = other.authenticationToken;
  8799. }
  8800. }
  8801. public listSearches_args deepCopy() {
  8802. return new listSearches_args(this);
  8803. }
  8804. public void clear() {
  8805. this.authenticationToken = null;
  8806. }
  8807. public void setAuthenticationToken(String authenticationToken) {
  8808. this.authenticationToken = authenticationToken;
  8809. }
  8810. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  8811. public boolean isSetAuthenticationToken() {
  8812. return this.authenticationToken != null;
  8813. }
  8814. public int compareTo(listSearches_args other) {
  8815. if (!getClass().equals(other.getClass())) {
  8816. return getClass().getName().compareTo(other.getClass().getName());
  8817. }
  8818. int lastComparison = 0;
  8819. listSearches_args typedOther = (listSearches_args)other;
  8820. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  8821. if (lastComparison != 0) {
  8822. return lastComparison;
  8823. }
  8824. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  8825. if (lastComparison != 0) {
  8826. return lastComparison;
  8827. }
  8828. }
  8829. return 0;
  8830. }
  8831. public void read(TProtocol iprot) throws TException {
  8832. TField field;
  8833. iprot.readStructBegin();
  8834. while (true)
  8835. {
  8836. field = iprot.readFieldBegin();
  8837. if (field.type == TType.STOP) {
  8838. break;
  8839. }
  8840. switch (field.id) {
  8841. case 1: // AUTHENTICATION_TOKEN
  8842. if (field.type == TType.STRING) {
  8843. this.authenticationToken = iprot.readString();
  8844. } else {
  8845. TProtocolUtil.skip(iprot, field.type);
  8846. }
  8847. break;
  8848. default:
  8849. TProtocolUtil.skip(iprot, field.type);
  8850. }
  8851. iprot.readFieldEnd();
  8852. }
  8853. iprot.readStructEnd();
  8854. validate();
  8855. }
  8856. public void write(TProtocol oprot) throws TException {
  8857. validate();
  8858. oprot.writeStructBegin(STRUCT_DESC);
  8859. if (this.authenticationToken != null) {
  8860. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  8861. oprot.writeString(this.authenticationToken);
  8862. oprot.writeFieldEnd();
  8863. }
  8864. oprot.writeFieldStop();
  8865. oprot.writeStructEnd();
  8866. }
  8867. public void validate() throws TException {
  8868. // check for required fields
  8869. }
  8870. }
  8871. private static class listSearches_result implements TBase<listSearches_result>, java.io.Serializable, Cloneable {
  8872. private static final TStruct STRUCT_DESC = new TStruct("listSearches_result");
  8873. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
  8874. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  8875. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  8876. private List<com.evernote.edam.type.SavedSearch> success;
  8877. private com.evernote.edam.error.EDAMUserException userException;
  8878. private com.evernote.edam.error.EDAMSystemException systemException;
  8879. // isset id assignments
  8880. public listSearches_result() {
  8881. }
  8882. /**
  8883. * Performs a deep copy on <i>other</i>.
  8884. */
  8885. public listSearches_result(listSearches_result other) {
  8886. if (other.isSetSuccess()) {
  8887. List<com.evernote.edam.type.SavedSearch> __this__success = new ArrayList<com.evernote.edam.type.SavedSearch>();
  8888. for (com.evernote.edam.type.SavedSearch other_element : other.success) {
  8889. __this__success.add(new com.evernote.edam.type.SavedSearch(other_element));
  8890. }
  8891. this.success = __this__success;
  8892. }
  8893. if (other.isSetUserException()) {
  8894. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  8895. }
  8896. if (other.isSetSystemException()) {
  8897. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  8898. }
  8899. }
  8900. public listSearches_result deepCopy() {
  8901. return new listSearches_result(this);
  8902. }
  8903. public void clear() {
  8904. this.success = null;
  8905. this.userException = null;
  8906. this.systemException = null;
  8907. }
  8908. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  8909. public boolean isSetSuccess() {
  8910. return this.success != null;
  8911. }
  8912. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  8913. public boolean isSetUserException() {
  8914. return this.userException != null;
  8915. }
  8916. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  8917. public boolean isSetSystemException() {
  8918. return this.systemException != null;
  8919. }
  8920. public int compareTo(listSearches_result other) {
  8921. if (!getClass().equals(other.getClass())) {
  8922. return getClass().getName().compareTo(other.getClass().getName());
  8923. }
  8924. int lastComparison = 0;
  8925. listSearches_result typedOther = (listSearches_result)other;
  8926. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  8927. if (lastComparison != 0) {
  8928. return lastComparison;
  8929. }
  8930. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  8931. if (lastComparison != 0) {
  8932. return lastComparison;
  8933. }
  8934. }
  8935. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  8936. if (lastComparison != 0) {
  8937. return lastComparison;
  8938. }
  8939. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  8940. if (lastComparison != 0) {
  8941. return lastComparison;
  8942. }
  8943. }
  8944. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  8945. if (lastComparison != 0) {
  8946. return lastComparison;
  8947. }
  8948. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  8949. if (lastComparison != 0) {
  8950. return lastComparison;
  8951. }
  8952. }
  8953. return 0;
  8954. }
  8955. public void read(TProtocol iprot) throws TException {
  8956. TField field;
  8957. iprot.readStructBegin();
  8958. while (true)
  8959. {
  8960. field = iprot.readFieldBegin();
  8961. if (field.type == TType.STOP) {
  8962. break;
  8963. }
  8964. switch (field.id) {
  8965. case 0: // SUCCESS
  8966. if (field.type == TType.LIST) {
  8967. {
  8968. TList _list122 = iprot.readListBegin();
  8969. this.success = new ArrayList<com.evernote.edam.type.SavedSearch>(_list122.size);
  8970. for (int _i123 = 0; _i123 < _list122.size; ++_i123)
  8971. {
  8972. com.evernote.edam.type.SavedSearch _elem124;
  8973. _elem124 = new com.evernote.edam.type.SavedSearch();
  8974. _elem124.read(iprot);
  8975. this.success.add(_elem124);
  8976. }
  8977. iprot.readListEnd();
  8978. }
  8979. } else {
  8980. TProtocolUtil.skip(iprot, field.type);
  8981. }
  8982. break;
  8983. case 1: // USER_EXCEPTION
  8984. if (field.type == TType.STRUCT) {
  8985. this.userException = new com.evernote.edam.error.EDAMUserException();
  8986. this.userException.read(iprot);
  8987. } else {
  8988. TProtocolUtil.skip(iprot, field.type);
  8989. }
  8990. break;
  8991. case 2: // SYSTEM_EXCEPTION
  8992. if (field.type == TType.STRUCT) {
  8993. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  8994. this.systemException.read(iprot);
  8995. } else {
  8996. TProtocolUtil.skip(iprot, field.type);
  8997. }
  8998. break;
  8999. default:
  9000. TProtocolUtil.skip(iprot, field.type);
  9001. }
  9002. iprot.readFieldEnd();
  9003. }
  9004. iprot.readStructEnd();
  9005. validate();
  9006. }
  9007. public void write(TProtocol oprot) throws TException {
  9008. oprot.writeStructBegin(STRUCT_DESC);
  9009. if (this.isSetSuccess()) {
  9010. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  9011. {
  9012. oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
  9013. for (com.evernote.edam.type.SavedSearch _iter125 : this.success)
  9014. {
  9015. _iter125.write(oprot);
  9016. }
  9017. oprot.writeListEnd();
  9018. }
  9019. oprot.writeFieldEnd();
  9020. } else if (this.isSetUserException()) {
  9021. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  9022. this.userException.write(oprot);
  9023. oprot.writeFieldEnd();
  9024. } else if (this.isSetSystemException()) {
  9025. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  9026. this.systemException.write(oprot);
  9027. oprot.writeFieldEnd();
  9028. }
  9029. oprot.writeFieldStop();
  9030. oprot.writeStructEnd();
  9031. }
  9032. public void validate() throws TException {
  9033. // check for required fields
  9034. }
  9035. }
  9036. private static class getSearch_args implements TBase<getSearch_args>, java.io.Serializable, Cloneable {
  9037. private static final TStruct STRUCT_DESC = new TStruct("getSearch_args");
  9038. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  9039. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  9040. private String authenticationToken;
  9041. private String guid;
  9042. // isset id assignments
  9043. public getSearch_args() {
  9044. }
  9045. /**
  9046. * Performs a deep copy on <i>other</i>.
  9047. */
  9048. public getSearch_args(getSearch_args other) {
  9049. if (other.isSetAuthenticationToken()) {
  9050. this.authenticationToken = other.authenticationToken;
  9051. }
  9052. if (other.isSetGuid()) {
  9053. this.guid = other.guid;
  9054. }
  9055. }
  9056. public getSearch_args deepCopy() {
  9057. return new getSearch_args(this);
  9058. }
  9059. public void clear() {
  9060. this.authenticationToken = null;
  9061. this.guid = null;
  9062. }
  9063. public void setAuthenticationToken(String authenticationToken) {
  9064. this.authenticationToken = authenticationToken;
  9065. }
  9066. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  9067. public boolean isSetAuthenticationToken() {
  9068. return this.authenticationToken != null;
  9069. }
  9070. public void setGuid(String guid) {
  9071. this.guid = guid;
  9072. }
  9073. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  9074. public boolean isSetGuid() {
  9075. return this.guid != null;
  9076. }
  9077. public int compareTo(getSearch_args other) {
  9078. if (!getClass().equals(other.getClass())) {
  9079. return getClass().getName().compareTo(other.getClass().getName());
  9080. }
  9081. int lastComparison = 0;
  9082. getSearch_args typedOther = (getSearch_args)other;
  9083. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  9084. if (lastComparison != 0) {
  9085. return lastComparison;
  9086. }
  9087. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  9088. if (lastComparison != 0) {
  9089. return lastComparison;
  9090. }
  9091. }
  9092. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  9093. if (lastComparison != 0) {
  9094. return lastComparison;
  9095. }
  9096. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  9097. if (lastComparison != 0) {
  9098. return lastComparison;
  9099. }
  9100. }
  9101. return 0;
  9102. }
  9103. public void read(TProtocol iprot) throws TException {
  9104. TField field;
  9105. iprot.readStructBegin();
  9106. while (true)
  9107. {
  9108. field = iprot.readFieldBegin();
  9109. if (field.type == TType.STOP) {
  9110. break;
  9111. }
  9112. switch (field.id) {
  9113. case 1: // AUTHENTICATION_TOKEN
  9114. if (field.type == TType.STRING) {
  9115. this.authenticationToken = iprot.readString();
  9116. } else {
  9117. TProtocolUtil.skip(iprot, field.type);
  9118. }
  9119. break;
  9120. case 2: // GUID
  9121. if (field.type == TType.STRING) {
  9122. this.guid = iprot.readString();
  9123. } else {
  9124. TProtocolUtil.skip(iprot, field.type);
  9125. }
  9126. break;
  9127. default:
  9128. TProtocolUtil.skip(iprot, field.type);
  9129. }
  9130. iprot.readFieldEnd();
  9131. }
  9132. iprot.readStructEnd();
  9133. validate();
  9134. }
  9135. public void write(TProtocol oprot) throws TException {
  9136. validate();
  9137. oprot.writeStructBegin(STRUCT_DESC);
  9138. if (this.authenticationToken != null) {
  9139. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  9140. oprot.writeString(this.authenticationToken);
  9141. oprot.writeFieldEnd();
  9142. }
  9143. if (this.guid != null) {
  9144. oprot.writeFieldBegin(GUID_FIELD_DESC);
  9145. oprot.writeString(this.guid);
  9146. oprot.writeFieldEnd();
  9147. }
  9148. oprot.writeFieldStop();
  9149. oprot.writeStructEnd();
  9150. }
  9151. public void validate() throws TException {
  9152. // check for required fields
  9153. }
  9154. }
  9155. private static class getSearch_result implements TBase<getSearch_result>, java.io.Serializable, Cloneable {
  9156. private static final TStruct STRUCT_DESC = new TStruct("getSearch_result");
  9157. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  9158. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  9159. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  9160. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  9161. private com.evernote.edam.type.SavedSearch success;
  9162. private com.evernote.edam.error.EDAMUserException userException;
  9163. private com.evernote.edam.error.EDAMSystemException systemException;
  9164. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  9165. // isset id assignments
  9166. public getSearch_result() {
  9167. }
  9168. /**
  9169. * Performs a deep copy on <i>other</i>.
  9170. */
  9171. public getSearch_result(getSearch_result other) {
  9172. if (other.isSetSuccess()) {
  9173. this.success = new com.evernote.edam.type.SavedSearch(other.success);
  9174. }
  9175. if (other.isSetUserException()) {
  9176. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  9177. }
  9178. if (other.isSetSystemException()) {
  9179. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  9180. }
  9181. if (other.isSetNotFoundException()) {
  9182. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  9183. }
  9184. }
  9185. public getSearch_result deepCopy() {
  9186. return new getSearch_result(this);
  9187. }
  9188. public void clear() {
  9189. this.success = null;
  9190. this.userException = null;
  9191. this.systemException = null;
  9192. this.notFoundException = null;
  9193. }
  9194. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  9195. public boolean isSetSuccess() {
  9196. return this.success != null;
  9197. }
  9198. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  9199. public boolean isSetUserException() {
  9200. return this.userException != null;
  9201. }
  9202. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  9203. public boolean isSetSystemException() {
  9204. return this.systemException != null;
  9205. }
  9206. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  9207. public boolean isSetNotFoundException() {
  9208. return this.notFoundException != null;
  9209. }
  9210. public int compareTo(getSearch_result other) {
  9211. if (!getClass().equals(other.getClass())) {
  9212. return getClass().getName().compareTo(other.getClass().getName());
  9213. }
  9214. int lastComparison = 0;
  9215. getSearch_result typedOther = (getSearch_result)other;
  9216. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  9217. if (lastComparison != 0) {
  9218. return lastComparison;
  9219. }
  9220. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  9221. if (lastComparison != 0) {
  9222. return lastComparison;
  9223. }
  9224. }
  9225. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  9226. if (lastComparison != 0) {
  9227. return lastComparison;
  9228. }
  9229. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  9230. if (lastComparison != 0) {
  9231. return lastComparison;
  9232. }
  9233. }
  9234. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  9235. if (lastComparison != 0) {
  9236. return lastComparison;
  9237. }
  9238. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  9239. if (lastComparison != 0) {
  9240. return lastComparison;
  9241. }
  9242. }
  9243. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  9244. if (lastComparison != 0) {
  9245. return lastComparison;
  9246. }
  9247. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  9248. if (lastComparison != 0) {
  9249. return lastComparison;
  9250. }
  9251. }
  9252. return 0;
  9253. }
  9254. public void read(TProtocol iprot) throws TException {
  9255. TField field;
  9256. iprot.readStructBegin();
  9257. while (true)
  9258. {
  9259. field = iprot.readFieldBegin();
  9260. if (field.type == TType.STOP) {
  9261. break;
  9262. }
  9263. switch (field.id) {
  9264. case 0: // SUCCESS
  9265. if (field.type == TType.STRUCT) {
  9266. this.success = new com.evernote.edam.type.SavedSearch();
  9267. this.success.read(iprot);
  9268. } else {
  9269. TProtocolUtil.skip(iprot, field.type);
  9270. }
  9271. break;
  9272. case 1: // USER_EXCEPTION
  9273. if (field.type == TType.STRUCT) {
  9274. this.userException = new com.evernote.edam.error.EDAMUserException();
  9275. this.userException.read(iprot);
  9276. } else {
  9277. TProtocolUtil.skip(iprot, field.type);
  9278. }
  9279. break;
  9280. case 2: // SYSTEM_EXCEPTION
  9281. if (field.type == TType.STRUCT) {
  9282. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  9283. this.systemException.read(iprot);
  9284. } else {
  9285. TProtocolUtil.skip(iprot, field.type);
  9286. }
  9287. break;
  9288. case 3: // NOT_FOUND_EXCEPTION
  9289. if (field.type == TType.STRUCT) {
  9290. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  9291. this.notFoundException.read(iprot);
  9292. } else {
  9293. TProtocolUtil.skip(iprot, field.type);
  9294. }
  9295. break;
  9296. default:
  9297. TProtocolUtil.skip(iprot, field.type);
  9298. }
  9299. iprot.readFieldEnd();
  9300. }
  9301. iprot.readStructEnd();
  9302. validate();
  9303. }
  9304. public void write(TProtocol oprot) throws TException {
  9305. oprot.writeStructBegin(STRUCT_DESC);
  9306. if (this.isSetSuccess()) {
  9307. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  9308. this.success.write(oprot);
  9309. oprot.writeFieldEnd();
  9310. } else if (this.isSetUserException()) {
  9311. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  9312. this.userException.write(oprot);
  9313. oprot.writeFieldEnd();
  9314. } else if (this.isSetSystemException()) {
  9315. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  9316. this.systemException.write(oprot);
  9317. oprot.writeFieldEnd();
  9318. } else if (this.isSetNotFoundException()) {
  9319. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  9320. this.notFoundException.write(oprot);
  9321. oprot.writeFieldEnd();
  9322. }
  9323. oprot.writeFieldStop();
  9324. oprot.writeStructEnd();
  9325. }
  9326. public void validate() throws TException {
  9327. // check for required fields
  9328. }
  9329. }
  9330. private static class createSearch_args implements TBase<createSearch_args>, java.io.Serializable, Cloneable {
  9331. private static final TStruct STRUCT_DESC = new TStruct("createSearch_args");
  9332. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  9333. private static final TField SEARCH_FIELD_DESC = new TField("search", TType.STRUCT, (short)2);
  9334. private String authenticationToken;
  9335. private com.evernote.edam.type.SavedSearch search;
  9336. // isset id assignments
  9337. public createSearch_args() {
  9338. }
  9339. /**
  9340. * Performs a deep copy on <i>other</i>.
  9341. */
  9342. public createSearch_args(createSearch_args other) {
  9343. if (other.isSetAuthenticationToken()) {
  9344. this.authenticationToken = other.authenticationToken;
  9345. }
  9346. if (other.isSetSearch()) {
  9347. this.search = new com.evernote.edam.type.SavedSearch(other.search);
  9348. }
  9349. }
  9350. public createSearch_args deepCopy() {
  9351. return new createSearch_args(this);
  9352. }
  9353. public void clear() {
  9354. this.authenticationToken = null;
  9355. this.search = null;
  9356. }
  9357. public void setAuthenticationToken(String authenticationToken) {
  9358. this.authenticationToken = authenticationToken;
  9359. }
  9360. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  9361. public boolean isSetAuthenticationToken() {
  9362. return this.authenticationToken != null;
  9363. }
  9364. public void setSearch(com.evernote.edam.type.SavedSearch search) {
  9365. this.search = search;
  9366. }
  9367. /** Returns true if field search is set (has been asigned a value) and false otherwise */
  9368. public boolean isSetSearch() {
  9369. return this.search != null;
  9370. }
  9371. public int compareTo(createSearch_args other) {
  9372. if (!getClass().equals(other.getClass())) {
  9373. return getClass().getName().compareTo(other.getClass().getName());
  9374. }
  9375. int lastComparison = 0;
  9376. createSearch_args typedOther = (createSearch_args)other;
  9377. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  9378. if (lastComparison != 0) {
  9379. return lastComparison;
  9380. }
  9381. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  9382. if (lastComparison != 0) {
  9383. return lastComparison;
  9384. }
  9385. }
  9386. lastComparison = Boolean.valueOf(isSetSearch()).compareTo(typedOther.isSetSearch());
  9387. if (lastComparison != 0) {
  9388. return lastComparison;
  9389. }
  9390. if (isSetSearch()) { lastComparison = TBaseHelper.compareTo(this.search, typedOther.search);
  9391. if (lastComparison != 0) {
  9392. return lastComparison;
  9393. }
  9394. }
  9395. return 0;
  9396. }
  9397. public void read(TProtocol iprot) throws TException {
  9398. TField field;
  9399. iprot.readStructBegin();
  9400. while (true)
  9401. {
  9402. field = iprot.readFieldBegin();
  9403. if (field.type == TType.STOP) {
  9404. break;
  9405. }
  9406. switch (field.id) {
  9407. case 1: // AUTHENTICATION_TOKEN
  9408. if (field.type == TType.STRING) {
  9409. this.authenticationToken = iprot.readString();
  9410. } else {
  9411. TProtocolUtil.skip(iprot, field.type);
  9412. }
  9413. break;
  9414. case 2: // SEARCH
  9415. if (field.type == TType.STRUCT) {
  9416. this.search = new com.evernote.edam.type.SavedSearch();
  9417. this.search.read(iprot);
  9418. } else {
  9419. TProtocolUtil.skip(iprot, field.type);
  9420. }
  9421. break;
  9422. default:
  9423. TProtocolUtil.skip(iprot, field.type);
  9424. }
  9425. iprot.readFieldEnd();
  9426. }
  9427. iprot.readStructEnd();
  9428. validate();
  9429. }
  9430. public void write(TProtocol oprot) throws TException {
  9431. validate();
  9432. oprot.writeStructBegin(STRUCT_DESC);
  9433. if (this.authenticationToken != null) {
  9434. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  9435. oprot.writeString(this.authenticationToken);
  9436. oprot.writeFieldEnd();
  9437. }
  9438. if (this.search != null) {
  9439. oprot.writeFieldBegin(SEARCH_FIELD_DESC);
  9440. this.search.write(oprot);
  9441. oprot.writeFieldEnd();
  9442. }
  9443. oprot.writeFieldStop();
  9444. oprot.writeStructEnd();
  9445. }
  9446. public void validate() throws TException {
  9447. // check for required fields
  9448. }
  9449. }
  9450. private static class createSearch_result implements TBase<createSearch_result>, java.io.Serializable, Cloneable {
  9451. private static final TStruct STRUCT_DESC = new TStruct("createSearch_result");
  9452. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  9453. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  9454. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  9455. private com.evernote.edam.type.SavedSearch success;
  9456. private com.evernote.edam.error.EDAMUserException userException;
  9457. private com.evernote.edam.error.EDAMSystemException systemException;
  9458. // isset id assignments
  9459. public createSearch_result() {
  9460. }
  9461. /**
  9462. * Performs a deep copy on <i>other</i>.
  9463. */
  9464. public createSearch_result(createSearch_result other) {
  9465. if (other.isSetSuccess()) {
  9466. this.success = new com.evernote.edam.type.SavedSearch(other.success);
  9467. }
  9468. if (other.isSetUserException()) {
  9469. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  9470. }
  9471. if (other.isSetSystemException()) {
  9472. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  9473. }
  9474. }
  9475. public createSearch_result deepCopy() {
  9476. return new createSearch_result(this);
  9477. }
  9478. public void clear() {
  9479. this.success = null;
  9480. this.userException = null;
  9481. this.systemException = null;
  9482. }
  9483. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  9484. public boolean isSetSuccess() {
  9485. return this.success != null;
  9486. }
  9487. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  9488. public boolean isSetUserException() {
  9489. return this.userException != null;
  9490. }
  9491. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  9492. public boolean isSetSystemException() {
  9493. return this.systemException != null;
  9494. }
  9495. public int compareTo(createSearch_result other) {
  9496. if (!getClass().equals(other.getClass())) {
  9497. return getClass().getName().compareTo(other.getClass().getName());
  9498. }
  9499. int lastComparison = 0;
  9500. createSearch_result typedOther = (createSearch_result)other;
  9501. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  9502. if (lastComparison != 0) {
  9503. return lastComparison;
  9504. }
  9505. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  9506. if (lastComparison != 0) {
  9507. return lastComparison;
  9508. }
  9509. }
  9510. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  9511. if (lastComparison != 0) {
  9512. return lastComparison;
  9513. }
  9514. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  9515. if (lastComparison != 0) {
  9516. return lastComparison;
  9517. }
  9518. }
  9519. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  9520. if (lastComparison != 0) {
  9521. return lastComparison;
  9522. }
  9523. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  9524. if (lastComparison != 0) {
  9525. return lastComparison;
  9526. }
  9527. }
  9528. return 0;
  9529. }
  9530. public void read(TProtocol iprot) throws TException {
  9531. TField field;
  9532. iprot.readStructBegin();
  9533. while (true)
  9534. {
  9535. field = iprot.readFieldBegin();
  9536. if (field.type == TType.STOP) {
  9537. break;
  9538. }
  9539. switch (field.id) {
  9540. case 0: // SUCCESS
  9541. if (field.type == TType.STRUCT) {
  9542. this.success = new com.evernote.edam.type.SavedSearch();
  9543. this.success.read(iprot);
  9544. } else {
  9545. TProtocolUtil.skip(iprot, field.type);
  9546. }
  9547. break;
  9548. case 1: // USER_EXCEPTION
  9549. if (field.type == TType.STRUCT) {
  9550. this.userException = new com.evernote.edam.error.EDAMUserException();
  9551. this.userException.read(iprot);
  9552. } else {
  9553. TProtocolUtil.skip(iprot, field.type);
  9554. }
  9555. break;
  9556. case 2: // SYSTEM_EXCEPTION
  9557. if (field.type == TType.STRUCT) {
  9558. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  9559. this.systemException.read(iprot);
  9560. } else {
  9561. TProtocolUtil.skip(iprot, field.type);
  9562. }
  9563. break;
  9564. default:
  9565. TProtocolUtil.skip(iprot, field.type);
  9566. }
  9567. iprot.readFieldEnd();
  9568. }
  9569. iprot.readStructEnd();
  9570. validate();
  9571. }
  9572. public void write(TProtocol oprot) throws TException {
  9573. oprot.writeStructBegin(STRUCT_DESC);
  9574. if (this.isSetSuccess()) {
  9575. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  9576. this.success.write(oprot);
  9577. oprot.writeFieldEnd();
  9578. } else if (this.isSetUserException()) {
  9579. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  9580. this.userException.write(oprot);
  9581. oprot.writeFieldEnd();
  9582. } else if (this.isSetSystemException()) {
  9583. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  9584. this.systemException.write(oprot);
  9585. oprot.writeFieldEnd();
  9586. }
  9587. oprot.writeFieldStop();
  9588. oprot.writeStructEnd();
  9589. }
  9590. public void validate() throws TException {
  9591. // check for required fields
  9592. }
  9593. }
  9594. private static class updateSearch_args implements TBase<updateSearch_args>, java.io.Serializable, Cloneable {
  9595. private static final TStruct STRUCT_DESC = new TStruct("updateSearch_args");
  9596. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  9597. private static final TField SEARCH_FIELD_DESC = new TField("search", TType.STRUCT, (short)2);
  9598. private String authenticationToken;
  9599. private com.evernote.edam.type.SavedSearch search;
  9600. // isset id assignments
  9601. public updateSearch_args() {
  9602. }
  9603. /**
  9604. * Performs a deep copy on <i>other</i>.
  9605. */
  9606. public updateSearch_args(updateSearch_args other) {
  9607. if (other.isSetAuthenticationToken()) {
  9608. this.authenticationToken = other.authenticationToken;
  9609. }
  9610. if (other.isSetSearch()) {
  9611. this.search = new com.evernote.edam.type.SavedSearch(other.search);
  9612. }
  9613. }
  9614. public updateSearch_args deepCopy() {
  9615. return new updateSearch_args(this);
  9616. }
  9617. public void clear() {
  9618. this.authenticationToken = null;
  9619. this.search = null;
  9620. }
  9621. public void setAuthenticationToken(String authenticationToken) {
  9622. this.authenticationToken = authenticationToken;
  9623. }
  9624. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  9625. public boolean isSetAuthenticationToken() {
  9626. return this.authenticationToken != null;
  9627. }
  9628. public void setSearch(com.evernote.edam.type.SavedSearch search) {
  9629. this.search = search;
  9630. }
  9631. /** Returns true if field search is set (has been asigned a value) and false otherwise */
  9632. public boolean isSetSearch() {
  9633. return this.search != null;
  9634. }
  9635. public int compareTo(updateSearch_args other) {
  9636. if (!getClass().equals(other.getClass())) {
  9637. return getClass().getName().compareTo(other.getClass().getName());
  9638. }
  9639. int lastComparison = 0;
  9640. updateSearch_args typedOther = (updateSearch_args)other;
  9641. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  9642. if (lastComparison != 0) {
  9643. return lastComparison;
  9644. }
  9645. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  9646. if (lastComparison != 0) {
  9647. return lastComparison;
  9648. }
  9649. }
  9650. lastComparison = Boolean.valueOf(isSetSearch()).compareTo(typedOther.isSetSearch());
  9651. if (lastComparison != 0) {
  9652. return lastComparison;
  9653. }
  9654. if (isSetSearch()) { lastComparison = TBaseHelper.compareTo(this.search, typedOther.search);
  9655. if (lastComparison != 0) {
  9656. return lastComparison;
  9657. }
  9658. }
  9659. return 0;
  9660. }
  9661. public void read(TProtocol iprot) throws TException {
  9662. TField field;
  9663. iprot.readStructBegin();
  9664. while (true)
  9665. {
  9666. field = iprot.readFieldBegin();
  9667. if (field.type == TType.STOP) {
  9668. break;
  9669. }
  9670. switch (field.id) {
  9671. case 1: // AUTHENTICATION_TOKEN
  9672. if (field.type == TType.STRING) {
  9673. this.authenticationToken = iprot.readString();
  9674. } else {
  9675. TProtocolUtil.skip(iprot, field.type);
  9676. }
  9677. break;
  9678. case 2: // SEARCH
  9679. if (field.type == TType.STRUCT) {
  9680. this.search = new com.evernote.edam.type.SavedSearch();
  9681. this.search.read(iprot);
  9682. } else {
  9683. TProtocolUtil.skip(iprot, field.type);
  9684. }
  9685. break;
  9686. default:
  9687. TProtocolUtil.skip(iprot, field.type);
  9688. }
  9689. iprot.readFieldEnd();
  9690. }
  9691. iprot.readStructEnd();
  9692. validate();
  9693. }
  9694. public void write(TProtocol oprot) throws TException {
  9695. validate();
  9696. oprot.writeStructBegin(STRUCT_DESC);
  9697. if (this.authenticationToken != null) {
  9698. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  9699. oprot.writeString(this.authenticationToken);
  9700. oprot.writeFieldEnd();
  9701. }
  9702. if (this.search != null) {
  9703. oprot.writeFieldBegin(SEARCH_FIELD_DESC);
  9704. this.search.write(oprot);
  9705. oprot.writeFieldEnd();
  9706. }
  9707. oprot.writeFieldStop();
  9708. oprot.writeStructEnd();
  9709. }
  9710. public void validate() throws TException {
  9711. // check for required fields
  9712. }
  9713. }
  9714. private static class updateSearch_result implements TBase<updateSearch_result>, java.io.Serializable, Cloneable {
  9715. private static final TStruct STRUCT_DESC = new TStruct("updateSearch_result");
  9716. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);
  9717. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  9718. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  9719. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  9720. private int success;
  9721. private com.evernote.edam.error.EDAMUserException userException;
  9722. private com.evernote.edam.error.EDAMSystemException systemException;
  9723. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  9724. // isset id assignments
  9725. private static final int __SUCCESS_ISSET_ID = 0;
  9726. private boolean[] __isset_vector = new boolean[1];
  9727. public updateSearch_result() {
  9728. }
  9729. /**
  9730. * Performs a deep copy on <i>other</i>.
  9731. */
  9732. public updateSearch_result(updateSearch_result other) {
  9733. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  9734. this.success = other.success;
  9735. if (other.isSetUserException()) {
  9736. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  9737. }
  9738. if (other.isSetSystemException()) {
  9739. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  9740. }
  9741. if (other.isSetNotFoundException()) {
  9742. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  9743. }
  9744. }
  9745. public updateSearch_result deepCopy() {
  9746. return new updateSearch_result(this);
  9747. }
  9748. public void clear() {
  9749. setSuccessIsSet(false);
  9750. this.success = 0;
  9751. this.userException = null;
  9752. this.systemException = null;
  9753. this.notFoundException = null;
  9754. }
  9755. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  9756. public boolean isSetSuccess() {
  9757. return __isset_vector[__SUCCESS_ISSET_ID];
  9758. }
  9759. public void setSuccessIsSet(boolean value) {
  9760. __isset_vector[__SUCCESS_ISSET_ID] = value;
  9761. }
  9762. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  9763. public boolean isSetUserException() {
  9764. return this.userException != null;
  9765. }
  9766. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  9767. public boolean isSetSystemException() {
  9768. return this.systemException != null;
  9769. }
  9770. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  9771. public boolean isSetNotFoundException() {
  9772. return this.notFoundException != null;
  9773. }
  9774. public int compareTo(updateSearch_result other) {
  9775. if (!getClass().equals(other.getClass())) {
  9776. return getClass().getName().compareTo(other.getClass().getName());
  9777. }
  9778. int lastComparison = 0;
  9779. updateSearch_result typedOther = (updateSearch_result)other;
  9780. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  9781. if (lastComparison != 0) {
  9782. return lastComparison;
  9783. }
  9784. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  9785. if (lastComparison != 0) {
  9786. return lastComparison;
  9787. }
  9788. }
  9789. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  9790. if (lastComparison != 0) {
  9791. return lastComparison;
  9792. }
  9793. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  9794. if (lastComparison != 0) {
  9795. return lastComparison;
  9796. }
  9797. }
  9798. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  9799. if (lastComparison != 0) {
  9800. return lastComparison;
  9801. }
  9802. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  9803. if (lastComparison != 0) {
  9804. return lastComparison;
  9805. }
  9806. }
  9807. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  9808. if (lastComparison != 0) {
  9809. return lastComparison;
  9810. }
  9811. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  9812. if (lastComparison != 0) {
  9813. return lastComparison;
  9814. }
  9815. }
  9816. return 0;
  9817. }
  9818. public void read(TProtocol iprot) throws TException {
  9819. TField field;
  9820. iprot.readStructBegin();
  9821. while (true)
  9822. {
  9823. field = iprot.readFieldBegin();
  9824. if (field.type == TType.STOP) {
  9825. break;
  9826. }
  9827. switch (field.id) {
  9828. case 0: // SUCCESS
  9829. if (field.type == TType.I32) {
  9830. this.success = iprot.readI32();
  9831. setSuccessIsSet(true);
  9832. } else {
  9833. TProtocolUtil.skip(iprot, field.type);
  9834. }
  9835. break;
  9836. case 1: // USER_EXCEPTION
  9837. if (field.type == TType.STRUCT) {
  9838. this.userException = new com.evernote.edam.error.EDAMUserException();
  9839. this.userException.read(iprot);
  9840. } else {
  9841. TProtocolUtil.skip(iprot, field.type);
  9842. }
  9843. break;
  9844. case 2: // SYSTEM_EXCEPTION
  9845. if (field.type == TType.STRUCT) {
  9846. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  9847. this.systemException.read(iprot);
  9848. } else {
  9849. TProtocolUtil.skip(iprot, field.type);
  9850. }
  9851. break;
  9852. case 3: // NOT_FOUND_EXCEPTION
  9853. if (field.type == TType.STRUCT) {
  9854. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  9855. this.notFoundException.read(iprot);
  9856. } else {
  9857. TProtocolUtil.skip(iprot, field.type);
  9858. }
  9859. break;
  9860. default:
  9861. TProtocolUtil.skip(iprot, field.type);
  9862. }
  9863. iprot.readFieldEnd();
  9864. }
  9865. iprot.readStructEnd();
  9866. validate();
  9867. }
  9868. public void write(TProtocol oprot) throws TException {
  9869. oprot.writeStructBegin(STRUCT_DESC);
  9870. if (this.isSetSuccess()) {
  9871. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  9872. oprot.writeI32(this.success);
  9873. oprot.writeFieldEnd();
  9874. } else if (this.isSetUserException()) {
  9875. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  9876. this.userException.write(oprot);
  9877. oprot.writeFieldEnd();
  9878. } else if (this.isSetSystemException()) {
  9879. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  9880. this.systemException.write(oprot);
  9881. oprot.writeFieldEnd();
  9882. } else if (this.isSetNotFoundException()) {
  9883. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  9884. this.notFoundException.write(oprot);
  9885. oprot.writeFieldEnd();
  9886. }
  9887. oprot.writeFieldStop();
  9888. oprot.writeStructEnd();
  9889. }
  9890. public void validate() throws TException {
  9891. // check for required fields
  9892. }
  9893. }
  9894. private static class expungeSearch_args implements TBase<expungeSearch_args>, java.io.Serializable, Cloneable {
  9895. private static final TStruct STRUCT_DESC = new TStruct("expungeSearch_args");
  9896. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  9897. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  9898. private String authenticationToken;
  9899. private String guid;
  9900. // isset id assignments
  9901. public expungeSearch_args() {
  9902. }
  9903. /**
  9904. * Performs a deep copy on <i>other</i>.
  9905. */
  9906. public expungeSearch_args(expungeSearch_args other) {
  9907. if (other.isSetAuthenticationToken()) {
  9908. this.authenticationToken = other.authenticationToken;
  9909. }
  9910. if (other.isSetGuid()) {
  9911. this.guid = other.guid;
  9912. }
  9913. }
  9914. public expungeSearch_args deepCopy() {
  9915. return new expungeSearch_args(this);
  9916. }
  9917. public void clear() {
  9918. this.authenticationToken = null;
  9919. this.guid = null;
  9920. }
  9921. public void setAuthenticationToken(String authenticationToken) {
  9922. this.authenticationToken = authenticationToken;
  9923. }
  9924. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  9925. public boolean isSetAuthenticationToken() {
  9926. return this.authenticationToken != null;
  9927. }
  9928. public void setGuid(String guid) {
  9929. this.guid = guid;
  9930. }
  9931. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  9932. public boolean isSetGuid() {
  9933. return this.guid != null;
  9934. }
  9935. public int compareTo(expungeSearch_args other) {
  9936. if (!getClass().equals(other.getClass())) {
  9937. return getClass().getName().compareTo(other.getClass().getName());
  9938. }
  9939. int lastComparison = 0;
  9940. expungeSearch_args typedOther = (expungeSearch_args)other;
  9941. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  9942. if (lastComparison != 0) {
  9943. return lastComparison;
  9944. }
  9945. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  9946. if (lastComparison != 0) {
  9947. return lastComparison;
  9948. }
  9949. }
  9950. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  9951. if (lastComparison != 0) {
  9952. return lastComparison;
  9953. }
  9954. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  9955. if (lastComparison != 0) {
  9956. return lastComparison;
  9957. }
  9958. }
  9959. return 0;
  9960. }
  9961. public void read(TProtocol iprot) throws TException {
  9962. TField field;
  9963. iprot.readStructBegin();
  9964. while (true)
  9965. {
  9966. field = iprot.readFieldBegin();
  9967. if (field.type == TType.STOP) {
  9968. break;
  9969. }
  9970. switch (field.id) {
  9971. case 1: // AUTHENTICATION_TOKEN
  9972. if (field.type == TType.STRING) {
  9973. this.authenticationToken = iprot.readString();
  9974. } else {
  9975. TProtocolUtil.skip(iprot, field.type);
  9976. }
  9977. break;
  9978. case 2: // GUID
  9979. if (field.type == TType.STRING) {
  9980. this.guid = iprot.readString();
  9981. } else {
  9982. TProtocolUtil.skip(iprot, field.type);
  9983. }
  9984. break;
  9985. default:
  9986. TProtocolUtil.skip(iprot, field.type);
  9987. }
  9988. iprot.readFieldEnd();
  9989. }
  9990. iprot.readStructEnd();
  9991. validate();
  9992. }
  9993. public void write(TProtocol oprot) throws TException {
  9994. validate();
  9995. oprot.writeStructBegin(STRUCT_DESC);
  9996. if (this.authenticationToken != null) {
  9997. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  9998. oprot.writeString(this.authenticationToken);
  9999. oprot.writeFieldEnd();
  10000. }
  10001. if (this.guid != null) {
  10002. oprot.writeFieldBegin(GUID_FIELD_DESC);
  10003. oprot.writeString(this.guid);
  10004. oprot.writeFieldEnd();
  10005. }
  10006. oprot.writeFieldStop();
  10007. oprot.writeStructEnd();
  10008. }
  10009. public void validate() throws TException {
  10010. // check for required fields
  10011. }
  10012. }
  10013. private static class expungeSearch_result implements TBase<expungeSearch_result>, java.io.Serializable, Cloneable {
  10014. private static final TStruct STRUCT_DESC = new TStruct("expungeSearch_result");
  10015. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);
  10016. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  10017. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  10018. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  10019. private int success;
  10020. private com.evernote.edam.error.EDAMUserException userException;
  10021. private com.evernote.edam.error.EDAMSystemException systemException;
  10022. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  10023. // isset id assignments
  10024. private static final int __SUCCESS_ISSET_ID = 0;
  10025. private boolean[] __isset_vector = new boolean[1];
  10026. public expungeSearch_result() {
  10027. }
  10028. /**
  10029. * Performs a deep copy on <i>other</i>.
  10030. */
  10031. public expungeSearch_result(expungeSearch_result other) {
  10032. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  10033. this.success = other.success;
  10034. if (other.isSetUserException()) {
  10035. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  10036. }
  10037. if (other.isSetSystemException()) {
  10038. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  10039. }
  10040. if (other.isSetNotFoundException()) {
  10041. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  10042. }
  10043. }
  10044. public expungeSearch_result deepCopy() {
  10045. return new expungeSearch_result(this);
  10046. }
  10047. public void clear() {
  10048. setSuccessIsSet(false);
  10049. this.success = 0;
  10050. this.userException = null;
  10051. this.systemException = null;
  10052. this.notFoundException = null;
  10053. }
  10054. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  10055. public boolean isSetSuccess() {
  10056. return __isset_vector[__SUCCESS_ISSET_ID];
  10057. }
  10058. public void setSuccessIsSet(boolean value) {
  10059. __isset_vector[__SUCCESS_ISSET_ID] = value;
  10060. }
  10061. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  10062. public boolean isSetUserException() {
  10063. return this.userException != null;
  10064. }
  10065. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  10066. public boolean isSetSystemException() {
  10067. return this.systemException != null;
  10068. }
  10069. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  10070. public boolean isSetNotFoundException() {
  10071. return this.notFoundException != null;
  10072. }
  10073. public int compareTo(expungeSearch_result other) {
  10074. if (!getClass().equals(other.getClass())) {
  10075. return getClass().getName().compareTo(other.getClass().getName());
  10076. }
  10077. int lastComparison = 0;
  10078. expungeSearch_result typedOther = (expungeSearch_result)other;
  10079. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  10080. if (lastComparison != 0) {
  10081. return lastComparison;
  10082. }
  10083. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  10084. if (lastComparison != 0) {
  10085. return lastComparison;
  10086. }
  10087. }
  10088. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  10089. if (lastComparison != 0) {
  10090. return lastComparison;
  10091. }
  10092. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  10093. if (lastComparison != 0) {
  10094. return lastComparison;
  10095. }
  10096. }
  10097. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  10098. if (lastComparison != 0) {
  10099. return lastComparison;
  10100. }
  10101. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  10102. if (lastComparison != 0) {
  10103. return lastComparison;
  10104. }
  10105. }
  10106. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  10107. if (lastComparison != 0) {
  10108. return lastComparison;
  10109. }
  10110. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  10111. if (lastComparison != 0) {
  10112. return lastComparison;
  10113. }
  10114. }
  10115. return 0;
  10116. }
  10117. public void read(TProtocol iprot) throws TException {
  10118. TField field;
  10119. iprot.readStructBegin();
  10120. while (true)
  10121. {
  10122. field = iprot.readFieldBegin();
  10123. if (field.type == TType.STOP) {
  10124. break;
  10125. }
  10126. switch (field.id) {
  10127. case 0: // SUCCESS
  10128. if (field.type == TType.I32) {
  10129. this.success = iprot.readI32();
  10130. setSuccessIsSet(true);
  10131. } else {
  10132. TProtocolUtil.skip(iprot, field.type);
  10133. }
  10134. break;
  10135. case 1: // USER_EXCEPTION
  10136. if (field.type == TType.STRUCT) {
  10137. this.userException = new com.evernote.edam.error.EDAMUserException();
  10138. this.userException.read(iprot);
  10139. } else {
  10140. TProtocolUtil.skip(iprot, field.type);
  10141. }
  10142. break;
  10143. case 2: // SYSTEM_EXCEPTION
  10144. if (field.type == TType.STRUCT) {
  10145. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  10146. this.systemException.read(iprot);
  10147. } else {
  10148. TProtocolUtil.skip(iprot, field.type);
  10149. }
  10150. break;
  10151. case 3: // NOT_FOUND_EXCEPTION
  10152. if (field.type == TType.STRUCT) {
  10153. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  10154. this.notFoundException.read(iprot);
  10155. } else {
  10156. TProtocolUtil.skip(iprot, field.type);
  10157. }
  10158. break;
  10159. default:
  10160. TProtocolUtil.skip(iprot, field.type);
  10161. }
  10162. iprot.readFieldEnd();
  10163. }
  10164. iprot.readStructEnd();
  10165. validate();
  10166. }
  10167. public void write(TProtocol oprot) throws TException {
  10168. oprot.writeStructBegin(STRUCT_DESC);
  10169. if (this.isSetSuccess()) {
  10170. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  10171. oprot.writeI32(this.success);
  10172. oprot.writeFieldEnd();
  10173. } else if (this.isSetUserException()) {
  10174. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  10175. this.userException.write(oprot);
  10176. oprot.writeFieldEnd();
  10177. } else if (this.isSetSystemException()) {
  10178. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  10179. this.systemException.write(oprot);
  10180. oprot.writeFieldEnd();
  10181. } else if (this.isSetNotFoundException()) {
  10182. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  10183. this.notFoundException.write(oprot);
  10184. oprot.writeFieldEnd();
  10185. }
  10186. oprot.writeFieldStop();
  10187. oprot.writeStructEnd();
  10188. }
  10189. public void validate() throws TException {
  10190. // check for required fields
  10191. }
  10192. }
  10193. private static class findNotes_args implements TBase<findNotes_args>, java.io.Serializable, Cloneable {
  10194. private static final TStruct STRUCT_DESC = new TStruct("findNotes_args");
  10195. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  10196. private static final TField FILTER_FIELD_DESC = new TField("filter", TType.STRUCT, (short)2);
  10197. private static final TField OFFSET_FIELD_DESC = new TField("offset", TType.I32, (short)3);
  10198. private static final TField MAX_NOTES_FIELD_DESC = new TField("maxNotes", TType.I32, (short)4);
  10199. private String authenticationToken;
  10200. private NoteFilter filter;
  10201. private int offset;
  10202. private int maxNotes;
  10203. // isset id assignments
  10204. private static final int __OFFSET_ISSET_ID = 0;
  10205. private static final int __MAXNOTES_ISSET_ID = 1;
  10206. private boolean[] __isset_vector = new boolean[2];
  10207. public findNotes_args() {
  10208. }
  10209. /**
  10210. * Performs a deep copy on <i>other</i>.
  10211. */
  10212. public findNotes_args(findNotes_args other) {
  10213. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  10214. if (other.isSetAuthenticationToken()) {
  10215. this.authenticationToken = other.authenticationToken;
  10216. }
  10217. if (other.isSetFilter()) {
  10218. this.filter = new NoteFilter(other.filter);
  10219. }
  10220. this.offset = other.offset;
  10221. this.maxNotes = other.maxNotes;
  10222. }
  10223. public findNotes_args deepCopy() {
  10224. return new findNotes_args(this);
  10225. }
  10226. public void clear() {
  10227. this.authenticationToken = null;
  10228. this.filter = null;
  10229. setOffsetIsSet(false);
  10230. this.offset = 0;
  10231. setMaxNotesIsSet(false);
  10232. this.maxNotes = 0;
  10233. }
  10234. public void setAuthenticationToken(String authenticationToken) {
  10235. this.authenticationToken = authenticationToken;
  10236. }
  10237. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  10238. public boolean isSetAuthenticationToken() {
  10239. return this.authenticationToken != null;
  10240. }
  10241. public void setFilter(NoteFilter filter) {
  10242. this.filter = filter;
  10243. }
  10244. /** Returns true if field filter is set (has been asigned a value) and false otherwise */
  10245. public boolean isSetFilter() {
  10246. return this.filter != null;
  10247. }
  10248. public void setOffset(int offset) {
  10249. this.offset = offset;
  10250. setOffsetIsSet(true);
  10251. }
  10252. /** Returns true if field offset is set (has been asigned a value) and false otherwise */
  10253. public boolean isSetOffset() {
  10254. return __isset_vector[__OFFSET_ISSET_ID];
  10255. }
  10256. public void setOffsetIsSet(boolean value) {
  10257. __isset_vector[__OFFSET_ISSET_ID] = value;
  10258. }
  10259. public void setMaxNotes(int maxNotes) {
  10260. this.maxNotes = maxNotes;
  10261. setMaxNotesIsSet(true);
  10262. }
  10263. /** Returns true if field maxNotes is set (has been asigned a value) and false otherwise */
  10264. public boolean isSetMaxNotes() {
  10265. return __isset_vector[__MAXNOTES_ISSET_ID];
  10266. }
  10267. public void setMaxNotesIsSet(boolean value) {
  10268. __isset_vector[__MAXNOTES_ISSET_ID] = value;
  10269. }
  10270. public int compareTo(findNotes_args other) {
  10271. if (!getClass().equals(other.getClass())) {
  10272. return getClass().getName().compareTo(other.getClass().getName());
  10273. }
  10274. int lastComparison = 0;
  10275. findNotes_args typedOther = (findNotes_args)other;
  10276. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  10277. if (lastComparison != 0) {
  10278. return lastComparison;
  10279. }
  10280. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  10281. if (lastComparison != 0) {
  10282. return lastComparison;
  10283. }
  10284. }
  10285. lastComparison = Boolean.valueOf(isSetFilter()).compareTo(typedOther.isSetFilter());
  10286. if (lastComparison != 0) {
  10287. return lastComparison;
  10288. }
  10289. if (isSetFilter()) { lastComparison = TBaseHelper.compareTo(this.filter, typedOther.filter);
  10290. if (lastComparison != 0) {
  10291. return lastComparison;
  10292. }
  10293. }
  10294. lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
  10295. if (lastComparison != 0) {
  10296. return lastComparison;
  10297. }
  10298. if (isSetOffset()) { lastComparison = TBaseHelper.compareTo(this.offset, typedOther.offset);
  10299. if (lastComparison != 0) {
  10300. return lastComparison;
  10301. }
  10302. }
  10303. lastComparison = Boolean.valueOf(isSetMaxNotes()).compareTo(typedOther.isSetMaxNotes());
  10304. if (lastComparison != 0) {
  10305. return lastComparison;
  10306. }
  10307. if (isSetMaxNotes()) { lastComparison = TBaseHelper.compareTo(this.maxNotes, typedOther.maxNotes);
  10308. if (lastComparison != 0) {
  10309. return lastComparison;
  10310. }
  10311. }
  10312. return 0;
  10313. }
  10314. public void read(TProtocol iprot) throws TException {
  10315. TField field;
  10316. iprot.readStructBegin();
  10317. while (true)
  10318. {
  10319. field = iprot.readFieldBegin();
  10320. if (field.type == TType.STOP) {
  10321. break;
  10322. }
  10323. switch (field.id) {
  10324. case 1: // AUTHENTICATION_TOKEN
  10325. if (field.type == TType.STRING) {
  10326. this.authenticationToken = iprot.readString();
  10327. } else {
  10328. TProtocolUtil.skip(iprot, field.type);
  10329. }
  10330. break;
  10331. case 2: // FILTER
  10332. if (field.type == TType.STRUCT) {
  10333. this.filter = new NoteFilter();
  10334. this.filter.read(iprot);
  10335. } else {
  10336. TProtocolUtil.skip(iprot, field.type);
  10337. }
  10338. break;
  10339. case 3: // OFFSET
  10340. if (field.type == TType.I32) {
  10341. this.offset = iprot.readI32();
  10342. setOffsetIsSet(true);
  10343. } else {
  10344. TProtocolUtil.skip(iprot, field.type);
  10345. }
  10346. break;
  10347. case 4: // MAX_NOTES
  10348. if (field.type == TType.I32) {
  10349. this.maxNotes = iprot.readI32();
  10350. setMaxNotesIsSet(true);
  10351. } else {
  10352. TProtocolUtil.skip(iprot, field.type);
  10353. }
  10354. break;
  10355. default:
  10356. TProtocolUtil.skip(iprot, field.type);
  10357. }
  10358. iprot.readFieldEnd();
  10359. }
  10360. iprot.readStructEnd();
  10361. validate();
  10362. }
  10363. public void write(TProtocol oprot) throws TException {
  10364. validate();
  10365. oprot.writeStructBegin(STRUCT_DESC);
  10366. if (this.authenticationToken != null) {
  10367. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  10368. oprot.writeString(this.authenticationToken);
  10369. oprot.writeFieldEnd();
  10370. }
  10371. if (this.filter != null) {
  10372. oprot.writeFieldBegin(FILTER_FIELD_DESC);
  10373. this.filter.write(oprot);
  10374. oprot.writeFieldEnd();
  10375. }
  10376. oprot.writeFieldBegin(OFFSET_FIELD_DESC);
  10377. oprot.writeI32(this.offset);
  10378. oprot.writeFieldEnd();
  10379. oprot.writeFieldBegin(MAX_NOTES_FIELD_DESC);
  10380. oprot.writeI32(this.maxNotes);
  10381. oprot.writeFieldEnd();
  10382. oprot.writeFieldStop();
  10383. oprot.writeStructEnd();
  10384. }
  10385. public void validate() throws TException {
  10386. // check for required fields
  10387. }
  10388. }
  10389. private static class findNotes_result implements TBase<findNotes_result>, java.io.Serializable, Cloneable {
  10390. private static final TStruct STRUCT_DESC = new TStruct("findNotes_result");
  10391. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  10392. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  10393. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  10394. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  10395. private NoteList success;
  10396. private com.evernote.edam.error.EDAMUserException userException;
  10397. private com.evernote.edam.error.EDAMSystemException systemException;
  10398. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  10399. // isset id assignments
  10400. public findNotes_result() {
  10401. }
  10402. /**
  10403. * Performs a deep copy on <i>other</i>.
  10404. */
  10405. public findNotes_result(findNotes_result other) {
  10406. if (other.isSetSuccess()) {
  10407. this.success = new NoteList(other.success);
  10408. }
  10409. if (other.isSetUserException()) {
  10410. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  10411. }
  10412. if (other.isSetSystemException()) {
  10413. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  10414. }
  10415. if (other.isSetNotFoundException()) {
  10416. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  10417. }
  10418. }
  10419. public findNotes_result deepCopy() {
  10420. return new findNotes_result(this);
  10421. }
  10422. public void clear() {
  10423. this.success = null;
  10424. this.userException = null;
  10425. this.systemException = null;
  10426. this.notFoundException = null;
  10427. }
  10428. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  10429. public boolean isSetSuccess() {
  10430. return this.success != null;
  10431. }
  10432. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  10433. public boolean isSetUserException() {
  10434. return this.userException != null;
  10435. }
  10436. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  10437. public boolean isSetSystemException() {
  10438. return this.systemException != null;
  10439. }
  10440. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  10441. public boolean isSetNotFoundException() {
  10442. return this.notFoundException != null;
  10443. }
  10444. public int compareTo(findNotes_result other) {
  10445. if (!getClass().equals(other.getClass())) {
  10446. return getClass().getName().compareTo(other.getClass().getName());
  10447. }
  10448. int lastComparison = 0;
  10449. findNotes_result typedOther = (findNotes_result)other;
  10450. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  10451. if (lastComparison != 0) {
  10452. return lastComparison;
  10453. }
  10454. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  10455. if (lastComparison != 0) {
  10456. return lastComparison;
  10457. }
  10458. }
  10459. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  10460. if (lastComparison != 0) {
  10461. return lastComparison;
  10462. }
  10463. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  10464. if (lastComparison != 0) {
  10465. return lastComparison;
  10466. }
  10467. }
  10468. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  10469. if (lastComparison != 0) {
  10470. return lastComparison;
  10471. }
  10472. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  10473. if (lastComparison != 0) {
  10474. return lastComparison;
  10475. }
  10476. }
  10477. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  10478. if (lastComparison != 0) {
  10479. return lastComparison;
  10480. }
  10481. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  10482. if (lastComparison != 0) {
  10483. return lastComparison;
  10484. }
  10485. }
  10486. return 0;
  10487. }
  10488. public void read(TProtocol iprot) throws TException {
  10489. TField field;
  10490. iprot.readStructBegin();
  10491. while (true)
  10492. {
  10493. field = iprot.readFieldBegin();
  10494. if (field.type == TType.STOP) {
  10495. break;
  10496. }
  10497. switch (field.id) {
  10498. case 0: // SUCCESS
  10499. if (field.type == TType.STRUCT) {
  10500. this.success = new NoteList();
  10501. this.success.read(iprot);
  10502. } else {
  10503. TProtocolUtil.skip(iprot, field.type);
  10504. }
  10505. break;
  10506. case 1: // USER_EXCEPTION
  10507. if (field.type == TType.STRUCT) {
  10508. this.userException = new com.evernote.edam.error.EDAMUserException();
  10509. this.userException.read(iprot);
  10510. } else {
  10511. TProtocolUtil.skip(iprot, field.type);
  10512. }
  10513. break;
  10514. case 2: // SYSTEM_EXCEPTION
  10515. if (field.type == TType.STRUCT) {
  10516. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  10517. this.systemException.read(iprot);
  10518. } else {
  10519. TProtocolUtil.skip(iprot, field.type);
  10520. }
  10521. break;
  10522. case 3: // NOT_FOUND_EXCEPTION
  10523. if (field.type == TType.STRUCT) {
  10524. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  10525. this.notFoundException.read(iprot);
  10526. } else {
  10527. TProtocolUtil.skip(iprot, field.type);
  10528. }
  10529. break;
  10530. default:
  10531. TProtocolUtil.skip(iprot, field.type);
  10532. }
  10533. iprot.readFieldEnd();
  10534. }
  10535. iprot.readStructEnd();
  10536. validate();
  10537. }
  10538. public void write(TProtocol oprot) throws TException {
  10539. oprot.writeStructBegin(STRUCT_DESC);
  10540. if (this.isSetSuccess()) {
  10541. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  10542. this.success.write(oprot);
  10543. oprot.writeFieldEnd();
  10544. } else if (this.isSetUserException()) {
  10545. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  10546. this.userException.write(oprot);
  10547. oprot.writeFieldEnd();
  10548. } else if (this.isSetSystemException()) {
  10549. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  10550. this.systemException.write(oprot);
  10551. oprot.writeFieldEnd();
  10552. } else if (this.isSetNotFoundException()) {
  10553. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  10554. this.notFoundException.write(oprot);
  10555. oprot.writeFieldEnd();
  10556. }
  10557. oprot.writeFieldStop();
  10558. oprot.writeStructEnd();
  10559. }
  10560. public void validate() throws TException {
  10561. // check for required fields
  10562. }
  10563. }
  10564. private static class findNoteOffset_args implements TBase<findNoteOffset_args>, java.io.Serializable, Cloneable {
  10565. private static final TStruct STRUCT_DESC = new TStruct("findNoteOffset_args");
  10566. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  10567. private static final TField FILTER_FIELD_DESC = new TField("filter", TType.STRUCT, (short)2);
  10568. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)3);
  10569. private String authenticationToken;
  10570. private NoteFilter filter;
  10571. private String guid;
  10572. // isset id assignments
  10573. public findNoteOffset_args() {
  10574. }
  10575. /**
  10576. * Performs a deep copy on <i>other</i>.
  10577. */
  10578. public findNoteOffset_args(findNoteOffset_args other) {
  10579. if (other.isSetAuthenticationToken()) {
  10580. this.authenticationToken = other.authenticationToken;
  10581. }
  10582. if (other.isSetFilter()) {
  10583. this.filter = new NoteFilter(other.filter);
  10584. }
  10585. if (other.isSetGuid()) {
  10586. this.guid = other.guid;
  10587. }
  10588. }
  10589. public findNoteOffset_args deepCopy() {
  10590. return new findNoteOffset_args(this);
  10591. }
  10592. public void clear() {
  10593. this.authenticationToken = null;
  10594. this.filter = null;
  10595. this.guid = null;
  10596. }
  10597. public void setAuthenticationToken(String authenticationToken) {
  10598. this.authenticationToken = authenticationToken;
  10599. }
  10600. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  10601. public boolean isSetAuthenticationToken() {
  10602. return this.authenticationToken != null;
  10603. }
  10604. public void setFilter(NoteFilter filter) {
  10605. this.filter = filter;
  10606. }
  10607. /** Returns true if field filter is set (has been asigned a value) and false otherwise */
  10608. public boolean isSetFilter() {
  10609. return this.filter != null;
  10610. }
  10611. public void setGuid(String guid) {
  10612. this.guid = guid;
  10613. }
  10614. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  10615. public boolean isSetGuid() {
  10616. return this.guid != null;
  10617. }
  10618. public int compareTo(findNoteOffset_args other) {
  10619. if (!getClass().equals(other.getClass())) {
  10620. return getClass().getName().compareTo(other.getClass().getName());
  10621. }
  10622. int lastComparison = 0;
  10623. findNoteOffset_args typedOther = (findNoteOffset_args)other;
  10624. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  10625. if (lastComparison != 0) {
  10626. return lastComparison;
  10627. }
  10628. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  10629. if (lastComparison != 0) {
  10630. return lastComparison;
  10631. }
  10632. }
  10633. lastComparison = Boolean.valueOf(isSetFilter()).compareTo(typedOther.isSetFilter());
  10634. if (lastComparison != 0) {
  10635. return lastComparison;
  10636. }
  10637. if (isSetFilter()) { lastComparison = TBaseHelper.compareTo(this.filter, typedOther.filter);
  10638. if (lastComparison != 0) {
  10639. return lastComparison;
  10640. }
  10641. }
  10642. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  10643. if (lastComparison != 0) {
  10644. return lastComparison;
  10645. }
  10646. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  10647. if (lastComparison != 0) {
  10648. return lastComparison;
  10649. }
  10650. }
  10651. return 0;
  10652. }
  10653. public void read(TProtocol iprot) throws TException {
  10654. TField field;
  10655. iprot.readStructBegin();
  10656. while (true)
  10657. {
  10658. field = iprot.readFieldBegin();
  10659. if (field.type == TType.STOP) {
  10660. break;
  10661. }
  10662. switch (field.id) {
  10663. case 1: // AUTHENTICATION_TOKEN
  10664. if (field.type == TType.STRING) {
  10665. this.authenticationToken = iprot.readString();
  10666. } else {
  10667. TProtocolUtil.skip(iprot, field.type);
  10668. }
  10669. break;
  10670. case 2: // FILTER
  10671. if (field.type == TType.STRUCT) {
  10672. this.filter = new NoteFilter();
  10673. this.filter.read(iprot);
  10674. } else {
  10675. TProtocolUtil.skip(iprot, field.type);
  10676. }
  10677. break;
  10678. case 3: // GUID
  10679. if (field.type == TType.STRING) {
  10680. this.guid = iprot.readString();
  10681. } else {
  10682. TProtocolUtil.skip(iprot, field.type);
  10683. }
  10684. break;
  10685. default:
  10686. TProtocolUtil.skip(iprot, field.type);
  10687. }
  10688. iprot.readFieldEnd();
  10689. }
  10690. iprot.readStructEnd();
  10691. validate();
  10692. }
  10693. public void write(TProtocol oprot) throws TException {
  10694. validate();
  10695. oprot.writeStructBegin(STRUCT_DESC);
  10696. if (this.authenticationToken != null) {
  10697. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  10698. oprot.writeString(this.authenticationToken);
  10699. oprot.writeFieldEnd();
  10700. }
  10701. if (this.filter != null) {
  10702. oprot.writeFieldBegin(FILTER_FIELD_DESC);
  10703. this.filter.write(oprot);
  10704. oprot.writeFieldEnd();
  10705. }
  10706. if (this.guid != null) {
  10707. oprot.writeFieldBegin(GUID_FIELD_DESC);
  10708. oprot.writeString(this.guid);
  10709. oprot.writeFieldEnd();
  10710. }
  10711. oprot.writeFieldStop();
  10712. oprot.writeStructEnd();
  10713. }
  10714. public void validate() throws TException {
  10715. // check for required fields
  10716. }
  10717. }
  10718. private static class findNoteOffset_result implements TBase<findNoteOffset_result>, java.io.Serializable, Cloneable {
  10719. private static final TStruct STRUCT_DESC = new TStruct("findNoteOffset_result");
  10720. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);
  10721. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  10722. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  10723. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  10724. private int success;
  10725. private com.evernote.edam.error.EDAMUserException userException;
  10726. private com.evernote.edam.error.EDAMSystemException systemException;
  10727. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  10728. // isset id assignments
  10729. private static final int __SUCCESS_ISSET_ID = 0;
  10730. private boolean[] __isset_vector = new boolean[1];
  10731. public findNoteOffset_result() {
  10732. }
  10733. /**
  10734. * Performs a deep copy on <i>other</i>.
  10735. */
  10736. public findNoteOffset_result(findNoteOffset_result other) {
  10737. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  10738. this.success = other.success;
  10739. if (other.isSetUserException()) {
  10740. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  10741. }
  10742. if (other.isSetSystemException()) {
  10743. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  10744. }
  10745. if (other.isSetNotFoundException()) {
  10746. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  10747. }
  10748. }
  10749. public findNoteOffset_result deepCopy() {
  10750. return new findNoteOffset_result(this);
  10751. }
  10752. public void clear() {
  10753. setSuccessIsSet(false);
  10754. this.success = 0;
  10755. this.userException = null;
  10756. this.systemException = null;
  10757. this.notFoundException = null;
  10758. }
  10759. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  10760. public boolean isSetSuccess() {
  10761. return __isset_vector[__SUCCESS_ISSET_ID];
  10762. }
  10763. public void setSuccessIsSet(boolean value) {
  10764. __isset_vector[__SUCCESS_ISSET_ID] = value;
  10765. }
  10766. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  10767. public boolean isSetUserException() {
  10768. return this.userException != null;
  10769. }
  10770. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  10771. public boolean isSetSystemException() {
  10772. return this.systemException != null;
  10773. }
  10774. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  10775. public boolean isSetNotFoundException() {
  10776. return this.notFoundException != null;
  10777. }
  10778. public int compareTo(findNoteOffset_result other) {
  10779. if (!getClass().equals(other.getClass())) {
  10780. return getClass().getName().compareTo(other.getClass().getName());
  10781. }
  10782. int lastComparison = 0;
  10783. findNoteOffset_result typedOther = (findNoteOffset_result)other;
  10784. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  10785. if (lastComparison != 0) {
  10786. return lastComparison;
  10787. }
  10788. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  10789. if (lastComparison != 0) {
  10790. return lastComparison;
  10791. }
  10792. }
  10793. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  10794. if (lastComparison != 0) {
  10795. return lastComparison;
  10796. }
  10797. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  10798. if (lastComparison != 0) {
  10799. return lastComparison;
  10800. }
  10801. }
  10802. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  10803. if (lastComparison != 0) {
  10804. return lastComparison;
  10805. }
  10806. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  10807. if (lastComparison != 0) {
  10808. return lastComparison;
  10809. }
  10810. }
  10811. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  10812. if (lastComparison != 0) {
  10813. return lastComparison;
  10814. }
  10815. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  10816. if (lastComparison != 0) {
  10817. return lastComparison;
  10818. }
  10819. }
  10820. return 0;
  10821. }
  10822. public void read(TProtocol iprot) throws TException {
  10823. TField field;
  10824. iprot.readStructBegin();
  10825. while (true)
  10826. {
  10827. field = iprot.readFieldBegin();
  10828. if (field.type == TType.STOP) {
  10829. break;
  10830. }
  10831. switch (field.id) {
  10832. case 0: // SUCCESS
  10833. if (field.type == TType.I32) {
  10834. this.success = iprot.readI32();
  10835. setSuccessIsSet(true);
  10836. } else {
  10837. TProtocolUtil.skip(iprot, field.type);
  10838. }
  10839. break;
  10840. case 1: // USER_EXCEPTION
  10841. if (field.type == TType.STRUCT) {
  10842. this.userException = new com.evernote.edam.error.EDAMUserException();
  10843. this.userException.read(iprot);
  10844. } else {
  10845. TProtocolUtil.skip(iprot, field.type);
  10846. }
  10847. break;
  10848. case 2: // SYSTEM_EXCEPTION
  10849. if (field.type == TType.STRUCT) {
  10850. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  10851. this.systemException.read(iprot);
  10852. } else {
  10853. TProtocolUtil.skip(iprot, field.type);
  10854. }
  10855. break;
  10856. case 3: // NOT_FOUND_EXCEPTION
  10857. if (field.type == TType.STRUCT) {
  10858. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  10859. this.notFoundException.read(iprot);
  10860. } else {
  10861. TProtocolUtil.skip(iprot, field.type);
  10862. }
  10863. break;
  10864. default:
  10865. TProtocolUtil.skip(iprot, field.type);
  10866. }
  10867. iprot.readFieldEnd();
  10868. }
  10869. iprot.readStructEnd();
  10870. validate();
  10871. }
  10872. public void write(TProtocol oprot) throws TException {
  10873. oprot.writeStructBegin(STRUCT_DESC);
  10874. if (this.isSetSuccess()) {
  10875. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  10876. oprot.writeI32(this.success);
  10877. oprot.writeFieldEnd();
  10878. } else if (this.isSetUserException()) {
  10879. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  10880. this.userException.write(oprot);
  10881. oprot.writeFieldEnd();
  10882. } else if (this.isSetSystemException()) {
  10883. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  10884. this.systemException.write(oprot);
  10885. oprot.writeFieldEnd();
  10886. } else if (this.isSetNotFoundException()) {
  10887. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  10888. this.notFoundException.write(oprot);
  10889. oprot.writeFieldEnd();
  10890. }
  10891. oprot.writeFieldStop();
  10892. oprot.writeStructEnd();
  10893. }
  10894. public void validate() throws TException {
  10895. // check for required fields
  10896. }
  10897. }
  10898. private static class findNotesMetadata_args implements TBase<findNotesMetadata_args>, java.io.Serializable, Cloneable {
  10899. private static final TStruct STRUCT_DESC = new TStruct("findNotesMetadata_args");
  10900. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  10901. private static final TField FILTER_FIELD_DESC = new TField("filter", TType.STRUCT, (short)2);
  10902. private static final TField OFFSET_FIELD_DESC = new TField("offset", TType.I32, (short)3);
  10903. private static final TField MAX_NOTES_FIELD_DESC = new TField("maxNotes", TType.I32, (short)4);
  10904. private static final TField RESULT_SPEC_FIELD_DESC = new TField("resultSpec", TType.STRUCT, (short)5);
  10905. private String authenticationToken;
  10906. private NoteFilter filter;
  10907. private int offset;
  10908. private int maxNotes;
  10909. private NotesMetadataResultSpec resultSpec;
  10910. // isset id assignments
  10911. private static final int __OFFSET_ISSET_ID = 0;
  10912. private static final int __MAXNOTES_ISSET_ID = 1;
  10913. private boolean[] __isset_vector = new boolean[2];
  10914. public findNotesMetadata_args() {
  10915. }
  10916. /**
  10917. * Performs a deep copy on <i>other</i>.
  10918. */
  10919. public findNotesMetadata_args(findNotesMetadata_args other) {
  10920. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  10921. if (other.isSetAuthenticationToken()) {
  10922. this.authenticationToken = other.authenticationToken;
  10923. }
  10924. if (other.isSetFilter()) {
  10925. this.filter = new NoteFilter(other.filter);
  10926. }
  10927. this.offset = other.offset;
  10928. this.maxNotes = other.maxNotes;
  10929. if (other.isSetResultSpec()) {
  10930. this.resultSpec = new NotesMetadataResultSpec(other.resultSpec);
  10931. }
  10932. }
  10933. public findNotesMetadata_args deepCopy() {
  10934. return new findNotesMetadata_args(this);
  10935. }
  10936. public void clear() {
  10937. this.authenticationToken = null;
  10938. this.filter = null;
  10939. setOffsetIsSet(false);
  10940. this.offset = 0;
  10941. setMaxNotesIsSet(false);
  10942. this.maxNotes = 0;
  10943. this.resultSpec = null;
  10944. }
  10945. public void setAuthenticationToken(String authenticationToken) {
  10946. this.authenticationToken = authenticationToken;
  10947. }
  10948. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  10949. public boolean isSetAuthenticationToken() {
  10950. return this.authenticationToken != null;
  10951. }
  10952. public void setFilter(NoteFilter filter) {
  10953. this.filter = filter;
  10954. }
  10955. /** Returns true if field filter is set (has been asigned a value) and false otherwise */
  10956. public boolean isSetFilter() {
  10957. return this.filter != null;
  10958. }
  10959. public void setOffset(int offset) {
  10960. this.offset = offset;
  10961. setOffsetIsSet(true);
  10962. }
  10963. /** Returns true if field offset is set (has been asigned a value) and false otherwise */
  10964. public boolean isSetOffset() {
  10965. return __isset_vector[__OFFSET_ISSET_ID];
  10966. }
  10967. public void setOffsetIsSet(boolean value) {
  10968. __isset_vector[__OFFSET_ISSET_ID] = value;
  10969. }
  10970. public void setMaxNotes(int maxNotes) {
  10971. this.maxNotes = maxNotes;
  10972. setMaxNotesIsSet(true);
  10973. }
  10974. /** Returns true if field maxNotes is set (has been asigned a value) and false otherwise */
  10975. public boolean isSetMaxNotes() {
  10976. return __isset_vector[__MAXNOTES_ISSET_ID];
  10977. }
  10978. public void setMaxNotesIsSet(boolean value) {
  10979. __isset_vector[__MAXNOTES_ISSET_ID] = value;
  10980. }
  10981. public void setResultSpec(NotesMetadataResultSpec resultSpec) {
  10982. this.resultSpec = resultSpec;
  10983. }
  10984. /** Returns true if field resultSpec is set (has been asigned a value) and false otherwise */
  10985. public boolean isSetResultSpec() {
  10986. return this.resultSpec != null;
  10987. }
  10988. public int compareTo(findNotesMetadata_args other) {
  10989. if (!getClass().equals(other.getClass())) {
  10990. return getClass().getName().compareTo(other.getClass().getName());
  10991. }
  10992. int lastComparison = 0;
  10993. findNotesMetadata_args typedOther = (findNotesMetadata_args)other;
  10994. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  10995. if (lastComparison != 0) {
  10996. return lastComparison;
  10997. }
  10998. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  10999. if (lastComparison != 0) {
  11000. return lastComparison;
  11001. }
  11002. }
  11003. lastComparison = Boolean.valueOf(isSetFilter()).compareTo(typedOther.isSetFilter());
  11004. if (lastComparison != 0) {
  11005. return lastComparison;
  11006. }
  11007. if (isSetFilter()) { lastComparison = TBaseHelper.compareTo(this.filter, typedOther.filter);
  11008. if (lastComparison != 0) {
  11009. return lastComparison;
  11010. }
  11011. }
  11012. lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
  11013. if (lastComparison != 0) {
  11014. return lastComparison;
  11015. }
  11016. if (isSetOffset()) { lastComparison = TBaseHelper.compareTo(this.offset, typedOther.offset);
  11017. if (lastComparison != 0) {
  11018. return lastComparison;
  11019. }
  11020. }
  11021. lastComparison = Boolean.valueOf(isSetMaxNotes()).compareTo(typedOther.isSetMaxNotes());
  11022. if (lastComparison != 0) {
  11023. return lastComparison;
  11024. }
  11025. if (isSetMaxNotes()) { lastComparison = TBaseHelper.compareTo(this.maxNotes, typedOther.maxNotes);
  11026. if (lastComparison != 0) {
  11027. return lastComparison;
  11028. }
  11029. }
  11030. lastComparison = Boolean.valueOf(isSetResultSpec()).compareTo(typedOther.isSetResultSpec());
  11031. if (lastComparison != 0) {
  11032. return lastComparison;
  11033. }
  11034. if (isSetResultSpec()) { lastComparison = TBaseHelper.compareTo(this.resultSpec, typedOther.resultSpec);
  11035. if (lastComparison != 0) {
  11036. return lastComparison;
  11037. }
  11038. }
  11039. return 0;
  11040. }
  11041. public void read(TProtocol iprot) throws TException {
  11042. TField field;
  11043. iprot.readStructBegin();
  11044. while (true)
  11045. {
  11046. field = iprot.readFieldBegin();
  11047. if (field.type == TType.STOP) {
  11048. break;
  11049. }
  11050. switch (field.id) {
  11051. case 1: // AUTHENTICATION_TOKEN
  11052. if (field.type == TType.STRING) {
  11053. this.authenticationToken = iprot.readString();
  11054. } else {
  11055. TProtocolUtil.skip(iprot, field.type);
  11056. }
  11057. break;
  11058. case 2: // FILTER
  11059. if (field.type == TType.STRUCT) {
  11060. this.filter = new NoteFilter();
  11061. this.filter.read(iprot);
  11062. } else {
  11063. TProtocolUtil.skip(iprot, field.type);
  11064. }
  11065. break;
  11066. case 3: // OFFSET
  11067. if (field.type == TType.I32) {
  11068. this.offset = iprot.readI32();
  11069. setOffsetIsSet(true);
  11070. } else {
  11071. TProtocolUtil.skip(iprot, field.type);
  11072. }
  11073. break;
  11074. case 4: // MAX_NOTES
  11075. if (field.type == TType.I32) {
  11076. this.maxNotes = iprot.readI32();
  11077. setMaxNotesIsSet(true);
  11078. } else {
  11079. TProtocolUtil.skip(iprot, field.type);
  11080. }
  11081. break;
  11082. case 5: // RESULT_SPEC
  11083. if (field.type == TType.STRUCT) {
  11084. this.resultSpec = new NotesMetadataResultSpec();
  11085. this.resultSpec.read(iprot);
  11086. } else {
  11087. TProtocolUtil.skip(iprot, field.type);
  11088. }
  11089. break;
  11090. default:
  11091. TProtocolUtil.skip(iprot, field.type);
  11092. }
  11093. iprot.readFieldEnd();
  11094. }
  11095. iprot.readStructEnd();
  11096. validate();
  11097. }
  11098. public void write(TProtocol oprot) throws TException {
  11099. validate();
  11100. oprot.writeStructBegin(STRUCT_DESC);
  11101. if (this.authenticationToken != null) {
  11102. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  11103. oprot.writeString(this.authenticationToken);
  11104. oprot.writeFieldEnd();
  11105. }
  11106. if (this.filter != null) {
  11107. oprot.writeFieldBegin(FILTER_FIELD_DESC);
  11108. this.filter.write(oprot);
  11109. oprot.writeFieldEnd();
  11110. }
  11111. oprot.writeFieldBegin(OFFSET_FIELD_DESC);
  11112. oprot.writeI32(this.offset);
  11113. oprot.writeFieldEnd();
  11114. oprot.writeFieldBegin(MAX_NOTES_FIELD_DESC);
  11115. oprot.writeI32(this.maxNotes);
  11116. oprot.writeFieldEnd();
  11117. if (this.resultSpec != null) {
  11118. oprot.writeFieldBegin(RESULT_SPEC_FIELD_DESC);
  11119. this.resultSpec.write(oprot);
  11120. oprot.writeFieldEnd();
  11121. }
  11122. oprot.writeFieldStop();
  11123. oprot.writeStructEnd();
  11124. }
  11125. public void validate() throws TException {
  11126. // check for required fields
  11127. }
  11128. }
  11129. private static class findNotesMetadata_result implements TBase<findNotesMetadata_result>, java.io.Serializable, Cloneable {
  11130. private static final TStruct STRUCT_DESC = new TStruct("findNotesMetadata_result");
  11131. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  11132. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  11133. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  11134. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  11135. private NotesMetadataList success;
  11136. private com.evernote.edam.error.EDAMUserException userException;
  11137. private com.evernote.edam.error.EDAMSystemException systemException;
  11138. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  11139. // isset id assignments
  11140. public findNotesMetadata_result() {
  11141. }
  11142. /**
  11143. * Performs a deep copy on <i>other</i>.
  11144. */
  11145. public findNotesMetadata_result(findNotesMetadata_result other) {
  11146. if (other.isSetSuccess()) {
  11147. this.success = new NotesMetadataList(other.success);
  11148. }
  11149. if (other.isSetUserException()) {
  11150. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  11151. }
  11152. if (other.isSetSystemException()) {
  11153. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  11154. }
  11155. if (other.isSetNotFoundException()) {
  11156. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  11157. }
  11158. }
  11159. public findNotesMetadata_result deepCopy() {
  11160. return new findNotesMetadata_result(this);
  11161. }
  11162. public void clear() {
  11163. this.success = null;
  11164. this.userException = null;
  11165. this.systemException = null;
  11166. this.notFoundException = null;
  11167. }
  11168. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  11169. public boolean isSetSuccess() {
  11170. return this.success != null;
  11171. }
  11172. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  11173. public boolean isSetUserException() {
  11174. return this.userException != null;
  11175. }
  11176. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  11177. public boolean isSetSystemException() {
  11178. return this.systemException != null;
  11179. }
  11180. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  11181. public boolean isSetNotFoundException() {
  11182. return this.notFoundException != null;
  11183. }
  11184. public int compareTo(findNotesMetadata_result other) {
  11185. if (!getClass().equals(other.getClass())) {
  11186. return getClass().getName().compareTo(other.getClass().getName());
  11187. }
  11188. int lastComparison = 0;
  11189. findNotesMetadata_result typedOther = (findNotesMetadata_result)other;
  11190. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  11191. if (lastComparison != 0) {
  11192. return lastComparison;
  11193. }
  11194. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  11195. if (lastComparison != 0) {
  11196. return lastComparison;
  11197. }
  11198. }
  11199. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  11200. if (lastComparison != 0) {
  11201. return lastComparison;
  11202. }
  11203. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  11204. if (lastComparison != 0) {
  11205. return lastComparison;
  11206. }
  11207. }
  11208. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  11209. if (lastComparison != 0) {
  11210. return lastComparison;
  11211. }
  11212. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  11213. if (lastComparison != 0) {
  11214. return lastComparison;
  11215. }
  11216. }
  11217. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  11218. if (lastComparison != 0) {
  11219. return lastComparison;
  11220. }
  11221. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  11222. if (lastComparison != 0) {
  11223. return lastComparison;
  11224. }
  11225. }
  11226. return 0;
  11227. }
  11228. public void read(TProtocol iprot) throws TException {
  11229. TField field;
  11230. iprot.readStructBegin();
  11231. while (true)
  11232. {
  11233. field = iprot.readFieldBegin();
  11234. if (field.type == TType.STOP) {
  11235. break;
  11236. }
  11237. switch (field.id) {
  11238. case 0: // SUCCESS
  11239. if (field.type == TType.STRUCT) {
  11240. this.success = new NotesMetadataList();
  11241. this.success.read(iprot);
  11242. } else {
  11243. TProtocolUtil.skip(iprot, field.type);
  11244. }
  11245. break;
  11246. case 1: // USER_EXCEPTION
  11247. if (field.type == TType.STRUCT) {
  11248. this.userException = new com.evernote.edam.error.EDAMUserException();
  11249. this.userException.read(iprot);
  11250. } else {
  11251. TProtocolUtil.skip(iprot, field.type);
  11252. }
  11253. break;
  11254. case 2: // SYSTEM_EXCEPTION
  11255. if (field.type == TType.STRUCT) {
  11256. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  11257. this.systemException.read(iprot);
  11258. } else {
  11259. TProtocolUtil.skip(iprot, field.type);
  11260. }
  11261. break;
  11262. case 3: // NOT_FOUND_EXCEPTION
  11263. if (field.type == TType.STRUCT) {
  11264. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  11265. this.notFoundException.read(iprot);
  11266. } else {
  11267. TProtocolUtil.skip(iprot, field.type);
  11268. }
  11269. break;
  11270. default:
  11271. TProtocolUtil.skip(iprot, field.type);
  11272. }
  11273. iprot.readFieldEnd();
  11274. }
  11275. iprot.readStructEnd();
  11276. validate();
  11277. }
  11278. public void write(TProtocol oprot) throws TException {
  11279. oprot.writeStructBegin(STRUCT_DESC);
  11280. if (this.isSetSuccess()) {
  11281. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  11282. this.success.write(oprot);
  11283. oprot.writeFieldEnd();
  11284. } else if (this.isSetUserException()) {
  11285. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  11286. this.userException.write(oprot);
  11287. oprot.writeFieldEnd();
  11288. } else if (this.isSetSystemException()) {
  11289. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  11290. this.systemException.write(oprot);
  11291. oprot.writeFieldEnd();
  11292. } else if (this.isSetNotFoundException()) {
  11293. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  11294. this.notFoundException.write(oprot);
  11295. oprot.writeFieldEnd();
  11296. }
  11297. oprot.writeFieldStop();
  11298. oprot.writeStructEnd();
  11299. }
  11300. public void validate() throws TException {
  11301. // check for required fields
  11302. }
  11303. }
  11304. private static class findNoteCounts_args implements TBase<findNoteCounts_args>, java.io.Serializable, Cloneable {
  11305. private static final TStruct STRUCT_DESC = new TStruct("findNoteCounts_args");
  11306. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  11307. private static final TField FILTER_FIELD_DESC = new TField("filter", TType.STRUCT, (short)2);
  11308. private static final TField WITH_TRASH_FIELD_DESC = new TField("withTrash", TType.BOOL, (short)3);
  11309. private String authenticationToken;
  11310. private NoteFilter filter;
  11311. private boolean withTrash;
  11312. // isset id assignments
  11313. private static final int __WITHTRASH_ISSET_ID = 0;
  11314. private boolean[] __isset_vector = new boolean[1];
  11315. public findNoteCounts_args() {
  11316. }
  11317. /**
  11318. * Performs a deep copy on <i>other</i>.
  11319. */
  11320. public findNoteCounts_args(findNoteCounts_args other) {
  11321. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  11322. if (other.isSetAuthenticationToken()) {
  11323. this.authenticationToken = other.authenticationToken;
  11324. }
  11325. if (other.isSetFilter()) {
  11326. this.filter = new NoteFilter(other.filter);
  11327. }
  11328. this.withTrash = other.withTrash;
  11329. }
  11330. public findNoteCounts_args deepCopy() {
  11331. return new findNoteCounts_args(this);
  11332. }
  11333. public void clear() {
  11334. this.authenticationToken = null;
  11335. this.filter = null;
  11336. setWithTrashIsSet(false);
  11337. this.withTrash = false;
  11338. }
  11339. public void setAuthenticationToken(String authenticationToken) {
  11340. this.authenticationToken = authenticationToken;
  11341. }
  11342. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  11343. public boolean isSetAuthenticationToken() {
  11344. return this.authenticationToken != null;
  11345. }
  11346. public void setFilter(NoteFilter filter) {
  11347. this.filter = filter;
  11348. }
  11349. /** Returns true if field filter is set (has been asigned a value) and false otherwise */
  11350. public boolean isSetFilter() {
  11351. return this.filter != null;
  11352. }
  11353. public void setWithTrash(boolean withTrash) {
  11354. this.withTrash = withTrash;
  11355. setWithTrashIsSet(true);
  11356. }
  11357. /** Returns true if field withTrash is set (has been asigned a value) and false otherwise */
  11358. public boolean isSetWithTrash() {
  11359. return __isset_vector[__WITHTRASH_ISSET_ID];
  11360. }
  11361. public void setWithTrashIsSet(boolean value) {
  11362. __isset_vector[__WITHTRASH_ISSET_ID] = value;
  11363. }
  11364. public int compareTo(findNoteCounts_args other) {
  11365. if (!getClass().equals(other.getClass())) {
  11366. return getClass().getName().compareTo(other.getClass().getName());
  11367. }
  11368. int lastComparison = 0;
  11369. findNoteCounts_args typedOther = (findNoteCounts_args)other;
  11370. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  11371. if (lastComparison != 0) {
  11372. return lastComparison;
  11373. }
  11374. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  11375. if (lastComparison != 0) {
  11376. return lastComparison;
  11377. }
  11378. }
  11379. lastComparison = Boolean.valueOf(isSetFilter()).compareTo(typedOther.isSetFilter());
  11380. if (lastComparison != 0) {
  11381. return lastComparison;
  11382. }
  11383. if (isSetFilter()) { lastComparison = TBaseHelper.compareTo(this.filter, typedOther.filter);
  11384. if (lastComparison != 0) {
  11385. return lastComparison;
  11386. }
  11387. }
  11388. lastComparison = Boolean.valueOf(isSetWithTrash()).compareTo(typedOther.isSetWithTrash());
  11389. if (lastComparison != 0) {
  11390. return lastComparison;
  11391. }
  11392. if (isSetWithTrash()) { lastComparison = TBaseHelper.compareTo(this.withTrash, typedOther.withTrash);
  11393. if (lastComparison != 0) {
  11394. return lastComparison;
  11395. }
  11396. }
  11397. return 0;
  11398. }
  11399. public void read(TProtocol iprot) throws TException {
  11400. TField field;
  11401. iprot.readStructBegin();
  11402. while (true)
  11403. {
  11404. field = iprot.readFieldBegin();
  11405. if (field.type == TType.STOP) {
  11406. break;
  11407. }
  11408. switch (field.id) {
  11409. case 1: // AUTHENTICATION_TOKEN
  11410. if (field.type == TType.STRING) {
  11411. this.authenticationToken = iprot.readString();
  11412. } else {
  11413. TProtocolUtil.skip(iprot, field.type);
  11414. }
  11415. break;
  11416. case 2: // FILTER
  11417. if (field.type == TType.STRUCT) {
  11418. this.filter = new NoteFilter();
  11419. this.filter.read(iprot);
  11420. } else {
  11421. TProtocolUtil.skip(iprot, field.type);
  11422. }
  11423. break;
  11424. case 3: // WITH_TRASH
  11425. if (field.type == TType.BOOL) {
  11426. this.withTrash = iprot.readBool();
  11427. setWithTrashIsSet(true);
  11428. } else {
  11429. TProtocolUtil.skip(iprot, field.type);
  11430. }
  11431. break;
  11432. default:
  11433. TProtocolUtil.skip(iprot, field.type);
  11434. }
  11435. iprot.readFieldEnd();
  11436. }
  11437. iprot.readStructEnd();
  11438. validate();
  11439. }
  11440. public void write(TProtocol oprot) throws TException {
  11441. validate();
  11442. oprot.writeStructBegin(STRUCT_DESC);
  11443. if (this.authenticationToken != null) {
  11444. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  11445. oprot.writeString(this.authenticationToken);
  11446. oprot.writeFieldEnd();
  11447. }
  11448. if (this.filter != null) {
  11449. oprot.writeFieldBegin(FILTER_FIELD_DESC);
  11450. this.filter.write(oprot);
  11451. oprot.writeFieldEnd();
  11452. }
  11453. oprot.writeFieldBegin(WITH_TRASH_FIELD_DESC);
  11454. oprot.writeBool(this.withTrash);
  11455. oprot.writeFieldEnd();
  11456. oprot.writeFieldStop();
  11457. oprot.writeStructEnd();
  11458. }
  11459. public void validate() throws TException {
  11460. // check for required fields
  11461. }
  11462. }
  11463. private static class findNoteCounts_result implements TBase<findNoteCounts_result>, java.io.Serializable, Cloneable {
  11464. private static final TStruct STRUCT_DESC = new TStruct("findNoteCounts_result");
  11465. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  11466. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  11467. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  11468. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  11469. private NoteCollectionCounts success;
  11470. private com.evernote.edam.error.EDAMUserException userException;
  11471. private com.evernote.edam.error.EDAMSystemException systemException;
  11472. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  11473. // isset id assignments
  11474. public findNoteCounts_result() {
  11475. }
  11476. /**
  11477. * Performs a deep copy on <i>other</i>.
  11478. */
  11479. public findNoteCounts_result(findNoteCounts_result other) {
  11480. if (other.isSetSuccess()) {
  11481. this.success = new NoteCollectionCounts(other.success);
  11482. }
  11483. if (other.isSetUserException()) {
  11484. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  11485. }
  11486. if (other.isSetSystemException()) {
  11487. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  11488. }
  11489. if (other.isSetNotFoundException()) {
  11490. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  11491. }
  11492. }
  11493. public findNoteCounts_result deepCopy() {
  11494. return new findNoteCounts_result(this);
  11495. }
  11496. public void clear() {
  11497. this.success = null;
  11498. this.userException = null;
  11499. this.systemException = null;
  11500. this.notFoundException = null;
  11501. }
  11502. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  11503. public boolean isSetSuccess() {
  11504. return this.success != null;
  11505. }
  11506. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  11507. public boolean isSetUserException() {
  11508. return this.userException != null;
  11509. }
  11510. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  11511. public boolean isSetSystemException() {
  11512. return this.systemException != null;
  11513. }
  11514. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  11515. public boolean isSetNotFoundException() {
  11516. return this.notFoundException != null;
  11517. }
  11518. public int compareTo(findNoteCounts_result other) {
  11519. if (!getClass().equals(other.getClass())) {
  11520. return getClass().getName().compareTo(other.getClass().getName());
  11521. }
  11522. int lastComparison = 0;
  11523. findNoteCounts_result typedOther = (findNoteCounts_result)other;
  11524. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  11525. if (lastComparison != 0) {
  11526. return lastComparison;
  11527. }
  11528. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  11529. if (lastComparison != 0) {
  11530. return lastComparison;
  11531. }
  11532. }
  11533. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  11534. if (lastComparison != 0) {
  11535. return lastComparison;
  11536. }
  11537. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  11538. if (lastComparison != 0) {
  11539. return lastComparison;
  11540. }
  11541. }
  11542. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  11543. if (lastComparison != 0) {
  11544. return lastComparison;
  11545. }
  11546. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  11547. if (lastComparison != 0) {
  11548. return lastComparison;
  11549. }
  11550. }
  11551. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  11552. if (lastComparison != 0) {
  11553. return lastComparison;
  11554. }
  11555. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  11556. if (lastComparison != 0) {
  11557. return lastComparison;
  11558. }
  11559. }
  11560. return 0;
  11561. }
  11562. public void read(TProtocol iprot) throws TException {
  11563. TField field;
  11564. iprot.readStructBegin();
  11565. while (true)
  11566. {
  11567. field = iprot.readFieldBegin();
  11568. if (field.type == TType.STOP) {
  11569. break;
  11570. }
  11571. switch (field.id) {
  11572. case 0: // SUCCESS
  11573. if (field.type == TType.STRUCT) {
  11574. this.success = new NoteCollectionCounts();
  11575. this.success.read(iprot);
  11576. } else {
  11577. TProtocolUtil.skip(iprot, field.type);
  11578. }
  11579. break;
  11580. case 1: // USER_EXCEPTION
  11581. if (field.type == TType.STRUCT) {
  11582. this.userException = new com.evernote.edam.error.EDAMUserException();
  11583. this.userException.read(iprot);
  11584. } else {
  11585. TProtocolUtil.skip(iprot, field.type);
  11586. }
  11587. break;
  11588. case 2: // SYSTEM_EXCEPTION
  11589. if (field.type == TType.STRUCT) {
  11590. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  11591. this.systemException.read(iprot);
  11592. } else {
  11593. TProtocolUtil.skip(iprot, field.type);
  11594. }
  11595. break;
  11596. case 3: // NOT_FOUND_EXCEPTION
  11597. if (field.type == TType.STRUCT) {
  11598. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  11599. this.notFoundException.read(iprot);
  11600. } else {
  11601. TProtocolUtil.skip(iprot, field.type);
  11602. }
  11603. break;
  11604. default:
  11605. TProtocolUtil.skip(iprot, field.type);
  11606. }
  11607. iprot.readFieldEnd();
  11608. }
  11609. iprot.readStructEnd();
  11610. validate();
  11611. }
  11612. public void write(TProtocol oprot) throws TException {
  11613. oprot.writeStructBegin(STRUCT_DESC);
  11614. if (this.isSetSuccess()) {
  11615. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  11616. this.success.write(oprot);
  11617. oprot.writeFieldEnd();
  11618. } else if (this.isSetUserException()) {
  11619. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  11620. this.userException.write(oprot);
  11621. oprot.writeFieldEnd();
  11622. } else if (this.isSetSystemException()) {
  11623. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  11624. this.systemException.write(oprot);
  11625. oprot.writeFieldEnd();
  11626. } else if (this.isSetNotFoundException()) {
  11627. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  11628. this.notFoundException.write(oprot);
  11629. oprot.writeFieldEnd();
  11630. }
  11631. oprot.writeFieldStop();
  11632. oprot.writeStructEnd();
  11633. }
  11634. public void validate() throws TException {
  11635. // check for required fields
  11636. }
  11637. }
  11638. private static class getNote_args implements TBase<getNote_args>, java.io.Serializable, Cloneable {
  11639. private static final TStruct STRUCT_DESC = new TStruct("getNote_args");
  11640. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  11641. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  11642. private static final TField WITH_CONTENT_FIELD_DESC = new TField("withContent", TType.BOOL, (short)3);
  11643. private static final TField WITH_RESOURCES_DATA_FIELD_DESC = new TField("withResourcesData", TType.BOOL, (short)4);
  11644. private static final TField WITH_RESOURCES_RECOGNITION_FIELD_DESC = new TField("withResourcesRecognition", TType.BOOL, (short)5);
  11645. private static final TField WITH_RESOURCES_ALTERNATE_DATA_FIELD_DESC = new TField("withResourcesAlternateData", TType.BOOL, (short)6);
  11646. private String authenticationToken;
  11647. private String guid;
  11648. private boolean withContent;
  11649. private boolean withResourcesData;
  11650. private boolean withResourcesRecognition;
  11651. private boolean withResourcesAlternateData;
  11652. // isset id assignments
  11653. private static final int __WITHCONTENT_ISSET_ID = 0;
  11654. private static final int __WITHRESOURCESDATA_ISSET_ID = 1;
  11655. private static final int __WITHRESOURCESRECOGNITION_ISSET_ID = 2;
  11656. private static final int __WITHRESOURCESALTERNATEDATA_ISSET_ID = 3;
  11657. private boolean[] __isset_vector = new boolean[4];
  11658. public getNote_args() {
  11659. }
  11660. /**
  11661. * Performs a deep copy on <i>other</i>.
  11662. */
  11663. public getNote_args(getNote_args other) {
  11664. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  11665. if (other.isSetAuthenticationToken()) {
  11666. this.authenticationToken = other.authenticationToken;
  11667. }
  11668. if (other.isSetGuid()) {
  11669. this.guid = other.guid;
  11670. }
  11671. this.withContent = other.withContent;
  11672. this.withResourcesData = other.withResourcesData;
  11673. this.withResourcesRecognition = other.withResourcesRecognition;
  11674. this.withResourcesAlternateData = other.withResourcesAlternateData;
  11675. }
  11676. public getNote_args deepCopy() {
  11677. return new getNote_args(this);
  11678. }
  11679. public void clear() {
  11680. this.authenticationToken = null;
  11681. this.guid = null;
  11682. setWithContentIsSet(false);
  11683. this.withContent = false;
  11684. setWithResourcesDataIsSet(false);
  11685. this.withResourcesData = false;
  11686. setWithResourcesRecognitionIsSet(false);
  11687. this.withResourcesRecognition = false;
  11688. setWithResourcesAlternateDataIsSet(false);
  11689. this.withResourcesAlternateData = false;
  11690. }
  11691. public void setAuthenticationToken(String authenticationToken) {
  11692. this.authenticationToken = authenticationToken;
  11693. }
  11694. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  11695. public boolean isSetAuthenticationToken() {
  11696. return this.authenticationToken != null;
  11697. }
  11698. public void setGuid(String guid) {
  11699. this.guid = guid;
  11700. }
  11701. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  11702. public boolean isSetGuid() {
  11703. return this.guid != null;
  11704. }
  11705. public void setWithContent(boolean withContent) {
  11706. this.withContent = withContent;
  11707. setWithContentIsSet(true);
  11708. }
  11709. /** Returns true if field withContent is set (has been asigned a value) and false otherwise */
  11710. public boolean isSetWithContent() {
  11711. return __isset_vector[__WITHCONTENT_ISSET_ID];
  11712. }
  11713. public void setWithContentIsSet(boolean value) {
  11714. __isset_vector[__WITHCONTENT_ISSET_ID] = value;
  11715. }
  11716. public void setWithResourcesData(boolean withResourcesData) {
  11717. this.withResourcesData = withResourcesData;
  11718. setWithResourcesDataIsSet(true);
  11719. }
  11720. /** Returns true if field withResourcesData is set (has been asigned a value) and false otherwise */
  11721. public boolean isSetWithResourcesData() {
  11722. return __isset_vector[__WITHRESOURCESDATA_ISSET_ID];
  11723. }
  11724. public void setWithResourcesDataIsSet(boolean value) {
  11725. __isset_vector[__WITHRESOURCESDATA_ISSET_ID] = value;
  11726. }
  11727. public void setWithResourcesRecognition(boolean withResourcesRecognition) {
  11728. this.withResourcesRecognition = withResourcesRecognition;
  11729. setWithResourcesRecognitionIsSet(true);
  11730. }
  11731. /** Returns true if field withResourcesRecognition is set (has been asigned a value) and false otherwise */
  11732. public boolean isSetWithResourcesRecognition() {
  11733. return __isset_vector[__WITHRESOURCESRECOGNITION_ISSET_ID];
  11734. }
  11735. public void setWithResourcesRecognitionIsSet(boolean value) {
  11736. __isset_vector[__WITHRESOURCESRECOGNITION_ISSET_ID] = value;
  11737. }
  11738. public void setWithResourcesAlternateData(boolean withResourcesAlternateData) {
  11739. this.withResourcesAlternateData = withResourcesAlternateData;
  11740. setWithResourcesAlternateDataIsSet(true);
  11741. }
  11742. /** Returns true if field withResourcesAlternateData is set (has been asigned a value) and false otherwise */
  11743. public boolean isSetWithResourcesAlternateData() {
  11744. return __isset_vector[__WITHRESOURCESALTERNATEDATA_ISSET_ID];
  11745. }
  11746. public void setWithResourcesAlternateDataIsSet(boolean value) {
  11747. __isset_vector[__WITHRESOURCESALTERNATEDATA_ISSET_ID] = value;
  11748. }
  11749. public int compareTo(getNote_args other) {
  11750. if (!getClass().equals(other.getClass())) {
  11751. return getClass().getName().compareTo(other.getClass().getName());
  11752. }
  11753. int lastComparison = 0;
  11754. getNote_args typedOther = (getNote_args)other;
  11755. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  11756. if (lastComparison != 0) {
  11757. return lastComparison;
  11758. }
  11759. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  11760. if (lastComparison != 0) {
  11761. return lastComparison;
  11762. }
  11763. }
  11764. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  11765. if (lastComparison != 0) {
  11766. return lastComparison;
  11767. }
  11768. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  11769. if (lastComparison != 0) {
  11770. return lastComparison;
  11771. }
  11772. }
  11773. lastComparison = Boolean.valueOf(isSetWithContent()).compareTo(typedOther.isSetWithContent());
  11774. if (lastComparison != 0) {
  11775. return lastComparison;
  11776. }
  11777. if (isSetWithContent()) { lastComparison = TBaseHelper.compareTo(this.withContent, typedOther.withContent);
  11778. if (lastComparison != 0) {
  11779. return lastComparison;
  11780. }
  11781. }
  11782. lastComparison = Boolean.valueOf(isSetWithResourcesData()).compareTo(typedOther.isSetWithResourcesData());
  11783. if (lastComparison != 0) {
  11784. return lastComparison;
  11785. }
  11786. if (isSetWithResourcesData()) { lastComparison = TBaseHelper.compareTo(this.withResourcesData, typedOther.withResourcesData);
  11787. if (lastComparison != 0) {
  11788. return lastComparison;
  11789. }
  11790. }
  11791. lastComparison = Boolean.valueOf(isSetWithResourcesRecognition()).compareTo(typedOther.isSetWithResourcesRecognition());
  11792. if (lastComparison != 0) {
  11793. return lastComparison;
  11794. }
  11795. if (isSetWithResourcesRecognition()) { lastComparison = TBaseHelper.compareTo(this.withResourcesRecognition, typedOther.withResourcesRecognition);
  11796. if (lastComparison != 0) {
  11797. return lastComparison;
  11798. }
  11799. }
  11800. lastComparison = Boolean.valueOf(isSetWithResourcesAlternateData()).compareTo(typedOther.isSetWithResourcesAlternateData());
  11801. if (lastComparison != 0) {
  11802. return lastComparison;
  11803. }
  11804. if (isSetWithResourcesAlternateData()) { lastComparison = TBaseHelper.compareTo(this.withResourcesAlternateData, typedOther.withResourcesAlternateData);
  11805. if (lastComparison != 0) {
  11806. return lastComparison;
  11807. }
  11808. }
  11809. return 0;
  11810. }
  11811. public void read(TProtocol iprot) throws TException {
  11812. TField field;
  11813. iprot.readStructBegin();
  11814. while (true)
  11815. {
  11816. field = iprot.readFieldBegin();
  11817. if (field.type == TType.STOP) {
  11818. break;
  11819. }
  11820. switch (field.id) {
  11821. case 1: // AUTHENTICATION_TOKEN
  11822. if (field.type == TType.STRING) {
  11823. this.authenticationToken = iprot.readString();
  11824. } else {
  11825. TProtocolUtil.skip(iprot, field.type);
  11826. }
  11827. break;
  11828. case 2: // GUID
  11829. if (field.type == TType.STRING) {
  11830. this.guid = iprot.readString();
  11831. } else {
  11832. TProtocolUtil.skip(iprot, field.type);
  11833. }
  11834. break;
  11835. case 3: // WITH_CONTENT
  11836. if (field.type == TType.BOOL) {
  11837. this.withContent = iprot.readBool();
  11838. setWithContentIsSet(true);
  11839. } else {
  11840. TProtocolUtil.skip(iprot, field.type);
  11841. }
  11842. break;
  11843. case 4: // WITH_RESOURCES_DATA
  11844. if (field.type == TType.BOOL) {
  11845. this.withResourcesData = iprot.readBool();
  11846. setWithResourcesDataIsSet(true);
  11847. } else {
  11848. TProtocolUtil.skip(iprot, field.type);
  11849. }
  11850. break;
  11851. case 5: // WITH_RESOURCES_RECOGNITION
  11852. if (field.type == TType.BOOL) {
  11853. this.withResourcesRecognition = iprot.readBool();
  11854. setWithResourcesRecognitionIsSet(true);
  11855. } else {
  11856. TProtocolUtil.skip(iprot, field.type);
  11857. }
  11858. break;
  11859. case 6: // WITH_RESOURCES_ALTERNATE_DATA
  11860. if (field.type == TType.BOOL) {
  11861. this.withResourcesAlternateData = iprot.readBool();
  11862. setWithResourcesAlternateDataIsSet(true);
  11863. } else {
  11864. TProtocolUtil.skip(iprot, field.type);
  11865. }
  11866. break;
  11867. default:
  11868. TProtocolUtil.skip(iprot, field.type);
  11869. }
  11870. iprot.readFieldEnd();
  11871. }
  11872. iprot.readStructEnd();
  11873. validate();
  11874. }
  11875. public void write(TProtocol oprot) throws TException {
  11876. validate();
  11877. oprot.writeStructBegin(STRUCT_DESC);
  11878. if (this.authenticationToken != null) {
  11879. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  11880. oprot.writeString(this.authenticationToken);
  11881. oprot.writeFieldEnd();
  11882. }
  11883. if (this.guid != null) {
  11884. oprot.writeFieldBegin(GUID_FIELD_DESC);
  11885. oprot.writeString(this.guid);
  11886. oprot.writeFieldEnd();
  11887. }
  11888. oprot.writeFieldBegin(WITH_CONTENT_FIELD_DESC);
  11889. oprot.writeBool(this.withContent);
  11890. oprot.writeFieldEnd();
  11891. oprot.writeFieldBegin(WITH_RESOURCES_DATA_FIELD_DESC);
  11892. oprot.writeBool(this.withResourcesData);
  11893. oprot.writeFieldEnd();
  11894. oprot.writeFieldBegin(WITH_RESOURCES_RECOGNITION_FIELD_DESC);
  11895. oprot.writeBool(this.withResourcesRecognition);
  11896. oprot.writeFieldEnd();
  11897. oprot.writeFieldBegin(WITH_RESOURCES_ALTERNATE_DATA_FIELD_DESC);
  11898. oprot.writeBool(this.withResourcesAlternateData);
  11899. oprot.writeFieldEnd();
  11900. oprot.writeFieldStop();
  11901. oprot.writeStructEnd();
  11902. }
  11903. public void validate() throws TException {
  11904. // check for required fields
  11905. }
  11906. }
  11907. private static class getNote_result implements TBase<getNote_result>, java.io.Serializable, Cloneable {
  11908. private static final TStruct STRUCT_DESC = new TStruct("getNote_result");
  11909. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  11910. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  11911. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  11912. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  11913. private com.evernote.edam.type.Note success;
  11914. private com.evernote.edam.error.EDAMUserException userException;
  11915. private com.evernote.edam.error.EDAMSystemException systemException;
  11916. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  11917. // isset id assignments
  11918. public getNote_result() {
  11919. }
  11920. /**
  11921. * Performs a deep copy on <i>other</i>.
  11922. */
  11923. public getNote_result(getNote_result other) {
  11924. if (other.isSetSuccess()) {
  11925. this.success = new com.evernote.edam.type.Note(other.success);
  11926. }
  11927. if (other.isSetUserException()) {
  11928. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  11929. }
  11930. if (other.isSetSystemException()) {
  11931. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  11932. }
  11933. if (other.isSetNotFoundException()) {
  11934. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  11935. }
  11936. }
  11937. public getNote_result deepCopy() {
  11938. return new getNote_result(this);
  11939. }
  11940. public void clear() {
  11941. this.success = null;
  11942. this.userException = null;
  11943. this.systemException = null;
  11944. this.notFoundException = null;
  11945. }
  11946. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  11947. public boolean isSetSuccess() {
  11948. return this.success != null;
  11949. }
  11950. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  11951. public boolean isSetUserException() {
  11952. return this.userException != null;
  11953. }
  11954. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  11955. public boolean isSetSystemException() {
  11956. return this.systemException != null;
  11957. }
  11958. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  11959. public boolean isSetNotFoundException() {
  11960. return this.notFoundException != null;
  11961. }
  11962. public int compareTo(getNote_result other) {
  11963. if (!getClass().equals(other.getClass())) {
  11964. return getClass().getName().compareTo(other.getClass().getName());
  11965. }
  11966. int lastComparison = 0;
  11967. getNote_result typedOther = (getNote_result)other;
  11968. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  11969. if (lastCompari