/src/main/java/com/evernote/edam/notestore/NoteStore.java
Java | 13456 lines | 11499 code | 1487 blank | 470 comment | 3059 complexity | fcb37622fb0c50662ba30817f74025f3 MD5 | raw file
Possible License(s): BSD-3-Clause-No-Nuclear-License-2014
Large files files are truncated, but you can click here to view the full file
- /**
- * Autogenerated by Thrift
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- */
- package com.evernote.edam.notestore;
- import java.util.List;
- import java.util.ArrayList;
- import java.util.Map;
- import java.util.HashMap;
- import java.util.Set;
- import java.util.HashSet;
- import com.evernote.thrift.*;
- import com.evernote.thrift.protocol.*;
- public class NoteStore {
- public interface Iface extends NoteStoreIface { }
- public static class Client implements TServiceClient, Iface {
- public Client(TProtocol prot)
- {
- this(prot, prot);
- }
- public Client(TProtocol iprot, TProtocol oprot)
- {
- iprot_ = iprot;
- oprot_ = oprot;
- }
- protected TProtocol iprot_;
- protected TProtocol oprot_;
- protected int seqid_;
- public TProtocol getInputProtocol()
- {
- return this.iprot_;
- }
- public TProtocol getOutputProtocol()
- {
- return this.oprot_;
- }
- public SyncState getSyncState(String authenticationToken) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
- {
- send_getSyncState(authenticationToken);
- return recv_getSyncState();
- }
- public void send_getSyncState(String authenticationToken) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("getSyncState", TMessageType.CALL, ++seqid_));
- getSyncState_args args = new getSyncState_args();
- args.setAuthenticationToken(authenticationToken);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- public SyncState recv_getSyncState() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getSyncState failed: out of sequence response");
- }
- getSyncState_result result = new getSyncState_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSyncState failed: unknown result");
- }
- public SyncState getSyncStateWithMetrics(String authenticationToken, ClientUsageMetrics clientMetrics) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
- {
- send_getSyncStateWithMetrics(authenticationToken, clientMetrics);
- return recv_getSyncStateWithMetrics();
- }
- public void send_getSyncStateWithMetrics(String authenticationToken, ClientUsageMetrics clientMetrics) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("getSyncStateWithMetrics", TMessageType.CALL, ++seqid_));
- getSyncStateWithMetrics_args args = new getSyncStateWithMetrics_args();
- args.setAuthenticationToken(authenticationToken);
- args.setClientMetrics(clientMetrics);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- public SyncState recv_getSyncStateWithMetrics() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getSyncStateWithMetrics failed: out of sequence response");
- }
- getSyncStateWithMetrics_result result = new getSyncStateWithMetrics_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSyncStateWithMetrics failed: unknown result");
- }
- public SyncChunk getSyncChunk(String authenticationToken, int afterUSN, int maxEntries, boolean fullSyncOnly) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
- {
- send_getSyncChunk(authenticationToken, afterUSN, maxEntries, fullSyncOnly);
- return recv_getSyncChunk();
- }
- public void send_getSyncChunk(String authenticationToken, int afterUSN, int maxEntries, boolean fullSyncOnly) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("getSyncChunk", TMessageType.CALL, ++seqid_));
- getSyncChunk_args args = new getSyncChunk_args();
- args.setAuthenticationToken(authenticationToken);
- args.setAfterUSN(afterUSN);
- args.setMaxEntries(maxEntries);
- args.setFullSyncOnly(fullSyncOnly);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- public SyncChunk recv_getSyncChunk() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getSyncChunk failed: out of sequence response");
- }
- getSyncChunk_result result = new getSyncChunk_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSyncChunk failed: unknown result");
- }
- public SyncChunk getFilteredSyncChunk(String authenticationToken, int afterUSN, int maxEntries, SyncChunkFilter filter) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
- {
- send_getFilteredSyncChunk(authenticationToken, afterUSN, maxEntries, filter);
- return recv_getFilteredSyncChunk();
- }
- public void send_getFilteredSyncChunk(String authenticationToken, int afterUSN, int maxEntries, SyncChunkFilter filter) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("getFilteredSyncChunk", TMessageType.CALL, ++seqid_));
- getFilteredSyncChunk_args args = new getFilteredSyncChunk_args();
- args.setAuthenticationToken(authenticationToken);
- args.setAfterUSN(afterUSN);
- args.setMaxEntries(maxEntries);
- args.setFilter(filter);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- public SyncChunk recv_getFilteredSyncChunk() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getFilteredSyncChunk failed: out of sequence response");
- }
- getFilteredSyncChunk_result result = new getFilteredSyncChunk_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "getFilteredSyncChunk failed: unknown result");
- }
- 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
- {
- send_getLinkedNotebookSyncState(authenticationToken, linkedNotebook);
- return recv_getLinkedNotebookSyncState();
- }
- public void send_getLinkedNotebookSyncState(String authenticationToken, com.evernote.edam.type.LinkedNotebook linkedNotebook) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("getLinkedNotebookSyncState", TMessageType.CALL, ++seqid_));
- getLinkedNotebookSyncState_args args = new getLinkedNotebookSyncState_args();
- args.setAuthenticationToken(authenticationToken);
- args.setLinkedNotebook(linkedNotebook);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- public SyncState recv_getLinkedNotebookSyncState() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getLinkedNotebookSyncState failed: out of sequence response");
- }
- getLinkedNotebookSyncState_result result = new getLinkedNotebookSyncState_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- if (result.notFoundException != null) {
- throw result.notFoundException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLinkedNotebookSyncState failed: unknown result");
- }
- 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
- {
- send_getLinkedNotebookSyncChunk(authenticationToken, linkedNotebook, afterUSN, maxEntries, fullSyncOnly);
- return recv_getLinkedNotebookSyncChunk();
- }
- public void send_getLinkedNotebookSyncChunk(String authenticationToken, com.evernote.edam.type.LinkedNotebook linkedNotebook, int afterUSN, int maxEntries, boolean fullSyncOnly) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("getLinkedNotebookSyncChunk", TMessageType.CALL, ++seqid_));
- getLinkedNotebookSyncChunk_args args = new getLinkedNotebookSyncChunk_args();
- args.setAuthenticationToken(authenticationToken);
- args.setLinkedNotebook(linkedNotebook);
- args.setAfterUSN(afterUSN);
- args.setMaxEntries(maxEntries);
- args.setFullSyncOnly(fullSyncOnly);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- public SyncChunk recv_getLinkedNotebookSyncChunk() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getLinkedNotebookSyncChunk failed: out of sequence response");
- }
- getLinkedNotebookSyncChunk_result result = new getLinkedNotebookSyncChunk_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- if (result.notFoundException != null) {
- throw result.notFoundException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLinkedNotebookSyncChunk failed: unknown result");
- }
- public List<com.evernote.edam.type.Notebook> listNotebooks(String authenticationToken) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
- {
- send_listNotebooks(authenticationToken);
- return recv_listNotebooks();
- }
- public void send_listNotebooks(String authenticationToken) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("listNotebooks", TMessageType.CALL, ++seqid_));
- listNotebooks_args args = new listNotebooks_args();
- args.setAuthenticationToken(authenticationToken);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- public List<com.evernote.edam.type.Notebook> recv_listNotebooks() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "listNotebooks failed: out of sequence response");
- }
- listNotebooks_result result = new listNotebooks_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "listNotebooks failed: unknown result");
- }
- 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
- {
- send_getNotebook(authenticationToken, guid);
- return recv_getNotebook();
- }
- public void send_getNotebook(String authenticationToken, String guid) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("getNotebook", TMessageType.CALL, ++seqid_));
- getNotebook_args args = new getNotebook_args();
- args.setAuthenticationToken(authenticationToken);
- args.setGuid(guid);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- 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
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getNotebook failed: out of sequence response");
- }
- getNotebook_result result = new getNotebook_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- if (result.notFoundException != null) {
- throw result.notFoundException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "getNotebook failed: unknown result");
- }
- public com.evernote.edam.type.Notebook getDefaultNotebook(String authenticationToken) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
- {
- send_getDefaultNotebook(authenticationToken);
- return recv_getDefaultNotebook();
- }
- public void send_getDefaultNotebook(String authenticationToken) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("getDefaultNotebook", TMessageType.CALL, ++seqid_));
- getDefaultNotebook_args args = new getDefaultNotebook_args();
- args.setAuthenticationToken(authenticationToken);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- public com.evernote.edam.type.Notebook recv_getDefaultNotebook() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getDefaultNotebook failed: out of sequence response");
- }
- getDefaultNotebook_result result = new getDefaultNotebook_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultNotebook failed: unknown result");
- }
- 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
- {
- send_createNotebook(authenticationToken, notebook);
- return recv_createNotebook();
- }
- public void send_createNotebook(String authenticationToken, com.evernote.edam.type.Notebook notebook) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("createNotebook", TMessageType.CALL, ++seqid_));
- createNotebook_args args = new createNotebook_args();
- args.setAuthenticationToken(authenticationToken);
- args.setNotebook(notebook);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- public com.evernote.edam.type.Notebook recv_createNotebook() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "createNotebook failed: out of sequence response");
- }
- createNotebook_result result = new createNotebook_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "createNotebook failed: unknown result");
- }
- 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
- {
- send_updateNotebook(authenticationToken, notebook);
- return recv_updateNotebook();
- }
- public void send_updateNotebook(String authenticationToken, com.evernote.edam.type.Notebook notebook) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("updateNotebook", TMessageType.CALL, ++seqid_));
- updateNotebook_args args = new updateNotebook_args();
- args.setAuthenticationToken(authenticationToken);
- args.setNotebook(notebook);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- public int recv_updateNotebook() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "updateNotebook failed: out of sequence response");
- }
- updateNotebook_result result = new updateNotebook_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- if (result.notFoundException != null) {
- throw result.notFoundException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "updateNotebook failed: unknown result");
- }
- public int expungeNotebook(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
- {
- send_expungeNotebook(authenticationToken, guid);
- return recv_expungeNotebook();
- }
- public void send_expungeNotebook(String authenticationToken, String guid) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("expungeNotebook", TMessageType.CALL, ++seqid_));
- expungeNotebook_args args = new expungeNotebook_args();
- args.setAuthenticationToken(authenticationToken);
- args.setGuid(guid);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- public int recv_expungeNotebook() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "expungeNotebook failed: out of sequence response");
- }
- expungeNotebook_result result = new expungeNotebook_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- if (result.notFoundException != null) {
- throw result.notFoundException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "expungeNotebook failed: unknown result");
- }
- public List<com.evernote.edam.type.Tag> listTags(String authenticationToken) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
- {
- send_listTags(authenticationToken);
- return recv_listTags();
- }
- public void send_listTags(String authenticationToken) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("listTags", TMessageType.CALL, ++seqid_));
- listTags_args args = new listTags_args();
- args.setAuthenticationToken(authenticationToken);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- public List<com.evernote.edam.type.Tag> recv_listTags() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "listTags failed: out of sequence response");
- }
- listTags_result result = new listTags_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "listTags failed: unknown result");
- }
- 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
- {
- send_listTagsByNotebook(authenticationToken, notebookGuid);
- return recv_listTagsByNotebook();
- }
- public void send_listTagsByNotebook(String authenticationToken, String notebookGuid) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("listTagsByNotebook", TMessageType.CALL, ++seqid_));
- listTagsByNotebook_args args = new listTagsByNotebook_args();
- args.setAuthenticationToken(authenticationToken);
- args.setNotebookGuid(notebookGuid);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- 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
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "listTagsByNotebook failed: out of sequence response");
- }
- listTagsByNotebook_result result = new listTagsByNotebook_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- if (result.notFoundException != null) {
- throw result.notFoundException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "listTagsByNotebook failed: unknown result");
- }
- 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
- {
- send_getTag(authenticationToken, guid);
- return recv_getTag();
- }
- public void send_getTag(String authenticationToken, String guid) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("getTag", TMessageType.CALL, ++seqid_));
- getTag_args args = new getTag_args();
- args.setAuthenticationToken(authenticationToken);
- args.setGuid(guid);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- 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
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getTag failed: out of sequence response");
- }
- getTag_result result = new getTag_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- if (result.notFoundException != null) {
- throw result.notFoundException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTag failed: unknown result");
- }
- 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
- {
- send_createTag(authenticationToken, tag);
- return recv_createTag();
- }
- public void send_createTag(String authenticationToken, com.evernote.edam.type.Tag tag) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("createTag", TMessageType.CALL, ++seqid_));
- createTag_args args = new createTag_args();
- args.setAuthenticationToken(authenticationToken);
- args.setTag(tag);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- 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
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "createTag failed: out of sequence response");
- }
- createTag_result result = new createTag_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- if (result.notFoundException != null) {
- throw result.notFoundException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "createTag failed: unknown result");
- }
- 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
- {
- send_updateTag(authenticationToken, tag);
- return recv_updateTag();
- }
- public void send_updateTag(String authenticationToken, com.evernote.edam.type.Tag tag) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("updateTag", TMessageType.CALL, ++seqid_));
- updateTag_args args = new updateTag_args();
- args.setAuthenticationToken(authenticationToken);
- args.setTag(tag);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- public int recv_updateTag() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "updateTag failed: out of sequence response");
- }
- updateTag_result result = new updateTag_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- if (result.notFoundException != null) {
- throw result.notFoundException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "updateTag failed: unknown result");
- }
- public void untagAll(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
- {
- send_untagAll(authenticationToken, guid);
- recv_untagAll();
- }
- public void send_untagAll(String authenticationToken, String guid) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("untagAll", TMessageType.CALL, ++seqid_));
- untagAll_args args = new untagAll_args();
- args.setAuthenticationToken(authenticationToken);
- args.setGuid(guid);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- public void recv_untagAll() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "untagAll failed: out of sequence response");
- }
- untagAll_result result = new untagAll_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- if (result.notFoundException != null) {
- throw result.notFoundException;
- }
- return;
- }
- public int expungeTag(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
- {
- send_expungeTag(authenticationToken, guid);
- return recv_expungeTag();
- }
- public void send_expungeTag(String authenticationToken, String guid) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("expungeTag", TMessageType.CALL, ++seqid_));
- expungeTag_args args = new expungeTag_args();
- args.setAuthenticationToken(authenticationToken);
- args.setGuid(guid);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- public int recv_expungeTag() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "expungeTag failed: out of sequence response");
- }
- expungeTag_result result = new expungeTag_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- if (result.notFoundException != null) {
- throw result.notFoundException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "expungeTag failed: unknown result");
- }
- public List<com.evernote.edam.type.SavedSearch> listSearches(String authenticationToken) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
- {
- send_listSearches(authenticationToken);
- return recv_listSearches();
- }
- public void send_listSearches(String authenticationToken) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("listSearches", TMessageType.CALL, ++seqid_));
- listSearches_args args = new listSearches_args();
- args.setAuthenticationToken(authenticationToken);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- public List<com.evernote.edam.type.SavedSearch> recv_listSearches() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "listSearches failed: out of sequence response");
- }
- listSearches_result result = new listSearches_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "listSearches failed: unknown result");
- }
- 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
- {
- send_getSearch(authenticationToken, guid);
- return recv_getSearch();
- }
- public void send_getSearch(String authenticationToken, String guid) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("getSearch", TMessageType.CALL, ++seqid_));
- getSearch_args args = new getSearch_args();
- args.setAuthenticationToken(authenticationToken);
- args.setGuid(guid);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- 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
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getSearch failed: out of sequence response");
- }
- getSearch_result result = new getSearch_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- if (result.notFoundException != null) {
- throw result.notFoundException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSearch failed: unknown result");
- }
- 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
- {
- send_createSearch(authenticationToken, search);
- return recv_createSearch();
- }
- public void send_createSearch(String authenticationToken, com.evernote.edam.type.SavedSearch search) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("createSearch", TMessageType.CALL, ++seqid_));
- createSearch_args args = new createSearch_args();
- args.setAuthenticationToken(authenticationToken);
- args.setSearch(search);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- public com.evernote.edam.type.SavedSearch recv_createSearch() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, TException
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "createSearch failed: out of sequence response");
- }
- createSearch_result result = new createSearch_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "createSearch failed: unknown result");
- }
- 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
- {
- send_updateSearch(authenticationToken, search);
- return recv_updateSearch();
- }
- public void send_updateSearch(String authenticationToken, com.evernote.edam.type.SavedSearch search) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("updateSearch", TMessageType.CALL, ++seqid_));
- updateSearch_args args = new updateSearch_args();
- args.setAuthenticationToken(authenticationToken);
- args.setSearch(search);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- public int recv_updateSearch() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "updateSearch failed: out of sequence response");
- }
- updateSearch_result result = new updateSearch_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- if (result.notFoundException != null) {
- throw result.notFoundException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "updateSearch failed: unknown result");
- }
- public int expungeSearch(String authenticationToken, String guid) throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
- {
- send_expungeSearch(authenticationToken, guid);
- return recv_expungeSearch();
- }
- public void send_expungeSearch(String authenticationToken, String guid) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("expungeSearch", TMessageType.CALL, ++seqid_));
- expungeSearch_args args = new expungeSearch_args();
- args.setAuthenticationToken(authenticationToken);
- args.setGuid(guid);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- public int recv_expungeSearch() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "expungeSearch failed: out of sequence response");
- }
- expungeSearch_result result = new expungeSearch_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- if (result.notFoundException != null) {
- throw result.notFoundException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "expungeSearch failed: unknown result");
- }
- 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
- {
- send_findNotes(authenticationToken, filter, offset, maxNotes);
- return recv_findNotes();
- }
- public void send_findNotes(String authenticationToken, NoteFilter filter, int offset, int maxNotes) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("findNotes", TMessageType.CALL, ++seqid_));
- findNotes_args args = new findNotes_args();
- args.setAuthenticationToken(authenticationToken);
- args.setFilter(filter);
- args.setOffset(offset);
- args.setMaxNotes(maxNotes);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
- public NoteList recv_findNotes() throws com.evernote.edam.error.EDAMUserException, com.evernote.edam.error.EDAMSystemException, com.evernote.edam.error.EDAMNotFoundException, TException
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "findNotes failed: out of sequence response");
- }
- findNotes_result result = new findNotes_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.userException != null) {
- throw result.userException;
- }
- if (result.systemException != null) {
- throw result.systemException;
- }
- if (result.notFoundException != null) {
- throw result.notFoundException;
- }
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "findNotes failed: unknown result");
- }
- 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
- {
- send_findNoteOffset(authenticationToken, filter, guid);
- return recv_findNoteOffset();
- }
- public void send_findNoteOffset(String authenticationToken, NoteFilter filter, String guid) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("findNoteOffset", TMessageType.CALL, ++seqid_));
- findNoteOffset_args args = new findNo…
Large files files are truncated, but you can click here to view the full file