PageRenderTime 11ms CodeModel.GetById 10ms app.highlight 73ms RepoModel.GetById 1ms app.codeStats 3ms

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

http://github.com/evernote/evernote-sdk-java
Java | 13456 lines | 11499 code | 1487 blank | 470 comment | 3059 complexity | fcb37622fb0c50662ba30817f74025f3 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

   1/**
   2 * Autogenerated by Thrift
   3 *
   4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
   5 */
   6package com.evernote.edam.notestore;
   7
   8import java.util.List;
   9import java.util.ArrayList;
  10import java.util.Map;
  11import java.util.HashMap;
  12import java.util.Set;
  13import java.util.HashSet;
  14
  15import com.evernote.thrift.*;
  16import com.evernote.thrift.protocol.*;
  17
  18public class NoteStore {
  19
  20  public interface Iface extends NoteStoreIface { }
  21
  22  public static class Client implements TServiceClient, Iface {
  23    public Client(TProtocol prot)
  24    {
  25      this(prot, prot);
  26    }
  27
  28    public Client(TProtocol iprot, TProtocol oprot)
  29    {
  30      iprot_ = iprot;
  31      oprot_ = oprot;
  32    }
  33
  34    protected TProtocol iprot_;
  35    protected TProtocol oprot_;
  36
  37    protected int seqid_;
  38
  39    public TProtocol getInputProtocol()
  40    {
  41      return this.iprot_;
  42    }
  43
  44    public TProtocol getOutputProtocol()
  45    {
  46      return this.oprot_;
  47    }
  48
  49    public SyncState getSyncState(String authenticationToken) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  50    {
  51      send_getSyncState(authenticationToken);
  52      return recv_getSyncState();
  53    }
  54
  55    public void send_getSyncState(String authenticationToken) throws TException
  56    {
  57      oprot_.writeMessageBegin(new TMessage("getSyncState", TMessageType.CALL, ++seqid_));
  58      getSyncState_args args = new getSyncState_args();
  59      args.setAuthenticationToken(authenticationToken);
  60      args.write(oprot_);
  61      oprot_.writeMessageEnd();
  62      oprot_.getTransport().flush();
  63    }
  64
  65    public SyncState recv_getSyncState() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  66    {
  67      TMessage msg = iprot_.readMessageBegin();
  68      if (msg.type == TMessageType.EXCEPTION) {
  69        TApplicationException x = TApplicationException.read(iprot_);
  70        iprot_.readMessageEnd();
  71        throw x;
  72      }
  73      if (msg.seqid != seqid_) {
  74        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getSyncState failed: out of sequence response");
  75      }
  76      getSyncState_result result = new getSyncState_result();
  77      result.read(iprot_);
  78      iprot_.readMessageEnd();
  79      if (result.isSetSuccess()) {
  80        return result.success;
  81      }
  82      if (result.userException != null) {
  83        throw result.userException;
  84      }
  85      if (result.systemException != null) {
  86        throw result.systemException;
  87      }
  88      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSyncState failed: unknown result");
  89    }
  90
  91    public SyncState getSyncStateWithMetrics(String authenticationToken, ClientUsageMetrics clientMetrics) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
  92    {
  93      send_getSyncStateWithMetrics(authenticationToken, clientMetrics);
  94      return recv_getSyncStateWithMetrics();
  95    }
  96
  97    public void send_getSyncStateWithMetrics(String authenticationToken, ClientUsageMetrics clientMetrics) throws TException
  98    {
  99      oprot_.writeMessageBegin(new TMessage("getSyncStateWithMetrics", TMessageType.CALL, ++seqid_));
 100      getSyncStateWithMetrics_args args = new getSyncStateWithMetrics_args();
 101      args.setAuthenticationToken(authenticationToken);
 102      args.setClientMetrics(clientMetrics);
 103      args.write(oprot_);
 104      oprot_.writeMessageEnd();
 105      oprot_.getTransport().flush();
 106    }
 107
 108    public SyncState recv_getSyncStateWithMetrics() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
 109    {
 110      TMessage msg = iprot_.readMessageBegin();
 111      if (msg.type == TMessageType.EXCEPTION) {
 112        TApplicationException x = TApplicationException.read(iprot_);
 113        iprot_.readMessageEnd();
 114        throw x;
 115      }
 116      if (msg.seqid != seqid_) {
 117        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getSyncStateWithMetrics failed: out of sequence response");
 118      }
 119      getSyncStateWithMetrics_result result = new getSyncStateWithMetrics_result();
 120      result.read(iprot_);
 121      iprot_.readMessageEnd();
 122      if (result.isSetSuccess()) {
 123        return result.success;
 124      }
 125      if (result.userException != null) {
 126        throw result.userException;
 127      }
 128      if (result.systemException != null) {
 129        throw result.systemException;
 130      }
 131      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSyncStateWithMetrics failed: unknown result");
 132    }
 133
 134    public SyncChunk getSyncChunk(String authenticationToken, int afterUSN, int maxEntries, boolean fullSyncOnly) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
 135    {
 136      send_getSyncChunk(authenticationToken, afterUSN, maxEntries, fullSyncOnly);
 137      return recv_getSyncChunk();
 138    }
 139
 140    public void send_getSyncChunk(String authenticationToken, int afterUSN, int maxEntries, boolean fullSyncOnly) throws TException
 141    {
 142      oprot_.writeMessageBegin(new TMessage("getSyncChunk", TMessageType.CALL, ++seqid_));
 143      getSyncChunk_args args = new getSyncChunk_args();
 144      args.setAuthenticationToken(authenticationToken);
 145      args.setAfterUSN(afterUSN);
 146      args.setMaxEntries(maxEntries);
 147      args.setFullSyncOnly(fullSyncOnly);
 148      args.write(oprot_);
 149      oprot_.writeMessageEnd();
 150      oprot_.getTransport().flush();
 151    }
 152
 153    public SyncChunk recv_getSyncChunk() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
 154    {
 155      TMessage msg = iprot_.readMessageBegin();
 156      if (msg.type == TMessageType.EXCEPTION) {
 157        TApplicationException x = TApplicationException.read(iprot_);
 158        iprot_.readMessageEnd();
 159        throw x;
 160      }
 161      if (msg.seqid != seqid_) {
 162        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getSyncChunk failed: out of sequence response");
 163      }
 164      getSyncChunk_result result = new getSyncChunk_result();
 165      result.read(iprot_);
 166      iprot_.readMessageEnd();
 167      if (result.isSetSuccess()) {
 168        return result.success;
 169      }
 170      if (result.userException != null) {
 171        throw result.userException;
 172      }
 173      if (result.systemException != null) {
 174        throw result.systemException;
 175      }
 176      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSyncChunk failed: unknown result");
 177    }
 178
 179    public SyncChunk getFilteredSyncChunk(String authenticationToken, int afterUSN, int maxEntries, SyncChunkFilter filter) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
 180    {
 181      send_getFilteredSyncChunk(authenticationToken, afterUSN, maxEntries, filter);
 182      return recv_getFilteredSyncChunk();
 183    }
 184
 185    public void send_getFilteredSyncChunk(String authenticationToken, int afterUSN, int maxEntries, SyncChunkFilter filter) throws TException
 186    {
 187      oprot_.writeMessageBegin(new TMessage("getFilteredSyncChunk", TMessageType.CALL, ++seqid_));
 188      getFilteredSyncChunk_args args = new getFilteredSyncChunk_args();
 189      args.setAuthenticationToken(authenticationToken);
 190      args.setAfterUSN(afterUSN);
 191      args.setMaxEntries(maxEntries);
 192      args.setFilter(filter);
 193      args.write(oprot_);
 194      oprot_.writeMessageEnd();
 195      oprot_.getTransport().flush();
 196    }
 197
 198    public SyncChunk recv_getFilteredSyncChunk() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
 199    {
 200      TMessage msg = iprot_.readMessageBegin();
 201      if (msg.type == TMessageType.EXCEPTION) {
 202        TApplicationException x = TApplicationException.read(iprot_);
 203        iprot_.readMessageEnd();
 204        throw x;
 205      }
 206      if (msg.seqid != seqid_) {
 207        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getFilteredSyncChunk failed: out of sequence response");
 208      }
 209      getFilteredSyncChunk_result result = new getFilteredSyncChunk_result();
 210      result.read(iprot_);
 211      iprot_.readMessageEnd();
 212      if (result.isSetSuccess()) {
 213        return result.success;
 214      }
 215      if (result.userException != null) {
 216        throw result.userException;
 217      }
 218      if (result.systemException != null) {
 219        throw result.systemException;
 220      }
 221      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getFilteredSyncChunk failed: unknown result");
 222    }
 223
 224    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
 225    {
 226      send_getLinkedNotebookSyncState(authenticationToken, linkedNotebook);
 227      return recv_getLinkedNotebookSyncState();
 228    }
 229
 230    public void send_getLinkedNotebookSyncState(String authenticationToken, com.evernote.edam.type.LinkedNotebook linkedNotebook) throws TException
 231    {
 232      oprot_.writeMessageBegin(new TMessage("getLinkedNotebookSyncState", TMessageType.CALL, ++seqid_));
 233      getLinkedNotebookSyncState_args args = new getLinkedNotebookSyncState_args();
 234      args.setAuthenticationToken(authenticationToken);
 235      args.setLinkedNotebook(linkedNotebook);
 236      args.write(oprot_);
 237      oprot_.writeMessageEnd();
 238      oprot_.getTransport().flush();
 239    }
 240
 241    public SyncState recv_getLinkedNotebookSyncState() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
 242    {
 243      TMessage msg = iprot_.readMessageBegin();
 244      if (msg.type == TMessageType.EXCEPTION) {
 245        TApplicationException x = TApplicationException.read(iprot_);
 246        iprot_.readMessageEnd();
 247        throw x;
 248      }
 249      if (msg.seqid != seqid_) {
 250        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getLinkedNotebookSyncState failed: out of sequence response");
 251      }
 252      getLinkedNotebookSyncState_result result = new getLinkedNotebookSyncState_result();
 253      result.read(iprot_);
 254      iprot_.readMessageEnd();
 255      if (result.isSetSuccess()) {
 256        return result.success;
 257      }
 258      if (result.userException != null) {
 259        throw result.userException;
 260      }
 261      if (result.systemException != null) {
 262        throw result.systemException;
 263      }
 264      if (result.notFoundException != null) {
 265        throw result.notFoundException;
 266      }
 267      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLinkedNotebookSyncState failed: unknown result");
 268    }
 269
 270    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
 271    {
 272      send_getLinkedNotebookSyncChunk(authenticationToken, linkedNotebook, afterUSN, maxEntries, fullSyncOnly);
 273      return recv_getLinkedNotebookSyncChunk();
 274    }
 275
 276    public void send_getLinkedNotebookSyncChunk(String authenticationToken, com.evernote.edam.type.LinkedNotebook linkedNotebook, int afterUSN, int maxEntries, boolean fullSyncOnly) throws TException
 277    {
 278      oprot_.writeMessageBegin(new TMessage("getLinkedNotebookSyncChunk", TMessageType.CALL, ++seqid_));
 279      getLinkedNotebookSyncChunk_args args = new getLinkedNotebookSyncChunk_args();
 280      args.setAuthenticationToken(authenticationToken);
 281      args.setLinkedNotebook(linkedNotebook);
 282      args.setAfterUSN(afterUSN);
 283      args.setMaxEntries(maxEntries);
 284      args.setFullSyncOnly(fullSyncOnly);
 285      args.write(oprot_);
 286      oprot_.writeMessageEnd();
 287      oprot_.getTransport().flush();
 288    }
 289
 290    public SyncChunk recv_getLinkedNotebookSyncChunk() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
 291    {
 292      TMessage msg = iprot_.readMessageBegin();
 293      if (msg.type == TMessageType.EXCEPTION) {
 294        TApplicationException x = TApplicationException.read(iprot_);
 295        iprot_.readMessageEnd();
 296        throw x;
 297      }
 298      if (msg.seqid != seqid_) {
 299        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getLinkedNotebookSyncChunk failed: out of sequence response");
 300      }
 301      getLinkedNotebookSyncChunk_result result = new getLinkedNotebookSyncChunk_result();
 302      result.read(iprot_);
 303      iprot_.readMessageEnd();
 304      if (result.isSetSuccess()) {
 305        return result.success;
 306      }
 307      if (result.userException != null) {
 308        throw result.userException;
 309      }
 310      if (result.systemException != null) {
 311        throw result.systemException;
 312      }
 313      if (result.notFoundException != null) {
 314        throw result.notFoundException;
 315      }
 316      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLinkedNotebookSyncChunk failed: unknown result");
 317    }
 318
 319    public List<com.evernote.edam.type.Notebook> listNotebooks(String authenticationToken) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
 320    {
 321      send_listNotebooks(authenticationToken);
 322      return recv_listNotebooks();
 323    }
 324
 325    public void send_listNotebooks(String authenticationToken) throws TException
 326    {
 327      oprot_.writeMessageBegin(new TMessage("listNotebooks", TMessageType.CALL, ++seqid_));
 328      listNotebooks_args args = new listNotebooks_args();
 329      args.setAuthenticationToken(authenticationToken);
 330      args.write(oprot_);
 331      oprot_.writeMessageEnd();
 332      oprot_.getTransport().flush();
 333    }
 334
 335    public List<com.evernote.edam.type.Notebook> recv_listNotebooks() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
 336    {
 337      TMessage msg = iprot_.readMessageBegin();
 338      if (msg.type == TMessageType.EXCEPTION) {
 339        TApplicationException x = TApplicationException.read(iprot_);
 340        iprot_.readMessageEnd();
 341        throw x;
 342      }
 343      if (msg.seqid != seqid_) {
 344        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "listNotebooks failed: out of sequence response");
 345      }
 346      listNotebooks_result result = new listNotebooks_result();
 347      result.read(iprot_);
 348      iprot_.readMessageEnd();
 349      if (result.isSetSuccess()) {
 350        return result.success;
 351      }
 352      if (result.userException != null) {
 353        throw result.userException;
 354      }
 355      if (result.systemException != null) {
 356        throw result.systemException;
 357      }
 358      throw new TApplicationException(TApplicationException.MISSING_RESULT, "listNotebooks failed: unknown result");
 359    }
 360
 361    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
 362    {
 363      send_getNotebook(authenticationToken, guid);
 364      return recv_getNotebook();
 365    }
 366
 367    public void send_getNotebook(String authenticationToken, String guid) throws TException
 368    {
 369      oprot_.writeMessageBegin(new TMessage("getNotebook", TMessageType.CALL, ++seqid_));
 370      getNotebook_args args = new getNotebook_args();
 371      args.setAuthenticationToken(authenticationToken);
 372      args.setGuid(guid);
 373      args.write(oprot_);
 374      oprot_.writeMessageEnd();
 375      oprot_.getTransport().flush();
 376    }
 377
 378    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
 379    {
 380      TMessage msg = iprot_.readMessageBegin();
 381      if (msg.type == TMessageType.EXCEPTION) {
 382        TApplicationException x = TApplicationException.read(iprot_);
 383        iprot_.readMessageEnd();
 384        throw x;
 385      }
 386      if (msg.seqid != seqid_) {
 387        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getNotebook failed: out of sequence response");
 388      }
 389      getNotebook_result result = new getNotebook_result();
 390      result.read(iprot_);
 391      iprot_.readMessageEnd();
 392      if (result.isSetSuccess()) {
 393        return result.success;
 394      }
 395      if (result.userException != null) {
 396        throw result.userException;
 397      }
 398      if (result.systemException != null) {
 399        throw result.systemException;
 400      }
 401      if (result.notFoundException != null) {
 402        throw result.notFoundException;
 403      }
 404      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getNotebook failed: unknown result");
 405    }
 406
 407    public com.evernote.edam.type.Notebook getDefaultNotebook(String authenticationToken) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
 408    {
 409      send_getDefaultNotebook(authenticationToken);
 410      return recv_getDefaultNotebook();
 411    }
 412
 413    public void send_getDefaultNotebook(String authenticationToken) throws TException
 414    {
 415      oprot_.writeMessageBegin(new TMessage("getDefaultNotebook", TMessageType.CALL, ++seqid_));
 416      getDefaultNotebook_args args = new getDefaultNotebook_args();
 417      args.setAuthenticationToken(authenticationToken);
 418      args.write(oprot_);
 419      oprot_.writeMessageEnd();
 420      oprot_.getTransport().flush();
 421    }
 422
 423    public com.evernote.edam.type.Notebook recv_getDefaultNotebook() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
 424    {
 425      TMessage msg = iprot_.readMessageBegin();
 426      if (msg.type == TMessageType.EXCEPTION) {
 427        TApplicationException x = TApplicationException.read(iprot_);
 428        iprot_.readMessageEnd();
 429        throw x;
 430      }
 431      if (msg.seqid != seqid_) {
 432        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getDefaultNotebook failed: out of sequence response");
 433      }
 434      getDefaultNotebook_result result = new getDefaultNotebook_result();
 435      result.read(iprot_);
 436      iprot_.readMessageEnd();
 437      if (result.isSetSuccess()) {
 438        return result.success;
 439      }
 440      if (result.userException != null) {
 441        throw result.userException;
 442      }
 443      if (result.systemException != null) {
 444        throw result.systemException;
 445      }
 446      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultNotebook failed: unknown result");
 447    }
 448
 449    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
 450    {
 451      send_createNotebook(authenticationToken, notebook);
 452      return recv_createNotebook();
 453    }
 454
 455    public void send_createNotebook(String authenticationToken, com.evernote.edam.type.Notebook notebook) throws TException
 456    {
 457      oprot_.writeMessageBegin(new TMessage("createNotebook", TMessageType.CALL, ++seqid_));
 458      createNotebook_args args = new createNotebook_args();
 459      args.setAuthenticationToken(authenticationToken);
 460      args.setNotebook(notebook);
 461      args.write(oprot_);
 462      oprot_.writeMessageEnd();
 463      oprot_.getTransport().flush();
 464    }
 465
 466    public com.evernote.edam.type.Notebook recv_createNotebook() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, 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, "createNotebook failed: out of sequence response");
 476      }
 477      createNotebook_result result = new createNotebook_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      throw new TApplicationException(TApplicationException.MISSING_RESULT, "createNotebook failed: unknown result");
 490    }
 491
 492    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
 493    {
 494      send_updateNotebook(authenticationToken, notebook);
 495      return recv_updateNotebook();
 496    }
 497
 498    public void send_updateNotebook(String authenticationToken, com.evernote.edam.type.Notebook notebook) throws TException
 499    {
 500      oprot_.writeMessageBegin(new TMessage("updateNotebook", TMessageType.CALL, ++seqid_));
 501      updateNotebook_args args = new updateNotebook_args();
 502      args.setAuthenticationToken(authenticationToken);
 503      args.setNotebook(notebook);
 504      args.write(oprot_);
 505      oprot_.writeMessageEnd();
 506      oprot_.getTransport().flush();
 507    }
 508
 509    public int recv_updateNotebook() 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, "updateNotebook failed: out of sequence response");
 519      }
 520      updateNotebook_result result = new updateNotebook_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, "updateNotebook failed: unknown result");
 536    }
 537
 538    public int expungeNotebook(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
 539    {
 540      send_expungeNotebook(authenticationToken, guid);
 541      return recv_expungeNotebook();
 542    }
 543
 544    public void send_expungeNotebook(String authenticationToken, String guid) throws TException
 545    {
 546      oprot_.writeMessageBegin(new TMessage("expungeNotebook", TMessageType.CALL, ++seqid_));
 547      expungeNotebook_args args = new expungeNotebook_args();
 548      args.setAuthenticationToken(authenticationToken);
 549      args.setGuid(guid);
 550      args.write(oprot_);
 551      oprot_.writeMessageEnd();
 552      oprot_.getTransport().flush();
 553    }
 554
 555    public int recv_expungeNotebook() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
 556    {
 557      TMessage msg = iprot_.readMessageBegin();
 558      if (msg.type == TMessageType.EXCEPTION) {
 559        TApplicationException x = TApplicationException.read(iprot_);
 560        iprot_.readMessageEnd();
 561        throw x;
 562      }
 563      if (msg.seqid != seqid_) {
 564        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "expungeNotebook failed: out of sequence response");
 565      }
 566      expungeNotebook_result result = new expungeNotebook_result();
 567      result.read(iprot_);
 568      iprot_.readMessageEnd();
 569      if (result.isSetSuccess()) {
 570        return result.success;
 571      }
 572      if (result.userException != null) {
 573        throw result.userException;
 574      }
 575      if (result.systemException != null) {
 576        throw result.systemException;
 577      }
 578      if (result.notFoundException != null) {
 579        throw result.notFoundException;
 580      }
 581      throw new TApplicationException(TApplicationException.MISSING_RESULT, "expungeNotebook failed: unknown result");
 582    }
 583
 584    public List<com.evernote.edam.type.Tag> listTags(String authenticationToken) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
 585    {
 586      send_listTags(authenticationToken);
 587      return recv_listTags();
 588    }
 589
 590    public void send_listTags(String authenticationToken) throws TException
 591    {
 592      oprot_.writeMessageBegin(new TMessage("listTags", TMessageType.CALL, ++seqid_));
 593      listTags_args args = new listTags_args();
 594      args.setAuthenticationToken(authenticationToken);
 595      args.write(oprot_);
 596      oprot_.writeMessageEnd();
 597      oprot_.getTransport().flush();
 598    }
 599
 600    public List<com.evernote.edam.type.Tag> recv_listTags() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
 601    {
 602      TMessage msg = iprot_.readMessageBegin();
 603      if (msg.type == TMessageType.EXCEPTION) {
 604        TApplicationException x = TApplicationException.read(iprot_);
 605        iprot_.readMessageEnd();
 606        throw x;
 607      }
 608      if (msg.seqid != seqid_) {
 609        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "listTags failed: out of sequence response");
 610      }
 611      listTags_result result = new listTags_result();
 612      result.read(iprot_);
 613      iprot_.readMessageEnd();
 614      if (result.isSetSuccess()) {
 615        return result.success;
 616      }
 617      if (result.userException != null) {
 618        throw result.userException;
 619      }
 620      if (result.systemException != null) {
 621        throw result.systemException;
 622      }
 623      throw new TApplicationException(TApplicationException.MISSING_RESULT, "listTags failed: unknown result");
 624    }
 625
 626    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
 627    {
 628      send_listTagsByNotebook(authenticationToken, notebookGuid);
 629      return recv_listTagsByNotebook();
 630    }
 631
 632    public void send_listTagsByNotebook(String authenticationToken, String notebookGuid) throws TException
 633    {
 634      oprot_.writeMessageBegin(new TMessage("listTagsByNotebook", TMessageType.CALL, ++seqid_));
 635      listTagsByNotebook_args args = new listTagsByNotebook_args();
 636      args.setAuthenticationToken(authenticationToken);
 637      args.setNotebookGuid(notebookGuid);
 638      args.write(oprot_);
 639      oprot_.writeMessageEnd();
 640      oprot_.getTransport().flush();
 641    }
 642
 643    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
 644    {
 645      TMessage msg = iprot_.readMessageBegin();
 646      if (msg.type == TMessageType.EXCEPTION) {
 647        TApplicationException x = TApplicationException.read(iprot_);
 648        iprot_.readMessageEnd();
 649        throw x;
 650      }
 651      if (msg.seqid != seqid_) {
 652        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "listTagsByNotebook failed: out of sequence response");
 653      }
 654      listTagsByNotebook_result result = new listTagsByNotebook_result();
 655      result.read(iprot_);
 656      iprot_.readMessageEnd();
 657      if (result.isSetSuccess()) {
 658        return result.success;
 659      }
 660      if (result.userException != null) {
 661        throw result.userException;
 662      }
 663      if (result.systemException != null) {
 664        throw result.systemException;
 665      }
 666      if (result.notFoundException != null) {
 667        throw result.notFoundException;
 668      }
 669      throw new TApplicationException(TApplicationException.MISSING_RESULT, "listTagsByNotebook failed: unknown result");
 670    }
 671
 672    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
 673    {
 674      send_getTag(authenticationToken, guid);
 675      return recv_getTag();
 676    }
 677
 678    public void send_getTag(String authenticationToken, String guid) throws TException
 679    {
 680      oprot_.writeMessageBegin(new TMessage("getTag", TMessageType.CALL, ++seqid_));
 681      getTag_args args = new getTag_args();
 682      args.setAuthenticationToken(authenticationToken);
 683      args.setGuid(guid);
 684      args.write(oprot_);
 685      oprot_.writeMessageEnd();
 686      oprot_.getTransport().flush();
 687    }
 688
 689    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
 690    {
 691      TMessage msg = iprot_.readMessageBegin();
 692      if (msg.type == TMessageType.EXCEPTION) {
 693        TApplicationException x = TApplicationException.read(iprot_);
 694        iprot_.readMessageEnd();
 695        throw x;
 696      }
 697      if (msg.seqid != seqid_) {
 698        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getTag failed: out of sequence response");
 699      }
 700      getTag_result result = new getTag_result();
 701      result.read(iprot_);
 702      iprot_.readMessageEnd();
 703      if (result.isSetSuccess()) {
 704        return result.success;
 705      }
 706      if (result.userException != null) {
 707        throw result.userException;
 708      }
 709      if (result.systemException != null) {
 710        throw result.systemException;
 711      }
 712      if (result.notFoundException != null) {
 713        throw result.notFoundException;
 714      }
 715      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTag failed: unknown result");
 716    }
 717
 718    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
 719    {
 720      send_createTag(authenticationToken, tag);
 721      return recv_createTag();
 722    }
 723
 724    public void send_createTag(String authenticationToken, com.evernote.edam.type.Tag tag) throws TException
 725    {
 726      oprot_.writeMessageBegin(new TMessage("createTag", TMessageType.CALL, ++seqid_));
 727      createTag_args args = new createTag_args();
 728      args.setAuthenticationToken(authenticationToken);
 729      args.setTag(tag);
 730      args.write(oprot_);
 731      oprot_.writeMessageEnd();
 732      oprot_.getTransport().flush();
 733    }
 734
 735    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
 736    {
 737      TMessage msg = iprot_.readMessageBegin();
 738      if (msg.type == TMessageType.EXCEPTION) {
 739        TApplicationException x = TApplicationException.read(iprot_);
 740        iprot_.readMessageEnd();
 741        throw x;
 742      }
 743      if (msg.seqid != seqid_) {
 744        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "createTag failed: out of sequence response");
 745      }
 746      createTag_result result = new createTag_result();
 747      result.read(iprot_);
 748      iprot_.readMessageEnd();
 749      if (result.isSetSuccess()) {
 750        return result.success;
 751      }
 752      if (result.userException != null) {
 753        throw result.userException;
 754      }
 755      if (result.systemException != null) {
 756        throw result.systemException;
 757      }
 758      if (result.notFoundException != null) {
 759        throw result.notFoundException;
 760      }
 761      throw new TApplicationException(TApplicationException.MISSING_RESULT, "createTag failed: unknown result");
 762    }
 763
 764    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
 765    {
 766      send_updateTag(authenticationToken, tag);
 767      return recv_updateTag();
 768    }
 769
 770    public void send_updateTag(String authenticationToken, com.evernote.edam.type.Tag tag) throws TException
 771    {
 772      oprot_.writeMessageBegin(new TMessage("updateTag", TMessageType.CALL, ++seqid_));
 773      updateTag_args args = new updateTag_args();
 774      args.setAuthenticationToken(authenticationToken);
 775      args.setTag(tag);
 776      args.write(oprot_);
 777      oprot_.writeMessageEnd();
 778      oprot_.getTransport().flush();
 779    }
 780
 781    public int recv_updateTag() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
 782    {
 783      TMessage msg = iprot_.readMessageBegin();
 784      if (msg.type == TMessageType.EXCEPTION) {
 785        TApplicationException x = TApplicationException.read(iprot_);
 786        iprot_.readMessageEnd();
 787        throw x;
 788      }
 789      if (msg.seqid != seqid_) {
 790        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "updateTag failed: out of sequence response");
 791      }
 792      updateTag_result result = new updateTag_result();
 793      result.read(iprot_);
 794      iprot_.readMessageEnd();
 795      if (result.isSetSuccess()) {
 796        return result.success;
 797      }
 798      if (result.userException != null) {
 799        throw result.userException;
 800      }
 801      if (result.systemException != null) {
 802        throw result.systemException;
 803      }
 804      if (result.notFoundException != null) {
 805        throw result.notFoundException;
 806      }
 807      throw new TApplicationException(TApplicationException.MISSING_RESULT, "updateTag failed: unknown result");
 808    }
 809
 810    public void untagAll(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
 811    {
 812      send_untagAll(authenticationToken, guid);
 813      recv_untagAll();
 814    }
 815
 816    public void send_untagAll(String authenticationToken, String guid) throws TException
 817    {
 818      oprot_.writeMessageBegin(new TMessage("untagAll", TMessageType.CALL, ++seqid_));
 819      untagAll_args args = new untagAll_args();
 820      args.setAuthenticationToken(authenticationToken);
 821      args.setGuid(guid);
 822      args.write(oprot_);
 823      oprot_.writeMessageEnd();
 824      oprot_.getTransport().flush();
 825    }
 826
 827    public void recv_untagAll() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
 828    {
 829      TMessage msg = iprot_.readMessageBegin();
 830      if (msg.type == TMessageType.EXCEPTION) {
 831        TApplicationException x = TApplicationException.read(iprot_);
 832        iprot_.readMessageEnd();
 833        throw x;
 834      }
 835      if (msg.seqid != seqid_) {
 836        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "untagAll failed: out of sequence response");
 837      }
 838      untagAll_result result = new untagAll_result();
 839      result.read(iprot_);
 840      iprot_.readMessageEnd();
 841      if (result.userException != null) {
 842        throw result.userException;
 843      }
 844      if (result.systemException != null) {
 845        throw result.systemException;
 846      }
 847      if (result.notFoundException != null) {
 848        throw result.notFoundException;
 849      }
 850      return;
 851    }
 852
 853    public int expungeTag(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
 854    {
 855      send_expungeTag(authenticationToken, guid);
 856      return recv_expungeTag();
 857    }
 858
 859    public void send_expungeTag(String authenticationToken, String guid) throws TException
 860    {
 861      oprot_.writeMessageBegin(new TMessage("expungeTag", TMessageType.CALL, ++seqid_));
 862      expungeTag_args args = new expungeTag_args();
 863      args.setAuthenticationToken(authenticationToken);
 864      args.setGuid(guid);
 865      args.write(oprot_);
 866      oprot_.writeMessageEnd();
 867      oprot_.getTransport().flush();
 868    }
 869
 870    public int recv_expungeTag() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
 871    {
 872      TMessage msg = iprot_.readMessageBegin();
 873      if (msg.type == TMessageType.EXCEPTION) {
 874        TApplicationException x = TApplicationException.read(iprot_);
 875        iprot_.readMessageEnd();
 876        throw x;
 877      }
 878      if (msg.seqid != seqid_) {
 879        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "expungeTag failed: out of sequence response");
 880      }
 881      expungeTag_result result = new expungeTag_result();
 882      result.read(iprot_);
 883      iprot_.readMessageEnd();
 884      if (result.isSetSuccess()) {
 885        return result.success;
 886      }
 887      if (result.userException != null) {
 888        throw result.userException;
 889      }
 890      if (result.systemException != null) {
 891        throw result.systemException;
 892      }
 893      if (result.notFoundException != null) {
 894        throw result.notFoundException;
 895      }
 896      throw new TApplicationException(TApplicationException.MISSING_RESULT, "expungeTag failed: unknown result");
 897    }
 898
 899    public List<com.evernote.edam.type.SavedSearch> listSearches(String authenticationToken) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
 900    {
 901      send_listSearches(authenticationToken);
 902      return recv_listSearches();
 903    }
 904
 905    public void send_listSearches(String authenticationToken) throws TException
 906    {
 907      oprot_.writeMessageBegin(new TMessage("listSearches", TMessageType.CALL, ++seqid_));
 908      listSearches_args args = new listSearches_args();
 909      args.setAuthenticationToken(authenticationToken);
 910      args.write(oprot_);
 911      oprot_.writeMessageEnd();
 912      oprot_.getTransport().flush();
 913    }
 914
 915    public List<com.evernote.edam.type.SavedSearch> recv_listSearches() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
 916    {
 917      TMessage msg = iprot_.readMessageBegin();
 918      if (msg.type == TMessageType.EXCEPTION) {
 919        TApplicationException x = TApplicationException.read(iprot_);
 920        iprot_.readMessageEnd();
 921        throw x;
 922      }
 923      if (msg.seqid != seqid_) {
 924        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "listSearches failed: out of sequence response");
 925      }
 926      listSearches_result result = new listSearches_result();
 927      result.read(iprot_);
 928      iprot_.readMessageEnd();
 929      if (result.isSetSuccess()) {
 930        return result.success;
 931      }
 932      if (result.userException != null) {
 933        throw result.userException;
 934      }
 935      if (result.systemException != null) {
 936        throw result.systemException;
 937      }
 938      throw new TApplicationException(TApplicationException.MISSING_RESULT, "listSearches failed: unknown result");
 939    }
 940
 941    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
 942    {
 943      send_getSearch(authenticationToken, guid);
 944      return recv_getSearch();
 945    }
 946
 947    public void send_getSearch(String authenticationToken, String guid) throws TException
 948    {
 949      oprot_.writeMessageBegin(new TMessage("getSearch", TMessageType.CALL, ++seqid_));
 950      getSearch_args args = new getSearch_args();
 951      args.setAuthenticationToken(authenticationToken);
 952      args.setGuid(guid);
 953      args.write(oprot_);
 954      oprot_.writeMessageEnd();
 955      oprot_.getTransport().flush();
 956    }
 957
 958    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
 959    {
 960      TMessage msg = iprot_.readMessageBegin();
 961      if (msg.type == TMessageType.EXCEPTION) {
 962        TApplicationException x = TApplicationException.read(iprot_);
 963        iprot_.readMessageEnd();
 964        throw x;
 965      }
 966      if (msg.seqid != seqid_) {
 967        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getSearch failed: out of sequence response");
 968      }
 969      getSearch_result result = new getSearch_result();
 970      result.read(iprot_);
 971      iprot_.readMessageEnd();
 972      if (result.isSetSuccess()) {
 973        return result.success;
 974      }
 975      if (result.userException != null) {
 976        throw result.userException;
 977      }
 978      if (result.systemException != null) {
 979        throw result.systemException;
 980      }
 981      if (result.notFoundException != null) {
 982        throw result.notFoundException;
 983      }
 984      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSearch failed: unknown result");
 985    }
 986
 987    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
 988    {
 989      send_createSearch(authenticationToken, search);
 990      return recv_createSearch();
 991    }
 992
 993    public void send_createSearch(String authenticationToken, com.evernote.edam.type.SavedSearch search) throws TException
 994    {
 995      oprot_.writeMessageBegin(new TMessage("createSearch", TMessageType.CALL, ++seqid_));
 996      createSearch_args args = new createSearch_args();
 997      args.setAuthenticationToken(authenticationToken);
 998      args.setSearch(search);
 999      args.write(oprot_);
1000      oprot_.writeMessageEnd();
1001      oprot_.getTransport().flush();
1002    }
1003
1004    public com.evernote.edam.type.SavedSearch recv_createSearch() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
1005    {
1006      TMessage msg = iprot_.readMessageBegin();
1007      if (msg.type == TMessageType.EXCEPTION) {
1008        TApplicationException x = TApplicationException.read(iprot_);
1009        iprot_.readMessageEnd();
1010        throw x;
1011      }
1012      if (msg.seqid != seqid_) {
1013        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "createSearch failed: out of sequence response");
1014      }
1015      createSearch_result result = new createSearch_result();
1016      result.read(iprot_);
1017      iprot_.readMessageEnd();
1018      if (result.isSetSuccess()) {
1019        return result.success;
1020      }
1021      if (result.userException != null) {
1022        throw result.userException;
1023      }
1024      if (result.systemException != null) {
1025        throw result.systemException;
1026      }
1027      throw new TApplicationException(TApplicationException.MISSING_RESULT, "createSearch failed: unknown result");
1028    }
1029
1030    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
1031    {
1032      send_updateSearch(authenticationToken, search);
1033      return recv_updateSearch();
1034    }
1035
1036    public void send_updateSearch(String authenticationToken, com.evernote.edam.type.SavedSearch search) throws TException
1037    {
1038      oprot_.writeMessageBegin(new TMessage("updateSearch", TMessageType.CALL, ++seqid_));
1039      updateSearch_args args = new updateSearch_args();
1040      args.setAuthenticationToken(authenticationToken);
1041      args.setSearch(search);
1042      args.write(oprot_);
1043      oprot_.writeMessageEnd();
1044      oprot_.getTransport().flush();
1045    }
1046
1047    public int recv_updateSearch() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
1048    {
1049      TMessage msg = iprot_.readMessageBegin();
1050      if (msg.type == TMessageType.EXCEPTION) {
1051        TApplicationException x = TApplicationException.read(iprot_);
1052        iprot_.readMessageEnd();
1053        throw x;
1054      }
1055      if (msg.seqid != seqid_) {
1056        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "updateSearch failed: out of sequence response");
1057      }
1058      updateSearch_result result = new updateSearch_result();
1059      result.read(iprot_);
1060      iprot_.readMessageEnd();
1061      if (result.isSetSuccess()) {
1062        return result.success;
1063      }
1064      if (result.userException != null) {
1065        throw result.userException;
1066      }
1067      if (result.systemException != null) {
1068        throw result.systemException;
1069      }
1070      if (result.notFoundException != null) {
1071        throw result.notFoundException;
1072      }
1073      throw new TApplicationException(TApplicationException.MISSING_RESULT, "updateSearch failed: unknown result");
1074    }
1075
1076    public int expungeSearch(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
1077    {
1078      send_expungeSearch(authenticationToken, guid);
1079      return recv_expungeSearch();
1080    }
1081
1082    public void send_expungeSearch(String authenticationToken, String guid) throws TException
1083    {
1084      oprot_.writeMessageBegin(new TMessage("expungeSearch", TMessageType.CALL, ++seqid_));
1085      expungeSearch_args args = new expungeSearch_args();
1086      args.setAuthenticationToken(authenticationToken);
1087      args.setGuid(guid);
1088      args.write(oprot_);
1089      oprot_.writeMessageEnd();
1090      oprot_.getTransport().flush();
1091    }
1092
1093    public int recv_expungeSearch() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
1094    {
1095      TMessage msg = iprot_.readMessageBegin();
1096      if (msg.type == TMessageType.EXCEPTION) {
1097        TApplicationException x = TApplicationException.read(iprot_);
1098        iprot_.readMessageEnd();
1099        throw x;
1100      }
1101      if (msg.seqid != seqid_) {
1102        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "expungeSearch failed: out of sequence response");
1103      }
1104      expungeSearch_result result = new expungeSearch_result();
1105      result.read(iprot_);
1106      iprot_.readMessageEnd();
1107      if (result.isSetSuccess()) {
1108        return result.success;
1109      }
1110      if (result.userException != null) {
1111        throw result.userException;
1112      }
1113      if (result.systemException != null) {
1114        throw result.systemException;
1115      }
1116      if (result.notFoundException != null) {
1117        throw result.notFoundException;
1118      }
1119      throw new TApplicationException(TApplicationException.MISSING_RESULT, "expungeSearch failed: unknown result");
1120    }
1121
1122    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
1123    {
1124      send_findNotes(authenticationToken, filter, offset, maxNotes);
1125      return recv_findNotes();
1126    }
1127
1128    public void send_findNotes(String authenticationToken, NoteFilter filter, int offset, int maxNotes) throws TException
1129    {
1130      oprot_.writeMessageBegin(new TMessage("findNotes", TMessageType.CALL, ++seqid_));
1131      findNotes_args args = new findNotes_args();
1132      args.setAuthenticationToken(authenticationToken);
1133      args.setFilter(filter);
1134      args.setOffset(offset);
1135      args.setMaxNotes(maxNotes);
1136      args.write(oprot_);
1137      oprot_.writeMessageEnd();
1138      oprot_.getTransport().flush();
1139    }
1140
1141    public NoteList recv_findNotes() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
1142    {
1143      TMessage msg = iprot_.readMessageBegin();
1144      if (msg.type == TMessageType.EXCEPTION) {
1145        TApplicationException x = TApplicationException.read(iprot_);
1146        iprot_.readMessageEnd();
1147        throw x;
1148      }
1149      if (msg.seqid != seqid_) {
1150        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "findNotes failed: out of sequence response");
1151      }
1152      findNotes_result result = new findNotes_result();
1153      result.read(iprot_);
1154      iprot_.readMessageEnd();
1155      if (result.isSetSuccess()) {
1156        return result.success;
1157      }
1158      if (result.userException != null) {
1159        throw result.userException;
1160      }
1161      if (result.systemException != null) {
1162        throw result.systemException;
1163      }
1164      if (result.notFoundException != null) {
1165        throw result.notFoundException;
1166      }
1167      throw new TApplicationException(TApplicationException.MISSING_RESULT, "findNotes failed: unknown result");
1168    }
1169
1170    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
1171    {
1172      send_findNoteOffset(authenticationToken, filter, guid);
1173      return recv_findNoteOffset();
1174    }
1175
1176    public void send_findNoteOffset(String authenticationToken, NoteFilter filter, String guid) throws TException
1177    {
1178      oprot_.writeMessageBegin(new TMessage("findNoteOffset", TMessageType.CALL, ++seqid_));
1179      findNoteOffset_args args = new findNo

Large files files are truncated, but you can click here to view the full file