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

http://github.com/evernote/evernote-sdk-java · Java · 27593 lines · 23291 code · 3191 blank · 1111 comment · 6396 complexity · fcb37622fb0c50662ba30817f74025f3 MD5 · raw file

  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 (lastComparison != 0) {
  11970. return lastComparison;
  11971. }
  11972. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  11973. if (lastComparison != 0) {
  11974. return lastComparison;
  11975. }
  11976. }
  11977. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  11978. if (lastComparison != 0) {
  11979. return lastComparison;
  11980. }
  11981. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  11982. if (lastComparison != 0) {
  11983. return lastComparison;
  11984. }
  11985. }
  11986. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  11987. if (lastComparison != 0) {
  11988. return lastComparison;
  11989. }
  11990. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  11991. if (lastComparison != 0) {
  11992. return lastComparison;
  11993. }
  11994. }
  11995. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  11996. if (lastComparison != 0) {
  11997. return lastComparison;
  11998. }
  11999. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  12000. if (lastComparison != 0) {
  12001. return lastComparison;
  12002. }
  12003. }
  12004. return 0;
  12005. }
  12006. public void read(TProtocol iprot) throws TException {
  12007. TField field;
  12008. iprot.readStructBegin();
  12009. while (true)
  12010. {
  12011. field = iprot.readFieldBegin();
  12012. if (field.type == TType.STOP) {
  12013. break;
  12014. }
  12015. switch (field.id) {
  12016. case 0: // SUCCESS
  12017. if (field.type == TType.STRUCT) {
  12018. this.success = new com.evernote.edam.type.Note();
  12019. this.success.read(iprot);
  12020. } else {
  12021. TProtocolUtil.skip(iprot, field.type);
  12022. }
  12023. break;
  12024. case 1: // USER_EXCEPTION
  12025. if (field.type == TType.STRUCT) {
  12026. this.userException = new com.evernote.edam.error.EDAMUserException();
  12027. this.userException.read(iprot);
  12028. } else {
  12029. TProtocolUtil.skip(iprot, field.type);
  12030. }
  12031. break;
  12032. case 2: // SYSTEM_EXCEPTION
  12033. if (field.type == TType.STRUCT) {
  12034. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  12035. this.systemException.read(iprot);
  12036. } else {
  12037. TProtocolUtil.skip(iprot, field.type);
  12038. }
  12039. break;
  12040. case 3: // NOT_FOUND_EXCEPTION
  12041. if (field.type == TType.STRUCT) {
  12042. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  12043. this.notFoundException.read(iprot);
  12044. } else {
  12045. TProtocolUtil.skip(iprot, field.type);
  12046. }
  12047. break;
  12048. default:
  12049. TProtocolUtil.skip(iprot, field.type);
  12050. }
  12051. iprot.readFieldEnd();
  12052. }
  12053. iprot.readStructEnd();
  12054. validate();
  12055. }
  12056. public void write(TProtocol oprot) throws TException {
  12057. oprot.writeStructBegin(STRUCT_DESC);
  12058. if (this.isSetSuccess()) {
  12059. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  12060. this.success.write(oprot);
  12061. oprot.writeFieldEnd();
  12062. } else if (this.isSetUserException()) {
  12063. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  12064. this.userException.write(oprot);
  12065. oprot.writeFieldEnd();
  12066. } else if (this.isSetSystemException()) {
  12067. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  12068. this.systemException.write(oprot);
  12069. oprot.writeFieldEnd();
  12070. } else if (this.isSetNotFoundException()) {
  12071. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  12072. this.notFoundException.write(oprot);
  12073. oprot.writeFieldEnd();
  12074. }
  12075. oprot.writeFieldStop();
  12076. oprot.writeStructEnd();
  12077. }
  12078. public void validate() throws TException {
  12079. // check for required fields
  12080. }
  12081. }
  12082. private static class getNoteApplicationData_args implements TBase<getNoteApplicationData_args>, java.io.Serializable, Cloneable {
  12083. private static final TStruct STRUCT_DESC = new TStruct("getNoteApplicationData_args");
  12084. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  12085. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  12086. private String authenticationToken;
  12087. private String guid;
  12088. // isset id assignments
  12089. public getNoteApplicationData_args() {
  12090. }
  12091. /**
  12092. * Performs a deep copy on <i>other</i>.
  12093. */
  12094. public getNoteApplicationData_args(getNoteApplicationData_args other) {
  12095. if (other.isSetAuthenticationToken()) {
  12096. this.authenticationToken = other.authenticationToken;
  12097. }
  12098. if (other.isSetGuid()) {
  12099. this.guid = other.guid;
  12100. }
  12101. }
  12102. public getNoteApplicationData_args deepCopy() {
  12103. return new getNoteApplicationData_args(this);
  12104. }
  12105. public void clear() {
  12106. this.authenticationToken = null;
  12107. this.guid = null;
  12108. }
  12109. public void setAuthenticationToken(String authenticationToken) {
  12110. this.authenticationToken = authenticationToken;
  12111. }
  12112. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  12113. public boolean isSetAuthenticationToken() {
  12114. return this.authenticationToken != null;
  12115. }
  12116. public void setGuid(String guid) {
  12117. this.guid = guid;
  12118. }
  12119. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  12120. public boolean isSetGuid() {
  12121. return this.guid != null;
  12122. }
  12123. public int compareTo(getNoteApplicationData_args other) {
  12124. if (!getClass().equals(other.getClass())) {
  12125. return getClass().getName().compareTo(other.getClass().getName());
  12126. }
  12127. int lastComparison = 0;
  12128. getNoteApplicationData_args typedOther = (getNoteApplicationData_args)other;
  12129. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  12130. if (lastComparison != 0) {
  12131. return lastComparison;
  12132. }
  12133. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  12134. if (lastComparison != 0) {
  12135. return lastComparison;
  12136. }
  12137. }
  12138. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  12139. if (lastComparison != 0) {
  12140. return lastComparison;
  12141. }
  12142. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  12143. if (lastComparison != 0) {
  12144. return lastComparison;
  12145. }
  12146. }
  12147. return 0;
  12148. }
  12149. public void read(TProtocol iprot) throws TException {
  12150. TField field;
  12151. iprot.readStructBegin();
  12152. while (true)
  12153. {
  12154. field = iprot.readFieldBegin();
  12155. if (field.type == TType.STOP) {
  12156. break;
  12157. }
  12158. switch (field.id) {
  12159. case 1: // AUTHENTICATION_TOKEN
  12160. if (field.type == TType.STRING) {
  12161. this.authenticationToken = iprot.readString();
  12162. } else {
  12163. TProtocolUtil.skip(iprot, field.type);
  12164. }
  12165. break;
  12166. case 2: // GUID
  12167. if (field.type == TType.STRING) {
  12168. this.guid = iprot.readString();
  12169. } else {
  12170. TProtocolUtil.skip(iprot, field.type);
  12171. }
  12172. break;
  12173. default:
  12174. TProtocolUtil.skip(iprot, field.type);
  12175. }
  12176. iprot.readFieldEnd();
  12177. }
  12178. iprot.readStructEnd();
  12179. validate();
  12180. }
  12181. public void write(TProtocol oprot) throws TException {
  12182. validate();
  12183. oprot.writeStructBegin(STRUCT_DESC);
  12184. if (this.authenticationToken != null) {
  12185. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  12186. oprot.writeString(this.authenticationToken);
  12187. oprot.writeFieldEnd();
  12188. }
  12189. if (this.guid != null) {
  12190. oprot.writeFieldBegin(GUID_FIELD_DESC);
  12191. oprot.writeString(this.guid);
  12192. oprot.writeFieldEnd();
  12193. }
  12194. oprot.writeFieldStop();
  12195. oprot.writeStructEnd();
  12196. }
  12197. public void validate() throws TException {
  12198. // check for required fields
  12199. }
  12200. }
  12201. private static class getNoteApplicationData_result implements TBase<getNoteApplicationData_result>, java.io.Serializable, Cloneable {
  12202. private static final TStruct STRUCT_DESC = new TStruct("getNoteApplicationData_result");
  12203. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  12204. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  12205. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  12206. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  12207. private com.evernote.edam.type.LazyMap success;
  12208. private com.evernote.edam.error.EDAMUserException userException;
  12209. private com.evernote.edam.error.EDAMSystemException systemException;
  12210. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  12211. // isset id assignments
  12212. public getNoteApplicationData_result() {
  12213. }
  12214. /**
  12215. * Performs a deep copy on <i>other</i>.
  12216. */
  12217. public getNoteApplicationData_result(getNoteApplicationData_result other) {
  12218. if (other.isSetSuccess()) {
  12219. this.success = new com.evernote.edam.type.LazyMap(other.success);
  12220. }
  12221. if (other.isSetUserException()) {
  12222. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  12223. }
  12224. if (other.isSetSystemException()) {
  12225. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  12226. }
  12227. if (other.isSetNotFoundException()) {
  12228. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  12229. }
  12230. }
  12231. public getNoteApplicationData_result deepCopy() {
  12232. return new getNoteApplicationData_result(this);
  12233. }
  12234. public void clear() {
  12235. this.success = null;
  12236. this.userException = null;
  12237. this.systemException = null;
  12238. this.notFoundException = null;
  12239. }
  12240. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  12241. public boolean isSetSuccess() {
  12242. return this.success != null;
  12243. }
  12244. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  12245. public boolean isSetUserException() {
  12246. return this.userException != null;
  12247. }
  12248. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  12249. public boolean isSetSystemException() {
  12250. return this.systemException != null;
  12251. }
  12252. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  12253. public boolean isSetNotFoundException() {
  12254. return this.notFoundException != null;
  12255. }
  12256. public int compareTo(getNoteApplicationData_result other) {
  12257. if (!getClass().equals(other.getClass())) {
  12258. return getClass().getName().compareTo(other.getClass().getName());
  12259. }
  12260. int lastComparison = 0;
  12261. getNoteApplicationData_result typedOther = (getNoteApplicationData_result)other;
  12262. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  12263. if (lastComparison != 0) {
  12264. return lastComparison;
  12265. }
  12266. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  12267. if (lastComparison != 0) {
  12268. return lastComparison;
  12269. }
  12270. }
  12271. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  12272. if (lastComparison != 0) {
  12273. return lastComparison;
  12274. }
  12275. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  12276. if (lastComparison != 0) {
  12277. return lastComparison;
  12278. }
  12279. }
  12280. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  12281. if (lastComparison != 0) {
  12282. return lastComparison;
  12283. }
  12284. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  12285. if (lastComparison != 0) {
  12286. return lastComparison;
  12287. }
  12288. }
  12289. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  12290. if (lastComparison != 0) {
  12291. return lastComparison;
  12292. }
  12293. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  12294. if (lastComparison != 0) {
  12295. return lastComparison;
  12296. }
  12297. }
  12298. return 0;
  12299. }
  12300. public void read(TProtocol iprot) throws TException {
  12301. TField field;
  12302. iprot.readStructBegin();
  12303. while (true)
  12304. {
  12305. field = iprot.readFieldBegin();
  12306. if (field.type == TType.STOP) {
  12307. break;
  12308. }
  12309. switch (field.id) {
  12310. case 0: // SUCCESS
  12311. if (field.type == TType.STRUCT) {
  12312. this.success = new com.evernote.edam.type.LazyMap();
  12313. this.success.read(iprot);
  12314. } else {
  12315. TProtocolUtil.skip(iprot, field.type);
  12316. }
  12317. break;
  12318. case 1: // USER_EXCEPTION
  12319. if (field.type == TType.STRUCT) {
  12320. this.userException = new com.evernote.edam.error.EDAMUserException();
  12321. this.userException.read(iprot);
  12322. } else {
  12323. TProtocolUtil.skip(iprot, field.type);
  12324. }
  12325. break;
  12326. case 2: // SYSTEM_EXCEPTION
  12327. if (field.type == TType.STRUCT) {
  12328. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  12329. this.systemException.read(iprot);
  12330. } else {
  12331. TProtocolUtil.skip(iprot, field.type);
  12332. }
  12333. break;
  12334. case 3: // NOT_FOUND_EXCEPTION
  12335. if (field.type == TType.STRUCT) {
  12336. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  12337. this.notFoundException.read(iprot);
  12338. } else {
  12339. TProtocolUtil.skip(iprot, field.type);
  12340. }
  12341. break;
  12342. default:
  12343. TProtocolUtil.skip(iprot, field.type);
  12344. }
  12345. iprot.readFieldEnd();
  12346. }
  12347. iprot.readStructEnd();
  12348. validate();
  12349. }
  12350. public void write(TProtocol oprot) throws TException {
  12351. oprot.writeStructBegin(STRUCT_DESC);
  12352. if (this.isSetSuccess()) {
  12353. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  12354. this.success.write(oprot);
  12355. oprot.writeFieldEnd();
  12356. } else if (this.isSetUserException()) {
  12357. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  12358. this.userException.write(oprot);
  12359. oprot.writeFieldEnd();
  12360. } else if (this.isSetSystemException()) {
  12361. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  12362. this.systemException.write(oprot);
  12363. oprot.writeFieldEnd();
  12364. } else if (this.isSetNotFoundException()) {
  12365. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  12366. this.notFoundException.write(oprot);
  12367. oprot.writeFieldEnd();
  12368. }
  12369. oprot.writeFieldStop();
  12370. oprot.writeStructEnd();
  12371. }
  12372. public void validate() throws TException {
  12373. // check for required fields
  12374. }
  12375. }
  12376. private static class getNoteApplicationDataEntry_args implements TBase<getNoteApplicationDataEntry_args>, java.io.Serializable, Cloneable {
  12377. private static final TStruct STRUCT_DESC = new TStruct("getNoteApplicationDataEntry_args");
  12378. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  12379. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  12380. private static final TField KEY_FIELD_DESC = new TField("key", TType.STRING, (short)3);
  12381. private String authenticationToken;
  12382. private String guid;
  12383. private String key;
  12384. // isset id assignments
  12385. public getNoteApplicationDataEntry_args() {
  12386. }
  12387. /**
  12388. * Performs a deep copy on <i>other</i>.
  12389. */
  12390. public getNoteApplicationDataEntry_args(getNoteApplicationDataEntry_args other) {
  12391. if (other.isSetAuthenticationToken()) {
  12392. this.authenticationToken = other.authenticationToken;
  12393. }
  12394. if (other.isSetGuid()) {
  12395. this.guid = other.guid;
  12396. }
  12397. if (other.isSetKey()) {
  12398. this.key = other.key;
  12399. }
  12400. }
  12401. public getNoteApplicationDataEntry_args deepCopy() {
  12402. return new getNoteApplicationDataEntry_args(this);
  12403. }
  12404. public void clear() {
  12405. this.authenticationToken = null;
  12406. this.guid = null;
  12407. this.key = null;
  12408. }
  12409. public void setAuthenticationToken(String authenticationToken) {
  12410. this.authenticationToken = authenticationToken;
  12411. }
  12412. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  12413. public boolean isSetAuthenticationToken() {
  12414. return this.authenticationToken != null;
  12415. }
  12416. public void setGuid(String guid) {
  12417. this.guid = guid;
  12418. }
  12419. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  12420. public boolean isSetGuid() {
  12421. return this.guid != null;
  12422. }
  12423. public void setKey(String key) {
  12424. this.key = key;
  12425. }
  12426. /** Returns true if field key is set (has been asigned a value) and false otherwise */
  12427. public boolean isSetKey() {
  12428. return this.key != null;
  12429. }
  12430. public int compareTo(getNoteApplicationDataEntry_args other) {
  12431. if (!getClass().equals(other.getClass())) {
  12432. return getClass().getName().compareTo(other.getClass().getName());
  12433. }
  12434. int lastComparison = 0;
  12435. getNoteApplicationDataEntry_args typedOther = (getNoteApplicationDataEntry_args)other;
  12436. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  12437. if (lastComparison != 0) {
  12438. return lastComparison;
  12439. }
  12440. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  12441. if (lastComparison != 0) {
  12442. return lastComparison;
  12443. }
  12444. }
  12445. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  12446. if (lastComparison != 0) {
  12447. return lastComparison;
  12448. }
  12449. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  12450. if (lastComparison != 0) {
  12451. return lastComparison;
  12452. }
  12453. }
  12454. lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey());
  12455. if (lastComparison != 0) {
  12456. return lastComparison;
  12457. }
  12458. if (isSetKey()) { lastComparison = TBaseHelper.compareTo(this.key, typedOther.key);
  12459. if (lastComparison != 0) {
  12460. return lastComparison;
  12461. }
  12462. }
  12463. return 0;
  12464. }
  12465. public void read(TProtocol iprot) throws TException {
  12466. TField field;
  12467. iprot.readStructBegin();
  12468. while (true)
  12469. {
  12470. field = iprot.readFieldBegin();
  12471. if (field.type == TType.STOP) {
  12472. break;
  12473. }
  12474. switch (field.id) {
  12475. case 1: // AUTHENTICATION_TOKEN
  12476. if (field.type == TType.STRING) {
  12477. this.authenticationToken = iprot.readString();
  12478. } else {
  12479. TProtocolUtil.skip(iprot, field.type);
  12480. }
  12481. break;
  12482. case 2: // GUID
  12483. if (field.type == TType.STRING) {
  12484. this.guid = iprot.readString();
  12485. } else {
  12486. TProtocolUtil.skip(iprot, field.type);
  12487. }
  12488. break;
  12489. case 3: // KEY
  12490. if (field.type == TType.STRING) {
  12491. this.key = iprot.readString();
  12492. } else {
  12493. TProtocolUtil.skip(iprot, field.type);
  12494. }
  12495. break;
  12496. default:
  12497. TProtocolUtil.skip(iprot, field.type);
  12498. }
  12499. iprot.readFieldEnd();
  12500. }
  12501. iprot.readStructEnd();
  12502. validate();
  12503. }
  12504. public void write(TProtocol oprot) throws TException {
  12505. validate();
  12506. oprot.writeStructBegin(STRUCT_DESC);
  12507. if (this.authenticationToken != null) {
  12508. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  12509. oprot.writeString(this.authenticationToken);
  12510. oprot.writeFieldEnd();
  12511. }
  12512. if (this.guid != null) {
  12513. oprot.writeFieldBegin(GUID_FIELD_DESC);
  12514. oprot.writeString(this.guid);
  12515. oprot.writeFieldEnd();
  12516. }
  12517. if (this.key != null) {
  12518. oprot.writeFieldBegin(KEY_FIELD_DESC);
  12519. oprot.writeString(this.key);
  12520. oprot.writeFieldEnd();
  12521. }
  12522. oprot.writeFieldStop();
  12523. oprot.writeStructEnd();
  12524. }
  12525. public void validate() throws TException {
  12526. // check for required fields
  12527. }
  12528. }
  12529. private static class getNoteApplicationDataEntry_result implements TBase<getNoteApplicationDataEntry_result>, java.io.Serializable, Cloneable {
  12530. private static final TStruct STRUCT_DESC = new TStruct("getNoteApplicationDataEntry_result");
  12531. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRING, (short)0);
  12532. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  12533. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  12534. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  12535. private String success;
  12536. private com.evernote.edam.error.EDAMUserException userException;
  12537. private com.evernote.edam.error.EDAMSystemException systemException;
  12538. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  12539. // isset id assignments
  12540. public getNoteApplicationDataEntry_result() {
  12541. }
  12542. /**
  12543. * Performs a deep copy on <i>other</i>.
  12544. */
  12545. public getNoteApplicationDataEntry_result(getNoteApplicationDataEntry_result other) {
  12546. if (other.isSetSuccess()) {
  12547. this.success = other.success;
  12548. }
  12549. if (other.isSetUserException()) {
  12550. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  12551. }
  12552. if (other.isSetSystemException()) {
  12553. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  12554. }
  12555. if (other.isSetNotFoundException()) {
  12556. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  12557. }
  12558. }
  12559. public getNoteApplicationDataEntry_result deepCopy() {
  12560. return new getNoteApplicationDataEntry_result(this);
  12561. }
  12562. public void clear() {
  12563. this.success = null;
  12564. this.userException = null;
  12565. this.systemException = null;
  12566. this.notFoundException = null;
  12567. }
  12568. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  12569. public boolean isSetSuccess() {
  12570. return this.success != null;
  12571. }
  12572. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  12573. public boolean isSetUserException() {
  12574. return this.userException != null;
  12575. }
  12576. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  12577. public boolean isSetSystemException() {
  12578. return this.systemException != null;
  12579. }
  12580. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  12581. public boolean isSetNotFoundException() {
  12582. return this.notFoundException != null;
  12583. }
  12584. public int compareTo(getNoteApplicationDataEntry_result other) {
  12585. if (!getClass().equals(other.getClass())) {
  12586. return getClass().getName().compareTo(other.getClass().getName());
  12587. }
  12588. int lastComparison = 0;
  12589. getNoteApplicationDataEntry_result typedOther = (getNoteApplicationDataEntry_result)other;
  12590. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  12591. if (lastComparison != 0) {
  12592. return lastComparison;
  12593. }
  12594. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  12595. if (lastComparison != 0) {
  12596. return lastComparison;
  12597. }
  12598. }
  12599. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  12600. if (lastComparison != 0) {
  12601. return lastComparison;
  12602. }
  12603. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  12604. if (lastComparison != 0) {
  12605. return lastComparison;
  12606. }
  12607. }
  12608. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  12609. if (lastComparison != 0) {
  12610. return lastComparison;
  12611. }
  12612. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  12613. if (lastComparison != 0) {
  12614. return lastComparison;
  12615. }
  12616. }
  12617. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  12618. if (lastComparison != 0) {
  12619. return lastComparison;
  12620. }
  12621. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  12622. if (lastComparison != 0) {
  12623. return lastComparison;
  12624. }
  12625. }
  12626. return 0;
  12627. }
  12628. public void read(TProtocol iprot) throws TException {
  12629. TField field;
  12630. iprot.readStructBegin();
  12631. while (true)
  12632. {
  12633. field = iprot.readFieldBegin();
  12634. if (field.type == TType.STOP) {
  12635. break;
  12636. }
  12637. switch (field.id) {
  12638. case 0: // SUCCESS
  12639. if (field.type == TType.STRING) {
  12640. this.success = iprot.readString();
  12641. } else {
  12642. TProtocolUtil.skip(iprot, field.type);
  12643. }
  12644. break;
  12645. case 1: // USER_EXCEPTION
  12646. if (field.type == TType.STRUCT) {
  12647. this.userException = new com.evernote.edam.error.EDAMUserException();
  12648. this.userException.read(iprot);
  12649. } else {
  12650. TProtocolUtil.skip(iprot, field.type);
  12651. }
  12652. break;
  12653. case 2: // SYSTEM_EXCEPTION
  12654. if (field.type == TType.STRUCT) {
  12655. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  12656. this.systemException.read(iprot);
  12657. } else {
  12658. TProtocolUtil.skip(iprot, field.type);
  12659. }
  12660. break;
  12661. case 3: // NOT_FOUND_EXCEPTION
  12662. if (field.type == TType.STRUCT) {
  12663. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  12664. this.notFoundException.read(iprot);
  12665. } else {
  12666. TProtocolUtil.skip(iprot, field.type);
  12667. }
  12668. break;
  12669. default:
  12670. TProtocolUtil.skip(iprot, field.type);
  12671. }
  12672. iprot.readFieldEnd();
  12673. }
  12674. iprot.readStructEnd();
  12675. validate();
  12676. }
  12677. public void write(TProtocol oprot) throws TException {
  12678. oprot.writeStructBegin(STRUCT_DESC);
  12679. if (this.isSetSuccess()) {
  12680. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  12681. oprot.writeString(this.success);
  12682. oprot.writeFieldEnd();
  12683. } else if (this.isSetUserException()) {
  12684. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  12685. this.userException.write(oprot);
  12686. oprot.writeFieldEnd();
  12687. } else if (this.isSetSystemException()) {
  12688. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  12689. this.systemException.write(oprot);
  12690. oprot.writeFieldEnd();
  12691. } else if (this.isSetNotFoundException()) {
  12692. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  12693. this.notFoundException.write(oprot);
  12694. oprot.writeFieldEnd();
  12695. }
  12696. oprot.writeFieldStop();
  12697. oprot.writeStructEnd();
  12698. }
  12699. public void validate() throws TException {
  12700. // check for required fields
  12701. }
  12702. }
  12703. private static class setNoteApplicationDataEntry_args implements TBase<setNoteApplicationDataEntry_args>, java.io.Serializable, Cloneable {
  12704. private static final TStruct STRUCT_DESC = new TStruct("setNoteApplicationDataEntry_args");
  12705. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  12706. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  12707. private static final TField KEY_FIELD_DESC = new TField("key", TType.STRING, (short)3);
  12708. private static final TField VALUE_FIELD_DESC = new TField("value", TType.STRING, (short)4);
  12709. private String authenticationToken;
  12710. private String guid;
  12711. private String key;
  12712. private String value;
  12713. // isset id assignments
  12714. public setNoteApplicationDataEntry_args() {
  12715. }
  12716. /**
  12717. * Performs a deep copy on <i>other</i>.
  12718. */
  12719. public setNoteApplicationDataEntry_args(setNoteApplicationDataEntry_args other) {
  12720. if (other.isSetAuthenticationToken()) {
  12721. this.authenticationToken = other.authenticationToken;
  12722. }
  12723. if (other.isSetGuid()) {
  12724. this.guid = other.guid;
  12725. }
  12726. if (other.isSetKey()) {
  12727. this.key = other.key;
  12728. }
  12729. if (other.isSetValue()) {
  12730. this.value = other.value;
  12731. }
  12732. }
  12733. public setNoteApplicationDataEntry_args deepCopy() {
  12734. return new setNoteApplicationDataEntry_args(this);
  12735. }
  12736. public void clear() {
  12737. this.authenticationToken = null;
  12738. this.guid = null;
  12739. this.key = null;
  12740. this.value = null;
  12741. }
  12742. public void setAuthenticationToken(String authenticationToken) {
  12743. this.authenticationToken = authenticationToken;
  12744. }
  12745. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  12746. public boolean isSetAuthenticationToken() {
  12747. return this.authenticationToken != null;
  12748. }
  12749. public void setGuid(String guid) {
  12750. this.guid = guid;
  12751. }
  12752. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  12753. public boolean isSetGuid() {
  12754. return this.guid != null;
  12755. }
  12756. public void setKey(String key) {
  12757. this.key = key;
  12758. }
  12759. /** Returns true if field key is set (has been asigned a value) and false otherwise */
  12760. public boolean isSetKey() {
  12761. return this.key != null;
  12762. }
  12763. public void setValue(String value) {
  12764. this.value = value;
  12765. }
  12766. /** Returns true if field value is set (has been asigned a value) and false otherwise */
  12767. public boolean isSetValue() {
  12768. return this.value != null;
  12769. }
  12770. public int compareTo(setNoteApplicationDataEntry_args other) {
  12771. if (!getClass().equals(other.getClass())) {
  12772. return getClass().getName().compareTo(other.getClass().getName());
  12773. }
  12774. int lastComparison = 0;
  12775. setNoteApplicationDataEntry_args typedOther = (setNoteApplicationDataEntry_args)other;
  12776. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  12777. if (lastComparison != 0) {
  12778. return lastComparison;
  12779. }
  12780. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  12781. if (lastComparison != 0) {
  12782. return lastComparison;
  12783. }
  12784. }
  12785. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  12786. if (lastComparison != 0) {
  12787. return lastComparison;
  12788. }
  12789. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  12790. if (lastComparison != 0) {
  12791. return lastComparison;
  12792. }
  12793. }
  12794. lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey());
  12795. if (lastComparison != 0) {
  12796. return lastComparison;
  12797. }
  12798. if (isSetKey()) { lastComparison = TBaseHelper.compareTo(this.key, typedOther.key);
  12799. if (lastComparison != 0) {
  12800. return lastComparison;
  12801. }
  12802. }
  12803. lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue());
  12804. if (lastComparison != 0) {
  12805. return lastComparison;
  12806. }
  12807. if (isSetValue()) { lastComparison = TBaseHelper.compareTo(this.value, typedOther.value);
  12808. if (lastComparison != 0) {
  12809. return lastComparison;
  12810. }
  12811. }
  12812. return 0;
  12813. }
  12814. public void read(TProtocol iprot) throws TException {
  12815. TField field;
  12816. iprot.readStructBegin();
  12817. while (true)
  12818. {
  12819. field = iprot.readFieldBegin();
  12820. if (field.type == TType.STOP) {
  12821. break;
  12822. }
  12823. switch (field.id) {
  12824. case 1: // AUTHENTICATION_TOKEN
  12825. if (field.type == TType.STRING) {
  12826. this.authenticationToken = iprot.readString();
  12827. } else {
  12828. TProtocolUtil.skip(iprot, field.type);
  12829. }
  12830. break;
  12831. case 2: // GUID
  12832. if (field.type == TType.STRING) {
  12833. this.guid = iprot.readString();
  12834. } else {
  12835. TProtocolUtil.skip(iprot, field.type);
  12836. }
  12837. break;
  12838. case 3: // KEY
  12839. if (field.type == TType.STRING) {
  12840. this.key = iprot.readString();
  12841. } else {
  12842. TProtocolUtil.skip(iprot, field.type);
  12843. }
  12844. break;
  12845. case 4: // VALUE
  12846. if (field.type == TType.STRING) {
  12847. this.value = iprot.readString();
  12848. } else {
  12849. TProtocolUtil.skip(iprot, field.type);
  12850. }
  12851. break;
  12852. default:
  12853. TProtocolUtil.skip(iprot, field.type);
  12854. }
  12855. iprot.readFieldEnd();
  12856. }
  12857. iprot.readStructEnd();
  12858. validate();
  12859. }
  12860. public void write(TProtocol oprot) throws TException {
  12861. validate();
  12862. oprot.writeStructBegin(STRUCT_DESC);
  12863. if (this.authenticationToken != null) {
  12864. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  12865. oprot.writeString(this.authenticationToken);
  12866. oprot.writeFieldEnd();
  12867. }
  12868. if (this.guid != null) {
  12869. oprot.writeFieldBegin(GUID_FIELD_DESC);
  12870. oprot.writeString(this.guid);
  12871. oprot.writeFieldEnd();
  12872. }
  12873. if (this.key != null) {
  12874. oprot.writeFieldBegin(KEY_FIELD_DESC);
  12875. oprot.writeString(this.key);
  12876. oprot.writeFieldEnd();
  12877. }
  12878. if (this.value != null) {
  12879. oprot.writeFieldBegin(VALUE_FIELD_DESC);
  12880. oprot.writeString(this.value);
  12881. oprot.writeFieldEnd();
  12882. }
  12883. oprot.writeFieldStop();
  12884. oprot.writeStructEnd();
  12885. }
  12886. public void validate() throws TException {
  12887. // check for required fields
  12888. }
  12889. }
  12890. private static class setNoteApplicationDataEntry_result implements TBase<setNoteApplicationDataEntry_result>, java.io.Serializable, Cloneable {
  12891. private static final TStruct STRUCT_DESC = new TStruct("setNoteApplicationDataEntry_result");
  12892. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);
  12893. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  12894. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  12895. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  12896. private int success;
  12897. private com.evernote.edam.error.EDAMUserException userException;
  12898. private com.evernote.edam.error.EDAMSystemException systemException;
  12899. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  12900. // isset id assignments
  12901. private static final int __SUCCESS_ISSET_ID = 0;
  12902. private boolean[] __isset_vector = new boolean[1];
  12903. public setNoteApplicationDataEntry_result() {
  12904. }
  12905. /**
  12906. * Performs a deep copy on <i>other</i>.
  12907. */
  12908. public setNoteApplicationDataEntry_result(setNoteApplicationDataEntry_result other) {
  12909. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  12910. this.success = other.success;
  12911. if (other.isSetUserException()) {
  12912. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  12913. }
  12914. if (other.isSetSystemException()) {
  12915. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  12916. }
  12917. if (other.isSetNotFoundException()) {
  12918. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  12919. }
  12920. }
  12921. public setNoteApplicationDataEntry_result deepCopy() {
  12922. return new setNoteApplicationDataEntry_result(this);
  12923. }
  12924. public void clear() {
  12925. setSuccessIsSet(false);
  12926. this.success = 0;
  12927. this.userException = null;
  12928. this.systemException = null;
  12929. this.notFoundException = null;
  12930. }
  12931. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  12932. public boolean isSetSuccess() {
  12933. return __isset_vector[__SUCCESS_ISSET_ID];
  12934. }
  12935. public void setSuccessIsSet(boolean value) {
  12936. __isset_vector[__SUCCESS_ISSET_ID] = value;
  12937. }
  12938. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  12939. public boolean isSetUserException() {
  12940. return this.userException != null;
  12941. }
  12942. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  12943. public boolean isSetSystemException() {
  12944. return this.systemException != null;
  12945. }
  12946. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  12947. public boolean isSetNotFoundException() {
  12948. return this.notFoundException != null;
  12949. }
  12950. public int compareTo(setNoteApplicationDataEntry_result other) {
  12951. if (!getClass().equals(other.getClass())) {
  12952. return getClass().getName().compareTo(other.getClass().getName());
  12953. }
  12954. int lastComparison = 0;
  12955. setNoteApplicationDataEntry_result typedOther = (setNoteApplicationDataEntry_result)other;
  12956. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  12957. if (lastComparison != 0) {
  12958. return lastComparison;
  12959. }
  12960. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  12961. if (lastComparison != 0) {
  12962. return lastComparison;
  12963. }
  12964. }
  12965. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  12966. if (lastComparison != 0) {
  12967. return lastComparison;
  12968. }
  12969. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  12970. if (lastComparison != 0) {
  12971. return lastComparison;
  12972. }
  12973. }
  12974. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  12975. if (lastComparison != 0) {
  12976. return lastComparison;
  12977. }
  12978. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  12979. if (lastComparison != 0) {
  12980. return lastComparison;
  12981. }
  12982. }
  12983. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  12984. if (lastComparison != 0) {
  12985. return lastComparison;
  12986. }
  12987. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  12988. if (lastComparison != 0) {
  12989. return lastComparison;
  12990. }
  12991. }
  12992. return 0;
  12993. }
  12994. public void read(TProtocol iprot) throws TException {
  12995. TField field;
  12996. iprot.readStructBegin();
  12997. while (true)
  12998. {
  12999. field = iprot.readFieldBegin();
  13000. if (field.type == TType.STOP) {
  13001. break;
  13002. }
  13003. switch (field.id) {
  13004. case 0: // SUCCESS
  13005. if (field.type == TType.I32) {
  13006. this.success = iprot.readI32();
  13007. setSuccessIsSet(true);
  13008. } else {
  13009. TProtocolUtil.skip(iprot, field.type);
  13010. }
  13011. break;
  13012. case 1: // USER_EXCEPTION
  13013. if (field.type == TType.STRUCT) {
  13014. this.userException = new com.evernote.edam.error.EDAMUserException();
  13015. this.userException.read(iprot);
  13016. } else {
  13017. TProtocolUtil.skip(iprot, field.type);
  13018. }
  13019. break;
  13020. case 2: // SYSTEM_EXCEPTION
  13021. if (field.type == TType.STRUCT) {
  13022. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  13023. this.systemException.read(iprot);
  13024. } else {
  13025. TProtocolUtil.skip(iprot, field.type);
  13026. }
  13027. break;
  13028. case 3: // NOT_FOUND_EXCEPTION
  13029. if (field.type == TType.STRUCT) {
  13030. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  13031. this.notFoundException.read(iprot);
  13032. } else {
  13033. TProtocolUtil.skip(iprot, field.type);
  13034. }
  13035. break;
  13036. default:
  13037. TProtocolUtil.skip(iprot, field.type);
  13038. }
  13039. iprot.readFieldEnd();
  13040. }
  13041. iprot.readStructEnd();
  13042. validate();
  13043. }
  13044. public void write(TProtocol oprot) throws TException {
  13045. oprot.writeStructBegin(STRUCT_DESC);
  13046. if (this.isSetSuccess()) {
  13047. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  13048. oprot.writeI32(this.success);
  13049. oprot.writeFieldEnd();
  13050. } else if (this.isSetUserException()) {
  13051. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  13052. this.userException.write(oprot);
  13053. oprot.writeFieldEnd();
  13054. } else if (this.isSetSystemException()) {
  13055. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  13056. this.systemException.write(oprot);
  13057. oprot.writeFieldEnd();
  13058. } else if (this.isSetNotFoundException()) {
  13059. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  13060. this.notFoundException.write(oprot);
  13061. oprot.writeFieldEnd();
  13062. }
  13063. oprot.writeFieldStop();
  13064. oprot.writeStructEnd();
  13065. }
  13066. public void validate() throws TException {
  13067. // check for required fields
  13068. }
  13069. }
  13070. private static class unsetNoteApplicationDataEntry_args implements TBase<unsetNoteApplicationDataEntry_args>, java.io.Serializable, Cloneable {
  13071. private static final TStruct STRUCT_DESC = new TStruct("unsetNoteApplicationDataEntry_args");
  13072. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  13073. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  13074. private static final TField KEY_FIELD_DESC = new TField("key", TType.STRING, (short)3);
  13075. private String authenticationToken;
  13076. private String guid;
  13077. private String key;
  13078. // isset id assignments
  13079. public unsetNoteApplicationDataEntry_args() {
  13080. }
  13081. /**
  13082. * Performs a deep copy on <i>other</i>.
  13083. */
  13084. public unsetNoteApplicationDataEntry_args(unsetNoteApplicationDataEntry_args other) {
  13085. if (other.isSetAuthenticationToken()) {
  13086. this.authenticationToken = other.authenticationToken;
  13087. }
  13088. if (other.isSetGuid()) {
  13089. this.guid = other.guid;
  13090. }
  13091. if (other.isSetKey()) {
  13092. this.key = other.key;
  13093. }
  13094. }
  13095. public unsetNoteApplicationDataEntry_args deepCopy() {
  13096. return new unsetNoteApplicationDataEntry_args(this);
  13097. }
  13098. public void clear() {
  13099. this.authenticationToken = null;
  13100. this.guid = null;
  13101. this.key = null;
  13102. }
  13103. public void setAuthenticationToken(String authenticationToken) {
  13104. this.authenticationToken = authenticationToken;
  13105. }
  13106. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  13107. public boolean isSetAuthenticationToken() {
  13108. return this.authenticationToken != null;
  13109. }
  13110. public void setGuid(String guid) {
  13111. this.guid = guid;
  13112. }
  13113. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  13114. public boolean isSetGuid() {
  13115. return this.guid != null;
  13116. }
  13117. public void setKey(String key) {
  13118. this.key = key;
  13119. }
  13120. /** Returns true if field key is set (has been asigned a value) and false otherwise */
  13121. public boolean isSetKey() {
  13122. return this.key != null;
  13123. }
  13124. public int compareTo(unsetNoteApplicationDataEntry_args other) {
  13125. if (!getClass().equals(other.getClass())) {
  13126. return getClass().getName().compareTo(other.getClass().getName());
  13127. }
  13128. int lastComparison = 0;
  13129. unsetNoteApplicationDataEntry_args typedOther = (unsetNoteApplicationDataEntry_args)other;
  13130. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  13131. if (lastComparison != 0) {
  13132. return lastComparison;
  13133. }
  13134. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  13135. if (lastComparison != 0) {
  13136. return lastComparison;
  13137. }
  13138. }
  13139. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  13140. if (lastComparison != 0) {
  13141. return lastComparison;
  13142. }
  13143. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  13144. if (lastComparison != 0) {
  13145. return lastComparison;
  13146. }
  13147. }
  13148. lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey());
  13149. if (lastComparison != 0) {
  13150. return lastComparison;
  13151. }
  13152. if (isSetKey()) { lastComparison = TBaseHelper.compareTo(this.key, typedOther.key);
  13153. if (lastComparison != 0) {
  13154. return lastComparison;
  13155. }
  13156. }
  13157. return 0;
  13158. }
  13159. public void read(TProtocol iprot) throws TException {
  13160. TField field;
  13161. iprot.readStructBegin();
  13162. while (true)
  13163. {
  13164. field = iprot.readFieldBegin();
  13165. if (field.type == TType.STOP) {
  13166. break;
  13167. }
  13168. switch (field.id) {
  13169. case 1: // AUTHENTICATION_TOKEN
  13170. if (field.type == TType.STRING) {
  13171. this.authenticationToken = iprot.readString();
  13172. } else {
  13173. TProtocolUtil.skip(iprot, field.type);
  13174. }
  13175. break;
  13176. case 2: // GUID
  13177. if (field.type == TType.STRING) {
  13178. this.guid = iprot.readString();
  13179. } else {
  13180. TProtocolUtil.skip(iprot, field.type);
  13181. }
  13182. break;
  13183. case 3: // KEY
  13184. if (field.type == TType.STRING) {
  13185. this.key = iprot.readString();
  13186. } else {
  13187. TProtocolUtil.skip(iprot, field.type);
  13188. }
  13189. break;
  13190. default:
  13191. TProtocolUtil.skip(iprot, field.type);
  13192. }
  13193. iprot.readFieldEnd();
  13194. }
  13195. iprot.readStructEnd();
  13196. validate();
  13197. }
  13198. public void write(TProtocol oprot) throws TException {
  13199. validate();
  13200. oprot.writeStructBegin(STRUCT_DESC);
  13201. if (this.authenticationToken != null) {
  13202. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  13203. oprot.writeString(this.authenticationToken);
  13204. oprot.writeFieldEnd();
  13205. }
  13206. if (this.guid != null) {
  13207. oprot.writeFieldBegin(GUID_FIELD_DESC);
  13208. oprot.writeString(this.guid);
  13209. oprot.writeFieldEnd();
  13210. }
  13211. if (this.key != null) {
  13212. oprot.writeFieldBegin(KEY_FIELD_DESC);
  13213. oprot.writeString(this.key);
  13214. oprot.writeFieldEnd();
  13215. }
  13216. oprot.writeFieldStop();
  13217. oprot.writeStructEnd();
  13218. }
  13219. public void validate() throws TException {
  13220. // check for required fields
  13221. }
  13222. }
  13223. private static class unsetNoteApplicationDataEntry_result implements TBase<unsetNoteApplicationDataEntry_result>, java.io.Serializable, Cloneable {
  13224. private static final TStruct STRUCT_DESC = new TStruct("unsetNoteApplicationDataEntry_result");
  13225. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);
  13226. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  13227. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  13228. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  13229. private int success;
  13230. private com.evernote.edam.error.EDAMUserException userException;
  13231. private com.evernote.edam.error.EDAMSystemException systemException;
  13232. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  13233. // isset id assignments
  13234. private static final int __SUCCESS_ISSET_ID = 0;
  13235. private boolean[] __isset_vector = new boolean[1];
  13236. public unsetNoteApplicationDataEntry_result() {
  13237. }
  13238. /**
  13239. * Performs a deep copy on <i>other</i>.
  13240. */
  13241. public unsetNoteApplicationDataEntry_result(unsetNoteApplicationDataEntry_result other) {
  13242. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  13243. this.success = other.success;
  13244. if (other.isSetUserException()) {
  13245. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  13246. }
  13247. if (other.isSetSystemException()) {
  13248. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  13249. }
  13250. if (other.isSetNotFoundException()) {
  13251. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  13252. }
  13253. }
  13254. public unsetNoteApplicationDataEntry_result deepCopy() {
  13255. return new unsetNoteApplicationDataEntry_result(this);
  13256. }
  13257. public void clear() {
  13258. setSuccessIsSet(false);
  13259. this.success = 0;
  13260. this.userException = null;
  13261. this.systemException = null;
  13262. this.notFoundException = null;
  13263. }
  13264. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  13265. public boolean isSetSuccess() {
  13266. return __isset_vector[__SUCCESS_ISSET_ID];
  13267. }
  13268. public void setSuccessIsSet(boolean value) {
  13269. __isset_vector[__SUCCESS_ISSET_ID] = value;
  13270. }
  13271. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  13272. public boolean isSetUserException() {
  13273. return this.userException != null;
  13274. }
  13275. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  13276. public boolean isSetSystemException() {
  13277. return this.systemException != null;
  13278. }
  13279. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  13280. public boolean isSetNotFoundException() {
  13281. return this.notFoundException != null;
  13282. }
  13283. public int compareTo(unsetNoteApplicationDataEntry_result other) {
  13284. if (!getClass().equals(other.getClass())) {
  13285. return getClass().getName().compareTo(other.getClass().getName());
  13286. }
  13287. int lastComparison = 0;
  13288. unsetNoteApplicationDataEntry_result typedOther = (unsetNoteApplicationDataEntry_result)other;
  13289. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  13290. if (lastComparison != 0) {
  13291. return lastComparison;
  13292. }
  13293. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  13294. if (lastComparison != 0) {
  13295. return lastComparison;
  13296. }
  13297. }
  13298. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  13299. if (lastComparison != 0) {
  13300. return lastComparison;
  13301. }
  13302. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  13303. if (lastComparison != 0) {
  13304. return lastComparison;
  13305. }
  13306. }
  13307. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  13308. if (lastComparison != 0) {
  13309. return lastComparison;
  13310. }
  13311. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  13312. if (lastComparison != 0) {
  13313. return lastComparison;
  13314. }
  13315. }
  13316. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  13317. if (lastComparison != 0) {
  13318. return lastComparison;
  13319. }
  13320. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  13321. if (lastComparison != 0) {
  13322. return lastComparison;
  13323. }
  13324. }
  13325. return 0;
  13326. }
  13327. public void read(TProtocol iprot) throws TException {
  13328. TField field;
  13329. iprot.readStructBegin();
  13330. while (true)
  13331. {
  13332. field = iprot.readFieldBegin();
  13333. if (field.type == TType.STOP) {
  13334. break;
  13335. }
  13336. switch (field.id) {
  13337. case 0: // SUCCESS
  13338. if (field.type == TType.I32) {
  13339. this.success = iprot.readI32();
  13340. setSuccessIsSet(true);
  13341. } else {
  13342. TProtocolUtil.skip(iprot, field.type);
  13343. }
  13344. break;
  13345. case 1: // USER_EXCEPTION
  13346. if (field.type == TType.STRUCT) {
  13347. this.userException = new com.evernote.edam.error.EDAMUserException();
  13348. this.userException.read(iprot);
  13349. } else {
  13350. TProtocolUtil.skip(iprot, field.type);
  13351. }
  13352. break;
  13353. case 2: // SYSTEM_EXCEPTION
  13354. if (field.type == TType.STRUCT) {
  13355. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  13356. this.systemException.read(iprot);
  13357. } else {
  13358. TProtocolUtil.skip(iprot, field.type);
  13359. }
  13360. break;
  13361. case 3: // NOT_FOUND_EXCEPTION
  13362. if (field.type == TType.STRUCT) {
  13363. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  13364. this.notFoundException.read(iprot);
  13365. } else {
  13366. TProtocolUtil.skip(iprot, field.type);
  13367. }
  13368. break;
  13369. default:
  13370. TProtocolUtil.skip(iprot, field.type);
  13371. }
  13372. iprot.readFieldEnd();
  13373. }
  13374. iprot.readStructEnd();
  13375. validate();
  13376. }
  13377. public void write(TProtocol oprot) throws TException {
  13378. oprot.writeStructBegin(STRUCT_DESC);
  13379. if (this.isSetSuccess()) {
  13380. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  13381. oprot.writeI32(this.success);
  13382. oprot.writeFieldEnd();
  13383. } else if (this.isSetUserException()) {
  13384. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  13385. this.userException.write(oprot);
  13386. oprot.writeFieldEnd();
  13387. } else if (this.isSetSystemException()) {
  13388. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  13389. this.systemException.write(oprot);
  13390. oprot.writeFieldEnd();
  13391. } else if (this.isSetNotFoundException()) {
  13392. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  13393. this.notFoundException.write(oprot);
  13394. oprot.writeFieldEnd();
  13395. }
  13396. oprot.writeFieldStop();
  13397. oprot.writeStructEnd();
  13398. }
  13399. public void validate() throws TException {
  13400. // check for required fields
  13401. }
  13402. }
  13403. private static class getNoteContent_args implements TBase<getNoteContent_args>, java.io.Serializable, Cloneable {
  13404. private static final TStruct STRUCT_DESC = new TStruct("getNoteContent_args");
  13405. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  13406. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  13407. private String authenticationToken;
  13408. private String guid;
  13409. // isset id assignments
  13410. public getNoteContent_args() {
  13411. }
  13412. /**
  13413. * Performs a deep copy on <i>other</i>.
  13414. */
  13415. public getNoteContent_args(getNoteContent_args other) {
  13416. if (other.isSetAuthenticationToken()) {
  13417. this.authenticationToken = other.authenticationToken;
  13418. }
  13419. if (other.isSetGuid()) {
  13420. this.guid = other.guid;
  13421. }
  13422. }
  13423. public getNoteContent_args deepCopy() {
  13424. return new getNoteContent_args(this);
  13425. }
  13426. public void clear() {
  13427. this.authenticationToken = null;
  13428. this.guid = null;
  13429. }
  13430. public void setAuthenticationToken(String authenticationToken) {
  13431. this.authenticationToken = authenticationToken;
  13432. }
  13433. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  13434. public boolean isSetAuthenticationToken() {
  13435. return this.authenticationToken != null;
  13436. }
  13437. public void setGuid(String guid) {
  13438. this.guid = guid;
  13439. }
  13440. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  13441. public boolean isSetGuid() {
  13442. return this.guid != null;
  13443. }
  13444. public int compareTo(getNoteContent_args other) {
  13445. if (!getClass().equals(other.getClass())) {
  13446. return getClass().getName().compareTo(other.getClass().getName());
  13447. }
  13448. int lastComparison = 0;
  13449. getNoteContent_args typedOther = (getNoteContent_args)other;
  13450. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  13451. if (lastComparison != 0) {
  13452. return lastComparison;
  13453. }
  13454. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  13455. if (lastComparison != 0) {
  13456. return lastComparison;
  13457. }
  13458. }
  13459. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  13460. if (lastComparison != 0) {
  13461. return lastComparison;
  13462. }
  13463. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  13464. if (lastComparison != 0) {
  13465. return lastComparison;
  13466. }
  13467. }
  13468. return 0;
  13469. }
  13470. public void read(TProtocol iprot) throws TException {
  13471. TField field;
  13472. iprot.readStructBegin();
  13473. while (true)
  13474. {
  13475. field = iprot.readFieldBegin();
  13476. if (field.type == TType.STOP) {
  13477. break;
  13478. }
  13479. switch (field.id) {
  13480. case 1: // AUTHENTICATION_TOKEN
  13481. if (field.type == TType.STRING) {
  13482. this.authenticationToken = iprot.readString();
  13483. } else {
  13484. TProtocolUtil.skip(iprot, field.type);
  13485. }
  13486. break;
  13487. case 2: // GUID
  13488. if (field.type == TType.STRING) {
  13489. this.guid = iprot.readString();
  13490. } else {
  13491. TProtocolUtil.skip(iprot, field.type);
  13492. }
  13493. break;
  13494. default:
  13495. TProtocolUtil.skip(iprot, field.type);
  13496. }
  13497. iprot.readFieldEnd();
  13498. }
  13499. iprot.readStructEnd();
  13500. validate();
  13501. }
  13502. public void write(TProtocol oprot) throws TException {
  13503. validate();
  13504. oprot.writeStructBegin(STRUCT_DESC);
  13505. if (this.authenticationToken != null) {
  13506. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  13507. oprot.writeString(this.authenticationToken);
  13508. oprot.writeFieldEnd();
  13509. }
  13510. if (this.guid != null) {
  13511. oprot.writeFieldBegin(GUID_FIELD_DESC);
  13512. oprot.writeString(this.guid);
  13513. oprot.writeFieldEnd();
  13514. }
  13515. oprot.writeFieldStop();
  13516. oprot.writeStructEnd();
  13517. }
  13518. public void validate() throws TException {
  13519. // check for required fields
  13520. }
  13521. }
  13522. private static class getNoteContent_result implements TBase<getNoteContent_result>, java.io.Serializable, Cloneable {
  13523. private static final TStruct STRUCT_DESC = new TStruct("getNoteContent_result");
  13524. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRING, (short)0);
  13525. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  13526. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  13527. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  13528. private String success;
  13529. private com.evernote.edam.error.EDAMUserException userException;
  13530. private com.evernote.edam.error.EDAMSystemException systemException;
  13531. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  13532. // isset id assignments
  13533. public getNoteContent_result() {
  13534. }
  13535. /**
  13536. * Performs a deep copy on <i>other</i>.
  13537. */
  13538. public getNoteContent_result(getNoteContent_result other) {
  13539. if (other.isSetSuccess()) {
  13540. this.success = other.success;
  13541. }
  13542. if (other.isSetUserException()) {
  13543. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  13544. }
  13545. if (other.isSetSystemException()) {
  13546. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  13547. }
  13548. if (other.isSetNotFoundException()) {
  13549. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  13550. }
  13551. }
  13552. public getNoteContent_result deepCopy() {
  13553. return new getNoteContent_result(this);
  13554. }
  13555. public void clear() {
  13556. this.success = null;
  13557. this.userException = null;
  13558. this.systemException = null;
  13559. this.notFoundException = null;
  13560. }
  13561. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  13562. public boolean isSetSuccess() {
  13563. return this.success != null;
  13564. }
  13565. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  13566. public boolean isSetUserException() {
  13567. return this.userException != null;
  13568. }
  13569. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  13570. public boolean isSetSystemException() {
  13571. return this.systemException != null;
  13572. }
  13573. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  13574. public boolean isSetNotFoundException() {
  13575. return this.notFoundException != null;
  13576. }
  13577. public int compareTo(getNoteContent_result other) {
  13578. if (!getClass().equals(other.getClass())) {
  13579. return getClass().getName().compareTo(other.getClass().getName());
  13580. }
  13581. int lastComparison = 0;
  13582. getNoteContent_result typedOther = (getNoteContent_result)other;
  13583. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  13584. if (lastComparison != 0) {
  13585. return lastComparison;
  13586. }
  13587. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  13588. if (lastComparison != 0) {
  13589. return lastComparison;
  13590. }
  13591. }
  13592. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  13593. if (lastComparison != 0) {
  13594. return lastComparison;
  13595. }
  13596. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  13597. if (lastComparison != 0) {
  13598. return lastComparison;
  13599. }
  13600. }
  13601. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  13602. if (lastComparison != 0) {
  13603. return lastComparison;
  13604. }
  13605. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  13606. if (lastComparison != 0) {
  13607. return lastComparison;
  13608. }
  13609. }
  13610. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  13611. if (lastComparison != 0) {
  13612. return lastComparison;
  13613. }
  13614. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  13615. if (lastComparison != 0) {
  13616. return lastComparison;
  13617. }
  13618. }
  13619. return 0;
  13620. }
  13621. public void read(TProtocol iprot) throws TException {
  13622. TField field;
  13623. iprot.readStructBegin();
  13624. while (true)
  13625. {
  13626. field = iprot.readFieldBegin();
  13627. if (field.type == TType.STOP) {
  13628. break;
  13629. }
  13630. switch (field.id) {
  13631. case 0: // SUCCESS
  13632. if (field.type == TType.STRING) {
  13633. this.success = iprot.readString();
  13634. } else {
  13635. TProtocolUtil.skip(iprot, field.type);
  13636. }
  13637. break;
  13638. case 1: // USER_EXCEPTION
  13639. if (field.type == TType.STRUCT) {
  13640. this.userException = new com.evernote.edam.error.EDAMUserException();
  13641. this.userException.read(iprot);
  13642. } else {
  13643. TProtocolUtil.skip(iprot, field.type);
  13644. }
  13645. break;
  13646. case 2: // SYSTEM_EXCEPTION
  13647. if (field.type == TType.STRUCT) {
  13648. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  13649. this.systemException.read(iprot);
  13650. } else {
  13651. TProtocolUtil.skip(iprot, field.type);
  13652. }
  13653. break;
  13654. case 3: // NOT_FOUND_EXCEPTION
  13655. if (field.type == TType.STRUCT) {
  13656. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  13657. this.notFoundException.read(iprot);
  13658. } else {
  13659. TProtocolUtil.skip(iprot, field.type);
  13660. }
  13661. break;
  13662. default:
  13663. TProtocolUtil.skip(iprot, field.type);
  13664. }
  13665. iprot.readFieldEnd();
  13666. }
  13667. iprot.readStructEnd();
  13668. validate();
  13669. }
  13670. public void write(TProtocol oprot) throws TException {
  13671. oprot.writeStructBegin(STRUCT_DESC);
  13672. if (this.isSetSuccess()) {
  13673. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  13674. oprot.writeString(this.success);
  13675. oprot.writeFieldEnd();
  13676. } else if (this.isSetUserException()) {
  13677. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  13678. this.userException.write(oprot);
  13679. oprot.writeFieldEnd();
  13680. } else if (this.isSetSystemException()) {
  13681. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  13682. this.systemException.write(oprot);
  13683. oprot.writeFieldEnd();
  13684. } else if (this.isSetNotFoundException()) {
  13685. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  13686. this.notFoundException.write(oprot);
  13687. oprot.writeFieldEnd();
  13688. }
  13689. oprot.writeFieldStop();
  13690. oprot.writeStructEnd();
  13691. }
  13692. public void validate() throws TException {
  13693. // check for required fields
  13694. }
  13695. }
  13696. private static class getNoteSearchText_args implements TBase<getNoteSearchText_args>, java.io.Serializable, Cloneable {
  13697. private static final TStruct STRUCT_DESC = new TStruct("getNoteSearchText_args");
  13698. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  13699. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  13700. private static final TField NOTE_ONLY_FIELD_DESC = new TField("noteOnly", TType.BOOL, (short)3);
  13701. private static final TField TOKENIZE_FOR_INDEXING_FIELD_DESC = new TField("tokenizeForIndexing", TType.BOOL, (short)4);
  13702. private String authenticationToken;
  13703. private String guid;
  13704. private boolean noteOnly;
  13705. private boolean tokenizeForIndexing;
  13706. // isset id assignments
  13707. private static final int __NOTEONLY_ISSET_ID = 0;
  13708. private static final int __TOKENIZEFORINDEXING_ISSET_ID = 1;
  13709. private boolean[] __isset_vector = new boolean[2];
  13710. public getNoteSearchText_args() {
  13711. }
  13712. /**
  13713. * Performs a deep copy on <i>other</i>.
  13714. */
  13715. public getNoteSearchText_args(getNoteSearchText_args other) {
  13716. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  13717. if (other.isSetAuthenticationToken()) {
  13718. this.authenticationToken = other.authenticationToken;
  13719. }
  13720. if (other.isSetGuid()) {
  13721. this.guid = other.guid;
  13722. }
  13723. this.noteOnly = other.noteOnly;
  13724. this.tokenizeForIndexing = other.tokenizeForIndexing;
  13725. }
  13726. public getNoteSearchText_args deepCopy() {
  13727. return new getNoteSearchText_args(this);
  13728. }
  13729. public void clear() {
  13730. this.authenticationToken = null;
  13731. this.guid = null;
  13732. setNoteOnlyIsSet(false);
  13733. this.noteOnly = false;
  13734. setTokenizeForIndexingIsSet(false);
  13735. this.tokenizeForIndexing = false;
  13736. }
  13737. public void setAuthenticationToken(String authenticationToken) {
  13738. this.authenticationToken = authenticationToken;
  13739. }
  13740. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  13741. public boolean isSetAuthenticationToken() {
  13742. return this.authenticationToken != null;
  13743. }
  13744. public void setGuid(String guid) {
  13745. this.guid = guid;
  13746. }
  13747. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  13748. public boolean isSetGuid() {
  13749. return this.guid != null;
  13750. }
  13751. public void setNoteOnly(boolean noteOnly) {
  13752. this.noteOnly = noteOnly;
  13753. setNoteOnlyIsSet(true);
  13754. }
  13755. /** Returns true if field noteOnly is set (has been asigned a value) and false otherwise */
  13756. public boolean isSetNoteOnly() {
  13757. return __isset_vector[__NOTEONLY_ISSET_ID];
  13758. }
  13759. public void setNoteOnlyIsSet(boolean value) {
  13760. __isset_vector[__NOTEONLY_ISSET_ID] = value;
  13761. }
  13762. public void setTokenizeForIndexing(boolean tokenizeForIndexing) {
  13763. this.tokenizeForIndexing = tokenizeForIndexing;
  13764. setTokenizeForIndexingIsSet(true);
  13765. }
  13766. /** Returns true if field tokenizeForIndexing is set (has been asigned a value) and false otherwise */
  13767. public boolean isSetTokenizeForIndexing() {
  13768. return __isset_vector[__TOKENIZEFORINDEXING_ISSET_ID];
  13769. }
  13770. public void setTokenizeForIndexingIsSet(boolean value) {
  13771. __isset_vector[__TOKENIZEFORINDEXING_ISSET_ID] = value;
  13772. }
  13773. public int compareTo(getNoteSearchText_args other) {
  13774. if (!getClass().equals(other.getClass())) {
  13775. return getClass().getName().compareTo(other.getClass().getName());
  13776. }
  13777. int lastComparison = 0;
  13778. getNoteSearchText_args typedOther = (getNoteSearchText_args)other;
  13779. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  13780. if (lastComparison != 0) {
  13781. return lastComparison;
  13782. }
  13783. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  13784. if (lastComparison != 0) {
  13785. return lastComparison;
  13786. }
  13787. }
  13788. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  13789. if (lastComparison != 0) {
  13790. return lastComparison;
  13791. }
  13792. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  13793. if (lastComparison != 0) {
  13794. return lastComparison;
  13795. }
  13796. }
  13797. lastComparison = Boolean.valueOf(isSetNoteOnly()).compareTo(typedOther.isSetNoteOnly());
  13798. if (lastComparison != 0) {
  13799. return lastComparison;
  13800. }
  13801. if (isSetNoteOnly()) { lastComparison = TBaseHelper.compareTo(this.noteOnly, typedOther.noteOnly);
  13802. if (lastComparison != 0) {
  13803. return lastComparison;
  13804. }
  13805. }
  13806. lastComparison = Boolean.valueOf(isSetTokenizeForIndexing()).compareTo(typedOther.isSetTokenizeForIndexing());
  13807. if (lastComparison != 0) {
  13808. return lastComparison;
  13809. }
  13810. if (isSetTokenizeForIndexing()) { lastComparison = TBaseHelper.compareTo(this.tokenizeForIndexing, typedOther.tokenizeForIndexing);
  13811. if (lastComparison != 0) {
  13812. return lastComparison;
  13813. }
  13814. }
  13815. return 0;
  13816. }
  13817. public void read(TProtocol iprot) throws TException {
  13818. TField field;
  13819. iprot.readStructBegin();
  13820. while (true)
  13821. {
  13822. field = iprot.readFieldBegin();
  13823. if (field.type == TType.STOP) {
  13824. break;
  13825. }
  13826. switch (field.id) {
  13827. case 1: // AUTHENTICATION_TOKEN
  13828. if (field.type == TType.STRING) {
  13829. this.authenticationToken = iprot.readString();
  13830. } else {
  13831. TProtocolUtil.skip(iprot, field.type);
  13832. }
  13833. break;
  13834. case 2: // GUID
  13835. if (field.type == TType.STRING) {
  13836. this.guid = iprot.readString();
  13837. } else {
  13838. TProtocolUtil.skip(iprot, field.type);
  13839. }
  13840. break;
  13841. case 3: // NOTE_ONLY
  13842. if (field.type == TType.BOOL) {
  13843. this.noteOnly = iprot.readBool();
  13844. setNoteOnlyIsSet(true);
  13845. } else {
  13846. TProtocolUtil.skip(iprot, field.type);
  13847. }
  13848. break;
  13849. case 4: // TOKENIZE_FOR_INDEXING
  13850. if (field.type == TType.BOOL) {
  13851. this.tokenizeForIndexing = iprot.readBool();
  13852. setTokenizeForIndexingIsSet(true);
  13853. } else {
  13854. TProtocolUtil.skip(iprot, field.type);
  13855. }
  13856. break;
  13857. default:
  13858. TProtocolUtil.skip(iprot, field.type);
  13859. }
  13860. iprot.readFieldEnd();
  13861. }
  13862. iprot.readStructEnd();
  13863. validate();
  13864. }
  13865. public void write(TProtocol oprot) throws TException {
  13866. validate();
  13867. oprot.writeStructBegin(STRUCT_DESC);
  13868. if (this.authenticationToken != null) {
  13869. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  13870. oprot.writeString(this.authenticationToken);
  13871. oprot.writeFieldEnd();
  13872. }
  13873. if (this.guid != null) {
  13874. oprot.writeFieldBegin(GUID_FIELD_DESC);
  13875. oprot.writeString(this.guid);
  13876. oprot.writeFieldEnd();
  13877. }
  13878. oprot.writeFieldBegin(NOTE_ONLY_FIELD_DESC);
  13879. oprot.writeBool(this.noteOnly);
  13880. oprot.writeFieldEnd();
  13881. oprot.writeFieldBegin(TOKENIZE_FOR_INDEXING_FIELD_DESC);
  13882. oprot.writeBool(this.tokenizeForIndexing);
  13883. oprot.writeFieldEnd();
  13884. oprot.writeFieldStop();
  13885. oprot.writeStructEnd();
  13886. }
  13887. public void validate() throws TException {
  13888. // check for required fields
  13889. }
  13890. }
  13891. private static class getNoteSearchText_result implements TBase<getNoteSearchText_result>, java.io.Serializable, Cloneable {
  13892. private static final TStruct STRUCT_DESC = new TStruct("getNoteSearchText_result");
  13893. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRING, (short)0);
  13894. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  13895. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  13896. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  13897. private String success;
  13898. private com.evernote.edam.error.EDAMUserException userException;
  13899. private com.evernote.edam.error.EDAMSystemException systemException;
  13900. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  13901. // isset id assignments
  13902. public getNoteSearchText_result() {
  13903. }
  13904. /**
  13905. * Performs a deep copy on <i>other</i>.
  13906. */
  13907. public getNoteSearchText_result(getNoteSearchText_result other) {
  13908. if (other.isSetSuccess()) {
  13909. this.success = other.success;
  13910. }
  13911. if (other.isSetUserException()) {
  13912. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  13913. }
  13914. if (other.isSetSystemException()) {
  13915. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  13916. }
  13917. if (other.isSetNotFoundException()) {
  13918. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  13919. }
  13920. }
  13921. public getNoteSearchText_result deepCopy() {
  13922. return new getNoteSearchText_result(this);
  13923. }
  13924. public void clear() {
  13925. this.success = null;
  13926. this.userException = null;
  13927. this.systemException = null;
  13928. this.notFoundException = null;
  13929. }
  13930. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  13931. public boolean isSetSuccess() {
  13932. return this.success != null;
  13933. }
  13934. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  13935. public boolean isSetUserException() {
  13936. return this.userException != null;
  13937. }
  13938. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  13939. public boolean isSetSystemException() {
  13940. return this.systemException != null;
  13941. }
  13942. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  13943. public boolean isSetNotFoundException() {
  13944. return this.notFoundException != null;
  13945. }
  13946. public int compareTo(getNoteSearchText_result other) {
  13947. if (!getClass().equals(other.getClass())) {
  13948. return getClass().getName().compareTo(other.getClass().getName());
  13949. }
  13950. int lastComparison = 0;
  13951. getNoteSearchText_result typedOther = (getNoteSearchText_result)other;
  13952. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  13953. if (lastComparison != 0) {
  13954. return lastComparison;
  13955. }
  13956. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  13957. if (lastComparison != 0) {
  13958. return lastComparison;
  13959. }
  13960. }
  13961. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  13962. if (lastComparison != 0) {
  13963. return lastComparison;
  13964. }
  13965. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  13966. if (lastComparison != 0) {
  13967. return lastComparison;
  13968. }
  13969. }
  13970. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  13971. if (lastComparison != 0) {
  13972. return lastComparison;
  13973. }
  13974. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  13975. if (lastComparison != 0) {
  13976. return lastComparison;
  13977. }
  13978. }
  13979. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  13980. if (lastComparison != 0) {
  13981. return lastComparison;
  13982. }
  13983. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  13984. if (lastComparison != 0) {
  13985. return lastComparison;
  13986. }
  13987. }
  13988. return 0;
  13989. }
  13990. public void read(TProtocol iprot) throws TException {
  13991. TField field;
  13992. iprot.readStructBegin();
  13993. while (true)
  13994. {
  13995. field = iprot.readFieldBegin();
  13996. if (field.type == TType.STOP) {
  13997. break;
  13998. }
  13999. switch (field.id) {
  14000. case 0: // SUCCESS
  14001. if (field.type == TType.STRING) {
  14002. this.success = iprot.readString();
  14003. } else {
  14004. TProtocolUtil.skip(iprot, field.type);
  14005. }
  14006. break;
  14007. case 1: // USER_EXCEPTION
  14008. if (field.type == TType.STRUCT) {
  14009. this.userException = new com.evernote.edam.error.EDAMUserException();
  14010. this.userException.read(iprot);
  14011. } else {
  14012. TProtocolUtil.skip(iprot, field.type);
  14013. }
  14014. break;
  14015. case 2: // SYSTEM_EXCEPTION
  14016. if (field.type == TType.STRUCT) {
  14017. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  14018. this.systemException.read(iprot);
  14019. } else {
  14020. TProtocolUtil.skip(iprot, field.type);
  14021. }
  14022. break;
  14023. case 3: // NOT_FOUND_EXCEPTION
  14024. if (field.type == TType.STRUCT) {
  14025. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  14026. this.notFoundException.read(iprot);
  14027. } else {
  14028. TProtocolUtil.skip(iprot, field.type);
  14029. }
  14030. break;
  14031. default:
  14032. TProtocolUtil.skip(iprot, field.type);
  14033. }
  14034. iprot.readFieldEnd();
  14035. }
  14036. iprot.readStructEnd();
  14037. validate();
  14038. }
  14039. public void write(TProtocol oprot) throws TException {
  14040. oprot.writeStructBegin(STRUCT_DESC);
  14041. if (this.isSetSuccess()) {
  14042. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  14043. oprot.writeString(this.success);
  14044. oprot.writeFieldEnd();
  14045. } else if (this.isSetUserException()) {
  14046. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  14047. this.userException.write(oprot);
  14048. oprot.writeFieldEnd();
  14049. } else if (this.isSetSystemException()) {
  14050. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  14051. this.systemException.write(oprot);
  14052. oprot.writeFieldEnd();
  14053. } else if (this.isSetNotFoundException()) {
  14054. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  14055. this.notFoundException.write(oprot);
  14056. oprot.writeFieldEnd();
  14057. }
  14058. oprot.writeFieldStop();
  14059. oprot.writeStructEnd();
  14060. }
  14061. public void validate() throws TException {
  14062. // check for required fields
  14063. }
  14064. }
  14065. private static class getResourceSearchText_args implements TBase<getResourceSearchText_args>, java.io.Serializable, Cloneable {
  14066. private static final TStruct STRUCT_DESC = new TStruct("getResourceSearchText_args");
  14067. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  14068. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  14069. private String authenticationToken;
  14070. private String guid;
  14071. // isset id assignments
  14072. public getResourceSearchText_args() {
  14073. }
  14074. /**
  14075. * Performs a deep copy on <i>other</i>.
  14076. */
  14077. public getResourceSearchText_args(getResourceSearchText_args other) {
  14078. if (other.isSetAuthenticationToken()) {
  14079. this.authenticationToken = other.authenticationToken;
  14080. }
  14081. if (other.isSetGuid()) {
  14082. this.guid = other.guid;
  14083. }
  14084. }
  14085. public getResourceSearchText_args deepCopy() {
  14086. return new getResourceSearchText_args(this);
  14087. }
  14088. public void clear() {
  14089. this.authenticationToken = null;
  14090. this.guid = null;
  14091. }
  14092. public void setAuthenticationToken(String authenticationToken) {
  14093. this.authenticationToken = authenticationToken;
  14094. }
  14095. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  14096. public boolean isSetAuthenticationToken() {
  14097. return this.authenticationToken != null;
  14098. }
  14099. public void setGuid(String guid) {
  14100. this.guid = guid;
  14101. }
  14102. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  14103. public boolean isSetGuid() {
  14104. return this.guid != null;
  14105. }
  14106. public int compareTo(getResourceSearchText_args other) {
  14107. if (!getClass().equals(other.getClass())) {
  14108. return getClass().getName().compareTo(other.getClass().getName());
  14109. }
  14110. int lastComparison = 0;
  14111. getResourceSearchText_args typedOther = (getResourceSearchText_args)other;
  14112. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  14113. if (lastComparison != 0) {
  14114. return lastComparison;
  14115. }
  14116. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  14117. if (lastComparison != 0) {
  14118. return lastComparison;
  14119. }
  14120. }
  14121. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  14122. if (lastComparison != 0) {
  14123. return lastComparison;
  14124. }
  14125. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  14126. if (lastComparison != 0) {
  14127. return lastComparison;
  14128. }
  14129. }
  14130. return 0;
  14131. }
  14132. public void read(TProtocol iprot) throws TException {
  14133. TField field;
  14134. iprot.readStructBegin();
  14135. while (true)
  14136. {
  14137. field = iprot.readFieldBegin();
  14138. if (field.type == TType.STOP) {
  14139. break;
  14140. }
  14141. switch (field.id) {
  14142. case 1: // AUTHENTICATION_TOKEN
  14143. if (field.type == TType.STRING) {
  14144. this.authenticationToken = iprot.readString();
  14145. } else {
  14146. TProtocolUtil.skip(iprot, field.type);
  14147. }
  14148. break;
  14149. case 2: // GUID
  14150. if (field.type == TType.STRING) {
  14151. this.guid = iprot.readString();
  14152. } else {
  14153. TProtocolUtil.skip(iprot, field.type);
  14154. }
  14155. break;
  14156. default:
  14157. TProtocolUtil.skip(iprot, field.type);
  14158. }
  14159. iprot.readFieldEnd();
  14160. }
  14161. iprot.readStructEnd();
  14162. validate();
  14163. }
  14164. public void write(TProtocol oprot) throws TException {
  14165. validate();
  14166. oprot.writeStructBegin(STRUCT_DESC);
  14167. if (this.authenticationToken != null) {
  14168. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  14169. oprot.writeString(this.authenticationToken);
  14170. oprot.writeFieldEnd();
  14171. }
  14172. if (this.guid != null) {
  14173. oprot.writeFieldBegin(GUID_FIELD_DESC);
  14174. oprot.writeString(this.guid);
  14175. oprot.writeFieldEnd();
  14176. }
  14177. oprot.writeFieldStop();
  14178. oprot.writeStructEnd();
  14179. }
  14180. public void validate() throws TException {
  14181. // check for required fields
  14182. }
  14183. }
  14184. private static class getResourceSearchText_result implements TBase<getResourceSearchText_result>, java.io.Serializable, Cloneable {
  14185. private static final TStruct STRUCT_DESC = new TStruct("getResourceSearchText_result");
  14186. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRING, (short)0);
  14187. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  14188. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  14189. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  14190. private String success;
  14191. private com.evernote.edam.error.EDAMUserException userException;
  14192. private com.evernote.edam.error.EDAMSystemException systemException;
  14193. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  14194. // isset id assignments
  14195. public getResourceSearchText_result() {
  14196. }
  14197. /**
  14198. * Performs a deep copy on <i>other</i>.
  14199. */
  14200. public getResourceSearchText_result(getResourceSearchText_result other) {
  14201. if (other.isSetSuccess()) {
  14202. this.success = other.success;
  14203. }
  14204. if (other.isSetUserException()) {
  14205. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  14206. }
  14207. if (other.isSetSystemException()) {
  14208. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  14209. }
  14210. if (other.isSetNotFoundException()) {
  14211. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  14212. }
  14213. }
  14214. public getResourceSearchText_result deepCopy() {
  14215. return new getResourceSearchText_result(this);
  14216. }
  14217. public void clear() {
  14218. this.success = null;
  14219. this.userException = null;
  14220. this.systemException = null;
  14221. this.notFoundException = null;
  14222. }
  14223. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  14224. public boolean isSetSuccess() {
  14225. return this.success != null;
  14226. }
  14227. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  14228. public boolean isSetUserException() {
  14229. return this.userException != null;
  14230. }
  14231. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  14232. public boolean isSetSystemException() {
  14233. return this.systemException != null;
  14234. }
  14235. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  14236. public boolean isSetNotFoundException() {
  14237. return this.notFoundException != null;
  14238. }
  14239. public int compareTo(getResourceSearchText_result other) {
  14240. if (!getClass().equals(other.getClass())) {
  14241. return getClass().getName().compareTo(other.getClass().getName());
  14242. }
  14243. int lastComparison = 0;
  14244. getResourceSearchText_result typedOther = (getResourceSearchText_result)other;
  14245. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  14246. if (lastComparison != 0) {
  14247. return lastComparison;
  14248. }
  14249. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  14250. if (lastComparison != 0) {
  14251. return lastComparison;
  14252. }
  14253. }
  14254. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  14255. if (lastComparison != 0) {
  14256. return lastComparison;
  14257. }
  14258. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  14259. if (lastComparison != 0) {
  14260. return lastComparison;
  14261. }
  14262. }
  14263. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  14264. if (lastComparison != 0) {
  14265. return lastComparison;
  14266. }
  14267. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  14268. if (lastComparison != 0) {
  14269. return lastComparison;
  14270. }
  14271. }
  14272. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  14273. if (lastComparison != 0) {
  14274. return lastComparison;
  14275. }
  14276. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  14277. if (lastComparison != 0) {
  14278. return lastComparison;
  14279. }
  14280. }
  14281. return 0;
  14282. }
  14283. public void read(TProtocol iprot) throws TException {
  14284. TField field;
  14285. iprot.readStructBegin();
  14286. while (true)
  14287. {
  14288. field = iprot.readFieldBegin();
  14289. if (field.type == TType.STOP) {
  14290. break;
  14291. }
  14292. switch (field.id) {
  14293. case 0: // SUCCESS
  14294. if (field.type == TType.STRING) {
  14295. this.success = iprot.readString();
  14296. } else {
  14297. TProtocolUtil.skip(iprot, field.type);
  14298. }
  14299. break;
  14300. case 1: // USER_EXCEPTION
  14301. if (field.type == TType.STRUCT) {
  14302. this.userException = new com.evernote.edam.error.EDAMUserException();
  14303. this.userException.read(iprot);
  14304. } else {
  14305. TProtocolUtil.skip(iprot, field.type);
  14306. }
  14307. break;
  14308. case 2: // SYSTEM_EXCEPTION
  14309. if (field.type == TType.STRUCT) {
  14310. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  14311. this.systemException.read(iprot);
  14312. } else {
  14313. TProtocolUtil.skip(iprot, field.type);
  14314. }
  14315. break;
  14316. case 3: // NOT_FOUND_EXCEPTION
  14317. if (field.type == TType.STRUCT) {
  14318. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  14319. this.notFoundException.read(iprot);
  14320. } else {
  14321. TProtocolUtil.skip(iprot, field.type);
  14322. }
  14323. break;
  14324. default:
  14325. TProtocolUtil.skip(iprot, field.type);
  14326. }
  14327. iprot.readFieldEnd();
  14328. }
  14329. iprot.readStructEnd();
  14330. validate();
  14331. }
  14332. public void write(TProtocol oprot) throws TException {
  14333. oprot.writeStructBegin(STRUCT_DESC);
  14334. if (this.isSetSuccess()) {
  14335. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  14336. oprot.writeString(this.success);
  14337. oprot.writeFieldEnd();
  14338. } else if (this.isSetUserException()) {
  14339. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  14340. this.userException.write(oprot);
  14341. oprot.writeFieldEnd();
  14342. } else if (this.isSetSystemException()) {
  14343. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  14344. this.systemException.write(oprot);
  14345. oprot.writeFieldEnd();
  14346. } else if (this.isSetNotFoundException()) {
  14347. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  14348. this.notFoundException.write(oprot);
  14349. oprot.writeFieldEnd();
  14350. }
  14351. oprot.writeFieldStop();
  14352. oprot.writeStructEnd();
  14353. }
  14354. public void validate() throws TException {
  14355. // check for required fields
  14356. }
  14357. }
  14358. private static class getNoteTagNames_args implements TBase<getNoteTagNames_args>, java.io.Serializable, Cloneable {
  14359. private static final TStruct STRUCT_DESC = new TStruct("getNoteTagNames_args");
  14360. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  14361. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  14362. private String authenticationToken;
  14363. private String guid;
  14364. // isset id assignments
  14365. public getNoteTagNames_args() {
  14366. }
  14367. /**
  14368. * Performs a deep copy on <i>other</i>.
  14369. */
  14370. public getNoteTagNames_args(getNoteTagNames_args other) {
  14371. if (other.isSetAuthenticationToken()) {
  14372. this.authenticationToken = other.authenticationToken;
  14373. }
  14374. if (other.isSetGuid()) {
  14375. this.guid = other.guid;
  14376. }
  14377. }
  14378. public getNoteTagNames_args deepCopy() {
  14379. return new getNoteTagNames_args(this);
  14380. }
  14381. public void clear() {
  14382. this.authenticationToken = null;
  14383. this.guid = null;
  14384. }
  14385. public void setAuthenticationToken(String authenticationToken) {
  14386. this.authenticationToken = authenticationToken;
  14387. }
  14388. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  14389. public boolean isSetAuthenticationToken() {
  14390. return this.authenticationToken != null;
  14391. }
  14392. public void setGuid(String guid) {
  14393. this.guid = guid;
  14394. }
  14395. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  14396. public boolean isSetGuid() {
  14397. return this.guid != null;
  14398. }
  14399. public int compareTo(getNoteTagNames_args other) {
  14400. if (!getClass().equals(other.getClass())) {
  14401. return getClass().getName().compareTo(other.getClass().getName());
  14402. }
  14403. int lastComparison = 0;
  14404. getNoteTagNames_args typedOther = (getNoteTagNames_args)other;
  14405. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  14406. if (lastComparison != 0) {
  14407. return lastComparison;
  14408. }
  14409. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  14410. if (lastComparison != 0) {
  14411. return lastComparison;
  14412. }
  14413. }
  14414. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  14415. if (lastComparison != 0) {
  14416. return lastComparison;
  14417. }
  14418. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  14419. if (lastComparison != 0) {
  14420. return lastComparison;
  14421. }
  14422. }
  14423. return 0;
  14424. }
  14425. public void read(TProtocol iprot) throws TException {
  14426. TField field;
  14427. iprot.readStructBegin();
  14428. while (true)
  14429. {
  14430. field = iprot.readFieldBegin();
  14431. if (field.type == TType.STOP) {
  14432. break;
  14433. }
  14434. switch (field.id) {
  14435. case 1: // AUTHENTICATION_TOKEN
  14436. if (field.type == TType.STRING) {
  14437. this.authenticationToken = iprot.readString();
  14438. } else {
  14439. TProtocolUtil.skip(iprot, field.type);
  14440. }
  14441. break;
  14442. case 2: // GUID
  14443. if (field.type == TType.STRING) {
  14444. this.guid = iprot.readString();
  14445. } else {
  14446. TProtocolUtil.skip(iprot, field.type);
  14447. }
  14448. break;
  14449. default:
  14450. TProtocolUtil.skip(iprot, field.type);
  14451. }
  14452. iprot.readFieldEnd();
  14453. }
  14454. iprot.readStructEnd();
  14455. validate();
  14456. }
  14457. public void write(TProtocol oprot) throws TException {
  14458. validate();
  14459. oprot.writeStructBegin(STRUCT_DESC);
  14460. if (this.authenticationToken != null) {
  14461. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  14462. oprot.writeString(this.authenticationToken);
  14463. oprot.writeFieldEnd();
  14464. }
  14465. if (this.guid != null) {
  14466. oprot.writeFieldBegin(GUID_FIELD_DESC);
  14467. oprot.writeString(this.guid);
  14468. oprot.writeFieldEnd();
  14469. }
  14470. oprot.writeFieldStop();
  14471. oprot.writeStructEnd();
  14472. }
  14473. public void validate() throws TException {
  14474. // check for required fields
  14475. }
  14476. }
  14477. private static class getNoteTagNames_result implements TBase<getNoteTagNames_result>, java.io.Serializable, Cloneable {
  14478. private static final TStruct STRUCT_DESC = new TStruct("getNoteTagNames_result");
  14479. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
  14480. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  14481. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  14482. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  14483. private List<String> success;
  14484. private com.evernote.edam.error.EDAMUserException userException;
  14485. private com.evernote.edam.error.EDAMSystemException systemException;
  14486. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  14487. // isset id assignments
  14488. public getNoteTagNames_result() {
  14489. }
  14490. /**
  14491. * Performs a deep copy on <i>other</i>.
  14492. */
  14493. public getNoteTagNames_result(getNoteTagNames_result other) {
  14494. if (other.isSetSuccess()) {
  14495. List<String> __this__success = new ArrayList<String>();
  14496. for (String other_element : other.success) {
  14497. __this__success.add(other_element);
  14498. }
  14499. this.success = __this__success;
  14500. }
  14501. if (other.isSetUserException()) {
  14502. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  14503. }
  14504. if (other.isSetSystemException()) {
  14505. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  14506. }
  14507. if (other.isSetNotFoundException()) {
  14508. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  14509. }
  14510. }
  14511. public getNoteTagNames_result deepCopy() {
  14512. return new getNoteTagNames_result(this);
  14513. }
  14514. public void clear() {
  14515. this.success = null;
  14516. this.userException = null;
  14517. this.systemException = null;
  14518. this.notFoundException = null;
  14519. }
  14520. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  14521. public boolean isSetSuccess() {
  14522. return this.success != null;
  14523. }
  14524. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  14525. public boolean isSetUserException() {
  14526. return this.userException != null;
  14527. }
  14528. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  14529. public boolean isSetSystemException() {
  14530. return this.systemException != null;
  14531. }
  14532. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  14533. public boolean isSetNotFoundException() {
  14534. return this.notFoundException != null;
  14535. }
  14536. public int compareTo(getNoteTagNames_result other) {
  14537. if (!getClass().equals(other.getClass())) {
  14538. return getClass().getName().compareTo(other.getClass().getName());
  14539. }
  14540. int lastComparison = 0;
  14541. getNoteTagNames_result typedOther = (getNoteTagNames_result)other;
  14542. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  14543. if (lastComparison != 0) {
  14544. return lastComparison;
  14545. }
  14546. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  14547. if (lastComparison != 0) {
  14548. return lastComparison;
  14549. }
  14550. }
  14551. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  14552. if (lastComparison != 0) {
  14553. return lastComparison;
  14554. }
  14555. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  14556. if (lastComparison != 0) {
  14557. return lastComparison;
  14558. }
  14559. }
  14560. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  14561. if (lastComparison != 0) {
  14562. return lastComparison;
  14563. }
  14564. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  14565. if (lastComparison != 0) {
  14566. return lastComparison;
  14567. }
  14568. }
  14569. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  14570. if (lastComparison != 0) {
  14571. return lastComparison;
  14572. }
  14573. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  14574. if (lastComparison != 0) {
  14575. return lastComparison;
  14576. }
  14577. }
  14578. return 0;
  14579. }
  14580. public void read(TProtocol iprot) throws TException {
  14581. TField field;
  14582. iprot.readStructBegin();
  14583. while (true)
  14584. {
  14585. field = iprot.readFieldBegin();
  14586. if (field.type == TType.STOP) {
  14587. break;
  14588. }
  14589. switch (field.id) {
  14590. case 0: // SUCCESS
  14591. if (field.type == TType.LIST) {
  14592. {
  14593. TList _list126 = iprot.readListBegin();
  14594. this.success = new ArrayList<String>(_list126.size);
  14595. for (int _i127 = 0; _i127 < _list126.size; ++_i127)
  14596. {
  14597. String _elem128;
  14598. _elem128 = iprot.readString();
  14599. this.success.add(_elem128);
  14600. }
  14601. iprot.readListEnd();
  14602. }
  14603. } else {
  14604. TProtocolUtil.skip(iprot, field.type);
  14605. }
  14606. break;
  14607. case 1: // USER_EXCEPTION
  14608. if (field.type == TType.STRUCT) {
  14609. this.userException = new com.evernote.edam.error.EDAMUserException();
  14610. this.userException.read(iprot);
  14611. } else {
  14612. TProtocolUtil.skip(iprot, field.type);
  14613. }
  14614. break;
  14615. case 2: // SYSTEM_EXCEPTION
  14616. if (field.type == TType.STRUCT) {
  14617. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  14618. this.systemException.read(iprot);
  14619. } else {
  14620. TProtocolUtil.skip(iprot, field.type);
  14621. }
  14622. break;
  14623. case 3: // NOT_FOUND_EXCEPTION
  14624. if (field.type == TType.STRUCT) {
  14625. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  14626. this.notFoundException.read(iprot);
  14627. } else {
  14628. TProtocolUtil.skip(iprot, field.type);
  14629. }
  14630. break;
  14631. default:
  14632. TProtocolUtil.skip(iprot, field.type);
  14633. }
  14634. iprot.readFieldEnd();
  14635. }
  14636. iprot.readStructEnd();
  14637. validate();
  14638. }
  14639. public void write(TProtocol oprot) throws TException {
  14640. oprot.writeStructBegin(STRUCT_DESC);
  14641. if (this.isSetSuccess()) {
  14642. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  14643. {
  14644. oprot.writeListBegin(new TList(TType.STRING, this.success.size()));
  14645. for (String _iter129 : this.success)
  14646. {
  14647. oprot.writeString(_iter129);
  14648. }
  14649. oprot.writeListEnd();
  14650. }
  14651. oprot.writeFieldEnd();
  14652. } else if (this.isSetUserException()) {
  14653. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  14654. this.userException.write(oprot);
  14655. oprot.writeFieldEnd();
  14656. } else if (this.isSetSystemException()) {
  14657. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  14658. this.systemException.write(oprot);
  14659. oprot.writeFieldEnd();
  14660. } else if (this.isSetNotFoundException()) {
  14661. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  14662. this.notFoundException.write(oprot);
  14663. oprot.writeFieldEnd();
  14664. }
  14665. oprot.writeFieldStop();
  14666. oprot.writeStructEnd();
  14667. }
  14668. public void validate() throws TException {
  14669. // check for required fields
  14670. }
  14671. }
  14672. private static class createNote_args implements TBase<createNote_args>, java.io.Serializable, Cloneable {
  14673. private static final TStruct STRUCT_DESC = new TStruct("createNote_args");
  14674. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  14675. private static final TField NOTE_FIELD_DESC = new TField("note", TType.STRUCT, (short)2);
  14676. private String authenticationToken;
  14677. private com.evernote.edam.type.Note note;
  14678. // isset id assignments
  14679. public createNote_args() {
  14680. }
  14681. /**
  14682. * Performs a deep copy on <i>other</i>.
  14683. */
  14684. public createNote_args(createNote_args other) {
  14685. if (other.isSetAuthenticationToken()) {
  14686. this.authenticationToken = other.authenticationToken;
  14687. }
  14688. if (other.isSetNote()) {
  14689. this.note = new com.evernote.edam.type.Note(other.note);
  14690. }
  14691. }
  14692. public createNote_args deepCopy() {
  14693. return new createNote_args(this);
  14694. }
  14695. public void clear() {
  14696. this.authenticationToken = null;
  14697. this.note = null;
  14698. }
  14699. public void setAuthenticationToken(String authenticationToken) {
  14700. this.authenticationToken = authenticationToken;
  14701. }
  14702. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  14703. public boolean isSetAuthenticationToken() {
  14704. return this.authenticationToken != null;
  14705. }
  14706. public void setNote(com.evernote.edam.type.Note note) {
  14707. this.note = note;
  14708. }
  14709. /** Returns true if field note is set (has been asigned a value) and false otherwise */
  14710. public boolean isSetNote() {
  14711. return this.note != null;
  14712. }
  14713. public int compareTo(createNote_args other) {
  14714. if (!getClass().equals(other.getClass())) {
  14715. return getClass().getName().compareTo(other.getClass().getName());
  14716. }
  14717. int lastComparison = 0;
  14718. createNote_args typedOther = (createNote_args)other;
  14719. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  14720. if (lastComparison != 0) {
  14721. return lastComparison;
  14722. }
  14723. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  14724. if (lastComparison != 0) {
  14725. return lastComparison;
  14726. }
  14727. }
  14728. lastComparison = Boolean.valueOf(isSetNote()).compareTo(typedOther.isSetNote());
  14729. if (lastComparison != 0) {
  14730. return lastComparison;
  14731. }
  14732. if (isSetNote()) { lastComparison = TBaseHelper.compareTo(this.note, typedOther.note);
  14733. if (lastComparison != 0) {
  14734. return lastComparison;
  14735. }
  14736. }
  14737. return 0;
  14738. }
  14739. public void read(TProtocol iprot) throws TException {
  14740. TField field;
  14741. iprot.readStructBegin();
  14742. while (true)
  14743. {
  14744. field = iprot.readFieldBegin();
  14745. if (field.type == TType.STOP) {
  14746. break;
  14747. }
  14748. switch (field.id) {
  14749. case 1: // AUTHENTICATION_TOKEN
  14750. if (field.type == TType.STRING) {
  14751. this.authenticationToken = iprot.readString();
  14752. } else {
  14753. TProtocolUtil.skip(iprot, field.type);
  14754. }
  14755. break;
  14756. case 2: // NOTE
  14757. if (field.type == TType.STRUCT) {
  14758. this.note = new com.evernote.edam.type.Note();
  14759. this.note.read(iprot);
  14760. } else {
  14761. TProtocolUtil.skip(iprot, field.type);
  14762. }
  14763. break;
  14764. default:
  14765. TProtocolUtil.skip(iprot, field.type);
  14766. }
  14767. iprot.readFieldEnd();
  14768. }
  14769. iprot.readStructEnd();
  14770. validate();
  14771. }
  14772. public void write(TProtocol oprot) throws TException {
  14773. validate();
  14774. oprot.writeStructBegin(STRUCT_DESC);
  14775. if (this.authenticationToken != null) {
  14776. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  14777. oprot.writeString(this.authenticationToken);
  14778. oprot.writeFieldEnd();
  14779. }
  14780. if (this.note != null) {
  14781. oprot.writeFieldBegin(NOTE_FIELD_DESC);
  14782. this.note.write(oprot);
  14783. oprot.writeFieldEnd();
  14784. }
  14785. oprot.writeFieldStop();
  14786. oprot.writeStructEnd();
  14787. }
  14788. public void validate() throws TException {
  14789. // check for required fields
  14790. }
  14791. }
  14792. private static class createNote_result implements TBase<createNote_result>, java.io.Serializable, Cloneable {
  14793. private static final TStruct STRUCT_DESC = new TStruct("createNote_result");
  14794. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  14795. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  14796. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  14797. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  14798. private com.evernote.edam.type.Note success;
  14799. private com.evernote.edam.error.EDAMUserException userException;
  14800. private com.evernote.edam.error.EDAMSystemException systemException;
  14801. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  14802. // isset id assignments
  14803. public createNote_result() {
  14804. }
  14805. /**
  14806. * Performs a deep copy on <i>other</i>.
  14807. */
  14808. public createNote_result(createNote_result other) {
  14809. if (other.isSetSuccess()) {
  14810. this.success = new com.evernote.edam.type.Note(other.success);
  14811. }
  14812. if (other.isSetUserException()) {
  14813. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  14814. }
  14815. if (other.isSetSystemException()) {
  14816. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  14817. }
  14818. if (other.isSetNotFoundException()) {
  14819. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  14820. }
  14821. }
  14822. public createNote_result deepCopy() {
  14823. return new createNote_result(this);
  14824. }
  14825. public void clear() {
  14826. this.success = null;
  14827. this.userException = null;
  14828. this.systemException = null;
  14829. this.notFoundException = null;
  14830. }
  14831. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  14832. public boolean isSetSuccess() {
  14833. return this.success != null;
  14834. }
  14835. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  14836. public boolean isSetUserException() {
  14837. return this.userException != null;
  14838. }
  14839. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  14840. public boolean isSetSystemException() {
  14841. return this.systemException != null;
  14842. }
  14843. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  14844. public boolean isSetNotFoundException() {
  14845. return this.notFoundException != null;
  14846. }
  14847. public int compareTo(createNote_result other) {
  14848. if (!getClass().equals(other.getClass())) {
  14849. return getClass().getName().compareTo(other.getClass().getName());
  14850. }
  14851. int lastComparison = 0;
  14852. createNote_result typedOther = (createNote_result)other;
  14853. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  14854. if (lastComparison != 0) {
  14855. return lastComparison;
  14856. }
  14857. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  14858. if (lastComparison != 0) {
  14859. return lastComparison;
  14860. }
  14861. }
  14862. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  14863. if (lastComparison != 0) {
  14864. return lastComparison;
  14865. }
  14866. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  14867. if (lastComparison != 0) {
  14868. return lastComparison;
  14869. }
  14870. }
  14871. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  14872. if (lastComparison != 0) {
  14873. return lastComparison;
  14874. }
  14875. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  14876. if (lastComparison != 0) {
  14877. return lastComparison;
  14878. }
  14879. }
  14880. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  14881. if (lastComparison != 0) {
  14882. return lastComparison;
  14883. }
  14884. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  14885. if (lastComparison != 0) {
  14886. return lastComparison;
  14887. }
  14888. }
  14889. return 0;
  14890. }
  14891. public void read(TProtocol iprot) throws TException {
  14892. TField field;
  14893. iprot.readStructBegin();
  14894. while (true)
  14895. {
  14896. field = iprot.readFieldBegin();
  14897. if (field.type == TType.STOP) {
  14898. break;
  14899. }
  14900. switch (field.id) {
  14901. case 0: // SUCCESS
  14902. if (field.type == TType.STRUCT) {
  14903. this.success = new com.evernote.edam.type.Note();
  14904. this.success.read(iprot);
  14905. } else {
  14906. TProtocolUtil.skip(iprot, field.type);
  14907. }
  14908. break;
  14909. case 1: // USER_EXCEPTION
  14910. if (field.type == TType.STRUCT) {
  14911. this.userException = new com.evernote.edam.error.EDAMUserException();
  14912. this.userException.read(iprot);
  14913. } else {
  14914. TProtocolUtil.skip(iprot, field.type);
  14915. }
  14916. break;
  14917. case 2: // SYSTEM_EXCEPTION
  14918. if (field.type == TType.STRUCT) {
  14919. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  14920. this.systemException.read(iprot);
  14921. } else {
  14922. TProtocolUtil.skip(iprot, field.type);
  14923. }
  14924. break;
  14925. case 3: // NOT_FOUND_EXCEPTION
  14926. if (field.type == TType.STRUCT) {
  14927. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  14928. this.notFoundException.read(iprot);
  14929. } else {
  14930. TProtocolUtil.skip(iprot, field.type);
  14931. }
  14932. break;
  14933. default:
  14934. TProtocolUtil.skip(iprot, field.type);
  14935. }
  14936. iprot.readFieldEnd();
  14937. }
  14938. iprot.readStructEnd();
  14939. validate();
  14940. }
  14941. public void write(TProtocol oprot) throws TException {
  14942. oprot.writeStructBegin(STRUCT_DESC);
  14943. if (this.isSetSuccess()) {
  14944. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  14945. this.success.write(oprot);
  14946. oprot.writeFieldEnd();
  14947. } else if (this.isSetUserException()) {
  14948. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  14949. this.userException.write(oprot);
  14950. oprot.writeFieldEnd();
  14951. } else if (this.isSetSystemException()) {
  14952. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  14953. this.systemException.write(oprot);
  14954. oprot.writeFieldEnd();
  14955. } else if (this.isSetNotFoundException()) {
  14956. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  14957. this.notFoundException.write(oprot);
  14958. oprot.writeFieldEnd();
  14959. }
  14960. oprot.writeFieldStop();
  14961. oprot.writeStructEnd();
  14962. }
  14963. public void validate() throws TException {
  14964. // check for required fields
  14965. }
  14966. }
  14967. private static class updateNote_args implements TBase<updateNote_args>, java.io.Serializable, Cloneable {
  14968. private static final TStruct STRUCT_DESC = new TStruct("updateNote_args");
  14969. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  14970. private static final TField NOTE_FIELD_DESC = new TField("note", TType.STRUCT, (short)2);
  14971. private String authenticationToken;
  14972. private com.evernote.edam.type.Note note;
  14973. // isset id assignments
  14974. public updateNote_args() {
  14975. }
  14976. /**
  14977. * Performs a deep copy on <i>other</i>.
  14978. */
  14979. public updateNote_args(updateNote_args other) {
  14980. if (other.isSetAuthenticationToken()) {
  14981. this.authenticationToken = other.authenticationToken;
  14982. }
  14983. if (other.isSetNote()) {
  14984. this.note = new com.evernote.edam.type.Note(other.note);
  14985. }
  14986. }
  14987. public updateNote_args deepCopy() {
  14988. return new updateNote_args(this);
  14989. }
  14990. public void clear() {
  14991. this.authenticationToken = null;
  14992. this.note = null;
  14993. }
  14994. public void setAuthenticationToken(String authenticationToken) {
  14995. this.authenticationToken = authenticationToken;
  14996. }
  14997. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  14998. public boolean isSetAuthenticationToken() {
  14999. return this.authenticationToken != null;
  15000. }
  15001. public void setNote(com.evernote.edam.type.Note note) {
  15002. this.note = note;
  15003. }
  15004. /** Returns true if field note is set (has been asigned a value) and false otherwise */
  15005. public boolean isSetNote() {
  15006. return this.note != null;
  15007. }
  15008. public int compareTo(updateNote_args other) {
  15009. if (!getClass().equals(other.getClass())) {
  15010. return getClass().getName().compareTo(other.getClass().getName());
  15011. }
  15012. int lastComparison = 0;
  15013. updateNote_args typedOther = (updateNote_args)other;
  15014. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  15015. if (lastComparison != 0) {
  15016. return lastComparison;
  15017. }
  15018. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  15019. if (lastComparison != 0) {
  15020. return lastComparison;
  15021. }
  15022. }
  15023. lastComparison = Boolean.valueOf(isSetNote()).compareTo(typedOther.isSetNote());
  15024. if (lastComparison != 0) {
  15025. return lastComparison;
  15026. }
  15027. if (isSetNote()) { lastComparison = TBaseHelper.compareTo(this.note, typedOther.note);
  15028. if (lastComparison != 0) {
  15029. return lastComparison;
  15030. }
  15031. }
  15032. return 0;
  15033. }
  15034. public void read(TProtocol iprot) throws TException {
  15035. TField field;
  15036. iprot.readStructBegin();
  15037. while (true)
  15038. {
  15039. field = iprot.readFieldBegin();
  15040. if (field.type == TType.STOP) {
  15041. break;
  15042. }
  15043. switch (field.id) {
  15044. case 1: // AUTHENTICATION_TOKEN
  15045. if (field.type == TType.STRING) {
  15046. this.authenticationToken = iprot.readString();
  15047. } else {
  15048. TProtocolUtil.skip(iprot, field.type);
  15049. }
  15050. break;
  15051. case 2: // NOTE
  15052. if (field.type == TType.STRUCT) {
  15053. this.note = new com.evernote.edam.type.Note();
  15054. this.note.read(iprot);
  15055. } else {
  15056. TProtocolUtil.skip(iprot, field.type);
  15057. }
  15058. break;
  15059. default:
  15060. TProtocolUtil.skip(iprot, field.type);
  15061. }
  15062. iprot.readFieldEnd();
  15063. }
  15064. iprot.readStructEnd();
  15065. validate();
  15066. }
  15067. public void write(TProtocol oprot) throws TException {
  15068. validate();
  15069. oprot.writeStructBegin(STRUCT_DESC);
  15070. if (this.authenticationToken != null) {
  15071. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  15072. oprot.writeString(this.authenticationToken);
  15073. oprot.writeFieldEnd();
  15074. }
  15075. if (this.note != null) {
  15076. oprot.writeFieldBegin(NOTE_FIELD_DESC);
  15077. this.note.write(oprot);
  15078. oprot.writeFieldEnd();
  15079. }
  15080. oprot.writeFieldStop();
  15081. oprot.writeStructEnd();
  15082. }
  15083. public void validate() throws TException {
  15084. // check for required fields
  15085. }
  15086. }
  15087. private static class updateNote_result implements TBase<updateNote_result>, java.io.Serializable, Cloneable {
  15088. private static final TStruct STRUCT_DESC = new TStruct("updateNote_result");
  15089. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  15090. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  15091. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  15092. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  15093. private com.evernote.edam.type.Note success;
  15094. private com.evernote.edam.error.EDAMUserException userException;
  15095. private com.evernote.edam.error.EDAMSystemException systemException;
  15096. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  15097. // isset id assignments
  15098. public updateNote_result() {
  15099. }
  15100. /**
  15101. * Performs a deep copy on <i>other</i>.
  15102. */
  15103. public updateNote_result(updateNote_result other) {
  15104. if (other.isSetSuccess()) {
  15105. this.success = new com.evernote.edam.type.Note(other.success);
  15106. }
  15107. if (other.isSetUserException()) {
  15108. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  15109. }
  15110. if (other.isSetSystemException()) {
  15111. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  15112. }
  15113. if (other.isSetNotFoundException()) {
  15114. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  15115. }
  15116. }
  15117. public updateNote_result deepCopy() {
  15118. return new updateNote_result(this);
  15119. }
  15120. public void clear() {
  15121. this.success = null;
  15122. this.userException = null;
  15123. this.systemException = null;
  15124. this.notFoundException = null;
  15125. }
  15126. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  15127. public boolean isSetSuccess() {
  15128. return this.success != null;
  15129. }
  15130. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  15131. public boolean isSetUserException() {
  15132. return this.userException != null;
  15133. }
  15134. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  15135. public boolean isSetSystemException() {
  15136. return this.systemException != null;
  15137. }
  15138. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  15139. public boolean isSetNotFoundException() {
  15140. return this.notFoundException != null;
  15141. }
  15142. public int compareTo(updateNote_result other) {
  15143. if (!getClass().equals(other.getClass())) {
  15144. return getClass().getName().compareTo(other.getClass().getName());
  15145. }
  15146. int lastComparison = 0;
  15147. updateNote_result typedOther = (updateNote_result)other;
  15148. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  15149. if (lastComparison != 0) {
  15150. return lastComparison;
  15151. }
  15152. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  15153. if (lastComparison != 0) {
  15154. return lastComparison;
  15155. }
  15156. }
  15157. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  15158. if (lastComparison != 0) {
  15159. return lastComparison;
  15160. }
  15161. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  15162. if (lastComparison != 0) {
  15163. return lastComparison;
  15164. }
  15165. }
  15166. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  15167. if (lastComparison != 0) {
  15168. return lastComparison;
  15169. }
  15170. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  15171. if (lastComparison != 0) {
  15172. return lastComparison;
  15173. }
  15174. }
  15175. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  15176. if (lastComparison != 0) {
  15177. return lastComparison;
  15178. }
  15179. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  15180. if (lastComparison != 0) {
  15181. return lastComparison;
  15182. }
  15183. }
  15184. return 0;
  15185. }
  15186. public void read(TProtocol iprot) throws TException {
  15187. TField field;
  15188. iprot.readStructBegin();
  15189. while (true)
  15190. {
  15191. field = iprot.readFieldBegin();
  15192. if (field.type == TType.STOP) {
  15193. break;
  15194. }
  15195. switch (field.id) {
  15196. case 0: // SUCCESS
  15197. if (field.type == TType.STRUCT) {
  15198. this.success = new com.evernote.edam.type.Note();
  15199. this.success.read(iprot);
  15200. } else {
  15201. TProtocolUtil.skip(iprot, field.type);
  15202. }
  15203. break;
  15204. case 1: // USER_EXCEPTION
  15205. if (field.type == TType.STRUCT) {
  15206. this.userException = new com.evernote.edam.error.EDAMUserException();
  15207. this.userException.read(iprot);
  15208. } else {
  15209. TProtocolUtil.skip(iprot, field.type);
  15210. }
  15211. break;
  15212. case 2: // SYSTEM_EXCEPTION
  15213. if (field.type == TType.STRUCT) {
  15214. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  15215. this.systemException.read(iprot);
  15216. } else {
  15217. TProtocolUtil.skip(iprot, field.type);
  15218. }
  15219. break;
  15220. case 3: // NOT_FOUND_EXCEPTION
  15221. if (field.type == TType.STRUCT) {
  15222. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  15223. this.notFoundException.read(iprot);
  15224. } else {
  15225. TProtocolUtil.skip(iprot, field.type);
  15226. }
  15227. break;
  15228. default:
  15229. TProtocolUtil.skip(iprot, field.type);
  15230. }
  15231. iprot.readFieldEnd();
  15232. }
  15233. iprot.readStructEnd();
  15234. validate();
  15235. }
  15236. public void write(TProtocol oprot) throws TException {
  15237. oprot.writeStructBegin(STRUCT_DESC);
  15238. if (this.isSetSuccess()) {
  15239. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  15240. this.success.write(oprot);
  15241. oprot.writeFieldEnd();
  15242. } else if (this.isSetUserException()) {
  15243. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  15244. this.userException.write(oprot);
  15245. oprot.writeFieldEnd();
  15246. } else if (this.isSetSystemException()) {
  15247. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  15248. this.systemException.write(oprot);
  15249. oprot.writeFieldEnd();
  15250. } else if (this.isSetNotFoundException()) {
  15251. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  15252. this.notFoundException.write(oprot);
  15253. oprot.writeFieldEnd();
  15254. }
  15255. oprot.writeFieldStop();
  15256. oprot.writeStructEnd();
  15257. }
  15258. public void validate() throws TException {
  15259. // check for required fields
  15260. }
  15261. }
  15262. private static class deleteNote_args implements TBase<deleteNote_args>, java.io.Serializable, Cloneable {
  15263. private static final TStruct STRUCT_DESC = new TStruct("deleteNote_args");
  15264. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  15265. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  15266. private String authenticationToken;
  15267. private String guid;
  15268. // isset id assignments
  15269. public deleteNote_args() {
  15270. }
  15271. /**
  15272. * Performs a deep copy on <i>other</i>.
  15273. */
  15274. public deleteNote_args(deleteNote_args other) {
  15275. if (other.isSetAuthenticationToken()) {
  15276. this.authenticationToken = other.authenticationToken;
  15277. }
  15278. if (other.isSetGuid()) {
  15279. this.guid = other.guid;
  15280. }
  15281. }
  15282. public deleteNote_args deepCopy() {
  15283. return new deleteNote_args(this);
  15284. }
  15285. public void clear() {
  15286. this.authenticationToken = null;
  15287. this.guid = null;
  15288. }
  15289. public void setAuthenticationToken(String authenticationToken) {
  15290. this.authenticationToken = authenticationToken;
  15291. }
  15292. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  15293. public boolean isSetAuthenticationToken() {
  15294. return this.authenticationToken != null;
  15295. }
  15296. public void setGuid(String guid) {
  15297. this.guid = guid;
  15298. }
  15299. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  15300. public boolean isSetGuid() {
  15301. return this.guid != null;
  15302. }
  15303. public int compareTo(deleteNote_args other) {
  15304. if (!getClass().equals(other.getClass())) {
  15305. return getClass().getName().compareTo(other.getClass().getName());
  15306. }
  15307. int lastComparison = 0;
  15308. deleteNote_args typedOther = (deleteNote_args)other;
  15309. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  15310. if (lastComparison != 0) {
  15311. return lastComparison;
  15312. }
  15313. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  15314. if (lastComparison != 0) {
  15315. return lastComparison;
  15316. }
  15317. }
  15318. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  15319. if (lastComparison != 0) {
  15320. return lastComparison;
  15321. }
  15322. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  15323. if (lastComparison != 0) {
  15324. return lastComparison;
  15325. }
  15326. }
  15327. return 0;
  15328. }
  15329. public void read(TProtocol iprot) throws TException {
  15330. TField field;
  15331. iprot.readStructBegin();
  15332. while (true)
  15333. {
  15334. field = iprot.readFieldBegin();
  15335. if (field.type == TType.STOP) {
  15336. break;
  15337. }
  15338. switch (field.id) {
  15339. case 1: // AUTHENTICATION_TOKEN
  15340. if (field.type == TType.STRING) {
  15341. this.authenticationToken = iprot.readString();
  15342. } else {
  15343. TProtocolUtil.skip(iprot, field.type);
  15344. }
  15345. break;
  15346. case 2: // GUID
  15347. if (field.type == TType.STRING) {
  15348. this.guid = iprot.readString();
  15349. } else {
  15350. TProtocolUtil.skip(iprot, field.type);
  15351. }
  15352. break;
  15353. default:
  15354. TProtocolUtil.skip(iprot, field.type);
  15355. }
  15356. iprot.readFieldEnd();
  15357. }
  15358. iprot.readStructEnd();
  15359. validate();
  15360. }
  15361. public void write(TProtocol oprot) throws TException {
  15362. validate();
  15363. oprot.writeStructBegin(STRUCT_DESC);
  15364. if (this.authenticationToken != null) {
  15365. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  15366. oprot.writeString(this.authenticationToken);
  15367. oprot.writeFieldEnd();
  15368. }
  15369. if (this.guid != null) {
  15370. oprot.writeFieldBegin(GUID_FIELD_DESC);
  15371. oprot.writeString(this.guid);
  15372. oprot.writeFieldEnd();
  15373. }
  15374. oprot.writeFieldStop();
  15375. oprot.writeStructEnd();
  15376. }
  15377. public void validate() throws TException {
  15378. // check for required fields
  15379. }
  15380. }
  15381. private static class deleteNote_result implements TBase<deleteNote_result>, java.io.Serializable, Cloneable {
  15382. private static final TStruct STRUCT_DESC = new TStruct("deleteNote_result");
  15383. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);
  15384. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  15385. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  15386. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  15387. private int success;
  15388. private com.evernote.edam.error.EDAMUserException userException;
  15389. private com.evernote.edam.error.EDAMSystemException systemException;
  15390. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  15391. // isset id assignments
  15392. private static final int __SUCCESS_ISSET_ID = 0;
  15393. private boolean[] __isset_vector = new boolean[1];
  15394. public deleteNote_result() {
  15395. }
  15396. /**
  15397. * Performs a deep copy on <i>other</i>.
  15398. */
  15399. public deleteNote_result(deleteNote_result other) {
  15400. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  15401. this.success = other.success;
  15402. if (other.isSetUserException()) {
  15403. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  15404. }
  15405. if (other.isSetSystemException()) {
  15406. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  15407. }
  15408. if (other.isSetNotFoundException()) {
  15409. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  15410. }
  15411. }
  15412. public deleteNote_result deepCopy() {
  15413. return new deleteNote_result(this);
  15414. }
  15415. public void clear() {
  15416. setSuccessIsSet(false);
  15417. this.success = 0;
  15418. this.userException = null;
  15419. this.systemException = null;
  15420. this.notFoundException = null;
  15421. }
  15422. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  15423. public boolean isSetSuccess() {
  15424. return __isset_vector[__SUCCESS_ISSET_ID];
  15425. }
  15426. public void setSuccessIsSet(boolean value) {
  15427. __isset_vector[__SUCCESS_ISSET_ID] = value;
  15428. }
  15429. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  15430. public boolean isSetUserException() {
  15431. return this.userException != null;
  15432. }
  15433. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  15434. public boolean isSetSystemException() {
  15435. return this.systemException != null;
  15436. }
  15437. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  15438. public boolean isSetNotFoundException() {
  15439. return this.notFoundException != null;
  15440. }
  15441. public int compareTo(deleteNote_result other) {
  15442. if (!getClass().equals(other.getClass())) {
  15443. return getClass().getName().compareTo(other.getClass().getName());
  15444. }
  15445. int lastComparison = 0;
  15446. deleteNote_result typedOther = (deleteNote_result)other;
  15447. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  15448. if (lastComparison != 0) {
  15449. return lastComparison;
  15450. }
  15451. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  15452. if (lastComparison != 0) {
  15453. return lastComparison;
  15454. }
  15455. }
  15456. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  15457. if (lastComparison != 0) {
  15458. return lastComparison;
  15459. }
  15460. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  15461. if (lastComparison != 0) {
  15462. return lastComparison;
  15463. }
  15464. }
  15465. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  15466. if (lastComparison != 0) {
  15467. return lastComparison;
  15468. }
  15469. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  15470. if (lastComparison != 0) {
  15471. return lastComparison;
  15472. }
  15473. }
  15474. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  15475. if (lastComparison != 0) {
  15476. return lastComparison;
  15477. }
  15478. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  15479. if (lastComparison != 0) {
  15480. return lastComparison;
  15481. }
  15482. }
  15483. return 0;
  15484. }
  15485. public void read(TProtocol iprot) throws TException {
  15486. TField field;
  15487. iprot.readStructBegin();
  15488. while (true)
  15489. {
  15490. field = iprot.readFieldBegin();
  15491. if (field.type == TType.STOP) {
  15492. break;
  15493. }
  15494. switch (field.id) {
  15495. case 0: // SUCCESS
  15496. if (field.type == TType.I32) {
  15497. this.success = iprot.readI32();
  15498. setSuccessIsSet(true);
  15499. } else {
  15500. TProtocolUtil.skip(iprot, field.type);
  15501. }
  15502. break;
  15503. case 1: // USER_EXCEPTION
  15504. if (field.type == TType.STRUCT) {
  15505. this.userException = new com.evernote.edam.error.EDAMUserException();
  15506. this.userException.read(iprot);
  15507. } else {
  15508. TProtocolUtil.skip(iprot, field.type);
  15509. }
  15510. break;
  15511. case 2: // SYSTEM_EXCEPTION
  15512. if (field.type == TType.STRUCT) {
  15513. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  15514. this.systemException.read(iprot);
  15515. } else {
  15516. TProtocolUtil.skip(iprot, field.type);
  15517. }
  15518. break;
  15519. case 3: // NOT_FOUND_EXCEPTION
  15520. if (field.type == TType.STRUCT) {
  15521. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  15522. this.notFoundException.read(iprot);
  15523. } else {
  15524. TProtocolUtil.skip(iprot, field.type);
  15525. }
  15526. break;
  15527. default:
  15528. TProtocolUtil.skip(iprot, field.type);
  15529. }
  15530. iprot.readFieldEnd();
  15531. }
  15532. iprot.readStructEnd();
  15533. validate();
  15534. }
  15535. public void write(TProtocol oprot) throws TException {
  15536. oprot.writeStructBegin(STRUCT_DESC);
  15537. if (this.isSetSuccess()) {
  15538. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  15539. oprot.writeI32(this.success);
  15540. oprot.writeFieldEnd();
  15541. } else if (this.isSetUserException()) {
  15542. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  15543. this.userException.write(oprot);
  15544. oprot.writeFieldEnd();
  15545. } else if (this.isSetSystemException()) {
  15546. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  15547. this.systemException.write(oprot);
  15548. oprot.writeFieldEnd();
  15549. } else if (this.isSetNotFoundException()) {
  15550. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  15551. this.notFoundException.write(oprot);
  15552. oprot.writeFieldEnd();
  15553. }
  15554. oprot.writeFieldStop();
  15555. oprot.writeStructEnd();
  15556. }
  15557. public void validate() throws TException {
  15558. // check for required fields
  15559. }
  15560. }
  15561. private static class expungeNote_args implements TBase<expungeNote_args>, java.io.Serializable, Cloneable {
  15562. private static final TStruct STRUCT_DESC = new TStruct("expungeNote_args");
  15563. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  15564. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  15565. private String authenticationToken;
  15566. private String guid;
  15567. // isset id assignments
  15568. public expungeNote_args() {
  15569. }
  15570. /**
  15571. * Performs a deep copy on <i>other</i>.
  15572. */
  15573. public expungeNote_args(expungeNote_args other) {
  15574. if (other.isSetAuthenticationToken()) {
  15575. this.authenticationToken = other.authenticationToken;
  15576. }
  15577. if (other.isSetGuid()) {
  15578. this.guid = other.guid;
  15579. }
  15580. }
  15581. public expungeNote_args deepCopy() {
  15582. return new expungeNote_args(this);
  15583. }
  15584. public void clear() {
  15585. this.authenticationToken = null;
  15586. this.guid = null;
  15587. }
  15588. public void setAuthenticationToken(String authenticationToken) {
  15589. this.authenticationToken = authenticationToken;
  15590. }
  15591. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  15592. public boolean isSetAuthenticationToken() {
  15593. return this.authenticationToken != null;
  15594. }
  15595. public void setGuid(String guid) {
  15596. this.guid = guid;
  15597. }
  15598. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  15599. public boolean isSetGuid() {
  15600. return this.guid != null;
  15601. }
  15602. public int compareTo(expungeNote_args other) {
  15603. if (!getClass().equals(other.getClass())) {
  15604. return getClass().getName().compareTo(other.getClass().getName());
  15605. }
  15606. int lastComparison = 0;
  15607. expungeNote_args typedOther = (expungeNote_args)other;
  15608. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  15609. if (lastComparison != 0) {
  15610. return lastComparison;
  15611. }
  15612. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  15613. if (lastComparison != 0) {
  15614. return lastComparison;
  15615. }
  15616. }
  15617. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  15618. if (lastComparison != 0) {
  15619. return lastComparison;
  15620. }
  15621. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  15622. if (lastComparison != 0) {
  15623. return lastComparison;
  15624. }
  15625. }
  15626. return 0;
  15627. }
  15628. public void read(TProtocol iprot) throws TException {
  15629. TField field;
  15630. iprot.readStructBegin();
  15631. while (true)
  15632. {
  15633. field = iprot.readFieldBegin();
  15634. if (field.type == TType.STOP) {
  15635. break;
  15636. }
  15637. switch (field.id) {
  15638. case 1: // AUTHENTICATION_TOKEN
  15639. if (field.type == TType.STRING) {
  15640. this.authenticationToken = iprot.readString();
  15641. } else {
  15642. TProtocolUtil.skip(iprot, field.type);
  15643. }
  15644. break;
  15645. case 2: // GUID
  15646. if (field.type == TType.STRING) {
  15647. this.guid = iprot.readString();
  15648. } else {
  15649. TProtocolUtil.skip(iprot, field.type);
  15650. }
  15651. break;
  15652. default:
  15653. TProtocolUtil.skip(iprot, field.type);
  15654. }
  15655. iprot.readFieldEnd();
  15656. }
  15657. iprot.readStructEnd();
  15658. validate();
  15659. }
  15660. public void write(TProtocol oprot) throws TException {
  15661. validate();
  15662. oprot.writeStructBegin(STRUCT_DESC);
  15663. if (this.authenticationToken != null) {
  15664. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  15665. oprot.writeString(this.authenticationToken);
  15666. oprot.writeFieldEnd();
  15667. }
  15668. if (this.guid != null) {
  15669. oprot.writeFieldBegin(GUID_FIELD_DESC);
  15670. oprot.writeString(this.guid);
  15671. oprot.writeFieldEnd();
  15672. }
  15673. oprot.writeFieldStop();
  15674. oprot.writeStructEnd();
  15675. }
  15676. public void validate() throws TException {
  15677. // check for required fields
  15678. }
  15679. }
  15680. private static class expungeNote_result implements TBase<expungeNote_result>, java.io.Serializable, Cloneable {
  15681. private static final TStruct STRUCT_DESC = new TStruct("expungeNote_result");
  15682. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);
  15683. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  15684. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  15685. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  15686. private int success;
  15687. private com.evernote.edam.error.EDAMUserException userException;
  15688. private com.evernote.edam.error.EDAMSystemException systemException;
  15689. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  15690. // isset id assignments
  15691. private static final int __SUCCESS_ISSET_ID = 0;
  15692. private boolean[] __isset_vector = new boolean[1];
  15693. public expungeNote_result() {
  15694. }
  15695. /**
  15696. * Performs a deep copy on <i>other</i>.
  15697. */
  15698. public expungeNote_result(expungeNote_result other) {
  15699. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  15700. this.success = other.success;
  15701. if (other.isSetUserException()) {
  15702. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  15703. }
  15704. if (other.isSetSystemException()) {
  15705. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  15706. }
  15707. if (other.isSetNotFoundException()) {
  15708. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  15709. }
  15710. }
  15711. public expungeNote_result deepCopy() {
  15712. return new expungeNote_result(this);
  15713. }
  15714. public void clear() {
  15715. setSuccessIsSet(false);
  15716. this.success = 0;
  15717. this.userException = null;
  15718. this.systemException = null;
  15719. this.notFoundException = null;
  15720. }
  15721. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  15722. public boolean isSetSuccess() {
  15723. return __isset_vector[__SUCCESS_ISSET_ID];
  15724. }
  15725. public void setSuccessIsSet(boolean value) {
  15726. __isset_vector[__SUCCESS_ISSET_ID] = value;
  15727. }
  15728. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  15729. public boolean isSetUserException() {
  15730. return this.userException != null;
  15731. }
  15732. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  15733. public boolean isSetSystemException() {
  15734. return this.systemException != null;
  15735. }
  15736. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  15737. public boolean isSetNotFoundException() {
  15738. return this.notFoundException != null;
  15739. }
  15740. public int compareTo(expungeNote_result other) {
  15741. if (!getClass().equals(other.getClass())) {
  15742. return getClass().getName().compareTo(other.getClass().getName());
  15743. }
  15744. int lastComparison = 0;
  15745. expungeNote_result typedOther = (expungeNote_result)other;
  15746. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  15747. if (lastComparison != 0) {
  15748. return lastComparison;
  15749. }
  15750. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  15751. if (lastComparison != 0) {
  15752. return lastComparison;
  15753. }
  15754. }
  15755. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  15756. if (lastComparison != 0) {
  15757. return lastComparison;
  15758. }
  15759. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  15760. if (lastComparison != 0) {
  15761. return lastComparison;
  15762. }
  15763. }
  15764. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  15765. if (lastComparison != 0) {
  15766. return lastComparison;
  15767. }
  15768. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  15769. if (lastComparison != 0) {
  15770. return lastComparison;
  15771. }
  15772. }
  15773. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  15774. if (lastComparison != 0) {
  15775. return lastComparison;
  15776. }
  15777. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  15778. if (lastComparison != 0) {
  15779. return lastComparison;
  15780. }
  15781. }
  15782. return 0;
  15783. }
  15784. public void read(TProtocol iprot) throws TException {
  15785. TField field;
  15786. iprot.readStructBegin();
  15787. while (true)
  15788. {
  15789. field = iprot.readFieldBegin();
  15790. if (field.type == TType.STOP) {
  15791. break;
  15792. }
  15793. switch (field.id) {
  15794. case 0: // SUCCESS
  15795. if (field.type == TType.I32) {
  15796. this.success = iprot.readI32();
  15797. setSuccessIsSet(true);
  15798. } else {
  15799. TProtocolUtil.skip(iprot, field.type);
  15800. }
  15801. break;
  15802. case 1: // USER_EXCEPTION
  15803. if (field.type == TType.STRUCT) {
  15804. this.userException = new com.evernote.edam.error.EDAMUserException();
  15805. this.userException.read(iprot);
  15806. } else {
  15807. TProtocolUtil.skip(iprot, field.type);
  15808. }
  15809. break;
  15810. case 2: // SYSTEM_EXCEPTION
  15811. if (field.type == TType.STRUCT) {
  15812. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  15813. this.systemException.read(iprot);
  15814. } else {
  15815. TProtocolUtil.skip(iprot, field.type);
  15816. }
  15817. break;
  15818. case 3: // NOT_FOUND_EXCEPTION
  15819. if (field.type == TType.STRUCT) {
  15820. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  15821. this.notFoundException.read(iprot);
  15822. } else {
  15823. TProtocolUtil.skip(iprot, field.type);
  15824. }
  15825. break;
  15826. default:
  15827. TProtocolUtil.skip(iprot, field.type);
  15828. }
  15829. iprot.readFieldEnd();
  15830. }
  15831. iprot.readStructEnd();
  15832. validate();
  15833. }
  15834. public void write(TProtocol oprot) throws TException {
  15835. oprot.writeStructBegin(STRUCT_DESC);
  15836. if (this.isSetSuccess()) {
  15837. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  15838. oprot.writeI32(this.success);
  15839. oprot.writeFieldEnd();
  15840. } else if (this.isSetUserException()) {
  15841. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  15842. this.userException.write(oprot);
  15843. oprot.writeFieldEnd();
  15844. } else if (this.isSetSystemException()) {
  15845. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  15846. this.systemException.write(oprot);
  15847. oprot.writeFieldEnd();
  15848. } else if (this.isSetNotFoundException()) {
  15849. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  15850. this.notFoundException.write(oprot);
  15851. oprot.writeFieldEnd();
  15852. }
  15853. oprot.writeFieldStop();
  15854. oprot.writeStructEnd();
  15855. }
  15856. public void validate() throws TException {
  15857. // check for required fields
  15858. }
  15859. }
  15860. private static class expungeNotes_args implements TBase<expungeNotes_args>, java.io.Serializable, Cloneable {
  15861. private static final TStruct STRUCT_DESC = new TStruct("expungeNotes_args");
  15862. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  15863. private static final TField NOTE_GUIDS_FIELD_DESC = new TField("noteGuids", TType.LIST, (short)2);
  15864. private String authenticationToken;
  15865. private List<String> noteGuids;
  15866. // isset id assignments
  15867. public expungeNotes_args() {
  15868. }
  15869. /**
  15870. * Performs a deep copy on <i>other</i>.
  15871. */
  15872. public expungeNotes_args(expungeNotes_args other) {
  15873. if (other.isSetAuthenticationToken()) {
  15874. this.authenticationToken = other.authenticationToken;
  15875. }
  15876. if (other.isSetNoteGuids()) {
  15877. List<String> __this__noteGuids = new ArrayList<String>();
  15878. for (String other_element : other.noteGuids) {
  15879. __this__noteGuids.add(other_element);
  15880. }
  15881. this.noteGuids = __this__noteGuids;
  15882. }
  15883. }
  15884. public expungeNotes_args deepCopy() {
  15885. return new expungeNotes_args(this);
  15886. }
  15887. public void clear() {
  15888. this.authenticationToken = null;
  15889. this.noteGuids = null;
  15890. }
  15891. public void setAuthenticationToken(String authenticationToken) {
  15892. this.authenticationToken = authenticationToken;
  15893. }
  15894. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  15895. public boolean isSetAuthenticationToken() {
  15896. return this.authenticationToken != null;
  15897. }
  15898. public void setNoteGuids(List<String> noteGuids) {
  15899. this.noteGuids = noteGuids;
  15900. }
  15901. /** Returns true if field noteGuids is set (has been asigned a value) and false otherwise */
  15902. public boolean isSetNoteGuids() {
  15903. return this.noteGuids != null;
  15904. }
  15905. public int compareTo(expungeNotes_args other) {
  15906. if (!getClass().equals(other.getClass())) {
  15907. return getClass().getName().compareTo(other.getClass().getName());
  15908. }
  15909. int lastComparison = 0;
  15910. expungeNotes_args typedOther = (expungeNotes_args)other;
  15911. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  15912. if (lastComparison != 0) {
  15913. return lastComparison;
  15914. }
  15915. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  15916. if (lastComparison != 0) {
  15917. return lastComparison;
  15918. }
  15919. }
  15920. lastComparison = Boolean.valueOf(isSetNoteGuids()).compareTo(typedOther.isSetNoteGuids());
  15921. if (lastComparison != 0) {
  15922. return lastComparison;
  15923. }
  15924. if (isSetNoteGuids()) { lastComparison = TBaseHelper.compareTo(this.noteGuids, typedOther.noteGuids);
  15925. if (lastComparison != 0) {
  15926. return lastComparison;
  15927. }
  15928. }
  15929. return 0;
  15930. }
  15931. public void read(TProtocol iprot) throws TException {
  15932. TField field;
  15933. iprot.readStructBegin();
  15934. while (true)
  15935. {
  15936. field = iprot.readFieldBegin();
  15937. if (field.type == TType.STOP) {
  15938. break;
  15939. }
  15940. switch (field.id) {
  15941. case 1: // AUTHENTICATION_TOKEN
  15942. if (field.type == TType.STRING) {
  15943. this.authenticationToken = iprot.readString();
  15944. } else {
  15945. TProtocolUtil.skip(iprot, field.type);
  15946. }
  15947. break;
  15948. case 2: // NOTE_GUIDS
  15949. if (field.type == TType.LIST) {
  15950. {
  15951. TList _list130 = iprot.readListBegin();
  15952. this.noteGuids = new ArrayList<String>(_list130.size);
  15953. for (int _i131 = 0; _i131 < _list130.size; ++_i131)
  15954. {
  15955. String _elem132;
  15956. _elem132 = iprot.readString();
  15957. this.noteGuids.add(_elem132);
  15958. }
  15959. iprot.readListEnd();
  15960. }
  15961. } else {
  15962. TProtocolUtil.skip(iprot, field.type);
  15963. }
  15964. break;
  15965. default:
  15966. TProtocolUtil.skip(iprot, field.type);
  15967. }
  15968. iprot.readFieldEnd();
  15969. }
  15970. iprot.readStructEnd();
  15971. validate();
  15972. }
  15973. public void write(TProtocol oprot) throws TException {
  15974. validate();
  15975. oprot.writeStructBegin(STRUCT_DESC);
  15976. if (this.authenticationToken != null) {
  15977. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  15978. oprot.writeString(this.authenticationToken);
  15979. oprot.writeFieldEnd();
  15980. }
  15981. if (this.noteGuids != null) {
  15982. oprot.writeFieldBegin(NOTE_GUIDS_FIELD_DESC);
  15983. {
  15984. oprot.writeListBegin(new TList(TType.STRING, this.noteGuids.size()));
  15985. for (String _iter133 : this.noteGuids)
  15986. {
  15987. oprot.writeString(_iter133);
  15988. }
  15989. oprot.writeListEnd();
  15990. }
  15991. oprot.writeFieldEnd();
  15992. }
  15993. oprot.writeFieldStop();
  15994. oprot.writeStructEnd();
  15995. }
  15996. public void validate() throws TException {
  15997. // check for required fields
  15998. }
  15999. }
  16000. private static class expungeNotes_result implements TBase<expungeNotes_result>, java.io.Serializable, Cloneable {
  16001. private static final TStruct STRUCT_DESC = new TStruct("expungeNotes_result");
  16002. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);
  16003. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  16004. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  16005. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  16006. private int success;
  16007. private com.evernote.edam.error.EDAMUserException userException;
  16008. private com.evernote.edam.error.EDAMSystemException systemException;
  16009. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  16010. // isset id assignments
  16011. private static final int __SUCCESS_ISSET_ID = 0;
  16012. private boolean[] __isset_vector = new boolean[1];
  16013. public expungeNotes_result() {
  16014. }
  16015. /**
  16016. * Performs a deep copy on <i>other</i>.
  16017. */
  16018. public expungeNotes_result(expungeNotes_result other) {
  16019. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  16020. this.success = other.success;
  16021. if (other.isSetUserException()) {
  16022. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  16023. }
  16024. if (other.isSetSystemException()) {
  16025. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  16026. }
  16027. if (other.isSetNotFoundException()) {
  16028. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  16029. }
  16030. }
  16031. public expungeNotes_result deepCopy() {
  16032. return new expungeNotes_result(this);
  16033. }
  16034. public void clear() {
  16035. setSuccessIsSet(false);
  16036. this.success = 0;
  16037. this.userException = null;
  16038. this.systemException = null;
  16039. this.notFoundException = null;
  16040. }
  16041. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  16042. public boolean isSetSuccess() {
  16043. return __isset_vector[__SUCCESS_ISSET_ID];
  16044. }
  16045. public void setSuccessIsSet(boolean value) {
  16046. __isset_vector[__SUCCESS_ISSET_ID] = value;
  16047. }
  16048. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  16049. public boolean isSetUserException() {
  16050. return this.userException != null;
  16051. }
  16052. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  16053. public boolean isSetSystemException() {
  16054. return this.systemException != null;
  16055. }
  16056. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  16057. public boolean isSetNotFoundException() {
  16058. return this.notFoundException != null;
  16059. }
  16060. public int compareTo(expungeNotes_result other) {
  16061. if (!getClass().equals(other.getClass())) {
  16062. return getClass().getName().compareTo(other.getClass().getName());
  16063. }
  16064. int lastComparison = 0;
  16065. expungeNotes_result typedOther = (expungeNotes_result)other;
  16066. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  16067. if (lastComparison != 0) {
  16068. return lastComparison;
  16069. }
  16070. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  16071. if (lastComparison != 0) {
  16072. return lastComparison;
  16073. }
  16074. }
  16075. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  16076. if (lastComparison != 0) {
  16077. return lastComparison;
  16078. }
  16079. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  16080. if (lastComparison != 0) {
  16081. return lastComparison;
  16082. }
  16083. }
  16084. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  16085. if (lastComparison != 0) {
  16086. return lastComparison;
  16087. }
  16088. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  16089. if (lastComparison != 0) {
  16090. return lastComparison;
  16091. }
  16092. }
  16093. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  16094. if (lastComparison != 0) {
  16095. return lastComparison;
  16096. }
  16097. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  16098. if (lastComparison != 0) {
  16099. return lastComparison;
  16100. }
  16101. }
  16102. return 0;
  16103. }
  16104. public void read(TProtocol iprot) throws TException {
  16105. TField field;
  16106. iprot.readStructBegin();
  16107. while (true)
  16108. {
  16109. field = iprot.readFieldBegin();
  16110. if (field.type == TType.STOP) {
  16111. break;
  16112. }
  16113. switch (field.id) {
  16114. case 0: // SUCCESS
  16115. if (field.type == TType.I32) {
  16116. this.success = iprot.readI32();
  16117. setSuccessIsSet(true);
  16118. } else {
  16119. TProtocolUtil.skip(iprot, field.type);
  16120. }
  16121. break;
  16122. case 1: // USER_EXCEPTION
  16123. if (field.type == TType.STRUCT) {
  16124. this.userException = new com.evernote.edam.error.EDAMUserException();
  16125. this.userException.read(iprot);
  16126. } else {
  16127. TProtocolUtil.skip(iprot, field.type);
  16128. }
  16129. break;
  16130. case 2: // SYSTEM_EXCEPTION
  16131. if (field.type == TType.STRUCT) {
  16132. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  16133. this.systemException.read(iprot);
  16134. } else {
  16135. TProtocolUtil.skip(iprot, field.type);
  16136. }
  16137. break;
  16138. case 3: // NOT_FOUND_EXCEPTION
  16139. if (field.type == TType.STRUCT) {
  16140. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  16141. this.notFoundException.read(iprot);
  16142. } else {
  16143. TProtocolUtil.skip(iprot, field.type);
  16144. }
  16145. break;
  16146. default:
  16147. TProtocolUtil.skip(iprot, field.type);
  16148. }
  16149. iprot.readFieldEnd();
  16150. }
  16151. iprot.readStructEnd();
  16152. validate();
  16153. }
  16154. public void write(TProtocol oprot) throws TException {
  16155. oprot.writeStructBegin(STRUCT_DESC);
  16156. if (this.isSetSuccess()) {
  16157. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  16158. oprot.writeI32(this.success);
  16159. oprot.writeFieldEnd();
  16160. } else if (this.isSetUserException()) {
  16161. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  16162. this.userException.write(oprot);
  16163. oprot.writeFieldEnd();
  16164. } else if (this.isSetSystemException()) {
  16165. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  16166. this.systemException.write(oprot);
  16167. oprot.writeFieldEnd();
  16168. } else if (this.isSetNotFoundException()) {
  16169. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  16170. this.notFoundException.write(oprot);
  16171. oprot.writeFieldEnd();
  16172. }
  16173. oprot.writeFieldStop();
  16174. oprot.writeStructEnd();
  16175. }
  16176. public void validate() throws TException {
  16177. // check for required fields
  16178. }
  16179. }
  16180. private static class expungeInactiveNotes_args implements TBase<expungeInactiveNotes_args>, java.io.Serializable, Cloneable {
  16181. private static final TStruct STRUCT_DESC = new TStruct("expungeInactiveNotes_args");
  16182. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  16183. private String authenticationToken;
  16184. // isset id assignments
  16185. public expungeInactiveNotes_args() {
  16186. }
  16187. /**
  16188. * Performs a deep copy on <i>other</i>.
  16189. */
  16190. public expungeInactiveNotes_args(expungeInactiveNotes_args other) {
  16191. if (other.isSetAuthenticationToken()) {
  16192. this.authenticationToken = other.authenticationToken;
  16193. }
  16194. }
  16195. public expungeInactiveNotes_args deepCopy() {
  16196. return new expungeInactiveNotes_args(this);
  16197. }
  16198. public void clear() {
  16199. this.authenticationToken = null;
  16200. }
  16201. public void setAuthenticationToken(String authenticationToken) {
  16202. this.authenticationToken = authenticationToken;
  16203. }
  16204. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  16205. public boolean isSetAuthenticationToken() {
  16206. return this.authenticationToken != null;
  16207. }
  16208. public int compareTo(expungeInactiveNotes_args other) {
  16209. if (!getClass().equals(other.getClass())) {
  16210. return getClass().getName().compareTo(other.getClass().getName());
  16211. }
  16212. int lastComparison = 0;
  16213. expungeInactiveNotes_args typedOther = (expungeInactiveNotes_args)other;
  16214. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  16215. if (lastComparison != 0) {
  16216. return lastComparison;
  16217. }
  16218. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  16219. if (lastComparison != 0) {
  16220. return lastComparison;
  16221. }
  16222. }
  16223. return 0;
  16224. }
  16225. public void read(TProtocol iprot) throws TException {
  16226. TField field;
  16227. iprot.readStructBegin();
  16228. while (true)
  16229. {
  16230. field = iprot.readFieldBegin();
  16231. if (field.type == TType.STOP) {
  16232. break;
  16233. }
  16234. switch (field.id) {
  16235. case 1: // AUTHENTICATION_TOKEN
  16236. if (field.type == TType.STRING) {
  16237. this.authenticationToken = iprot.readString();
  16238. } else {
  16239. TProtocolUtil.skip(iprot, field.type);
  16240. }
  16241. break;
  16242. default:
  16243. TProtocolUtil.skip(iprot, field.type);
  16244. }
  16245. iprot.readFieldEnd();
  16246. }
  16247. iprot.readStructEnd();
  16248. validate();
  16249. }
  16250. public void write(TProtocol oprot) throws TException {
  16251. validate();
  16252. oprot.writeStructBegin(STRUCT_DESC);
  16253. if (this.authenticationToken != null) {
  16254. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  16255. oprot.writeString(this.authenticationToken);
  16256. oprot.writeFieldEnd();
  16257. }
  16258. oprot.writeFieldStop();
  16259. oprot.writeStructEnd();
  16260. }
  16261. public void validate() throws TException {
  16262. // check for required fields
  16263. }
  16264. }
  16265. private static class expungeInactiveNotes_result implements TBase<expungeInactiveNotes_result>, java.io.Serializable, Cloneable {
  16266. private static final TStruct STRUCT_DESC = new TStruct("expungeInactiveNotes_result");
  16267. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);
  16268. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  16269. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  16270. private int success;
  16271. private com.evernote.edam.error.EDAMUserException userException;
  16272. private com.evernote.edam.error.EDAMSystemException systemException;
  16273. // isset id assignments
  16274. private static final int __SUCCESS_ISSET_ID = 0;
  16275. private boolean[] __isset_vector = new boolean[1];
  16276. public expungeInactiveNotes_result() {
  16277. }
  16278. /**
  16279. * Performs a deep copy on <i>other</i>.
  16280. */
  16281. public expungeInactiveNotes_result(expungeInactiveNotes_result other) {
  16282. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  16283. this.success = other.success;
  16284. if (other.isSetUserException()) {
  16285. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  16286. }
  16287. if (other.isSetSystemException()) {
  16288. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  16289. }
  16290. }
  16291. public expungeInactiveNotes_result deepCopy() {
  16292. return new expungeInactiveNotes_result(this);
  16293. }
  16294. public void clear() {
  16295. setSuccessIsSet(false);
  16296. this.success = 0;
  16297. this.userException = null;
  16298. this.systemException = null;
  16299. }
  16300. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  16301. public boolean isSetSuccess() {
  16302. return __isset_vector[__SUCCESS_ISSET_ID];
  16303. }
  16304. public void setSuccessIsSet(boolean value) {
  16305. __isset_vector[__SUCCESS_ISSET_ID] = value;
  16306. }
  16307. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  16308. public boolean isSetUserException() {
  16309. return this.userException != null;
  16310. }
  16311. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  16312. public boolean isSetSystemException() {
  16313. return this.systemException != null;
  16314. }
  16315. public int compareTo(expungeInactiveNotes_result other) {
  16316. if (!getClass().equals(other.getClass())) {
  16317. return getClass().getName().compareTo(other.getClass().getName());
  16318. }
  16319. int lastComparison = 0;
  16320. expungeInactiveNotes_result typedOther = (expungeInactiveNotes_result)other;
  16321. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  16322. if (lastComparison != 0) {
  16323. return lastComparison;
  16324. }
  16325. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  16326. if (lastComparison != 0) {
  16327. return lastComparison;
  16328. }
  16329. }
  16330. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  16331. if (lastComparison != 0) {
  16332. return lastComparison;
  16333. }
  16334. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  16335. if (lastComparison != 0) {
  16336. return lastComparison;
  16337. }
  16338. }
  16339. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  16340. if (lastComparison != 0) {
  16341. return lastComparison;
  16342. }
  16343. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  16344. if (lastComparison != 0) {
  16345. return lastComparison;
  16346. }
  16347. }
  16348. return 0;
  16349. }
  16350. public void read(TProtocol iprot) throws TException {
  16351. TField field;
  16352. iprot.readStructBegin();
  16353. while (true)
  16354. {
  16355. field = iprot.readFieldBegin();
  16356. if (field.type == TType.STOP) {
  16357. break;
  16358. }
  16359. switch (field.id) {
  16360. case 0: // SUCCESS
  16361. if (field.type == TType.I32) {
  16362. this.success = iprot.readI32();
  16363. setSuccessIsSet(true);
  16364. } else {
  16365. TProtocolUtil.skip(iprot, field.type);
  16366. }
  16367. break;
  16368. case 1: // USER_EXCEPTION
  16369. if (field.type == TType.STRUCT) {
  16370. this.userException = new com.evernote.edam.error.EDAMUserException();
  16371. this.userException.read(iprot);
  16372. } else {
  16373. TProtocolUtil.skip(iprot, field.type);
  16374. }
  16375. break;
  16376. case 2: // SYSTEM_EXCEPTION
  16377. if (field.type == TType.STRUCT) {
  16378. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  16379. this.systemException.read(iprot);
  16380. } else {
  16381. TProtocolUtil.skip(iprot, field.type);
  16382. }
  16383. break;
  16384. default:
  16385. TProtocolUtil.skip(iprot, field.type);
  16386. }
  16387. iprot.readFieldEnd();
  16388. }
  16389. iprot.readStructEnd();
  16390. validate();
  16391. }
  16392. public void write(TProtocol oprot) throws TException {
  16393. oprot.writeStructBegin(STRUCT_DESC);
  16394. if (this.isSetSuccess()) {
  16395. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  16396. oprot.writeI32(this.success);
  16397. oprot.writeFieldEnd();
  16398. } else if (this.isSetUserException()) {
  16399. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  16400. this.userException.write(oprot);
  16401. oprot.writeFieldEnd();
  16402. } else if (this.isSetSystemException()) {
  16403. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  16404. this.systemException.write(oprot);
  16405. oprot.writeFieldEnd();
  16406. }
  16407. oprot.writeFieldStop();
  16408. oprot.writeStructEnd();
  16409. }
  16410. public void validate() throws TException {
  16411. // check for required fields
  16412. }
  16413. }
  16414. private static class copyNote_args implements TBase<copyNote_args>, java.io.Serializable, Cloneable {
  16415. private static final TStruct STRUCT_DESC = new TStruct("copyNote_args");
  16416. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  16417. private static final TField NOTE_GUID_FIELD_DESC = new TField("noteGuid", TType.STRING, (short)2);
  16418. private static final TField TO_NOTEBOOK_GUID_FIELD_DESC = new TField("toNotebookGuid", TType.STRING, (short)3);
  16419. private String authenticationToken;
  16420. private String noteGuid;
  16421. private String toNotebookGuid;
  16422. // isset id assignments
  16423. public copyNote_args() {
  16424. }
  16425. /**
  16426. * Performs a deep copy on <i>other</i>.
  16427. */
  16428. public copyNote_args(copyNote_args other) {
  16429. if (other.isSetAuthenticationToken()) {
  16430. this.authenticationToken = other.authenticationToken;
  16431. }
  16432. if (other.isSetNoteGuid()) {
  16433. this.noteGuid = other.noteGuid;
  16434. }
  16435. if (other.isSetToNotebookGuid()) {
  16436. this.toNotebookGuid = other.toNotebookGuid;
  16437. }
  16438. }
  16439. public copyNote_args deepCopy() {
  16440. return new copyNote_args(this);
  16441. }
  16442. public void clear() {
  16443. this.authenticationToken = null;
  16444. this.noteGuid = null;
  16445. this.toNotebookGuid = null;
  16446. }
  16447. public void setAuthenticationToken(String authenticationToken) {
  16448. this.authenticationToken = authenticationToken;
  16449. }
  16450. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  16451. public boolean isSetAuthenticationToken() {
  16452. return this.authenticationToken != null;
  16453. }
  16454. public void setNoteGuid(String noteGuid) {
  16455. this.noteGuid = noteGuid;
  16456. }
  16457. /** Returns true if field noteGuid is set (has been asigned a value) and false otherwise */
  16458. public boolean isSetNoteGuid() {
  16459. return this.noteGuid != null;
  16460. }
  16461. public void setToNotebookGuid(String toNotebookGuid) {
  16462. this.toNotebookGuid = toNotebookGuid;
  16463. }
  16464. /** Returns true if field toNotebookGuid is set (has been asigned a value) and false otherwise */
  16465. public boolean isSetToNotebookGuid() {
  16466. return this.toNotebookGuid != null;
  16467. }
  16468. public int compareTo(copyNote_args other) {
  16469. if (!getClass().equals(other.getClass())) {
  16470. return getClass().getName().compareTo(other.getClass().getName());
  16471. }
  16472. int lastComparison = 0;
  16473. copyNote_args typedOther = (copyNote_args)other;
  16474. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  16475. if (lastComparison != 0) {
  16476. return lastComparison;
  16477. }
  16478. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  16479. if (lastComparison != 0) {
  16480. return lastComparison;
  16481. }
  16482. }
  16483. lastComparison = Boolean.valueOf(isSetNoteGuid()).compareTo(typedOther.isSetNoteGuid());
  16484. if (lastComparison != 0) {
  16485. return lastComparison;
  16486. }
  16487. if (isSetNoteGuid()) { lastComparison = TBaseHelper.compareTo(this.noteGuid, typedOther.noteGuid);
  16488. if (lastComparison != 0) {
  16489. return lastComparison;
  16490. }
  16491. }
  16492. lastComparison = Boolean.valueOf(isSetToNotebookGuid()).compareTo(typedOther.isSetToNotebookGuid());
  16493. if (lastComparison != 0) {
  16494. return lastComparison;
  16495. }
  16496. if (isSetToNotebookGuid()) { lastComparison = TBaseHelper.compareTo(this.toNotebookGuid, typedOther.toNotebookGuid);
  16497. if (lastComparison != 0) {
  16498. return lastComparison;
  16499. }
  16500. }
  16501. return 0;
  16502. }
  16503. public void read(TProtocol iprot) throws TException {
  16504. TField field;
  16505. iprot.readStructBegin();
  16506. while (true)
  16507. {
  16508. field = iprot.readFieldBegin();
  16509. if (field.type == TType.STOP) {
  16510. break;
  16511. }
  16512. switch (field.id) {
  16513. case 1: // AUTHENTICATION_TOKEN
  16514. if (field.type == TType.STRING) {
  16515. this.authenticationToken = iprot.readString();
  16516. } else {
  16517. TProtocolUtil.skip(iprot, field.type);
  16518. }
  16519. break;
  16520. case 2: // NOTE_GUID
  16521. if (field.type == TType.STRING) {
  16522. this.noteGuid = iprot.readString();
  16523. } else {
  16524. TProtocolUtil.skip(iprot, field.type);
  16525. }
  16526. break;
  16527. case 3: // TO_NOTEBOOK_GUID
  16528. if (field.type == TType.STRING) {
  16529. this.toNotebookGuid = iprot.readString();
  16530. } else {
  16531. TProtocolUtil.skip(iprot, field.type);
  16532. }
  16533. break;
  16534. default:
  16535. TProtocolUtil.skip(iprot, field.type);
  16536. }
  16537. iprot.readFieldEnd();
  16538. }
  16539. iprot.readStructEnd();
  16540. validate();
  16541. }
  16542. public void write(TProtocol oprot) throws TException {
  16543. validate();
  16544. oprot.writeStructBegin(STRUCT_DESC);
  16545. if (this.authenticationToken != null) {
  16546. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  16547. oprot.writeString(this.authenticationToken);
  16548. oprot.writeFieldEnd();
  16549. }
  16550. if (this.noteGuid != null) {
  16551. oprot.writeFieldBegin(NOTE_GUID_FIELD_DESC);
  16552. oprot.writeString(this.noteGuid);
  16553. oprot.writeFieldEnd();
  16554. }
  16555. if (this.toNotebookGuid != null) {
  16556. oprot.writeFieldBegin(TO_NOTEBOOK_GUID_FIELD_DESC);
  16557. oprot.writeString(this.toNotebookGuid);
  16558. oprot.writeFieldEnd();
  16559. }
  16560. oprot.writeFieldStop();
  16561. oprot.writeStructEnd();
  16562. }
  16563. public void validate() throws TException {
  16564. // check for required fields
  16565. }
  16566. }
  16567. private static class copyNote_result implements TBase<copyNote_result>, java.io.Serializable, Cloneable {
  16568. private static final TStruct STRUCT_DESC = new TStruct("copyNote_result");
  16569. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  16570. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  16571. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  16572. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  16573. private com.evernote.edam.type.Note success;
  16574. private com.evernote.edam.error.EDAMUserException userException;
  16575. private com.evernote.edam.error.EDAMSystemException systemException;
  16576. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  16577. // isset id assignments
  16578. public copyNote_result() {
  16579. }
  16580. /**
  16581. * Performs a deep copy on <i>other</i>.
  16582. */
  16583. public copyNote_result(copyNote_result other) {
  16584. if (other.isSetSuccess()) {
  16585. this.success = new com.evernote.edam.type.Note(other.success);
  16586. }
  16587. if (other.isSetUserException()) {
  16588. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  16589. }
  16590. if (other.isSetSystemException()) {
  16591. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  16592. }
  16593. if (other.isSetNotFoundException()) {
  16594. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  16595. }
  16596. }
  16597. public copyNote_result deepCopy() {
  16598. return new copyNote_result(this);
  16599. }
  16600. public void clear() {
  16601. this.success = null;
  16602. this.userException = null;
  16603. this.systemException = null;
  16604. this.notFoundException = null;
  16605. }
  16606. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  16607. public boolean isSetSuccess() {
  16608. return this.success != null;
  16609. }
  16610. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  16611. public boolean isSetUserException() {
  16612. return this.userException != null;
  16613. }
  16614. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  16615. public boolean isSetSystemException() {
  16616. return this.systemException != null;
  16617. }
  16618. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  16619. public boolean isSetNotFoundException() {
  16620. return this.notFoundException != null;
  16621. }
  16622. public int compareTo(copyNote_result other) {
  16623. if (!getClass().equals(other.getClass())) {
  16624. return getClass().getName().compareTo(other.getClass().getName());
  16625. }
  16626. int lastComparison = 0;
  16627. copyNote_result typedOther = (copyNote_result)other;
  16628. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  16629. if (lastComparison != 0) {
  16630. return lastComparison;
  16631. }
  16632. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  16633. if (lastComparison != 0) {
  16634. return lastComparison;
  16635. }
  16636. }
  16637. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  16638. if (lastComparison != 0) {
  16639. return lastComparison;
  16640. }
  16641. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  16642. if (lastComparison != 0) {
  16643. return lastComparison;
  16644. }
  16645. }
  16646. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  16647. if (lastComparison != 0) {
  16648. return lastComparison;
  16649. }
  16650. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  16651. if (lastComparison != 0) {
  16652. return lastComparison;
  16653. }
  16654. }
  16655. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  16656. if (lastComparison != 0) {
  16657. return lastComparison;
  16658. }
  16659. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  16660. if (lastComparison != 0) {
  16661. return lastComparison;
  16662. }
  16663. }
  16664. return 0;
  16665. }
  16666. public void read(TProtocol iprot) throws TException {
  16667. TField field;
  16668. iprot.readStructBegin();
  16669. while (true)
  16670. {
  16671. field = iprot.readFieldBegin();
  16672. if (field.type == TType.STOP) {
  16673. break;
  16674. }
  16675. switch (field.id) {
  16676. case 0: // SUCCESS
  16677. if (field.type == TType.STRUCT) {
  16678. this.success = new com.evernote.edam.type.Note();
  16679. this.success.read(iprot);
  16680. } else {
  16681. TProtocolUtil.skip(iprot, field.type);
  16682. }
  16683. break;
  16684. case 1: // USER_EXCEPTION
  16685. if (field.type == TType.STRUCT) {
  16686. this.userException = new com.evernote.edam.error.EDAMUserException();
  16687. this.userException.read(iprot);
  16688. } else {
  16689. TProtocolUtil.skip(iprot, field.type);
  16690. }
  16691. break;
  16692. case 2: // SYSTEM_EXCEPTION
  16693. if (field.type == TType.STRUCT) {
  16694. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  16695. this.systemException.read(iprot);
  16696. } else {
  16697. TProtocolUtil.skip(iprot, field.type);
  16698. }
  16699. break;
  16700. case 3: // NOT_FOUND_EXCEPTION
  16701. if (field.type == TType.STRUCT) {
  16702. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  16703. this.notFoundException.read(iprot);
  16704. } else {
  16705. TProtocolUtil.skip(iprot, field.type);
  16706. }
  16707. break;
  16708. default:
  16709. TProtocolUtil.skip(iprot, field.type);
  16710. }
  16711. iprot.readFieldEnd();
  16712. }
  16713. iprot.readStructEnd();
  16714. validate();
  16715. }
  16716. public void write(TProtocol oprot) throws TException {
  16717. oprot.writeStructBegin(STRUCT_DESC);
  16718. if (this.isSetSuccess()) {
  16719. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  16720. this.success.write(oprot);
  16721. oprot.writeFieldEnd();
  16722. } else if (this.isSetUserException()) {
  16723. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  16724. this.userException.write(oprot);
  16725. oprot.writeFieldEnd();
  16726. } else if (this.isSetSystemException()) {
  16727. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  16728. this.systemException.write(oprot);
  16729. oprot.writeFieldEnd();
  16730. } else if (this.isSetNotFoundException()) {
  16731. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  16732. this.notFoundException.write(oprot);
  16733. oprot.writeFieldEnd();
  16734. }
  16735. oprot.writeFieldStop();
  16736. oprot.writeStructEnd();
  16737. }
  16738. public void validate() throws TException {
  16739. // check for required fields
  16740. }
  16741. }
  16742. private static class listNoteVersions_args implements TBase<listNoteVersions_args>, java.io.Serializable, Cloneable {
  16743. private static final TStruct STRUCT_DESC = new TStruct("listNoteVersions_args");
  16744. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  16745. private static final TField NOTE_GUID_FIELD_DESC = new TField("noteGuid", TType.STRING, (short)2);
  16746. private String authenticationToken;
  16747. private String noteGuid;
  16748. // isset id assignments
  16749. public listNoteVersions_args() {
  16750. }
  16751. /**
  16752. * Performs a deep copy on <i>other</i>.
  16753. */
  16754. public listNoteVersions_args(listNoteVersions_args other) {
  16755. if (other.isSetAuthenticationToken()) {
  16756. this.authenticationToken = other.authenticationToken;
  16757. }
  16758. if (other.isSetNoteGuid()) {
  16759. this.noteGuid = other.noteGuid;
  16760. }
  16761. }
  16762. public listNoteVersions_args deepCopy() {
  16763. return new listNoteVersions_args(this);
  16764. }
  16765. public void clear() {
  16766. this.authenticationToken = null;
  16767. this.noteGuid = null;
  16768. }
  16769. public void setAuthenticationToken(String authenticationToken) {
  16770. this.authenticationToken = authenticationToken;
  16771. }
  16772. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  16773. public boolean isSetAuthenticationToken() {
  16774. return this.authenticationToken != null;
  16775. }
  16776. public void setNoteGuid(String noteGuid) {
  16777. this.noteGuid = noteGuid;
  16778. }
  16779. /** Returns true if field noteGuid is set (has been asigned a value) and false otherwise */
  16780. public boolean isSetNoteGuid() {
  16781. return this.noteGuid != null;
  16782. }
  16783. public int compareTo(listNoteVersions_args other) {
  16784. if (!getClass().equals(other.getClass())) {
  16785. return getClass().getName().compareTo(other.getClass().getName());
  16786. }
  16787. int lastComparison = 0;
  16788. listNoteVersions_args typedOther = (listNoteVersions_args)other;
  16789. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  16790. if (lastComparison != 0) {
  16791. return lastComparison;
  16792. }
  16793. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  16794. if (lastComparison != 0) {
  16795. return lastComparison;
  16796. }
  16797. }
  16798. lastComparison = Boolean.valueOf(isSetNoteGuid()).compareTo(typedOther.isSetNoteGuid());
  16799. if (lastComparison != 0) {
  16800. return lastComparison;
  16801. }
  16802. if (isSetNoteGuid()) { lastComparison = TBaseHelper.compareTo(this.noteGuid, typedOther.noteGuid);
  16803. if (lastComparison != 0) {
  16804. return lastComparison;
  16805. }
  16806. }
  16807. return 0;
  16808. }
  16809. public void read(TProtocol iprot) throws TException {
  16810. TField field;
  16811. iprot.readStructBegin();
  16812. while (true)
  16813. {
  16814. field = iprot.readFieldBegin();
  16815. if (field.type == TType.STOP) {
  16816. break;
  16817. }
  16818. switch (field.id) {
  16819. case 1: // AUTHENTICATION_TOKEN
  16820. if (field.type == TType.STRING) {
  16821. this.authenticationToken = iprot.readString();
  16822. } else {
  16823. TProtocolUtil.skip(iprot, field.type);
  16824. }
  16825. break;
  16826. case 2: // NOTE_GUID
  16827. if (field.type == TType.STRING) {
  16828. this.noteGuid = iprot.readString();
  16829. } else {
  16830. TProtocolUtil.skip(iprot, field.type);
  16831. }
  16832. break;
  16833. default:
  16834. TProtocolUtil.skip(iprot, field.type);
  16835. }
  16836. iprot.readFieldEnd();
  16837. }
  16838. iprot.readStructEnd();
  16839. validate();
  16840. }
  16841. public void write(TProtocol oprot) throws TException {
  16842. validate();
  16843. oprot.writeStructBegin(STRUCT_DESC);
  16844. if (this.authenticationToken != null) {
  16845. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  16846. oprot.writeString(this.authenticationToken);
  16847. oprot.writeFieldEnd();
  16848. }
  16849. if (this.noteGuid != null) {
  16850. oprot.writeFieldBegin(NOTE_GUID_FIELD_DESC);
  16851. oprot.writeString(this.noteGuid);
  16852. oprot.writeFieldEnd();
  16853. }
  16854. oprot.writeFieldStop();
  16855. oprot.writeStructEnd();
  16856. }
  16857. public void validate() throws TException {
  16858. // check for required fields
  16859. }
  16860. }
  16861. private static class listNoteVersions_result implements TBase<listNoteVersions_result>, java.io.Serializable, Cloneable {
  16862. private static final TStruct STRUCT_DESC = new TStruct("listNoteVersions_result");
  16863. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
  16864. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  16865. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  16866. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  16867. private List<NoteVersionId> success;
  16868. private com.evernote.edam.error.EDAMUserException userException;
  16869. private com.evernote.edam.error.EDAMSystemException systemException;
  16870. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  16871. // isset id assignments
  16872. public listNoteVersions_result() {
  16873. }
  16874. /**
  16875. * Performs a deep copy on <i>other</i>.
  16876. */
  16877. public listNoteVersions_result(listNoteVersions_result other) {
  16878. if (other.isSetSuccess()) {
  16879. List<NoteVersionId> __this__success = new ArrayList<NoteVersionId>();
  16880. for (NoteVersionId other_element : other.success) {
  16881. __this__success.add(new NoteVersionId(other_element));
  16882. }
  16883. this.success = __this__success;
  16884. }
  16885. if (other.isSetUserException()) {
  16886. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  16887. }
  16888. if (other.isSetSystemException()) {
  16889. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  16890. }
  16891. if (other.isSetNotFoundException()) {
  16892. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  16893. }
  16894. }
  16895. public listNoteVersions_result deepCopy() {
  16896. return new listNoteVersions_result(this);
  16897. }
  16898. public void clear() {
  16899. this.success = null;
  16900. this.userException = null;
  16901. this.systemException = null;
  16902. this.notFoundException = null;
  16903. }
  16904. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  16905. public boolean isSetSuccess() {
  16906. return this.success != null;
  16907. }
  16908. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  16909. public boolean isSetUserException() {
  16910. return this.userException != null;
  16911. }
  16912. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  16913. public boolean isSetSystemException() {
  16914. return this.systemException != null;
  16915. }
  16916. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  16917. public boolean isSetNotFoundException() {
  16918. return this.notFoundException != null;
  16919. }
  16920. public int compareTo(listNoteVersions_result other) {
  16921. if (!getClass().equals(other.getClass())) {
  16922. return getClass().getName().compareTo(other.getClass().getName());
  16923. }
  16924. int lastComparison = 0;
  16925. listNoteVersions_result typedOther = (listNoteVersions_result)other;
  16926. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  16927. if (lastComparison != 0) {
  16928. return lastComparison;
  16929. }
  16930. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  16931. if (lastComparison != 0) {
  16932. return lastComparison;
  16933. }
  16934. }
  16935. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  16936. if (lastComparison != 0) {
  16937. return lastComparison;
  16938. }
  16939. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  16940. if (lastComparison != 0) {
  16941. return lastComparison;
  16942. }
  16943. }
  16944. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  16945. if (lastComparison != 0) {
  16946. return lastComparison;
  16947. }
  16948. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  16949. if (lastComparison != 0) {
  16950. return lastComparison;
  16951. }
  16952. }
  16953. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  16954. if (lastComparison != 0) {
  16955. return lastComparison;
  16956. }
  16957. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  16958. if (lastComparison != 0) {
  16959. return lastComparison;
  16960. }
  16961. }
  16962. return 0;
  16963. }
  16964. public void read(TProtocol iprot) throws TException {
  16965. TField field;
  16966. iprot.readStructBegin();
  16967. while (true)
  16968. {
  16969. field = iprot.readFieldBegin();
  16970. if (field.type == TType.STOP) {
  16971. break;
  16972. }
  16973. switch (field.id) {
  16974. case 0: // SUCCESS
  16975. if (field.type == TType.LIST) {
  16976. {
  16977. TList _list134 = iprot.readListBegin();
  16978. this.success = new ArrayList<NoteVersionId>(_list134.size);
  16979. for (int _i135 = 0; _i135 < _list134.size; ++_i135)
  16980. {
  16981. NoteVersionId _elem136;
  16982. _elem136 = new NoteVersionId();
  16983. _elem136.read(iprot);
  16984. this.success.add(_elem136);
  16985. }
  16986. iprot.readListEnd();
  16987. }
  16988. } else {
  16989. TProtocolUtil.skip(iprot, field.type);
  16990. }
  16991. break;
  16992. case 1: // USER_EXCEPTION
  16993. if (field.type == TType.STRUCT) {
  16994. this.userException = new com.evernote.edam.error.EDAMUserException();
  16995. this.userException.read(iprot);
  16996. } else {
  16997. TProtocolUtil.skip(iprot, field.type);
  16998. }
  16999. break;
  17000. case 2: // SYSTEM_EXCEPTION
  17001. if (field.type == TType.STRUCT) {
  17002. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  17003. this.systemException.read(iprot);
  17004. } else {
  17005. TProtocolUtil.skip(iprot, field.type);
  17006. }
  17007. break;
  17008. case 3: // NOT_FOUND_EXCEPTION
  17009. if (field.type == TType.STRUCT) {
  17010. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  17011. this.notFoundException.read(iprot);
  17012. } else {
  17013. TProtocolUtil.skip(iprot, field.type);
  17014. }
  17015. break;
  17016. default:
  17017. TProtocolUtil.skip(iprot, field.type);
  17018. }
  17019. iprot.readFieldEnd();
  17020. }
  17021. iprot.readStructEnd();
  17022. validate();
  17023. }
  17024. public void write(TProtocol oprot) throws TException {
  17025. oprot.writeStructBegin(STRUCT_DESC);
  17026. if (this.isSetSuccess()) {
  17027. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  17028. {
  17029. oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
  17030. for (NoteVersionId _iter137 : this.success)
  17031. {
  17032. _iter137.write(oprot);
  17033. }
  17034. oprot.writeListEnd();
  17035. }
  17036. oprot.writeFieldEnd();
  17037. } else if (this.isSetUserException()) {
  17038. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  17039. this.userException.write(oprot);
  17040. oprot.writeFieldEnd();
  17041. } else if (this.isSetSystemException()) {
  17042. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  17043. this.systemException.write(oprot);
  17044. oprot.writeFieldEnd();
  17045. } else if (this.isSetNotFoundException()) {
  17046. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  17047. this.notFoundException.write(oprot);
  17048. oprot.writeFieldEnd();
  17049. }
  17050. oprot.writeFieldStop();
  17051. oprot.writeStructEnd();
  17052. }
  17053. public void validate() throws TException {
  17054. // check for required fields
  17055. }
  17056. }
  17057. private static class getNoteVersion_args implements TBase<getNoteVersion_args>, java.io.Serializable, Cloneable {
  17058. private static final TStruct STRUCT_DESC = new TStruct("getNoteVersion_args");
  17059. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  17060. private static final TField NOTE_GUID_FIELD_DESC = new TField("noteGuid", TType.STRING, (short)2);
  17061. private static final TField UPDATE_SEQUENCE_NUM_FIELD_DESC = new TField("updateSequenceNum", TType.I32, (short)3);
  17062. private static final TField WITH_RESOURCES_DATA_FIELD_DESC = new TField("withResourcesData", TType.BOOL, (short)4);
  17063. private static final TField WITH_RESOURCES_RECOGNITION_FIELD_DESC = new TField("withResourcesRecognition", TType.BOOL, (short)5);
  17064. private static final TField WITH_RESOURCES_ALTERNATE_DATA_FIELD_DESC = new TField("withResourcesAlternateData", TType.BOOL, (short)6);
  17065. private String authenticationToken;
  17066. private String noteGuid;
  17067. private int updateSequenceNum;
  17068. private boolean withResourcesData;
  17069. private boolean withResourcesRecognition;
  17070. private boolean withResourcesAlternateData;
  17071. // isset id assignments
  17072. private static final int __UPDATESEQUENCENUM_ISSET_ID = 0;
  17073. private static final int __WITHRESOURCESDATA_ISSET_ID = 1;
  17074. private static final int __WITHRESOURCESRECOGNITION_ISSET_ID = 2;
  17075. private static final int __WITHRESOURCESALTERNATEDATA_ISSET_ID = 3;
  17076. private boolean[] __isset_vector = new boolean[4];
  17077. public getNoteVersion_args() {
  17078. }
  17079. /**
  17080. * Performs a deep copy on <i>other</i>.
  17081. */
  17082. public getNoteVersion_args(getNoteVersion_args other) {
  17083. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  17084. if (other.isSetAuthenticationToken()) {
  17085. this.authenticationToken = other.authenticationToken;
  17086. }
  17087. if (other.isSetNoteGuid()) {
  17088. this.noteGuid = other.noteGuid;
  17089. }
  17090. this.updateSequenceNum = other.updateSequenceNum;
  17091. this.withResourcesData = other.withResourcesData;
  17092. this.withResourcesRecognition = other.withResourcesRecognition;
  17093. this.withResourcesAlternateData = other.withResourcesAlternateData;
  17094. }
  17095. public getNoteVersion_args deepCopy() {
  17096. return new getNoteVersion_args(this);
  17097. }
  17098. public void clear() {
  17099. this.authenticationToken = null;
  17100. this.noteGuid = null;
  17101. setUpdateSequenceNumIsSet(false);
  17102. this.updateSequenceNum = 0;
  17103. setWithResourcesDataIsSet(false);
  17104. this.withResourcesData = false;
  17105. setWithResourcesRecognitionIsSet(false);
  17106. this.withResourcesRecognition = false;
  17107. setWithResourcesAlternateDataIsSet(false);
  17108. this.withResourcesAlternateData = false;
  17109. }
  17110. public void setAuthenticationToken(String authenticationToken) {
  17111. this.authenticationToken = authenticationToken;
  17112. }
  17113. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  17114. public boolean isSetAuthenticationToken() {
  17115. return this.authenticationToken != null;
  17116. }
  17117. public void setNoteGuid(String noteGuid) {
  17118. this.noteGuid = noteGuid;
  17119. }
  17120. /** Returns true if field noteGuid is set (has been asigned a value) and false otherwise */
  17121. public boolean isSetNoteGuid() {
  17122. return this.noteGuid != null;
  17123. }
  17124. public void setUpdateSequenceNum(int updateSequenceNum) {
  17125. this.updateSequenceNum = updateSequenceNum;
  17126. setUpdateSequenceNumIsSet(true);
  17127. }
  17128. /** Returns true if field updateSequenceNum is set (has been asigned a value) and false otherwise */
  17129. public boolean isSetUpdateSequenceNum() {
  17130. return __isset_vector[__UPDATESEQUENCENUM_ISSET_ID];
  17131. }
  17132. public void setUpdateSequenceNumIsSet(boolean value) {
  17133. __isset_vector[__UPDATESEQUENCENUM_ISSET_ID] = value;
  17134. }
  17135. public void setWithResourcesData(boolean withResourcesData) {
  17136. this.withResourcesData = withResourcesData;
  17137. setWithResourcesDataIsSet(true);
  17138. }
  17139. /** Returns true if field withResourcesData is set (has been asigned a value) and false otherwise */
  17140. public boolean isSetWithResourcesData() {
  17141. return __isset_vector[__WITHRESOURCESDATA_ISSET_ID];
  17142. }
  17143. public void setWithResourcesDataIsSet(boolean value) {
  17144. __isset_vector[__WITHRESOURCESDATA_ISSET_ID] = value;
  17145. }
  17146. public void setWithResourcesRecognition(boolean withResourcesRecognition) {
  17147. this.withResourcesRecognition = withResourcesRecognition;
  17148. setWithResourcesRecognitionIsSet(true);
  17149. }
  17150. /** Returns true if field withResourcesRecognition is set (has been asigned a value) and false otherwise */
  17151. public boolean isSetWithResourcesRecognition() {
  17152. return __isset_vector[__WITHRESOURCESRECOGNITION_ISSET_ID];
  17153. }
  17154. public void setWithResourcesRecognitionIsSet(boolean value) {
  17155. __isset_vector[__WITHRESOURCESRECOGNITION_ISSET_ID] = value;
  17156. }
  17157. public void setWithResourcesAlternateData(boolean withResourcesAlternateData) {
  17158. this.withResourcesAlternateData = withResourcesAlternateData;
  17159. setWithResourcesAlternateDataIsSet(true);
  17160. }
  17161. /** Returns true if field withResourcesAlternateData is set (has been asigned a value) and false otherwise */
  17162. public boolean isSetWithResourcesAlternateData() {
  17163. return __isset_vector[__WITHRESOURCESALTERNATEDATA_ISSET_ID];
  17164. }
  17165. public void setWithResourcesAlternateDataIsSet(boolean value) {
  17166. __isset_vector[__WITHRESOURCESALTERNATEDATA_ISSET_ID] = value;
  17167. }
  17168. public int compareTo(getNoteVersion_args other) {
  17169. if (!getClass().equals(other.getClass())) {
  17170. return getClass().getName().compareTo(other.getClass().getName());
  17171. }
  17172. int lastComparison = 0;
  17173. getNoteVersion_args typedOther = (getNoteVersion_args)other;
  17174. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  17175. if (lastComparison != 0) {
  17176. return lastComparison;
  17177. }
  17178. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  17179. if (lastComparison != 0) {
  17180. return lastComparison;
  17181. }
  17182. }
  17183. lastComparison = Boolean.valueOf(isSetNoteGuid()).compareTo(typedOther.isSetNoteGuid());
  17184. if (lastComparison != 0) {
  17185. return lastComparison;
  17186. }
  17187. if (isSetNoteGuid()) { lastComparison = TBaseHelper.compareTo(this.noteGuid, typedOther.noteGuid);
  17188. if (lastComparison != 0) {
  17189. return lastComparison;
  17190. }
  17191. }
  17192. lastComparison = Boolean.valueOf(isSetUpdateSequenceNum()).compareTo(typedOther.isSetUpdateSequenceNum());
  17193. if (lastComparison != 0) {
  17194. return lastComparison;
  17195. }
  17196. if (isSetUpdateSequenceNum()) { lastComparison = TBaseHelper.compareTo(this.updateSequenceNum, typedOther.updateSequenceNum);
  17197. if (lastComparison != 0) {
  17198. return lastComparison;
  17199. }
  17200. }
  17201. lastComparison = Boolean.valueOf(isSetWithResourcesData()).compareTo(typedOther.isSetWithResourcesData());
  17202. if (lastComparison != 0) {
  17203. return lastComparison;
  17204. }
  17205. if (isSetWithResourcesData()) { lastComparison = TBaseHelper.compareTo(this.withResourcesData, typedOther.withResourcesData);
  17206. if (lastComparison != 0) {
  17207. return lastComparison;
  17208. }
  17209. }
  17210. lastComparison = Boolean.valueOf(isSetWithResourcesRecognition()).compareTo(typedOther.isSetWithResourcesRecognition());
  17211. if (lastComparison != 0) {
  17212. return lastComparison;
  17213. }
  17214. if (isSetWithResourcesRecognition()) { lastComparison = TBaseHelper.compareTo(this.withResourcesRecognition, typedOther.withResourcesRecognition);
  17215. if (lastComparison != 0) {
  17216. return lastComparison;
  17217. }
  17218. }
  17219. lastComparison = Boolean.valueOf(isSetWithResourcesAlternateData()).compareTo(typedOther.isSetWithResourcesAlternateData());
  17220. if (lastComparison != 0) {
  17221. return lastComparison;
  17222. }
  17223. if (isSetWithResourcesAlternateData()) { lastComparison = TBaseHelper.compareTo(this.withResourcesAlternateData, typedOther.withResourcesAlternateData);
  17224. if (lastComparison != 0) {
  17225. return lastComparison;
  17226. }
  17227. }
  17228. return 0;
  17229. }
  17230. public void read(TProtocol iprot) throws TException {
  17231. TField field;
  17232. iprot.readStructBegin();
  17233. while (true)
  17234. {
  17235. field = iprot.readFieldBegin();
  17236. if (field.type == TType.STOP) {
  17237. break;
  17238. }
  17239. switch (field.id) {
  17240. case 1: // AUTHENTICATION_TOKEN
  17241. if (field.type == TType.STRING) {
  17242. this.authenticationToken = iprot.readString();
  17243. } else {
  17244. TProtocolUtil.skip(iprot, field.type);
  17245. }
  17246. break;
  17247. case 2: // NOTE_GUID
  17248. if (field.type == TType.STRING) {
  17249. this.noteGuid = iprot.readString();
  17250. } else {
  17251. TProtocolUtil.skip(iprot, field.type);
  17252. }
  17253. break;
  17254. case 3: // UPDATE_SEQUENCE_NUM
  17255. if (field.type == TType.I32) {
  17256. this.updateSequenceNum = iprot.readI32();
  17257. setUpdateSequenceNumIsSet(true);
  17258. } else {
  17259. TProtocolUtil.skip(iprot, field.type);
  17260. }
  17261. break;
  17262. case 4: // WITH_RESOURCES_DATA
  17263. if (field.type == TType.BOOL) {
  17264. this.withResourcesData = iprot.readBool();
  17265. setWithResourcesDataIsSet(true);
  17266. } else {
  17267. TProtocolUtil.skip(iprot, field.type);
  17268. }
  17269. break;
  17270. case 5: // WITH_RESOURCES_RECOGNITION
  17271. if (field.type == TType.BOOL) {
  17272. this.withResourcesRecognition = iprot.readBool();
  17273. setWithResourcesRecognitionIsSet(true);
  17274. } else {
  17275. TProtocolUtil.skip(iprot, field.type);
  17276. }
  17277. break;
  17278. case 6: // WITH_RESOURCES_ALTERNATE_DATA
  17279. if (field.type == TType.BOOL) {
  17280. this.withResourcesAlternateData = iprot.readBool();
  17281. setWithResourcesAlternateDataIsSet(true);
  17282. } else {
  17283. TProtocolUtil.skip(iprot, field.type);
  17284. }
  17285. break;
  17286. default:
  17287. TProtocolUtil.skip(iprot, field.type);
  17288. }
  17289. iprot.readFieldEnd();
  17290. }
  17291. iprot.readStructEnd();
  17292. validate();
  17293. }
  17294. public void write(TProtocol oprot) throws TException {
  17295. validate();
  17296. oprot.writeStructBegin(STRUCT_DESC);
  17297. if (this.authenticationToken != null) {
  17298. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  17299. oprot.writeString(this.authenticationToken);
  17300. oprot.writeFieldEnd();
  17301. }
  17302. if (this.noteGuid != null) {
  17303. oprot.writeFieldBegin(NOTE_GUID_FIELD_DESC);
  17304. oprot.writeString(this.noteGuid);
  17305. oprot.writeFieldEnd();
  17306. }
  17307. oprot.writeFieldBegin(UPDATE_SEQUENCE_NUM_FIELD_DESC);
  17308. oprot.writeI32(this.updateSequenceNum);
  17309. oprot.writeFieldEnd();
  17310. oprot.writeFieldBegin(WITH_RESOURCES_DATA_FIELD_DESC);
  17311. oprot.writeBool(this.withResourcesData);
  17312. oprot.writeFieldEnd();
  17313. oprot.writeFieldBegin(WITH_RESOURCES_RECOGNITION_FIELD_DESC);
  17314. oprot.writeBool(this.withResourcesRecognition);
  17315. oprot.writeFieldEnd();
  17316. oprot.writeFieldBegin(WITH_RESOURCES_ALTERNATE_DATA_FIELD_DESC);
  17317. oprot.writeBool(this.withResourcesAlternateData);
  17318. oprot.writeFieldEnd();
  17319. oprot.writeFieldStop();
  17320. oprot.writeStructEnd();
  17321. }
  17322. public void validate() throws TException {
  17323. // check for required fields
  17324. }
  17325. }
  17326. private static class getNoteVersion_result implements TBase<getNoteVersion_result>, java.io.Serializable, Cloneable {
  17327. private static final TStruct STRUCT_DESC = new TStruct("getNoteVersion_result");
  17328. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  17329. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  17330. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  17331. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  17332. private com.evernote.edam.type.Note success;
  17333. private com.evernote.edam.error.EDAMUserException userException;
  17334. private com.evernote.edam.error.EDAMSystemException systemException;
  17335. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  17336. // isset id assignments
  17337. public getNoteVersion_result() {
  17338. }
  17339. /**
  17340. * Performs a deep copy on <i>other</i>.
  17341. */
  17342. public getNoteVersion_result(getNoteVersion_result other) {
  17343. if (other.isSetSuccess()) {
  17344. this.success = new com.evernote.edam.type.Note(other.success);
  17345. }
  17346. if (other.isSetUserException()) {
  17347. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  17348. }
  17349. if (other.isSetSystemException()) {
  17350. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  17351. }
  17352. if (other.isSetNotFoundException()) {
  17353. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  17354. }
  17355. }
  17356. public getNoteVersion_result deepCopy() {
  17357. return new getNoteVersion_result(this);
  17358. }
  17359. public void clear() {
  17360. this.success = null;
  17361. this.userException = null;
  17362. this.systemException = null;
  17363. this.notFoundException = null;
  17364. }
  17365. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  17366. public boolean isSetSuccess() {
  17367. return this.success != null;
  17368. }
  17369. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  17370. public boolean isSetUserException() {
  17371. return this.userException != null;
  17372. }
  17373. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  17374. public boolean isSetSystemException() {
  17375. return this.systemException != null;
  17376. }
  17377. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  17378. public boolean isSetNotFoundException() {
  17379. return this.notFoundException != null;
  17380. }
  17381. public int compareTo(getNoteVersion_result other) {
  17382. if (!getClass().equals(other.getClass())) {
  17383. return getClass().getName().compareTo(other.getClass().getName());
  17384. }
  17385. int lastComparison = 0;
  17386. getNoteVersion_result typedOther = (getNoteVersion_result)other;
  17387. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  17388. if (lastComparison != 0) {
  17389. return lastComparison;
  17390. }
  17391. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  17392. if (lastComparison != 0) {
  17393. return lastComparison;
  17394. }
  17395. }
  17396. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  17397. if (lastComparison != 0) {
  17398. return lastComparison;
  17399. }
  17400. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  17401. if (lastComparison != 0) {
  17402. return lastComparison;
  17403. }
  17404. }
  17405. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  17406. if (lastComparison != 0) {
  17407. return lastComparison;
  17408. }
  17409. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  17410. if (lastComparison != 0) {
  17411. return lastComparison;
  17412. }
  17413. }
  17414. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  17415. if (lastComparison != 0) {
  17416. return lastComparison;
  17417. }
  17418. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  17419. if (lastComparison != 0) {
  17420. return lastComparison;
  17421. }
  17422. }
  17423. return 0;
  17424. }
  17425. public void read(TProtocol iprot) throws TException {
  17426. TField field;
  17427. iprot.readStructBegin();
  17428. while (true)
  17429. {
  17430. field = iprot.readFieldBegin();
  17431. if (field.type == TType.STOP) {
  17432. break;
  17433. }
  17434. switch (field.id) {
  17435. case 0: // SUCCESS
  17436. if (field.type == TType.STRUCT) {
  17437. this.success = new com.evernote.edam.type.Note();
  17438. this.success.read(iprot);
  17439. } else {
  17440. TProtocolUtil.skip(iprot, field.type);
  17441. }
  17442. break;
  17443. case 1: // USER_EXCEPTION
  17444. if (field.type == TType.STRUCT) {
  17445. this.userException = new com.evernote.edam.error.EDAMUserException();
  17446. this.userException.read(iprot);
  17447. } else {
  17448. TProtocolUtil.skip(iprot, field.type);
  17449. }
  17450. break;
  17451. case 2: // SYSTEM_EXCEPTION
  17452. if (field.type == TType.STRUCT) {
  17453. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  17454. this.systemException.read(iprot);
  17455. } else {
  17456. TProtocolUtil.skip(iprot, field.type);
  17457. }
  17458. break;
  17459. case 3: // NOT_FOUND_EXCEPTION
  17460. if (field.type == TType.STRUCT) {
  17461. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  17462. this.notFoundException.read(iprot);
  17463. } else {
  17464. TProtocolUtil.skip(iprot, field.type);
  17465. }
  17466. break;
  17467. default:
  17468. TProtocolUtil.skip(iprot, field.type);
  17469. }
  17470. iprot.readFieldEnd();
  17471. }
  17472. iprot.readStructEnd();
  17473. validate();
  17474. }
  17475. public void write(TProtocol oprot) throws TException {
  17476. oprot.writeStructBegin(STRUCT_DESC);
  17477. if (this.isSetSuccess()) {
  17478. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  17479. this.success.write(oprot);
  17480. oprot.writeFieldEnd();
  17481. } else if (this.isSetUserException()) {
  17482. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  17483. this.userException.write(oprot);
  17484. oprot.writeFieldEnd();
  17485. } else if (this.isSetSystemException()) {
  17486. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  17487. this.systemException.write(oprot);
  17488. oprot.writeFieldEnd();
  17489. } else if (this.isSetNotFoundException()) {
  17490. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  17491. this.notFoundException.write(oprot);
  17492. oprot.writeFieldEnd();
  17493. }
  17494. oprot.writeFieldStop();
  17495. oprot.writeStructEnd();
  17496. }
  17497. public void validate() throws TException {
  17498. // check for required fields
  17499. }
  17500. }
  17501. private static class getResource_args implements TBase<getResource_args>, java.io.Serializable, Cloneable {
  17502. private static final TStruct STRUCT_DESC = new TStruct("getResource_args");
  17503. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  17504. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  17505. private static final TField WITH_DATA_FIELD_DESC = new TField("withData", TType.BOOL, (short)3);
  17506. private static final TField WITH_RECOGNITION_FIELD_DESC = new TField("withRecognition", TType.BOOL, (short)4);
  17507. private static final TField WITH_ATTRIBUTES_FIELD_DESC = new TField("withAttributes", TType.BOOL, (short)5);
  17508. private static final TField WITH_ALTERNATE_DATA_FIELD_DESC = new TField("withAlternateData", TType.BOOL, (short)6);
  17509. private String authenticationToken;
  17510. private String guid;
  17511. private boolean withData;
  17512. private boolean withRecognition;
  17513. private boolean withAttributes;
  17514. private boolean withAlternateData;
  17515. // isset id assignments
  17516. private static final int __WITHDATA_ISSET_ID = 0;
  17517. private static final int __WITHRECOGNITION_ISSET_ID = 1;
  17518. private static final int __WITHATTRIBUTES_ISSET_ID = 2;
  17519. private static final int __WITHALTERNATEDATA_ISSET_ID = 3;
  17520. private boolean[] __isset_vector = new boolean[4];
  17521. public getResource_args() {
  17522. }
  17523. /**
  17524. * Performs a deep copy on <i>other</i>.
  17525. */
  17526. public getResource_args(getResource_args other) {
  17527. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  17528. if (other.isSetAuthenticationToken()) {
  17529. this.authenticationToken = other.authenticationToken;
  17530. }
  17531. if (other.isSetGuid()) {
  17532. this.guid = other.guid;
  17533. }
  17534. this.withData = other.withData;
  17535. this.withRecognition = other.withRecognition;
  17536. this.withAttributes = other.withAttributes;
  17537. this.withAlternateData = other.withAlternateData;
  17538. }
  17539. public getResource_args deepCopy() {
  17540. return new getResource_args(this);
  17541. }
  17542. public void clear() {
  17543. this.authenticationToken = null;
  17544. this.guid = null;
  17545. setWithDataIsSet(false);
  17546. this.withData = false;
  17547. setWithRecognitionIsSet(false);
  17548. this.withRecognition = false;
  17549. setWithAttributesIsSet(false);
  17550. this.withAttributes = false;
  17551. setWithAlternateDataIsSet(false);
  17552. this.withAlternateData = false;
  17553. }
  17554. public void setAuthenticationToken(String authenticationToken) {
  17555. this.authenticationToken = authenticationToken;
  17556. }
  17557. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  17558. public boolean isSetAuthenticationToken() {
  17559. return this.authenticationToken != null;
  17560. }
  17561. public void setGuid(String guid) {
  17562. this.guid = guid;
  17563. }
  17564. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  17565. public boolean isSetGuid() {
  17566. return this.guid != null;
  17567. }
  17568. public void setWithData(boolean withData) {
  17569. this.withData = withData;
  17570. setWithDataIsSet(true);
  17571. }
  17572. /** Returns true if field withData is set (has been asigned a value) and false otherwise */
  17573. public boolean isSetWithData() {
  17574. return __isset_vector[__WITHDATA_ISSET_ID];
  17575. }
  17576. public void setWithDataIsSet(boolean value) {
  17577. __isset_vector[__WITHDATA_ISSET_ID] = value;
  17578. }
  17579. public void setWithRecognition(boolean withRecognition) {
  17580. this.withRecognition = withRecognition;
  17581. setWithRecognitionIsSet(true);
  17582. }
  17583. /** Returns true if field withRecognition is set (has been asigned a value) and false otherwise */
  17584. public boolean isSetWithRecognition() {
  17585. return __isset_vector[__WITHRECOGNITION_ISSET_ID];
  17586. }
  17587. public void setWithRecognitionIsSet(boolean value) {
  17588. __isset_vector[__WITHRECOGNITION_ISSET_ID] = value;
  17589. }
  17590. public void setWithAttributes(boolean withAttributes) {
  17591. this.withAttributes = withAttributes;
  17592. setWithAttributesIsSet(true);
  17593. }
  17594. /** Returns true if field withAttributes is set (has been asigned a value) and false otherwise */
  17595. public boolean isSetWithAttributes() {
  17596. return __isset_vector[__WITHATTRIBUTES_ISSET_ID];
  17597. }
  17598. public void setWithAttributesIsSet(boolean value) {
  17599. __isset_vector[__WITHATTRIBUTES_ISSET_ID] = value;
  17600. }
  17601. public void setWithAlternateData(boolean withAlternateData) {
  17602. this.withAlternateData = withAlternateData;
  17603. setWithAlternateDataIsSet(true);
  17604. }
  17605. /** Returns true if field withAlternateData is set (has been asigned a value) and false otherwise */
  17606. public boolean isSetWithAlternateData() {
  17607. return __isset_vector[__WITHALTERNATEDATA_ISSET_ID];
  17608. }
  17609. public void setWithAlternateDataIsSet(boolean value) {
  17610. __isset_vector[__WITHALTERNATEDATA_ISSET_ID] = value;
  17611. }
  17612. public int compareTo(getResource_args other) {
  17613. if (!getClass().equals(other.getClass())) {
  17614. return getClass().getName().compareTo(other.getClass().getName());
  17615. }
  17616. int lastComparison = 0;
  17617. getResource_args typedOther = (getResource_args)other;
  17618. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  17619. if (lastComparison != 0) {
  17620. return lastComparison;
  17621. }
  17622. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  17623. if (lastComparison != 0) {
  17624. return lastComparison;
  17625. }
  17626. }
  17627. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  17628. if (lastComparison != 0) {
  17629. return lastComparison;
  17630. }
  17631. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  17632. if (lastComparison != 0) {
  17633. return lastComparison;
  17634. }
  17635. }
  17636. lastComparison = Boolean.valueOf(isSetWithData()).compareTo(typedOther.isSetWithData());
  17637. if (lastComparison != 0) {
  17638. return lastComparison;
  17639. }
  17640. if (isSetWithData()) { lastComparison = TBaseHelper.compareTo(this.withData, typedOther.withData);
  17641. if (lastComparison != 0) {
  17642. return lastComparison;
  17643. }
  17644. }
  17645. lastComparison = Boolean.valueOf(isSetWithRecognition()).compareTo(typedOther.isSetWithRecognition());
  17646. if (lastComparison != 0) {
  17647. return lastComparison;
  17648. }
  17649. if (isSetWithRecognition()) { lastComparison = TBaseHelper.compareTo(this.withRecognition, typedOther.withRecognition);
  17650. if (lastComparison != 0) {
  17651. return lastComparison;
  17652. }
  17653. }
  17654. lastComparison = Boolean.valueOf(isSetWithAttributes()).compareTo(typedOther.isSetWithAttributes());
  17655. if (lastComparison != 0) {
  17656. return lastComparison;
  17657. }
  17658. if (isSetWithAttributes()) { lastComparison = TBaseHelper.compareTo(this.withAttributes, typedOther.withAttributes);
  17659. if (lastComparison != 0) {
  17660. return lastComparison;
  17661. }
  17662. }
  17663. lastComparison = Boolean.valueOf(isSetWithAlternateData()).compareTo(typedOther.isSetWithAlternateData());
  17664. if (lastComparison != 0) {
  17665. return lastComparison;
  17666. }
  17667. if (isSetWithAlternateData()) { lastComparison = TBaseHelper.compareTo(this.withAlternateData, typedOther.withAlternateData);
  17668. if (lastComparison != 0) {
  17669. return lastComparison;
  17670. }
  17671. }
  17672. return 0;
  17673. }
  17674. public void read(TProtocol iprot) throws TException {
  17675. TField field;
  17676. iprot.readStructBegin();
  17677. while (true)
  17678. {
  17679. field = iprot.readFieldBegin();
  17680. if (field.type == TType.STOP) {
  17681. break;
  17682. }
  17683. switch (field.id) {
  17684. case 1: // AUTHENTICATION_TOKEN
  17685. if (field.type == TType.STRING) {
  17686. this.authenticationToken = iprot.readString();
  17687. } else {
  17688. TProtocolUtil.skip(iprot, field.type);
  17689. }
  17690. break;
  17691. case 2: // GUID
  17692. if (field.type == TType.STRING) {
  17693. this.guid = iprot.readString();
  17694. } else {
  17695. TProtocolUtil.skip(iprot, field.type);
  17696. }
  17697. break;
  17698. case 3: // WITH_DATA
  17699. if (field.type == TType.BOOL) {
  17700. this.withData = iprot.readBool();
  17701. setWithDataIsSet(true);
  17702. } else {
  17703. TProtocolUtil.skip(iprot, field.type);
  17704. }
  17705. break;
  17706. case 4: // WITH_RECOGNITION
  17707. if (field.type == TType.BOOL) {
  17708. this.withRecognition = iprot.readBool();
  17709. setWithRecognitionIsSet(true);
  17710. } else {
  17711. TProtocolUtil.skip(iprot, field.type);
  17712. }
  17713. break;
  17714. case 5: // WITH_ATTRIBUTES
  17715. if (field.type == TType.BOOL) {
  17716. this.withAttributes = iprot.readBool();
  17717. setWithAttributesIsSet(true);
  17718. } else {
  17719. TProtocolUtil.skip(iprot, field.type);
  17720. }
  17721. break;
  17722. case 6: // WITH_ALTERNATE_DATA
  17723. if (field.type == TType.BOOL) {
  17724. this.withAlternateData = iprot.readBool();
  17725. setWithAlternateDataIsSet(true);
  17726. } else {
  17727. TProtocolUtil.skip(iprot, field.type);
  17728. }
  17729. break;
  17730. default:
  17731. TProtocolUtil.skip(iprot, field.type);
  17732. }
  17733. iprot.readFieldEnd();
  17734. }
  17735. iprot.readStructEnd();
  17736. validate();
  17737. }
  17738. public void write(TProtocol oprot) throws TException {
  17739. validate();
  17740. oprot.writeStructBegin(STRUCT_DESC);
  17741. if (this.authenticationToken != null) {
  17742. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  17743. oprot.writeString(this.authenticationToken);
  17744. oprot.writeFieldEnd();
  17745. }
  17746. if (this.guid != null) {
  17747. oprot.writeFieldBegin(GUID_FIELD_DESC);
  17748. oprot.writeString(this.guid);
  17749. oprot.writeFieldEnd();
  17750. }
  17751. oprot.writeFieldBegin(WITH_DATA_FIELD_DESC);
  17752. oprot.writeBool(this.withData);
  17753. oprot.writeFieldEnd();
  17754. oprot.writeFieldBegin(WITH_RECOGNITION_FIELD_DESC);
  17755. oprot.writeBool(this.withRecognition);
  17756. oprot.writeFieldEnd();
  17757. oprot.writeFieldBegin(WITH_ATTRIBUTES_FIELD_DESC);
  17758. oprot.writeBool(this.withAttributes);
  17759. oprot.writeFieldEnd();
  17760. oprot.writeFieldBegin(WITH_ALTERNATE_DATA_FIELD_DESC);
  17761. oprot.writeBool(this.withAlternateData);
  17762. oprot.writeFieldEnd();
  17763. oprot.writeFieldStop();
  17764. oprot.writeStructEnd();
  17765. }
  17766. public void validate() throws TException {
  17767. // check for required fields
  17768. }
  17769. }
  17770. private static class getResource_result implements TBase<getResource_result>, java.io.Serializable, Cloneable {
  17771. private static final TStruct STRUCT_DESC = new TStruct("getResource_result");
  17772. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  17773. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  17774. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  17775. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  17776. private com.evernote.edam.type.Resource success;
  17777. private com.evernote.edam.error.EDAMUserException userException;
  17778. private com.evernote.edam.error.EDAMSystemException systemException;
  17779. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  17780. // isset id assignments
  17781. public getResource_result() {
  17782. }
  17783. /**
  17784. * Performs a deep copy on <i>other</i>.
  17785. */
  17786. public getResource_result(getResource_result other) {
  17787. if (other.isSetSuccess()) {
  17788. this.success = new com.evernote.edam.type.Resource(other.success);
  17789. }
  17790. if (other.isSetUserException()) {
  17791. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  17792. }
  17793. if (other.isSetSystemException()) {
  17794. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  17795. }
  17796. if (other.isSetNotFoundException()) {
  17797. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  17798. }
  17799. }
  17800. public getResource_result deepCopy() {
  17801. return new getResource_result(this);
  17802. }
  17803. public void clear() {
  17804. this.success = null;
  17805. this.userException = null;
  17806. this.systemException = null;
  17807. this.notFoundException = null;
  17808. }
  17809. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  17810. public boolean isSetSuccess() {
  17811. return this.success != null;
  17812. }
  17813. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  17814. public boolean isSetUserException() {
  17815. return this.userException != null;
  17816. }
  17817. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  17818. public boolean isSetSystemException() {
  17819. return this.systemException != null;
  17820. }
  17821. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  17822. public boolean isSetNotFoundException() {
  17823. return this.notFoundException != null;
  17824. }
  17825. public int compareTo(getResource_result other) {
  17826. if (!getClass().equals(other.getClass())) {
  17827. return getClass().getName().compareTo(other.getClass().getName());
  17828. }
  17829. int lastComparison = 0;
  17830. getResource_result typedOther = (getResource_result)other;
  17831. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  17832. if (lastComparison != 0) {
  17833. return lastComparison;
  17834. }
  17835. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  17836. if (lastComparison != 0) {
  17837. return lastComparison;
  17838. }
  17839. }
  17840. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  17841. if (lastComparison != 0) {
  17842. return lastComparison;
  17843. }
  17844. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  17845. if (lastComparison != 0) {
  17846. return lastComparison;
  17847. }
  17848. }
  17849. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  17850. if (lastComparison != 0) {
  17851. return lastComparison;
  17852. }
  17853. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  17854. if (lastComparison != 0) {
  17855. return lastComparison;
  17856. }
  17857. }
  17858. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  17859. if (lastComparison != 0) {
  17860. return lastComparison;
  17861. }
  17862. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  17863. if (lastComparison != 0) {
  17864. return lastComparison;
  17865. }
  17866. }
  17867. return 0;
  17868. }
  17869. public void read(TProtocol iprot) throws TException {
  17870. TField field;
  17871. iprot.readStructBegin();
  17872. while (true)
  17873. {
  17874. field = iprot.readFieldBegin();
  17875. if (field.type == TType.STOP) {
  17876. break;
  17877. }
  17878. switch (field.id) {
  17879. case 0: // SUCCESS
  17880. if (field.type == TType.STRUCT) {
  17881. this.success = new com.evernote.edam.type.Resource();
  17882. this.success.read(iprot);
  17883. } else {
  17884. TProtocolUtil.skip(iprot, field.type);
  17885. }
  17886. break;
  17887. case 1: // USER_EXCEPTION
  17888. if (field.type == TType.STRUCT) {
  17889. this.userException = new com.evernote.edam.error.EDAMUserException();
  17890. this.userException.read(iprot);
  17891. } else {
  17892. TProtocolUtil.skip(iprot, field.type);
  17893. }
  17894. break;
  17895. case 2: // SYSTEM_EXCEPTION
  17896. if (field.type == TType.STRUCT) {
  17897. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  17898. this.systemException.read(iprot);
  17899. } else {
  17900. TProtocolUtil.skip(iprot, field.type);
  17901. }
  17902. break;
  17903. case 3: // NOT_FOUND_EXCEPTION
  17904. if (field.type == TType.STRUCT) {
  17905. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  17906. this.notFoundException.read(iprot);
  17907. } else {
  17908. TProtocolUtil.skip(iprot, field.type);
  17909. }
  17910. break;
  17911. default:
  17912. TProtocolUtil.skip(iprot, field.type);
  17913. }
  17914. iprot.readFieldEnd();
  17915. }
  17916. iprot.readStructEnd();
  17917. validate();
  17918. }
  17919. public void write(TProtocol oprot) throws TException {
  17920. oprot.writeStructBegin(STRUCT_DESC);
  17921. if (this.isSetSuccess()) {
  17922. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  17923. this.success.write(oprot);
  17924. oprot.writeFieldEnd();
  17925. } else if (this.isSetUserException()) {
  17926. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  17927. this.userException.write(oprot);
  17928. oprot.writeFieldEnd();
  17929. } else if (this.isSetSystemException()) {
  17930. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  17931. this.systemException.write(oprot);
  17932. oprot.writeFieldEnd();
  17933. } else if (this.isSetNotFoundException()) {
  17934. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  17935. this.notFoundException.write(oprot);
  17936. oprot.writeFieldEnd();
  17937. }
  17938. oprot.writeFieldStop();
  17939. oprot.writeStructEnd();
  17940. }
  17941. public void validate() throws TException {
  17942. // check for required fields
  17943. }
  17944. }
  17945. private static class getResourceApplicationData_args implements TBase<getResourceApplicationData_args>, java.io.Serializable, Cloneable {
  17946. private static final TStruct STRUCT_DESC = new TStruct("getResourceApplicationData_args");
  17947. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  17948. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  17949. private String authenticationToken;
  17950. private String guid;
  17951. // isset id assignments
  17952. public getResourceApplicationData_args() {
  17953. }
  17954. /**
  17955. * Performs a deep copy on <i>other</i>.
  17956. */
  17957. public getResourceApplicationData_args(getResourceApplicationData_args other) {
  17958. if (other.isSetAuthenticationToken()) {
  17959. this.authenticationToken = other.authenticationToken;
  17960. }
  17961. if (other.isSetGuid()) {
  17962. this.guid = other.guid;
  17963. }
  17964. }
  17965. public getResourceApplicationData_args deepCopy() {
  17966. return new getResourceApplicationData_args(this);
  17967. }
  17968. public void clear() {
  17969. this.authenticationToken = null;
  17970. this.guid = null;
  17971. }
  17972. public void setAuthenticationToken(String authenticationToken) {
  17973. this.authenticationToken = authenticationToken;
  17974. }
  17975. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  17976. public boolean isSetAuthenticationToken() {
  17977. return this.authenticationToken != null;
  17978. }
  17979. public void setGuid(String guid) {
  17980. this.guid = guid;
  17981. }
  17982. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  17983. public boolean isSetGuid() {
  17984. return this.guid != null;
  17985. }
  17986. public int compareTo(getResourceApplicationData_args other) {
  17987. if (!getClass().equals(other.getClass())) {
  17988. return getClass().getName().compareTo(other.getClass().getName());
  17989. }
  17990. int lastComparison = 0;
  17991. getResourceApplicationData_args typedOther = (getResourceApplicationData_args)other;
  17992. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  17993. if (lastComparison != 0) {
  17994. return lastComparison;
  17995. }
  17996. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  17997. if (lastComparison != 0) {
  17998. return lastComparison;
  17999. }
  18000. }
  18001. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  18002. if (lastComparison != 0) {
  18003. return lastComparison;
  18004. }
  18005. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  18006. if (lastComparison != 0) {
  18007. return lastComparison;
  18008. }
  18009. }
  18010. return 0;
  18011. }
  18012. public void read(TProtocol iprot) throws TException {
  18013. TField field;
  18014. iprot.readStructBegin();
  18015. while (true)
  18016. {
  18017. field = iprot.readFieldBegin();
  18018. if (field.type == TType.STOP) {
  18019. break;
  18020. }
  18021. switch (field.id) {
  18022. case 1: // AUTHENTICATION_TOKEN
  18023. if (field.type == TType.STRING) {
  18024. this.authenticationToken = iprot.readString();
  18025. } else {
  18026. TProtocolUtil.skip(iprot, field.type);
  18027. }
  18028. break;
  18029. case 2: // GUID
  18030. if (field.type == TType.STRING) {
  18031. this.guid = iprot.readString();
  18032. } else {
  18033. TProtocolUtil.skip(iprot, field.type);
  18034. }
  18035. break;
  18036. default:
  18037. TProtocolUtil.skip(iprot, field.type);
  18038. }
  18039. iprot.readFieldEnd();
  18040. }
  18041. iprot.readStructEnd();
  18042. validate();
  18043. }
  18044. public void write(TProtocol oprot) throws TException {
  18045. validate();
  18046. oprot.writeStructBegin(STRUCT_DESC);
  18047. if (this.authenticationToken != null) {
  18048. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  18049. oprot.writeString(this.authenticationToken);
  18050. oprot.writeFieldEnd();
  18051. }
  18052. if (this.guid != null) {
  18053. oprot.writeFieldBegin(GUID_FIELD_DESC);
  18054. oprot.writeString(this.guid);
  18055. oprot.writeFieldEnd();
  18056. }
  18057. oprot.writeFieldStop();
  18058. oprot.writeStructEnd();
  18059. }
  18060. public void validate() throws TException {
  18061. // check for required fields
  18062. }
  18063. }
  18064. private static class getResourceApplicationData_result implements TBase<getResourceApplicationData_result>, java.io.Serializable, Cloneable {
  18065. private static final TStruct STRUCT_DESC = new TStruct("getResourceApplicationData_result");
  18066. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  18067. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  18068. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  18069. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  18070. private com.evernote.edam.type.LazyMap success;
  18071. private com.evernote.edam.error.EDAMUserException userException;
  18072. private com.evernote.edam.error.EDAMSystemException systemException;
  18073. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  18074. // isset id assignments
  18075. public getResourceApplicationData_result() {
  18076. }
  18077. /**
  18078. * Performs a deep copy on <i>other</i>.
  18079. */
  18080. public getResourceApplicationData_result(getResourceApplicationData_result other) {
  18081. if (other.isSetSuccess()) {
  18082. this.success = new com.evernote.edam.type.LazyMap(other.success);
  18083. }
  18084. if (other.isSetUserException()) {
  18085. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  18086. }
  18087. if (other.isSetSystemException()) {
  18088. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  18089. }
  18090. if (other.isSetNotFoundException()) {
  18091. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  18092. }
  18093. }
  18094. public getResourceApplicationData_result deepCopy() {
  18095. return new getResourceApplicationData_result(this);
  18096. }
  18097. public void clear() {
  18098. this.success = null;
  18099. this.userException = null;
  18100. this.systemException = null;
  18101. this.notFoundException = null;
  18102. }
  18103. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  18104. public boolean isSetSuccess() {
  18105. return this.success != null;
  18106. }
  18107. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  18108. public boolean isSetUserException() {
  18109. return this.userException != null;
  18110. }
  18111. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  18112. public boolean isSetSystemException() {
  18113. return this.systemException != null;
  18114. }
  18115. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  18116. public boolean isSetNotFoundException() {
  18117. return this.notFoundException != null;
  18118. }
  18119. public int compareTo(getResourceApplicationData_result other) {
  18120. if (!getClass().equals(other.getClass())) {
  18121. return getClass().getName().compareTo(other.getClass().getName());
  18122. }
  18123. int lastComparison = 0;
  18124. getResourceApplicationData_result typedOther = (getResourceApplicationData_result)other;
  18125. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  18126. if (lastComparison != 0) {
  18127. return lastComparison;
  18128. }
  18129. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  18130. if (lastComparison != 0) {
  18131. return lastComparison;
  18132. }
  18133. }
  18134. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  18135. if (lastComparison != 0) {
  18136. return lastComparison;
  18137. }
  18138. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  18139. if (lastComparison != 0) {
  18140. return lastComparison;
  18141. }
  18142. }
  18143. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  18144. if (lastComparison != 0) {
  18145. return lastComparison;
  18146. }
  18147. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  18148. if (lastComparison != 0) {
  18149. return lastComparison;
  18150. }
  18151. }
  18152. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  18153. if (lastComparison != 0) {
  18154. return lastComparison;
  18155. }
  18156. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  18157. if (lastComparison != 0) {
  18158. return lastComparison;
  18159. }
  18160. }
  18161. return 0;
  18162. }
  18163. public void read(TProtocol iprot) throws TException {
  18164. TField field;
  18165. iprot.readStructBegin();
  18166. while (true)
  18167. {
  18168. field = iprot.readFieldBegin();
  18169. if (field.type == TType.STOP) {
  18170. break;
  18171. }
  18172. switch (field.id) {
  18173. case 0: // SUCCESS
  18174. if (field.type == TType.STRUCT) {
  18175. this.success = new com.evernote.edam.type.LazyMap();
  18176. this.success.read(iprot);
  18177. } else {
  18178. TProtocolUtil.skip(iprot, field.type);
  18179. }
  18180. break;
  18181. case 1: // USER_EXCEPTION
  18182. if (field.type == TType.STRUCT) {
  18183. this.userException = new com.evernote.edam.error.EDAMUserException();
  18184. this.userException.read(iprot);
  18185. } else {
  18186. TProtocolUtil.skip(iprot, field.type);
  18187. }
  18188. break;
  18189. case 2: // SYSTEM_EXCEPTION
  18190. if (field.type == TType.STRUCT) {
  18191. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  18192. this.systemException.read(iprot);
  18193. } else {
  18194. TProtocolUtil.skip(iprot, field.type);
  18195. }
  18196. break;
  18197. case 3: // NOT_FOUND_EXCEPTION
  18198. if (field.type == TType.STRUCT) {
  18199. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  18200. this.notFoundException.read(iprot);
  18201. } else {
  18202. TProtocolUtil.skip(iprot, field.type);
  18203. }
  18204. break;
  18205. default:
  18206. TProtocolUtil.skip(iprot, field.type);
  18207. }
  18208. iprot.readFieldEnd();
  18209. }
  18210. iprot.readStructEnd();
  18211. validate();
  18212. }
  18213. public void write(TProtocol oprot) throws TException {
  18214. oprot.writeStructBegin(STRUCT_DESC);
  18215. if (this.isSetSuccess()) {
  18216. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  18217. this.success.write(oprot);
  18218. oprot.writeFieldEnd();
  18219. } else if (this.isSetUserException()) {
  18220. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  18221. this.userException.write(oprot);
  18222. oprot.writeFieldEnd();
  18223. } else if (this.isSetSystemException()) {
  18224. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  18225. this.systemException.write(oprot);
  18226. oprot.writeFieldEnd();
  18227. } else if (this.isSetNotFoundException()) {
  18228. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  18229. this.notFoundException.write(oprot);
  18230. oprot.writeFieldEnd();
  18231. }
  18232. oprot.writeFieldStop();
  18233. oprot.writeStructEnd();
  18234. }
  18235. public void validate() throws TException {
  18236. // check for required fields
  18237. }
  18238. }
  18239. private static class getResourceApplicationDataEntry_args implements TBase<getResourceApplicationDataEntry_args>, java.io.Serializable, Cloneable {
  18240. private static final TStruct STRUCT_DESC = new TStruct("getResourceApplicationDataEntry_args");
  18241. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  18242. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  18243. private static final TField KEY_FIELD_DESC = new TField("key", TType.STRING, (short)3);
  18244. private String authenticationToken;
  18245. private String guid;
  18246. private String key;
  18247. // isset id assignments
  18248. public getResourceApplicationDataEntry_args() {
  18249. }
  18250. /**
  18251. * Performs a deep copy on <i>other</i>.
  18252. */
  18253. public getResourceApplicationDataEntry_args(getResourceApplicationDataEntry_args other) {
  18254. if (other.isSetAuthenticationToken()) {
  18255. this.authenticationToken = other.authenticationToken;
  18256. }
  18257. if (other.isSetGuid()) {
  18258. this.guid = other.guid;
  18259. }
  18260. if (other.isSetKey()) {
  18261. this.key = other.key;
  18262. }
  18263. }
  18264. public getResourceApplicationDataEntry_args deepCopy() {
  18265. return new getResourceApplicationDataEntry_args(this);
  18266. }
  18267. public void clear() {
  18268. this.authenticationToken = null;
  18269. this.guid = null;
  18270. this.key = null;
  18271. }
  18272. public void setAuthenticationToken(String authenticationToken) {
  18273. this.authenticationToken = authenticationToken;
  18274. }
  18275. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  18276. public boolean isSetAuthenticationToken() {
  18277. return this.authenticationToken != null;
  18278. }
  18279. public void setGuid(String guid) {
  18280. this.guid = guid;
  18281. }
  18282. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  18283. public boolean isSetGuid() {
  18284. return this.guid != null;
  18285. }
  18286. public void setKey(String key) {
  18287. this.key = key;
  18288. }
  18289. /** Returns true if field key is set (has been asigned a value) and false otherwise */
  18290. public boolean isSetKey() {
  18291. return this.key != null;
  18292. }
  18293. public int compareTo(getResourceApplicationDataEntry_args other) {
  18294. if (!getClass().equals(other.getClass())) {
  18295. return getClass().getName().compareTo(other.getClass().getName());
  18296. }
  18297. int lastComparison = 0;
  18298. getResourceApplicationDataEntry_args typedOther = (getResourceApplicationDataEntry_args)other;
  18299. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  18300. if (lastComparison != 0) {
  18301. return lastComparison;
  18302. }
  18303. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  18304. if (lastComparison != 0) {
  18305. return lastComparison;
  18306. }
  18307. }
  18308. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  18309. if (lastComparison != 0) {
  18310. return lastComparison;
  18311. }
  18312. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  18313. if (lastComparison != 0) {
  18314. return lastComparison;
  18315. }
  18316. }
  18317. lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey());
  18318. if (lastComparison != 0) {
  18319. return lastComparison;
  18320. }
  18321. if (isSetKey()) { lastComparison = TBaseHelper.compareTo(this.key, typedOther.key);
  18322. if (lastComparison != 0) {
  18323. return lastComparison;
  18324. }
  18325. }
  18326. return 0;
  18327. }
  18328. public void read(TProtocol iprot) throws TException {
  18329. TField field;
  18330. iprot.readStructBegin();
  18331. while (true)
  18332. {
  18333. field = iprot.readFieldBegin();
  18334. if (field.type == TType.STOP) {
  18335. break;
  18336. }
  18337. switch (field.id) {
  18338. case 1: // AUTHENTICATION_TOKEN
  18339. if (field.type == TType.STRING) {
  18340. this.authenticationToken = iprot.readString();
  18341. } else {
  18342. TProtocolUtil.skip(iprot, field.type);
  18343. }
  18344. break;
  18345. case 2: // GUID
  18346. if (field.type == TType.STRING) {
  18347. this.guid = iprot.readString();
  18348. } else {
  18349. TProtocolUtil.skip(iprot, field.type);
  18350. }
  18351. break;
  18352. case 3: // KEY
  18353. if (field.type == TType.STRING) {
  18354. this.key = iprot.readString();
  18355. } else {
  18356. TProtocolUtil.skip(iprot, field.type);
  18357. }
  18358. break;
  18359. default:
  18360. TProtocolUtil.skip(iprot, field.type);
  18361. }
  18362. iprot.readFieldEnd();
  18363. }
  18364. iprot.readStructEnd();
  18365. validate();
  18366. }
  18367. public void write(TProtocol oprot) throws TException {
  18368. validate();
  18369. oprot.writeStructBegin(STRUCT_DESC);
  18370. if (this.authenticationToken != null) {
  18371. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  18372. oprot.writeString(this.authenticationToken);
  18373. oprot.writeFieldEnd();
  18374. }
  18375. if (this.guid != null) {
  18376. oprot.writeFieldBegin(GUID_FIELD_DESC);
  18377. oprot.writeString(this.guid);
  18378. oprot.writeFieldEnd();
  18379. }
  18380. if (this.key != null) {
  18381. oprot.writeFieldBegin(KEY_FIELD_DESC);
  18382. oprot.writeString(this.key);
  18383. oprot.writeFieldEnd();
  18384. }
  18385. oprot.writeFieldStop();
  18386. oprot.writeStructEnd();
  18387. }
  18388. public void validate() throws TException {
  18389. // check for required fields
  18390. }
  18391. }
  18392. private static class getResourceApplicationDataEntry_result implements TBase<getResourceApplicationDataEntry_result>, java.io.Serializable, Cloneable {
  18393. private static final TStruct STRUCT_DESC = new TStruct("getResourceApplicationDataEntry_result");
  18394. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRING, (short)0);
  18395. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  18396. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  18397. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  18398. private String success;
  18399. private com.evernote.edam.error.EDAMUserException userException;
  18400. private com.evernote.edam.error.EDAMSystemException systemException;
  18401. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  18402. // isset id assignments
  18403. public getResourceApplicationDataEntry_result() {
  18404. }
  18405. /**
  18406. * Performs a deep copy on <i>other</i>.
  18407. */
  18408. public getResourceApplicationDataEntry_result(getResourceApplicationDataEntry_result other) {
  18409. if (other.isSetSuccess()) {
  18410. this.success = other.success;
  18411. }
  18412. if (other.isSetUserException()) {
  18413. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  18414. }
  18415. if (other.isSetSystemException()) {
  18416. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  18417. }
  18418. if (other.isSetNotFoundException()) {
  18419. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  18420. }
  18421. }
  18422. public getResourceApplicationDataEntry_result deepCopy() {
  18423. return new getResourceApplicationDataEntry_result(this);
  18424. }
  18425. public void clear() {
  18426. this.success = null;
  18427. this.userException = null;
  18428. this.systemException = null;
  18429. this.notFoundException = null;
  18430. }
  18431. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  18432. public boolean isSetSuccess() {
  18433. return this.success != null;
  18434. }
  18435. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  18436. public boolean isSetUserException() {
  18437. return this.userException != null;
  18438. }
  18439. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  18440. public boolean isSetSystemException() {
  18441. return this.systemException != null;
  18442. }
  18443. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  18444. public boolean isSetNotFoundException() {
  18445. return this.notFoundException != null;
  18446. }
  18447. public int compareTo(getResourceApplicationDataEntry_result other) {
  18448. if (!getClass().equals(other.getClass())) {
  18449. return getClass().getName().compareTo(other.getClass().getName());
  18450. }
  18451. int lastComparison = 0;
  18452. getResourceApplicationDataEntry_result typedOther = (getResourceApplicationDataEntry_result)other;
  18453. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  18454. if (lastComparison != 0) {
  18455. return lastComparison;
  18456. }
  18457. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  18458. if (lastComparison != 0) {
  18459. return lastComparison;
  18460. }
  18461. }
  18462. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  18463. if (lastComparison != 0) {
  18464. return lastComparison;
  18465. }
  18466. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  18467. if (lastComparison != 0) {
  18468. return lastComparison;
  18469. }
  18470. }
  18471. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  18472. if (lastComparison != 0) {
  18473. return lastComparison;
  18474. }
  18475. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  18476. if (lastComparison != 0) {
  18477. return lastComparison;
  18478. }
  18479. }
  18480. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  18481. if (lastComparison != 0) {
  18482. return lastComparison;
  18483. }
  18484. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  18485. if (lastComparison != 0) {
  18486. return lastComparison;
  18487. }
  18488. }
  18489. return 0;
  18490. }
  18491. public void read(TProtocol iprot) throws TException {
  18492. TField field;
  18493. iprot.readStructBegin();
  18494. while (true)
  18495. {
  18496. field = iprot.readFieldBegin();
  18497. if (field.type == TType.STOP) {
  18498. break;
  18499. }
  18500. switch (field.id) {
  18501. case 0: // SUCCESS
  18502. if (field.type == TType.STRING) {
  18503. this.success = iprot.readString();
  18504. } else {
  18505. TProtocolUtil.skip(iprot, field.type);
  18506. }
  18507. break;
  18508. case 1: // USER_EXCEPTION
  18509. if (field.type == TType.STRUCT) {
  18510. this.userException = new com.evernote.edam.error.EDAMUserException();
  18511. this.userException.read(iprot);
  18512. } else {
  18513. TProtocolUtil.skip(iprot, field.type);
  18514. }
  18515. break;
  18516. case 2: // SYSTEM_EXCEPTION
  18517. if (field.type == TType.STRUCT) {
  18518. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  18519. this.systemException.read(iprot);
  18520. } else {
  18521. TProtocolUtil.skip(iprot, field.type);
  18522. }
  18523. break;
  18524. case 3: // NOT_FOUND_EXCEPTION
  18525. if (field.type == TType.STRUCT) {
  18526. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  18527. this.notFoundException.read(iprot);
  18528. } else {
  18529. TProtocolUtil.skip(iprot, field.type);
  18530. }
  18531. break;
  18532. default:
  18533. TProtocolUtil.skip(iprot, field.type);
  18534. }
  18535. iprot.readFieldEnd();
  18536. }
  18537. iprot.readStructEnd();
  18538. validate();
  18539. }
  18540. public void write(TProtocol oprot) throws TException {
  18541. oprot.writeStructBegin(STRUCT_DESC);
  18542. if (this.isSetSuccess()) {
  18543. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  18544. oprot.writeString(this.success);
  18545. oprot.writeFieldEnd();
  18546. } else if (this.isSetUserException()) {
  18547. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  18548. this.userException.write(oprot);
  18549. oprot.writeFieldEnd();
  18550. } else if (this.isSetSystemException()) {
  18551. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  18552. this.systemException.write(oprot);
  18553. oprot.writeFieldEnd();
  18554. } else if (this.isSetNotFoundException()) {
  18555. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  18556. this.notFoundException.write(oprot);
  18557. oprot.writeFieldEnd();
  18558. }
  18559. oprot.writeFieldStop();
  18560. oprot.writeStructEnd();
  18561. }
  18562. public void validate() throws TException {
  18563. // check for required fields
  18564. }
  18565. }
  18566. private static class setResourceApplicationDataEntry_args implements TBase<setResourceApplicationDataEntry_args>, java.io.Serializable, Cloneable {
  18567. private static final TStruct STRUCT_DESC = new TStruct("setResourceApplicationDataEntry_args");
  18568. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  18569. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  18570. private static final TField KEY_FIELD_DESC = new TField("key", TType.STRING, (short)3);
  18571. private static final TField VALUE_FIELD_DESC = new TField("value", TType.STRING, (short)4);
  18572. private String authenticationToken;
  18573. private String guid;
  18574. private String key;
  18575. private String value;
  18576. // isset id assignments
  18577. public setResourceApplicationDataEntry_args() {
  18578. }
  18579. /**
  18580. * Performs a deep copy on <i>other</i>.
  18581. */
  18582. public setResourceApplicationDataEntry_args(setResourceApplicationDataEntry_args other) {
  18583. if (other.isSetAuthenticationToken()) {
  18584. this.authenticationToken = other.authenticationToken;
  18585. }
  18586. if (other.isSetGuid()) {
  18587. this.guid = other.guid;
  18588. }
  18589. if (other.isSetKey()) {
  18590. this.key = other.key;
  18591. }
  18592. if (other.isSetValue()) {
  18593. this.value = other.value;
  18594. }
  18595. }
  18596. public setResourceApplicationDataEntry_args deepCopy() {
  18597. return new setResourceApplicationDataEntry_args(this);
  18598. }
  18599. public void clear() {
  18600. this.authenticationToken = null;
  18601. this.guid = null;
  18602. this.key = null;
  18603. this.value = null;
  18604. }
  18605. public void setAuthenticationToken(String authenticationToken) {
  18606. this.authenticationToken = authenticationToken;
  18607. }
  18608. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  18609. public boolean isSetAuthenticationToken() {
  18610. return this.authenticationToken != null;
  18611. }
  18612. public void setGuid(String guid) {
  18613. this.guid = guid;
  18614. }
  18615. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  18616. public boolean isSetGuid() {
  18617. return this.guid != null;
  18618. }
  18619. public void setKey(String key) {
  18620. this.key = key;
  18621. }
  18622. /** Returns true if field key is set (has been asigned a value) and false otherwise */
  18623. public boolean isSetKey() {
  18624. return this.key != null;
  18625. }
  18626. public void setValue(String value) {
  18627. this.value = value;
  18628. }
  18629. /** Returns true if field value is set (has been asigned a value) and false otherwise */
  18630. public boolean isSetValue() {
  18631. return this.value != null;
  18632. }
  18633. public int compareTo(setResourceApplicationDataEntry_args other) {
  18634. if (!getClass().equals(other.getClass())) {
  18635. return getClass().getName().compareTo(other.getClass().getName());
  18636. }
  18637. int lastComparison = 0;
  18638. setResourceApplicationDataEntry_args typedOther = (setResourceApplicationDataEntry_args)other;
  18639. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  18640. if (lastComparison != 0) {
  18641. return lastComparison;
  18642. }
  18643. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  18644. if (lastComparison != 0) {
  18645. return lastComparison;
  18646. }
  18647. }
  18648. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  18649. if (lastComparison != 0) {
  18650. return lastComparison;
  18651. }
  18652. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  18653. if (lastComparison != 0) {
  18654. return lastComparison;
  18655. }
  18656. }
  18657. lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey());
  18658. if (lastComparison != 0) {
  18659. return lastComparison;
  18660. }
  18661. if (isSetKey()) { lastComparison = TBaseHelper.compareTo(this.key, typedOther.key);
  18662. if (lastComparison != 0) {
  18663. return lastComparison;
  18664. }
  18665. }
  18666. lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue());
  18667. if (lastComparison != 0) {
  18668. return lastComparison;
  18669. }
  18670. if (isSetValue()) { lastComparison = TBaseHelper.compareTo(this.value, typedOther.value);
  18671. if (lastComparison != 0) {
  18672. return lastComparison;
  18673. }
  18674. }
  18675. return 0;
  18676. }
  18677. public void read(TProtocol iprot) throws TException {
  18678. TField field;
  18679. iprot.readStructBegin();
  18680. while (true)
  18681. {
  18682. field = iprot.readFieldBegin();
  18683. if (field.type == TType.STOP) {
  18684. break;
  18685. }
  18686. switch (field.id) {
  18687. case 1: // AUTHENTICATION_TOKEN
  18688. if (field.type == TType.STRING) {
  18689. this.authenticationToken = iprot.readString();
  18690. } else {
  18691. TProtocolUtil.skip(iprot, field.type);
  18692. }
  18693. break;
  18694. case 2: // GUID
  18695. if (field.type == TType.STRING) {
  18696. this.guid = iprot.readString();
  18697. } else {
  18698. TProtocolUtil.skip(iprot, field.type);
  18699. }
  18700. break;
  18701. case 3: // KEY
  18702. if (field.type == TType.STRING) {
  18703. this.key = iprot.readString();
  18704. } else {
  18705. TProtocolUtil.skip(iprot, field.type);
  18706. }
  18707. break;
  18708. case 4: // VALUE
  18709. if (field.type == TType.STRING) {
  18710. this.value = iprot.readString();
  18711. } else {
  18712. TProtocolUtil.skip(iprot, field.type);
  18713. }
  18714. break;
  18715. default:
  18716. TProtocolUtil.skip(iprot, field.type);
  18717. }
  18718. iprot.readFieldEnd();
  18719. }
  18720. iprot.readStructEnd();
  18721. validate();
  18722. }
  18723. public void write(TProtocol oprot) throws TException {
  18724. validate();
  18725. oprot.writeStructBegin(STRUCT_DESC);
  18726. if (this.authenticationToken != null) {
  18727. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  18728. oprot.writeString(this.authenticationToken);
  18729. oprot.writeFieldEnd();
  18730. }
  18731. if (this.guid != null) {
  18732. oprot.writeFieldBegin(GUID_FIELD_DESC);
  18733. oprot.writeString(this.guid);
  18734. oprot.writeFieldEnd();
  18735. }
  18736. if (this.key != null) {
  18737. oprot.writeFieldBegin(KEY_FIELD_DESC);
  18738. oprot.writeString(this.key);
  18739. oprot.writeFieldEnd();
  18740. }
  18741. if (this.value != null) {
  18742. oprot.writeFieldBegin(VALUE_FIELD_DESC);
  18743. oprot.writeString(this.value);
  18744. oprot.writeFieldEnd();
  18745. }
  18746. oprot.writeFieldStop();
  18747. oprot.writeStructEnd();
  18748. }
  18749. public void validate() throws TException {
  18750. // check for required fields
  18751. }
  18752. }
  18753. private static class setResourceApplicationDataEntry_result implements TBase<setResourceApplicationDataEntry_result>, java.io.Serializable, Cloneable {
  18754. private static final TStruct STRUCT_DESC = new TStruct("setResourceApplicationDataEntry_result");
  18755. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);
  18756. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  18757. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  18758. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  18759. private int success;
  18760. private com.evernote.edam.error.EDAMUserException userException;
  18761. private com.evernote.edam.error.EDAMSystemException systemException;
  18762. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  18763. // isset id assignments
  18764. private static final int __SUCCESS_ISSET_ID = 0;
  18765. private boolean[] __isset_vector = new boolean[1];
  18766. public setResourceApplicationDataEntry_result() {
  18767. }
  18768. /**
  18769. * Performs a deep copy on <i>other</i>.
  18770. */
  18771. public setResourceApplicationDataEntry_result(setResourceApplicationDataEntry_result other) {
  18772. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  18773. this.success = other.success;
  18774. if (other.isSetUserException()) {
  18775. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  18776. }
  18777. if (other.isSetSystemException()) {
  18778. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  18779. }
  18780. if (other.isSetNotFoundException()) {
  18781. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  18782. }
  18783. }
  18784. public setResourceApplicationDataEntry_result deepCopy() {
  18785. return new setResourceApplicationDataEntry_result(this);
  18786. }
  18787. public void clear() {
  18788. setSuccessIsSet(false);
  18789. this.success = 0;
  18790. this.userException = null;
  18791. this.systemException = null;
  18792. this.notFoundException = null;
  18793. }
  18794. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  18795. public boolean isSetSuccess() {
  18796. return __isset_vector[__SUCCESS_ISSET_ID];
  18797. }
  18798. public void setSuccessIsSet(boolean value) {
  18799. __isset_vector[__SUCCESS_ISSET_ID] = value;
  18800. }
  18801. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  18802. public boolean isSetUserException() {
  18803. return this.userException != null;
  18804. }
  18805. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  18806. public boolean isSetSystemException() {
  18807. return this.systemException != null;
  18808. }
  18809. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  18810. public boolean isSetNotFoundException() {
  18811. return this.notFoundException != null;
  18812. }
  18813. public int compareTo(setResourceApplicationDataEntry_result other) {
  18814. if (!getClass().equals(other.getClass())) {
  18815. return getClass().getName().compareTo(other.getClass().getName());
  18816. }
  18817. int lastComparison = 0;
  18818. setResourceApplicationDataEntry_result typedOther = (setResourceApplicationDataEntry_result)other;
  18819. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  18820. if (lastComparison != 0) {
  18821. return lastComparison;
  18822. }
  18823. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  18824. if (lastComparison != 0) {
  18825. return lastComparison;
  18826. }
  18827. }
  18828. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  18829. if (lastComparison != 0) {
  18830. return lastComparison;
  18831. }
  18832. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  18833. if (lastComparison != 0) {
  18834. return lastComparison;
  18835. }
  18836. }
  18837. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  18838. if (lastComparison != 0) {
  18839. return lastComparison;
  18840. }
  18841. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  18842. if (lastComparison != 0) {
  18843. return lastComparison;
  18844. }
  18845. }
  18846. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  18847. if (lastComparison != 0) {
  18848. return lastComparison;
  18849. }
  18850. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  18851. if (lastComparison != 0) {
  18852. return lastComparison;
  18853. }
  18854. }
  18855. return 0;
  18856. }
  18857. public void read(TProtocol iprot) throws TException {
  18858. TField field;
  18859. iprot.readStructBegin();
  18860. while (true)
  18861. {
  18862. field = iprot.readFieldBegin();
  18863. if (field.type == TType.STOP) {
  18864. break;
  18865. }
  18866. switch (field.id) {
  18867. case 0: // SUCCESS
  18868. if (field.type == TType.I32) {
  18869. this.success = iprot.readI32();
  18870. setSuccessIsSet(true);
  18871. } else {
  18872. TProtocolUtil.skip(iprot, field.type);
  18873. }
  18874. break;
  18875. case 1: // USER_EXCEPTION
  18876. if (field.type == TType.STRUCT) {
  18877. this.userException = new com.evernote.edam.error.EDAMUserException();
  18878. this.userException.read(iprot);
  18879. } else {
  18880. TProtocolUtil.skip(iprot, field.type);
  18881. }
  18882. break;
  18883. case 2: // SYSTEM_EXCEPTION
  18884. if (field.type == TType.STRUCT) {
  18885. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  18886. this.systemException.read(iprot);
  18887. } else {
  18888. TProtocolUtil.skip(iprot, field.type);
  18889. }
  18890. break;
  18891. case 3: // NOT_FOUND_EXCEPTION
  18892. if (field.type == TType.STRUCT) {
  18893. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  18894. this.notFoundException.read(iprot);
  18895. } else {
  18896. TProtocolUtil.skip(iprot, field.type);
  18897. }
  18898. break;
  18899. default:
  18900. TProtocolUtil.skip(iprot, field.type);
  18901. }
  18902. iprot.readFieldEnd();
  18903. }
  18904. iprot.readStructEnd();
  18905. validate();
  18906. }
  18907. public void write(TProtocol oprot) throws TException {
  18908. oprot.writeStructBegin(STRUCT_DESC);
  18909. if (this.isSetSuccess()) {
  18910. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  18911. oprot.writeI32(this.success);
  18912. oprot.writeFieldEnd();
  18913. } else if (this.isSetUserException()) {
  18914. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  18915. this.userException.write(oprot);
  18916. oprot.writeFieldEnd();
  18917. } else if (this.isSetSystemException()) {
  18918. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  18919. this.systemException.write(oprot);
  18920. oprot.writeFieldEnd();
  18921. } else if (this.isSetNotFoundException()) {
  18922. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  18923. this.notFoundException.write(oprot);
  18924. oprot.writeFieldEnd();
  18925. }
  18926. oprot.writeFieldStop();
  18927. oprot.writeStructEnd();
  18928. }
  18929. public void validate() throws TException {
  18930. // check for required fields
  18931. }
  18932. }
  18933. private static class unsetResourceApplicationDataEntry_args implements TBase<unsetResourceApplicationDataEntry_args>, java.io.Serializable, Cloneable {
  18934. private static final TStruct STRUCT_DESC = new TStruct("unsetResourceApplicationDataEntry_args");
  18935. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  18936. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  18937. private static final TField KEY_FIELD_DESC = new TField("key", TType.STRING, (short)3);
  18938. private String authenticationToken;
  18939. private String guid;
  18940. private String key;
  18941. // isset id assignments
  18942. public unsetResourceApplicationDataEntry_args() {
  18943. }
  18944. /**
  18945. * Performs a deep copy on <i>other</i>.
  18946. */
  18947. public unsetResourceApplicationDataEntry_args(unsetResourceApplicationDataEntry_args other) {
  18948. if (other.isSetAuthenticationToken()) {
  18949. this.authenticationToken = other.authenticationToken;
  18950. }
  18951. if (other.isSetGuid()) {
  18952. this.guid = other.guid;
  18953. }
  18954. if (other.isSetKey()) {
  18955. this.key = other.key;
  18956. }
  18957. }
  18958. public unsetResourceApplicationDataEntry_args deepCopy() {
  18959. return new unsetResourceApplicationDataEntry_args(this);
  18960. }
  18961. public void clear() {
  18962. this.authenticationToken = null;
  18963. this.guid = null;
  18964. this.key = null;
  18965. }
  18966. public void setAuthenticationToken(String authenticationToken) {
  18967. this.authenticationToken = authenticationToken;
  18968. }
  18969. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  18970. public boolean isSetAuthenticationToken() {
  18971. return this.authenticationToken != null;
  18972. }
  18973. public void setGuid(String guid) {
  18974. this.guid = guid;
  18975. }
  18976. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  18977. public boolean isSetGuid() {
  18978. return this.guid != null;
  18979. }
  18980. public void setKey(String key) {
  18981. this.key = key;
  18982. }
  18983. /** Returns true if field key is set (has been asigned a value) and false otherwise */
  18984. public boolean isSetKey() {
  18985. return this.key != null;
  18986. }
  18987. public int compareTo(unsetResourceApplicationDataEntry_args other) {
  18988. if (!getClass().equals(other.getClass())) {
  18989. return getClass().getName().compareTo(other.getClass().getName());
  18990. }
  18991. int lastComparison = 0;
  18992. unsetResourceApplicationDataEntry_args typedOther = (unsetResourceApplicationDataEntry_args)other;
  18993. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  18994. if (lastComparison != 0) {
  18995. return lastComparison;
  18996. }
  18997. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  18998. if (lastComparison != 0) {
  18999. return lastComparison;
  19000. }
  19001. }
  19002. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  19003. if (lastComparison != 0) {
  19004. return lastComparison;
  19005. }
  19006. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  19007. if (lastComparison != 0) {
  19008. return lastComparison;
  19009. }
  19010. }
  19011. lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey());
  19012. if (lastComparison != 0) {
  19013. return lastComparison;
  19014. }
  19015. if (isSetKey()) { lastComparison = TBaseHelper.compareTo(this.key, typedOther.key);
  19016. if (lastComparison != 0) {
  19017. return lastComparison;
  19018. }
  19019. }
  19020. return 0;
  19021. }
  19022. public void read(TProtocol iprot) throws TException {
  19023. TField field;
  19024. iprot.readStructBegin();
  19025. while (true)
  19026. {
  19027. field = iprot.readFieldBegin();
  19028. if (field.type == TType.STOP) {
  19029. break;
  19030. }
  19031. switch (field.id) {
  19032. case 1: // AUTHENTICATION_TOKEN
  19033. if (field.type == TType.STRING) {
  19034. this.authenticationToken = iprot.readString();
  19035. } else {
  19036. TProtocolUtil.skip(iprot, field.type);
  19037. }
  19038. break;
  19039. case 2: // GUID
  19040. if (field.type == TType.STRING) {
  19041. this.guid = iprot.readString();
  19042. } else {
  19043. TProtocolUtil.skip(iprot, field.type);
  19044. }
  19045. break;
  19046. case 3: // KEY
  19047. if (field.type == TType.STRING) {
  19048. this.key = iprot.readString();
  19049. } else {
  19050. TProtocolUtil.skip(iprot, field.type);
  19051. }
  19052. break;
  19053. default:
  19054. TProtocolUtil.skip(iprot, field.type);
  19055. }
  19056. iprot.readFieldEnd();
  19057. }
  19058. iprot.readStructEnd();
  19059. validate();
  19060. }
  19061. public void write(TProtocol oprot) throws TException {
  19062. validate();
  19063. oprot.writeStructBegin(STRUCT_DESC);
  19064. if (this.authenticationToken != null) {
  19065. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  19066. oprot.writeString(this.authenticationToken);
  19067. oprot.writeFieldEnd();
  19068. }
  19069. if (this.guid != null) {
  19070. oprot.writeFieldBegin(GUID_FIELD_DESC);
  19071. oprot.writeString(this.guid);
  19072. oprot.writeFieldEnd();
  19073. }
  19074. if (this.key != null) {
  19075. oprot.writeFieldBegin(KEY_FIELD_DESC);
  19076. oprot.writeString(this.key);
  19077. oprot.writeFieldEnd();
  19078. }
  19079. oprot.writeFieldStop();
  19080. oprot.writeStructEnd();
  19081. }
  19082. public void validate() throws TException {
  19083. // check for required fields
  19084. }
  19085. }
  19086. private static class unsetResourceApplicationDataEntry_result implements TBase<unsetResourceApplicationDataEntry_result>, java.io.Serializable, Cloneable {
  19087. private static final TStruct STRUCT_DESC = new TStruct("unsetResourceApplicationDataEntry_result");
  19088. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);
  19089. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  19090. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  19091. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  19092. private int success;
  19093. private com.evernote.edam.error.EDAMUserException userException;
  19094. private com.evernote.edam.error.EDAMSystemException systemException;
  19095. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  19096. // isset id assignments
  19097. private static final int __SUCCESS_ISSET_ID = 0;
  19098. private boolean[] __isset_vector = new boolean[1];
  19099. public unsetResourceApplicationDataEntry_result() {
  19100. }
  19101. /**
  19102. * Performs a deep copy on <i>other</i>.
  19103. */
  19104. public unsetResourceApplicationDataEntry_result(unsetResourceApplicationDataEntry_result other) {
  19105. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  19106. this.success = other.success;
  19107. if (other.isSetUserException()) {
  19108. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  19109. }
  19110. if (other.isSetSystemException()) {
  19111. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  19112. }
  19113. if (other.isSetNotFoundException()) {
  19114. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  19115. }
  19116. }
  19117. public unsetResourceApplicationDataEntry_result deepCopy() {
  19118. return new unsetResourceApplicationDataEntry_result(this);
  19119. }
  19120. public void clear() {
  19121. setSuccessIsSet(false);
  19122. this.success = 0;
  19123. this.userException = null;
  19124. this.systemException = null;
  19125. this.notFoundException = null;
  19126. }
  19127. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  19128. public boolean isSetSuccess() {
  19129. return __isset_vector[__SUCCESS_ISSET_ID];
  19130. }
  19131. public void setSuccessIsSet(boolean value) {
  19132. __isset_vector[__SUCCESS_ISSET_ID] = value;
  19133. }
  19134. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  19135. public boolean isSetUserException() {
  19136. return this.userException != null;
  19137. }
  19138. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  19139. public boolean isSetSystemException() {
  19140. return this.systemException != null;
  19141. }
  19142. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  19143. public boolean isSetNotFoundException() {
  19144. return this.notFoundException != null;
  19145. }
  19146. public int compareTo(unsetResourceApplicationDataEntry_result other) {
  19147. if (!getClass().equals(other.getClass())) {
  19148. return getClass().getName().compareTo(other.getClass().getName());
  19149. }
  19150. int lastComparison = 0;
  19151. unsetResourceApplicationDataEntry_result typedOther = (unsetResourceApplicationDataEntry_result)other;
  19152. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  19153. if (lastComparison != 0) {
  19154. return lastComparison;
  19155. }
  19156. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  19157. if (lastComparison != 0) {
  19158. return lastComparison;
  19159. }
  19160. }
  19161. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  19162. if (lastComparison != 0) {
  19163. return lastComparison;
  19164. }
  19165. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  19166. if (lastComparison != 0) {
  19167. return lastComparison;
  19168. }
  19169. }
  19170. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  19171. if (lastComparison != 0) {
  19172. return lastComparison;
  19173. }
  19174. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  19175. if (lastComparison != 0) {
  19176. return lastComparison;
  19177. }
  19178. }
  19179. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  19180. if (lastComparison != 0) {
  19181. return lastComparison;
  19182. }
  19183. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  19184. if (lastComparison != 0) {
  19185. return lastComparison;
  19186. }
  19187. }
  19188. return 0;
  19189. }
  19190. public void read(TProtocol iprot) throws TException {
  19191. TField field;
  19192. iprot.readStructBegin();
  19193. while (true)
  19194. {
  19195. field = iprot.readFieldBegin();
  19196. if (field.type == TType.STOP) {
  19197. break;
  19198. }
  19199. switch (field.id) {
  19200. case 0: // SUCCESS
  19201. if (field.type == TType.I32) {
  19202. this.success = iprot.readI32();
  19203. setSuccessIsSet(true);
  19204. } else {
  19205. TProtocolUtil.skip(iprot, field.type);
  19206. }
  19207. break;
  19208. case 1: // USER_EXCEPTION
  19209. if (field.type == TType.STRUCT) {
  19210. this.userException = new com.evernote.edam.error.EDAMUserException();
  19211. this.userException.read(iprot);
  19212. } else {
  19213. TProtocolUtil.skip(iprot, field.type);
  19214. }
  19215. break;
  19216. case 2: // SYSTEM_EXCEPTION
  19217. if (field.type == TType.STRUCT) {
  19218. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  19219. this.systemException.read(iprot);
  19220. } else {
  19221. TProtocolUtil.skip(iprot, field.type);
  19222. }
  19223. break;
  19224. case 3: // NOT_FOUND_EXCEPTION
  19225. if (field.type == TType.STRUCT) {
  19226. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  19227. this.notFoundException.read(iprot);
  19228. } else {
  19229. TProtocolUtil.skip(iprot, field.type);
  19230. }
  19231. break;
  19232. default:
  19233. TProtocolUtil.skip(iprot, field.type);
  19234. }
  19235. iprot.readFieldEnd();
  19236. }
  19237. iprot.readStructEnd();
  19238. validate();
  19239. }
  19240. public void write(TProtocol oprot) throws TException {
  19241. oprot.writeStructBegin(STRUCT_DESC);
  19242. if (this.isSetSuccess()) {
  19243. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  19244. oprot.writeI32(this.success);
  19245. oprot.writeFieldEnd();
  19246. } else if (this.isSetUserException()) {
  19247. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  19248. this.userException.write(oprot);
  19249. oprot.writeFieldEnd();
  19250. } else if (this.isSetSystemException()) {
  19251. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  19252. this.systemException.write(oprot);
  19253. oprot.writeFieldEnd();
  19254. } else if (this.isSetNotFoundException()) {
  19255. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  19256. this.notFoundException.write(oprot);
  19257. oprot.writeFieldEnd();
  19258. }
  19259. oprot.writeFieldStop();
  19260. oprot.writeStructEnd();
  19261. }
  19262. public void validate() throws TException {
  19263. // check for required fields
  19264. }
  19265. }
  19266. private static class updateResource_args implements TBase<updateResource_args>, java.io.Serializable, Cloneable {
  19267. private static final TStruct STRUCT_DESC = new TStruct("updateResource_args");
  19268. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  19269. private static final TField RESOURCE_FIELD_DESC = new TField("resource", TType.STRUCT, (short)2);
  19270. private String authenticationToken;
  19271. private com.evernote.edam.type.Resource resource;
  19272. // isset id assignments
  19273. public updateResource_args() {
  19274. }
  19275. /**
  19276. * Performs a deep copy on <i>other</i>.
  19277. */
  19278. public updateResource_args(updateResource_args other) {
  19279. if (other.isSetAuthenticationToken()) {
  19280. this.authenticationToken = other.authenticationToken;
  19281. }
  19282. if (other.isSetResource()) {
  19283. this.resource = new com.evernote.edam.type.Resource(other.resource);
  19284. }
  19285. }
  19286. public updateResource_args deepCopy() {
  19287. return new updateResource_args(this);
  19288. }
  19289. public void clear() {
  19290. this.authenticationToken = null;
  19291. this.resource = null;
  19292. }
  19293. public void setAuthenticationToken(String authenticationToken) {
  19294. this.authenticationToken = authenticationToken;
  19295. }
  19296. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  19297. public boolean isSetAuthenticationToken() {
  19298. return this.authenticationToken != null;
  19299. }
  19300. public void setResource(com.evernote.edam.type.Resource resource) {
  19301. this.resource = resource;
  19302. }
  19303. /** Returns true if field resource is set (has been asigned a value) and false otherwise */
  19304. public boolean isSetResource() {
  19305. return this.resource != null;
  19306. }
  19307. public int compareTo(updateResource_args other) {
  19308. if (!getClass().equals(other.getClass())) {
  19309. return getClass().getName().compareTo(other.getClass().getName());
  19310. }
  19311. int lastComparison = 0;
  19312. updateResource_args typedOther = (updateResource_args)other;
  19313. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  19314. if (lastComparison != 0) {
  19315. return lastComparison;
  19316. }
  19317. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  19318. if (lastComparison != 0) {
  19319. return lastComparison;
  19320. }
  19321. }
  19322. lastComparison = Boolean.valueOf(isSetResource()).compareTo(typedOther.isSetResource());
  19323. if (lastComparison != 0) {
  19324. return lastComparison;
  19325. }
  19326. if (isSetResource()) { lastComparison = TBaseHelper.compareTo(this.resource, typedOther.resource);
  19327. if (lastComparison != 0) {
  19328. return lastComparison;
  19329. }
  19330. }
  19331. return 0;
  19332. }
  19333. public void read(TProtocol iprot) throws TException {
  19334. TField field;
  19335. iprot.readStructBegin();
  19336. while (true)
  19337. {
  19338. field = iprot.readFieldBegin();
  19339. if (field.type == TType.STOP) {
  19340. break;
  19341. }
  19342. switch (field.id) {
  19343. case 1: // AUTHENTICATION_TOKEN
  19344. if (field.type == TType.STRING) {
  19345. this.authenticationToken = iprot.readString();
  19346. } else {
  19347. TProtocolUtil.skip(iprot, field.type);
  19348. }
  19349. break;
  19350. case 2: // RESOURCE
  19351. if (field.type == TType.STRUCT) {
  19352. this.resource = new com.evernote.edam.type.Resource();
  19353. this.resource.read(iprot);
  19354. } else {
  19355. TProtocolUtil.skip(iprot, field.type);
  19356. }
  19357. break;
  19358. default:
  19359. TProtocolUtil.skip(iprot, field.type);
  19360. }
  19361. iprot.readFieldEnd();
  19362. }
  19363. iprot.readStructEnd();
  19364. validate();
  19365. }
  19366. public void write(TProtocol oprot) throws TException {
  19367. validate();
  19368. oprot.writeStructBegin(STRUCT_DESC);
  19369. if (this.authenticationToken != null) {
  19370. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  19371. oprot.writeString(this.authenticationToken);
  19372. oprot.writeFieldEnd();
  19373. }
  19374. if (this.resource != null) {
  19375. oprot.writeFieldBegin(RESOURCE_FIELD_DESC);
  19376. this.resource.write(oprot);
  19377. oprot.writeFieldEnd();
  19378. }
  19379. oprot.writeFieldStop();
  19380. oprot.writeStructEnd();
  19381. }
  19382. public void validate() throws TException {
  19383. // check for required fields
  19384. }
  19385. }
  19386. private static class updateResource_result implements TBase<updateResource_result>, java.io.Serializable, Cloneable {
  19387. private static final TStruct STRUCT_DESC = new TStruct("updateResource_result");
  19388. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);
  19389. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  19390. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  19391. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  19392. private int success;
  19393. private com.evernote.edam.error.EDAMUserException userException;
  19394. private com.evernote.edam.error.EDAMSystemException systemException;
  19395. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  19396. // isset id assignments
  19397. private static final int __SUCCESS_ISSET_ID = 0;
  19398. private boolean[] __isset_vector = new boolean[1];
  19399. public updateResource_result() {
  19400. }
  19401. /**
  19402. * Performs a deep copy on <i>other</i>.
  19403. */
  19404. public updateResource_result(updateResource_result other) {
  19405. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  19406. this.success = other.success;
  19407. if (other.isSetUserException()) {
  19408. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  19409. }
  19410. if (other.isSetSystemException()) {
  19411. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  19412. }
  19413. if (other.isSetNotFoundException()) {
  19414. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  19415. }
  19416. }
  19417. public updateResource_result deepCopy() {
  19418. return new updateResource_result(this);
  19419. }
  19420. public void clear() {
  19421. setSuccessIsSet(false);
  19422. this.success = 0;
  19423. this.userException = null;
  19424. this.systemException = null;
  19425. this.notFoundException = null;
  19426. }
  19427. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  19428. public boolean isSetSuccess() {
  19429. return __isset_vector[__SUCCESS_ISSET_ID];
  19430. }
  19431. public void setSuccessIsSet(boolean value) {
  19432. __isset_vector[__SUCCESS_ISSET_ID] = value;
  19433. }
  19434. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  19435. public boolean isSetUserException() {
  19436. return this.userException != null;
  19437. }
  19438. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  19439. public boolean isSetSystemException() {
  19440. return this.systemException != null;
  19441. }
  19442. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  19443. public boolean isSetNotFoundException() {
  19444. return this.notFoundException != null;
  19445. }
  19446. public int compareTo(updateResource_result other) {
  19447. if (!getClass().equals(other.getClass())) {
  19448. return getClass().getName().compareTo(other.getClass().getName());
  19449. }
  19450. int lastComparison = 0;
  19451. updateResource_result typedOther = (updateResource_result)other;
  19452. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  19453. if (lastComparison != 0) {
  19454. return lastComparison;
  19455. }
  19456. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  19457. if (lastComparison != 0) {
  19458. return lastComparison;
  19459. }
  19460. }
  19461. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  19462. if (lastComparison != 0) {
  19463. return lastComparison;
  19464. }
  19465. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  19466. if (lastComparison != 0) {
  19467. return lastComparison;
  19468. }
  19469. }
  19470. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  19471. if (lastComparison != 0) {
  19472. return lastComparison;
  19473. }
  19474. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  19475. if (lastComparison != 0) {
  19476. return lastComparison;
  19477. }
  19478. }
  19479. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  19480. if (lastComparison != 0) {
  19481. return lastComparison;
  19482. }
  19483. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  19484. if (lastComparison != 0) {
  19485. return lastComparison;
  19486. }
  19487. }
  19488. return 0;
  19489. }
  19490. public void read(TProtocol iprot) throws TException {
  19491. TField field;
  19492. iprot.readStructBegin();
  19493. while (true)
  19494. {
  19495. field = iprot.readFieldBegin();
  19496. if (field.type == TType.STOP) {
  19497. break;
  19498. }
  19499. switch (field.id) {
  19500. case 0: // SUCCESS
  19501. if (field.type == TType.I32) {
  19502. this.success = iprot.readI32();
  19503. setSuccessIsSet(true);
  19504. } else {
  19505. TProtocolUtil.skip(iprot, field.type);
  19506. }
  19507. break;
  19508. case 1: // USER_EXCEPTION
  19509. if (field.type == TType.STRUCT) {
  19510. this.userException = new com.evernote.edam.error.EDAMUserException();
  19511. this.userException.read(iprot);
  19512. } else {
  19513. TProtocolUtil.skip(iprot, field.type);
  19514. }
  19515. break;
  19516. case 2: // SYSTEM_EXCEPTION
  19517. if (field.type == TType.STRUCT) {
  19518. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  19519. this.systemException.read(iprot);
  19520. } else {
  19521. TProtocolUtil.skip(iprot, field.type);
  19522. }
  19523. break;
  19524. case 3: // NOT_FOUND_EXCEPTION
  19525. if (field.type == TType.STRUCT) {
  19526. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  19527. this.notFoundException.read(iprot);
  19528. } else {
  19529. TProtocolUtil.skip(iprot, field.type);
  19530. }
  19531. break;
  19532. default:
  19533. TProtocolUtil.skip(iprot, field.type);
  19534. }
  19535. iprot.readFieldEnd();
  19536. }
  19537. iprot.readStructEnd();
  19538. validate();
  19539. }
  19540. public void write(TProtocol oprot) throws TException {
  19541. oprot.writeStructBegin(STRUCT_DESC);
  19542. if (this.isSetSuccess()) {
  19543. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  19544. oprot.writeI32(this.success);
  19545. oprot.writeFieldEnd();
  19546. } else if (this.isSetUserException()) {
  19547. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  19548. this.userException.write(oprot);
  19549. oprot.writeFieldEnd();
  19550. } else if (this.isSetSystemException()) {
  19551. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  19552. this.systemException.write(oprot);
  19553. oprot.writeFieldEnd();
  19554. } else if (this.isSetNotFoundException()) {
  19555. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  19556. this.notFoundException.write(oprot);
  19557. oprot.writeFieldEnd();
  19558. }
  19559. oprot.writeFieldStop();
  19560. oprot.writeStructEnd();
  19561. }
  19562. public void validate() throws TException {
  19563. // check for required fields
  19564. }
  19565. }
  19566. private static class getResourceData_args implements TBase<getResourceData_args>, java.io.Serializable, Cloneable {
  19567. private static final TStruct STRUCT_DESC = new TStruct("getResourceData_args");
  19568. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  19569. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  19570. private String authenticationToken;
  19571. private String guid;
  19572. // isset id assignments
  19573. public getResourceData_args() {
  19574. }
  19575. /**
  19576. * Performs a deep copy on <i>other</i>.
  19577. */
  19578. public getResourceData_args(getResourceData_args other) {
  19579. if (other.isSetAuthenticationToken()) {
  19580. this.authenticationToken = other.authenticationToken;
  19581. }
  19582. if (other.isSetGuid()) {
  19583. this.guid = other.guid;
  19584. }
  19585. }
  19586. public getResourceData_args deepCopy() {
  19587. return new getResourceData_args(this);
  19588. }
  19589. public void clear() {
  19590. this.authenticationToken = null;
  19591. this.guid = null;
  19592. }
  19593. public void setAuthenticationToken(String authenticationToken) {
  19594. this.authenticationToken = authenticationToken;
  19595. }
  19596. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  19597. public boolean isSetAuthenticationToken() {
  19598. return this.authenticationToken != null;
  19599. }
  19600. public void setGuid(String guid) {
  19601. this.guid = guid;
  19602. }
  19603. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  19604. public boolean isSetGuid() {
  19605. return this.guid != null;
  19606. }
  19607. public int compareTo(getResourceData_args other) {
  19608. if (!getClass().equals(other.getClass())) {
  19609. return getClass().getName().compareTo(other.getClass().getName());
  19610. }
  19611. int lastComparison = 0;
  19612. getResourceData_args typedOther = (getResourceData_args)other;
  19613. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  19614. if (lastComparison != 0) {
  19615. return lastComparison;
  19616. }
  19617. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  19618. if (lastComparison != 0) {
  19619. return lastComparison;
  19620. }
  19621. }
  19622. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  19623. if (lastComparison != 0) {
  19624. return lastComparison;
  19625. }
  19626. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  19627. if (lastComparison != 0) {
  19628. return lastComparison;
  19629. }
  19630. }
  19631. return 0;
  19632. }
  19633. public void read(TProtocol iprot) throws TException {
  19634. TField field;
  19635. iprot.readStructBegin();
  19636. while (true)
  19637. {
  19638. field = iprot.readFieldBegin();
  19639. if (field.type == TType.STOP) {
  19640. break;
  19641. }
  19642. switch (field.id) {
  19643. case 1: // AUTHENTICATION_TOKEN
  19644. if (field.type == TType.STRING) {
  19645. this.authenticationToken = iprot.readString();
  19646. } else {
  19647. TProtocolUtil.skip(iprot, field.type);
  19648. }
  19649. break;
  19650. case 2: // GUID
  19651. if (field.type == TType.STRING) {
  19652. this.guid = iprot.readString();
  19653. } else {
  19654. TProtocolUtil.skip(iprot, field.type);
  19655. }
  19656. break;
  19657. default:
  19658. TProtocolUtil.skip(iprot, field.type);
  19659. }
  19660. iprot.readFieldEnd();
  19661. }
  19662. iprot.readStructEnd();
  19663. validate();
  19664. }
  19665. public void write(TProtocol oprot) throws TException {
  19666. validate();
  19667. oprot.writeStructBegin(STRUCT_DESC);
  19668. if (this.authenticationToken != null) {
  19669. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  19670. oprot.writeString(this.authenticationToken);
  19671. oprot.writeFieldEnd();
  19672. }
  19673. if (this.guid != null) {
  19674. oprot.writeFieldBegin(GUID_FIELD_DESC);
  19675. oprot.writeString(this.guid);
  19676. oprot.writeFieldEnd();
  19677. }
  19678. oprot.writeFieldStop();
  19679. oprot.writeStructEnd();
  19680. }
  19681. public void validate() throws TException {
  19682. // check for required fields
  19683. }
  19684. }
  19685. private static class getResourceData_result implements TBase<getResourceData_result>, java.io.Serializable, Cloneable {
  19686. private static final TStruct STRUCT_DESC = new TStruct("getResourceData_result");
  19687. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRING, (short)0);
  19688. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  19689. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  19690. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  19691. private byte[] success;
  19692. private com.evernote.edam.error.EDAMUserException userException;
  19693. private com.evernote.edam.error.EDAMSystemException systemException;
  19694. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  19695. // isset id assignments
  19696. public getResourceData_result() {
  19697. }
  19698. /**
  19699. * Performs a deep copy on <i>other</i>.
  19700. */
  19701. public getResourceData_result(getResourceData_result other) {
  19702. if (other.isSetSuccess()) {
  19703. this.success = new byte[other.success.length];
  19704. System.arraycopy(other.success, 0, success, 0, other.success.length);
  19705. }
  19706. if (other.isSetUserException()) {
  19707. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  19708. }
  19709. if (other.isSetSystemException()) {
  19710. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  19711. }
  19712. if (other.isSetNotFoundException()) {
  19713. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  19714. }
  19715. }
  19716. public getResourceData_result deepCopy() {
  19717. return new getResourceData_result(this);
  19718. }
  19719. public void clear() {
  19720. this.success = null;
  19721. this.userException = null;
  19722. this.systemException = null;
  19723. this.notFoundException = null;
  19724. }
  19725. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  19726. public boolean isSetSuccess() {
  19727. return this.success != null;
  19728. }
  19729. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  19730. public boolean isSetUserException() {
  19731. return this.userException != null;
  19732. }
  19733. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  19734. public boolean isSetSystemException() {
  19735. return this.systemException != null;
  19736. }
  19737. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  19738. public boolean isSetNotFoundException() {
  19739. return this.notFoundException != null;
  19740. }
  19741. public int compareTo(getResourceData_result other) {
  19742. if (!getClass().equals(other.getClass())) {
  19743. return getClass().getName().compareTo(other.getClass().getName());
  19744. }
  19745. int lastComparison = 0;
  19746. getResourceData_result typedOther = (getResourceData_result)other;
  19747. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  19748. if (lastComparison != 0) {
  19749. return lastComparison;
  19750. }
  19751. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  19752. if (lastComparison != 0) {
  19753. return lastComparison;
  19754. }
  19755. }
  19756. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  19757. if (lastComparison != 0) {
  19758. return lastComparison;
  19759. }
  19760. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  19761. if (lastComparison != 0) {
  19762. return lastComparison;
  19763. }
  19764. }
  19765. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  19766. if (lastComparison != 0) {
  19767. return lastComparison;
  19768. }
  19769. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  19770. if (lastComparison != 0) {
  19771. return lastComparison;
  19772. }
  19773. }
  19774. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  19775. if (lastComparison != 0) {
  19776. return lastComparison;
  19777. }
  19778. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  19779. if (lastComparison != 0) {
  19780. return lastComparison;
  19781. }
  19782. }
  19783. return 0;
  19784. }
  19785. public void read(TProtocol iprot) throws TException {
  19786. TField field;
  19787. iprot.readStructBegin();
  19788. while (true)
  19789. {
  19790. field = iprot.readFieldBegin();
  19791. if (field.type == TType.STOP) {
  19792. break;
  19793. }
  19794. switch (field.id) {
  19795. case 0: // SUCCESS
  19796. if (field.type == TType.STRING) {
  19797. this.success = iprot.readBytes();
  19798. } else {
  19799. TProtocolUtil.skip(iprot, field.type);
  19800. }
  19801. break;
  19802. case 1: // USER_EXCEPTION
  19803. if (field.type == TType.STRUCT) {
  19804. this.userException = new com.evernote.edam.error.EDAMUserException();
  19805. this.userException.read(iprot);
  19806. } else {
  19807. TProtocolUtil.skip(iprot, field.type);
  19808. }
  19809. break;
  19810. case 2: // SYSTEM_EXCEPTION
  19811. if (field.type == TType.STRUCT) {
  19812. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  19813. this.systemException.read(iprot);
  19814. } else {
  19815. TProtocolUtil.skip(iprot, field.type);
  19816. }
  19817. break;
  19818. case 3: // NOT_FOUND_EXCEPTION
  19819. if (field.type == TType.STRUCT) {
  19820. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  19821. this.notFoundException.read(iprot);
  19822. } else {
  19823. TProtocolUtil.skip(iprot, field.type);
  19824. }
  19825. break;
  19826. default:
  19827. TProtocolUtil.skip(iprot, field.type);
  19828. }
  19829. iprot.readFieldEnd();
  19830. }
  19831. iprot.readStructEnd();
  19832. validate();
  19833. }
  19834. public void write(TProtocol oprot) throws TException {
  19835. oprot.writeStructBegin(STRUCT_DESC);
  19836. if (this.isSetSuccess()) {
  19837. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  19838. oprot.writeBinary(this.success);
  19839. oprot.writeFieldEnd();
  19840. } else if (this.isSetUserException()) {
  19841. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  19842. this.userException.write(oprot);
  19843. oprot.writeFieldEnd();
  19844. } else if (this.isSetSystemException()) {
  19845. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  19846. this.systemException.write(oprot);
  19847. oprot.writeFieldEnd();
  19848. } else if (this.isSetNotFoundException()) {
  19849. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  19850. this.notFoundException.write(oprot);
  19851. oprot.writeFieldEnd();
  19852. }
  19853. oprot.writeFieldStop();
  19854. oprot.writeStructEnd();
  19855. }
  19856. public void validate() throws TException {
  19857. // check for required fields
  19858. }
  19859. }
  19860. private static class getResourceByHash_args implements TBase<getResourceByHash_args>, java.io.Serializable, Cloneable {
  19861. private static final TStruct STRUCT_DESC = new TStruct("getResourceByHash_args");
  19862. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  19863. private static final TField NOTE_GUID_FIELD_DESC = new TField("noteGuid", TType.STRING, (short)2);
  19864. private static final TField CONTENT_HASH_FIELD_DESC = new TField("contentHash", TType.STRING, (short)3);
  19865. private static final TField WITH_DATA_FIELD_DESC = new TField("withData", TType.BOOL, (short)4);
  19866. private static final TField WITH_RECOGNITION_FIELD_DESC = new TField("withRecognition", TType.BOOL, (short)5);
  19867. private static final TField WITH_ALTERNATE_DATA_FIELD_DESC = new TField("withAlternateData", TType.BOOL, (short)6);
  19868. private String authenticationToken;
  19869. private String noteGuid;
  19870. private byte[] contentHash;
  19871. private boolean withData;
  19872. private boolean withRecognition;
  19873. private boolean withAlternateData;
  19874. // isset id assignments
  19875. private static final int __WITHDATA_ISSET_ID = 0;
  19876. private static final int __WITHRECOGNITION_ISSET_ID = 1;
  19877. private static final int __WITHALTERNATEDATA_ISSET_ID = 2;
  19878. private boolean[] __isset_vector = new boolean[3];
  19879. public getResourceByHash_args() {
  19880. }
  19881. /**
  19882. * Performs a deep copy on <i>other</i>.
  19883. */
  19884. public getResourceByHash_args(getResourceByHash_args other) {
  19885. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  19886. if (other.isSetAuthenticationToken()) {
  19887. this.authenticationToken = other.authenticationToken;
  19888. }
  19889. if (other.isSetNoteGuid()) {
  19890. this.noteGuid = other.noteGuid;
  19891. }
  19892. if (other.isSetContentHash()) {
  19893. this.contentHash = new byte[other.contentHash.length];
  19894. System.arraycopy(other.contentHash, 0, contentHash, 0, other.contentHash.length);
  19895. }
  19896. this.withData = other.withData;
  19897. this.withRecognition = other.withRecognition;
  19898. this.withAlternateData = other.withAlternateData;
  19899. }
  19900. public getResourceByHash_args deepCopy() {
  19901. return new getResourceByHash_args(this);
  19902. }
  19903. public void clear() {
  19904. this.authenticationToken = null;
  19905. this.noteGuid = null;
  19906. this.contentHash = null;
  19907. setWithDataIsSet(false);
  19908. this.withData = false;
  19909. setWithRecognitionIsSet(false);
  19910. this.withRecognition = false;
  19911. setWithAlternateDataIsSet(false);
  19912. this.withAlternateData = false;
  19913. }
  19914. public void setAuthenticationToken(String authenticationToken) {
  19915. this.authenticationToken = authenticationToken;
  19916. }
  19917. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  19918. public boolean isSetAuthenticationToken() {
  19919. return this.authenticationToken != null;
  19920. }
  19921. public void setNoteGuid(String noteGuid) {
  19922. this.noteGuid = noteGuid;
  19923. }
  19924. /** Returns true if field noteGuid is set (has been asigned a value) and false otherwise */
  19925. public boolean isSetNoteGuid() {
  19926. return this.noteGuid != null;
  19927. }
  19928. public void setContentHash(byte[] contentHash) {
  19929. this.contentHash = contentHash;
  19930. }
  19931. /** Returns true if field contentHash is set (has been asigned a value) and false otherwise */
  19932. public boolean isSetContentHash() {
  19933. return this.contentHash != null;
  19934. }
  19935. public void setWithData(boolean withData) {
  19936. this.withData = withData;
  19937. setWithDataIsSet(true);
  19938. }
  19939. /** Returns true if field withData is set (has been asigned a value) and false otherwise */
  19940. public boolean isSetWithData() {
  19941. return __isset_vector[__WITHDATA_ISSET_ID];
  19942. }
  19943. public void setWithDataIsSet(boolean value) {
  19944. __isset_vector[__WITHDATA_ISSET_ID] = value;
  19945. }
  19946. public void setWithRecognition(boolean withRecognition) {
  19947. this.withRecognition = withRecognition;
  19948. setWithRecognitionIsSet(true);
  19949. }
  19950. /** Returns true if field withRecognition is set (has been asigned a value) and false otherwise */
  19951. public boolean isSetWithRecognition() {
  19952. return __isset_vector[__WITHRECOGNITION_ISSET_ID];
  19953. }
  19954. public void setWithRecognitionIsSet(boolean value) {
  19955. __isset_vector[__WITHRECOGNITION_ISSET_ID] = value;
  19956. }
  19957. public void setWithAlternateData(boolean withAlternateData) {
  19958. this.withAlternateData = withAlternateData;
  19959. setWithAlternateDataIsSet(true);
  19960. }
  19961. /** Returns true if field withAlternateData is set (has been asigned a value) and false otherwise */
  19962. public boolean isSetWithAlternateData() {
  19963. return __isset_vector[__WITHALTERNATEDATA_ISSET_ID];
  19964. }
  19965. public void setWithAlternateDataIsSet(boolean value) {
  19966. __isset_vector[__WITHALTERNATEDATA_ISSET_ID] = value;
  19967. }
  19968. public int compareTo(getResourceByHash_args other) {
  19969. if (!getClass().equals(other.getClass())) {
  19970. return getClass().getName().compareTo(other.getClass().getName());
  19971. }
  19972. int lastComparison = 0;
  19973. getResourceByHash_args typedOther = (getResourceByHash_args)other;
  19974. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  19975. if (lastComparison != 0) {
  19976. return lastComparison;
  19977. }
  19978. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  19979. if (lastComparison != 0) {
  19980. return lastComparison;
  19981. }
  19982. }
  19983. lastComparison = Boolean.valueOf(isSetNoteGuid()).compareTo(typedOther.isSetNoteGuid());
  19984. if (lastComparison != 0) {
  19985. return lastComparison;
  19986. }
  19987. if (isSetNoteGuid()) { lastComparison = TBaseHelper.compareTo(this.noteGuid, typedOther.noteGuid);
  19988. if (lastComparison != 0) {
  19989. return lastComparison;
  19990. }
  19991. }
  19992. lastComparison = Boolean.valueOf(isSetContentHash()).compareTo(typedOther.isSetContentHash());
  19993. if (lastComparison != 0) {
  19994. return lastComparison;
  19995. }
  19996. if (isSetContentHash()) { lastComparison = TBaseHelper.compareTo(this.contentHash, typedOther.contentHash);
  19997. if (lastComparison != 0) {
  19998. return lastComparison;
  19999. }
  20000. }
  20001. lastComparison = Boolean.valueOf(isSetWithData()).compareTo(typedOther.isSetWithData());
  20002. if (lastComparison != 0) {
  20003. return lastComparison;
  20004. }
  20005. if (isSetWithData()) { lastComparison = TBaseHelper.compareTo(this.withData, typedOther.withData);
  20006. if (lastComparison != 0) {
  20007. return lastComparison;
  20008. }
  20009. }
  20010. lastComparison = Boolean.valueOf(isSetWithRecognition()).compareTo(typedOther.isSetWithRecognition());
  20011. if (lastComparison != 0) {
  20012. return lastComparison;
  20013. }
  20014. if (isSetWithRecognition()) { lastComparison = TBaseHelper.compareTo(this.withRecognition, typedOther.withRecognition);
  20015. if (lastComparison != 0) {
  20016. return lastComparison;
  20017. }
  20018. }
  20019. lastComparison = Boolean.valueOf(isSetWithAlternateData()).compareTo(typedOther.isSetWithAlternateData());
  20020. if (lastComparison != 0) {
  20021. return lastComparison;
  20022. }
  20023. if (isSetWithAlternateData()) { lastComparison = TBaseHelper.compareTo(this.withAlternateData, typedOther.withAlternateData);
  20024. if (lastComparison != 0) {
  20025. return lastComparison;
  20026. }
  20027. }
  20028. return 0;
  20029. }
  20030. public void read(TProtocol iprot) throws TException {
  20031. TField field;
  20032. iprot.readStructBegin();
  20033. while (true)
  20034. {
  20035. field = iprot.readFieldBegin();
  20036. if (field.type == TType.STOP) {
  20037. break;
  20038. }
  20039. switch (field.id) {
  20040. case 1: // AUTHENTICATION_TOKEN
  20041. if (field.type == TType.STRING) {
  20042. this.authenticationToken = iprot.readString();
  20043. } else {
  20044. TProtocolUtil.skip(iprot, field.type);
  20045. }
  20046. break;
  20047. case 2: // NOTE_GUID
  20048. if (field.type == TType.STRING) {
  20049. this.noteGuid = iprot.readString();
  20050. } else {
  20051. TProtocolUtil.skip(iprot, field.type);
  20052. }
  20053. break;
  20054. case 3: // CONTENT_HASH
  20055. if (field.type == TType.STRING) {
  20056. this.contentHash = iprot.readBytes();
  20057. } else {
  20058. TProtocolUtil.skip(iprot, field.type);
  20059. }
  20060. break;
  20061. case 4: // WITH_DATA
  20062. if (field.type == TType.BOOL) {
  20063. this.withData = iprot.readBool();
  20064. setWithDataIsSet(true);
  20065. } else {
  20066. TProtocolUtil.skip(iprot, field.type);
  20067. }
  20068. break;
  20069. case 5: // WITH_RECOGNITION
  20070. if (field.type == TType.BOOL) {
  20071. this.withRecognition = iprot.readBool();
  20072. setWithRecognitionIsSet(true);
  20073. } else {
  20074. TProtocolUtil.skip(iprot, field.type);
  20075. }
  20076. break;
  20077. case 6: // WITH_ALTERNATE_DATA
  20078. if (field.type == TType.BOOL) {
  20079. this.withAlternateData = iprot.readBool();
  20080. setWithAlternateDataIsSet(true);
  20081. } else {
  20082. TProtocolUtil.skip(iprot, field.type);
  20083. }
  20084. break;
  20085. default:
  20086. TProtocolUtil.skip(iprot, field.type);
  20087. }
  20088. iprot.readFieldEnd();
  20089. }
  20090. iprot.readStructEnd();
  20091. validate();
  20092. }
  20093. public void write(TProtocol oprot) throws TException {
  20094. validate();
  20095. oprot.writeStructBegin(STRUCT_DESC);
  20096. if (this.authenticationToken != null) {
  20097. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  20098. oprot.writeString(this.authenticationToken);
  20099. oprot.writeFieldEnd();
  20100. }
  20101. if (this.noteGuid != null) {
  20102. oprot.writeFieldBegin(NOTE_GUID_FIELD_DESC);
  20103. oprot.writeString(this.noteGuid);
  20104. oprot.writeFieldEnd();
  20105. }
  20106. if (this.contentHash != null) {
  20107. oprot.writeFieldBegin(CONTENT_HASH_FIELD_DESC);
  20108. oprot.writeBinary(this.contentHash);
  20109. oprot.writeFieldEnd();
  20110. }
  20111. oprot.writeFieldBegin(WITH_DATA_FIELD_DESC);
  20112. oprot.writeBool(this.withData);
  20113. oprot.writeFieldEnd();
  20114. oprot.writeFieldBegin(WITH_RECOGNITION_FIELD_DESC);
  20115. oprot.writeBool(this.withRecognition);
  20116. oprot.writeFieldEnd();
  20117. oprot.writeFieldBegin(WITH_ALTERNATE_DATA_FIELD_DESC);
  20118. oprot.writeBool(this.withAlternateData);
  20119. oprot.writeFieldEnd();
  20120. oprot.writeFieldStop();
  20121. oprot.writeStructEnd();
  20122. }
  20123. public void validate() throws TException {
  20124. // check for required fields
  20125. }
  20126. }
  20127. private static class getResourceByHash_result implements TBase<getResourceByHash_result>, java.io.Serializable, Cloneable {
  20128. private static final TStruct STRUCT_DESC = new TStruct("getResourceByHash_result");
  20129. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  20130. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  20131. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  20132. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  20133. private com.evernote.edam.type.Resource success;
  20134. private com.evernote.edam.error.EDAMUserException userException;
  20135. private com.evernote.edam.error.EDAMSystemException systemException;
  20136. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  20137. // isset id assignments
  20138. public getResourceByHash_result() {
  20139. }
  20140. /**
  20141. * Performs a deep copy on <i>other</i>.
  20142. */
  20143. public getResourceByHash_result(getResourceByHash_result other) {
  20144. if (other.isSetSuccess()) {
  20145. this.success = new com.evernote.edam.type.Resource(other.success);
  20146. }
  20147. if (other.isSetUserException()) {
  20148. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  20149. }
  20150. if (other.isSetSystemException()) {
  20151. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  20152. }
  20153. if (other.isSetNotFoundException()) {
  20154. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  20155. }
  20156. }
  20157. public getResourceByHash_result deepCopy() {
  20158. return new getResourceByHash_result(this);
  20159. }
  20160. public void clear() {
  20161. this.success = null;
  20162. this.userException = null;
  20163. this.systemException = null;
  20164. this.notFoundException = null;
  20165. }
  20166. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  20167. public boolean isSetSuccess() {
  20168. return this.success != null;
  20169. }
  20170. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  20171. public boolean isSetUserException() {
  20172. return this.userException != null;
  20173. }
  20174. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  20175. public boolean isSetSystemException() {
  20176. return this.systemException != null;
  20177. }
  20178. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  20179. public boolean isSetNotFoundException() {
  20180. return this.notFoundException != null;
  20181. }
  20182. public int compareTo(getResourceByHash_result other) {
  20183. if (!getClass().equals(other.getClass())) {
  20184. return getClass().getName().compareTo(other.getClass().getName());
  20185. }
  20186. int lastComparison = 0;
  20187. getResourceByHash_result typedOther = (getResourceByHash_result)other;
  20188. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  20189. if (lastComparison != 0) {
  20190. return lastComparison;
  20191. }
  20192. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  20193. if (lastComparison != 0) {
  20194. return lastComparison;
  20195. }
  20196. }
  20197. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  20198. if (lastComparison != 0) {
  20199. return lastComparison;
  20200. }
  20201. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  20202. if (lastComparison != 0) {
  20203. return lastComparison;
  20204. }
  20205. }
  20206. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  20207. if (lastComparison != 0) {
  20208. return lastComparison;
  20209. }
  20210. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  20211. if (lastComparison != 0) {
  20212. return lastComparison;
  20213. }
  20214. }
  20215. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  20216. if (lastComparison != 0) {
  20217. return lastComparison;
  20218. }
  20219. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  20220. if (lastComparison != 0) {
  20221. return lastComparison;
  20222. }
  20223. }
  20224. return 0;
  20225. }
  20226. public void read(TProtocol iprot) throws TException {
  20227. TField field;
  20228. iprot.readStructBegin();
  20229. while (true)
  20230. {
  20231. field = iprot.readFieldBegin();
  20232. if (field.type == TType.STOP) {
  20233. break;
  20234. }
  20235. switch (field.id) {
  20236. case 0: // SUCCESS
  20237. if (field.type == TType.STRUCT) {
  20238. this.success = new com.evernote.edam.type.Resource();
  20239. this.success.read(iprot);
  20240. } else {
  20241. TProtocolUtil.skip(iprot, field.type);
  20242. }
  20243. break;
  20244. case 1: // USER_EXCEPTION
  20245. if (field.type == TType.STRUCT) {
  20246. this.userException = new com.evernote.edam.error.EDAMUserException();
  20247. this.userException.read(iprot);
  20248. } else {
  20249. TProtocolUtil.skip(iprot, field.type);
  20250. }
  20251. break;
  20252. case 2: // SYSTEM_EXCEPTION
  20253. if (field.type == TType.STRUCT) {
  20254. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  20255. this.systemException.read(iprot);
  20256. } else {
  20257. TProtocolUtil.skip(iprot, field.type);
  20258. }
  20259. break;
  20260. case 3: // NOT_FOUND_EXCEPTION
  20261. if (field.type == TType.STRUCT) {
  20262. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  20263. this.notFoundException.read(iprot);
  20264. } else {
  20265. TProtocolUtil.skip(iprot, field.type);
  20266. }
  20267. break;
  20268. default:
  20269. TProtocolUtil.skip(iprot, field.type);
  20270. }
  20271. iprot.readFieldEnd();
  20272. }
  20273. iprot.readStructEnd();
  20274. validate();
  20275. }
  20276. public void write(TProtocol oprot) throws TException {
  20277. oprot.writeStructBegin(STRUCT_DESC);
  20278. if (this.isSetSuccess()) {
  20279. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  20280. this.success.write(oprot);
  20281. oprot.writeFieldEnd();
  20282. } else if (this.isSetUserException()) {
  20283. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  20284. this.userException.write(oprot);
  20285. oprot.writeFieldEnd();
  20286. } else if (this.isSetSystemException()) {
  20287. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  20288. this.systemException.write(oprot);
  20289. oprot.writeFieldEnd();
  20290. } else if (this.isSetNotFoundException()) {
  20291. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  20292. this.notFoundException.write(oprot);
  20293. oprot.writeFieldEnd();
  20294. }
  20295. oprot.writeFieldStop();
  20296. oprot.writeStructEnd();
  20297. }
  20298. public void validate() throws TException {
  20299. // check for required fields
  20300. }
  20301. }
  20302. private static class getResourceRecognition_args implements TBase<getResourceRecognition_args>, java.io.Serializable, Cloneable {
  20303. private static final TStruct STRUCT_DESC = new TStruct("getResourceRecognition_args");
  20304. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  20305. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  20306. private String authenticationToken;
  20307. private String guid;
  20308. // isset id assignments
  20309. public getResourceRecognition_args() {
  20310. }
  20311. /**
  20312. * Performs a deep copy on <i>other</i>.
  20313. */
  20314. public getResourceRecognition_args(getResourceRecognition_args other) {
  20315. if (other.isSetAuthenticationToken()) {
  20316. this.authenticationToken = other.authenticationToken;
  20317. }
  20318. if (other.isSetGuid()) {
  20319. this.guid = other.guid;
  20320. }
  20321. }
  20322. public getResourceRecognition_args deepCopy() {
  20323. return new getResourceRecognition_args(this);
  20324. }
  20325. public void clear() {
  20326. this.authenticationToken = null;
  20327. this.guid = null;
  20328. }
  20329. public void setAuthenticationToken(String authenticationToken) {
  20330. this.authenticationToken = authenticationToken;
  20331. }
  20332. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  20333. public boolean isSetAuthenticationToken() {
  20334. return this.authenticationToken != null;
  20335. }
  20336. public void setGuid(String guid) {
  20337. this.guid = guid;
  20338. }
  20339. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  20340. public boolean isSetGuid() {
  20341. return this.guid != null;
  20342. }
  20343. public int compareTo(getResourceRecognition_args other) {
  20344. if (!getClass().equals(other.getClass())) {
  20345. return getClass().getName().compareTo(other.getClass().getName());
  20346. }
  20347. int lastComparison = 0;
  20348. getResourceRecognition_args typedOther = (getResourceRecognition_args)other;
  20349. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  20350. if (lastComparison != 0) {
  20351. return lastComparison;
  20352. }
  20353. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  20354. if (lastComparison != 0) {
  20355. return lastComparison;
  20356. }
  20357. }
  20358. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  20359. if (lastComparison != 0) {
  20360. return lastComparison;
  20361. }
  20362. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  20363. if (lastComparison != 0) {
  20364. return lastComparison;
  20365. }
  20366. }
  20367. return 0;
  20368. }
  20369. public void read(TProtocol iprot) throws TException {
  20370. TField field;
  20371. iprot.readStructBegin();
  20372. while (true)
  20373. {
  20374. field = iprot.readFieldBegin();
  20375. if (field.type == TType.STOP) {
  20376. break;
  20377. }
  20378. switch (field.id) {
  20379. case 1: // AUTHENTICATION_TOKEN
  20380. if (field.type == TType.STRING) {
  20381. this.authenticationToken = iprot.readString();
  20382. } else {
  20383. TProtocolUtil.skip(iprot, field.type);
  20384. }
  20385. break;
  20386. case 2: // GUID
  20387. if (field.type == TType.STRING) {
  20388. this.guid = iprot.readString();
  20389. } else {
  20390. TProtocolUtil.skip(iprot, field.type);
  20391. }
  20392. break;
  20393. default:
  20394. TProtocolUtil.skip(iprot, field.type);
  20395. }
  20396. iprot.readFieldEnd();
  20397. }
  20398. iprot.readStructEnd();
  20399. validate();
  20400. }
  20401. public void write(TProtocol oprot) throws TException {
  20402. validate();
  20403. oprot.writeStructBegin(STRUCT_DESC);
  20404. if (this.authenticationToken != null) {
  20405. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  20406. oprot.writeString(this.authenticationToken);
  20407. oprot.writeFieldEnd();
  20408. }
  20409. if (this.guid != null) {
  20410. oprot.writeFieldBegin(GUID_FIELD_DESC);
  20411. oprot.writeString(this.guid);
  20412. oprot.writeFieldEnd();
  20413. }
  20414. oprot.writeFieldStop();
  20415. oprot.writeStructEnd();
  20416. }
  20417. public void validate() throws TException {
  20418. // check for required fields
  20419. }
  20420. }
  20421. private static class getResourceRecognition_result implements TBase<getResourceRecognition_result>, java.io.Serializable, Cloneable {
  20422. private static final TStruct STRUCT_DESC = new TStruct("getResourceRecognition_result");
  20423. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRING, (short)0);
  20424. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  20425. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  20426. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  20427. private byte[] success;
  20428. private com.evernote.edam.error.EDAMUserException userException;
  20429. private com.evernote.edam.error.EDAMSystemException systemException;
  20430. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  20431. // isset id assignments
  20432. public getResourceRecognition_result() {
  20433. }
  20434. /**
  20435. * Performs a deep copy on <i>other</i>.
  20436. */
  20437. public getResourceRecognition_result(getResourceRecognition_result other) {
  20438. if (other.isSetSuccess()) {
  20439. this.success = new byte[other.success.length];
  20440. System.arraycopy(other.success, 0, success, 0, other.success.length);
  20441. }
  20442. if (other.isSetUserException()) {
  20443. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  20444. }
  20445. if (other.isSetSystemException()) {
  20446. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  20447. }
  20448. if (other.isSetNotFoundException()) {
  20449. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  20450. }
  20451. }
  20452. public getResourceRecognition_result deepCopy() {
  20453. return new getResourceRecognition_result(this);
  20454. }
  20455. public void clear() {
  20456. this.success = null;
  20457. this.userException = null;
  20458. this.systemException = null;
  20459. this.notFoundException = null;
  20460. }
  20461. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  20462. public boolean isSetSuccess() {
  20463. return this.success != null;
  20464. }
  20465. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  20466. public boolean isSetUserException() {
  20467. return this.userException != null;
  20468. }
  20469. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  20470. public boolean isSetSystemException() {
  20471. return this.systemException != null;
  20472. }
  20473. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  20474. public boolean isSetNotFoundException() {
  20475. return this.notFoundException != null;
  20476. }
  20477. public int compareTo(getResourceRecognition_result other) {
  20478. if (!getClass().equals(other.getClass())) {
  20479. return getClass().getName().compareTo(other.getClass().getName());
  20480. }
  20481. int lastComparison = 0;
  20482. getResourceRecognition_result typedOther = (getResourceRecognition_result)other;
  20483. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  20484. if (lastComparison != 0) {
  20485. return lastComparison;
  20486. }
  20487. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  20488. if (lastComparison != 0) {
  20489. return lastComparison;
  20490. }
  20491. }
  20492. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  20493. if (lastComparison != 0) {
  20494. return lastComparison;
  20495. }
  20496. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  20497. if (lastComparison != 0) {
  20498. return lastComparison;
  20499. }
  20500. }
  20501. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  20502. if (lastComparison != 0) {
  20503. return lastComparison;
  20504. }
  20505. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  20506. if (lastComparison != 0) {
  20507. return lastComparison;
  20508. }
  20509. }
  20510. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  20511. if (lastComparison != 0) {
  20512. return lastComparison;
  20513. }
  20514. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  20515. if (lastComparison != 0) {
  20516. return lastComparison;
  20517. }
  20518. }
  20519. return 0;
  20520. }
  20521. public void read(TProtocol iprot) throws TException {
  20522. TField field;
  20523. iprot.readStructBegin();
  20524. while (true)
  20525. {
  20526. field = iprot.readFieldBegin();
  20527. if (field.type == TType.STOP) {
  20528. break;
  20529. }
  20530. switch (field.id) {
  20531. case 0: // SUCCESS
  20532. if (field.type == TType.STRING) {
  20533. this.success = iprot.readBytes();
  20534. } else {
  20535. TProtocolUtil.skip(iprot, field.type);
  20536. }
  20537. break;
  20538. case 1: // USER_EXCEPTION
  20539. if (field.type == TType.STRUCT) {
  20540. this.userException = new com.evernote.edam.error.EDAMUserException();
  20541. this.userException.read(iprot);
  20542. } else {
  20543. TProtocolUtil.skip(iprot, field.type);
  20544. }
  20545. break;
  20546. case 2: // SYSTEM_EXCEPTION
  20547. if (field.type == TType.STRUCT) {
  20548. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  20549. this.systemException.read(iprot);
  20550. } else {
  20551. TProtocolUtil.skip(iprot, field.type);
  20552. }
  20553. break;
  20554. case 3: // NOT_FOUND_EXCEPTION
  20555. if (field.type == TType.STRUCT) {
  20556. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  20557. this.notFoundException.read(iprot);
  20558. } else {
  20559. TProtocolUtil.skip(iprot, field.type);
  20560. }
  20561. break;
  20562. default:
  20563. TProtocolUtil.skip(iprot, field.type);
  20564. }
  20565. iprot.readFieldEnd();
  20566. }
  20567. iprot.readStructEnd();
  20568. validate();
  20569. }
  20570. public void write(TProtocol oprot) throws TException {
  20571. oprot.writeStructBegin(STRUCT_DESC);
  20572. if (this.isSetSuccess()) {
  20573. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  20574. oprot.writeBinary(this.success);
  20575. oprot.writeFieldEnd();
  20576. } else if (this.isSetUserException()) {
  20577. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  20578. this.userException.write(oprot);
  20579. oprot.writeFieldEnd();
  20580. } else if (this.isSetSystemException()) {
  20581. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  20582. this.systemException.write(oprot);
  20583. oprot.writeFieldEnd();
  20584. } else if (this.isSetNotFoundException()) {
  20585. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  20586. this.notFoundException.write(oprot);
  20587. oprot.writeFieldEnd();
  20588. }
  20589. oprot.writeFieldStop();
  20590. oprot.writeStructEnd();
  20591. }
  20592. public void validate() throws TException {
  20593. // check for required fields
  20594. }
  20595. }
  20596. private static class getResourceAlternateData_args implements TBase<getResourceAlternateData_args>, java.io.Serializable, Cloneable {
  20597. private static final TStruct STRUCT_DESC = new TStruct("getResourceAlternateData_args");
  20598. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  20599. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  20600. private String authenticationToken;
  20601. private String guid;
  20602. // isset id assignments
  20603. public getResourceAlternateData_args() {
  20604. }
  20605. /**
  20606. * Performs a deep copy on <i>other</i>.
  20607. */
  20608. public getResourceAlternateData_args(getResourceAlternateData_args other) {
  20609. if (other.isSetAuthenticationToken()) {
  20610. this.authenticationToken = other.authenticationToken;
  20611. }
  20612. if (other.isSetGuid()) {
  20613. this.guid = other.guid;
  20614. }
  20615. }
  20616. public getResourceAlternateData_args deepCopy() {
  20617. return new getResourceAlternateData_args(this);
  20618. }
  20619. public void clear() {
  20620. this.authenticationToken = null;
  20621. this.guid = null;
  20622. }
  20623. public void setAuthenticationToken(String authenticationToken) {
  20624. this.authenticationToken = authenticationToken;
  20625. }
  20626. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  20627. public boolean isSetAuthenticationToken() {
  20628. return this.authenticationToken != null;
  20629. }
  20630. public void setGuid(String guid) {
  20631. this.guid = guid;
  20632. }
  20633. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  20634. public boolean isSetGuid() {
  20635. return this.guid != null;
  20636. }
  20637. public int compareTo(getResourceAlternateData_args other) {
  20638. if (!getClass().equals(other.getClass())) {
  20639. return getClass().getName().compareTo(other.getClass().getName());
  20640. }
  20641. int lastComparison = 0;
  20642. getResourceAlternateData_args typedOther = (getResourceAlternateData_args)other;
  20643. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  20644. if (lastComparison != 0) {
  20645. return lastComparison;
  20646. }
  20647. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  20648. if (lastComparison != 0) {
  20649. return lastComparison;
  20650. }
  20651. }
  20652. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  20653. if (lastComparison != 0) {
  20654. return lastComparison;
  20655. }
  20656. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  20657. if (lastComparison != 0) {
  20658. return lastComparison;
  20659. }
  20660. }
  20661. return 0;
  20662. }
  20663. public void read(TProtocol iprot) throws TException {
  20664. TField field;
  20665. iprot.readStructBegin();
  20666. while (true)
  20667. {
  20668. field = iprot.readFieldBegin();
  20669. if (field.type == TType.STOP) {
  20670. break;
  20671. }
  20672. switch (field.id) {
  20673. case 1: // AUTHENTICATION_TOKEN
  20674. if (field.type == TType.STRING) {
  20675. this.authenticationToken = iprot.readString();
  20676. } else {
  20677. TProtocolUtil.skip(iprot, field.type);
  20678. }
  20679. break;
  20680. case 2: // GUID
  20681. if (field.type == TType.STRING) {
  20682. this.guid = iprot.readString();
  20683. } else {
  20684. TProtocolUtil.skip(iprot, field.type);
  20685. }
  20686. break;
  20687. default:
  20688. TProtocolUtil.skip(iprot, field.type);
  20689. }
  20690. iprot.readFieldEnd();
  20691. }
  20692. iprot.readStructEnd();
  20693. validate();
  20694. }
  20695. public void write(TProtocol oprot) throws TException {
  20696. validate();
  20697. oprot.writeStructBegin(STRUCT_DESC);
  20698. if (this.authenticationToken != null) {
  20699. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  20700. oprot.writeString(this.authenticationToken);
  20701. oprot.writeFieldEnd();
  20702. }
  20703. if (this.guid != null) {
  20704. oprot.writeFieldBegin(GUID_FIELD_DESC);
  20705. oprot.writeString(this.guid);
  20706. oprot.writeFieldEnd();
  20707. }
  20708. oprot.writeFieldStop();
  20709. oprot.writeStructEnd();
  20710. }
  20711. public void validate() throws TException {
  20712. // check for required fields
  20713. }
  20714. }
  20715. private static class getResourceAlternateData_result implements TBase<getResourceAlternateData_result>, java.io.Serializable, Cloneable {
  20716. private static final TStruct STRUCT_DESC = new TStruct("getResourceAlternateData_result");
  20717. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRING, (short)0);
  20718. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  20719. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  20720. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  20721. private byte[] success;
  20722. private com.evernote.edam.error.EDAMUserException userException;
  20723. private com.evernote.edam.error.EDAMSystemException systemException;
  20724. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  20725. // isset id assignments
  20726. public getResourceAlternateData_result() {
  20727. }
  20728. /**
  20729. * Performs a deep copy on <i>other</i>.
  20730. */
  20731. public getResourceAlternateData_result(getResourceAlternateData_result other) {
  20732. if (other.isSetSuccess()) {
  20733. this.success = new byte[other.success.length];
  20734. System.arraycopy(other.success, 0, success, 0, other.success.length);
  20735. }
  20736. if (other.isSetUserException()) {
  20737. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  20738. }
  20739. if (other.isSetSystemException()) {
  20740. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  20741. }
  20742. if (other.isSetNotFoundException()) {
  20743. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  20744. }
  20745. }
  20746. public getResourceAlternateData_result deepCopy() {
  20747. return new getResourceAlternateData_result(this);
  20748. }
  20749. public void clear() {
  20750. this.success = null;
  20751. this.userException = null;
  20752. this.systemException = null;
  20753. this.notFoundException = null;
  20754. }
  20755. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  20756. public boolean isSetSuccess() {
  20757. return this.success != null;
  20758. }
  20759. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  20760. public boolean isSetUserException() {
  20761. return this.userException != null;
  20762. }
  20763. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  20764. public boolean isSetSystemException() {
  20765. return this.systemException != null;
  20766. }
  20767. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  20768. public boolean isSetNotFoundException() {
  20769. return this.notFoundException != null;
  20770. }
  20771. public int compareTo(getResourceAlternateData_result other) {
  20772. if (!getClass().equals(other.getClass())) {
  20773. return getClass().getName().compareTo(other.getClass().getName());
  20774. }
  20775. int lastComparison = 0;
  20776. getResourceAlternateData_result typedOther = (getResourceAlternateData_result)other;
  20777. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  20778. if (lastComparison != 0) {
  20779. return lastComparison;
  20780. }
  20781. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  20782. if (lastComparison != 0) {
  20783. return lastComparison;
  20784. }
  20785. }
  20786. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  20787. if (lastComparison != 0) {
  20788. return lastComparison;
  20789. }
  20790. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  20791. if (lastComparison != 0) {
  20792. return lastComparison;
  20793. }
  20794. }
  20795. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  20796. if (lastComparison != 0) {
  20797. return lastComparison;
  20798. }
  20799. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  20800. if (lastComparison != 0) {
  20801. return lastComparison;
  20802. }
  20803. }
  20804. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  20805. if (lastComparison != 0) {
  20806. return lastComparison;
  20807. }
  20808. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  20809. if (lastComparison != 0) {
  20810. return lastComparison;
  20811. }
  20812. }
  20813. return 0;
  20814. }
  20815. public void read(TProtocol iprot) throws TException {
  20816. TField field;
  20817. iprot.readStructBegin();
  20818. while (true)
  20819. {
  20820. field = iprot.readFieldBegin();
  20821. if (field.type == TType.STOP) {
  20822. break;
  20823. }
  20824. switch (field.id) {
  20825. case 0: // SUCCESS
  20826. if (field.type == TType.STRING) {
  20827. this.success = iprot.readBytes();
  20828. } else {
  20829. TProtocolUtil.skip(iprot, field.type);
  20830. }
  20831. break;
  20832. case 1: // USER_EXCEPTION
  20833. if (field.type == TType.STRUCT) {
  20834. this.userException = new com.evernote.edam.error.EDAMUserException();
  20835. this.userException.read(iprot);
  20836. } else {
  20837. TProtocolUtil.skip(iprot, field.type);
  20838. }
  20839. break;
  20840. case 2: // SYSTEM_EXCEPTION
  20841. if (field.type == TType.STRUCT) {
  20842. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  20843. this.systemException.read(iprot);
  20844. } else {
  20845. TProtocolUtil.skip(iprot, field.type);
  20846. }
  20847. break;
  20848. case 3: // NOT_FOUND_EXCEPTION
  20849. if (field.type == TType.STRUCT) {
  20850. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  20851. this.notFoundException.read(iprot);
  20852. } else {
  20853. TProtocolUtil.skip(iprot, field.type);
  20854. }
  20855. break;
  20856. default:
  20857. TProtocolUtil.skip(iprot, field.type);
  20858. }
  20859. iprot.readFieldEnd();
  20860. }
  20861. iprot.readStructEnd();
  20862. validate();
  20863. }
  20864. public void write(TProtocol oprot) throws TException {
  20865. oprot.writeStructBegin(STRUCT_DESC);
  20866. if (this.isSetSuccess()) {
  20867. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  20868. oprot.writeBinary(this.success);
  20869. oprot.writeFieldEnd();
  20870. } else if (this.isSetUserException()) {
  20871. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  20872. this.userException.write(oprot);
  20873. oprot.writeFieldEnd();
  20874. } else if (this.isSetSystemException()) {
  20875. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  20876. this.systemException.write(oprot);
  20877. oprot.writeFieldEnd();
  20878. } else if (this.isSetNotFoundException()) {
  20879. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  20880. this.notFoundException.write(oprot);
  20881. oprot.writeFieldEnd();
  20882. }
  20883. oprot.writeFieldStop();
  20884. oprot.writeStructEnd();
  20885. }
  20886. public void validate() throws TException {
  20887. // check for required fields
  20888. }
  20889. }
  20890. private static class getResourceAttributes_args implements TBase<getResourceAttributes_args>, java.io.Serializable, Cloneable {
  20891. private static final TStruct STRUCT_DESC = new TStruct("getResourceAttributes_args");
  20892. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  20893. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  20894. private String authenticationToken;
  20895. private String guid;
  20896. // isset id assignments
  20897. public getResourceAttributes_args() {
  20898. }
  20899. /**
  20900. * Performs a deep copy on <i>other</i>.
  20901. */
  20902. public getResourceAttributes_args(getResourceAttributes_args other) {
  20903. if (other.isSetAuthenticationToken()) {
  20904. this.authenticationToken = other.authenticationToken;
  20905. }
  20906. if (other.isSetGuid()) {
  20907. this.guid = other.guid;
  20908. }
  20909. }
  20910. public getResourceAttributes_args deepCopy() {
  20911. return new getResourceAttributes_args(this);
  20912. }
  20913. public void clear() {
  20914. this.authenticationToken = null;
  20915. this.guid = null;
  20916. }
  20917. public void setAuthenticationToken(String authenticationToken) {
  20918. this.authenticationToken = authenticationToken;
  20919. }
  20920. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  20921. public boolean isSetAuthenticationToken() {
  20922. return this.authenticationToken != null;
  20923. }
  20924. public void setGuid(String guid) {
  20925. this.guid = guid;
  20926. }
  20927. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  20928. public boolean isSetGuid() {
  20929. return this.guid != null;
  20930. }
  20931. public int compareTo(getResourceAttributes_args other) {
  20932. if (!getClass().equals(other.getClass())) {
  20933. return getClass().getName().compareTo(other.getClass().getName());
  20934. }
  20935. int lastComparison = 0;
  20936. getResourceAttributes_args typedOther = (getResourceAttributes_args)other;
  20937. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  20938. if (lastComparison != 0) {
  20939. return lastComparison;
  20940. }
  20941. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  20942. if (lastComparison != 0) {
  20943. return lastComparison;
  20944. }
  20945. }
  20946. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  20947. if (lastComparison != 0) {
  20948. return lastComparison;
  20949. }
  20950. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  20951. if (lastComparison != 0) {
  20952. return lastComparison;
  20953. }
  20954. }
  20955. return 0;
  20956. }
  20957. public void read(TProtocol iprot) throws TException {
  20958. TField field;
  20959. iprot.readStructBegin();
  20960. while (true)
  20961. {
  20962. field = iprot.readFieldBegin();
  20963. if (field.type == TType.STOP) {
  20964. break;
  20965. }
  20966. switch (field.id) {
  20967. case 1: // AUTHENTICATION_TOKEN
  20968. if (field.type == TType.STRING) {
  20969. this.authenticationToken = iprot.readString();
  20970. } else {
  20971. TProtocolUtil.skip(iprot, field.type);
  20972. }
  20973. break;
  20974. case 2: // GUID
  20975. if (field.type == TType.STRING) {
  20976. this.guid = iprot.readString();
  20977. } else {
  20978. TProtocolUtil.skip(iprot, field.type);
  20979. }
  20980. break;
  20981. default:
  20982. TProtocolUtil.skip(iprot, field.type);
  20983. }
  20984. iprot.readFieldEnd();
  20985. }
  20986. iprot.readStructEnd();
  20987. validate();
  20988. }
  20989. public void write(TProtocol oprot) throws TException {
  20990. validate();
  20991. oprot.writeStructBegin(STRUCT_DESC);
  20992. if (this.authenticationToken != null) {
  20993. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  20994. oprot.writeString(this.authenticationToken);
  20995. oprot.writeFieldEnd();
  20996. }
  20997. if (this.guid != null) {
  20998. oprot.writeFieldBegin(GUID_FIELD_DESC);
  20999. oprot.writeString(this.guid);
  21000. oprot.writeFieldEnd();
  21001. }
  21002. oprot.writeFieldStop();
  21003. oprot.writeStructEnd();
  21004. }
  21005. public void validate() throws TException {
  21006. // check for required fields
  21007. }
  21008. }
  21009. private static class getResourceAttributes_result implements TBase<getResourceAttributes_result>, java.io.Serializable, Cloneable {
  21010. private static final TStruct STRUCT_DESC = new TStruct("getResourceAttributes_result");
  21011. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  21012. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  21013. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)2);
  21014. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)3);
  21015. private com.evernote.edam.type.ResourceAttributes success;
  21016. private com.evernote.edam.error.EDAMUserException userException;
  21017. private com.evernote.edam.error.EDAMSystemException systemException;
  21018. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  21019. // isset id assignments
  21020. public getResourceAttributes_result() {
  21021. }
  21022. /**
  21023. * Performs a deep copy on <i>other</i>.
  21024. */
  21025. public getResourceAttributes_result(getResourceAttributes_result other) {
  21026. if (other.isSetSuccess()) {
  21027. this.success = new com.evernote.edam.type.ResourceAttributes(other.success);
  21028. }
  21029. if (other.isSetUserException()) {
  21030. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  21031. }
  21032. if (other.isSetSystemException()) {
  21033. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  21034. }
  21035. if (other.isSetNotFoundException()) {
  21036. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  21037. }
  21038. }
  21039. public getResourceAttributes_result deepCopy() {
  21040. return new getResourceAttributes_result(this);
  21041. }
  21042. public void clear() {
  21043. this.success = null;
  21044. this.userException = null;
  21045. this.systemException = null;
  21046. this.notFoundException = null;
  21047. }
  21048. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  21049. public boolean isSetSuccess() {
  21050. return this.success != null;
  21051. }
  21052. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  21053. public boolean isSetUserException() {
  21054. return this.userException != null;
  21055. }
  21056. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  21057. public boolean isSetSystemException() {
  21058. return this.systemException != null;
  21059. }
  21060. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  21061. public boolean isSetNotFoundException() {
  21062. return this.notFoundException != null;
  21063. }
  21064. public int compareTo(getResourceAttributes_result other) {
  21065. if (!getClass().equals(other.getClass())) {
  21066. return getClass().getName().compareTo(other.getClass().getName());
  21067. }
  21068. int lastComparison = 0;
  21069. getResourceAttributes_result typedOther = (getResourceAttributes_result)other;
  21070. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  21071. if (lastComparison != 0) {
  21072. return lastComparison;
  21073. }
  21074. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  21075. if (lastComparison != 0) {
  21076. return lastComparison;
  21077. }
  21078. }
  21079. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  21080. if (lastComparison != 0) {
  21081. return lastComparison;
  21082. }
  21083. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  21084. if (lastComparison != 0) {
  21085. return lastComparison;
  21086. }
  21087. }
  21088. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  21089. if (lastComparison != 0) {
  21090. return lastComparison;
  21091. }
  21092. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  21093. if (lastComparison != 0) {
  21094. return lastComparison;
  21095. }
  21096. }
  21097. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  21098. if (lastComparison != 0) {
  21099. return lastComparison;
  21100. }
  21101. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  21102. if (lastComparison != 0) {
  21103. return lastComparison;
  21104. }
  21105. }
  21106. return 0;
  21107. }
  21108. public void read(TProtocol iprot) throws TException {
  21109. TField field;
  21110. iprot.readStructBegin();
  21111. while (true)
  21112. {
  21113. field = iprot.readFieldBegin();
  21114. if (field.type == TType.STOP) {
  21115. break;
  21116. }
  21117. switch (field.id) {
  21118. case 0: // SUCCESS
  21119. if (field.type == TType.STRUCT) {
  21120. this.success = new com.evernote.edam.type.ResourceAttributes();
  21121. this.success.read(iprot);
  21122. } else {
  21123. TProtocolUtil.skip(iprot, field.type);
  21124. }
  21125. break;
  21126. case 1: // USER_EXCEPTION
  21127. if (field.type == TType.STRUCT) {
  21128. this.userException = new com.evernote.edam.error.EDAMUserException();
  21129. this.userException.read(iprot);
  21130. } else {
  21131. TProtocolUtil.skip(iprot, field.type);
  21132. }
  21133. break;
  21134. case 2: // SYSTEM_EXCEPTION
  21135. if (field.type == TType.STRUCT) {
  21136. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  21137. this.systemException.read(iprot);
  21138. } else {
  21139. TProtocolUtil.skip(iprot, field.type);
  21140. }
  21141. break;
  21142. case 3: // NOT_FOUND_EXCEPTION
  21143. if (field.type == TType.STRUCT) {
  21144. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  21145. this.notFoundException.read(iprot);
  21146. } else {
  21147. TProtocolUtil.skip(iprot, field.type);
  21148. }
  21149. break;
  21150. default:
  21151. TProtocolUtil.skip(iprot, field.type);
  21152. }
  21153. iprot.readFieldEnd();
  21154. }
  21155. iprot.readStructEnd();
  21156. validate();
  21157. }
  21158. public void write(TProtocol oprot) throws TException {
  21159. oprot.writeStructBegin(STRUCT_DESC);
  21160. if (this.isSetSuccess()) {
  21161. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  21162. this.success.write(oprot);
  21163. oprot.writeFieldEnd();
  21164. } else if (this.isSetUserException()) {
  21165. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  21166. this.userException.write(oprot);
  21167. oprot.writeFieldEnd();
  21168. } else if (this.isSetSystemException()) {
  21169. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  21170. this.systemException.write(oprot);
  21171. oprot.writeFieldEnd();
  21172. } else if (this.isSetNotFoundException()) {
  21173. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  21174. this.notFoundException.write(oprot);
  21175. oprot.writeFieldEnd();
  21176. }
  21177. oprot.writeFieldStop();
  21178. oprot.writeStructEnd();
  21179. }
  21180. public void validate() throws TException {
  21181. // check for required fields
  21182. }
  21183. }
  21184. private static class getPublicNotebook_args implements TBase<getPublicNotebook_args>, java.io.Serializable, Cloneable {
  21185. private static final TStruct STRUCT_DESC = new TStruct("getPublicNotebook_args");
  21186. private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I32, (short)1);
  21187. private static final TField PUBLIC_URI_FIELD_DESC = new TField("publicUri", TType.STRING, (short)2);
  21188. private int userId;
  21189. private String publicUri;
  21190. // isset id assignments
  21191. private static final int __USERID_ISSET_ID = 0;
  21192. private boolean[] __isset_vector = new boolean[1];
  21193. public getPublicNotebook_args() {
  21194. }
  21195. /**
  21196. * Performs a deep copy on <i>other</i>.
  21197. */
  21198. public getPublicNotebook_args(getPublicNotebook_args other) {
  21199. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  21200. this.userId = other.userId;
  21201. if (other.isSetPublicUri()) {
  21202. this.publicUri = other.publicUri;
  21203. }
  21204. }
  21205. public getPublicNotebook_args deepCopy() {
  21206. return new getPublicNotebook_args(this);
  21207. }
  21208. public void clear() {
  21209. setUserIdIsSet(false);
  21210. this.userId = 0;
  21211. this.publicUri = null;
  21212. }
  21213. public void setUserId(int userId) {
  21214. this.userId = userId;
  21215. setUserIdIsSet(true);
  21216. }
  21217. /** Returns true if field userId is set (has been asigned a value) and false otherwise */
  21218. public boolean isSetUserId() {
  21219. return __isset_vector[__USERID_ISSET_ID];
  21220. }
  21221. public void setUserIdIsSet(boolean value) {
  21222. __isset_vector[__USERID_ISSET_ID] = value;
  21223. }
  21224. public void setPublicUri(String publicUri) {
  21225. this.publicUri = publicUri;
  21226. }
  21227. /** Returns true if field publicUri is set (has been asigned a value) and false otherwise */
  21228. public boolean isSetPublicUri() {
  21229. return this.publicUri != null;
  21230. }
  21231. public int compareTo(getPublicNotebook_args other) {
  21232. if (!getClass().equals(other.getClass())) {
  21233. return getClass().getName().compareTo(other.getClass().getName());
  21234. }
  21235. int lastComparison = 0;
  21236. getPublicNotebook_args typedOther = (getPublicNotebook_args)other;
  21237. lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
  21238. if (lastComparison != 0) {
  21239. return lastComparison;
  21240. }
  21241. if (isSetUserId()) { lastComparison = TBaseHelper.compareTo(this.userId, typedOther.userId);
  21242. if (lastComparison != 0) {
  21243. return lastComparison;
  21244. }
  21245. }
  21246. lastComparison = Boolean.valueOf(isSetPublicUri()).compareTo(typedOther.isSetPublicUri());
  21247. if (lastComparison != 0) {
  21248. return lastComparison;
  21249. }
  21250. if (isSetPublicUri()) { lastComparison = TBaseHelper.compareTo(this.publicUri, typedOther.publicUri);
  21251. if (lastComparison != 0) {
  21252. return lastComparison;
  21253. }
  21254. }
  21255. return 0;
  21256. }
  21257. public void read(TProtocol iprot) throws TException {
  21258. TField field;
  21259. iprot.readStructBegin();
  21260. while (true)
  21261. {
  21262. field = iprot.readFieldBegin();
  21263. if (field.type == TType.STOP) {
  21264. break;
  21265. }
  21266. switch (field.id) {
  21267. case 1: // USER_ID
  21268. if (field.type == TType.I32) {
  21269. this.userId = iprot.readI32();
  21270. setUserIdIsSet(true);
  21271. } else {
  21272. TProtocolUtil.skip(iprot, field.type);
  21273. }
  21274. break;
  21275. case 2: // PUBLIC_URI
  21276. if (field.type == TType.STRING) {
  21277. this.publicUri = iprot.readString();
  21278. } else {
  21279. TProtocolUtil.skip(iprot, field.type);
  21280. }
  21281. break;
  21282. default:
  21283. TProtocolUtil.skip(iprot, field.type);
  21284. }
  21285. iprot.readFieldEnd();
  21286. }
  21287. iprot.readStructEnd();
  21288. validate();
  21289. }
  21290. public void write(TProtocol oprot) throws TException {
  21291. validate();
  21292. oprot.writeStructBegin(STRUCT_DESC);
  21293. oprot.writeFieldBegin(USER_ID_FIELD_DESC);
  21294. oprot.writeI32(this.userId);
  21295. oprot.writeFieldEnd();
  21296. if (this.publicUri != null) {
  21297. oprot.writeFieldBegin(PUBLIC_URI_FIELD_DESC);
  21298. oprot.writeString(this.publicUri);
  21299. oprot.writeFieldEnd();
  21300. }
  21301. oprot.writeFieldStop();
  21302. oprot.writeStructEnd();
  21303. }
  21304. public void validate() throws TException {
  21305. // check for required fields
  21306. }
  21307. }
  21308. private static class getPublicNotebook_result implements TBase<getPublicNotebook_result>, java.io.Serializable, Cloneable {
  21309. private static final TStruct STRUCT_DESC = new TStruct("getPublicNotebook_result");
  21310. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  21311. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)1);
  21312. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)2);
  21313. private com.evernote.edam.type.Notebook success;
  21314. private com.evernote.edam.error.EDAMSystemException systemException;
  21315. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  21316. // isset id assignments
  21317. public getPublicNotebook_result() {
  21318. }
  21319. /**
  21320. * Performs a deep copy on <i>other</i>.
  21321. */
  21322. public getPublicNotebook_result(getPublicNotebook_result other) {
  21323. if (other.isSetSuccess()) {
  21324. this.success = new com.evernote.edam.type.Notebook(other.success);
  21325. }
  21326. if (other.isSetSystemException()) {
  21327. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  21328. }
  21329. if (other.isSetNotFoundException()) {
  21330. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  21331. }
  21332. }
  21333. public getPublicNotebook_result deepCopy() {
  21334. return new getPublicNotebook_result(this);
  21335. }
  21336. public void clear() {
  21337. this.success = null;
  21338. this.systemException = null;
  21339. this.notFoundException = null;
  21340. }
  21341. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  21342. public boolean isSetSuccess() {
  21343. return this.success != null;
  21344. }
  21345. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  21346. public boolean isSetSystemException() {
  21347. return this.systemException != null;
  21348. }
  21349. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  21350. public boolean isSetNotFoundException() {
  21351. return this.notFoundException != null;
  21352. }
  21353. public int compareTo(getPublicNotebook_result other) {
  21354. if (!getClass().equals(other.getClass())) {
  21355. return getClass().getName().compareTo(other.getClass().getName());
  21356. }
  21357. int lastComparison = 0;
  21358. getPublicNotebook_result typedOther = (getPublicNotebook_result)other;
  21359. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  21360. if (lastComparison != 0) {
  21361. return lastComparison;
  21362. }
  21363. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  21364. if (lastComparison != 0) {
  21365. return lastComparison;
  21366. }
  21367. }
  21368. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  21369. if (lastComparison != 0) {
  21370. return lastComparison;
  21371. }
  21372. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  21373. if (lastComparison != 0) {
  21374. return lastComparison;
  21375. }
  21376. }
  21377. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  21378. if (lastComparison != 0) {
  21379. return lastComparison;
  21380. }
  21381. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  21382. if (lastComparison != 0) {
  21383. return lastComparison;
  21384. }
  21385. }
  21386. return 0;
  21387. }
  21388. public void read(TProtocol iprot) throws TException {
  21389. TField field;
  21390. iprot.readStructBegin();
  21391. while (true)
  21392. {
  21393. field = iprot.readFieldBegin();
  21394. if (field.type == TType.STOP) {
  21395. break;
  21396. }
  21397. switch (field.id) {
  21398. case 0: // SUCCESS
  21399. if (field.type == TType.STRUCT) {
  21400. this.success = new com.evernote.edam.type.Notebook();
  21401. this.success.read(iprot);
  21402. } else {
  21403. TProtocolUtil.skip(iprot, field.type);
  21404. }
  21405. break;
  21406. case 1: // SYSTEM_EXCEPTION
  21407. if (field.type == TType.STRUCT) {
  21408. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  21409. this.systemException.read(iprot);
  21410. } else {
  21411. TProtocolUtil.skip(iprot, field.type);
  21412. }
  21413. break;
  21414. case 2: // NOT_FOUND_EXCEPTION
  21415. if (field.type == TType.STRUCT) {
  21416. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  21417. this.notFoundException.read(iprot);
  21418. } else {
  21419. TProtocolUtil.skip(iprot, field.type);
  21420. }
  21421. break;
  21422. default:
  21423. TProtocolUtil.skip(iprot, field.type);
  21424. }
  21425. iprot.readFieldEnd();
  21426. }
  21427. iprot.readStructEnd();
  21428. validate();
  21429. }
  21430. public void write(TProtocol oprot) throws TException {
  21431. oprot.writeStructBegin(STRUCT_DESC);
  21432. if (this.isSetSuccess()) {
  21433. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  21434. this.success.write(oprot);
  21435. oprot.writeFieldEnd();
  21436. } else if (this.isSetSystemException()) {
  21437. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  21438. this.systemException.write(oprot);
  21439. oprot.writeFieldEnd();
  21440. } else if (this.isSetNotFoundException()) {
  21441. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  21442. this.notFoundException.write(oprot);
  21443. oprot.writeFieldEnd();
  21444. }
  21445. oprot.writeFieldStop();
  21446. oprot.writeStructEnd();
  21447. }
  21448. public void validate() throws TException {
  21449. // check for required fields
  21450. }
  21451. }
  21452. private static class createSharedNotebook_args implements TBase<createSharedNotebook_args>, java.io.Serializable, Cloneable {
  21453. private static final TStruct STRUCT_DESC = new TStruct("createSharedNotebook_args");
  21454. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  21455. private static final TField SHARED_NOTEBOOK_FIELD_DESC = new TField("sharedNotebook", TType.STRUCT, (short)2);
  21456. private String authenticationToken;
  21457. private com.evernote.edam.type.SharedNotebook sharedNotebook;
  21458. // isset id assignments
  21459. public createSharedNotebook_args() {
  21460. }
  21461. /**
  21462. * Performs a deep copy on <i>other</i>.
  21463. */
  21464. public createSharedNotebook_args(createSharedNotebook_args other) {
  21465. if (other.isSetAuthenticationToken()) {
  21466. this.authenticationToken = other.authenticationToken;
  21467. }
  21468. if (other.isSetSharedNotebook()) {
  21469. this.sharedNotebook = new com.evernote.edam.type.SharedNotebook(other.sharedNotebook);
  21470. }
  21471. }
  21472. public createSharedNotebook_args deepCopy() {
  21473. return new createSharedNotebook_args(this);
  21474. }
  21475. public void clear() {
  21476. this.authenticationToken = null;
  21477. this.sharedNotebook = null;
  21478. }
  21479. public void setAuthenticationToken(String authenticationToken) {
  21480. this.authenticationToken = authenticationToken;
  21481. }
  21482. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  21483. public boolean isSetAuthenticationToken() {
  21484. return this.authenticationToken != null;
  21485. }
  21486. public void setSharedNotebook(com.evernote.edam.type.SharedNotebook sharedNotebook) {
  21487. this.sharedNotebook = sharedNotebook;
  21488. }
  21489. /** Returns true if field sharedNotebook is set (has been asigned a value) and false otherwise */
  21490. public boolean isSetSharedNotebook() {
  21491. return this.sharedNotebook != null;
  21492. }
  21493. public int compareTo(createSharedNotebook_args other) {
  21494. if (!getClass().equals(other.getClass())) {
  21495. return getClass().getName().compareTo(other.getClass().getName());
  21496. }
  21497. int lastComparison = 0;
  21498. createSharedNotebook_args typedOther = (createSharedNotebook_args)other;
  21499. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  21500. if (lastComparison != 0) {
  21501. return lastComparison;
  21502. }
  21503. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  21504. if (lastComparison != 0) {
  21505. return lastComparison;
  21506. }
  21507. }
  21508. lastComparison = Boolean.valueOf(isSetSharedNotebook()).compareTo(typedOther.isSetSharedNotebook());
  21509. if (lastComparison != 0) {
  21510. return lastComparison;
  21511. }
  21512. if (isSetSharedNotebook()) { lastComparison = TBaseHelper.compareTo(this.sharedNotebook, typedOther.sharedNotebook);
  21513. if (lastComparison != 0) {
  21514. return lastComparison;
  21515. }
  21516. }
  21517. return 0;
  21518. }
  21519. public void read(TProtocol iprot) throws TException {
  21520. TField field;
  21521. iprot.readStructBegin();
  21522. while (true)
  21523. {
  21524. field = iprot.readFieldBegin();
  21525. if (field.type == TType.STOP) {
  21526. break;
  21527. }
  21528. switch (field.id) {
  21529. case 1: // AUTHENTICATION_TOKEN
  21530. if (field.type == TType.STRING) {
  21531. this.authenticationToken = iprot.readString();
  21532. } else {
  21533. TProtocolUtil.skip(iprot, field.type);
  21534. }
  21535. break;
  21536. case 2: // SHARED_NOTEBOOK
  21537. if (field.type == TType.STRUCT) {
  21538. this.sharedNotebook = new com.evernote.edam.type.SharedNotebook();
  21539. this.sharedNotebook.read(iprot);
  21540. } else {
  21541. TProtocolUtil.skip(iprot, field.type);
  21542. }
  21543. break;
  21544. default:
  21545. TProtocolUtil.skip(iprot, field.type);
  21546. }
  21547. iprot.readFieldEnd();
  21548. }
  21549. iprot.readStructEnd();
  21550. validate();
  21551. }
  21552. public void write(TProtocol oprot) throws TException {
  21553. validate();
  21554. oprot.writeStructBegin(STRUCT_DESC);
  21555. if (this.authenticationToken != null) {
  21556. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  21557. oprot.writeString(this.authenticationToken);
  21558. oprot.writeFieldEnd();
  21559. }
  21560. if (this.sharedNotebook != null) {
  21561. oprot.writeFieldBegin(SHARED_NOTEBOOK_FIELD_DESC);
  21562. this.sharedNotebook.write(oprot);
  21563. oprot.writeFieldEnd();
  21564. }
  21565. oprot.writeFieldStop();
  21566. oprot.writeStructEnd();
  21567. }
  21568. public void validate() throws TException {
  21569. // check for required fields
  21570. }
  21571. }
  21572. private static class createSharedNotebook_result implements TBase<createSharedNotebook_result>, java.io.Serializable, Cloneable {
  21573. private static final TStruct STRUCT_DESC = new TStruct("createSharedNotebook_result");
  21574. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  21575. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  21576. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)2);
  21577. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)3);
  21578. private com.evernote.edam.type.SharedNotebook success;
  21579. private com.evernote.edam.error.EDAMUserException userException;
  21580. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  21581. private com.evernote.edam.error.EDAMSystemException systemException;
  21582. // isset id assignments
  21583. public createSharedNotebook_result() {
  21584. }
  21585. /**
  21586. * Performs a deep copy on <i>other</i>.
  21587. */
  21588. public createSharedNotebook_result(createSharedNotebook_result other) {
  21589. if (other.isSetSuccess()) {
  21590. this.success = new com.evernote.edam.type.SharedNotebook(other.success);
  21591. }
  21592. if (other.isSetUserException()) {
  21593. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  21594. }
  21595. if (other.isSetNotFoundException()) {
  21596. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  21597. }
  21598. if (other.isSetSystemException()) {
  21599. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  21600. }
  21601. }
  21602. public createSharedNotebook_result deepCopy() {
  21603. return new createSharedNotebook_result(this);
  21604. }
  21605. public void clear() {
  21606. this.success = null;
  21607. this.userException = null;
  21608. this.notFoundException = null;
  21609. this.systemException = null;
  21610. }
  21611. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  21612. public boolean isSetSuccess() {
  21613. return this.success != null;
  21614. }
  21615. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  21616. public boolean isSetUserException() {
  21617. return this.userException != null;
  21618. }
  21619. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  21620. public boolean isSetNotFoundException() {
  21621. return this.notFoundException != null;
  21622. }
  21623. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  21624. public boolean isSetSystemException() {
  21625. return this.systemException != null;
  21626. }
  21627. public int compareTo(createSharedNotebook_result other) {
  21628. if (!getClass().equals(other.getClass())) {
  21629. return getClass().getName().compareTo(other.getClass().getName());
  21630. }
  21631. int lastComparison = 0;
  21632. createSharedNotebook_result typedOther = (createSharedNotebook_result)other;
  21633. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  21634. if (lastComparison != 0) {
  21635. return lastComparison;
  21636. }
  21637. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  21638. if (lastComparison != 0) {
  21639. return lastComparison;
  21640. }
  21641. }
  21642. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  21643. if (lastComparison != 0) {
  21644. return lastComparison;
  21645. }
  21646. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  21647. if (lastComparison != 0) {
  21648. return lastComparison;
  21649. }
  21650. }
  21651. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  21652. if (lastComparison != 0) {
  21653. return lastComparison;
  21654. }
  21655. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  21656. if (lastComparison != 0) {
  21657. return lastComparison;
  21658. }
  21659. }
  21660. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  21661. if (lastComparison != 0) {
  21662. return lastComparison;
  21663. }
  21664. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  21665. if (lastComparison != 0) {
  21666. return lastComparison;
  21667. }
  21668. }
  21669. return 0;
  21670. }
  21671. public void read(TProtocol iprot) throws TException {
  21672. TField field;
  21673. iprot.readStructBegin();
  21674. while (true)
  21675. {
  21676. field = iprot.readFieldBegin();
  21677. if (field.type == TType.STOP) {
  21678. break;
  21679. }
  21680. switch (field.id) {
  21681. case 0: // SUCCESS
  21682. if (field.type == TType.STRUCT) {
  21683. this.success = new com.evernote.edam.type.SharedNotebook();
  21684. this.success.read(iprot);
  21685. } else {
  21686. TProtocolUtil.skip(iprot, field.type);
  21687. }
  21688. break;
  21689. case 1: // USER_EXCEPTION
  21690. if (field.type == TType.STRUCT) {
  21691. this.userException = new com.evernote.edam.error.EDAMUserException();
  21692. this.userException.read(iprot);
  21693. } else {
  21694. TProtocolUtil.skip(iprot, field.type);
  21695. }
  21696. break;
  21697. case 2: // NOT_FOUND_EXCEPTION
  21698. if (field.type == TType.STRUCT) {
  21699. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  21700. this.notFoundException.read(iprot);
  21701. } else {
  21702. TProtocolUtil.skip(iprot, field.type);
  21703. }
  21704. break;
  21705. case 3: // SYSTEM_EXCEPTION
  21706. if (field.type == TType.STRUCT) {
  21707. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  21708. this.systemException.read(iprot);
  21709. } else {
  21710. TProtocolUtil.skip(iprot, field.type);
  21711. }
  21712. break;
  21713. default:
  21714. TProtocolUtil.skip(iprot, field.type);
  21715. }
  21716. iprot.readFieldEnd();
  21717. }
  21718. iprot.readStructEnd();
  21719. validate();
  21720. }
  21721. public void write(TProtocol oprot) throws TException {
  21722. oprot.writeStructBegin(STRUCT_DESC);
  21723. if (this.isSetSuccess()) {
  21724. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  21725. this.success.write(oprot);
  21726. oprot.writeFieldEnd();
  21727. } else if (this.isSetUserException()) {
  21728. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  21729. this.userException.write(oprot);
  21730. oprot.writeFieldEnd();
  21731. } else if (this.isSetNotFoundException()) {
  21732. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  21733. this.notFoundException.write(oprot);
  21734. oprot.writeFieldEnd();
  21735. } else if (this.isSetSystemException()) {
  21736. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  21737. this.systemException.write(oprot);
  21738. oprot.writeFieldEnd();
  21739. }
  21740. oprot.writeFieldStop();
  21741. oprot.writeStructEnd();
  21742. }
  21743. public void validate() throws TException {
  21744. // check for required fields
  21745. }
  21746. }
  21747. private static class updateSharedNotebook_args implements TBase<updateSharedNotebook_args>, java.io.Serializable, Cloneable {
  21748. private static final TStruct STRUCT_DESC = new TStruct("updateSharedNotebook_args");
  21749. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  21750. private static final TField SHARED_NOTEBOOK_FIELD_DESC = new TField("sharedNotebook", TType.STRUCT, (short)2);
  21751. private String authenticationToken;
  21752. private com.evernote.edam.type.SharedNotebook sharedNotebook;
  21753. // isset id assignments
  21754. public updateSharedNotebook_args() {
  21755. }
  21756. /**
  21757. * Performs a deep copy on <i>other</i>.
  21758. */
  21759. public updateSharedNotebook_args(updateSharedNotebook_args other) {
  21760. if (other.isSetAuthenticationToken()) {
  21761. this.authenticationToken = other.authenticationToken;
  21762. }
  21763. if (other.isSetSharedNotebook()) {
  21764. this.sharedNotebook = new com.evernote.edam.type.SharedNotebook(other.sharedNotebook);
  21765. }
  21766. }
  21767. public updateSharedNotebook_args deepCopy() {
  21768. return new updateSharedNotebook_args(this);
  21769. }
  21770. public void clear() {
  21771. this.authenticationToken = null;
  21772. this.sharedNotebook = null;
  21773. }
  21774. public void setAuthenticationToken(String authenticationToken) {
  21775. this.authenticationToken = authenticationToken;
  21776. }
  21777. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  21778. public boolean isSetAuthenticationToken() {
  21779. return this.authenticationToken != null;
  21780. }
  21781. public void setSharedNotebook(com.evernote.edam.type.SharedNotebook sharedNotebook) {
  21782. this.sharedNotebook = sharedNotebook;
  21783. }
  21784. /** Returns true if field sharedNotebook is set (has been asigned a value) and false otherwise */
  21785. public boolean isSetSharedNotebook() {
  21786. return this.sharedNotebook != null;
  21787. }
  21788. public int compareTo(updateSharedNotebook_args other) {
  21789. if (!getClass().equals(other.getClass())) {
  21790. return getClass().getName().compareTo(other.getClass().getName());
  21791. }
  21792. int lastComparison = 0;
  21793. updateSharedNotebook_args typedOther = (updateSharedNotebook_args)other;
  21794. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  21795. if (lastComparison != 0) {
  21796. return lastComparison;
  21797. }
  21798. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  21799. if (lastComparison != 0) {
  21800. return lastComparison;
  21801. }
  21802. }
  21803. lastComparison = Boolean.valueOf(isSetSharedNotebook()).compareTo(typedOther.isSetSharedNotebook());
  21804. if (lastComparison != 0) {
  21805. return lastComparison;
  21806. }
  21807. if (isSetSharedNotebook()) { lastComparison = TBaseHelper.compareTo(this.sharedNotebook, typedOther.sharedNotebook);
  21808. if (lastComparison != 0) {
  21809. return lastComparison;
  21810. }
  21811. }
  21812. return 0;
  21813. }
  21814. public void read(TProtocol iprot) throws TException {
  21815. TField field;
  21816. iprot.readStructBegin();
  21817. while (true)
  21818. {
  21819. field = iprot.readFieldBegin();
  21820. if (field.type == TType.STOP) {
  21821. break;
  21822. }
  21823. switch (field.id) {
  21824. case 1: // AUTHENTICATION_TOKEN
  21825. if (field.type == TType.STRING) {
  21826. this.authenticationToken = iprot.readString();
  21827. } else {
  21828. TProtocolUtil.skip(iprot, field.type);
  21829. }
  21830. break;
  21831. case 2: // SHARED_NOTEBOOK
  21832. if (field.type == TType.STRUCT) {
  21833. this.sharedNotebook = new com.evernote.edam.type.SharedNotebook();
  21834. this.sharedNotebook.read(iprot);
  21835. } else {
  21836. TProtocolUtil.skip(iprot, field.type);
  21837. }
  21838. break;
  21839. default:
  21840. TProtocolUtil.skip(iprot, field.type);
  21841. }
  21842. iprot.readFieldEnd();
  21843. }
  21844. iprot.readStructEnd();
  21845. validate();
  21846. }
  21847. public void write(TProtocol oprot) throws TException {
  21848. validate();
  21849. oprot.writeStructBegin(STRUCT_DESC);
  21850. if (this.authenticationToken != null) {
  21851. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  21852. oprot.writeString(this.authenticationToken);
  21853. oprot.writeFieldEnd();
  21854. }
  21855. if (this.sharedNotebook != null) {
  21856. oprot.writeFieldBegin(SHARED_NOTEBOOK_FIELD_DESC);
  21857. this.sharedNotebook.write(oprot);
  21858. oprot.writeFieldEnd();
  21859. }
  21860. oprot.writeFieldStop();
  21861. oprot.writeStructEnd();
  21862. }
  21863. public void validate() throws TException {
  21864. // check for required fields
  21865. }
  21866. }
  21867. private static class updateSharedNotebook_result implements TBase<updateSharedNotebook_result>, java.io.Serializable, Cloneable {
  21868. private static final TStruct STRUCT_DESC = new TStruct("updateSharedNotebook_result");
  21869. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);
  21870. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  21871. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)2);
  21872. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)3);
  21873. private int success;
  21874. private com.evernote.edam.error.EDAMUserException userException;
  21875. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  21876. private com.evernote.edam.error.EDAMSystemException systemException;
  21877. // isset id assignments
  21878. private static final int __SUCCESS_ISSET_ID = 0;
  21879. private boolean[] __isset_vector = new boolean[1];
  21880. public updateSharedNotebook_result() {
  21881. }
  21882. /**
  21883. * Performs a deep copy on <i>other</i>.
  21884. */
  21885. public updateSharedNotebook_result(updateSharedNotebook_result other) {
  21886. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  21887. this.success = other.success;
  21888. if (other.isSetUserException()) {
  21889. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  21890. }
  21891. if (other.isSetNotFoundException()) {
  21892. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  21893. }
  21894. if (other.isSetSystemException()) {
  21895. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  21896. }
  21897. }
  21898. public updateSharedNotebook_result deepCopy() {
  21899. return new updateSharedNotebook_result(this);
  21900. }
  21901. public void clear() {
  21902. setSuccessIsSet(false);
  21903. this.success = 0;
  21904. this.userException = null;
  21905. this.notFoundException = null;
  21906. this.systemException = null;
  21907. }
  21908. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  21909. public boolean isSetSuccess() {
  21910. return __isset_vector[__SUCCESS_ISSET_ID];
  21911. }
  21912. public void setSuccessIsSet(boolean value) {
  21913. __isset_vector[__SUCCESS_ISSET_ID] = value;
  21914. }
  21915. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  21916. public boolean isSetUserException() {
  21917. return this.userException != null;
  21918. }
  21919. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  21920. public boolean isSetNotFoundException() {
  21921. return this.notFoundException != null;
  21922. }
  21923. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  21924. public boolean isSetSystemException() {
  21925. return this.systemException != null;
  21926. }
  21927. public int compareTo(updateSharedNotebook_result other) {
  21928. if (!getClass().equals(other.getClass())) {
  21929. return getClass().getName().compareTo(other.getClass().getName());
  21930. }
  21931. int lastComparison = 0;
  21932. updateSharedNotebook_result typedOther = (updateSharedNotebook_result)other;
  21933. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  21934. if (lastComparison != 0) {
  21935. return lastComparison;
  21936. }
  21937. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  21938. if (lastComparison != 0) {
  21939. return lastComparison;
  21940. }
  21941. }
  21942. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  21943. if (lastComparison != 0) {
  21944. return lastComparison;
  21945. }
  21946. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  21947. if (lastComparison != 0) {
  21948. return lastComparison;
  21949. }
  21950. }
  21951. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  21952. if (lastComparison != 0) {
  21953. return lastComparison;
  21954. }
  21955. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  21956. if (lastComparison != 0) {
  21957. return lastComparison;
  21958. }
  21959. }
  21960. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  21961. if (lastComparison != 0) {
  21962. return lastComparison;
  21963. }
  21964. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  21965. if (lastComparison != 0) {
  21966. return lastComparison;
  21967. }
  21968. }
  21969. return 0;
  21970. }
  21971. public void read(TProtocol iprot) throws TException {
  21972. TField field;
  21973. iprot.readStructBegin();
  21974. while (true)
  21975. {
  21976. field = iprot.readFieldBegin();
  21977. if (field.type == TType.STOP) {
  21978. break;
  21979. }
  21980. switch (field.id) {
  21981. case 0: // SUCCESS
  21982. if (field.type == TType.I32) {
  21983. this.success = iprot.readI32();
  21984. setSuccessIsSet(true);
  21985. } else {
  21986. TProtocolUtil.skip(iprot, field.type);
  21987. }
  21988. break;
  21989. case 1: // USER_EXCEPTION
  21990. if (field.type == TType.STRUCT) {
  21991. this.userException = new com.evernote.edam.error.EDAMUserException();
  21992. this.userException.read(iprot);
  21993. } else {
  21994. TProtocolUtil.skip(iprot, field.type);
  21995. }
  21996. break;
  21997. case 2: // NOT_FOUND_EXCEPTION
  21998. if (field.type == TType.STRUCT) {
  21999. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  22000. this.notFoundException.read(iprot);
  22001. } else {
  22002. TProtocolUtil.skip(iprot, field.type);
  22003. }
  22004. break;
  22005. case 3: // SYSTEM_EXCEPTION
  22006. if (field.type == TType.STRUCT) {
  22007. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  22008. this.systemException.read(iprot);
  22009. } else {
  22010. TProtocolUtil.skip(iprot, field.type);
  22011. }
  22012. break;
  22013. default:
  22014. TProtocolUtil.skip(iprot, field.type);
  22015. }
  22016. iprot.readFieldEnd();
  22017. }
  22018. iprot.readStructEnd();
  22019. validate();
  22020. }
  22021. public void write(TProtocol oprot) throws TException {
  22022. oprot.writeStructBegin(STRUCT_DESC);
  22023. if (this.isSetSuccess()) {
  22024. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  22025. oprot.writeI32(this.success);
  22026. oprot.writeFieldEnd();
  22027. } else if (this.isSetUserException()) {
  22028. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  22029. this.userException.write(oprot);
  22030. oprot.writeFieldEnd();
  22031. } else if (this.isSetNotFoundException()) {
  22032. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  22033. this.notFoundException.write(oprot);
  22034. oprot.writeFieldEnd();
  22035. } else if (this.isSetSystemException()) {
  22036. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  22037. this.systemException.write(oprot);
  22038. oprot.writeFieldEnd();
  22039. }
  22040. oprot.writeFieldStop();
  22041. oprot.writeStructEnd();
  22042. }
  22043. public void validate() throws TException {
  22044. // check for required fields
  22045. }
  22046. }
  22047. private static class setSharedNotebookRecipientSettings_args implements TBase<setSharedNotebookRecipientSettings_args>, java.io.Serializable, Cloneable {
  22048. private static final TStruct STRUCT_DESC = new TStruct("setSharedNotebookRecipientSettings_args");
  22049. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  22050. private static final TField SHARED_NOTEBOOK_ID_FIELD_DESC = new TField("sharedNotebookId", TType.I64, (short)2);
  22051. private static final TField RECIPIENT_SETTINGS_FIELD_DESC = new TField("recipientSettings", TType.STRUCT, (short)3);
  22052. private String authenticationToken;
  22053. private long sharedNotebookId;
  22054. private com.evernote.edam.type.SharedNotebookRecipientSettings recipientSettings;
  22055. // isset id assignments
  22056. private static final int __SHAREDNOTEBOOKID_ISSET_ID = 0;
  22057. private boolean[] __isset_vector = new boolean[1];
  22058. public setSharedNotebookRecipientSettings_args() {
  22059. }
  22060. /**
  22061. * Performs a deep copy on <i>other</i>.
  22062. */
  22063. public setSharedNotebookRecipientSettings_args(setSharedNotebookRecipientSettings_args other) {
  22064. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  22065. if (other.isSetAuthenticationToken()) {
  22066. this.authenticationToken = other.authenticationToken;
  22067. }
  22068. this.sharedNotebookId = other.sharedNotebookId;
  22069. if (other.isSetRecipientSettings()) {
  22070. this.recipientSettings = new com.evernote.edam.type.SharedNotebookRecipientSettings(other.recipientSettings);
  22071. }
  22072. }
  22073. public setSharedNotebookRecipientSettings_args deepCopy() {
  22074. return new setSharedNotebookRecipientSettings_args(this);
  22075. }
  22076. public void clear() {
  22077. this.authenticationToken = null;
  22078. setSharedNotebookIdIsSet(false);
  22079. this.sharedNotebookId = 0;
  22080. this.recipientSettings = null;
  22081. }
  22082. public void setAuthenticationToken(String authenticationToken) {
  22083. this.authenticationToken = authenticationToken;
  22084. }
  22085. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  22086. public boolean isSetAuthenticationToken() {
  22087. return this.authenticationToken != null;
  22088. }
  22089. public void setSharedNotebookId(long sharedNotebookId) {
  22090. this.sharedNotebookId = sharedNotebookId;
  22091. setSharedNotebookIdIsSet(true);
  22092. }
  22093. /** Returns true if field sharedNotebookId is set (has been asigned a value) and false otherwise */
  22094. public boolean isSetSharedNotebookId() {
  22095. return __isset_vector[__SHAREDNOTEBOOKID_ISSET_ID];
  22096. }
  22097. public void setSharedNotebookIdIsSet(boolean value) {
  22098. __isset_vector[__SHAREDNOTEBOOKID_ISSET_ID] = value;
  22099. }
  22100. public void setRecipientSettings(com.evernote.edam.type.SharedNotebookRecipientSettings recipientSettings) {
  22101. this.recipientSettings = recipientSettings;
  22102. }
  22103. /** Returns true if field recipientSettings is set (has been asigned a value) and false otherwise */
  22104. public boolean isSetRecipientSettings() {
  22105. return this.recipientSettings != null;
  22106. }
  22107. public int compareTo(setSharedNotebookRecipientSettings_args other) {
  22108. if (!getClass().equals(other.getClass())) {
  22109. return getClass().getName().compareTo(other.getClass().getName());
  22110. }
  22111. int lastComparison = 0;
  22112. setSharedNotebookRecipientSettings_args typedOther = (setSharedNotebookRecipientSettings_args)other;
  22113. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  22114. if (lastComparison != 0) {
  22115. return lastComparison;
  22116. }
  22117. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  22118. if (lastComparison != 0) {
  22119. return lastComparison;
  22120. }
  22121. }
  22122. lastComparison = Boolean.valueOf(isSetSharedNotebookId()).compareTo(typedOther.isSetSharedNotebookId());
  22123. if (lastComparison != 0) {
  22124. return lastComparison;
  22125. }
  22126. if (isSetSharedNotebookId()) { lastComparison = TBaseHelper.compareTo(this.sharedNotebookId, typedOther.sharedNotebookId);
  22127. if (lastComparison != 0) {
  22128. return lastComparison;
  22129. }
  22130. }
  22131. lastComparison = Boolean.valueOf(isSetRecipientSettings()).compareTo(typedOther.isSetRecipientSettings());
  22132. if (lastComparison != 0) {
  22133. return lastComparison;
  22134. }
  22135. if (isSetRecipientSettings()) { lastComparison = TBaseHelper.compareTo(this.recipientSettings, typedOther.recipientSettings);
  22136. if (lastComparison != 0) {
  22137. return lastComparison;
  22138. }
  22139. }
  22140. return 0;
  22141. }
  22142. public void read(TProtocol iprot) throws TException {
  22143. TField field;
  22144. iprot.readStructBegin();
  22145. while (true)
  22146. {
  22147. field = iprot.readFieldBegin();
  22148. if (field.type == TType.STOP) {
  22149. break;
  22150. }
  22151. switch (field.id) {
  22152. case 1: // AUTHENTICATION_TOKEN
  22153. if (field.type == TType.STRING) {
  22154. this.authenticationToken = iprot.readString();
  22155. } else {
  22156. TProtocolUtil.skip(iprot, field.type);
  22157. }
  22158. break;
  22159. case 2: // SHARED_NOTEBOOK_ID
  22160. if (field.type == TType.I64) {
  22161. this.sharedNotebookId = iprot.readI64();
  22162. setSharedNotebookIdIsSet(true);
  22163. } else {
  22164. TProtocolUtil.skip(iprot, field.type);
  22165. }
  22166. break;
  22167. case 3: // RECIPIENT_SETTINGS
  22168. if (field.type == TType.STRUCT) {
  22169. this.recipientSettings = new com.evernote.edam.type.SharedNotebookRecipientSettings();
  22170. this.recipientSettings.read(iprot);
  22171. } else {
  22172. TProtocolUtil.skip(iprot, field.type);
  22173. }
  22174. break;
  22175. default:
  22176. TProtocolUtil.skip(iprot, field.type);
  22177. }
  22178. iprot.readFieldEnd();
  22179. }
  22180. iprot.readStructEnd();
  22181. validate();
  22182. }
  22183. public void write(TProtocol oprot) throws TException {
  22184. validate();
  22185. oprot.writeStructBegin(STRUCT_DESC);
  22186. if (this.authenticationToken != null) {
  22187. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  22188. oprot.writeString(this.authenticationToken);
  22189. oprot.writeFieldEnd();
  22190. }
  22191. oprot.writeFieldBegin(SHARED_NOTEBOOK_ID_FIELD_DESC);
  22192. oprot.writeI64(this.sharedNotebookId);
  22193. oprot.writeFieldEnd();
  22194. if (this.recipientSettings != null) {
  22195. oprot.writeFieldBegin(RECIPIENT_SETTINGS_FIELD_DESC);
  22196. this.recipientSettings.write(oprot);
  22197. oprot.writeFieldEnd();
  22198. }
  22199. oprot.writeFieldStop();
  22200. oprot.writeStructEnd();
  22201. }
  22202. public void validate() throws TException {
  22203. // check for required fields
  22204. }
  22205. }
  22206. private static class setSharedNotebookRecipientSettings_result implements TBase<setSharedNotebookRecipientSettings_result>, java.io.Serializable, Cloneable {
  22207. private static final TStruct STRUCT_DESC = new TStruct("setSharedNotebookRecipientSettings_result");
  22208. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);
  22209. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  22210. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)2);
  22211. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)3);
  22212. private int success;
  22213. private com.evernote.edam.error.EDAMUserException userException;
  22214. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  22215. private com.evernote.edam.error.EDAMSystemException systemException;
  22216. // isset id assignments
  22217. private static final int __SUCCESS_ISSET_ID = 0;
  22218. private boolean[] __isset_vector = new boolean[1];
  22219. public setSharedNotebookRecipientSettings_result() {
  22220. }
  22221. /**
  22222. * Performs a deep copy on <i>other</i>.
  22223. */
  22224. public setSharedNotebookRecipientSettings_result(setSharedNotebookRecipientSettings_result other) {
  22225. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  22226. this.success = other.success;
  22227. if (other.isSetUserException()) {
  22228. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  22229. }
  22230. if (other.isSetNotFoundException()) {
  22231. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  22232. }
  22233. if (other.isSetSystemException()) {
  22234. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  22235. }
  22236. }
  22237. public setSharedNotebookRecipientSettings_result deepCopy() {
  22238. return new setSharedNotebookRecipientSettings_result(this);
  22239. }
  22240. public void clear() {
  22241. setSuccessIsSet(false);
  22242. this.success = 0;
  22243. this.userException = null;
  22244. this.notFoundException = null;
  22245. this.systemException = null;
  22246. }
  22247. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  22248. public boolean isSetSuccess() {
  22249. return __isset_vector[__SUCCESS_ISSET_ID];
  22250. }
  22251. public void setSuccessIsSet(boolean value) {
  22252. __isset_vector[__SUCCESS_ISSET_ID] = value;
  22253. }
  22254. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  22255. public boolean isSetUserException() {
  22256. return this.userException != null;
  22257. }
  22258. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  22259. public boolean isSetNotFoundException() {
  22260. return this.notFoundException != null;
  22261. }
  22262. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  22263. public boolean isSetSystemException() {
  22264. return this.systemException != null;
  22265. }
  22266. public int compareTo(setSharedNotebookRecipientSettings_result other) {
  22267. if (!getClass().equals(other.getClass())) {
  22268. return getClass().getName().compareTo(other.getClass().getName());
  22269. }
  22270. int lastComparison = 0;
  22271. setSharedNotebookRecipientSettings_result typedOther = (setSharedNotebookRecipientSettings_result)other;
  22272. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  22273. if (lastComparison != 0) {
  22274. return lastComparison;
  22275. }
  22276. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  22277. if (lastComparison != 0) {
  22278. return lastComparison;
  22279. }
  22280. }
  22281. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  22282. if (lastComparison != 0) {
  22283. return lastComparison;
  22284. }
  22285. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  22286. if (lastComparison != 0) {
  22287. return lastComparison;
  22288. }
  22289. }
  22290. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  22291. if (lastComparison != 0) {
  22292. return lastComparison;
  22293. }
  22294. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  22295. if (lastComparison != 0) {
  22296. return lastComparison;
  22297. }
  22298. }
  22299. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  22300. if (lastComparison != 0) {
  22301. return lastComparison;
  22302. }
  22303. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  22304. if (lastComparison != 0) {
  22305. return lastComparison;
  22306. }
  22307. }
  22308. return 0;
  22309. }
  22310. public void read(TProtocol iprot) throws TException {
  22311. TField field;
  22312. iprot.readStructBegin();
  22313. while (true)
  22314. {
  22315. field = iprot.readFieldBegin();
  22316. if (field.type == TType.STOP) {
  22317. break;
  22318. }
  22319. switch (field.id) {
  22320. case 0: // SUCCESS
  22321. if (field.type == TType.I32) {
  22322. this.success = iprot.readI32();
  22323. setSuccessIsSet(true);
  22324. } else {
  22325. TProtocolUtil.skip(iprot, field.type);
  22326. }
  22327. break;
  22328. case 1: // USER_EXCEPTION
  22329. if (field.type == TType.STRUCT) {
  22330. this.userException = new com.evernote.edam.error.EDAMUserException();
  22331. this.userException.read(iprot);
  22332. } else {
  22333. TProtocolUtil.skip(iprot, field.type);
  22334. }
  22335. break;
  22336. case 2: // NOT_FOUND_EXCEPTION
  22337. if (field.type == TType.STRUCT) {
  22338. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  22339. this.notFoundException.read(iprot);
  22340. } else {
  22341. TProtocolUtil.skip(iprot, field.type);
  22342. }
  22343. break;
  22344. case 3: // SYSTEM_EXCEPTION
  22345. if (field.type == TType.STRUCT) {
  22346. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  22347. this.systemException.read(iprot);
  22348. } else {
  22349. TProtocolUtil.skip(iprot, field.type);
  22350. }
  22351. break;
  22352. default:
  22353. TProtocolUtil.skip(iprot, field.type);
  22354. }
  22355. iprot.readFieldEnd();
  22356. }
  22357. iprot.readStructEnd();
  22358. validate();
  22359. }
  22360. public void write(TProtocol oprot) throws TException {
  22361. oprot.writeStructBegin(STRUCT_DESC);
  22362. if (this.isSetSuccess()) {
  22363. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  22364. oprot.writeI32(this.success);
  22365. oprot.writeFieldEnd();
  22366. } else if (this.isSetUserException()) {
  22367. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  22368. this.userException.write(oprot);
  22369. oprot.writeFieldEnd();
  22370. } else if (this.isSetNotFoundException()) {
  22371. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  22372. this.notFoundException.write(oprot);
  22373. oprot.writeFieldEnd();
  22374. } else if (this.isSetSystemException()) {
  22375. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  22376. this.systemException.write(oprot);
  22377. oprot.writeFieldEnd();
  22378. }
  22379. oprot.writeFieldStop();
  22380. oprot.writeStructEnd();
  22381. }
  22382. public void validate() throws TException {
  22383. // check for required fields
  22384. }
  22385. }
  22386. private static class sendMessageToSharedNotebookMembers_args implements TBase<sendMessageToSharedNotebookMembers_args>, java.io.Serializable, Cloneable {
  22387. private static final TStruct STRUCT_DESC = new TStruct("sendMessageToSharedNotebookMembers_args");
  22388. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  22389. private static final TField NOTEBOOK_GUID_FIELD_DESC = new TField("notebookGuid", TType.STRING, (short)2);
  22390. private static final TField MESSAGE_TEXT_FIELD_DESC = new TField("messageText", TType.STRING, (short)3);
  22391. private static final TField RECIPIENTS_FIELD_DESC = new TField("recipients", TType.LIST, (short)4);
  22392. private String authenticationToken;
  22393. private String notebookGuid;
  22394. private String messageText;
  22395. private List<String> recipients;
  22396. // isset id assignments
  22397. public sendMessageToSharedNotebookMembers_args() {
  22398. }
  22399. /**
  22400. * Performs a deep copy on <i>other</i>.
  22401. */
  22402. public sendMessageToSharedNotebookMembers_args(sendMessageToSharedNotebookMembers_args other) {
  22403. if (other.isSetAuthenticationToken()) {
  22404. this.authenticationToken = other.authenticationToken;
  22405. }
  22406. if (other.isSetNotebookGuid()) {
  22407. this.notebookGuid = other.notebookGuid;
  22408. }
  22409. if (other.isSetMessageText()) {
  22410. this.messageText = other.messageText;
  22411. }
  22412. if (other.isSetRecipients()) {
  22413. List<String> __this__recipients = new ArrayList<String>();
  22414. for (String other_element : other.recipients) {
  22415. __this__recipients.add(other_element);
  22416. }
  22417. this.recipients = __this__recipients;
  22418. }
  22419. }
  22420. public sendMessageToSharedNotebookMembers_args deepCopy() {
  22421. return new sendMessageToSharedNotebookMembers_args(this);
  22422. }
  22423. public void clear() {
  22424. this.authenticationToken = null;
  22425. this.notebookGuid = null;
  22426. this.messageText = null;
  22427. this.recipients = null;
  22428. }
  22429. public void setAuthenticationToken(String authenticationToken) {
  22430. this.authenticationToken = authenticationToken;
  22431. }
  22432. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  22433. public boolean isSetAuthenticationToken() {
  22434. return this.authenticationToken != null;
  22435. }
  22436. public void setNotebookGuid(String notebookGuid) {
  22437. this.notebookGuid = notebookGuid;
  22438. }
  22439. /** Returns true if field notebookGuid is set (has been asigned a value) and false otherwise */
  22440. public boolean isSetNotebookGuid() {
  22441. return this.notebookGuid != null;
  22442. }
  22443. public void setMessageText(String messageText) {
  22444. this.messageText = messageText;
  22445. }
  22446. /** Returns true if field messageText is set (has been asigned a value) and false otherwise */
  22447. public boolean isSetMessageText() {
  22448. return this.messageText != null;
  22449. }
  22450. public void setRecipients(List<String> recipients) {
  22451. this.recipients = recipients;
  22452. }
  22453. /** Returns true if field recipients is set (has been asigned a value) and false otherwise */
  22454. public boolean isSetRecipients() {
  22455. return this.recipients != null;
  22456. }
  22457. public int compareTo(sendMessageToSharedNotebookMembers_args other) {
  22458. if (!getClass().equals(other.getClass())) {
  22459. return getClass().getName().compareTo(other.getClass().getName());
  22460. }
  22461. int lastComparison = 0;
  22462. sendMessageToSharedNotebookMembers_args typedOther = (sendMessageToSharedNotebookMembers_args)other;
  22463. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  22464. if (lastComparison != 0) {
  22465. return lastComparison;
  22466. }
  22467. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  22468. if (lastComparison != 0) {
  22469. return lastComparison;
  22470. }
  22471. }
  22472. lastComparison = Boolean.valueOf(isSetNotebookGuid()).compareTo(typedOther.isSetNotebookGuid());
  22473. if (lastComparison != 0) {
  22474. return lastComparison;
  22475. }
  22476. if (isSetNotebookGuid()) { lastComparison = TBaseHelper.compareTo(this.notebookGuid, typedOther.notebookGuid);
  22477. if (lastComparison != 0) {
  22478. return lastComparison;
  22479. }
  22480. }
  22481. lastComparison = Boolean.valueOf(isSetMessageText()).compareTo(typedOther.isSetMessageText());
  22482. if (lastComparison != 0) {
  22483. return lastComparison;
  22484. }
  22485. if (isSetMessageText()) { lastComparison = TBaseHelper.compareTo(this.messageText, typedOther.messageText);
  22486. if (lastComparison != 0) {
  22487. return lastComparison;
  22488. }
  22489. }
  22490. lastComparison = Boolean.valueOf(isSetRecipients()).compareTo(typedOther.isSetRecipients());
  22491. if (lastComparison != 0) {
  22492. return lastComparison;
  22493. }
  22494. if (isSetRecipients()) { lastComparison = TBaseHelper.compareTo(this.recipients, typedOther.recipients);
  22495. if (lastComparison != 0) {
  22496. return lastComparison;
  22497. }
  22498. }
  22499. return 0;
  22500. }
  22501. public void read(TProtocol iprot) throws TException {
  22502. TField field;
  22503. iprot.readStructBegin();
  22504. while (true)
  22505. {
  22506. field = iprot.readFieldBegin();
  22507. if (field.type == TType.STOP) {
  22508. break;
  22509. }
  22510. switch (field.id) {
  22511. case 1: // AUTHENTICATION_TOKEN
  22512. if (field.type == TType.STRING) {
  22513. this.authenticationToken = iprot.readString();
  22514. } else {
  22515. TProtocolUtil.skip(iprot, field.type);
  22516. }
  22517. break;
  22518. case 2: // NOTEBOOK_GUID
  22519. if (field.type == TType.STRING) {
  22520. this.notebookGuid = iprot.readString();
  22521. } else {
  22522. TProtocolUtil.skip(iprot, field.type);
  22523. }
  22524. break;
  22525. case 3: // MESSAGE_TEXT
  22526. if (field.type == TType.STRING) {
  22527. this.messageText = iprot.readString();
  22528. } else {
  22529. TProtocolUtil.skip(iprot, field.type);
  22530. }
  22531. break;
  22532. case 4: // RECIPIENTS
  22533. if (field.type == TType.LIST) {
  22534. {
  22535. TList _list138 = iprot.readListBegin();
  22536. this.recipients = new ArrayList<String>(_list138.size);
  22537. for (int _i139 = 0; _i139 < _list138.size; ++_i139)
  22538. {
  22539. String _elem140;
  22540. _elem140 = iprot.readString();
  22541. this.recipients.add(_elem140);
  22542. }
  22543. iprot.readListEnd();
  22544. }
  22545. } else {
  22546. TProtocolUtil.skip(iprot, field.type);
  22547. }
  22548. break;
  22549. default:
  22550. TProtocolUtil.skip(iprot, field.type);
  22551. }
  22552. iprot.readFieldEnd();
  22553. }
  22554. iprot.readStructEnd();
  22555. validate();
  22556. }
  22557. public void write(TProtocol oprot) throws TException {
  22558. validate();
  22559. oprot.writeStructBegin(STRUCT_DESC);
  22560. if (this.authenticationToken != null) {
  22561. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  22562. oprot.writeString(this.authenticationToken);
  22563. oprot.writeFieldEnd();
  22564. }
  22565. if (this.notebookGuid != null) {
  22566. oprot.writeFieldBegin(NOTEBOOK_GUID_FIELD_DESC);
  22567. oprot.writeString(this.notebookGuid);
  22568. oprot.writeFieldEnd();
  22569. }
  22570. if (this.messageText != null) {
  22571. oprot.writeFieldBegin(MESSAGE_TEXT_FIELD_DESC);
  22572. oprot.writeString(this.messageText);
  22573. oprot.writeFieldEnd();
  22574. }
  22575. if (this.recipients != null) {
  22576. oprot.writeFieldBegin(RECIPIENTS_FIELD_DESC);
  22577. {
  22578. oprot.writeListBegin(new TList(TType.STRING, this.recipients.size()));
  22579. for (String _iter141 : this.recipients)
  22580. {
  22581. oprot.writeString(_iter141);
  22582. }
  22583. oprot.writeListEnd();
  22584. }
  22585. oprot.writeFieldEnd();
  22586. }
  22587. oprot.writeFieldStop();
  22588. oprot.writeStructEnd();
  22589. }
  22590. public void validate() throws TException {
  22591. // check for required fields
  22592. }
  22593. }
  22594. private static class sendMessageToSharedNotebookMembers_result implements TBase<sendMessageToSharedNotebookMembers_result>, java.io.Serializable, Cloneable {
  22595. private static final TStruct STRUCT_DESC = new TStruct("sendMessageToSharedNotebookMembers_result");
  22596. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);
  22597. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  22598. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)2);
  22599. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)3);
  22600. private int success;
  22601. private com.evernote.edam.error.EDAMUserException userException;
  22602. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  22603. private com.evernote.edam.error.EDAMSystemException systemException;
  22604. // isset id assignments
  22605. private static final int __SUCCESS_ISSET_ID = 0;
  22606. private boolean[] __isset_vector = new boolean[1];
  22607. public sendMessageToSharedNotebookMembers_result() {
  22608. }
  22609. /**
  22610. * Performs a deep copy on <i>other</i>.
  22611. */
  22612. public sendMessageToSharedNotebookMembers_result(sendMessageToSharedNotebookMembers_result other) {
  22613. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  22614. this.success = other.success;
  22615. if (other.isSetUserException()) {
  22616. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  22617. }
  22618. if (other.isSetNotFoundException()) {
  22619. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  22620. }
  22621. if (other.isSetSystemException()) {
  22622. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  22623. }
  22624. }
  22625. public sendMessageToSharedNotebookMembers_result deepCopy() {
  22626. return new sendMessageToSharedNotebookMembers_result(this);
  22627. }
  22628. public void clear() {
  22629. setSuccessIsSet(false);
  22630. this.success = 0;
  22631. this.userException = null;
  22632. this.notFoundException = null;
  22633. this.systemException = null;
  22634. }
  22635. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  22636. public boolean isSetSuccess() {
  22637. return __isset_vector[__SUCCESS_ISSET_ID];
  22638. }
  22639. public void setSuccessIsSet(boolean value) {
  22640. __isset_vector[__SUCCESS_ISSET_ID] = value;
  22641. }
  22642. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  22643. public boolean isSetUserException() {
  22644. return this.userException != null;
  22645. }
  22646. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  22647. public boolean isSetNotFoundException() {
  22648. return this.notFoundException != null;
  22649. }
  22650. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  22651. public boolean isSetSystemException() {
  22652. return this.systemException != null;
  22653. }
  22654. public int compareTo(sendMessageToSharedNotebookMembers_result other) {
  22655. if (!getClass().equals(other.getClass())) {
  22656. return getClass().getName().compareTo(other.getClass().getName());
  22657. }
  22658. int lastComparison = 0;
  22659. sendMessageToSharedNotebookMembers_result typedOther = (sendMessageToSharedNotebookMembers_result)other;
  22660. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  22661. if (lastComparison != 0) {
  22662. return lastComparison;
  22663. }
  22664. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  22665. if (lastComparison != 0) {
  22666. return lastComparison;
  22667. }
  22668. }
  22669. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  22670. if (lastComparison != 0) {
  22671. return lastComparison;
  22672. }
  22673. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  22674. if (lastComparison != 0) {
  22675. return lastComparison;
  22676. }
  22677. }
  22678. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  22679. if (lastComparison != 0) {
  22680. return lastComparison;
  22681. }
  22682. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  22683. if (lastComparison != 0) {
  22684. return lastComparison;
  22685. }
  22686. }
  22687. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  22688. if (lastComparison != 0) {
  22689. return lastComparison;
  22690. }
  22691. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  22692. if (lastComparison != 0) {
  22693. return lastComparison;
  22694. }
  22695. }
  22696. return 0;
  22697. }
  22698. public void read(TProtocol iprot) throws TException {
  22699. TField field;
  22700. iprot.readStructBegin();
  22701. while (true)
  22702. {
  22703. field = iprot.readFieldBegin();
  22704. if (field.type == TType.STOP) {
  22705. break;
  22706. }
  22707. switch (field.id) {
  22708. case 0: // SUCCESS
  22709. if (field.type == TType.I32) {
  22710. this.success = iprot.readI32();
  22711. setSuccessIsSet(true);
  22712. } else {
  22713. TProtocolUtil.skip(iprot, field.type);
  22714. }
  22715. break;
  22716. case 1: // USER_EXCEPTION
  22717. if (field.type == TType.STRUCT) {
  22718. this.userException = new com.evernote.edam.error.EDAMUserException();
  22719. this.userException.read(iprot);
  22720. } else {
  22721. TProtocolUtil.skip(iprot, field.type);
  22722. }
  22723. break;
  22724. case 2: // NOT_FOUND_EXCEPTION
  22725. if (field.type == TType.STRUCT) {
  22726. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  22727. this.notFoundException.read(iprot);
  22728. } else {
  22729. TProtocolUtil.skip(iprot, field.type);
  22730. }
  22731. break;
  22732. case 3: // SYSTEM_EXCEPTION
  22733. if (field.type == TType.STRUCT) {
  22734. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  22735. this.systemException.read(iprot);
  22736. } else {
  22737. TProtocolUtil.skip(iprot, field.type);
  22738. }
  22739. break;
  22740. default:
  22741. TProtocolUtil.skip(iprot, field.type);
  22742. }
  22743. iprot.readFieldEnd();
  22744. }
  22745. iprot.readStructEnd();
  22746. validate();
  22747. }
  22748. public void write(TProtocol oprot) throws TException {
  22749. oprot.writeStructBegin(STRUCT_DESC);
  22750. if (this.isSetSuccess()) {
  22751. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  22752. oprot.writeI32(this.success);
  22753. oprot.writeFieldEnd();
  22754. } else if (this.isSetUserException()) {
  22755. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  22756. this.userException.write(oprot);
  22757. oprot.writeFieldEnd();
  22758. } else if (this.isSetNotFoundException()) {
  22759. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  22760. this.notFoundException.write(oprot);
  22761. oprot.writeFieldEnd();
  22762. } else if (this.isSetSystemException()) {
  22763. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  22764. this.systemException.write(oprot);
  22765. oprot.writeFieldEnd();
  22766. }
  22767. oprot.writeFieldStop();
  22768. oprot.writeStructEnd();
  22769. }
  22770. public void validate() throws TException {
  22771. // check for required fields
  22772. }
  22773. }
  22774. private static class listSharedNotebooks_args implements TBase<listSharedNotebooks_args>, java.io.Serializable, Cloneable {
  22775. private static final TStruct STRUCT_DESC = new TStruct("listSharedNotebooks_args");
  22776. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  22777. private String authenticationToken;
  22778. // isset id assignments
  22779. public listSharedNotebooks_args() {
  22780. }
  22781. /**
  22782. * Performs a deep copy on <i>other</i>.
  22783. */
  22784. public listSharedNotebooks_args(listSharedNotebooks_args other) {
  22785. if (other.isSetAuthenticationToken()) {
  22786. this.authenticationToken = other.authenticationToken;
  22787. }
  22788. }
  22789. public listSharedNotebooks_args deepCopy() {
  22790. return new listSharedNotebooks_args(this);
  22791. }
  22792. public void clear() {
  22793. this.authenticationToken = null;
  22794. }
  22795. public void setAuthenticationToken(String authenticationToken) {
  22796. this.authenticationToken = authenticationToken;
  22797. }
  22798. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  22799. public boolean isSetAuthenticationToken() {
  22800. return this.authenticationToken != null;
  22801. }
  22802. public int compareTo(listSharedNotebooks_args other) {
  22803. if (!getClass().equals(other.getClass())) {
  22804. return getClass().getName().compareTo(other.getClass().getName());
  22805. }
  22806. int lastComparison = 0;
  22807. listSharedNotebooks_args typedOther = (listSharedNotebooks_args)other;
  22808. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  22809. if (lastComparison != 0) {
  22810. return lastComparison;
  22811. }
  22812. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  22813. if (lastComparison != 0) {
  22814. return lastComparison;
  22815. }
  22816. }
  22817. return 0;
  22818. }
  22819. public void read(TProtocol iprot) throws TException {
  22820. TField field;
  22821. iprot.readStructBegin();
  22822. while (true)
  22823. {
  22824. field = iprot.readFieldBegin();
  22825. if (field.type == TType.STOP) {
  22826. break;
  22827. }
  22828. switch (field.id) {
  22829. case 1: // AUTHENTICATION_TOKEN
  22830. if (field.type == TType.STRING) {
  22831. this.authenticationToken = iprot.readString();
  22832. } else {
  22833. TProtocolUtil.skip(iprot, field.type);
  22834. }
  22835. break;
  22836. default:
  22837. TProtocolUtil.skip(iprot, field.type);
  22838. }
  22839. iprot.readFieldEnd();
  22840. }
  22841. iprot.readStructEnd();
  22842. validate();
  22843. }
  22844. public void write(TProtocol oprot) throws TException {
  22845. validate();
  22846. oprot.writeStructBegin(STRUCT_DESC);
  22847. if (this.authenticationToken != null) {
  22848. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  22849. oprot.writeString(this.authenticationToken);
  22850. oprot.writeFieldEnd();
  22851. }
  22852. oprot.writeFieldStop();
  22853. oprot.writeStructEnd();
  22854. }
  22855. public void validate() throws TException {
  22856. // check for required fields
  22857. }
  22858. }
  22859. private static class listSharedNotebooks_result implements TBase<listSharedNotebooks_result>, java.io.Serializable, Cloneable {
  22860. private static final TStruct STRUCT_DESC = new TStruct("listSharedNotebooks_result");
  22861. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
  22862. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  22863. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)2);
  22864. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)3);
  22865. private List<com.evernote.edam.type.SharedNotebook> success;
  22866. private com.evernote.edam.error.EDAMUserException userException;
  22867. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  22868. private com.evernote.edam.error.EDAMSystemException systemException;
  22869. // isset id assignments
  22870. public listSharedNotebooks_result() {
  22871. }
  22872. /**
  22873. * Performs a deep copy on <i>other</i>.
  22874. */
  22875. public listSharedNotebooks_result(listSharedNotebooks_result other) {
  22876. if (other.isSetSuccess()) {
  22877. List<com.evernote.edam.type.SharedNotebook> __this__success = new ArrayList<com.evernote.edam.type.SharedNotebook>();
  22878. for (com.evernote.edam.type.SharedNotebook other_element : other.success) {
  22879. __this__success.add(new com.evernote.edam.type.SharedNotebook(other_element));
  22880. }
  22881. this.success = __this__success;
  22882. }
  22883. if (other.isSetUserException()) {
  22884. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  22885. }
  22886. if (other.isSetNotFoundException()) {
  22887. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  22888. }
  22889. if (other.isSetSystemException()) {
  22890. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  22891. }
  22892. }
  22893. public listSharedNotebooks_result deepCopy() {
  22894. return new listSharedNotebooks_result(this);
  22895. }
  22896. public void clear() {
  22897. this.success = null;
  22898. this.userException = null;
  22899. this.notFoundException = null;
  22900. this.systemException = null;
  22901. }
  22902. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  22903. public boolean isSetSuccess() {
  22904. return this.success != null;
  22905. }
  22906. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  22907. public boolean isSetUserException() {
  22908. return this.userException != null;
  22909. }
  22910. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  22911. public boolean isSetNotFoundException() {
  22912. return this.notFoundException != null;
  22913. }
  22914. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  22915. public boolean isSetSystemException() {
  22916. return this.systemException != null;
  22917. }
  22918. public int compareTo(listSharedNotebooks_result other) {
  22919. if (!getClass().equals(other.getClass())) {
  22920. return getClass().getName().compareTo(other.getClass().getName());
  22921. }
  22922. int lastComparison = 0;
  22923. listSharedNotebooks_result typedOther = (listSharedNotebooks_result)other;
  22924. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  22925. if (lastComparison != 0) {
  22926. return lastComparison;
  22927. }
  22928. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  22929. if (lastComparison != 0) {
  22930. return lastComparison;
  22931. }
  22932. }
  22933. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  22934. if (lastComparison != 0) {
  22935. return lastComparison;
  22936. }
  22937. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  22938. if (lastComparison != 0) {
  22939. return lastComparison;
  22940. }
  22941. }
  22942. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  22943. if (lastComparison != 0) {
  22944. return lastComparison;
  22945. }
  22946. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  22947. if (lastComparison != 0) {
  22948. return lastComparison;
  22949. }
  22950. }
  22951. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  22952. if (lastComparison != 0) {
  22953. return lastComparison;
  22954. }
  22955. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  22956. if (lastComparison != 0) {
  22957. return lastComparison;
  22958. }
  22959. }
  22960. return 0;
  22961. }
  22962. public void read(TProtocol iprot) throws TException {
  22963. TField field;
  22964. iprot.readStructBegin();
  22965. while (true)
  22966. {
  22967. field = iprot.readFieldBegin();
  22968. if (field.type == TType.STOP) {
  22969. break;
  22970. }
  22971. switch (field.id) {
  22972. case 0: // SUCCESS
  22973. if (field.type == TType.LIST) {
  22974. {
  22975. TList _list142 = iprot.readListBegin();
  22976. this.success = new ArrayList<com.evernote.edam.type.SharedNotebook>(_list142.size);
  22977. for (int _i143 = 0; _i143 < _list142.size; ++_i143)
  22978. {
  22979. com.evernote.edam.type.SharedNotebook _elem144;
  22980. _elem144 = new com.evernote.edam.type.SharedNotebook();
  22981. _elem144.read(iprot);
  22982. this.success.add(_elem144);
  22983. }
  22984. iprot.readListEnd();
  22985. }
  22986. } else {
  22987. TProtocolUtil.skip(iprot, field.type);
  22988. }
  22989. break;
  22990. case 1: // USER_EXCEPTION
  22991. if (field.type == TType.STRUCT) {
  22992. this.userException = new com.evernote.edam.error.EDAMUserException();
  22993. this.userException.read(iprot);
  22994. } else {
  22995. TProtocolUtil.skip(iprot, field.type);
  22996. }
  22997. break;
  22998. case 2: // NOT_FOUND_EXCEPTION
  22999. if (field.type == TType.STRUCT) {
  23000. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  23001. this.notFoundException.read(iprot);
  23002. } else {
  23003. TProtocolUtil.skip(iprot, field.type);
  23004. }
  23005. break;
  23006. case 3: // SYSTEM_EXCEPTION
  23007. if (field.type == TType.STRUCT) {
  23008. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  23009. this.systemException.read(iprot);
  23010. } else {
  23011. TProtocolUtil.skip(iprot, field.type);
  23012. }
  23013. break;
  23014. default:
  23015. TProtocolUtil.skip(iprot, field.type);
  23016. }
  23017. iprot.readFieldEnd();
  23018. }
  23019. iprot.readStructEnd();
  23020. validate();
  23021. }
  23022. public void write(TProtocol oprot) throws TException {
  23023. oprot.writeStructBegin(STRUCT_DESC);
  23024. if (this.isSetSuccess()) {
  23025. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  23026. {
  23027. oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
  23028. for (com.evernote.edam.type.SharedNotebook _iter145 : this.success)
  23029. {
  23030. _iter145.write(oprot);
  23031. }
  23032. oprot.writeListEnd();
  23033. }
  23034. oprot.writeFieldEnd();
  23035. } else if (this.isSetUserException()) {
  23036. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  23037. this.userException.write(oprot);
  23038. oprot.writeFieldEnd();
  23039. } else if (this.isSetNotFoundException()) {
  23040. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  23041. this.notFoundException.write(oprot);
  23042. oprot.writeFieldEnd();
  23043. } else if (this.isSetSystemException()) {
  23044. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  23045. this.systemException.write(oprot);
  23046. oprot.writeFieldEnd();
  23047. }
  23048. oprot.writeFieldStop();
  23049. oprot.writeStructEnd();
  23050. }
  23051. public void validate() throws TException {
  23052. // check for required fields
  23053. }
  23054. }
  23055. private static class expungeSharedNotebooks_args implements TBase<expungeSharedNotebooks_args>, java.io.Serializable, Cloneable {
  23056. private static final TStruct STRUCT_DESC = new TStruct("expungeSharedNotebooks_args");
  23057. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  23058. private static final TField SHARED_NOTEBOOK_IDS_FIELD_DESC = new TField("sharedNotebookIds", TType.LIST, (short)2);
  23059. private String authenticationToken;
  23060. private List<Long> sharedNotebookIds;
  23061. // isset id assignments
  23062. public expungeSharedNotebooks_args() {
  23063. }
  23064. /**
  23065. * Performs a deep copy on <i>other</i>.
  23066. */
  23067. public expungeSharedNotebooks_args(expungeSharedNotebooks_args other) {
  23068. if (other.isSetAuthenticationToken()) {
  23069. this.authenticationToken = other.authenticationToken;
  23070. }
  23071. if (other.isSetSharedNotebookIds()) {
  23072. List<Long> __this__sharedNotebookIds = new ArrayList<Long>();
  23073. for (Long other_element : other.sharedNotebookIds) {
  23074. __this__sharedNotebookIds.add(other_element);
  23075. }
  23076. this.sharedNotebookIds = __this__sharedNotebookIds;
  23077. }
  23078. }
  23079. public expungeSharedNotebooks_args deepCopy() {
  23080. return new expungeSharedNotebooks_args(this);
  23081. }
  23082. public void clear() {
  23083. this.authenticationToken = null;
  23084. this.sharedNotebookIds = null;
  23085. }
  23086. public void setAuthenticationToken(String authenticationToken) {
  23087. this.authenticationToken = authenticationToken;
  23088. }
  23089. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  23090. public boolean isSetAuthenticationToken() {
  23091. return this.authenticationToken != null;
  23092. }
  23093. public void setSharedNotebookIds(List<Long> sharedNotebookIds) {
  23094. this.sharedNotebookIds = sharedNotebookIds;
  23095. }
  23096. /** Returns true if field sharedNotebookIds is set (has been asigned a value) and false otherwise */
  23097. public boolean isSetSharedNotebookIds() {
  23098. return this.sharedNotebookIds != null;
  23099. }
  23100. public int compareTo(expungeSharedNotebooks_args other) {
  23101. if (!getClass().equals(other.getClass())) {
  23102. return getClass().getName().compareTo(other.getClass().getName());
  23103. }
  23104. int lastComparison = 0;
  23105. expungeSharedNotebooks_args typedOther = (expungeSharedNotebooks_args)other;
  23106. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  23107. if (lastComparison != 0) {
  23108. return lastComparison;
  23109. }
  23110. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  23111. if (lastComparison != 0) {
  23112. return lastComparison;
  23113. }
  23114. }
  23115. lastComparison = Boolean.valueOf(isSetSharedNotebookIds()).compareTo(typedOther.isSetSharedNotebookIds());
  23116. if (lastComparison != 0) {
  23117. return lastComparison;
  23118. }
  23119. if (isSetSharedNotebookIds()) { lastComparison = TBaseHelper.compareTo(this.sharedNotebookIds, typedOther.sharedNotebookIds);
  23120. if (lastComparison != 0) {
  23121. return lastComparison;
  23122. }
  23123. }
  23124. return 0;
  23125. }
  23126. public void read(TProtocol iprot) throws TException {
  23127. TField field;
  23128. iprot.readStructBegin();
  23129. while (true)
  23130. {
  23131. field = iprot.readFieldBegin();
  23132. if (field.type == TType.STOP) {
  23133. break;
  23134. }
  23135. switch (field.id) {
  23136. case 1: // AUTHENTICATION_TOKEN
  23137. if (field.type == TType.STRING) {
  23138. this.authenticationToken = iprot.readString();
  23139. } else {
  23140. TProtocolUtil.skip(iprot, field.type);
  23141. }
  23142. break;
  23143. case 2: // SHARED_NOTEBOOK_IDS
  23144. if (field.type == TType.LIST) {
  23145. {
  23146. TList _list146 = iprot.readListBegin();
  23147. this.sharedNotebookIds = new ArrayList<Long>(_list146.size);
  23148. for (int _i147 = 0; _i147 < _list146.size; ++_i147)
  23149. {
  23150. long _elem148;
  23151. _elem148 = iprot.readI64();
  23152. this.sharedNotebookIds.add(_elem148);
  23153. }
  23154. iprot.readListEnd();
  23155. }
  23156. } else {
  23157. TProtocolUtil.skip(iprot, field.type);
  23158. }
  23159. break;
  23160. default:
  23161. TProtocolUtil.skip(iprot, field.type);
  23162. }
  23163. iprot.readFieldEnd();
  23164. }
  23165. iprot.readStructEnd();
  23166. validate();
  23167. }
  23168. public void write(TProtocol oprot) throws TException {
  23169. validate();
  23170. oprot.writeStructBegin(STRUCT_DESC);
  23171. if (this.authenticationToken != null) {
  23172. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  23173. oprot.writeString(this.authenticationToken);
  23174. oprot.writeFieldEnd();
  23175. }
  23176. if (this.sharedNotebookIds != null) {
  23177. oprot.writeFieldBegin(SHARED_NOTEBOOK_IDS_FIELD_DESC);
  23178. {
  23179. oprot.writeListBegin(new TList(TType.I64, this.sharedNotebookIds.size()));
  23180. for (long _iter149 : this.sharedNotebookIds)
  23181. {
  23182. oprot.writeI64(_iter149);
  23183. }
  23184. oprot.writeListEnd();
  23185. }
  23186. oprot.writeFieldEnd();
  23187. }
  23188. oprot.writeFieldStop();
  23189. oprot.writeStructEnd();
  23190. }
  23191. public void validate() throws TException {
  23192. // check for required fields
  23193. }
  23194. }
  23195. private static class expungeSharedNotebooks_result implements TBase<expungeSharedNotebooks_result>, java.io.Serializable, Cloneable {
  23196. private static final TStruct STRUCT_DESC = new TStruct("expungeSharedNotebooks_result");
  23197. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);
  23198. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  23199. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)2);
  23200. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)3);
  23201. private int success;
  23202. private com.evernote.edam.error.EDAMUserException userException;
  23203. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  23204. private com.evernote.edam.error.EDAMSystemException systemException;
  23205. // isset id assignments
  23206. private static final int __SUCCESS_ISSET_ID = 0;
  23207. private boolean[] __isset_vector = new boolean[1];
  23208. public expungeSharedNotebooks_result() {
  23209. }
  23210. /**
  23211. * Performs a deep copy on <i>other</i>.
  23212. */
  23213. public expungeSharedNotebooks_result(expungeSharedNotebooks_result other) {
  23214. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  23215. this.success = other.success;
  23216. if (other.isSetUserException()) {
  23217. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  23218. }
  23219. if (other.isSetNotFoundException()) {
  23220. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  23221. }
  23222. if (other.isSetSystemException()) {
  23223. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  23224. }
  23225. }
  23226. public expungeSharedNotebooks_result deepCopy() {
  23227. return new expungeSharedNotebooks_result(this);
  23228. }
  23229. public void clear() {
  23230. setSuccessIsSet(false);
  23231. this.success = 0;
  23232. this.userException = null;
  23233. this.notFoundException = null;
  23234. this.systemException = null;
  23235. }
  23236. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  23237. public boolean isSetSuccess() {
  23238. return __isset_vector[__SUCCESS_ISSET_ID];
  23239. }
  23240. public void setSuccessIsSet(boolean value) {
  23241. __isset_vector[__SUCCESS_ISSET_ID] = value;
  23242. }
  23243. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  23244. public boolean isSetUserException() {
  23245. return this.userException != null;
  23246. }
  23247. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  23248. public boolean isSetNotFoundException() {
  23249. return this.notFoundException != null;
  23250. }
  23251. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  23252. public boolean isSetSystemException() {
  23253. return this.systemException != null;
  23254. }
  23255. public int compareTo(expungeSharedNotebooks_result other) {
  23256. if (!getClass().equals(other.getClass())) {
  23257. return getClass().getName().compareTo(other.getClass().getName());
  23258. }
  23259. int lastComparison = 0;
  23260. expungeSharedNotebooks_result typedOther = (expungeSharedNotebooks_result)other;
  23261. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  23262. if (lastComparison != 0) {
  23263. return lastComparison;
  23264. }
  23265. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  23266. if (lastComparison != 0) {
  23267. return lastComparison;
  23268. }
  23269. }
  23270. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  23271. if (lastComparison != 0) {
  23272. return lastComparison;
  23273. }
  23274. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  23275. if (lastComparison != 0) {
  23276. return lastComparison;
  23277. }
  23278. }
  23279. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  23280. if (lastComparison != 0) {
  23281. return lastComparison;
  23282. }
  23283. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  23284. if (lastComparison != 0) {
  23285. return lastComparison;
  23286. }
  23287. }
  23288. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  23289. if (lastComparison != 0) {
  23290. return lastComparison;
  23291. }
  23292. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  23293. if (lastComparison != 0) {
  23294. return lastComparison;
  23295. }
  23296. }
  23297. return 0;
  23298. }
  23299. public void read(TProtocol iprot) throws TException {
  23300. TField field;
  23301. iprot.readStructBegin();
  23302. while (true)
  23303. {
  23304. field = iprot.readFieldBegin();
  23305. if (field.type == TType.STOP) {
  23306. break;
  23307. }
  23308. switch (field.id) {
  23309. case 0: // SUCCESS
  23310. if (field.type == TType.I32) {
  23311. this.success = iprot.readI32();
  23312. setSuccessIsSet(true);
  23313. } else {
  23314. TProtocolUtil.skip(iprot, field.type);
  23315. }
  23316. break;
  23317. case 1: // USER_EXCEPTION
  23318. if (field.type == TType.STRUCT) {
  23319. this.userException = new com.evernote.edam.error.EDAMUserException();
  23320. this.userException.read(iprot);
  23321. } else {
  23322. TProtocolUtil.skip(iprot, field.type);
  23323. }
  23324. break;
  23325. case 2: // NOT_FOUND_EXCEPTION
  23326. if (field.type == TType.STRUCT) {
  23327. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  23328. this.notFoundException.read(iprot);
  23329. } else {
  23330. TProtocolUtil.skip(iprot, field.type);
  23331. }
  23332. break;
  23333. case 3: // SYSTEM_EXCEPTION
  23334. if (field.type == TType.STRUCT) {
  23335. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  23336. this.systemException.read(iprot);
  23337. } else {
  23338. TProtocolUtil.skip(iprot, field.type);
  23339. }
  23340. break;
  23341. default:
  23342. TProtocolUtil.skip(iprot, field.type);
  23343. }
  23344. iprot.readFieldEnd();
  23345. }
  23346. iprot.readStructEnd();
  23347. validate();
  23348. }
  23349. public void write(TProtocol oprot) throws TException {
  23350. oprot.writeStructBegin(STRUCT_DESC);
  23351. if (this.isSetSuccess()) {
  23352. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  23353. oprot.writeI32(this.success);
  23354. oprot.writeFieldEnd();
  23355. } else if (this.isSetUserException()) {
  23356. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  23357. this.userException.write(oprot);
  23358. oprot.writeFieldEnd();
  23359. } else if (this.isSetNotFoundException()) {
  23360. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  23361. this.notFoundException.write(oprot);
  23362. oprot.writeFieldEnd();
  23363. } else if (this.isSetSystemException()) {
  23364. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  23365. this.systemException.write(oprot);
  23366. oprot.writeFieldEnd();
  23367. }
  23368. oprot.writeFieldStop();
  23369. oprot.writeStructEnd();
  23370. }
  23371. public void validate() throws TException {
  23372. // check for required fields
  23373. }
  23374. }
  23375. private static class createLinkedNotebook_args implements TBase<createLinkedNotebook_args>, java.io.Serializable, Cloneable {
  23376. private static final TStruct STRUCT_DESC = new TStruct("createLinkedNotebook_args");
  23377. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  23378. private static final TField LINKED_NOTEBOOK_FIELD_DESC = new TField("linkedNotebook", TType.STRUCT, (short)2);
  23379. private String authenticationToken;
  23380. private com.evernote.edam.type.LinkedNotebook linkedNotebook;
  23381. // isset id assignments
  23382. public createLinkedNotebook_args() {
  23383. }
  23384. /**
  23385. * Performs a deep copy on <i>other</i>.
  23386. */
  23387. public createLinkedNotebook_args(createLinkedNotebook_args other) {
  23388. if (other.isSetAuthenticationToken()) {
  23389. this.authenticationToken = other.authenticationToken;
  23390. }
  23391. if (other.isSetLinkedNotebook()) {
  23392. this.linkedNotebook = new com.evernote.edam.type.LinkedNotebook(other.linkedNotebook);
  23393. }
  23394. }
  23395. public createLinkedNotebook_args deepCopy() {
  23396. return new createLinkedNotebook_args(this);
  23397. }
  23398. public void clear() {
  23399. this.authenticationToken = null;
  23400. this.linkedNotebook = null;
  23401. }
  23402. public void setAuthenticationToken(String authenticationToken) {
  23403. this.authenticationToken = authenticationToken;
  23404. }
  23405. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  23406. public boolean isSetAuthenticationToken() {
  23407. return this.authenticationToken != null;
  23408. }
  23409. public void setLinkedNotebook(com.evernote.edam.type.LinkedNotebook linkedNotebook) {
  23410. this.linkedNotebook = linkedNotebook;
  23411. }
  23412. /** Returns true if field linkedNotebook is set (has been asigned a value) and false otherwise */
  23413. public boolean isSetLinkedNotebook() {
  23414. return this.linkedNotebook != null;
  23415. }
  23416. public int compareTo(createLinkedNotebook_args other) {
  23417. if (!getClass().equals(other.getClass())) {
  23418. return getClass().getName().compareTo(other.getClass().getName());
  23419. }
  23420. int lastComparison = 0;
  23421. createLinkedNotebook_args typedOther = (createLinkedNotebook_args)other;
  23422. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  23423. if (lastComparison != 0) {
  23424. return lastComparison;
  23425. }
  23426. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  23427. if (lastComparison != 0) {
  23428. return lastComparison;
  23429. }
  23430. }
  23431. lastComparison = Boolean.valueOf(isSetLinkedNotebook()).compareTo(typedOther.isSetLinkedNotebook());
  23432. if (lastComparison != 0) {
  23433. return lastComparison;
  23434. }
  23435. if (isSetLinkedNotebook()) { lastComparison = TBaseHelper.compareTo(this.linkedNotebook, typedOther.linkedNotebook);
  23436. if (lastComparison != 0) {
  23437. return lastComparison;
  23438. }
  23439. }
  23440. return 0;
  23441. }
  23442. public void read(TProtocol iprot) throws TException {
  23443. TField field;
  23444. iprot.readStructBegin();
  23445. while (true)
  23446. {
  23447. field = iprot.readFieldBegin();
  23448. if (field.type == TType.STOP) {
  23449. break;
  23450. }
  23451. switch (field.id) {
  23452. case 1: // AUTHENTICATION_TOKEN
  23453. if (field.type == TType.STRING) {
  23454. this.authenticationToken = iprot.readString();
  23455. } else {
  23456. TProtocolUtil.skip(iprot, field.type);
  23457. }
  23458. break;
  23459. case 2: // LINKED_NOTEBOOK
  23460. if (field.type == TType.STRUCT) {
  23461. this.linkedNotebook = new com.evernote.edam.type.LinkedNotebook();
  23462. this.linkedNotebook.read(iprot);
  23463. } else {
  23464. TProtocolUtil.skip(iprot, field.type);
  23465. }
  23466. break;
  23467. default:
  23468. TProtocolUtil.skip(iprot, field.type);
  23469. }
  23470. iprot.readFieldEnd();
  23471. }
  23472. iprot.readStructEnd();
  23473. validate();
  23474. }
  23475. public void write(TProtocol oprot) throws TException {
  23476. validate();
  23477. oprot.writeStructBegin(STRUCT_DESC);
  23478. if (this.authenticationToken != null) {
  23479. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  23480. oprot.writeString(this.authenticationToken);
  23481. oprot.writeFieldEnd();
  23482. }
  23483. if (this.linkedNotebook != null) {
  23484. oprot.writeFieldBegin(LINKED_NOTEBOOK_FIELD_DESC);
  23485. this.linkedNotebook.write(oprot);
  23486. oprot.writeFieldEnd();
  23487. }
  23488. oprot.writeFieldStop();
  23489. oprot.writeStructEnd();
  23490. }
  23491. public void validate() throws TException {
  23492. // check for required fields
  23493. }
  23494. }
  23495. private static class createLinkedNotebook_result implements TBase<createLinkedNotebook_result>, java.io.Serializable, Cloneable {
  23496. private static final TStruct STRUCT_DESC = new TStruct("createLinkedNotebook_result");
  23497. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
  23498. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  23499. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)2);
  23500. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)3);
  23501. private com.evernote.edam.type.LinkedNotebook success;
  23502. private com.evernote.edam.error.EDAMUserException userException;
  23503. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  23504. private com.evernote.edam.error.EDAMSystemException systemException;
  23505. // isset id assignments
  23506. public createLinkedNotebook_result() {
  23507. }
  23508. /**
  23509. * Performs a deep copy on <i>other</i>.
  23510. */
  23511. public createLinkedNotebook_result(createLinkedNotebook_result other) {
  23512. if (other.isSetSuccess()) {
  23513. this.success = new com.evernote.edam.type.LinkedNotebook(other.success);
  23514. }
  23515. if (other.isSetUserException()) {
  23516. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  23517. }
  23518. if (other.isSetNotFoundException()) {
  23519. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  23520. }
  23521. if (other.isSetSystemException()) {
  23522. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  23523. }
  23524. }
  23525. public createLinkedNotebook_result deepCopy() {
  23526. return new createLinkedNotebook_result(this);
  23527. }
  23528. public void clear() {
  23529. this.success = null;
  23530. this.userException = null;
  23531. this.notFoundException = null;
  23532. this.systemException = null;
  23533. }
  23534. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  23535. public boolean isSetSuccess() {
  23536. return this.success != null;
  23537. }
  23538. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  23539. public boolean isSetUserException() {
  23540. return this.userException != null;
  23541. }
  23542. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  23543. public boolean isSetNotFoundException() {
  23544. return this.notFoundException != null;
  23545. }
  23546. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  23547. public boolean isSetSystemException() {
  23548. return this.systemException != null;
  23549. }
  23550. public int compareTo(createLinkedNotebook_result other) {
  23551. if (!getClass().equals(other.getClass())) {
  23552. return getClass().getName().compareTo(other.getClass().getName());
  23553. }
  23554. int lastComparison = 0;
  23555. createLinkedNotebook_result typedOther = (createLinkedNotebook_result)other;
  23556. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  23557. if (lastComparison != 0) {
  23558. return lastComparison;
  23559. }
  23560. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  23561. if (lastComparison != 0) {
  23562. return lastComparison;
  23563. }
  23564. }
  23565. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  23566. if (lastComparison != 0) {
  23567. return lastComparison;
  23568. }
  23569. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  23570. if (lastComparison != 0) {
  23571. return lastComparison;
  23572. }
  23573. }
  23574. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  23575. if (lastComparison != 0) {
  23576. return lastComparison;
  23577. }
  23578. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  23579. if (lastComparison != 0) {
  23580. return lastComparison;
  23581. }
  23582. }
  23583. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  23584. if (lastComparison != 0) {
  23585. return lastComparison;
  23586. }
  23587. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  23588. if (lastComparison != 0) {
  23589. return lastComparison;
  23590. }
  23591. }
  23592. return 0;
  23593. }
  23594. public void read(TProtocol iprot) throws TException {
  23595. TField field;
  23596. iprot.readStructBegin();
  23597. while (true)
  23598. {
  23599. field = iprot.readFieldBegin();
  23600. if (field.type == TType.STOP) {
  23601. break;
  23602. }
  23603. switch (field.id) {
  23604. case 0: // SUCCESS
  23605. if (field.type == TType.STRUCT) {
  23606. this.success = new com.evernote.edam.type.LinkedNotebook();
  23607. this.success.read(iprot);
  23608. } else {
  23609. TProtocolUtil.skip(iprot, field.type);
  23610. }
  23611. break;
  23612. case 1: // USER_EXCEPTION
  23613. if (field.type == TType.STRUCT) {
  23614. this.userException = new com.evernote.edam.error.EDAMUserException();
  23615. this.userException.read(iprot);
  23616. } else {
  23617. TProtocolUtil.skip(iprot, field.type);
  23618. }
  23619. break;
  23620. case 2: // NOT_FOUND_EXCEPTION
  23621. if (field.type == TType.STRUCT) {
  23622. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  23623. this.notFoundException.read(iprot);
  23624. } else {
  23625. TProtocolUtil.skip(iprot, field.type);
  23626. }
  23627. break;
  23628. case 3: // SYSTEM_EXCEPTION
  23629. if (field.type == TType.STRUCT) {
  23630. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  23631. this.systemException.read(iprot);
  23632. } else {
  23633. TProtocolUtil.skip(iprot, field.type);
  23634. }
  23635. break;
  23636. default:
  23637. TProtocolUtil.skip(iprot, field.type);
  23638. }
  23639. iprot.readFieldEnd();
  23640. }
  23641. iprot.readStructEnd();
  23642. validate();
  23643. }
  23644. public void write(TProtocol oprot) throws TException {
  23645. oprot.writeStructBegin(STRUCT_DESC);
  23646. if (this.isSetSuccess()) {
  23647. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  23648. this.success.write(oprot);
  23649. oprot.writeFieldEnd();
  23650. } else if (this.isSetUserException()) {
  23651. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  23652. this.userException.write(oprot);
  23653. oprot.writeFieldEnd();
  23654. } else if (this.isSetNotFoundException()) {
  23655. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  23656. this.notFoundException.write(oprot);
  23657. oprot.writeFieldEnd();
  23658. } else if (this.isSetSystemException()) {
  23659. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  23660. this.systemException.write(oprot);
  23661. oprot.writeFieldEnd();
  23662. }
  23663. oprot.writeFieldStop();
  23664. oprot.writeStructEnd();
  23665. }
  23666. public void validate() throws TException {
  23667. // check for required fields
  23668. }
  23669. }
  23670. private static class updateLinkedNotebook_args implements TBase<updateLinkedNotebook_args>, java.io.Serializable, Cloneable {
  23671. private static final TStruct STRUCT_DESC = new TStruct("updateLinkedNotebook_args");
  23672. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  23673. private static final TField LINKED_NOTEBOOK_FIELD_DESC = new TField("linkedNotebook", TType.STRUCT, (short)2);
  23674. private String authenticationToken;
  23675. private com.evernote.edam.type.LinkedNotebook linkedNotebook;
  23676. // isset id assignments
  23677. public updateLinkedNotebook_args() {
  23678. }
  23679. /**
  23680. * Performs a deep copy on <i>other</i>.
  23681. */
  23682. public updateLinkedNotebook_args(updateLinkedNotebook_args other) {
  23683. if (other.isSetAuthenticationToken()) {
  23684. this.authenticationToken = other.authenticationToken;
  23685. }
  23686. if (other.isSetLinkedNotebook()) {
  23687. this.linkedNotebook = new com.evernote.edam.type.LinkedNotebook(other.linkedNotebook);
  23688. }
  23689. }
  23690. public updateLinkedNotebook_args deepCopy() {
  23691. return new updateLinkedNotebook_args(this);
  23692. }
  23693. public void clear() {
  23694. this.authenticationToken = null;
  23695. this.linkedNotebook = null;
  23696. }
  23697. public void setAuthenticationToken(String authenticationToken) {
  23698. this.authenticationToken = authenticationToken;
  23699. }
  23700. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  23701. public boolean isSetAuthenticationToken() {
  23702. return this.authenticationToken != null;
  23703. }
  23704. public void setLinkedNotebook(com.evernote.edam.type.LinkedNotebook linkedNotebook) {
  23705. this.linkedNotebook = linkedNotebook;
  23706. }
  23707. /** Returns true if field linkedNotebook is set (has been asigned a value) and false otherwise */
  23708. public boolean isSetLinkedNotebook() {
  23709. return this.linkedNotebook != null;
  23710. }
  23711. public int compareTo(updateLinkedNotebook_args other) {
  23712. if (!getClass().equals(other.getClass())) {
  23713. return getClass().getName().compareTo(other.getClass().getName());
  23714. }
  23715. int lastComparison = 0;
  23716. updateLinkedNotebook_args typedOther = (updateLinkedNotebook_args)other;
  23717. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  23718. if (lastComparison != 0) {
  23719. return lastComparison;
  23720. }
  23721. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  23722. if (lastComparison != 0) {
  23723. return lastComparison;
  23724. }
  23725. }
  23726. lastComparison = Boolean.valueOf(isSetLinkedNotebook()).compareTo(typedOther.isSetLinkedNotebook());
  23727. if (lastComparison != 0) {
  23728. return lastComparison;
  23729. }
  23730. if (isSetLinkedNotebook()) { lastComparison = TBaseHelper.compareTo(this.linkedNotebook, typedOther.linkedNotebook);
  23731. if (lastComparison != 0) {
  23732. return lastComparison;
  23733. }
  23734. }
  23735. return 0;
  23736. }
  23737. public void read(TProtocol iprot) throws TException {
  23738. TField field;
  23739. iprot.readStructBegin();
  23740. while (true)
  23741. {
  23742. field = iprot.readFieldBegin();
  23743. if (field.type == TType.STOP) {
  23744. break;
  23745. }
  23746. switch (field.id) {
  23747. case 1: // AUTHENTICATION_TOKEN
  23748. if (field.type == TType.STRING) {
  23749. this.authenticationToken = iprot.readString();
  23750. } else {
  23751. TProtocolUtil.skip(iprot, field.type);
  23752. }
  23753. break;
  23754. case 2: // LINKED_NOTEBOOK
  23755. if (field.type == TType.STRUCT) {
  23756. this.linkedNotebook = new com.evernote.edam.type.LinkedNotebook();
  23757. this.linkedNotebook.read(iprot);
  23758. } else {
  23759. TProtocolUtil.skip(iprot, field.type);
  23760. }
  23761. break;
  23762. default:
  23763. TProtocolUtil.skip(iprot, field.type);
  23764. }
  23765. iprot.readFieldEnd();
  23766. }
  23767. iprot.readStructEnd();
  23768. validate();
  23769. }
  23770. public void write(TProtocol oprot) throws TException {
  23771. validate();
  23772. oprot.writeStructBegin(STRUCT_DESC);
  23773. if (this.authenticationToken != null) {
  23774. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  23775. oprot.writeString(this.authenticationToken);
  23776. oprot.writeFieldEnd();
  23777. }
  23778. if (this.linkedNotebook != null) {
  23779. oprot.writeFieldBegin(LINKED_NOTEBOOK_FIELD_DESC);
  23780. this.linkedNotebook.write(oprot);
  23781. oprot.writeFieldEnd();
  23782. }
  23783. oprot.writeFieldStop();
  23784. oprot.writeStructEnd();
  23785. }
  23786. public void validate() throws TException {
  23787. // check for required fields
  23788. }
  23789. }
  23790. private static class updateLinkedNotebook_result implements TBase<updateLinkedNotebook_result>, java.io.Serializable, Cloneable {
  23791. private static final TStruct STRUCT_DESC = new TStruct("updateLinkedNotebook_result");
  23792. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);
  23793. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  23794. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)2);
  23795. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)3);
  23796. private int success;
  23797. private com.evernote.edam.error.EDAMUserException userException;
  23798. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  23799. private com.evernote.edam.error.EDAMSystemException systemException;
  23800. // isset id assignments
  23801. private static final int __SUCCESS_ISSET_ID = 0;
  23802. private boolean[] __isset_vector = new boolean[1];
  23803. public updateLinkedNotebook_result() {
  23804. }
  23805. /**
  23806. * Performs a deep copy on <i>other</i>.
  23807. */
  23808. public updateLinkedNotebook_result(updateLinkedNotebook_result other) {
  23809. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  23810. this.success = other.success;
  23811. if (other.isSetUserException()) {
  23812. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  23813. }
  23814. if (other.isSetNotFoundException()) {
  23815. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  23816. }
  23817. if (other.isSetSystemException()) {
  23818. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  23819. }
  23820. }
  23821. public updateLinkedNotebook_result deepCopy() {
  23822. return new updateLinkedNotebook_result(this);
  23823. }
  23824. public void clear() {
  23825. setSuccessIsSet(false);
  23826. this.success = 0;
  23827. this.userException = null;
  23828. this.notFoundException = null;
  23829. this.systemException = null;
  23830. }
  23831. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  23832. public boolean isSetSuccess() {
  23833. return __isset_vector[__SUCCESS_ISSET_ID];
  23834. }
  23835. public void setSuccessIsSet(boolean value) {
  23836. __isset_vector[__SUCCESS_ISSET_ID] = value;
  23837. }
  23838. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  23839. public boolean isSetUserException() {
  23840. return this.userException != null;
  23841. }
  23842. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  23843. public boolean isSetNotFoundException() {
  23844. return this.notFoundException != null;
  23845. }
  23846. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  23847. public boolean isSetSystemException() {
  23848. return this.systemException != null;
  23849. }
  23850. public int compareTo(updateLinkedNotebook_result other) {
  23851. if (!getClass().equals(other.getClass())) {
  23852. return getClass().getName().compareTo(other.getClass().getName());
  23853. }
  23854. int lastComparison = 0;
  23855. updateLinkedNotebook_result typedOther = (updateLinkedNotebook_result)other;
  23856. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  23857. if (lastComparison != 0) {
  23858. return lastComparison;
  23859. }
  23860. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  23861. if (lastComparison != 0) {
  23862. return lastComparison;
  23863. }
  23864. }
  23865. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  23866. if (lastComparison != 0) {
  23867. return lastComparison;
  23868. }
  23869. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  23870. if (lastComparison != 0) {
  23871. return lastComparison;
  23872. }
  23873. }
  23874. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  23875. if (lastComparison != 0) {
  23876. return lastComparison;
  23877. }
  23878. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  23879. if (lastComparison != 0) {
  23880. return lastComparison;
  23881. }
  23882. }
  23883. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  23884. if (lastComparison != 0) {
  23885. return lastComparison;
  23886. }
  23887. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  23888. if (lastComparison != 0) {
  23889. return lastComparison;
  23890. }
  23891. }
  23892. return 0;
  23893. }
  23894. public void read(TProtocol iprot) throws TException {
  23895. TField field;
  23896. iprot.readStructBegin();
  23897. while (true)
  23898. {
  23899. field = iprot.readFieldBegin();
  23900. if (field.type == TType.STOP) {
  23901. break;
  23902. }
  23903. switch (field.id) {
  23904. case 0: // SUCCESS
  23905. if (field.type == TType.I32) {
  23906. this.success = iprot.readI32();
  23907. setSuccessIsSet(true);
  23908. } else {
  23909. TProtocolUtil.skip(iprot, field.type);
  23910. }
  23911. break;
  23912. case 1: // USER_EXCEPTION
  23913. if (field.type == TType.STRUCT) {
  23914. this.userException = new com.evernote.edam.error.EDAMUserException();
  23915. this.userException.read(iprot);
  23916. } else {
  23917. TProtocolUtil.skip(iprot, field.type);
  23918. }
  23919. break;
  23920. case 2: // NOT_FOUND_EXCEPTION
  23921. if (field.type == TType.STRUCT) {
  23922. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  23923. this.notFoundException.read(iprot);
  23924. } else {
  23925. TProtocolUtil.skip(iprot, field.type);
  23926. }
  23927. break;
  23928. case 3: // SYSTEM_EXCEPTION
  23929. if (field.type == TType.STRUCT) {
  23930. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  23931. this.systemException.read(iprot);
  23932. } else {
  23933. TProtocolUtil.skip(iprot, field.type);
  23934. }
  23935. break;
  23936. default:
  23937. TProtocolUtil.skip(iprot, field.type);
  23938. }
  23939. iprot.readFieldEnd();
  23940. }
  23941. iprot.readStructEnd();
  23942. validate();
  23943. }
  23944. public void write(TProtocol oprot) throws TException {
  23945. oprot.writeStructBegin(STRUCT_DESC);
  23946. if (this.isSetSuccess()) {
  23947. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  23948. oprot.writeI32(this.success);
  23949. oprot.writeFieldEnd();
  23950. } else if (this.isSetUserException()) {
  23951. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  23952. this.userException.write(oprot);
  23953. oprot.writeFieldEnd();
  23954. } else if (this.isSetNotFoundException()) {
  23955. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  23956. this.notFoundException.write(oprot);
  23957. oprot.writeFieldEnd();
  23958. } else if (this.isSetSystemException()) {
  23959. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  23960. this.systemException.write(oprot);
  23961. oprot.writeFieldEnd();
  23962. }
  23963. oprot.writeFieldStop();
  23964. oprot.writeStructEnd();
  23965. }
  23966. public void validate() throws TException {
  23967. // check for required fields
  23968. }
  23969. }
  23970. private static class listLinkedNotebooks_args implements TBase<listLinkedNotebooks_args>, java.io.Serializable, Cloneable {
  23971. private static final TStruct STRUCT_DESC = new TStruct("listLinkedNotebooks_args");
  23972. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  23973. private String authenticationToken;
  23974. // isset id assignments
  23975. public listLinkedNotebooks_args() {
  23976. }
  23977. /**
  23978. * Performs a deep copy on <i>other</i>.
  23979. */
  23980. public listLinkedNotebooks_args(listLinkedNotebooks_args other) {
  23981. if (other.isSetAuthenticationToken()) {
  23982. this.authenticationToken = other.authenticationToken;
  23983. }
  23984. }
  23985. public listLinkedNotebooks_args deepCopy() {
  23986. return new listLinkedNotebooks_args(this);
  23987. }
  23988. public void clear() {
  23989. this.authenticationToken = null;
  23990. }
  23991. public void setAuthenticationToken(String authenticationToken) {
  23992. this.authenticationToken = authenticationToken;
  23993. }
  23994. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  23995. public boolean isSetAuthenticationToken() {
  23996. return this.authenticationToken != null;
  23997. }
  23998. public int compareTo(listLinkedNotebooks_args other) {
  23999. if (!getClass().equals(other.getClass())) {
  24000. return getClass().getName().compareTo(other.getClass().getName());
  24001. }
  24002. int lastComparison = 0;
  24003. listLinkedNotebooks_args typedOther = (listLinkedNotebooks_args)other;
  24004. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  24005. if (lastComparison != 0) {
  24006. return lastComparison;
  24007. }
  24008. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  24009. if (lastComparison != 0) {
  24010. return lastComparison;
  24011. }
  24012. }
  24013. return 0;
  24014. }
  24015. public void read(TProtocol iprot) throws TException {
  24016. TField field;
  24017. iprot.readStructBegin();
  24018. while (true)
  24019. {
  24020. field = iprot.readFieldBegin();
  24021. if (field.type == TType.STOP) {
  24022. break;
  24023. }
  24024. switch (field.id) {
  24025. case 1: // AUTHENTICATION_TOKEN
  24026. if (field.type == TType.STRING) {
  24027. this.authenticationToken = iprot.readString();
  24028. } else {
  24029. TProtocolUtil.skip(iprot, field.type);
  24030. }
  24031. break;
  24032. default:
  24033. TProtocolUtil.skip(iprot, field.type);
  24034. }
  24035. iprot.readFieldEnd();
  24036. }
  24037. iprot.readStructEnd();
  24038. validate();
  24039. }
  24040. public void write(TProtocol oprot) throws TException {
  24041. validate();
  24042. oprot.writeStructBegin(STRUCT_DESC);
  24043. if (this.authenticationToken != null) {
  24044. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  24045. oprot.writeString(this.authenticationToken);
  24046. oprot.writeFieldEnd();
  24047. }
  24048. oprot.writeFieldStop();
  24049. oprot.writeStructEnd();
  24050. }
  24051. public void validate() throws TException {
  24052. // check for required fields
  24053. }
  24054. }
  24055. private static class listLinkedNotebooks_result implements TBase<listLinkedNotebooks_result>, java.io.Serializable, Cloneable {
  24056. private static final TStruct STRUCT_DESC = new TStruct("listLinkedNotebooks_result");
  24057. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
  24058. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  24059. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)2);
  24060. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)3);
  24061. private List<com.evernote.edam.type.LinkedNotebook> success;
  24062. private com.evernote.edam.error.EDAMUserException userException;
  24063. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  24064. private com.evernote.edam.error.EDAMSystemException systemException;
  24065. // isset id assignments
  24066. public listLinkedNotebooks_result() {
  24067. }
  24068. /**
  24069. * Performs a deep copy on <i>other</i>.
  24070. */
  24071. public listLinkedNotebooks_result(listLinkedNotebooks_result other) {
  24072. if (other.isSetSuccess()) {
  24073. List<com.evernote.edam.type.LinkedNotebook> __this__success = new ArrayList<com.evernote.edam.type.LinkedNotebook>();
  24074. for (com.evernote.edam.type.LinkedNotebook other_element : other.success) {
  24075. __this__success.add(new com.evernote.edam.type.LinkedNotebook(other_element));
  24076. }
  24077. this.success = __this__success;
  24078. }
  24079. if (other.isSetUserException()) {
  24080. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  24081. }
  24082. if (other.isSetNotFoundException()) {
  24083. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  24084. }
  24085. if (other.isSetSystemException()) {
  24086. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  24087. }
  24088. }
  24089. public listLinkedNotebooks_result deepCopy() {
  24090. return new listLinkedNotebooks_result(this);
  24091. }
  24092. public void clear() {
  24093. this.success = null;
  24094. this.userException = null;
  24095. this.notFoundException = null;
  24096. this.systemException = null;
  24097. }
  24098. /** Returns true if field success is set (has been asigned a value) and false otherwise */
  24099. public boolean isSetSuccess() {
  24100. return this.success != null;
  24101. }
  24102. /** Returns true if field userException is set (has been asigned a value) and false otherwise */
  24103. public boolean isSetUserException() {
  24104. return this.userException != null;
  24105. }
  24106. /** Returns true if field notFoundException is set (has been asigned a value) and false otherwise */
  24107. public boolean isSetNotFoundException() {
  24108. return this.notFoundException != null;
  24109. }
  24110. /** Returns true if field systemException is set (has been asigned a value) and false otherwise */
  24111. public boolean isSetSystemException() {
  24112. return this.systemException != null;
  24113. }
  24114. public int compareTo(listLinkedNotebooks_result other) {
  24115. if (!getClass().equals(other.getClass())) {
  24116. return getClass().getName().compareTo(other.getClass().getName());
  24117. }
  24118. int lastComparison = 0;
  24119. listLinkedNotebooks_result typedOther = (listLinkedNotebooks_result)other;
  24120. lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
  24121. if (lastComparison != 0) {
  24122. return lastComparison;
  24123. }
  24124. if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
  24125. if (lastComparison != 0) {
  24126. return lastComparison;
  24127. }
  24128. }
  24129. lastComparison = Boolean.valueOf(isSetUserException()).compareTo(typedOther.isSetUserException());
  24130. if (lastComparison != 0) {
  24131. return lastComparison;
  24132. }
  24133. if (isSetUserException()) { lastComparison = TBaseHelper.compareTo(this.userException, typedOther.userException);
  24134. if (lastComparison != 0) {
  24135. return lastComparison;
  24136. }
  24137. }
  24138. lastComparison = Boolean.valueOf(isSetNotFoundException()).compareTo(typedOther.isSetNotFoundException());
  24139. if (lastComparison != 0) {
  24140. return lastComparison;
  24141. }
  24142. if (isSetNotFoundException()) { lastComparison = TBaseHelper.compareTo(this.notFoundException, typedOther.notFoundException);
  24143. if (lastComparison != 0) {
  24144. return lastComparison;
  24145. }
  24146. }
  24147. lastComparison = Boolean.valueOf(isSetSystemException()).compareTo(typedOther.isSetSystemException());
  24148. if (lastComparison != 0) {
  24149. return lastComparison;
  24150. }
  24151. if (isSetSystemException()) { lastComparison = TBaseHelper.compareTo(this.systemException, typedOther.systemException);
  24152. if (lastComparison != 0) {
  24153. return lastComparison;
  24154. }
  24155. }
  24156. return 0;
  24157. }
  24158. public void read(TProtocol iprot) throws TException {
  24159. TField field;
  24160. iprot.readStructBegin();
  24161. while (true)
  24162. {
  24163. field = iprot.readFieldBegin();
  24164. if (field.type == TType.STOP) {
  24165. break;
  24166. }
  24167. switch (field.id) {
  24168. case 0: // SUCCESS
  24169. if (field.type == TType.LIST) {
  24170. {
  24171. TList _list150 = iprot.readListBegin();
  24172. this.success = new ArrayList<com.evernote.edam.type.LinkedNotebook>(_list150.size);
  24173. for (int _i151 = 0; _i151 < _list150.size; ++_i151)
  24174. {
  24175. com.evernote.edam.type.LinkedNotebook _elem152;
  24176. _elem152 = new com.evernote.edam.type.LinkedNotebook();
  24177. _elem152.read(iprot);
  24178. this.success.add(_elem152);
  24179. }
  24180. iprot.readListEnd();
  24181. }
  24182. } else {
  24183. TProtocolUtil.skip(iprot, field.type);
  24184. }
  24185. break;
  24186. case 1: // USER_EXCEPTION
  24187. if (field.type == TType.STRUCT) {
  24188. this.userException = new com.evernote.edam.error.EDAMUserException();
  24189. this.userException.read(iprot);
  24190. } else {
  24191. TProtocolUtil.skip(iprot, field.type);
  24192. }
  24193. break;
  24194. case 2: // NOT_FOUND_EXCEPTION
  24195. if (field.type == TType.STRUCT) {
  24196. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException();
  24197. this.notFoundException.read(iprot);
  24198. } else {
  24199. TProtocolUtil.skip(iprot, field.type);
  24200. }
  24201. break;
  24202. case 3: // SYSTEM_EXCEPTION
  24203. if (field.type == TType.STRUCT) {
  24204. this.systemException = new com.evernote.edam.error.EDAMSystemException();
  24205. this.systemException.read(iprot);
  24206. } else {
  24207. TProtocolUtil.skip(iprot, field.type);
  24208. }
  24209. break;
  24210. default:
  24211. TProtocolUtil.skip(iprot, field.type);
  24212. }
  24213. iprot.readFieldEnd();
  24214. }
  24215. iprot.readStructEnd();
  24216. validate();
  24217. }
  24218. public void write(TProtocol oprot) throws TException {
  24219. oprot.writeStructBegin(STRUCT_DESC);
  24220. if (this.isSetSuccess()) {
  24221. oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
  24222. {
  24223. oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
  24224. for (com.evernote.edam.type.LinkedNotebook _iter153 : this.success)
  24225. {
  24226. _iter153.write(oprot);
  24227. }
  24228. oprot.writeListEnd();
  24229. }
  24230. oprot.writeFieldEnd();
  24231. } else if (this.isSetUserException()) {
  24232. oprot.writeFieldBegin(USER_EXCEPTION_FIELD_DESC);
  24233. this.userException.write(oprot);
  24234. oprot.writeFieldEnd();
  24235. } else if (this.isSetNotFoundException()) {
  24236. oprot.writeFieldBegin(NOT_FOUND_EXCEPTION_FIELD_DESC);
  24237. this.notFoundException.write(oprot);
  24238. oprot.writeFieldEnd();
  24239. } else if (this.isSetSystemException()) {
  24240. oprot.writeFieldBegin(SYSTEM_EXCEPTION_FIELD_DESC);
  24241. this.systemException.write(oprot);
  24242. oprot.writeFieldEnd();
  24243. }
  24244. oprot.writeFieldStop();
  24245. oprot.writeStructEnd();
  24246. }
  24247. public void validate() throws TException {
  24248. // check for required fields
  24249. }
  24250. }
  24251. private static class expungeLinkedNotebook_args implements TBase<expungeLinkedNotebook_args>, java.io.Serializable, Cloneable {
  24252. private static final TStruct STRUCT_DESC = new TStruct("expungeLinkedNotebook_args");
  24253. private static final TField AUTHENTICATION_TOKEN_FIELD_DESC = new TField("authenticationToken", TType.STRING, (short)1);
  24254. private static final TField GUID_FIELD_DESC = new TField("guid", TType.STRING, (short)2);
  24255. private String authenticationToken;
  24256. private String guid;
  24257. // isset id assignments
  24258. public expungeLinkedNotebook_args() {
  24259. }
  24260. /**
  24261. * Performs a deep copy on <i>other</i>.
  24262. */
  24263. public expungeLinkedNotebook_args(expungeLinkedNotebook_args other) {
  24264. if (other.isSetAuthenticationToken()) {
  24265. this.authenticationToken = other.authenticationToken;
  24266. }
  24267. if (other.isSetGuid()) {
  24268. this.guid = other.guid;
  24269. }
  24270. }
  24271. public expungeLinkedNotebook_args deepCopy() {
  24272. return new expungeLinkedNotebook_args(this);
  24273. }
  24274. public void clear() {
  24275. this.authenticationToken = null;
  24276. this.guid = null;
  24277. }
  24278. public void setAuthenticationToken(String authenticationToken) {
  24279. this.authenticationToken = authenticationToken;
  24280. }
  24281. /** Returns true if field authenticationToken is set (has been asigned a value) and false otherwise */
  24282. public boolean isSetAuthenticationToken() {
  24283. return this.authenticationToken != null;
  24284. }
  24285. public void setGuid(String guid) {
  24286. this.guid = guid;
  24287. }
  24288. /** Returns true if field guid is set (has been asigned a value) and false otherwise */
  24289. public boolean isSetGuid() {
  24290. return this.guid != null;
  24291. }
  24292. public int compareTo(expungeLinkedNotebook_args other) {
  24293. if (!getClass().equals(other.getClass())) {
  24294. return getClass().getName().compareTo(other.getClass().getName());
  24295. }
  24296. int lastComparison = 0;
  24297. expungeLinkedNotebook_args typedOther = (expungeLinkedNotebook_args)other;
  24298. lastComparison = Boolean.valueOf(isSetAuthenticationToken()).compareTo(typedOther.isSetAuthenticationToken());
  24299. if (lastComparison != 0) {
  24300. return lastComparison;
  24301. }
  24302. if (isSetAuthenticationToken()) { lastComparison = TBaseHelper.compareTo(this.authenticationToken, typedOther.authenticationToken);
  24303. if (lastComparison != 0) {
  24304. return lastComparison;
  24305. }
  24306. }
  24307. lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid());
  24308. if (lastComparison != 0) {
  24309. return lastComparison;
  24310. }
  24311. if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid);
  24312. if (lastComparison != 0) {
  24313. return lastComparison;
  24314. }
  24315. }
  24316. return 0;
  24317. }
  24318. public void read(TProtocol iprot) throws TException {
  24319. TField field;
  24320. iprot.readStructBegin();
  24321. while (true)
  24322. {
  24323. field = iprot.readFieldBegin();
  24324. if (field.type == TType.STOP) {
  24325. break;
  24326. }
  24327. switch (field.id) {
  24328. case 1: // AUTHENTICATION_TOKEN
  24329. if (field.type == TType.STRING) {
  24330. this.authenticationToken = iprot.readString();
  24331. } else {
  24332. TProtocolUtil.skip(iprot, field.type);
  24333. }
  24334. break;
  24335. case 2: // GUID
  24336. if (field.type == TType.STRING) {
  24337. this.guid = iprot.readString();
  24338. } else {
  24339. TProtocolUtil.skip(iprot, field.type);
  24340. }
  24341. break;
  24342. default:
  24343. TProtocolUtil.skip(iprot, field.type);
  24344. }
  24345. iprot.readFieldEnd();
  24346. }
  24347. iprot.readStructEnd();
  24348. validate();
  24349. }
  24350. public void write(TProtocol oprot) throws TException {
  24351. validate();
  24352. oprot.writeStructBegin(STRUCT_DESC);
  24353. if (this.authenticationToken != null) {
  24354. oprot.writeFieldBegin(AUTHENTICATION_TOKEN_FIELD_DESC);
  24355. oprot.writeString(this.authenticationToken);
  24356. oprot.writeFieldEnd();
  24357. }
  24358. if (this.guid != null) {
  24359. oprot.writeFieldBegin(GUID_FIELD_DESC);
  24360. oprot.writeString(this.guid);
  24361. oprot.writeFieldEnd();
  24362. }
  24363. oprot.writeFieldStop();
  24364. oprot.writeStructEnd();
  24365. }
  24366. public void validate() throws TException {
  24367. // check for required fields
  24368. }
  24369. }
  24370. private static class expungeLinkedNotebook_result implements TBase<expungeLinkedNotebook_result>, java.io.Serializable, Cloneable {
  24371. private static final TStruct STRUCT_DESC = new TStruct("expungeLinkedNotebook_result");
  24372. private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);
  24373. private static final TField USER_EXCEPTION_FIELD_DESC = new TField("userException", TType.STRUCT, (short)1);
  24374. private static final TField NOT_FOUND_EXCEPTION_FIELD_DESC = new TField("notFoundException", TType.STRUCT, (short)2);
  24375. private static final TField SYSTEM_EXCEPTION_FIELD_DESC = new TField("systemException", TType.STRUCT, (short)3);
  24376. private int success;
  24377. private com.evernote.edam.error.EDAMUserException userException;
  24378. private com.evernote.edam.error.EDAMNotFoundException notFoundException;
  24379. private com.evernote.edam.error.EDAMSystemException systemException;
  24380. // isset id assignments
  24381. private static final int __SUCCESS_ISSET_ID = 0;
  24382. private boolean[] __isset_vector = new boolean[1];
  24383. public expungeLinkedNotebook_result() {
  24384. }
  24385. /**
  24386. * Performs a deep copy on <i>other</i>.
  24387. */
  24388. public expungeLinkedNotebook_result(expungeLinkedNotebook_result other) {
  24389. System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length);
  24390. this.success = other.success;
  24391. if (other.isSetUserException()) {
  24392. this.userException = new com.evernote.edam.error.EDAMUserException(other.userException);
  24393. }
  24394. if (other.isSetNotFoundException()) {
  24395. this.notFoundException = new com.evernote.edam.error.EDAMNotFoundException(other.notFoundException);
  24396. }
  24397. if (other.isSetSystemException()) {
  24398. this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException);
  24399. }
  24400. }
  24401. public expungeLinkedNotebook_result deepCopy() {
  24402. return new expungeLinkedNotebook_result(this);