var Thrift={Version:"0.9.0",Type:{STOP:0,VOID:1,BOOL:2,BYTE:3,I08:3,DOUBLE:4,I16:6,I32:8,I64:10,STRING:11,UTF7:11,STRUCT:12,MAP:13,SET:14,LIST:15,UTF8:16,UTF16:17},MessageType:{CALL:1,REPLY:2,EXCEPTION:3},objectLength:function(a){var c=0,b;for(b in a)a.hasOwnProperty(b)&&c++;return c},inherits:function(a,c){function b(){}b.prototype=c.prototype;a.prototype=new b},TException:function(a){this.message=a}};Thrift.inherits(Thrift.TException,Error);Thrift.TException.prototype.name="TException";
Thrift.TApplicationExceptionType={UNKNOWN:0,UNKNOWN_METHOD:1,INVALID_MESSAGE_TYPE:2,WRONG_METHOD_NAME:3,BAD_SEQUENCE_ID:4,MISSING_RESULT:5,INTERNAL_ERROR:6,PROTOCOL_ERROR:7};Thrift.TApplicationException=function(a,c){this.message=a;this.code=null===c?0:c};Thrift.inherits(Thrift.TApplicationException,Thrift.TException);Thrift.TApplicationException.prototype.name="TApplicationException";
Thrift.TApplicationException.prototype.read=function(a){for(;;){var c=a.readFieldBegin();if(c.ftype==Thrift.Type.STOP)break;switch(c.fid){case 1:c.ftype==Thrift.Type.STRING?(c=a.readString(),this.message=c.value):a.skip(c.ftype);break;case 2:c.ftype==Thrift.Type.I32?(c=a.readI32(),this.code=c.value):a.skip(c.ftype);break;default:a.skip(c.ftype)}a.readFieldEnd()}a.readStructEnd()};
Thrift.TApplicationException.prototype.write=function(a){a.writeStructBegin("TApplicationException");this.message&&(a.writeFieldBegin("message",Thrift.Type.STRING,1),a.writeString(this.getMessage()),a.writeFieldEnd());this.code&&(a.writeFieldBegin("type",Thrift.Type.I32,2),a.writeI32(this.code),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};Thrift.TApplicationException.prototype.getCode=function(){return this.code};Thrift.TApplicationException.prototype.getMessage=function(){return this.message};
Thrift.Transport=function(a){this.url=a;this.rpos=this.wpos=0;this.recv_buf=this.send_buf=""};
Thrift.Transport.prototype={getXmlHttpRequestObject:function(){try{return new XMLHttpRequest}catch(a){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(c){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(b){}throw"Your browser doesn't support the XmlHttpRequest object.";},flush:function(a){if(a||void 0===this.url||""===this.url)return this.send_buf;a=this.getXmlHttpRequestObject();a.overrideMimeType&&a.overrideMimeType("application/json");a.open("POST",this.url,!1);a.setRequestHeader("Content-Type",
"application/json");a.send(this.send_buf);if(4!=a.readyState)throw"encountered an unknown ajax ready state: "+a.readyState;if(200!=a.status)throw"encountered a unknown request status: "+a.status;this.recv_buf=a.responseText;this.wpos=this.recv_buf_sz=this.recv_buf.length;this.rpos=0},send:function(a,c,b,d){if("undefined"===typeof jQuery||"undefined"===typeof jQuery.Deferred)throw"Thrift.js requires jQuery 1.5+ to use asynchronous requests";var e=this;return jQuery.ajax({url:this.url,data:c,type:"POST",
cache:!1,dataType:"text thrift",converters:{"text thrift":function(b){e.setRecvBuffer(b);return d.call(a)}},context:a,success:jQuery.makeArray(b).pop()})},setRecvBuffer:function(a){this.recv_buf=a;this.wpos=this.recv_buf_sz=this.recv_buf.length;this.rpos=0},isOpen:function(){return!0},open:function(){},close:function(){},read:function(a){var c=this.wpos-this.rpos;if(0===c)return"";var b=a;c<a&&(b=c);a=this.read_buf.substr(this.rpos,b);this.rpos+=b;return a},readAll:function(){return this.recv_buf},
write:function(a){this.send_buf=a},getSendBuffer:function(){return this.send_buf}};Thrift.Protocol=function(a){this.transport=a};Thrift.Protocol.Type={};Thrift.Protocol.Type[Thrift.Type.BOOL]='"tf"';Thrift.Protocol.Type[Thrift.Type.BYTE]='"i8"';Thrift.Protocol.Type[Thrift.Type.I16]='"i16"';Thrift.Protocol.Type[Thrift.Type.I32]='"i32"';Thrift.Protocol.Type[Thrift.Type.I64]='"i64"';Thrift.Protocol.Type[Thrift.Type.DOUBLE]='"dbl"';Thrift.Protocol.Type[Thrift.Type.STRUCT]='"rec"';
Thrift.Protocol.Type[Thrift.Type.STRING]='"str"';Thrift.Protocol.Type[Thrift.Type.MAP]='"map"';Thrift.Protocol.Type[Thrift.Type.LIST]='"lst"';Thrift.Protocol.Type[Thrift.Type.SET]='"set"';Thrift.Protocol.RType={};Thrift.Protocol.RType.tf=Thrift.Type.BOOL;Thrift.Protocol.RType.i8=Thrift.Type.BYTE;Thrift.Protocol.RType.i16=Thrift.Type.I16;Thrift.Protocol.RType.i32=Thrift.Type.I32;Thrift.Protocol.RType.i64=Thrift.Type.I64;Thrift.Protocol.RType.dbl=Thrift.Type.DOUBLE;Thrift.Protocol.RType.rec=Thrift.Type.STRUCT;
Thrift.Protocol.RType.str=Thrift.Type.STRING;Thrift.Protocol.RType.map=Thrift.Type.MAP;Thrift.Protocol.RType.lst=Thrift.Type.LIST;Thrift.Protocol.RType.set=Thrift.Type.SET;Thrift.Protocol.Version=1;
Thrift.Protocol.prototype={getTransport:function(){return this.transport},writeMessageBegin:function(a,c,b){this.tstack=[];this.tpos=[];this.tstack.push([Thrift.Protocol.Version,'"'+a+'"',c,b])},writeMessageEnd:function(){var a=this.tstack.pop();this.wobj=this.tstack.pop();this.wobj.push(a);this.wbuf="["+this.wobj.join(",")+"]";this.transport.write(this.wbuf)},writeStructBegin:function(){this.tpos.push(this.tstack.length);this.tstack.push({})},writeStructEnd:function(){var a=this.tpos.pop(),c=this.tstack[a],
b="{",d=!0,e;for(e in c)d?d=!1:b+=",",b+=e+":"+c[e];this.tstack[a]=b+"}"},writeFieldBegin:function(a,c,b){this.tpos.push(this.tstack.length);this.tstack.push({fieldId:'"'+b+'"',fieldType:Thrift.Protocol.Type[c]})},writeFieldEnd:function(){var a=this.tstack.pop(),c=this.tstack.pop();this.tstack[this.tstack.length-1][c.fieldId]="{"+c.fieldType+":"+a+"}";this.tpos.pop()},writeFieldStop:function(){},writeMapBegin:function(a,c){this.tpos.push(this.tstack.length);this.tstack.push([Thrift.Protocol.Type[a],
Thrift.Protocol.Type[c],0])},writeMapEnd:function(){var a=this.tpos.pop();if(a!=this.tstack.length){0!==(this.tstack.length-a-1)%2&&this.tstack.push("");this.tstack[a][this.tstack[a].length-1]=(this.tstack.length-a-1)/2;for(var c="}",b=!0;this.tstack.length>a+1;){var d=this.tstack.pop(),e=this.tstack.pop();b?b=!1:c=","+c;isNaN(e)||(e='"'+e+'"');c=e+":"+d+c}this.tstack[a].push("{"+c);this.tstack[a]="["+this.tstack[a].join(",")+"]"}},writeListBegin:function(a,c){this.tpos.push(this.tstack.length);this.tstack.push([Thrift.Protocol.Type[a],
c])},writeListEnd:function(){for(var a=this.tpos.pop();this.tstack.length>a+1;){var c=this.tstack[a+1];this.tstack.splice(a+1,1);this.tstack[a].push(c)}this.tstack[a]="["+this.tstack[a].join(",")+"]"},writeSetBegin:function(a,c){this.tpos.push(this.tstack.length);this.tstack.push([Thrift.Protocol.Type[a],c])},writeSetEnd:function(){for(var a=this.tpos.pop();this.tstack.length>a+1;){var c=this.tstack[a+1];this.tstack.splice(a+1,1);this.tstack[a].push(c)}this.tstack[a]="["+this.tstack[a].join(",")+
"]"},writeBool:function(a){this.tstack.push(a?1:0)},writeByte:function(a){this.tstack.push(a)},writeI16:function(a){this.tstack.push(a)},writeI32:function(a){this.tstack.push(a)},writeI64:function(a){this.tstack.push(a)},writeDouble:function(a){this.tstack.push(a)},writeString:function(a){if(null===a)this.tstack.push(null);else{for(var c="",b=0;b<a.length;b++)var d=a.charAt(b),c='"'===d?c+'\\"':"\\"===d?c+"\\\\":"\b"===d?c+"\\b":"\f"===d?c+"\\f":"\n"===d?c+"\\n":"\r"===d?c+"\\r":"\t"===d?c+"\\t":
c+d;this.tstack.push('"'+c+'"')}},writeBinary:function(a){this.writeString(a)},readMessageBegin:function(){this.rstack=[];this.rpos=[];this.robj="undefined"!==typeof jQuery?jQuery.parseJSON(this.transport.readAll()):eval(this.transport.readAll());var a={},c=this.robj.shift();if(c!=Thrift.Protocol.Version)throw"Wrong thrift protocol version: "+c;a.fname=this.robj.shift();a.mtype=this.robj.shift();a.rseqid=this.robj.shift();this.rstack.push(this.robj.shift());return a},readMessageEnd:function(){},readStructBegin:function(){this.rstack[this.rstack.length-
1]instanceof Array&&this.rstack.push(this.rstack[this.rstack.length-1].shift());return{fname:""}},readStructEnd:function(){this.rstack[this.rstack.length-2]instanceof Array&&this.rstack.pop()},readFieldBegin:function(){var a={},c=-1,b=Thrift.Type.STOP,d;for(d in this.rstack[this.rstack.length-1])if(null!==d){c=parseInt(d,10);this.rpos.push(this.rstack.length);d=this.rstack[this.rstack.length-1][c];delete this.rstack[this.rstack.length-1][c];this.rstack.push(d);break}if(-1!=c)for(var e in this.rstack[this.rstack.length-
1])null!==Thrift.Protocol.RType[e]&&(b=Thrift.Protocol.RType[e],this.rstack[this.rstack.length-1]=this.rstack[this.rstack.length-1][e]);a.fname="";a.ftype=b;a.fid=c;return a},readFieldEnd:function(){for(var a=this.rpos.pop();this.rstack.length>a;)this.rstack.pop()},readMapBegin:function(){var a=this.rstack.pop(),c={};c.ktype=Thrift.Protocol.RType[a.shift()];c.vtype=Thrift.Protocol.RType[a.shift()];c.size=a.shift();this.rpos.push(this.rstack.length);this.rstack.push(a.shift());return c},readMapEnd:function(){this.readFieldEnd()},
readListBegin:function(){var a=this.rstack[this.rstack.length-1],c={};c.etype=Thrift.Protocol.RType[a.shift()];c.size=a.shift();this.rpos.push(this.rstack.length);this.rstack.push(a);return c},readListEnd:function(){this.readFieldEnd()},readSetBegin:function(a,c){return this.readListBegin(a,c)},readSetEnd:function(){return this.readListEnd()},readBool:function(){var a=this.readI32();a.value=null!==a&&"1"==a.value?!0:!1;return a},readByte:function(){return this.readI32()},readI16:function(){return this.readI32()},
readI32:function(a){void 0===a&&(a=this.rstack[this.rstack.length-1]);var c={};if(a instanceof Array)c.value=0===a.length?void 0:a.shift();else if(a instanceof Object)for(var b in a){if(null!==b){this.rstack.push(a[b]);delete a[b];c.value=b;break}}else c.value=a,this.rstack.pop();return c},readI64:function(){return this.readI32()},readDouble:function(){return this.readI32()},readString:function(){return this.readI32()},readBinary:function(){return this.readString()},skip:function(){throw"skip not supported yet";
}};Thrift.BinaryProtocol=function(a,c,b){this.transport=this.trans=a;this.strictRead=void 0!==c?c:!1;this.strictWrite=void 0!==b?b:!0};
Thrift.BinaryParser={fromByte:function(a){return(new Int8Array([a])).buffer},fromShort:function(a){a=parseInt(a);var c=new ArrayBuffer(2);(new DataView(c)).setInt16(0,a);return c},fromInt:function(a){a=parseInt(a);var c=new ArrayBuffer(4);(new DataView(c)).setInt32(0,a);return c},fromLong:function(a){a=parseInt(a);if(Math.abs(a)>=Math.pow(2,53))throw Error("Unable to accurately transfer numbers larger than 2^53 - 1 as integers. Number provided was "+a);var c=(Array(64).join("0")+Math.abs(a).toString(2)).slice(-64);
0>a&&(c=this.twosCompliment(c));a=new ArrayBuffer(8);for(var b=new DataView(a),d=0;8>d;d++){var e=parseInt(c.substr(8*d,8),2);b.setUint8(d,e)}return a},twosCompliment:function(a){var c=a.lastIndexOf("1");return a=a.substring(0,c).replace(/1/g,"x").replace(/0/g,"1").replace(/x/g,"0")+a.substring(c)},fromDouble:function(a){var c=new ArrayBuffer(8);(new DataView(c)).setFloat64(0,a);return c},fromString:function(a){var c=unescape(encodeURIComponent(a)),b=c.length,d=new Uint8Array(b);for(a=0;a<b;a++)d[a]=
c.charCodeAt(a);return d.buffer},toByte:function(a){return a.getUint8(0)},toBytes:function(a){return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)},toShort:function(a){return a.getInt16(0)},toInt:function(a){return a.getInt32(0)},toLong:function(a){for(var c=1,b="",d=0;8>d;d++)b+=(Array(8).join("0")+a.getUint8(d).toString(2)).slice(-8);"1"===b[0]&&(c=-1,b=this.twosCompliment(b));a=b.indexOf("1");if(-1!=a&&10>a)throw Error("Unable to receive number larger than 2^53 - 1 as an integer");return parseInt(b,
2)*c},toDouble:function(a){return a.getFloat64(0)},toString:function(a){var c="",b,d=a.byteLength,e;for(b=0;b<d;b++)e=a.getUint8(b).toString(16),1==e.length&&(e="0"+e),c+="%"+e;return c=decodeURIComponent(c)}};
(function(a){var c=Thrift.BinaryParser;a.flush=function(){return this.trans.flush()};var b=Thrift.Type;a.writeMessageBegin=function(a,b,c){this.strictWrite?(this.writeI32(-2147418112|b),this.writeString(a)):(this.writeString(a),this.writeByte(b));this.writeI32(c)};a.writeMessageEnd=function(){};a.writeStructBegin=function(){};a.writeStructEnd=function(){};a.writeFieldBegin=function(a,b,c){this.writeByte(b);this.writeI16(c)};a.writeFieldEnd=function(){};a.writeFieldStop=function(){this.writeByte(b.STOP)};
a.writeMapBegin=function(a,b,c){this.writeByte(a);this.writeByte(b);this.writeI32(c)};a.writeMapEnd=function(){};a.writeListBegin=function(a,b){this.writeByte(a);this.writeI32(b)};a.writeListEnd=function(){};a.writeSetBegin=function(a,b){console.log("write set",a,b);this.writeByte(a);this.writeI32(b)};a.writeSetEnd=function(){};a.writeBool=function(a){a?this.writeByte(1):this.writeByte(0)};a.writeByte=function(a){this.trans.write(c.fromByte(a))};a.writeBinary=function(a){"string"===typeof a&&(a=c.fromString(a));
if(a.byteLength)this.writeI32(a.byteLength);else throw Error("Cannot read length of binary data");this.trans.write(a)};a.writeI16=function(a){this.trans.write(c.fromShort(a))};a.writeI32=function(a){this.trans.write(c.fromInt(a))};a.writeI64=function(a){this.trans.write(c.fromLong(a))};a.writeDouble=function(a){this.trans.write(c.fromDouble(a))};a.writeString=function(a){a=c.fromString(a);this.writeI32(a.byteLength);this.trans.write(a)};a.readMessageBegin=function(){var a=this.readI32().value,b,c;
if(0>a){b=a&-65536;if(-2147418112!=b)throw console.log("BAD: "+b),Error("Bad version in readMessageBegin: "+a);a&=255;b=this.readString().value}else{if(this.strictRead)throw Error("No protocol version header");b=this.trans.read(a);a=this.readByte().value}c=this.readI32().value;return{fname:b,mtype:a,rseqid:c}};a.readMessageEnd=function(){};a.readStructBegin=function(){return{fname:""}};a.readStructEnd=function(){};a.readFieldBegin=function(){var a=this.readByte().value;if(a==b.STOP)return{fname:null,
ftype:a,fid:0};var c=this.readI16().value;return{fname:null,ftype:a,fid:c}};a.readFieldEnd=function(){};a.readMapBegin=function(){this.rstack=[];this.rpos=[1];var a=this.readByte().value,b=this.readByte().value,c=this.readI32().value;return{ktype:a,vtype:b,size:c}};a.readMapEnd=function(){};a.readListBegin=function(){var a=this.readByte().value,b=this.readI32().value;return{etype:a,size:b}};a.readListEnd=function(){};a.readSetBegin=function(){var a=this.readByte().value,b=this.readI32().value;return{etype:a,
size:b}};a.readSetEnd=function(){};a.readBool=function(){return 0==this.readByte().value?{value:!1}:{value:!0}};a.readByte=function(){var a=this.trans.read(1);return{value:c.toByte(a)}};a.readI16=function(){var a=this.trans.read(2);return{value:c.toShort(a)}};a.readI32=function(){var a=this.trans.read(4);return{value:c.toInt(a)}};a.readI64=function(){var a=this.trans.read(8);return{value:c.toLong(a)}};a.readDouble=function(){var a=this.trans.read(8);return{value:c.toDouble(a)}};a.readBinary=function(){var a=
this.readI32().value,a=this.trans.read(a);return{value:c.toBytes(a)}};a.readString=function(){var a=this.readI32().value,a=this.trans.read(a);return{value:c.toString(a)}};a.getTransport=function(){return this.trans};a.skip=function(a){switch(a){case b.STOP:break;case b.BOOL:this.readBool();break;case b.BYTE:this.readByte();break;case b.I16:this.readI16();break;case b.I32:this.readI32();break;case b.I64:this.readI64();break;case b.DOUBLE:this.readDouble();break;case b.STRING:this.readString();break;
case b.STRUCT:for(this.readStructBegin();;){a=this.readFieldBegin();if(a.ftype===b.STOP)break;this.skip(a.ftype);this.readFieldEnd()}this.readStructEnd();break;case b.MAP:a=this.readMapBegin();for(var c=0;c<a.size;++c)this.skip(a.ktype),this.skip(a.vtype);this.readMapEnd();break;case b.SET:a=this.readSetBegin();for(c=0;c<a.size;++c)this.skip(a.etype);this.readSetEnd();break;case b.LIST:a=this.readListBegin();for(c=0;c<a.size;++c)this.skip(a.etype);this.readListEnd();break;default:throw Error("Invalid type: "+
a);}}})(Thrift.BinaryProtocol.prototype);Thrift.BinaryHttpTransport=function(a){this.url=a;this.buffer=[];this.received=null;this.offset=0};
(function(a){a.open=function(){};a.close=function(){};a.read=function(a){var b=new DataView(this.received,this.offset,a);this.offset+=a;return b};a.write=function(a){this.buffer.push(a)};a.flush=function(a){if(!a)throw"Error in BinaryHttpTransport.flush: Binary protocol does not support synchronous calls";a=this.buffer.reduce(function(a,b){return a+b.byteLength},0);var b=new Uint8Array(new ArrayBuffer(a)),d=0;this.buffer.forEach(function(a){var c=null,c=a.buffer?a instanceof Uint8Array?a:new Uint8Array(a.buffer,
a.byteOffset,a.byteLength):new Uint8Array(a);b.set(c,d);d+=a.byteLength});this.buffer=[];return b};a.send=function(a,b,d,e){d=Array.prototype.slice.call(d,0);var f=d.pop(),g=0<d.length?d.pop():f;"function"!==typeof g&&(g=f);var h=new XMLHttpRequest;h.open("POST",this.url,!0);h.setRequestHeader("Content-Type","application/x-thrift");h.setRequestHeader("Accept","application/x-thrift");h.responseType="arraybuffer";h.onload=function(){this.received=h.response;this.offset=0;try{var b=e.call(a)}catch(d){b=
d,g=f}g(b)}.bind(this);h.onerror=function(a){f(a)};h.send(b.buffer)}})(Thrift.BinaryHttpTransport.prototype);EDAMErrorCode={UNKNOWN:1,BAD_DATA_FORMAT:2,PERMISSION_DENIED:3,INTERNAL_ERROR:4,DATA_REQUIRED:5,LIMIT_REACHED:6,QUOTA_REACHED:7,INVALID_AUTH:8,AUTH_EXPIRED:9,DATA_CONFLICT:10,ENML_VALIDATION:11,SHARD_UNAVAILABLE:12,LEN_TOO_SHORT:13,LEN_TOO_LONG:14,TOO_FEW:15,TOO_MANY:16,UNSUPPORTED_OPERATION:17,TAKEN_DOWN:18,RATE_LIMIT_REACHED:19};
EDAMUserException=function(a){this.parameter=this.errorCode=null;a&&(void 0!==a.errorCode&&(this.errorCode=a.errorCode),void 0!==a.parameter&&(this.parameter=a.parameter))};Thrift.inherits(EDAMUserException,Thrift.TException);EDAMUserException.prototype.name="EDAMUserException";
EDAMUserException.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.I32?this.errorCode=a.readI32().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.parameter=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
EDAMUserException.prototype.write=function(a){a.writeStructBegin("EDAMUserException");null!==this.errorCode&&void 0!==this.errorCode&&(a.writeFieldBegin("errorCode",Thrift.Type.I32,1),a.writeI32(this.errorCode),a.writeFieldEnd());null!==this.parameter&&void 0!==this.parameter&&(a.writeFieldBegin("parameter",Thrift.Type.STRING,2),a.writeString(this.parameter),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
EDAMSystemException=function(a){this.rateLimitDuration=this.message=this.errorCode=null;a&&(void 0!==a.errorCode&&(this.errorCode=a.errorCode),void 0!==a.message&&(this.message=a.message),void 0!==a.rateLimitDuration&&(this.rateLimitDuration=a.rateLimitDuration))};Thrift.inherits(EDAMSystemException,Thrift.TException);EDAMSystemException.prototype.name="EDAMSystemException";
EDAMSystemException.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.I32?this.errorCode=a.readI32().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.message=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.I32?this.rateLimitDuration=a.readI32().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
EDAMSystemException.prototype.write=function(a){a.writeStructBegin("EDAMSystemException");null!==this.errorCode&&void 0!==this.errorCode&&(a.writeFieldBegin("errorCode",Thrift.Type.I32,1),a.writeI32(this.errorCode),a.writeFieldEnd());null!==this.message&&void 0!==this.message&&(a.writeFieldBegin("message",Thrift.Type.STRING,2),a.writeString(this.message),a.writeFieldEnd());null!==this.rateLimitDuration&&void 0!==this.rateLimitDuration&&(a.writeFieldBegin("rateLimitDuration",Thrift.Type.I32,3),a.writeI32(this.rateLimitDuration),
a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};EDAMNotFoundException=function(a){this.key=this.identifier=null;a&&(void 0!==a.identifier&&(this.identifier=a.identifier),void 0!==a.key&&(this.key=a.key))};Thrift.inherits(EDAMNotFoundException,Thrift.TException);EDAMNotFoundException.prototype.name="EDAMNotFoundException";
EDAMNotFoundException.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.identifier=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.key=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
EDAMNotFoundException.prototype.write=function(a){a.writeStructBegin("EDAMNotFoundException");null!==this.identifier&&void 0!==this.identifier&&(a.writeFieldBegin("identifier",Thrift.Type.STRING,1),a.writeString(this.identifier),a.writeFieldEnd());null!==this.key&&void 0!==this.key&&(a.writeFieldBegin("key",Thrift.Type.STRING,2),a.writeString(this.key),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};EDAM_ATTRIBUTE_LEN_MIN=1;EDAM_ATTRIBUTE_LEN_MAX=4096;EDAM_ATTRIBUTE_REGEX="^[^p{Cc}p{Zl}p{Zp}]{1,4096}$";
EDAM_ATTRIBUTE_MAP_MAX=EDAM_ATTRIBUTE_LIST_MAX=100;EDAM_GUID_LEN_MAX=EDAM_GUID_LEN_MIN=36;EDAM_GUID_REGEX="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$";EDAM_EMAIL_LEN_MIN=6;EDAM_EMAIL_LEN_MAX=255;EDAM_EMAIL_LOCAL_REGEX="^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*$";EDAM_EMAIL_DOMAIN_REGEX="^[A-Za-z0-9-]+(.[A-Za-z0-9-]+)*.([A-Za-z]{2,})$";EDAM_EMAIL_REGEX="^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[A-Za-z0-9-]+(.[A-Za-z0-9-]+)*.([A-Za-z]{2,})$";
EDAM_VAT_REGEX="^((AT)?U[0-9]{8}|(BE)?0?[0-9]{9}|(BG)?[0-9]{9,10}|(CY)?[0-9]{8}L|(CZ)?[0-9]{8,10}|(DE)?[0-9]{9}|(DK)?[0-9]{8}|(EE)?[0-9]{9}|(EL|GR)?[0-9]{9}|(ES)?[0-9A-Z][0-9]{7}[0-9A-Z]|(FI)?[0-9]{8}|(FR)?[0-9A-Z]{2}[0-9]{9}|(GB)?([0-9]{9}([0-9]{3})?|[A-Z]{2}[0-9]{3})|(HU)?[0-9]{8}|(IE)?[0-9]S[0-9]{5}L|(IT)?[0-9]{11}|(LT)?([0-9]{9}|[0-9]{12})|(LU)?[0-9]{8}|(LV)?[0-9]{11}|(MT)?[0-9]{8}|(NL)?[0-9]{9}B[0-9]{2}|(PL)?[0-9]{10}|(PT)?[0-9]{9}|(RO)?[0-9]{2,10}|(SE)?[0-9]{12}|(SI)?[0-9]{8}|(SK)?[0-9]{10})|[0-9]{9}MVA|[0-9]{6}|CHE[0-9]{9}(TVA|MWST|IVA)$";
EDAM_TIMEZONE_LEN_MIN=1;EDAM_TIMEZONE_LEN_MAX=32;EDAM_TIMEZONE_REGEX="^([A-Za-z_-]+(/[A-Za-z_-]+)*)|(GMT(-|+)[0-9]{1,2}(:[0-9]{2})?)$";EDAM_MIME_LEN_MIN=3;EDAM_MIME_LEN_MAX=255;EDAM_MIME_REGEX="^[A-Za-z]+/[A-Za-z0-9._+-]+$";EDAM_MIME_TYPE_GIF="image/gif";EDAM_MIME_TYPE_JPEG="image/jpeg";EDAM_MIME_TYPE_PNG="image/png";EDAM_MIME_TYPE_WAV="audio/wav";EDAM_MIME_TYPE_MP3="audio/mpeg";EDAM_MIME_TYPE_AMR="audio/amr";EDAM_MIME_TYPE_AAC="audio/aac";EDAM_MIME_TYPE_M4A="audio/mp4";EDAM_MIME_TYPE_MP4_VIDEO="video/mp4";
EDAM_MIME_TYPE_INK="application/vnd.evernote.ink";EDAM_MIME_TYPE_PDF="application/pdf";EDAM_MIME_TYPE_DEFAULT="application/octet-stream";EDAM_MIME_TYPES="image/gif image/jpeg image/png audio/wav audio/mpeg audio/amr application/vnd.evernote.ink application/pdf video/mp4 audio/aac audio/mp4".split(" ");EDAM_INDEXABLE_RESOURCE_MIME_TYPES="application/msword application/mspowerpoint application/excel application/vnd.ms-word application/vnd.ms-powerpoint application/vnd.ms-excel application/vnd.openxmlformats-officedocument.wordprocessingml.document application/vnd.openxmlformats-officedocument.presentationml.presentation application/vnd.openxmlformats-officedocument.spreadsheetml.sheet application/vnd.apple.pages application/vnd.apple.numbers application/vnd.apple.keynote application/x-iwork-pages-sffpages application/x-iwork-numbers-sffnumbers application/x-iwork-keynote-sffkey".split(" ");
EDAM_SEARCH_QUERY_LEN_MIN=0;EDAM_SEARCH_QUERY_LEN_MAX=1024;EDAM_SEARCH_QUERY_REGEX="^[^p{Cc}p{Zl}p{Zp}]{0,1024}$";EDAM_HASH_LEN=16;EDAM_USER_USERNAME_LEN_MIN=1;EDAM_USER_USERNAME_LEN_MAX=64;EDAM_USER_USERNAME_REGEX="^[a-z0-9]([a-z0-9_-]{0,62}[a-z0-9])?$";EDAM_USER_NAME_LEN_MIN=1;EDAM_USER_NAME_LEN_MAX=255;EDAM_USER_NAME_REGEX="^[^p{Cc}p{Zl}p{Zp}]{1,255}$";EDAM_TAG_NAME_LEN_MIN=1;EDAM_TAG_NAME_LEN_MAX=100;EDAM_TAG_NAME_REGEX="^[^,p{Cc}p{Z}]([^,p{Cc}p{Zl}p{Zp}]{0,98}[^,p{Cc}p{Z}])?$";
EDAM_NOTE_TITLE_LEN_MIN=1;EDAM_NOTE_TITLE_LEN_MAX=255;EDAM_NOTE_TITLE_REGEX="^[^p{Cc}p{Z}]([^p{Cc}p{Zl}p{Zp}]{0,253}[^p{Cc}p{Z}])?$";EDAM_NOTE_CONTENT_LEN_MIN=0;EDAM_NOTE_CONTENT_LEN_MAX=5242880;EDAM_APPLICATIONDATA_NAME_LEN_MIN=3;EDAM_APPLICATIONDATA_NAME_LEN_MAX=32;EDAM_APPLICATIONDATA_VALUE_LEN_MIN=0;EDAM_APPLICATIONDATA_VALUE_LEN_MAX=4092;EDAM_APPLICATIONDATA_ENTRY_LEN_MAX=4095;EDAM_APPLICATIONDATA_NAME_REGEX="^[A-Za-z0-9_.-]{3,32}$";EDAM_APPLICATIONDATA_VALUE_REGEX="^[^p{Cc}]{0,4092}$";
EDAM_NOTEBOOK_NAME_LEN_MIN=1;EDAM_NOTEBOOK_NAME_LEN_MAX=100;EDAM_NOTEBOOK_NAME_REGEX="^[^p{Cc}p{Z}]([^p{Cc}p{Zl}p{Zp}]{0,98}[^p{Cc}p{Z}])?$";EDAM_NOTEBOOK_STACK_LEN_MIN=1;EDAM_NOTEBOOK_STACK_LEN_MAX=100;EDAM_NOTEBOOK_STACK_REGEX="^[^p{Cc}p{Z}]([^p{Cc}p{Zl}p{Zp}]{0,98}[^p{Cc}p{Z}])?$";EDAM_PUBLISHING_URI_LEN_MIN=1;EDAM_PUBLISHING_URI_LEN_MAX=255;EDAM_PUBLISHING_URI_REGEX="^[a-zA-Z0-9.~_+-]{1,255}$";EDAM_PUBLISHING_URI_PROHIBITED=[".."];EDAM_PUBLISHING_DESCRIPTION_LEN_MIN=1;
EDAM_PUBLISHING_DESCRIPTION_LEN_MAX=200;EDAM_PUBLISHING_DESCRIPTION_REGEX="^[^p{Cc}p{Z}]([^p{Cc}p{Zl}p{Zp}]{0,198}[^p{Cc}p{Z}])?$";EDAM_SAVED_SEARCH_NAME_LEN_MIN=1;EDAM_SAVED_SEARCH_NAME_LEN_MAX=100;EDAM_SAVED_SEARCH_NAME_REGEX="^[^p{Cc}p{Z}]([^p{Cc}p{Zl}p{Zp}]{0,98}[^p{Cc}p{Z}])?$";EDAM_USER_PASSWORD_LEN_MIN=6;EDAM_USER_PASSWORD_LEN_MAX=64;EDAM_USER_PASSWORD_REGEX="^[A-Za-z0-9!#$%&'()*+,./:;<=>?@^_`{|}~[]\\-]{6,64}$";EDAM_BUSINESS_URI_LEN_MAX=32;EDAM_NOTE_TAGS_MAX=100;EDAM_NOTE_RESOURCES_MAX=1E3;
EDAM_BUSINESS_TAGS_MAX=EDAM_USER_TAGS_MAX=1E5;EDAM_USER_SAVED_SEARCHES_MAX=100;EDAM_USER_NOTES_MAX=1E5;EDAM_BUSINESS_NOTES_MAX=5E5;EDAM_USER_NOTEBOOKS_MAX=250;EDAM_BUSINESS_NOTEBOOKS_MAX=5E3;EDAM_USER_RECENT_MAILED_ADDRESSES_MAX=10;EDAM_USER_MAIL_LIMIT_DAILY_FREE=50;EDAM_USER_MAIL_LIMIT_DAILY_PREMIUM=200;EDAM_USER_UPLOAD_LIMIT_FREE=62914560;EDAM_USER_UPLOAD_LIMIT_PREMIUM=1073741824;EDAM_USER_UPLOAD_LIMIT_BUSINESS=2147483647;EDAM_NOTE_SIZE_MAX_FREE=26214400;EDAM_NOTE_SIZE_MAX_PREMIUM=104857600;
EDAM_RESOURCE_SIZE_MAX_FREE=26214400;EDAM_RESOURCE_SIZE_MAX_PREMIUM=104857600;EDAM_USER_LINKED_NOTEBOOK_MAX=100;EDAM_NOTEBOOK_SHARED_NOTEBOOK_MAX=EDAM_USER_LINKED_NOTEBOOK_MAX_PREMIUM=250;EDAM_NOTE_CONTENT_CLASS_LEN_MIN=3;EDAM_NOTE_CONTENT_CLASS_LEN_MAX=32;EDAM_NOTE_CONTENT_CLASS_REGEX="^[A-Za-z0-9_.-]{3,32}$";EDAM_HELLO_APP_CONTENT_CLASS_PREFIX="evernote.hello.";EDAM_FOOD_APP_CONTENT_CLASS_PREFIX="evernote.food.";EDAM_CONTENT_CLASS_HELLO_ENCOUNTER="evernote.hello.encounter";
EDAM_CONTENT_CLASS_HELLO_PROFILE="evernote.hello.profile";EDAM_CONTENT_CLASS_FOOD_MEAL="evernote.food.meal";EDAM_CONTENT_CLASS_SKITCH=EDAM_CONTENT_CLASS_SKITCH_PREFIX="evernote.skitch";EDAM_CONTENT_CLASS_SKITCH_PDF="evernote.skitch.pdf";EDAM_CONTENT_CLASS_PENULTIMATE_PREFIX="evernote.penultimate.";EDAM_CONTENT_CLASS_PENULTIMATE_NOTEBOOK="evernote.penultimate.notebook";EDAM_RELATED_PLAINTEXT_LEN_MIN=1;EDAM_RELATED_PLAINTEXT_LEN_MAX=131072;EDAM_RELATED_MAX_NOTES=25;EDAM_RELATED_MAX_NOTEBOOKS=1;
EDAM_RELATED_MAX_TAGS=25;EDAM_BUSINESS_NOTEBOOK_DESCRIPTION_LEN_MIN=1;EDAM_BUSINESS_NOTEBOOK_DESCRIPTION_LEN_MAX=200;EDAM_BUSINESS_NOTEBOOK_DESCRIPTION_REGEX="^[^p{Cc}p{Z}]([^p{Cc}p{Zl}p{Zp}]{0,198}[^p{Cc}p{Z}])?$";EDAM_BUSINESS_PHONE_NUMBER_LEN_MAX=20;EDAM_PREFERENCE_NAME_LEN_MIN=3;EDAM_PREFERENCE_NAME_LEN_MAX=32;EDAM_PREFERENCE_VALUE_LEN_MIN=1;EDAM_PREFERENCE_VALUE_LEN_MAX=1024;EDAM_MAX_PREFERENCES=100;EDAM_MAX_VALUES_PER_PREFERENCE=256;EDAM_PREFERENCE_NAME_REGEX="^[A-Za-z0-9_.-]{3,32}$";
EDAM_PREFERENCE_VALUE_REGEX="^[^p{Cc}]{1,1024}$";EDAM_PREFERENCE_SHORTCUTS="evernote.shortcuts";EDAM_PREFERENCE_SHORTCUTS_MAX_VALUES=250;EDAM_DEVICE_ID_LEN_MAX=32;EDAM_DEVICE_ID_REGEX="^[^p{Cc}]{1,32}$";EDAM_DEVICE_DESCRIPTION_LEN_MAX=64;EDAM_DEVICE_DESCRIPTION_REGEX="^[^p{Cc}]{1,64}$";EDAM_SEARCH_SUGGESTIONS_MAX=10;EDAM_SEARCH_SUGGESTIONS_PREFIX_LEN_MAX=1024;EDAM_SEARCH_SUGGESTIONS_PREFIX_LEN_MIN=2;
NoteStore_getSyncState_args=function(a){this.authenticationToken=null;a&&void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken)};NoteStore_getSyncState_args.prototype={};NoteStore_getSyncState_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 0:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getSyncState_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getSyncState_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getSyncState_result=function(a){this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException))};NoteStore_getSyncState_result.prototype={};
NoteStore_getSyncState_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new SyncState,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getSyncState_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getSyncState_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_getSyncStateWithMetrics_args=function(a){this.clientMetrics=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.clientMetrics&&(this.clientMetrics=a.clientMetrics))};NoteStore_getSyncStateWithMetrics_args.prototype={};
NoteStore_getSyncStateWithMetrics_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.clientMetrics=new ClientUsageMetrics,this.clientMetrics.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getSyncStateWithMetrics_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getSyncStateWithMetrics_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.clientMetrics&&void 0!==this.clientMetrics&&(a.writeFieldBegin("clientMetrics",Thrift.Type.STRUCT,2),this.clientMetrics.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getSyncStateWithMetrics_result=function(a){this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException))};NoteStore_getSyncStateWithMetrics_result.prototype={};
NoteStore_getSyncStateWithMetrics_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new SyncState,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;
default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getSyncStateWithMetrics_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getSyncStateWithMetrics_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_getSyncChunk_args=function(a){this.fullSyncOnly=this.maxEntries=this.afterUSN=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.afterUSN&&(this.afterUSN=a.afterUSN),void 0!==a.maxEntries&&(this.maxEntries=a.maxEntries),void 0!==a.fullSyncOnly&&(this.fullSyncOnly=a.fullSyncOnly))};
NoteStore_getSyncChunk_args.prototype={};
NoteStore_getSyncChunk_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.I32?this.afterUSN=a.readI32().value:a.skip(b);break;case 3:b==Thrift.Type.I32?this.maxEntries=a.readI32().value:a.skip(b);break;case 4:b==Thrift.Type.BOOL?this.fullSyncOnly=a.readBool().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getSyncChunk_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getSyncChunk_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.afterUSN&&void 0!==this.afterUSN&&(a.writeFieldBegin("afterUSN",Thrift.Type.I32,2),a.writeI32(this.afterUSN),a.writeFieldEnd());null!==this.maxEntries&&void 0!==this.maxEntries&&(a.writeFieldBegin("maxEntries",
Thrift.Type.I32,3),a.writeI32(this.maxEntries),a.writeFieldEnd());null!==this.fullSyncOnly&&void 0!==this.fullSyncOnly&&(a.writeFieldBegin("fullSyncOnly",Thrift.Type.BOOL,4),a.writeBool(this.fullSyncOnly),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getSyncChunk_result=function(a){this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException))};NoteStore_getSyncChunk_result.prototype={};
NoteStore_getSyncChunk_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new SyncChunk,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getSyncChunk_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getSyncChunk_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_getFilteredSyncChunk_args=function(a){this.filter=this.maxEntries=this.afterUSN=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.afterUSN&&(this.afterUSN=a.afterUSN),void 0!==a.maxEntries&&(this.maxEntries=a.maxEntries),void 0!==a.filter&&(this.filter=a.filter))};
NoteStore_getFilteredSyncChunk_args.prototype={};
NoteStore_getFilteredSyncChunk_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.I32?this.afterUSN=a.readI32().value:a.skip(b);break;case 3:b==Thrift.Type.I32?this.maxEntries=a.readI32().value:a.skip(b);break;case 4:b==Thrift.Type.STRUCT?(this.filter=new SyncChunkFilter,this.filter.read(a)):a.skip(b);
break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getFilteredSyncChunk_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getFilteredSyncChunk_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.afterUSN&&void 0!==this.afterUSN&&(a.writeFieldBegin("afterUSN",Thrift.Type.I32,2),a.writeI32(this.afterUSN),a.writeFieldEnd());null!==this.maxEntries&&void 0!==this.maxEntries&&
(a.writeFieldBegin("maxEntries",Thrift.Type.I32,3),a.writeI32(this.maxEntries),a.writeFieldEnd());null!==this.filter&&void 0!==this.filter&&(a.writeFieldBegin("filter",Thrift.Type.STRUCT,4),this.filter.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getFilteredSyncChunk_result=function(a){this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException))};NoteStore_getFilteredSyncChunk_result.prototype={};
NoteStore_getFilteredSyncChunk_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new SyncChunk,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;
default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getFilteredSyncChunk_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getFilteredSyncChunk_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_getLinkedNotebookSyncState_args=function(a){this.linkedNotebook=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.linkedNotebook&&(this.linkedNotebook=a.linkedNotebook))};NoteStore_getLinkedNotebookSyncState_args.prototype={};
NoteStore_getLinkedNotebookSyncState_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.linkedNotebook=new LinkedNotebook,this.linkedNotebook.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getLinkedNotebookSyncState_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getLinkedNotebookSyncState_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.linkedNotebook&&void 0!==this.linkedNotebook&&(a.writeFieldBegin("linkedNotebook",Thrift.Type.STRUCT,2),this.linkedNotebook.write(a),a.writeFieldEnd());a.writeFieldStop();
a.writeStructEnd()};
NoteStore_getLinkedNotebookSyncState_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_getLinkedNotebookSyncState_result.prototype={};
NoteStore_getLinkedNotebookSyncState_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new SyncState,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);
break;case 3:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getLinkedNotebookSyncState_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getLinkedNotebookSyncState_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getLinkedNotebookSyncChunk_args=function(a){this.fullSyncOnly=this.maxEntries=this.afterUSN=this.linkedNotebook=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.linkedNotebook&&(this.linkedNotebook=a.linkedNotebook),void 0!==a.afterUSN&&(this.afterUSN=a.afterUSN),void 0!==a.maxEntries&&(this.maxEntries=a.maxEntries),void 0!==a.fullSyncOnly&&(this.fullSyncOnly=a.fullSyncOnly))};
NoteStore_getLinkedNotebookSyncChunk_args.prototype={};
NoteStore_getLinkedNotebookSyncChunk_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.linkedNotebook=new LinkedNotebook,this.linkedNotebook.read(a)):a.skip(b);break;case 3:b==Thrift.Type.I32?this.afterUSN=a.readI32().value:a.skip(b);break;case 4:b==Thrift.Type.I32?this.maxEntries=a.readI32().value:
a.skip(b);break;case 5:b==Thrift.Type.BOOL?this.fullSyncOnly=a.readBool().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getLinkedNotebookSyncChunk_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getLinkedNotebookSyncChunk_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.linkedNotebook&&void 0!==this.linkedNotebook&&(a.writeFieldBegin("linkedNotebook",Thrift.Type.STRUCT,2),this.linkedNotebook.write(a),a.writeFieldEnd());null!==this.afterUSN&&
void 0!==this.afterUSN&&(a.writeFieldBegin("afterUSN",Thrift.Type.I32,3),a.writeI32(this.afterUSN),a.writeFieldEnd());null!==this.maxEntries&&void 0!==this.maxEntries&&(a.writeFieldBegin("maxEntries",Thrift.Type.I32,4),a.writeI32(this.maxEntries),a.writeFieldEnd());null!==this.fullSyncOnly&&void 0!==this.fullSyncOnly&&(a.writeFieldBegin("fullSyncOnly",Thrift.Type.BOOL,5),a.writeBool(this.fullSyncOnly),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getLinkedNotebookSyncChunk_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_getLinkedNotebookSyncChunk_result.prototype={};
NoteStore_getLinkedNotebookSyncChunk_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new SyncChunk,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);
break;case 3:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getLinkedNotebookSyncChunk_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getLinkedNotebookSyncChunk_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_listNotebooks_args=function(a){this.authenticationToken=null;a&&void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken)};NoteStore_listNotebooks_args.prototype={};
NoteStore_listNotebooks_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 0:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_listNotebooks_args.prototype.write=function(a){a.writeStructBegin("NoteStore_listNotebooks_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_listNotebooks_result=function(a){this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException))};NoteStore_listNotebooks_result.prototype={};
NoteStore_listNotebooks_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:if(b==Thrift.Type.LIST){c=0;this.success=[];c=a.readListBegin().size;for(b=0;b<c;++b){var d=null,d=new Notebook;d.read(a);this.success.push(d)}a.readListEnd()}else a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=
new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_listNotebooks_result.prototype.write=function(a){a.writeStructBegin("NoteStore_listNotebooks_result");if(null!==this.success&&void 0!==this.success){a.writeFieldBegin("success",Thrift.Type.LIST,0);a.writeListBegin(Thrift.Type.STRUCT,this.success.length);for(var c in this.success)this.success.hasOwnProperty(c)&&(c=this.success[c],c.write(a));a.writeListEnd();a.writeFieldEnd()}null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),
this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_getNotebook_args=function(a){this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid))};NoteStore_getNotebook_args.prototype={};
NoteStore_getNotebook_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getNotebook_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getNotebook_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getNotebook_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_getNotebook_result.prototype={};
NoteStore_getNotebook_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new Notebook,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==
Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getNotebook_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getNotebook_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_getDefaultNotebook_args=function(a){this.authenticationToken=null;a&&void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken)};NoteStore_getDefaultNotebook_args.prototype={};
NoteStore_getDefaultNotebook_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 0:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getDefaultNotebook_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getDefaultNotebook_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getDefaultNotebook_result=function(a){this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException))};NoteStore_getDefaultNotebook_result.prototype={};
NoteStore_getDefaultNotebook_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new Notebook,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getDefaultNotebook_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getDefaultNotebook_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_createNotebook_args=function(a){this.notebook=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.notebook&&(this.notebook=a.notebook))};NoteStore_createNotebook_args.prototype={};
NoteStore_createNotebook_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.notebook=new Notebook,this.notebook.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_createNotebook_args.prototype.write=function(a){a.writeStructBegin("NoteStore_createNotebook_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.notebook&&void 0!==this.notebook&&(a.writeFieldBegin("notebook",Thrift.Type.STRUCT,2),this.notebook.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_createNotebook_result=function(a){this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException))};NoteStore_createNotebook_result.prototype={};
NoteStore_createNotebook_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new Notebook,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_createNotebook_result.prototype.write=function(a){a.writeStructBegin("NoteStore_createNotebook_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_updateNotebook_args=function(a){this.notebook=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.notebook&&(this.notebook=a.notebook))};NoteStore_updateNotebook_args.prototype={};
NoteStore_updateNotebook_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.notebook=new Notebook,this.notebook.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_updateNotebook_args.prototype.write=function(a){a.writeStructBegin("NoteStore_updateNotebook_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.notebook&&void 0!==this.notebook&&(a.writeFieldBegin("notebook",Thrift.Type.STRUCT,2),this.notebook.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_updateNotebook_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_updateNotebook_result.prototype={};
NoteStore_updateNotebook_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.I32?this.success=a.readI32().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_updateNotebook_result.prototype.write=function(a){a.writeStructBegin("NoteStore_updateNotebook_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.I32,0),a.writeI32(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_expungeNotebook_args=function(a){this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid))};
NoteStore_expungeNotebook_args.prototype={};NoteStore_expungeNotebook_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_expungeNotebook_args.prototype.write=function(a){a.writeStructBegin("NoteStore_expungeNotebook_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_expungeNotebook_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_expungeNotebook_result.prototype={};
NoteStore_expungeNotebook_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.I32?this.success=a.readI32().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_expungeNotebook_result.prototype.write=function(a){a.writeStructBegin("NoteStore_expungeNotebook_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.I32,0),a.writeI32(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_listTags_args=function(a){this.authenticationToken=null;a&&void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken)};NoteStore_listTags_args.prototype={};
NoteStore_listTags_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 0:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_listTags_args.prototype.write=function(a){a.writeStructBegin("NoteStore_listTags_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_listTags_result=function(a){this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException))};NoteStore_listTags_result.prototype={};
NoteStore_listTags_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:if(b==Thrift.Type.LIST){c=0;this.success=[];c=a.readListBegin().size;for(b=0;b<c;++b){var d=null,d=new Tag;d.read(a);this.success.push(d)}a.readListEnd()}else a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=
new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_listTags_result.prototype.write=function(a){a.writeStructBegin("NoteStore_listTags_result");if(null!==this.success&&void 0!==this.success){a.writeFieldBegin("success",Thrift.Type.LIST,0);a.writeListBegin(Thrift.Type.STRUCT,this.success.length);for(var c in this.success)this.success.hasOwnProperty(c)&&(c=this.success[c],c.write(a));a.writeListEnd();a.writeFieldEnd()}null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),
a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_listTagsByNotebook_args=function(a){this.notebookGuid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.notebookGuid&&(this.notebookGuid=a.notebookGuid))};
NoteStore_listTagsByNotebook_args.prototype={};NoteStore_listTagsByNotebook_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.notebookGuid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_listTagsByNotebook_args.prototype.write=function(a){a.writeStructBegin("NoteStore_listTagsByNotebook_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.notebookGuid&&void 0!==this.notebookGuid&&(a.writeFieldBegin("notebookGuid",Thrift.Type.STRING,2),a.writeString(this.notebookGuid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_listTagsByNotebook_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_listTagsByNotebook_result.prototype={};
NoteStore_listTagsByNotebook_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:if(b==Thrift.Type.LIST){c=0;this.success=[];c=a.readListBegin().size;for(b=0;b<c;++b){var d=null,d=new Tag;d.read(a);this.success.push(d)}a.readListEnd()}else a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=
new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_listTagsByNotebook_result.prototype.write=function(a){a.writeStructBegin("NoteStore_listTagsByNotebook_result");if(null!==this.success&&void 0!==this.success){a.writeFieldBegin("success",Thrift.Type.LIST,0);a.writeListBegin(Thrift.Type.STRUCT,this.success.length);for(var c in this.success)this.success.hasOwnProperty(c)&&(c=this.success[c],c.write(a));a.writeListEnd();a.writeFieldEnd()}null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,
1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getTag_args=function(a){this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid))};NoteStore_getTag_args.prototype={};
NoteStore_getTag_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getTag_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getTag_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getTag_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&(this.notFoundException=
a.notFoundException))};NoteStore_getTag_result.prototype={};
NoteStore_getTag_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new Tag,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getTag_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getTag_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,
2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_createTag_args=function(a){this.tag=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.tag&&(this.tag=a.tag))};NoteStore_createTag_args.prototype={};
NoteStore_createTag_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.tag=new Tag,this.tag.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_createTag_args.prototype.write=function(a){a.writeStructBegin("NoteStore_createTag_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.tag&&void 0!==this.tag&&(a.writeFieldBegin("tag",Thrift.Type.STRUCT,2),this.tag.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_createTag_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&(this.notFoundException=
a.notFoundException))};NoteStore_createTag_result.prototype={};
NoteStore_createTag_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new Tag,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_createTag_result.prototype.write=function(a){a.writeStructBegin("NoteStore_createTag_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,
2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_updateTag_args=function(a){this.tag=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.tag&&(this.tag=a.tag))};NoteStore_updateTag_args.prototype={};
NoteStore_updateTag_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.tag=new Tag,this.tag.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_updateTag_args.prototype.write=function(a){a.writeStructBegin("NoteStore_updateTag_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.tag&&void 0!==this.tag&&(a.writeFieldBegin("tag",Thrift.Type.STRUCT,2),this.tag.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_updateTag_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&(this.notFoundException=
a.notFoundException))};NoteStore_updateTag_result.prototype={};
NoteStore_updateTag_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.I32?this.success=a.readI32().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?(this.notFoundException=
new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_updateTag_result.prototype.write=function(a){a.writeStructBegin("NoteStore_updateTag_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.I32,0),a.writeI32(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,
2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_untagAll_args=function(a){this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid))};NoteStore_untagAll_args.prototype={};
NoteStore_untagAll_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_untagAll_args.prototype.write=function(a){a.writeStructBegin("NoteStore_untagAll_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_untagAll_result=function(a){this.notFoundException=this.systemException=this.userException=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&(this.notFoundException=a.notFoundException))};
NoteStore_untagAll_result.prototype={};
NoteStore_untagAll_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):
a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_untagAll_result.prototype.write=function(a){a.writeStructBegin("NoteStore_untagAll_result");null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",
Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_expungeTag_args=function(a){this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid))};NoteStore_expungeTag_args.prototype={};
NoteStore_expungeTag_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_expungeTag_args.prototype.write=function(a){a.writeStructBegin("NoteStore_expungeTag_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_expungeTag_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&(this.notFoundException=
a.notFoundException))};NoteStore_expungeTag_result.prototype={};
NoteStore_expungeTag_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.I32?this.success=a.readI32().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?(this.notFoundException=
new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_expungeTag_result.prototype.write=function(a){a.writeStructBegin("NoteStore_expungeTag_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.I32,0),a.writeI32(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,
2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_listSearches_args=function(a){this.authenticationToken=null;a&&void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken)};NoteStore_listSearches_args.prototype={};
NoteStore_listSearches_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 0:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_listSearches_args.prototype.write=function(a){a.writeStructBegin("NoteStore_listSearches_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_listSearches_result=function(a){this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException))};NoteStore_listSearches_result.prototype={};
NoteStore_listSearches_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:if(b==Thrift.Type.LIST){c=0;this.success=[];c=a.readListBegin().size;for(b=0;b<c;++b){var d=null,d=new SavedSearch;d.read(a);this.success.push(d)}a.readListEnd()}else a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=
new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_listSearches_result.prototype.write=function(a){a.writeStructBegin("NoteStore_listSearches_result");if(null!==this.success&&void 0!==this.success){a.writeFieldBegin("success",Thrift.Type.LIST,0);a.writeListBegin(Thrift.Type.STRUCT,this.success.length);for(var c in this.success)this.success.hasOwnProperty(c)&&(c=this.success[c],c.write(a));a.writeListEnd();a.writeFieldEnd()}null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),
a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_getSearch_args=function(a){this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid))};NoteStore_getSearch_args.prototype={};
NoteStore_getSearch_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getSearch_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getSearch_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getSearch_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&(this.notFoundException=
a.notFoundException))};NoteStore_getSearch_result.prototype={};
NoteStore_getSearch_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new SavedSearch,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==
Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getSearch_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getSearch_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,
2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_createSearch_args=function(a){this.search=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.search&&(this.search=a.search))};
NoteStore_createSearch_args.prototype={};NoteStore_createSearch_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.search=new SavedSearch,this.search.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_createSearch_args.prototype.write=function(a){a.writeStructBegin("NoteStore_createSearch_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.search&&void 0!==this.search&&(a.writeFieldBegin("search",Thrift.Type.STRUCT,2),this.search.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_createSearch_result=function(a){this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException))};NoteStore_createSearch_result.prototype={};
NoteStore_createSearch_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new SavedSearch,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_createSearch_result.prototype.write=function(a){a.writeStructBegin("NoteStore_createSearch_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_updateSearch_args=function(a){this.search=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.search&&(this.search=a.search))};NoteStore_updateSearch_args.prototype={};
NoteStore_updateSearch_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.search=new SavedSearch,this.search.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_updateSearch_args.prototype.write=function(a){a.writeStructBegin("NoteStore_updateSearch_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.search&&void 0!==this.search&&(a.writeFieldBegin("search",Thrift.Type.STRUCT,2),this.search.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_updateSearch_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_updateSearch_result.prototype={};
NoteStore_updateSearch_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.I32?this.success=a.readI32().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?(this.notFoundException=
new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_updateSearch_result.prototype.write=function(a){a.writeStructBegin("NoteStore_updateSearch_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.I32,0),a.writeI32(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_expungeSearch_args=function(a){this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid))};
NoteStore_expungeSearch_args.prototype={};NoteStore_expungeSearch_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_expungeSearch_args.prototype.write=function(a){a.writeStructBegin("NoteStore_expungeSearch_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_expungeSearch_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_expungeSearch_result.prototype={};
NoteStore_expungeSearch_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.I32?this.success=a.readI32().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_expungeSearch_result.prototype.write=function(a){a.writeStructBegin("NoteStore_expungeSearch_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.I32,0),a.writeI32(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_findNotes_args=function(a){this.maxNotes=this.offset=this.filter=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.filter&&(this.filter=a.filter),void 0!==a.offset&&(this.offset=a.offset),void 0!==a.maxNotes&&(this.maxNotes=a.maxNotes))};NoteStore_findNotes_args.prototype={};
NoteStore_findNotes_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.filter=new NoteFilter,this.filter.read(a)):a.skip(b);break;case 3:b==Thrift.Type.I32?this.offset=a.readI32().value:a.skip(b);break;case 4:b==Thrift.Type.I32?this.maxNotes=a.readI32().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_findNotes_args.prototype.write=function(a){a.writeStructBegin("NoteStore_findNotes_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.filter&&void 0!==this.filter&&(a.writeFieldBegin("filter",Thrift.Type.STRUCT,2),this.filter.write(a),a.writeFieldEnd());null!==this.offset&&void 0!==this.offset&&(a.writeFieldBegin("offset",Thrift.Type.I32,
3),a.writeI32(this.offset),a.writeFieldEnd());null!==this.maxNotes&&void 0!==this.maxNotes&&(a.writeFieldBegin("maxNotes",Thrift.Type.I32,4),a.writeI32(this.maxNotes),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_findNotes_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&(this.notFoundException=
a.notFoundException))};NoteStore_findNotes_result.prototype={};
NoteStore_findNotes_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new NoteList,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_findNotes_result.prototype.write=function(a){a.writeStructBegin("NoteStore_findNotes_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,
2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_findNoteOffset_args=function(a){this.guid=this.filter=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.filter&&(this.filter=a.filter),void 0!==a.guid&&(this.guid=a.guid))};NoteStore_findNoteOffset_args.prototype={};
NoteStore_findNoteOffset_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.filter=new NoteFilter,this.filter.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_findNoteOffset_args.prototype.write=function(a){a.writeStructBegin("NoteStore_findNoteOffset_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.filter&&void 0!==this.filter&&(a.writeFieldBegin("filter",Thrift.Type.STRUCT,2),this.filter.write(a),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,
3),a.writeString(this.guid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_findNoteOffset_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_findNoteOffset_result.prototype={};
NoteStore_findNoteOffset_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.I32?this.success=a.readI32().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_findNoteOffset_result.prototype.write=function(a){a.writeStructBegin("NoteStore_findNoteOffset_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.I32,0),a.writeI32(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_findNotesMetadata_args=function(a){this.resultSpec=this.maxNotes=this.offset=this.filter=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.filter&&(this.filter=a.filter),void 0!==a.offset&&(this.offset=a.offset),void 0!==a.maxNotes&&(this.maxNotes=a.maxNotes),void 0!==a.resultSpec&&(this.resultSpec=a.resultSpec))};NoteStore_findNotesMetadata_args.prototype={};
NoteStore_findNotesMetadata_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.filter=new NoteFilter,this.filter.read(a)):a.skip(b);break;case 3:b==Thrift.Type.I32?this.offset=a.readI32().value:a.skip(b);break;case 4:b==Thrift.Type.I32?this.maxNotes=a.readI32().value:a.skip(b);break;case 5:b==
Thrift.Type.STRUCT?(this.resultSpec=new NotesMetadataResultSpec,this.resultSpec.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_findNotesMetadata_args.prototype.write=function(a){a.writeStructBegin("NoteStore_findNotesMetadata_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.filter&&void 0!==this.filter&&(a.writeFieldBegin("filter",Thrift.Type.STRUCT,2),this.filter.write(a),a.writeFieldEnd());null!==this.offset&&void 0!==this.offset&&(a.writeFieldBegin("offset",
Thrift.Type.I32,3),a.writeI32(this.offset),a.writeFieldEnd());null!==this.maxNotes&&void 0!==this.maxNotes&&(a.writeFieldBegin("maxNotes",Thrift.Type.I32,4),a.writeI32(this.maxNotes),a.writeFieldEnd());null!==this.resultSpec&&void 0!==this.resultSpec&&(a.writeFieldBegin("resultSpec",Thrift.Type.STRUCT,5),this.resultSpec.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_findNotesMetadata_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_findNotesMetadata_result.prototype={};
NoteStore_findNotesMetadata_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new NotesMetadataList,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;
case 3:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_findNotesMetadata_result.prototype.write=function(a){a.writeStructBegin("NoteStore_findNotesMetadata_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_findNoteCounts_args=function(a){this.withTrash=this.filter=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.filter&&(this.filter=a.filter),void 0!==a.withTrash&&(this.withTrash=a.withTrash))};NoteStore_findNoteCounts_args.prototype={};
NoteStore_findNoteCounts_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.filter=new NoteFilter,this.filter.read(a)):a.skip(b);break;case 3:b==Thrift.Type.BOOL?this.withTrash=a.readBool().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_findNoteCounts_args.prototype.write=function(a){a.writeStructBegin("NoteStore_findNoteCounts_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.filter&&void 0!==this.filter&&(a.writeFieldBegin("filter",Thrift.Type.STRUCT,2),this.filter.write(a),a.writeFieldEnd());null!==this.withTrash&&void 0!==this.withTrash&&(a.writeFieldBegin("withTrash",
Thrift.Type.BOOL,3),a.writeBool(this.withTrash),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_findNoteCounts_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_findNoteCounts_result.prototype={};
NoteStore_findNoteCounts_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new NoteCollectionCounts,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;
case 3:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_findNoteCounts_result.prototype.write=function(a){a.writeStructBegin("NoteStore_findNoteCounts_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getNote_args=function(a){this.withResourcesAlternateData=this.withResourcesRecognition=this.withResourcesData=this.withContent=this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid),void 0!==a.withContent&&(this.withContent=a.withContent),void 0!==a.withResourcesData&&(this.withResourcesData=a.withResourcesData),void 0!==a.withResourcesRecognition&&(this.withResourcesRecognition=a.withResourcesRecognition),
void 0!==a.withResourcesAlternateData&&(this.withResourcesAlternateData=a.withResourcesAlternateData))};NoteStore_getNote_args.prototype={};
NoteStore_getNote_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.BOOL?this.withContent=a.readBool().value:a.skip(b);break;case 4:b==Thrift.Type.BOOL?this.withResourcesData=a.readBool().value:a.skip(b);break;case 5:b==Thrift.Type.BOOL?
this.withResourcesRecognition=a.readBool().value:a.skip(b);break;case 6:b==Thrift.Type.BOOL?this.withResourcesAlternateData=a.readBool().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getNote_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getNote_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());null!==this.withContent&&void 0!==this.withContent&&(a.writeFieldBegin("withContent",
Thrift.Type.BOOL,3),a.writeBool(this.withContent),a.writeFieldEnd());null!==this.withResourcesData&&void 0!==this.withResourcesData&&(a.writeFieldBegin("withResourcesData",Thrift.Type.BOOL,4),a.writeBool(this.withResourcesData),a.writeFieldEnd());null!==this.withResourcesRecognition&&void 0!==this.withResourcesRecognition&&(a.writeFieldBegin("withResourcesRecognition",Thrift.Type.BOOL,5),a.writeBool(this.withResourcesRecognition),a.writeFieldEnd());null!==this.withResourcesAlternateData&&void 0!==
this.withResourcesAlternateData&&(a.writeFieldBegin("withResourcesAlternateData",Thrift.Type.BOOL,6),a.writeBool(this.withResourcesAlternateData),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getNote_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&(this.notFoundException=
a.notFoundException))};NoteStore_getNote_result.prototype={};
NoteStore_getNote_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new Note,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getNote_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getNote_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,
2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_getNoteApplicationData_args=function(a){this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid))};
NoteStore_getNoteApplicationData_args.prototype={};NoteStore_getNoteApplicationData_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getNoteApplicationData_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getNoteApplicationData_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getNoteApplicationData_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_getNoteApplicationData_result.prototype={};
NoteStore_getNoteApplicationData_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new LazyMap,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;
case 3:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getNoteApplicationData_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getNoteApplicationData_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getNoteApplicationDataEntry_args=function(a){this.key=this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid),void 0!==a.key&&(this.key=a.key))};NoteStore_getNoteApplicationDataEntry_args.prototype={};
NoteStore_getNoteApplicationDataEntry_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.STRING?this.key=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getNoteApplicationDataEntry_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getNoteApplicationDataEntry_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());null!==this.key&&void 0!==this.key&&(a.writeFieldBegin("key",
Thrift.Type.STRING,3),a.writeString(this.key),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getNoteApplicationDataEntry_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_getNoteApplicationDataEntry_result.prototype={};
NoteStore_getNoteApplicationDataEntry_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRING?this.success=a.readString().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==
Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getNoteApplicationDataEntry_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getNoteApplicationDataEntry_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRING,0),a.writeString(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&
(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_setNoteApplicationDataEntry_args=function(a){this.value=this.key=this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid),void 0!==a.key&&(this.key=a.key),void 0!==a.value&&(this.value=a.value))};NoteStore_setNoteApplicationDataEntry_args.prototype={};
NoteStore_setNoteApplicationDataEntry_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.STRING?this.key=a.readString().value:a.skip(b);break;case 4:b==Thrift.Type.STRING?this.value=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_setNoteApplicationDataEntry_args.prototype.write=function(a){a.writeStructBegin("NoteStore_setNoteApplicationDataEntry_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());null!==this.key&&void 0!==this.key&&(a.writeFieldBegin("key",
Thrift.Type.STRING,3),a.writeString(this.key),a.writeFieldEnd());null!==this.value&&void 0!==this.value&&(a.writeFieldBegin("value",Thrift.Type.STRING,4),a.writeString(this.value),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_setNoteApplicationDataEntry_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_setNoteApplicationDataEntry_result.prototype={};
NoteStore_setNoteApplicationDataEntry_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.I32?this.success=a.readI32().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_setNoteApplicationDataEntry_result.prototype.write=function(a){a.writeStructBegin("NoteStore_setNoteApplicationDataEntry_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.I32,0),a.writeI32(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_unsetNoteApplicationDataEntry_args=function(a){this.key=this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid),void 0!==a.key&&(this.key=a.key))};NoteStore_unsetNoteApplicationDataEntry_args.prototype={};
NoteStore_unsetNoteApplicationDataEntry_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.STRING?this.key=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_unsetNoteApplicationDataEntry_args.prototype.write=function(a){a.writeStructBegin("NoteStore_unsetNoteApplicationDataEntry_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());null!==this.key&&void 0!==this.key&&(a.writeFieldBegin("key",
Thrift.Type.STRING,3),a.writeString(this.key),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_unsetNoteApplicationDataEntry_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_unsetNoteApplicationDataEntry_result.prototype={};
NoteStore_unsetNoteApplicationDataEntry_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.I32?this.success=a.readI32().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_unsetNoteApplicationDataEntry_result.prototype.write=function(a){a.writeStructBegin("NoteStore_unsetNoteApplicationDataEntry_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.I32,0),a.writeI32(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_getNoteContent_args=function(a){this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid))};
NoteStore_getNoteContent_args.prototype={};NoteStore_getNoteContent_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getNoteContent_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getNoteContent_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getNoteContent_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_getNoteContent_result.prototype={};
NoteStore_getNoteContent_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRING?this.success=a.readString().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getNoteContent_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getNoteContent_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRING,0),a.writeString(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getNoteSearchText_args=function(a){this.tokenizeForIndexing=this.noteOnly=this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid),void 0!==a.noteOnly&&(this.noteOnly=a.noteOnly),void 0!==a.tokenizeForIndexing&&(this.tokenizeForIndexing=a.tokenizeForIndexing))};NoteStore_getNoteSearchText_args.prototype={};
NoteStore_getNoteSearchText_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.BOOL?this.noteOnly=a.readBool().value:a.skip(b);break;case 4:b==Thrift.Type.BOOL?this.tokenizeForIndexing=a.readBool().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getNoteSearchText_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getNoteSearchText_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());null!==this.noteOnly&&void 0!==this.noteOnly&&(a.writeFieldBegin("noteOnly",
Thrift.Type.BOOL,3),a.writeBool(this.noteOnly),a.writeFieldEnd());null!==this.tokenizeForIndexing&&void 0!==this.tokenizeForIndexing&&(a.writeFieldBegin("tokenizeForIndexing",Thrift.Type.BOOL,4),a.writeBool(this.tokenizeForIndexing),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getNoteSearchText_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_getNoteSearchText_result.prototype={};
NoteStore_getNoteSearchText_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRING?this.success=a.readString().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getNoteSearchText_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getNoteSearchText_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRING,0),a.writeString(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_getResourceSearchText_args=function(a){this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid))};
NoteStore_getResourceSearchText_args.prototype={};NoteStore_getResourceSearchText_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getResourceSearchText_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getResourceSearchText_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getResourceSearchText_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_getResourceSearchText_result.prototype={};
NoteStore_getResourceSearchText_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRING?this.success=a.readString().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getResourceSearchText_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getResourceSearchText_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRING,0),a.writeString(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_getNoteTagNames_args=function(a){this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid))};
NoteStore_getNoteTagNames_args.prototype={};NoteStore_getNoteTagNames_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getNoteTagNames_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getNoteTagNames_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getNoteTagNames_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_getNoteTagNames_result.prototype={};
NoteStore_getNoteTagNames_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:if(b==Thrift.Type.LIST){c=0;this.success=[];c=a.readListBegin().size;for(b=0;b<c;++b){var d=null,d=a.readString().value;this.success.push(d)}a.readListEnd()}else a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=
new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getNoteTagNames_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getNoteTagNames_result");if(null!==this.success&&void 0!==this.success){a.writeFieldBegin("success",Thrift.Type.LIST,0);a.writeListBegin(Thrift.Type.STRING,this.success.length);for(var c in this.success)this.success.hasOwnProperty(c)&&(c=this.success[c],a.writeString(c));a.writeListEnd();a.writeFieldEnd()}null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,
1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_createNote_args=function(a){this.note=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.note&&(this.note=a.note))};NoteStore_createNote_args.prototype={};
NoteStore_createNote_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.note=new Note,this.note.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_createNote_args.prototype.write=function(a){a.writeStructBegin("NoteStore_createNote_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.note&&void 0!==this.note&&(a.writeFieldBegin("note",Thrift.Type.STRUCT,2),this.note.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_createNote_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&(this.notFoundException=
a.notFoundException))};NoteStore_createNote_result.prototype={};
NoteStore_createNote_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new Note,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_createNote_result.prototype.write=function(a){a.writeStructBegin("NoteStore_createNote_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,
2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_updateNote_args=function(a){this.note=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.note&&(this.note=a.note))};
NoteStore_updateNote_args.prototype={};NoteStore_updateNote_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.note=new Note,this.note.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_updateNote_args.prototype.write=function(a){a.writeStructBegin("NoteStore_updateNote_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.note&&void 0!==this.note&&(a.writeFieldBegin("note",Thrift.Type.STRUCT,2),this.note.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_updateNote_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&(this.notFoundException=
a.notFoundException))};NoteStore_updateNote_result.prototype={};
NoteStore_updateNote_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new Note,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_updateNote_result.prototype.write=function(a){a.writeStructBegin("NoteStore_updateNote_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,
2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_deleteNote_args=function(a){this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid))};
NoteStore_deleteNote_args.prototype={};NoteStore_deleteNote_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_deleteNote_args.prototype.write=function(a){a.writeStructBegin("NoteStore_deleteNote_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_deleteNote_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&(this.notFoundException=
a.notFoundException))};NoteStore_deleteNote_result.prototype={};
NoteStore_deleteNote_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.I32?this.success=a.readI32().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?(this.notFoundException=
new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_deleteNote_result.prototype.write=function(a){a.writeStructBegin("NoteStore_deleteNote_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.I32,0),a.writeI32(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,
2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_expungeNote_args=function(a){this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid))};
NoteStore_expungeNote_args.prototype={};NoteStore_expungeNote_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_expungeNote_args.prototype.write=function(a){a.writeStructBegin("NoteStore_expungeNote_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_expungeNote_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_expungeNote_result.prototype={};
NoteStore_expungeNote_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.I32?this.success=a.readI32().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?(this.notFoundException=
new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_expungeNote_result.prototype.write=function(a){a.writeStructBegin("NoteStore_expungeNote_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.I32,0),a.writeI32(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_expungeNotes_args=function(a){this.noteGuids=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.noteGuids&&(this.noteGuids=a.noteGuids))};
NoteStore_expungeNotes_args.prototype={};NoteStore_expungeNotes_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:if(b==Thrift.Type.LIST){c=0;this.noteGuids=[];c=a.readListBegin().size;for(b=0;b<c;++b){var d=null,d=a.readString().value;this.noteGuids.push(d)}a.readListEnd()}else a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_expungeNotes_args.prototype.write=function(a){a.writeStructBegin("NoteStore_expungeNotes_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());if(null!==this.noteGuids&&void 0!==this.noteGuids){a.writeFieldBegin("noteGuids",Thrift.Type.LIST,2);a.writeListBegin(Thrift.Type.STRING,this.noteGuids.length);for(var c in this.noteGuids)this.noteGuids.hasOwnProperty(c)&&
(c=this.noteGuids[c],a.writeString(c));a.writeListEnd();a.writeFieldEnd()}a.writeFieldStop();a.writeStructEnd()};
NoteStore_expungeNotes_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_expungeNotes_result.prototype={};
NoteStore_expungeNotes_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.I32?this.success=a.readI32().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?(this.notFoundException=
new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_expungeNotes_result.prototype.write=function(a){a.writeStructBegin("NoteStore_expungeNotes_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.I32,0),a.writeI32(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_expungeInactiveNotes_args=function(a){this.authenticationToken=null;a&&void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken)};NoteStore_expungeInactiveNotes_args.prototype={};
NoteStore_expungeInactiveNotes_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 0:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_expungeInactiveNotes_args.prototype.write=function(a){a.writeStructBegin("NoteStore_expungeInactiveNotes_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_expungeInactiveNotes_result=function(a){this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException))};NoteStore_expungeInactiveNotes_result.prototype={};
NoteStore_expungeInactiveNotes_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.I32?this.success=a.readI32().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_expungeInactiveNotes_result.prototype.write=function(a){a.writeStructBegin("NoteStore_expungeInactiveNotes_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.I32,0),a.writeI32(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_copyNote_args=function(a){this.toNotebookGuid=this.noteGuid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.noteGuid&&(this.noteGuid=a.noteGuid),void 0!==a.toNotebookGuid&&(this.toNotebookGuid=a.toNotebookGuid))};NoteStore_copyNote_args.prototype={};
NoteStore_copyNote_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.noteGuid=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.STRING?this.toNotebookGuid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_copyNote_args.prototype.write=function(a){a.writeStructBegin("NoteStore_copyNote_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.noteGuid&&void 0!==this.noteGuid&&(a.writeFieldBegin("noteGuid",Thrift.Type.STRING,2),a.writeString(this.noteGuid),a.writeFieldEnd());null!==this.toNotebookGuid&&void 0!==this.toNotebookGuid&&(a.writeFieldBegin("toNotebookGuid",
Thrift.Type.STRING,3),a.writeString(this.toNotebookGuid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_copyNote_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&(this.notFoundException=
a.notFoundException))};NoteStore_copyNote_result.prototype={};
NoteStore_copyNote_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new Note,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_copyNote_result.prototype.write=function(a){a.writeStructBegin("NoteStore_copyNote_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,
2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_listNoteVersions_args=function(a){this.noteGuid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.noteGuid&&(this.noteGuid=a.noteGuid))};
NoteStore_listNoteVersions_args.prototype={};NoteStore_listNoteVersions_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.noteGuid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_listNoteVersions_args.prototype.write=function(a){a.writeStructBegin("NoteStore_listNoteVersions_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.noteGuid&&void 0!==this.noteGuid&&(a.writeFieldBegin("noteGuid",Thrift.Type.STRING,2),a.writeString(this.noteGuid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_listNoteVersions_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_listNoteVersions_result.prototype={};
NoteStore_listNoteVersions_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:if(b==Thrift.Type.LIST){c=0;this.success=[];c=a.readListBegin().size;for(b=0;b<c;++b){var d=null,d=new NoteVersionId;d.read(a);this.success.push(d)}a.readListEnd()}else a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?
(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_listNoteVersions_result.prototype.write=function(a){a.writeStructBegin("NoteStore_listNoteVersions_result");if(null!==this.success&&void 0!==this.success){a.writeFieldBegin("success",Thrift.Type.LIST,0);a.writeListBegin(Thrift.Type.STRUCT,this.success.length);for(var c in this.success)this.success.hasOwnProperty(c)&&(c=this.success[c],c.write(a));a.writeListEnd();a.writeFieldEnd()}null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,
1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getNoteVersion_args=function(a){this.withResourcesAlternateData=this.withResourcesRecognition=this.withResourcesData=this.updateSequenceNum=this.noteGuid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.noteGuid&&(this.noteGuid=a.noteGuid),void 0!==a.updateSequenceNum&&(this.updateSequenceNum=a.updateSequenceNum),void 0!==a.withResourcesData&&(this.withResourcesData=a.withResourcesData),void 0!==a.withResourcesRecognition&&
(this.withResourcesRecognition=a.withResourcesRecognition),void 0!==a.withResourcesAlternateData&&(this.withResourcesAlternateData=a.withResourcesAlternateData))};NoteStore_getNoteVersion_args.prototype={};
NoteStore_getNoteVersion_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.noteGuid=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.I32?this.updateSequenceNum=a.readI32().value:a.skip(b);break;case 4:b==Thrift.Type.BOOL?this.withResourcesData=a.readBool().value:a.skip(b);break;
case 5:b==Thrift.Type.BOOL?this.withResourcesRecognition=a.readBool().value:a.skip(b);break;case 6:b==Thrift.Type.BOOL?this.withResourcesAlternateData=a.readBool().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getNoteVersion_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getNoteVersion_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.noteGuid&&void 0!==this.noteGuid&&(a.writeFieldBegin("noteGuid",Thrift.Type.STRING,2),a.writeString(this.noteGuid),a.writeFieldEnd());null!==this.updateSequenceNum&&void 0!==this.updateSequenceNum&&
(a.writeFieldBegin("updateSequenceNum",Thrift.Type.I32,3),a.writeI32(this.updateSequenceNum),a.writeFieldEnd());null!==this.withResourcesData&&void 0!==this.withResourcesData&&(a.writeFieldBegin("withResourcesData",Thrift.Type.BOOL,4),a.writeBool(this.withResourcesData),a.writeFieldEnd());null!==this.withResourcesRecognition&&void 0!==this.withResourcesRecognition&&(a.writeFieldBegin("withResourcesRecognition",Thrift.Type.BOOL,5),a.writeBool(this.withResourcesRecognition),a.writeFieldEnd());null!==
this.withResourcesAlternateData&&void 0!==this.withResourcesAlternateData&&(a.writeFieldBegin("withResourcesAlternateData",Thrift.Type.BOOL,6),a.writeBool(this.withResourcesAlternateData),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getNoteVersion_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_getNoteVersion_result.prototype={};
NoteStore_getNoteVersion_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new Note,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getNoteVersion_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getNoteVersion_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getResource_args=function(a){this.withAlternateData=this.withAttributes=this.withRecognition=this.withData=this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid),void 0!==a.withData&&(this.withData=a.withData),void 0!==a.withRecognition&&(this.withRecognition=a.withRecognition),void 0!==a.withAttributes&&(this.withAttributes=a.withAttributes),void 0!==a.withAlternateData&&(this.withAlternateData=
a.withAlternateData))};NoteStore_getResource_args.prototype={};
NoteStore_getResource_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.BOOL?this.withData=a.readBool().value:a.skip(b);break;case 4:b==Thrift.Type.BOOL?this.withRecognition=a.readBool().value:a.skip(b);break;case 5:b==Thrift.Type.BOOL?
this.withAttributes=a.readBool().value:a.skip(b);break;case 6:b==Thrift.Type.BOOL?this.withAlternateData=a.readBool().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getResource_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getResource_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());null!==this.withData&&void 0!==this.withData&&(a.writeFieldBegin("withData",Thrift.Type.BOOL,
3),a.writeBool(this.withData),a.writeFieldEnd());null!==this.withRecognition&&void 0!==this.withRecognition&&(a.writeFieldBegin("withRecognition",Thrift.Type.BOOL,4),a.writeBool(this.withRecognition),a.writeFieldEnd());null!==this.withAttributes&&void 0!==this.withAttributes&&(a.writeFieldBegin("withAttributes",Thrift.Type.BOOL,5),a.writeBool(this.withAttributes),a.writeFieldEnd());null!==this.withAlternateData&&void 0!==this.withAlternateData&&(a.writeFieldBegin("withAlternateData",Thrift.Type.BOOL,
6),a.writeBool(this.withAlternateData),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getResource_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_getResource_result.prototype={};
NoteStore_getResource_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new Resource,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==
Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getResource_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getResource_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_getResourceApplicationData_args=function(a){this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid))};
NoteStore_getResourceApplicationData_args.prototype={};NoteStore_getResourceApplicationData_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getResourceApplicationData_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getResourceApplicationData_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getResourceApplicationData_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_getResourceApplicationData_result.prototype={};
NoteStore_getResourceApplicationData_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new LazyMap,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;
case 3:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getResourceApplicationData_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getResourceApplicationData_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getResourceApplicationDataEntry_args=function(a){this.key=this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid),void 0!==a.key&&(this.key=a.key))};NoteStore_getResourceApplicationDataEntry_args.prototype={};
NoteStore_getResourceApplicationDataEntry_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.STRING?this.key=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getResourceApplicationDataEntry_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getResourceApplicationDataEntry_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());null!==this.key&&void 0!==this.key&&(a.writeFieldBegin("key",
Thrift.Type.STRING,3),a.writeString(this.key),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getResourceApplicationDataEntry_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_getResourceApplicationDataEntry_result.prototype={};
NoteStore_getResourceApplicationDataEntry_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRING?this.success=a.readString().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==
Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getResourceApplicationDataEntry_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getResourceApplicationDataEntry_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRING,0),a.writeString(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&
(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_setResourceApplicationDataEntry_args=function(a){this.value=this.key=this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid),void 0!==a.key&&(this.key=a.key),void 0!==a.value&&(this.value=a.value))};NoteStore_setResourceApplicationDataEntry_args.prototype={};
NoteStore_setResourceApplicationDataEntry_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.STRING?this.key=a.readString().value:a.skip(b);break;case 4:b==Thrift.Type.STRING?this.value=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_setResourceApplicationDataEntry_args.prototype.write=function(a){a.writeStructBegin("NoteStore_setResourceApplicationDataEntry_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());null!==this.key&&void 0!==this.key&&(a.writeFieldBegin("key",
Thrift.Type.STRING,3),a.writeString(this.key),a.writeFieldEnd());null!==this.value&&void 0!==this.value&&(a.writeFieldBegin("value",Thrift.Type.STRING,4),a.writeString(this.value),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_setResourceApplicationDataEntry_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_setResourceApplicationDataEntry_result.prototype={};
NoteStore_setResourceApplicationDataEntry_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.I32?this.success=a.readI32().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_setResourceApplicationDataEntry_result.prototype.write=function(a){a.writeStructBegin("NoteStore_setResourceApplicationDataEntry_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.I32,0),a.writeI32(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&
(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_unsetResourceApplicationDataEntry_args=function(a){this.key=this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid),void 0!==a.key&&(this.key=a.key))};NoteStore_unsetResourceApplicationDataEntry_args.prototype={};
NoteStore_unsetResourceApplicationDataEntry_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.STRING?this.key=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_unsetResourceApplicationDataEntry_args.prototype.write=function(a){a.writeStructBegin("NoteStore_unsetResourceApplicationDataEntry_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());null!==this.key&&void 0!==this.key&&
(a.writeFieldBegin("key",Thrift.Type.STRING,3),a.writeString(this.key),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_unsetResourceApplicationDataEntry_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==
a.notFoundException&&(this.notFoundException=a.notFoundException))};NoteStore_unsetResourceApplicationDataEntry_result.prototype={};
NoteStore_unsetResourceApplicationDataEntry_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.I32?this.success=a.readI32().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==
Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_unsetResourceApplicationDataEntry_result.prototype.write=function(a){a.writeStructBegin("NoteStore_unsetResourceApplicationDataEntry_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.I32,0),a.writeI32(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&
(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_updateResource_args=function(a){this.resource=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.resource&&(this.resource=a.resource))};NoteStore_updateResource_args.prototype={};
NoteStore_updateResource_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.resource=new Resource,this.resource.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_updateResource_args.prototype.write=function(a){a.writeStructBegin("NoteStore_updateResource_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.resource&&void 0!==this.resource&&(a.writeFieldBegin("resource",Thrift.Type.STRUCT,2),this.resource.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_updateResource_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_updateResource_result.prototype={};
NoteStore_updateResource_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.I32?this.success=a.readI32().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_updateResource_result.prototype.write=function(a){a.writeStructBegin("NoteStore_updateResource_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.I32,0),a.writeI32(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_getResourceData_args=function(a){this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid))};
NoteStore_getResourceData_args.prototype={};NoteStore_getResourceData_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getResourceData_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getResourceData_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getResourceData_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_getResourceData_result.prototype={};
NoteStore_getResourceData_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRING?this.success=a.readBinary().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getResourceData_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getResourceData_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRING,0),a.writeBinary(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getResourceByHash_args=function(a){this.withAlternateData=this.withRecognition=this.withData=this.contentHash=this.noteGuid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.noteGuid&&(this.noteGuid=a.noteGuid),void 0!==a.contentHash&&(this.contentHash=a.contentHash),void 0!==a.withData&&(this.withData=a.withData),void 0!==a.withRecognition&&(this.withRecognition=a.withRecognition),void 0!==a.withAlternateData&&
(this.withAlternateData=a.withAlternateData))};NoteStore_getResourceByHash_args.prototype={};
NoteStore_getResourceByHash_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.noteGuid=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.STRING?this.contentHash=a.readBinary().value:a.skip(b);break;case 4:b==Thrift.Type.BOOL?this.withData=a.readBool().value:a.skip(b);break;case 5:b==
Thrift.Type.BOOL?this.withRecognition=a.readBool().value:a.skip(b);break;case 6:b==Thrift.Type.BOOL?this.withAlternateData=a.readBool().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getResourceByHash_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getResourceByHash_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.noteGuid&&void 0!==this.noteGuid&&(a.writeFieldBegin("noteGuid",Thrift.Type.STRING,2),a.writeString(this.noteGuid),a.writeFieldEnd());null!==this.contentHash&&void 0!==this.contentHash&&
(a.writeFieldBegin("contentHash",Thrift.Type.STRING,3),a.writeBinary(this.contentHash),a.writeFieldEnd());null!==this.withData&&void 0!==this.withData&&(a.writeFieldBegin("withData",Thrift.Type.BOOL,4),a.writeBool(this.withData),a.writeFieldEnd());null!==this.withRecognition&&void 0!==this.withRecognition&&(a.writeFieldBegin("withRecognition",Thrift.Type.BOOL,5),a.writeBool(this.withRecognition),a.writeFieldEnd());null!==this.withAlternateData&&void 0!==this.withAlternateData&&(a.writeFieldBegin("withAlternateData",
Thrift.Type.BOOL,6),a.writeBool(this.withAlternateData),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getResourceByHash_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_getResourceByHash_result.prototype={};
NoteStore_getResourceByHash_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new Resource,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==
Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getResourceByHash_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getResourceByHash_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_getResourceRecognition_args=function(a){this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid))};
NoteStore_getResourceRecognition_args.prototype={};NoteStore_getResourceRecognition_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getResourceRecognition_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getResourceRecognition_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getResourceRecognition_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_getResourceRecognition_result.prototype={};
NoteStore_getResourceRecognition_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRING?this.success=a.readBinary().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getResourceRecognition_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getResourceRecognition_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRING,0),a.writeBinary(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_getResourceAlternateData_args=function(a){this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid))};
NoteStore_getResourceAlternateData_args.prototype={};NoteStore_getResourceAlternateData_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getResourceAlternateData_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getResourceAlternateData_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getResourceAlternateData_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_getResourceAlternateData_result.prototype={};
NoteStore_getResourceAlternateData_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRING?this.success=a.readBinary().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getResourceAlternateData_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getResourceAlternateData_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRING,0),a.writeBinary(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_getResourceAttributes_args=function(a){this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid))};
NoteStore_getResourceAttributes_args.prototype={};NoteStore_getResourceAttributes_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getResourceAttributes_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getResourceAttributes_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getResourceAttributes_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_getResourceAttributes_result.prototype={};
NoteStore_getResourceAttributes_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new ResourceAttributes,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);
break;case 3:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getResourceAttributes_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getResourceAttributes_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_getPublicNotebook_args=function(a){this.publicUri=this.userId=null;a&&(void 0!==a.userId&&(this.userId=a.userId),void 0!==a.publicUri&&(this.publicUri=a.publicUri))};
NoteStore_getPublicNotebook_args.prototype={};NoteStore_getPublicNotebook_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.I32?this.userId=a.readI32().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.publicUri=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getPublicNotebook_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getPublicNotebook_args");null!==this.userId&&void 0!==this.userId&&(a.writeFieldBegin("userId",Thrift.Type.I32,1),a.writeI32(this.userId),a.writeFieldEnd());null!==this.publicUri&&void 0!==this.publicUri&&(a.writeFieldBegin("publicUri",Thrift.Type.STRING,2),a.writeString(this.publicUri),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getPublicNotebook_result=function(a){this.notFoundException=this.systemException=this.success=null;a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&(this.notFoundException=a.notFoundException))};NoteStore_getPublicNotebook_result.prototype={};
NoteStore_getPublicNotebook_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new Notebook,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);
break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getPublicNotebook_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getPublicNotebook_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,1),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",
Thrift.Type.STRUCT,2),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_createSharedNotebook_args=function(a){this.sharedNotebook=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.sharedNotebook&&(this.sharedNotebook=a.sharedNotebook))};NoteStore_createSharedNotebook_args.prototype={};
NoteStore_createSharedNotebook_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.sharedNotebook=new SharedNotebook,this.sharedNotebook.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_createSharedNotebook_args.prototype.write=function(a){a.writeStructBegin("NoteStore_createSharedNotebook_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.sharedNotebook&&void 0!==this.sharedNotebook&&(a.writeFieldBegin("sharedNotebook",Thrift.Type.STRUCT,2),this.sharedNotebook.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_createSharedNotebook_result=function(a){this.systemException=this.notFoundException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.notFoundException&&(this.notFoundException=a.notFoundException),void 0!==a.systemException&&
(this.systemException=a.systemException))};NoteStore_createSharedNotebook_result.prototype={};
NoteStore_createSharedNotebook_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new SharedNotebook,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);
break;case 3:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_createSharedNotebook_result.prototype.write=function(a){a.writeStructBegin("NoteStore_createSharedNotebook_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",
Thrift.Type.STRUCT,2),this.notFoundException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,3),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_updateSharedNotebook_args=function(a){this.sharedNotebook=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.sharedNotebook&&(this.sharedNotebook=a.sharedNotebook))};NoteStore_updateSharedNotebook_args.prototype={};
NoteStore_updateSharedNotebook_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.sharedNotebook=new SharedNotebook,this.sharedNotebook.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_updateSharedNotebook_args.prototype.write=function(a){a.writeStructBegin("NoteStore_updateSharedNotebook_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.sharedNotebook&&void 0!==this.sharedNotebook&&(a.writeFieldBegin("sharedNotebook",Thrift.Type.STRUCT,2),this.sharedNotebook.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_updateSharedNotebook_result=function(a){this.systemException=this.notFoundException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.notFoundException&&(this.notFoundException=a.notFoundException),void 0!==a.systemException&&
(this.systemException=a.systemException))};NoteStore_updateSharedNotebook_result.prototype={};
NoteStore_updateSharedNotebook_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.I32?this.success=a.readI32().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_updateSharedNotebook_result.prototype.write=function(a){a.writeStructBegin("NoteStore_updateSharedNotebook_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.I32,0),a.writeI32(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",
Thrift.Type.STRUCT,2),this.notFoundException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,3),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_setSharedNotebookRecipientSettings_args=function(a){this.recipientSettings=this.sharedNotebookId=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.sharedNotebookId&&(this.sharedNotebookId=a.sharedNotebookId),void 0!==a.recipientSettings&&(this.recipientSettings=a.recipientSettings))};NoteStore_setSharedNotebookRecipientSettings_args.prototype={};
NoteStore_setSharedNotebookRecipientSettings_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.I64?this.sharedNotebookId=a.readI64().value:a.skip(b);break;case 3:b==Thrift.Type.STRUCT?(this.recipientSettings=new SharedNotebookRecipientSettings,this.recipientSettings.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_setSharedNotebookRecipientSettings_args.prototype.write=function(a){a.writeStructBegin("NoteStore_setSharedNotebookRecipientSettings_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.sharedNotebookId&&void 0!==this.sharedNotebookId&&(a.writeFieldBegin("sharedNotebookId",Thrift.Type.I64,2),a.writeI64(this.sharedNotebookId),a.writeFieldEnd());
null!==this.recipientSettings&&void 0!==this.recipientSettings&&(a.writeFieldBegin("recipientSettings",Thrift.Type.STRUCT,3),this.recipientSettings.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_setSharedNotebookRecipientSettings_result=function(a){this.systemException=this.notFoundException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.notFoundException&&(this.notFoundException=a.notFoundException),void 0!==
a.systemException&&(this.systemException=a.systemException))};NoteStore_setSharedNotebookRecipientSettings_result.prototype={};
NoteStore_setSharedNotebookRecipientSettings_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.I32?this.success=a.readI32().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;case 3:b==
Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_setSharedNotebookRecipientSettings_result.prototype.write=function(a){a.writeStructBegin("NoteStore_setSharedNotebookRecipientSettings_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.I32,0),a.writeI32(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&
(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,2),this.notFoundException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,3),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_sendMessageToSharedNotebookMembers_args=function(a){this.recipients=this.messageText=this.notebookGuid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.notebookGuid&&(this.notebookGuid=a.notebookGuid),void 0!==a.messageText&&(this.messageText=a.messageText),void 0!==a.recipients&&(this.recipients=a.recipients))};NoteStore_sendMessageToSharedNotebookMembers_args.prototype={};
NoteStore_sendMessageToSharedNotebookMembers_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.notebookGuid=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.STRING?this.messageText=a.readString().value:a.skip(b);break;case 4:if(b==Thrift.Type.LIST){c=0;this.recipients=[];c=a.readListBegin().size;
for(b=0;b<c;++b){var d=null,d=a.readString().value;this.recipients.push(d)}a.readListEnd()}else a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_sendMessageToSharedNotebookMembers_args.prototype.write=function(a){a.writeStructBegin("NoteStore_sendMessageToSharedNotebookMembers_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.notebookGuid&&void 0!==this.notebookGuid&&(a.writeFieldBegin("notebookGuid",Thrift.Type.STRING,2),a.writeString(this.notebookGuid),a.writeFieldEnd());
null!==this.messageText&&void 0!==this.messageText&&(a.writeFieldBegin("messageText",Thrift.Type.STRING,3),a.writeString(this.messageText),a.writeFieldEnd());if(null!==this.recipients&&void 0!==this.recipients){a.writeFieldBegin("recipients",Thrift.Type.LIST,4);a.writeListBegin(Thrift.Type.STRING,this.recipients.length);for(var c in this.recipients)this.recipients.hasOwnProperty(c)&&(c=this.recipients[c],a.writeString(c));a.writeListEnd();a.writeFieldEnd()}a.writeFieldStop();a.writeStructEnd()};
NoteStore_sendMessageToSharedNotebookMembers_result=function(a){this.systemException=this.notFoundException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.notFoundException&&(this.notFoundException=a.notFoundException),void 0!==
a.systemException&&(this.systemException=a.systemException))};NoteStore_sendMessageToSharedNotebookMembers_result.prototype={};
NoteStore_sendMessageToSharedNotebookMembers_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.I32?this.success=a.readI32().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;case 3:b==
Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_sendMessageToSharedNotebookMembers_result.prototype.write=function(a){a.writeStructBegin("NoteStore_sendMessageToSharedNotebookMembers_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.I32,0),a.writeI32(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&
(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,2),this.notFoundException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,3),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_listSharedNotebooks_args=function(a){this.authenticationToken=null;a&&void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken)};
NoteStore_listSharedNotebooks_args.prototype={};NoteStore_listSharedNotebooks_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 0:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_listSharedNotebooks_args.prototype.write=function(a){a.writeStructBegin("NoteStore_listSharedNotebooks_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_listSharedNotebooks_result=function(a){this.systemException=this.notFoundException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.notFoundException&&(this.notFoundException=a.notFoundException),void 0!==a.systemException&&
(this.systemException=a.systemException))};NoteStore_listSharedNotebooks_result.prototype={};
NoteStore_listSharedNotebooks_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:if(b==Thrift.Type.LIST){c=0;this.success=[];c=a.readListBegin().size;for(b=0;b<c;++b){var d=null,d=new SharedNotebook;d.read(a);this.success.push(d)}a.readListEnd()}else a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_listSharedNotebooks_result.prototype.write=function(a){a.writeStructBegin("NoteStore_listSharedNotebooks_result");if(null!==this.success&&void 0!==this.success){a.writeFieldBegin("success",Thrift.Type.LIST,0);a.writeListBegin(Thrift.Type.STRUCT,this.success.length);for(var c in this.success)this.success.hasOwnProperty(c)&&(c=this.success[c],c.write(a));a.writeListEnd();a.writeFieldEnd()}null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,
1),this.userException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,2),this.notFoundException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,3),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_expungeSharedNotebooks_args=function(a){this.sharedNotebookIds=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.sharedNotebookIds&&(this.sharedNotebookIds=a.sharedNotebookIds))};NoteStore_expungeSharedNotebooks_args.prototype={};
NoteStore_expungeSharedNotebooks_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:if(b==Thrift.Type.LIST){c=0;this.sharedNotebookIds=[];c=a.readListBegin().size;for(b=0;b<c;++b){var d=null,d=a.readI64().value;this.sharedNotebookIds.push(d)}a.readListEnd()}else a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_expungeSharedNotebooks_args.prototype.write=function(a){a.writeStructBegin("NoteStore_expungeSharedNotebooks_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());if(null!==this.sharedNotebookIds&&void 0!==this.sharedNotebookIds){a.writeFieldBegin("sharedNotebookIds",Thrift.Type.LIST,2);a.writeListBegin(Thrift.Type.I64,this.sharedNotebookIds.length);
for(var c in this.sharedNotebookIds)this.sharedNotebookIds.hasOwnProperty(c)&&(c=this.sharedNotebookIds[c],a.writeI64(c));a.writeListEnd();a.writeFieldEnd()}a.writeFieldStop();a.writeStructEnd()};
NoteStore_expungeSharedNotebooks_result=function(a){this.systemException=this.notFoundException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.notFoundException&&(this.notFoundException=a.notFoundException),void 0!==a.systemException&&
(this.systemException=a.systemException))};NoteStore_expungeSharedNotebooks_result.prototype={};
NoteStore_expungeSharedNotebooks_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.I32?this.success=a.readI32().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_expungeSharedNotebooks_result.prototype.write=function(a){a.writeStructBegin("NoteStore_expungeSharedNotebooks_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.I32,0),a.writeI32(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",
Thrift.Type.STRUCT,2),this.notFoundException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,3),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_createLinkedNotebook_args=function(a){this.linkedNotebook=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.linkedNotebook&&(this.linkedNotebook=a.linkedNotebook))};NoteStore_createLinkedNotebook_args.prototype={};
NoteStore_createLinkedNotebook_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.linkedNotebook=new LinkedNotebook,this.linkedNotebook.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_createLinkedNotebook_args.prototype.write=function(a){a.writeStructBegin("NoteStore_createLinkedNotebook_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.linkedNotebook&&void 0!==this.linkedNotebook&&(a.writeFieldBegin("linkedNotebook",Thrift.Type.STRUCT,2),this.linkedNotebook.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_createLinkedNotebook_result=function(a){this.systemException=this.notFoundException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.notFoundException&&(this.notFoundException=a.notFoundException),void 0!==a.systemException&&
(this.systemException=a.systemException))};NoteStore_createLinkedNotebook_result.prototype={};
NoteStore_createLinkedNotebook_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new LinkedNotebook,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);
break;case 3:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_createLinkedNotebook_result.prototype.write=function(a){a.writeStructBegin("NoteStore_createLinkedNotebook_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",
Thrift.Type.STRUCT,2),this.notFoundException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,3),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_updateLinkedNotebook_args=function(a){this.linkedNotebook=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.linkedNotebook&&(this.linkedNotebook=a.linkedNotebook))};NoteStore_updateLinkedNotebook_args.prototype={};
NoteStore_updateLinkedNotebook_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.linkedNotebook=new LinkedNotebook,this.linkedNotebook.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_updateLinkedNotebook_args.prototype.write=function(a){a.writeStructBegin("NoteStore_updateLinkedNotebook_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.linkedNotebook&&void 0!==this.linkedNotebook&&(a.writeFieldBegin("linkedNotebook",Thrift.Type.STRUCT,2),this.linkedNotebook.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_updateLinkedNotebook_result=function(a){this.systemException=this.notFoundException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.notFoundException&&(this.notFoundException=a.notFoundException),void 0!==a.systemException&&
(this.systemException=a.systemException))};NoteStore_updateLinkedNotebook_result.prototype={};
NoteStore_updateLinkedNotebook_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.I32?this.success=a.readI32().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_updateLinkedNotebook_result.prototype.write=function(a){a.writeStructBegin("NoteStore_updateLinkedNotebook_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.I32,0),a.writeI32(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",
Thrift.Type.STRUCT,2),this.notFoundException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,3),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_listLinkedNotebooks_args=function(a){this.authenticationToken=null;a&&void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken)};NoteStore_listLinkedNotebooks_args.prototype={};
NoteStore_listLinkedNotebooks_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 0:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_listLinkedNotebooks_args.prototype.write=function(a){a.writeStructBegin("NoteStore_listLinkedNotebooks_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_listLinkedNotebooks_result=function(a){this.systemException=this.notFoundException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.notFoundException&&(this.notFoundException=a.notFoundException),void 0!==a.systemException&&
(this.systemException=a.systemException))};NoteStore_listLinkedNotebooks_result.prototype={};
NoteStore_listLinkedNotebooks_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:if(b==Thrift.Type.LIST){c=0;this.success=[];c=a.readListBegin().size;for(b=0;b<c;++b){var d=null,d=new LinkedNotebook;d.read(a);this.success.push(d)}a.readListEnd()}else a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?
(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_listLinkedNotebooks_result.prototype.write=function(a){a.writeStructBegin("NoteStore_listLinkedNotebooks_result");if(null!==this.success&&void 0!==this.success){a.writeFieldBegin("success",Thrift.Type.LIST,0);a.writeListBegin(Thrift.Type.STRUCT,this.success.length);for(var c in this.success)this.success.hasOwnProperty(c)&&(c=this.success[c],c.write(a));a.writeListEnd();a.writeFieldEnd()}null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,
1),this.userException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,2),this.notFoundException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,3),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_expungeLinkedNotebook_args=function(a){this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid))};NoteStore_expungeLinkedNotebook_args.prototype={};
NoteStore_expungeLinkedNotebook_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_expungeLinkedNotebook_args.prototype.write=function(a){a.writeStructBegin("NoteStore_expungeLinkedNotebook_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_expungeLinkedNotebook_result=function(a){this.systemException=this.notFoundException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.notFoundException&&(this.notFoundException=a.notFoundException),void 0!==a.systemException&&
(this.systemException=a.systemException))};NoteStore_expungeLinkedNotebook_result.prototype={};
NoteStore_expungeLinkedNotebook_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.I32?this.success=a.readI32().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_expungeLinkedNotebook_result.prototype.write=function(a){a.writeStructBegin("NoteStore_expungeLinkedNotebook_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.I32,0),a.writeI32(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",
Thrift.Type.STRUCT,2),this.notFoundException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,3),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_authenticateToSharedNotebook_args=function(a){this.authenticationToken=this.shareKey=null;a&&(void 0!==a.shareKey&&(this.shareKey=a.shareKey),void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken))};
NoteStore_authenticateToSharedNotebook_args.prototype={};NoteStore_authenticateToSharedNotebook_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.shareKey=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_authenticateToSharedNotebook_args.prototype.write=function(a){a.writeStructBegin("NoteStore_authenticateToSharedNotebook_args");null!==this.shareKey&&void 0!==this.shareKey&&(a.writeFieldBegin("shareKey",Thrift.Type.STRING,1),a.writeString(this.shareKey),a.writeFieldEnd());null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,2),a.writeString(this.authenticationToken),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_authenticateToSharedNotebook_result=function(a){this.systemException=this.notFoundException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.notFoundException&&(this.notFoundException=a.notFoundException),void 0!==
a.systemException&&(this.systemException=a.systemException))};NoteStore_authenticateToSharedNotebook_result.prototype={};
NoteStore_authenticateToSharedNotebook_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new AuthenticationResult,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):
a.skip(b);break;case 3:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_authenticateToSharedNotebook_result.prototype.write=function(a){a.writeStructBegin("NoteStore_authenticateToSharedNotebook_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&
(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,2),this.notFoundException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,3),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_getSharedNotebookByAuth_args=function(a){this.authenticationToken=null;a&&void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken)};
NoteStore_getSharedNotebookByAuth_args.prototype={};NoteStore_getSharedNotebookByAuth_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 0:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getSharedNotebookByAuth_args.prototype.write=function(a){a.writeStructBegin("NoteStore_getSharedNotebookByAuth_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_getSharedNotebookByAuth_result=function(a){this.systemException=this.notFoundException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.notFoundException&&(this.notFoundException=a.notFoundException),void 0!==a.systemException&&
(this.systemException=a.systemException))};NoteStore_getSharedNotebookByAuth_result.prototype={};
NoteStore_getSharedNotebookByAuth_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new SharedNotebook,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);
break;case 3:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_getSharedNotebookByAuth_result.prototype.write=function(a){a.writeStructBegin("NoteStore_getSharedNotebookByAuth_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",
Thrift.Type.STRUCT,2),this.notFoundException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,3),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_emailNote_args=function(a){this.parameters=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.parameters&&(this.parameters=a.parameters))};
NoteStore_emailNote_args.prototype={};NoteStore_emailNote_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.parameters=new NoteEmailParameters,this.parameters.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_emailNote_args.prototype.write=function(a){a.writeStructBegin("NoteStore_emailNote_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.parameters&&void 0!==this.parameters&&(a.writeFieldBegin("parameters",Thrift.Type.STRUCT,2),this.parameters.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_emailNote_result=function(a){this.systemException=this.notFoundException=this.userException=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.userException&&(this.userException=a.userException),void 0!==a.notFoundException&&(this.notFoundException=a.notFoundException),void 0!==a.systemException&&(this.systemException=a.systemException))};
NoteStore_emailNote_result.prototype={};
NoteStore_emailNote_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):
a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_emailNote_result.prototype.write=function(a){a.writeStructBegin("NoteStore_emailNote_result");null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,2),this.notFoundException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,3),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_shareNote_args=function(a){this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid))};NoteStore_shareNote_args.prototype={};
NoteStore_shareNote_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_shareNote_args.prototype.write=function(a){a.writeStructBegin("NoteStore_shareNote_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_shareNote_result=function(a){this.systemException=this.notFoundException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.notFoundException&&(this.notFoundException=a.notFoundException),void 0!==a.systemException&&
(this.systemException=a.systemException))};NoteStore_shareNote_result.prototype={};
NoteStore_shareNote_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRING?this.success=a.readString().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?
(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_shareNote_result.prototype.write=function(a){a.writeStructBegin("NoteStore_shareNote_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRING,0),a.writeString(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",
Thrift.Type.STRUCT,2),this.notFoundException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,3),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_stopSharingNote_args=function(a){this.guid=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.guid&&(this.guid=a.guid))};
NoteStore_stopSharingNote_args.prototype={};NoteStore_stopSharingNote_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_stopSharingNote_args.prototype.write=function(a){a.writeStructBegin("NoteStore_stopSharingNote_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,2),a.writeString(this.guid),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_stopSharingNote_result=function(a){this.systemException=this.notFoundException=this.userException=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.userException&&(this.userException=a.userException),void 0!==a.notFoundException&&(this.notFoundException=a.notFoundException),void 0!==a.systemException&&(this.systemException=a.systemException))};
NoteStore_stopSharingNote_result.prototype={};
NoteStore_stopSharingNote_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):
a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_stopSharingNote_result.prototype.write=function(a){a.writeStructBegin("NoteStore_stopSharingNote_result");null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,2),this.notFoundException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&
(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,3),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStore_authenticateToSharedNote_args=function(a){this.authenticationToken=this.noteKey=this.guid=null;a&&(void 0!==a.guid&&(this.guid=a.guid),void 0!==a.noteKey&&(this.noteKey=a.noteKey),void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken))};NoteStore_authenticateToSharedNote_args.prototype={};
NoteStore_authenticateToSharedNote_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.noteKey=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_authenticateToSharedNote_args.prototype.write=function(a){a.writeStructBegin("NoteStore_authenticateToSharedNote_args");null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,1),a.writeString(this.guid),a.writeFieldEnd());null!==this.noteKey&&void 0!==this.noteKey&&(a.writeFieldBegin("noteKey",Thrift.Type.STRING,2),a.writeString(this.noteKey),a.writeFieldEnd());null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",
Thrift.Type.STRING,3),a.writeString(this.authenticationToken),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_authenticateToSharedNote_result=function(a){this.systemException=this.notFoundException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.notFoundException&&(this.notFoundException=a.notFoundException),void 0!==a.systemException&&
(this.systemException=a.systemException))};NoteStore_authenticateToSharedNote_result.prototype={};
NoteStore_authenticateToSharedNote_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new AuthenticationResult,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):
a.skip(b);break;case 3:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_authenticateToSharedNote_result.prototype.write=function(a){a.writeStructBegin("NoteStore_authenticateToSharedNote_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",
Thrift.Type.STRUCT,2),this.notFoundException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,3),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_findRelated_args=function(a){this.resultSpec=this.query=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.query&&(this.query=a.query),void 0!==a.resultSpec&&(this.resultSpec=a.resultSpec))};NoteStore_findRelated_args.prototype={};
NoteStore_findRelated_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.query=new RelatedQuery,this.query.read(a)):a.skip(b);break;case 3:b==Thrift.Type.STRUCT?(this.resultSpec=new RelatedResultSpec,this.resultSpec.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_findRelated_args.prototype.write=function(a){a.writeStructBegin("NoteStore_findRelated_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.query&&void 0!==this.query&&(a.writeFieldBegin("query",Thrift.Type.STRUCT,2),this.query.write(a),a.writeFieldEnd());null!==this.resultSpec&&void 0!==this.resultSpec&&(a.writeFieldBegin("resultSpec",
Thrift.Type.STRUCT,3),this.resultSpec.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteStore_findRelated_result=function(a){this.notFoundException=this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMNotFoundException?this.notFoundException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.notFoundException&&
(this.notFoundException=a.notFoundException))};NoteStore_findRelated_result.prototype={};
NoteStore_findRelated_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new RelatedResult,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;case 3:b==
Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteStore_findRelated_result.prototype.write=function(a){a.writeStructBegin("NoteStore_findRelated_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,3),this.notFoundException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteStoreClient=function(a,c){this.input=a;this.output=!c?a:c;this.seqid=0};NoteStoreClient.prototype={};
NoteStoreClient.prototype.getSyncState=function(a,c){if(void 0===c)return this.send_getSyncState(a),this.recv_getSyncState();var b=this.send_getSyncState(a,!0);return this.output.getTransport().send(this,b,arguments,this.recv_getSyncState)};NoteStoreClient.prototype.send_getSyncState=function(a,c){this.output.writeMessageBegin("getSyncState",Thrift.MessageType.CALL,this.seqid);var b=new NoteStore_getSyncState_args;b.authenticationToken=a;b.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(c)};
NoteStoreClient.prototype.recv_getSyncState=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getSyncState_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;throw"getSyncState failed: unknown result";};
NoteStoreClient.prototype.getSyncStateWithMetrics=function(a,c,b){if(void 0===b)return this.send_getSyncStateWithMetrics(a,c),this.recv_getSyncStateWithMetrics();var d=this.send_getSyncStateWithMetrics(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_getSyncStateWithMetrics)};
NoteStoreClient.prototype.send_getSyncStateWithMetrics=function(a,c,b){this.output.writeMessageBegin("getSyncStateWithMetrics",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_getSyncStateWithMetrics_args;d.authenticationToken=a;d.clientMetrics=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_getSyncStateWithMetrics=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getSyncStateWithMetrics_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;throw"getSyncStateWithMetrics failed: unknown result";
};NoteStoreClient.prototype.getSyncChunk=function(a,c,b,d,e){if(void 0===e)return this.send_getSyncChunk(a,c,b,d),this.recv_getSyncChunk();var f=this.send_getSyncChunk(a,c,b,d,!0);return this.output.getTransport().send(this,f,arguments,this.recv_getSyncChunk)};
NoteStoreClient.prototype.send_getSyncChunk=function(a,c,b,d,e){this.output.writeMessageBegin("getSyncChunk",Thrift.MessageType.CALL,this.seqid);var f=new NoteStore_getSyncChunk_args;f.authenticationToken=a;f.afterUSN=c;f.maxEntries=b;f.fullSyncOnly=d;f.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(e)};
NoteStoreClient.prototype.recv_getSyncChunk=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getSyncChunk_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;throw"getSyncChunk failed: unknown result";};
NoteStoreClient.prototype.getFilteredSyncChunk=function(a,c,b,d,e){if(void 0===e)return this.send_getFilteredSyncChunk(a,c,b,d),this.recv_getFilteredSyncChunk();var f=this.send_getFilteredSyncChunk(a,c,b,d,!0);return this.output.getTransport().send(this,f,arguments,this.recv_getFilteredSyncChunk)};
NoteStoreClient.prototype.send_getFilteredSyncChunk=function(a,c,b,d,e){this.output.writeMessageBegin("getFilteredSyncChunk",Thrift.MessageType.CALL,this.seqid);var f=new NoteStore_getFilteredSyncChunk_args;f.authenticationToken=a;f.afterUSN=c;f.maxEntries=b;f.filter=d;f.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(e)};
NoteStoreClient.prototype.recv_getFilteredSyncChunk=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getFilteredSyncChunk_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;throw"getFilteredSyncChunk failed: unknown result";
};NoteStoreClient.prototype.getLinkedNotebookSyncState=function(a,c,b){if(void 0===b)return this.send_getLinkedNotebookSyncState(a,c),this.recv_getLinkedNotebookSyncState();var d=this.send_getLinkedNotebookSyncState(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_getLinkedNotebookSyncState)};
NoteStoreClient.prototype.send_getLinkedNotebookSyncState=function(a,c,b){this.output.writeMessageBegin("getLinkedNotebookSyncState",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_getLinkedNotebookSyncState_args;d.authenticationToken=a;d.linkedNotebook=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_getLinkedNotebookSyncState=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getLinkedNotebookSyncState_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;
throw"getLinkedNotebookSyncState failed: unknown result";};NoteStoreClient.prototype.getLinkedNotebookSyncChunk=function(a,c,b,d,e,f){if(void 0===f)return this.send_getLinkedNotebookSyncChunk(a,c,b,d,e),this.recv_getLinkedNotebookSyncChunk();var g=this.send_getLinkedNotebookSyncChunk(a,c,b,d,e,!0);return this.output.getTransport().send(this,g,arguments,this.recv_getLinkedNotebookSyncChunk)};
NoteStoreClient.prototype.send_getLinkedNotebookSyncChunk=function(a,c,b,d,e,f){this.output.writeMessageBegin("getLinkedNotebookSyncChunk",Thrift.MessageType.CALL,this.seqid);var g=new NoteStore_getLinkedNotebookSyncChunk_args;g.authenticationToken=a;g.linkedNotebook=c;g.afterUSN=b;g.maxEntries=d;g.fullSyncOnly=e;g.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(f)};
NoteStoreClient.prototype.recv_getLinkedNotebookSyncChunk=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getLinkedNotebookSyncChunk_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;
throw"getLinkedNotebookSyncChunk failed: unknown result";};NoteStoreClient.prototype.listNotebooks=function(a,c){if(void 0===c)return this.send_listNotebooks(a),this.recv_listNotebooks();var b=this.send_listNotebooks(a,!0);return this.output.getTransport().send(this,b,arguments,this.recv_listNotebooks)};
NoteStoreClient.prototype.send_listNotebooks=function(a,c){this.output.writeMessageBegin("listNotebooks",Thrift.MessageType.CALL,this.seqid);var b=new NoteStore_listNotebooks_args;b.authenticationToken=a;b.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(c)};
NoteStoreClient.prototype.recv_listNotebooks=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_listNotebooks_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;throw"listNotebooks failed: unknown result";};
NoteStoreClient.prototype.getNotebook=function(a,c,b){if(void 0===b)return this.send_getNotebook(a,c),this.recv_getNotebook();var d=this.send_getNotebook(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_getNotebook)};
NoteStoreClient.prototype.send_getNotebook=function(a,c,b){this.output.writeMessageBegin("getNotebook",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_getNotebook_args;d.authenticationToken=a;d.guid=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_getNotebook=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getNotebook_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"getNotebook failed: unknown result";
};NoteStoreClient.prototype.getDefaultNotebook=function(a,c){if(void 0===c)return this.send_getDefaultNotebook(a),this.recv_getDefaultNotebook();var b=this.send_getDefaultNotebook(a,!0);return this.output.getTransport().send(this,b,arguments,this.recv_getDefaultNotebook)};
NoteStoreClient.prototype.send_getDefaultNotebook=function(a,c){this.output.writeMessageBegin("getDefaultNotebook",Thrift.MessageType.CALL,this.seqid);var b=new NoteStore_getDefaultNotebook_args;b.authenticationToken=a;b.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(c)};
NoteStoreClient.prototype.recv_getDefaultNotebook=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getDefaultNotebook_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;throw"getDefaultNotebook failed: unknown result";
};NoteStoreClient.prototype.createNotebook=function(a,c,b){if(void 0===b)return this.send_createNotebook(a,c),this.recv_createNotebook();var d=this.send_createNotebook(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_createNotebook)};
NoteStoreClient.prototype.send_createNotebook=function(a,c,b){this.output.writeMessageBegin("createNotebook",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_createNotebook_args;d.authenticationToken=a;d.notebook=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_createNotebook=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_createNotebook_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;throw"createNotebook failed: unknown result";};
NoteStoreClient.prototype.updateNotebook=function(a,c,b){if(void 0===b)return this.send_updateNotebook(a,c),this.recv_updateNotebook();var d=this.send_updateNotebook(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_updateNotebook)};
NoteStoreClient.prototype.send_updateNotebook=function(a,c,b){this.output.writeMessageBegin("updateNotebook",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_updateNotebook_args;d.authenticationToken=a;d.notebook=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_updateNotebook=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_updateNotebook_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"updateNotebook failed: unknown result";
};NoteStoreClient.prototype.expungeNotebook=function(a,c,b){if(void 0===b)return this.send_expungeNotebook(a,c),this.recv_expungeNotebook();var d=this.send_expungeNotebook(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_expungeNotebook)};
NoteStoreClient.prototype.send_expungeNotebook=function(a,c,b){this.output.writeMessageBegin("expungeNotebook",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_expungeNotebook_args;d.authenticationToken=a;d.guid=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_expungeNotebook=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_expungeNotebook_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;
throw"expungeNotebook failed: unknown result";};NoteStoreClient.prototype.listTags=function(a,c){if(void 0===c)return this.send_listTags(a),this.recv_listTags();var b=this.send_listTags(a,!0);return this.output.getTransport().send(this,b,arguments,this.recv_listTags)};
NoteStoreClient.prototype.send_listTags=function(a,c){this.output.writeMessageBegin("listTags",Thrift.MessageType.CALL,this.seqid);var b=new NoteStore_listTags_args;b.authenticationToken=a;b.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(c)};
NoteStoreClient.prototype.recv_listTags=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_listTags_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;throw"listTags failed: unknown result";};
NoteStoreClient.prototype.listTagsByNotebook=function(a,c,b){if(void 0===b)return this.send_listTagsByNotebook(a,c),this.recv_listTagsByNotebook();var d=this.send_listTagsByNotebook(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_listTagsByNotebook)};
NoteStoreClient.prototype.send_listTagsByNotebook=function(a,c,b){this.output.writeMessageBegin("listTagsByNotebook",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_listTagsByNotebook_args;d.authenticationToken=a;d.notebookGuid=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_listTagsByNotebook=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_listTagsByNotebook_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;
throw"listTagsByNotebook failed: unknown result";};NoteStoreClient.prototype.getTag=function(a,c,b){if(void 0===b)return this.send_getTag(a,c),this.recv_getTag();var d=this.send_getTag(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_getTag)};
NoteStoreClient.prototype.send_getTag=function(a,c,b){this.output.writeMessageBegin("getTag",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_getTag_args;d.authenticationToken=a;d.guid=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_getTag=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getTag_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"getTag failed: unknown result";
};NoteStoreClient.prototype.createTag=function(a,c,b){if(void 0===b)return this.send_createTag(a,c),this.recv_createTag();var d=this.send_createTag(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_createTag)};NoteStoreClient.prototype.send_createTag=function(a,c,b){this.output.writeMessageBegin("createTag",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_createTag_args;d.authenticationToken=a;d.tag=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_createTag=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_createTag_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"createTag failed: unknown result";
};NoteStoreClient.prototype.updateTag=function(a,c,b){if(void 0===b)return this.send_updateTag(a,c),this.recv_updateTag();var d=this.send_updateTag(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_updateTag)};NoteStoreClient.prototype.send_updateTag=function(a,c,b){this.output.writeMessageBegin("updateTag",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_updateTag_args;d.authenticationToken=a;d.tag=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_updateTag=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_updateTag_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"updateTag failed: unknown result";
};NoteStoreClient.prototype.untagAll=function(a,c,b){if(void 0===b)this.send_untagAll(a,c),this.recv_untagAll();else{var d=this.send_untagAll(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_untagAll)}};NoteStoreClient.prototype.send_untagAll=function(a,c,b){this.output.writeMessageBegin("untagAll",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_untagAll_args;d.authenticationToken=a;d.guid=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_untagAll=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_untagAll_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;};
NoteStoreClient.prototype.expungeTag=function(a,c,b){if(void 0===b)return this.send_expungeTag(a,c),this.recv_expungeTag();var d=this.send_expungeTag(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_expungeTag)};NoteStoreClient.prototype.send_expungeTag=function(a,c,b){this.output.writeMessageBegin("expungeTag",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_expungeTag_args;d.authenticationToken=a;d.guid=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_expungeTag=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_expungeTag_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"expungeTag failed: unknown result";
};NoteStoreClient.prototype.listSearches=function(a,c){if(void 0===c)return this.send_listSearches(a),this.recv_listSearches();var b=this.send_listSearches(a,!0);return this.output.getTransport().send(this,b,arguments,this.recv_listSearches)};NoteStoreClient.prototype.send_listSearches=function(a,c){this.output.writeMessageBegin("listSearches",Thrift.MessageType.CALL,this.seqid);var b=new NoteStore_listSearches_args;b.authenticationToken=a;b.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(c)};
NoteStoreClient.prototype.recv_listSearches=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_listSearches_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;throw"listSearches failed: unknown result";};
NoteStoreClient.prototype.getSearch=function(a,c,b){if(void 0===b)return this.send_getSearch(a,c),this.recv_getSearch();var d=this.send_getSearch(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_getSearch)};NoteStoreClient.prototype.send_getSearch=function(a,c,b){this.output.writeMessageBegin("getSearch",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_getSearch_args;d.authenticationToken=a;d.guid=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_getSearch=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getSearch_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"getSearch failed: unknown result";
};NoteStoreClient.prototype.createSearch=function(a,c,b){if(void 0===b)return this.send_createSearch(a,c),this.recv_createSearch();var d=this.send_createSearch(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_createSearch)};
NoteStoreClient.prototype.send_createSearch=function(a,c,b){this.output.writeMessageBegin("createSearch",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_createSearch_args;d.authenticationToken=a;d.search=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_createSearch=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_createSearch_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;throw"createSearch failed: unknown result";};
NoteStoreClient.prototype.updateSearch=function(a,c,b){if(void 0===b)return this.send_updateSearch(a,c),this.recv_updateSearch();var d=this.send_updateSearch(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_updateSearch)};
NoteStoreClient.prototype.send_updateSearch=function(a,c,b){this.output.writeMessageBegin("updateSearch",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_updateSearch_args;d.authenticationToken=a;d.search=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_updateSearch=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_updateSearch_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"updateSearch failed: unknown result";
};NoteStoreClient.prototype.expungeSearch=function(a,c,b){if(void 0===b)return this.send_expungeSearch(a,c),this.recv_expungeSearch();var d=this.send_expungeSearch(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_expungeSearch)};
NoteStoreClient.prototype.send_expungeSearch=function(a,c,b){this.output.writeMessageBegin("expungeSearch",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_expungeSearch_args;d.authenticationToken=a;d.guid=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_expungeSearch=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_expungeSearch_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"expungeSearch failed: unknown result";
};NoteStoreClient.prototype.findNotes=function(a,c,b,d,e){if(void 0===e)return this.send_findNotes(a,c,b,d),this.recv_findNotes();var f=this.send_findNotes(a,c,b,d,!0);return this.output.getTransport().send(this,f,arguments,this.recv_findNotes)};
NoteStoreClient.prototype.send_findNotes=function(a,c,b,d,e){this.output.writeMessageBegin("findNotes",Thrift.MessageType.CALL,this.seqid);var f=new NoteStore_findNotes_args;f.authenticationToken=a;f.filter=c;f.offset=b;f.maxNotes=d;f.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(e)};
NoteStoreClient.prototype.recv_findNotes=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_findNotes_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"findNotes failed: unknown result";
};NoteStoreClient.prototype.findNoteOffset=function(a,c,b,d){if(void 0===d)return this.send_findNoteOffset(a,c,b),this.recv_findNoteOffset();var e=this.send_findNoteOffset(a,c,b,!0);return this.output.getTransport().send(this,e,arguments,this.recv_findNoteOffset)};
NoteStoreClient.prototype.send_findNoteOffset=function(a,c,b,d){this.output.writeMessageBegin("findNoteOffset",Thrift.MessageType.CALL,this.seqid);var e=new NoteStore_findNoteOffset_args;e.authenticationToken=a;e.filter=c;e.guid=b;e.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(d)};
NoteStoreClient.prototype.recv_findNoteOffset=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_findNoteOffset_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"findNoteOffset failed: unknown result";
};NoteStoreClient.prototype.findNotesMetadata=function(a,c,b,d,e,f){if(void 0===f)return this.send_findNotesMetadata(a,c,b,d,e),this.recv_findNotesMetadata();var g=this.send_findNotesMetadata(a,c,b,d,e,!0);return this.output.getTransport().send(this,g,arguments,this.recv_findNotesMetadata)};
NoteStoreClient.prototype.send_findNotesMetadata=function(a,c,b,d,e,f){this.output.writeMessageBegin("findNotesMetadata",Thrift.MessageType.CALL,this.seqid);var g=new NoteStore_findNotesMetadata_args;g.authenticationToken=a;g.filter=c;g.offset=b;g.maxNotes=d;g.resultSpec=e;g.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(f)};
NoteStoreClient.prototype.recv_findNotesMetadata=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_findNotesMetadata_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;
throw"findNotesMetadata failed: unknown result";};NoteStoreClient.prototype.findNoteCounts=function(a,c,b,d){if(void 0===d)return this.send_findNoteCounts(a,c,b),this.recv_findNoteCounts();var e=this.send_findNoteCounts(a,c,b,!0);return this.output.getTransport().send(this,e,arguments,this.recv_findNoteCounts)};
NoteStoreClient.prototype.send_findNoteCounts=function(a,c,b,d){this.output.writeMessageBegin("findNoteCounts",Thrift.MessageType.CALL,this.seqid);var e=new NoteStore_findNoteCounts_args;e.authenticationToken=a;e.filter=c;e.withTrash=b;e.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(d)};
NoteStoreClient.prototype.recv_findNoteCounts=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_findNoteCounts_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"findNoteCounts failed: unknown result";
};NoteStoreClient.prototype.getNote=function(a,c,b,d,e,f,g){if(void 0===g)return this.send_getNote(a,c,b,d,e,f),this.recv_getNote();var h=this.send_getNote(a,c,b,d,e,f,!0);return this.output.getTransport().send(this,h,arguments,this.recv_getNote)};
NoteStoreClient.prototype.send_getNote=function(a,c,b,d,e,f,g){this.output.writeMessageBegin("getNote",Thrift.MessageType.CALL,this.seqid);var h=new NoteStore_getNote_args;h.authenticationToken=a;h.guid=c;h.withContent=b;h.withResourcesData=d;h.withResourcesRecognition=e;h.withResourcesAlternateData=f;h.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(g)};
NoteStoreClient.prototype.recv_getNote=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getNote_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"getNote failed: unknown result";
};NoteStoreClient.prototype.getNoteApplicationData=function(a,c,b){if(void 0===b)return this.send_getNoteApplicationData(a,c),this.recv_getNoteApplicationData();var d=this.send_getNoteApplicationData(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_getNoteApplicationData)};
NoteStoreClient.prototype.send_getNoteApplicationData=function(a,c,b){this.output.writeMessageBegin("getNoteApplicationData",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_getNoteApplicationData_args;d.authenticationToken=a;d.guid=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_getNoteApplicationData=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getNoteApplicationData_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;
throw"getNoteApplicationData failed: unknown result";};NoteStoreClient.prototype.getNoteApplicationDataEntry=function(a,c,b,d){if(void 0===d)return this.send_getNoteApplicationDataEntry(a,c,b),this.recv_getNoteApplicationDataEntry();var e=this.send_getNoteApplicationDataEntry(a,c,b,!0);return this.output.getTransport().send(this,e,arguments,this.recv_getNoteApplicationDataEntry)};
NoteStoreClient.prototype.send_getNoteApplicationDataEntry=function(a,c,b,d){this.output.writeMessageBegin("getNoteApplicationDataEntry",Thrift.MessageType.CALL,this.seqid);var e=new NoteStore_getNoteApplicationDataEntry_args;e.authenticationToken=a;e.guid=c;e.key=b;e.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(d)};
NoteStoreClient.prototype.recv_getNoteApplicationDataEntry=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getNoteApplicationDataEntry_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;
throw"getNoteApplicationDataEntry failed: unknown result";};NoteStoreClient.prototype.setNoteApplicationDataEntry=function(a,c,b,d,e){if(void 0===e)return this.send_setNoteApplicationDataEntry(a,c,b,d),this.recv_setNoteApplicationDataEntry();var f=this.send_setNoteApplicationDataEntry(a,c,b,d,!0);return this.output.getTransport().send(this,f,arguments,this.recv_setNoteApplicationDataEntry)};
NoteStoreClient.prototype.send_setNoteApplicationDataEntry=function(a,c,b,d,e){this.output.writeMessageBegin("setNoteApplicationDataEntry",Thrift.MessageType.CALL,this.seqid);var f=new NoteStore_setNoteApplicationDataEntry_args;f.authenticationToken=a;f.guid=c;f.key=b;f.value=d;f.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(e)};
NoteStoreClient.prototype.recv_setNoteApplicationDataEntry=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_setNoteApplicationDataEntry_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;
throw"setNoteApplicationDataEntry failed: unknown result";};NoteStoreClient.prototype.unsetNoteApplicationDataEntry=function(a,c,b,d){if(void 0===d)return this.send_unsetNoteApplicationDataEntry(a,c,b),this.recv_unsetNoteApplicationDataEntry();var e=this.send_unsetNoteApplicationDataEntry(a,c,b,!0);return this.output.getTransport().send(this,e,arguments,this.recv_unsetNoteApplicationDataEntry)};
NoteStoreClient.prototype.send_unsetNoteApplicationDataEntry=function(a,c,b,d){this.output.writeMessageBegin("unsetNoteApplicationDataEntry",Thrift.MessageType.CALL,this.seqid);var e=new NoteStore_unsetNoteApplicationDataEntry_args;e.authenticationToken=a;e.guid=c;e.key=b;e.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(d)};
NoteStoreClient.prototype.recv_unsetNoteApplicationDataEntry=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_unsetNoteApplicationDataEntry_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==
a.success)return a.success;throw"unsetNoteApplicationDataEntry failed: unknown result";};NoteStoreClient.prototype.getNoteContent=function(a,c,b){if(void 0===b)return this.send_getNoteContent(a,c),this.recv_getNoteContent();var d=this.send_getNoteContent(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_getNoteContent)};
NoteStoreClient.prototype.send_getNoteContent=function(a,c,b){this.output.writeMessageBegin("getNoteContent",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_getNoteContent_args;d.authenticationToken=a;d.guid=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_getNoteContent=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getNoteContent_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"getNoteContent failed: unknown result";
};NoteStoreClient.prototype.getNoteSearchText=function(a,c,b,d,e){if(void 0===e)return this.send_getNoteSearchText(a,c,b,d),this.recv_getNoteSearchText();var f=this.send_getNoteSearchText(a,c,b,d,!0);return this.output.getTransport().send(this,f,arguments,this.recv_getNoteSearchText)};
NoteStoreClient.prototype.send_getNoteSearchText=function(a,c,b,d,e){this.output.writeMessageBegin("getNoteSearchText",Thrift.MessageType.CALL,this.seqid);var f=new NoteStore_getNoteSearchText_args;f.authenticationToken=a;f.guid=c;f.noteOnly=b;f.tokenizeForIndexing=d;f.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(e)};
NoteStoreClient.prototype.recv_getNoteSearchText=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getNoteSearchText_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;
throw"getNoteSearchText failed: unknown result";};NoteStoreClient.prototype.getResourceSearchText=function(a,c,b){if(void 0===b)return this.send_getResourceSearchText(a,c),this.recv_getResourceSearchText();var d=this.send_getResourceSearchText(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_getResourceSearchText)};
NoteStoreClient.prototype.send_getResourceSearchText=function(a,c,b){this.output.writeMessageBegin("getResourceSearchText",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_getResourceSearchText_args;d.authenticationToken=a;d.guid=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_getResourceSearchText=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getResourceSearchText_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;
throw"getResourceSearchText failed: unknown result";};NoteStoreClient.prototype.getNoteTagNames=function(a,c,b){if(void 0===b)return this.send_getNoteTagNames(a,c),this.recv_getNoteTagNames();var d=this.send_getNoteTagNames(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_getNoteTagNames)};
NoteStoreClient.prototype.send_getNoteTagNames=function(a,c,b){this.output.writeMessageBegin("getNoteTagNames",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_getNoteTagNames_args;d.authenticationToken=a;d.guid=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_getNoteTagNames=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getNoteTagNames_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;
throw"getNoteTagNames failed: unknown result";};NoteStoreClient.prototype.createNote=function(a,c,b){if(void 0===b)return this.send_createNote(a,c),this.recv_createNote();var d=this.send_createNote(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_createNote)};
NoteStoreClient.prototype.send_createNote=function(a,c,b){this.output.writeMessageBegin("createNote",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_createNote_args;d.authenticationToken=a;d.note=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_createNote=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_createNote_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"createNote failed: unknown result";
};NoteStoreClient.prototype.updateNote=function(a,c,b){if(void 0===b)return this.send_updateNote(a,c),this.recv_updateNote();var d=this.send_updateNote(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_updateNote)};NoteStoreClient.prototype.send_updateNote=function(a,c,b){this.output.writeMessageBegin("updateNote",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_updateNote_args;d.authenticationToken=a;d.note=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_updateNote=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_updateNote_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"updateNote failed: unknown result";
};NoteStoreClient.prototype.deleteNote=function(a,c,b){if(void 0===b)return this.send_deleteNote(a,c),this.recv_deleteNote();var d=this.send_deleteNote(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_deleteNote)};NoteStoreClient.prototype.send_deleteNote=function(a,c,b){this.output.writeMessageBegin("deleteNote",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_deleteNote_args;d.authenticationToken=a;d.guid=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_deleteNote=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_deleteNote_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"deleteNote failed: unknown result";
};NoteStoreClient.prototype.expungeNote=function(a,c,b){if(void 0===b)return this.send_expungeNote(a,c),this.recv_expungeNote();var d=this.send_expungeNote(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_expungeNote)};
NoteStoreClient.prototype.send_expungeNote=function(a,c,b){this.output.writeMessageBegin("expungeNote",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_expungeNote_args;d.authenticationToken=a;d.guid=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_expungeNote=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_expungeNote_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"expungeNote failed: unknown result";
};NoteStoreClient.prototype.expungeNotes=function(a,c,b){if(void 0===b)return this.send_expungeNotes(a,c),this.recv_expungeNotes();var d=this.send_expungeNotes(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_expungeNotes)};
NoteStoreClient.prototype.send_expungeNotes=function(a,c,b){this.output.writeMessageBegin("expungeNotes",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_expungeNotes_args;d.authenticationToken=a;d.noteGuids=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_expungeNotes=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_expungeNotes_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"expungeNotes failed: unknown result";
};NoteStoreClient.prototype.expungeInactiveNotes=function(a,c){if(void 0===c)return this.send_expungeInactiveNotes(a),this.recv_expungeInactiveNotes();var b=this.send_expungeInactiveNotes(a,!0);return this.output.getTransport().send(this,b,arguments,this.recv_expungeInactiveNotes)};
NoteStoreClient.prototype.send_expungeInactiveNotes=function(a,c){this.output.writeMessageBegin("expungeInactiveNotes",Thrift.MessageType.CALL,this.seqid);var b=new NoteStore_expungeInactiveNotes_args;b.authenticationToken=a;b.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(c)};
NoteStoreClient.prototype.recv_expungeInactiveNotes=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_expungeInactiveNotes_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;throw"expungeInactiveNotes failed: unknown result";
};NoteStoreClient.prototype.copyNote=function(a,c,b,d){if(void 0===d)return this.send_copyNote(a,c,b),this.recv_copyNote();var e=this.send_copyNote(a,c,b,!0);return this.output.getTransport().send(this,e,arguments,this.recv_copyNote)};
NoteStoreClient.prototype.send_copyNote=function(a,c,b,d){this.output.writeMessageBegin("copyNote",Thrift.MessageType.CALL,this.seqid);var e=new NoteStore_copyNote_args;e.authenticationToken=a;e.noteGuid=c;e.toNotebookGuid=b;e.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(d)};
NoteStoreClient.prototype.recv_copyNote=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_copyNote_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"copyNote failed: unknown result";
};NoteStoreClient.prototype.listNoteVersions=function(a,c,b){if(void 0===b)return this.send_listNoteVersions(a,c),this.recv_listNoteVersions();var d=this.send_listNoteVersions(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_listNoteVersions)};
NoteStoreClient.prototype.send_listNoteVersions=function(a,c,b){this.output.writeMessageBegin("listNoteVersions",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_listNoteVersions_args;d.authenticationToken=a;d.noteGuid=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_listNoteVersions=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_listNoteVersions_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;
throw"listNoteVersions failed: unknown result";};NoteStoreClient.prototype.getNoteVersion=function(a,c,b,d,e,f,g){if(void 0===g)return this.send_getNoteVersion(a,c,b,d,e,f),this.recv_getNoteVersion();var h=this.send_getNoteVersion(a,c,b,d,e,f,!0);return this.output.getTransport().send(this,h,arguments,this.recv_getNoteVersion)};
NoteStoreClient.prototype.send_getNoteVersion=function(a,c,b,d,e,f,g){this.output.writeMessageBegin("getNoteVersion",Thrift.MessageType.CALL,this.seqid);var h=new NoteStore_getNoteVersion_args;h.authenticationToken=a;h.noteGuid=c;h.updateSequenceNum=b;h.withResourcesData=d;h.withResourcesRecognition=e;h.withResourcesAlternateData=f;h.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(g)};
NoteStoreClient.prototype.recv_getNoteVersion=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getNoteVersion_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"getNoteVersion failed: unknown result";
};NoteStoreClient.prototype.getResource=function(a,c,b,d,e,f,g){if(void 0===g)return this.send_getResource(a,c,b,d,e,f),this.recv_getResource();var h=this.send_getResource(a,c,b,d,e,f,!0);return this.output.getTransport().send(this,h,arguments,this.recv_getResource)};
NoteStoreClient.prototype.send_getResource=function(a,c,b,d,e,f,g){this.output.writeMessageBegin("getResource",Thrift.MessageType.CALL,this.seqid);var h=new NoteStore_getResource_args;h.authenticationToken=a;h.guid=c;h.withData=b;h.withRecognition=d;h.withAttributes=e;h.withAlternateData=f;h.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(g)};
NoteStoreClient.prototype.recv_getResource=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getResource_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"getResource failed: unknown result";
};NoteStoreClient.prototype.getResourceApplicationData=function(a,c,b){if(void 0===b)return this.send_getResourceApplicationData(a,c),this.recv_getResourceApplicationData();var d=this.send_getResourceApplicationData(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_getResourceApplicationData)};
NoteStoreClient.prototype.send_getResourceApplicationData=function(a,c,b){this.output.writeMessageBegin("getResourceApplicationData",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_getResourceApplicationData_args;d.authenticationToken=a;d.guid=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_getResourceApplicationData=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getResourceApplicationData_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;
throw"getResourceApplicationData failed: unknown result";};NoteStoreClient.prototype.getResourceApplicationDataEntry=function(a,c,b,d){if(void 0===d)return this.send_getResourceApplicationDataEntry(a,c,b),this.recv_getResourceApplicationDataEntry();var e=this.send_getResourceApplicationDataEntry(a,c,b,!0);return this.output.getTransport().send(this,e,arguments,this.recv_getResourceApplicationDataEntry)};
NoteStoreClient.prototype.send_getResourceApplicationDataEntry=function(a,c,b,d){this.output.writeMessageBegin("getResourceApplicationDataEntry",Thrift.MessageType.CALL,this.seqid);var e=new NoteStore_getResourceApplicationDataEntry_args;e.authenticationToken=a;e.guid=c;e.key=b;e.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(d)};
NoteStoreClient.prototype.recv_getResourceApplicationDataEntry=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getResourceApplicationDataEntry_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==
a.success)return a.success;throw"getResourceApplicationDataEntry failed: unknown result";};NoteStoreClient.prototype.setResourceApplicationDataEntry=function(a,c,b,d,e){if(void 0===e)return this.send_setResourceApplicationDataEntry(a,c,b,d),this.recv_setResourceApplicationDataEntry();var f=this.send_setResourceApplicationDataEntry(a,c,b,d,!0);return this.output.getTransport().send(this,f,arguments,this.recv_setResourceApplicationDataEntry)};
NoteStoreClient.prototype.send_setResourceApplicationDataEntry=function(a,c,b,d,e){this.output.writeMessageBegin("setResourceApplicationDataEntry",Thrift.MessageType.CALL,this.seqid);var f=new NoteStore_setResourceApplicationDataEntry_args;f.authenticationToken=a;f.guid=c;f.key=b;f.value=d;f.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(e)};
NoteStoreClient.prototype.recv_setResourceApplicationDataEntry=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_setResourceApplicationDataEntry_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==
a.success)return a.success;throw"setResourceApplicationDataEntry failed: unknown result";};NoteStoreClient.prototype.unsetResourceApplicationDataEntry=function(a,c,b,d){if(void 0===d)return this.send_unsetResourceApplicationDataEntry(a,c,b),this.recv_unsetResourceApplicationDataEntry();var e=this.send_unsetResourceApplicationDataEntry(a,c,b,!0);return this.output.getTransport().send(this,e,arguments,this.recv_unsetResourceApplicationDataEntry)};
NoteStoreClient.prototype.send_unsetResourceApplicationDataEntry=function(a,c,b,d){this.output.writeMessageBegin("unsetResourceApplicationDataEntry",Thrift.MessageType.CALL,this.seqid);var e=new NoteStore_unsetResourceApplicationDataEntry_args;e.authenticationToken=a;e.guid=c;e.key=b;e.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(d)};
NoteStoreClient.prototype.recv_unsetResourceApplicationDataEntry=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_unsetResourceApplicationDataEntry_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;
if(null!==a.success)return a.success;throw"unsetResourceApplicationDataEntry failed: unknown result";};NoteStoreClient.prototype.updateResource=function(a,c,b){if(void 0===b)return this.send_updateResource(a,c),this.recv_updateResource();var d=this.send_updateResource(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_updateResource)};
NoteStoreClient.prototype.send_updateResource=function(a,c,b){this.output.writeMessageBegin("updateResource",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_updateResource_args;d.authenticationToken=a;d.resource=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_updateResource=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_updateResource_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"updateResource failed: unknown result";
};NoteStoreClient.prototype.getResourceData=function(a,c,b){if(void 0===b)return this.send_getResourceData(a,c),this.recv_getResourceData();var d=this.send_getResourceData(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_getResourceData)};
NoteStoreClient.prototype.send_getResourceData=function(a,c,b){this.output.writeMessageBegin("getResourceData",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_getResourceData_args;d.authenticationToken=a;d.guid=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_getResourceData=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getResourceData_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;
throw"getResourceData failed: unknown result";};NoteStoreClient.prototype.getResourceByHash=function(a,c,b,d,e,f,g){if(void 0===g)return this.send_getResourceByHash(a,c,b,d,e,f),this.recv_getResourceByHash();var h=this.send_getResourceByHash(a,c,b,d,e,f,!0);return this.output.getTransport().send(this,h,arguments,this.recv_getResourceByHash)};
NoteStoreClient.prototype.send_getResourceByHash=function(a,c,b,d,e,f,g){this.output.writeMessageBegin("getResourceByHash",Thrift.MessageType.CALL,this.seqid);var h=new NoteStore_getResourceByHash_args;h.authenticationToken=a;h.noteGuid=c;h.contentHash=b;h.withData=d;h.withRecognition=e;h.withAlternateData=f;h.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(g)};
NoteStoreClient.prototype.recv_getResourceByHash=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getResourceByHash_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;
throw"getResourceByHash failed: unknown result";};NoteStoreClient.prototype.getResourceRecognition=function(a,c,b){if(void 0===b)return this.send_getResourceRecognition(a,c),this.recv_getResourceRecognition();var d=this.send_getResourceRecognition(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_getResourceRecognition)};
NoteStoreClient.prototype.send_getResourceRecognition=function(a,c,b){this.output.writeMessageBegin("getResourceRecognition",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_getResourceRecognition_args;d.authenticationToken=a;d.guid=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_getResourceRecognition=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getResourceRecognition_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;
throw"getResourceRecognition failed: unknown result";};NoteStoreClient.prototype.getResourceAlternateData=function(a,c,b){if(void 0===b)return this.send_getResourceAlternateData(a,c),this.recv_getResourceAlternateData();var d=this.send_getResourceAlternateData(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_getResourceAlternateData)};
NoteStoreClient.prototype.send_getResourceAlternateData=function(a,c,b){this.output.writeMessageBegin("getResourceAlternateData",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_getResourceAlternateData_args;d.authenticationToken=a;d.guid=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_getResourceAlternateData=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getResourceAlternateData_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;
throw"getResourceAlternateData failed: unknown result";};NoteStoreClient.prototype.getResourceAttributes=function(a,c,b){if(void 0===b)return this.send_getResourceAttributes(a,c),this.recv_getResourceAttributes();var d=this.send_getResourceAttributes(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_getResourceAttributes)};
NoteStoreClient.prototype.send_getResourceAttributes=function(a,c,b){this.output.writeMessageBegin("getResourceAttributes",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_getResourceAttributes_args;d.authenticationToken=a;d.guid=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_getResourceAttributes=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getResourceAttributes_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;
throw"getResourceAttributes failed: unknown result";};NoteStoreClient.prototype.getPublicNotebook=function(a,c,b){if(void 0===b)return this.send_getPublicNotebook(a,c),this.recv_getPublicNotebook();var d=this.send_getPublicNotebook(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_getPublicNotebook)};
NoteStoreClient.prototype.send_getPublicNotebook=function(a,c,b){this.output.writeMessageBegin("getPublicNotebook",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_getPublicNotebook_args;d.userId=a;d.publicUri=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_getPublicNotebook=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getPublicNotebook_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"getPublicNotebook failed: unknown result";
};NoteStoreClient.prototype.createSharedNotebook=function(a,c,b){if(void 0===b)return this.send_createSharedNotebook(a,c),this.recv_createSharedNotebook();var d=this.send_createSharedNotebook(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_createSharedNotebook)};
NoteStoreClient.prototype.send_createSharedNotebook=function(a,c,b){this.output.writeMessageBegin("createSharedNotebook",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_createSharedNotebook_args;d.authenticationToken=a;d.sharedNotebook=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_createSharedNotebook=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_createSharedNotebook_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;
throw"createSharedNotebook failed: unknown result";};NoteStoreClient.prototype.updateSharedNotebook=function(a,c,b){if(void 0===b)return this.send_updateSharedNotebook(a,c),this.recv_updateSharedNotebook();var d=this.send_updateSharedNotebook(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_updateSharedNotebook)};
NoteStoreClient.prototype.send_updateSharedNotebook=function(a,c,b){this.output.writeMessageBegin("updateSharedNotebook",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_updateSharedNotebook_args;d.authenticationToken=a;d.sharedNotebook=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_updateSharedNotebook=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_updateSharedNotebook_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;
throw"updateSharedNotebook failed: unknown result";};NoteStoreClient.prototype.setSharedNotebookRecipientSettings=function(a,c,b,d){if(void 0===d)return this.send_setSharedNotebookRecipientSettings(a,c,b),this.recv_setSharedNotebookRecipientSettings();var e=this.send_setSharedNotebookRecipientSettings(a,c,b,!0);return this.output.getTransport().send(this,e,arguments,this.recv_setSharedNotebookRecipientSettings)};
NoteStoreClient.prototype.send_setSharedNotebookRecipientSettings=function(a,c,b,d){this.output.writeMessageBegin("setSharedNotebookRecipientSettings",Thrift.MessageType.CALL,this.seqid);var e=new NoteStore_setSharedNotebookRecipientSettings_args;e.authenticationToken=a;e.sharedNotebookId=c;e.recipientSettings=b;e.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(d)};
NoteStoreClient.prototype.recv_setSharedNotebookRecipientSettings=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_setSharedNotebookRecipientSettings_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.systemException)throw a.systemException;
if(null!==a.success)return a.success;throw"setSharedNotebookRecipientSettings failed: unknown result";};NoteStoreClient.prototype.sendMessageToSharedNotebookMembers=function(a,c,b,d,e){if(void 0===e)return this.send_sendMessageToSharedNotebookMembers(a,c,b,d),this.recv_sendMessageToSharedNotebookMembers();var f=this.send_sendMessageToSharedNotebookMembers(a,c,b,d,!0);return this.output.getTransport().send(this,f,arguments,this.recv_sendMessageToSharedNotebookMembers)};
NoteStoreClient.prototype.send_sendMessageToSharedNotebookMembers=function(a,c,b,d,e){this.output.writeMessageBegin("sendMessageToSharedNotebookMembers",Thrift.MessageType.CALL,this.seqid);var f=new NoteStore_sendMessageToSharedNotebookMembers_args;f.authenticationToken=a;f.notebookGuid=c;f.messageText=b;f.recipients=d;f.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(e)};
NoteStoreClient.prototype.recv_sendMessageToSharedNotebookMembers=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_sendMessageToSharedNotebookMembers_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.systemException)throw a.systemException;
if(null!==a.success)return a.success;throw"sendMessageToSharedNotebookMembers failed: unknown result";};NoteStoreClient.prototype.listSharedNotebooks=function(a,c){if(void 0===c)return this.send_listSharedNotebooks(a),this.recv_listSharedNotebooks();var b=this.send_listSharedNotebooks(a,!0);return this.output.getTransport().send(this,b,arguments,this.recv_listSharedNotebooks)};
NoteStoreClient.prototype.send_listSharedNotebooks=function(a,c){this.output.writeMessageBegin("listSharedNotebooks",Thrift.MessageType.CALL,this.seqid);var b=new NoteStore_listSharedNotebooks_args;b.authenticationToken=a;b.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(c)};
NoteStoreClient.prototype.recv_listSharedNotebooks=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_listSharedNotebooks_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;
throw"listSharedNotebooks failed: unknown result";};NoteStoreClient.prototype.expungeSharedNotebooks=function(a,c,b){if(void 0===b)return this.send_expungeSharedNotebooks(a,c),this.recv_expungeSharedNotebooks();var d=this.send_expungeSharedNotebooks(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_expungeSharedNotebooks)};
NoteStoreClient.prototype.send_expungeSharedNotebooks=function(a,c,b){this.output.writeMessageBegin("expungeSharedNotebooks",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_expungeSharedNotebooks_args;d.authenticationToken=a;d.sharedNotebookIds=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_expungeSharedNotebooks=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_expungeSharedNotebooks_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;
throw"expungeSharedNotebooks failed: unknown result";};NoteStoreClient.prototype.createLinkedNotebook=function(a,c,b){if(void 0===b)return this.send_createLinkedNotebook(a,c),this.recv_createLinkedNotebook();var d=this.send_createLinkedNotebook(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_createLinkedNotebook)};
NoteStoreClient.prototype.send_createLinkedNotebook=function(a,c,b){this.output.writeMessageBegin("createLinkedNotebook",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_createLinkedNotebook_args;d.authenticationToken=a;d.linkedNotebook=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_createLinkedNotebook=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_createLinkedNotebook_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;
throw"createLinkedNotebook failed: unknown result";};NoteStoreClient.prototype.updateLinkedNotebook=function(a,c,b){if(void 0===b)return this.send_updateLinkedNotebook(a,c),this.recv_updateLinkedNotebook();var d=this.send_updateLinkedNotebook(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_updateLinkedNotebook)};
NoteStoreClient.prototype.send_updateLinkedNotebook=function(a,c,b){this.output.writeMessageBegin("updateLinkedNotebook",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_updateLinkedNotebook_args;d.authenticationToken=a;d.linkedNotebook=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_updateLinkedNotebook=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_updateLinkedNotebook_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;
throw"updateLinkedNotebook failed: unknown result";};NoteStoreClient.prototype.listLinkedNotebooks=function(a,c){if(void 0===c)return this.send_listLinkedNotebooks(a),this.recv_listLinkedNotebooks();var b=this.send_listLinkedNotebooks(a,!0);return this.output.getTransport().send(this,b,arguments,this.recv_listLinkedNotebooks)};
NoteStoreClient.prototype.send_listLinkedNotebooks=function(a,c){this.output.writeMessageBegin("listLinkedNotebooks",Thrift.MessageType.CALL,this.seqid);var b=new NoteStore_listLinkedNotebooks_args;b.authenticationToken=a;b.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(c)};
NoteStoreClient.prototype.recv_listLinkedNotebooks=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_listLinkedNotebooks_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;
throw"listLinkedNotebooks failed: unknown result";};NoteStoreClient.prototype.expungeLinkedNotebook=function(a,c,b){if(void 0===b)return this.send_expungeLinkedNotebook(a,c),this.recv_expungeLinkedNotebook();var d=this.send_expungeLinkedNotebook(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_expungeLinkedNotebook)};
NoteStoreClient.prototype.send_expungeLinkedNotebook=function(a,c,b){this.output.writeMessageBegin("expungeLinkedNotebook",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_expungeLinkedNotebook_args;d.authenticationToken=a;d.guid=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_expungeLinkedNotebook=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_expungeLinkedNotebook_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;
throw"expungeLinkedNotebook failed: unknown result";};NoteStoreClient.prototype.authenticateToSharedNotebook=function(a,c,b){if(void 0===b)return this.send_authenticateToSharedNotebook(a,c),this.recv_authenticateToSharedNotebook();var d=this.send_authenticateToSharedNotebook(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_authenticateToSharedNotebook)};
NoteStoreClient.prototype.send_authenticateToSharedNotebook=function(a,c,b){this.output.writeMessageBegin("authenticateToSharedNotebook",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_authenticateToSharedNotebook_args;d.shareKey=a;d.authenticationToken=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_authenticateToSharedNotebook=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_authenticateToSharedNotebook_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.systemException)throw a.systemException;if(null!==
a.success)return a.success;throw"authenticateToSharedNotebook failed: unknown result";};NoteStoreClient.prototype.getSharedNotebookByAuth=function(a,c){if(void 0===c)return this.send_getSharedNotebookByAuth(a),this.recv_getSharedNotebookByAuth();var b=this.send_getSharedNotebookByAuth(a,!0);return this.output.getTransport().send(this,b,arguments,this.recv_getSharedNotebookByAuth)};
NoteStoreClient.prototype.send_getSharedNotebookByAuth=function(a,c){this.output.writeMessageBegin("getSharedNotebookByAuth",Thrift.MessageType.CALL,this.seqid);var b=new NoteStore_getSharedNotebookByAuth_args;b.authenticationToken=a;b.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(c)};
NoteStoreClient.prototype.recv_getSharedNotebookByAuth=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_getSharedNotebookByAuth_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;
throw"getSharedNotebookByAuth failed: unknown result";};NoteStoreClient.prototype.emailNote=function(a,c,b){if(void 0===b)this.send_emailNote(a,c),this.recv_emailNote();else{var d=this.send_emailNote(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_emailNote)}};
NoteStoreClient.prototype.send_emailNote=function(a,c,b){this.output.writeMessageBegin("emailNote",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_emailNote_args;d.authenticationToken=a;d.parameters=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_emailNote=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_emailNote_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.systemException)throw a.systemException;};
NoteStoreClient.prototype.shareNote=function(a,c,b){if(void 0===b)return this.send_shareNote(a,c),this.recv_shareNote();var d=this.send_shareNote(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_shareNote)};NoteStoreClient.prototype.send_shareNote=function(a,c,b){this.output.writeMessageBegin("shareNote",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_shareNote_args;d.authenticationToken=a;d.guid=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_shareNote=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_shareNote_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;throw"shareNote failed: unknown result";
};NoteStoreClient.prototype.stopSharingNote=function(a,c,b){if(void 0===b)this.send_stopSharingNote(a,c),this.recv_stopSharingNote();else{var d=this.send_stopSharingNote(a,c,!0);return this.output.getTransport().send(this,d,arguments,this.recv_stopSharingNote)}};
NoteStoreClient.prototype.send_stopSharingNote=function(a,c,b){this.output.writeMessageBegin("stopSharingNote",Thrift.MessageType.CALL,this.seqid);var d=new NoteStore_stopSharingNote_args;d.authenticationToken=a;d.guid=c;d.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(b)};
NoteStoreClient.prototype.recv_stopSharingNote=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_stopSharingNote_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.systemException)throw a.systemException;};
NoteStoreClient.prototype.authenticateToSharedNote=function(a,c,b,d){if(void 0===d)return this.send_authenticateToSharedNote(a,c,b),this.recv_authenticateToSharedNote();var e=this.send_authenticateToSharedNote(a,c,b,!0);return this.output.getTransport().send(this,e,arguments,this.recv_authenticateToSharedNote)};
NoteStoreClient.prototype.send_authenticateToSharedNote=function(a,c,b,d){this.output.writeMessageBegin("authenticateToSharedNote",Thrift.MessageType.CALL,this.seqid);var e=new NoteStore_authenticateToSharedNote_args;e.guid=a;e.noteKey=c;e.authenticationToken=b;e.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(d)};
NoteStoreClient.prototype.recv_authenticateToSharedNote=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_authenticateToSharedNote_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;
throw"authenticateToSharedNote failed: unknown result";};NoteStoreClient.prototype.findRelated=function(a,c,b,d){if(void 0===d)return this.send_findRelated(a,c,b),this.recv_findRelated();var e=this.send_findRelated(a,c,b,!0);return this.output.getTransport().send(this,e,arguments,this.recv_findRelated)};
NoteStoreClient.prototype.send_findRelated=function(a,c,b,d){this.output.writeMessageBegin("findRelated",Thrift.MessageType.CALL,this.seqid);var e=new NoteStore_findRelated_args;e.authenticationToken=a;e.query=c;e.resultSpec=b;e.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(d)};
NoteStoreClient.prototype.recv_findRelated=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new NoteStore_findRelated_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.success)return a.success;throw"findRelated failed: unknown result";
};SyncState=function(a){this.uploaded=this.updateCount=this.fullSyncBefore=this.currentTime=null;a&&(void 0!==a.currentTime&&(this.currentTime=a.currentTime),void 0!==a.fullSyncBefore&&(this.fullSyncBefore=a.fullSyncBefore),void 0!==a.updateCount&&(this.updateCount=a.updateCount),void 0!==a.uploaded&&(this.uploaded=a.uploaded))};SyncState.prototype={};
SyncState.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.I64?this.currentTime=a.readI64().value:a.skip(b);break;case 2:b==Thrift.Type.I64?this.fullSyncBefore=a.readI64().value:a.skip(b);break;case 3:b==Thrift.Type.I32?this.updateCount=a.readI32().value:a.skip(b);break;case 4:b==Thrift.Type.I64?this.uploaded=a.readI64().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
SyncState.prototype.write=function(a){a.writeStructBegin("SyncState");null!==this.currentTime&&void 0!==this.currentTime&&(a.writeFieldBegin("currentTime",Thrift.Type.I64,1),a.writeI64(this.currentTime),a.writeFieldEnd());null!==this.fullSyncBefore&&void 0!==this.fullSyncBefore&&(a.writeFieldBegin("fullSyncBefore",Thrift.Type.I64,2),a.writeI64(this.fullSyncBefore),a.writeFieldEnd());null!==this.updateCount&&void 0!==this.updateCount&&(a.writeFieldBegin("updateCount",Thrift.Type.I32,3),a.writeI32(this.updateCount),
a.writeFieldEnd());null!==this.uploaded&&void 0!==this.uploaded&&(a.writeFieldBegin("uploaded",Thrift.Type.I64,4),a.writeI64(this.uploaded),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
SyncChunk=function(a){this.expungedLinkedNotebooks=this.linkedNotebooks=this.expungedSearches=this.expungedTags=this.expungedNotebooks=this.expungedNotes=this.resources=this.searches=this.tags=this.notebooks=this.notes=this.updateCount=this.chunkHighUSN=this.currentTime=null;a&&(void 0!==a.currentTime&&(this.currentTime=a.currentTime),void 0!==a.chunkHighUSN&&(this.chunkHighUSN=a.chunkHighUSN),void 0!==a.updateCount&&(this.updateCount=a.updateCount),void 0!==a.notes&&(this.notes=a.notes),void 0!==
a.notebooks&&(this.notebooks=a.notebooks),void 0!==a.tags&&(this.tags=a.tags),void 0!==a.searches&&(this.searches=a.searches),void 0!==a.resources&&(this.resources=a.resources),void 0!==a.expungedNotes&&(this.expungedNotes=a.expungedNotes),void 0!==a.expungedNotebooks&&(this.expungedNotebooks=a.expungedNotebooks),void 0!==a.expungedTags&&(this.expungedTags=a.expungedTags),void 0!==a.expungedSearches&&(this.expungedSearches=a.expungedSearches),void 0!==a.linkedNotebooks&&(this.linkedNotebooks=a.linkedNotebooks),
void 0!==a.expungedLinkedNotebooks&&(this.expungedLinkedNotebooks=a.expungedLinkedNotebooks))};SyncChunk.prototype={};
SyncChunk.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.I64?this.currentTime=a.readI64().value:a.skip(b);break;case 2:b==Thrift.Type.I32?this.chunkHighUSN=a.readI32().value:a.skip(b);break;case 3:b==Thrift.Type.I32?this.updateCount=a.readI32().value:a.skip(b);break;case 4:if(b==Thrift.Type.LIST){c=0;this.notes=[];c=a.readListBegin().size;for(b=0;b<c;++b){var d=null,d=new Note;d.read(a);this.notes.push(d)}a.readListEnd()}else a.skip(b);
break;case 5:if(b==Thrift.Type.LIST){c=0;this.notebooks=[];c=a.readListBegin().size;for(b=0;b<c;++b)d=null,d=new Notebook,d.read(a),this.notebooks.push(d);a.readListEnd()}else a.skip(b);break;case 6:if(b==Thrift.Type.LIST){c=0;this.tags=[];c=a.readListBegin().size;for(b=0;b<c;++b)d=null,d=new Tag,d.read(a),this.tags.push(d);a.readListEnd()}else a.skip(b);break;case 7:if(b==Thrift.Type.LIST){c=0;this.searches=[];c=a.readListBegin().size;for(b=0;b<c;++b)d=null,d=new SavedSearch,d.read(a),this.searches.push(d);
a.readListEnd()}else a.skip(b);break;case 8:if(b==Thrift.Type.LIST){c=0;this.resources=[];c=a.readListBegin().size;for(b=0;b<c;++b)d=null,d=new Resource,d.read(a),this.resources.push(d);a.readListEnd()}else a.skip(b);break;case 9:if(b==Thrift.Type.LIST){c=0;this.expungedNotes=[];c=a.readListBegin().size;for(b=0;b<c;++b)d=null,d=a.readString().value,this.expungedNotes.push(d);a.readListEnd()}else a.skip(b);break;case 10:if(b==Thrift.Type.LIST){c=0;this.expungedNotebooks=[];c=a.readListBegin().size;
for(b=0;b<c;++b)d=null,d=a.readString().value,this.expungedNotebooks.push(d);a.readListEnd()}else a.skip(b);break;case 11:if(b==Thrift.Type.LIST){c=0;this.expungedTags=[];c=a.readListBegin().size;for(b=0;b<c;++b)d=null,d=a.readString().value,this.expungedTags.push(d);a.readListEnd()}else a.skip(b);break;case 12:if(b==Thrift.Type.LIST){c=0;this.expungedSearches=[];c=a.readListBegin().size;for(b=0;b<c;++b)d=null,d=a.readString().value,this.expungedSearches.push(d);a.readListEnd()}else a.skip(b);break;
case 13:if(b==Thrift.Type.LIST){c=0;this.linkedNotebooks=[];c=a.readListBegin().size;for(b=0;b<c;++b)d=null,d=new LinkedNotebook,d.read(a),this.linkedNotebooks.push(d);a.readListEnd()}else a.skip(b);break;case 14:if(b==Thrift.Type.LIST){c=0;this.expungedLinkedNotebooks=[];c=a.readListBegin().size;for(b=0;b<c;++b)d=null,d=a.readString().value,this.expungedLinkedNotebooks.push(d);a.readListEnd()}else a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
SyncChunk.prototype.write=function(a){a.writeStructBegin("SyncChunk");null!==this.currentTime&&void 0!==this.currentTime&&(a.writeFieldBegin("currentTime",Thrift.Type.I64,1),a.writeI64(this.currentTime),a.writeFieldEnd());null!==this.chunkHighUSN&&void 0!==this.chunkHighUSN&&(a.writeFieldBegin("chunkHighUSN",Thrift.Type.I32,2),a.writeI32(this.chunkHighUSN),a.writeFieldEnd());null!==this.updateCount&&void 0!==this.updateCount&&(a.writeFieldBegin("updateCount",Thrift.Type.I32,3),a.writeI32(this.updateCount),
a.writeFieldEnd());if(null!==this.notes&&void 0!==this.notes){a.writeFieldBegin("notes",Thrift.Type.LIST,4);a.writeListBegin(Thrift.Type.STRUCT,this.notes.length);for(var c in this.notes)this.notes.hasOwnProperty(c)&&(c=this.notes[c],c.write(a));a.writeListEnd();a.writeFieldEnd()}if(null!==this.notebooks&&void 0!==this.notebooks){a.writeFieldBegin("notebooks",Thrift.Type.LIST,5);a.writeListBegin(Thrift.Type.STRUCT,this.notebooks.length);for(var b in this.notebooks)this.notebooks.hasOwnProperty(b)&&
(b=this.notebooks[b],b.write(a));a.writeListEnd();a.writeFieldEnd()}if(null!==this.tags&&void 0!==this.tags){a.writeFieldBegin("tags",Thrift.Type.LIST,6);a.writeListBegin(Thrift.Type.STRUCT,this.tags.length);for(var d in this.tags)this.tags.hasOwnProperty(d)&&(d=this.tags[d],d.write(a));a.writeListEnd();a.writeFieldEnd()}if(null!==this.searches&&void 0!==this.searches){a.writeFieldBegin("searches",Thrift.Type.LIST,7);a.writeListBegin(Thrift.Type.STRUCT,this.searches.length);for(var e in this.searches)this.searches.hasOwnProperty(e)&&
(e=this.searches[e],e.write(a));a.writeListEnd();a.writeFieldEnd()}if(null!==this.resources&&void 0!==this.resources){a.writeFieldBegin("resources",Thrift.Type.LIST,8);a.writeListBegin(Thrift.Type.STRUCT,this.resources.length);for(var f in this.resources)this.resources.hasOwnProperty(f)&&(f=this.resources[f],f.write(a));a.writeListEnd();a.writeFieldEnd()}if(null!==this.expungedNotes&&void 0!==this.expungedNotes){a.writeFieldBegin("expungedNotes",Thrift.Type.LIST,9);a.writeListBegin(Thrift.Type.STRING,
this.expungedNotes.length);for(var g in this.expungedNotes)this.expungedNotes.hasOwnProperty(g)&&(g=this.expungedNotes[g],a.writeString(g));a.writeListEnd();a.writeFieldEnd()}if(null!==this.expungedNotebooks&&void 0!==this.expungedNotebooks){a.writeFieldBegin("expungedNotebooks",Thrift.Type.LIST,10);a.writeListBegin(Thrift.Type.STRING,this.expungedNotebooks.length);for(var h in this.expungedNotebooks)this.expungedNotebooks.hasOwnProperty(h)&&(h=this.expungedNotebooks[h],a.writeString(h));a.writeListEnd();
a.writeFieldEnd()}if(null!==this.expungedTags&&void 0!==this.expungedTags){a.writeFieldBegin("expungedTags",Thrift.Type.LIST,11);a.writeListBegin(Thrift.Type.STRING,this.expungedTags.length);for(var j in this.expungedTags)this.expungedTags.hasOwnProperty(j)&&(j=this.expungedTags[j],a.writeString(j));a.writeListEnd();a.writeFieldEnd()}if(null!==this.expungedSearches&&void 0!==this.expungedSearches){a.writeFieldBegin("expungedSearches",Thrift.Type.LIST,12);a.writeListBegin(Thrift.Type.STRING,this.expungedSearches.length);
for(var k in this.expungedSearches)this.expungedSearches.hasOwnProperty(k)&&(k=this.expungedSearches[k],a.writeString(k));a.writeListEnd();a.writeFieldEnd()}if(null!==this.linkedNotebooks&&void 0!==this.linkedNotebooks){a.writeFieldBegin("linkedNotebooks",Thrift.Type.LIST,13);a.writeListBegin(Thrift.Type.STRUCT,this.linkedNotebooks.length);for(var l in this.linkedNotebooks)this.linkedNotebooks.hasOwnProperty(l)&&(l=this.linkedNotebooks[l],l.write(a));a.writeListEnd();a.writeFieldEnd()}if(null!==this.expungedLinkedNotebooks&&
void 0!==this.expungedLinkedNotebooks){a.writeFieldBegin("expungedLinkedNotebooks",Thrift.Type.LIST,14);a.writeListBegin(Thrift.Type.STRING,this.expungedLinkedNotebooks.length);for(var m in this.expungedLinkedNotebooks)this.expungedLinkedNotebooks.hasOwnProperty(m)&&(m=this.expungedLinkedNotebooks[m],a.writeString(m));a.writeListEnd();a.writeFieldEnd()}a.writeFieldStop();a.writeStructEnd()};
SyncChunkFilter=function(a){this.requireNoteContentClass=this.includeNoteResourceApplicationDataFullMap=this.includeResourceApplicationDataFullMap=this.includeNoteApplicationDataFullMap=this.includeExpunged=this.includeLinkedNotebooks=this.includeResources=this.includeSearches=this.includeTags=this.includeNotebooks=this.includeNoteAttributes=this.includeNoteResources=this.includeNotes=null;a&&(void 0!==a.includeNotes&&(this.includeNotes=a.includeNotes),void 0!==a.includeNoteResources&&(this.includeNoteResources=
a.includeNoteResources),void 0!==a.includeNoteAttributes&&(this.includeNoteAttributes=a.includeNoteAttributes),void 0!==a.includeNotebooks&&(this.includeNotebooks=a.includeNotebooks),void 0!==a.includeTags&&(this.includeTags=a.includeTags),void 0!==a.includeSearches&&(this.includeSearches=a.includeSearches),void 0!==a.includeResources&&(this.includeResources=a.includeResources),void 0!==a.includeLinkedNotebooks&&(this.includeLinkedNotebooks=a.includeLinkedNotebooks),void 0!==a.includeExpunged&&(this.includeExpunged=
a.includeExpunged),void 0!==a.includeNoteApplicationDataFullMap&&(this.includeNoteApplicationDataFullMap=a.includeNoteApplicationDataFullMap),void 0!==a.includeResourceApplicationDataFullMap&&(this.includeResourceApplicationDataFullMap=a.includeResourceApplicationDataFullMap),void 0!==a.includeNoteResourceApplicationDataFullMap&&(this.includeNoteResourceApplicationDataFullMap=a.includeNoteResourceApplicationDataFullMap),void 0!==a.requireNoteContentClass&&(this.requireNoteContentClass=a.requireNoteContentClass))};
SyncChunkFilter.prototype={};
SyncChunkFilter.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.BOOL?this.includeNotes=a.readBool().value:a.skip(b);break;case 2:b==Thrift.Type.BOOL?this.includeNoteResources=a.readBool().value:a.skip(b);break;case 3:b==Thrift.Type.BOOL?this.includeNoteAttributes=a.readBool().value:a.skip(b);break;case 4:b==Thrift.Type.BOOL?this.includeNotebooks=a.readBool().value:a.skip(b);break;case 5:b==Thrift.Type.BOOL?
this.includeTags=a.readBool().value:a.skip(b);break;case 6:b==Thrift.Type.BOOL?this.includeSearches=a.readBool().value:a.skip(b);break;case 7:b==Thrift.Type.BOOL?this.includeResources=a.readBool().value:a.skip(b);break;case 8:b==Thrift.Type.BOOL?this.includeLinkedNotebooks=a.readBool().value:a.skip(b);break;case 9:b==Thrift.Type.BOOL?this.includeExpunged=a.readBool().value:a.skip(b);break;case 10:b==Thrift.Type.BOOL?this.includeNoteApplicationDataFullMap=a.readBool().value:a.skip(b);break;case 12:b==
Thrift.Type.BOOL?this.includeResourceApplicationDataFullMap=a.readBool().value:a.skip(b);break;case 13:b==Thrift.Type.BOOL?this.includeNoteResourceApplicationDataFullMap=a.readBool().value:a.skip(b);break;case 11:b==Thrift.Type.STRING?this.requireNoteContentClass=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
SyncChunkFilter.prototype.write=function(a){a.writeStructBegin("SyncChunkFilter");null!==this.includeNotes&&void 0!==this.includeNotes&&(a.writeFieldBegin("includeNotes",Thrift.Type.BOOL,1),a.writeBool(this.includeNotes),a.writeFieldEnd());null!==this.includeNoteResources&&void 0!==this.includeNoteResources&&(a.writeFieldBegin("includeNoteResources",Thrift.Type.BOOL,2),a.writeBool(this.includeNoteResources),a.writeFieldEnd());null!==this.includeNoteAttributes&&void 0!==this.includeNoteAttributes&&
(a.writeFieldBegin("includeNoteAttributes",Thrift.Type.BOOL,3),a.writeBool(this.includeNoteAttributes),a.writeFieldEnd());null!==this.includeNotebooks&&void 0!==this.includeNotebooks&&(a.writeFieldBegin("includeNotebooks",Thrift.Type.BOOL,4),a.writeBool(this.includeNotebooks),a.writeFieldEnd());null!==this.includeTags&&void 0!==this.includeTags&&(a.writeFieldBegin("includeTags",Thrift.Type.BOOL,5),a.writeBool(this.includeTags),a.writeFieldEnd());null!==this.includeSearches&&void 0!==this.includeSearches&&
(a.writeFieldBegin("includeSearches",Thrift.Type.BOOL,6),a.writeBool(this.includeSearches),a.writeFieldEnd());null!==this.includeResources&&void 0!==this.includeResources&&(a.writeFieldBegin("includeResources",Thrift.Type.BOOL,7),a.writeBool(this.includeResources),a.writeFieldEnd());null!==this.includeLinkedNotebooks&&void 0!==this.includeLinkedNotebooks&&(a.writeFieldBegin("includeLinkedNotebooks",Thrift.Type.BOOL,8),a.writeBool(this.includeLinkedNotebooks),a.writeFieldEnd());null!==this.includeExpunged&&
void 0!==this.includeExpunged&&(a.writeFieldBegin("includeExpunged",Thrift.Type.BOOL,9),a.writeBool(this.includeExpunged),a.writeFieldEnd());null!==this.includeNoteApplicationDataFullMap&&void 0!==this.includeNoteApplicationDataFullMap&&(a.writeFieldBegin("includeNoteApplicationDataFullMap",Thrift.Type.BOOL,10),a.writeBool(this.includeNoteApplicationDataFullMap),a.writeFieldEnd());null!==this.includeResourceApplicationDataFullMap&&void 0!==this.includeResourceApplicationDataFullMap&&(a.writeFieldBegin("includeResourceApplicationDataFullMap",
Thrift.Type.BOOL,12),a.writeBool(this.includeResourceApplicationDataFullMap),a.writeFieldEnd());null!==this.includeNoteResourceApplicationDataFullMap&&void 0!==this.includeNoteResourceApplicationDataFullMap&&(a.writeFieldBegin("includeNoteResourceApplicationDataFullMap",Thrift.Type.BOOL,13),a.writeBool(this.includeNoteResourceApplicationDataFullMap),a.writeFieldEnd());null!==this.requireNoteContentClass&&void 0!==this.requireNoteContentClass&&(a.writeFieldBegin("requireNoteContentClass",Thrift.Type.STRING,
11),a.writeString(this.requireNoteContentClass),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteFilter=function(a){this.emphasized=this.inactive=this.timeZone=this.tagGuids=this.notebookGuid=this.words=this.ascending=this.order=null;a&&(void 0!==a.order&&(this.order=a.order),void 0!==a.ascending&&(this.ascending=a.ascending),void 0!==a.words&&(this.words=a.words),void 0!==a.notebookGuid&&(this.notebookGuid=a.notebookGuid),void 0!==a.tagGuids&&(this.tagGuids=a.tagGuids),void 0!==a.timeZone&&(this.timeZone=a.timeZone),void 0!==a.inactive&&(this.inactive=a.inactive),void 0!==a.emphasized&&
(this.emphasized=a.emphasized))};NoteFilter.prototype={};
NoteFilter.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.I32?this.order=a.readI32().value:a.skip(b);break;case 2:b==Thrift.Type.BOOL?this.ascending=a.readBool().value:a.skip(b);break;case 3:b==Thrift.Type.STRING?this.words=a.readString().value:a.skip(b);break;case 4:b==Thrift.Type.STRING?this.notebookGuid=a.readString().value:a.skip(b);break;case 5:if(b==Thrift.Type.LIST){c=0;this.tagGuids=
[];c=a.readListBegin().size;for(b=0;b<c;++b){var d=null,d=a.readString().value;this.tagGuids.push(d)}a.readListEnd()}else a.skip(b);break;case 6:b==Thrift.Type.STRING?this.timeZone=a.readString().value:a.skip(b);break;case 7:b==Thrift.Type.BOOL?this.inactive=a.readBool().value:a.skip(b);break;case 8:b==Thrift.Type.STRING?this.emphasized=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteFilter.prototype.write=function(a){a.writeStructBegin("NoteFilter");null!==this.order&&void 0!==this.order&&(a.writeFieldBegin("order",Thrift.Type.I32,1),a.writeI32(this.order),a.writeFieldEnd());null!==this.ascending&&void 0!==this.ascending&&(a.writeFieldBegin("ascending",Thrift.Type.BOOL,2),a.writeBool(this.ascending),a.writeFieldEnd());null!==this.words&&void 0!==this.words&&(a.writeFieldBegin("words",Thrift.Type.STRING,3),a.writeString(this.words),a.writeFieldEnd());null!==this.notebookGuid&&
void 0!==this.notebookGuid&&(a.writeFieldBegin("notebookGuid",Thrift.Type.STRING,4),a.writeString(this.notebookGuid),a.writeFieldEnd());if(null!==this.tagGuids&&void 0!==this.tagGuids){a.writeFieldBegin("tagGuids",Thrift.Type.LIST,5);a.writeListBegin(Thrift.Type.STRING,this.tagGuids.length);for(var c in this.tagGuids)this.tagGuids.hasOwnProperty(c)&&(c=this.tagGuids[c],a.writeString(c));a.writeListEnd();a.writeFieldEnd()}null!==this.timeZone&&void 0!==this.timeZone&&(a.writeFieldBegin("timeZone",
Thrift.Type.STRING,6),a.writeString(this.timeZone),a.writeFieldEnd());null!==this.inactive&&void 0!==this.inactive&&(a.writeFieldBegin("inactive",Thrift.Type.BOOL,7),a.writeBool(this.inactive),a.writeFieldEnd());null!==this.emphasized&&void 0!==this.emphasized&&(a.writeFieldBegin("emphasized",Thrift.Type.STRING,8),a.writeString(this.emphasized),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteList=function(a){this.updateCount=this.searchedWords=this.stoppedWords=this.notes=this.totalNotes=this.startIndex=null;a&&(void 0!==a.startIndex&&(this.startIndex=a.startIndex),void 0!==a.totalNotes&&(this.totalNotes=a.totalNotes),void 0!==a.notes&&(this.notes=a.notes),void 0!==a.stoppedWords&&(this.stoppedWords=a.stoppedWords),void 0!==a.searchedWords&&(this.searchedWords=a.searchedWords),void 0!==a.updateCount&&(this.updateCount=a.updateCount))};NoteList.prototype={};
NoteList.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.I32?this.startIndex=a.readI32().value:a.skip(b);break;case 2:b==Thrift.Type.I32?this.totalNotes=a.readI32().value:a.skip(b);break;case 3:if(b==Thrift.Type.LIST){c=0;this.notes=[];c=a.readListBegin().size;for(b=0;b<c;++b){var d=null,d=new Note;d.read(a);this.notes.push(d)}a.readListEnd()}else a.skip(b);break;case 4:if(b==Thrift.Type.LIST){c=
0;this.stoppedWords=[];c=a.readListBegin().size;for(b=0;b<c;++b)d=null,d=a.readString().value,this.stoppedWords.push(d);a.readListEnd()}else a.skip(b);break;case 5:if(b==Thrift.Type.LIST){c=0;this.searchedWords=[];c=a.readListBegin().size;for(b=0;b<c;++b)d=null,d=a.readString().value,this.searchedWords.push(d);a.readListEnd()}else a.skip(b);break;case 6:b==Thrift.Type.I32?this.updateCount=a.readI32().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteList.prototype.write=function(a){a.writeStructBegin("NoteList");null!==this.startIndex&&void 0!==this.startIndex&&(a.writeFieldBegin("startIndex",Thrift.Type.I32,1),a.writeI32(this.startIndex),a.writeFieldEnd());null!==this.totalNotes&&void 0!==this.totalNotes&&(a.writeFieldBegin("totalNotes",Thrift.Type.I32,2),a.writeI32(this.totalNotes),a.writeFieldEnd());if(null!==this.notes&&void 0!==this.notes){a.writeFieldBegin("notes",Thrift.Type.LIST,3);a.writeListBegin(Thrift.Type.STRUCT,this.notes.length);
for(var c in this.notes)this.notes.hasOwnProperty(c)&&(c=this.notes[c],c.write(a));a.writeListEnd();a.writeFieldEnd()}if(null!==this.stoppedWords&&void 0!==this.stoppedWords){a.writeFieldBegin("stoppedWords",Thrift.Type.LIST,4);a.writeListBegin(Thrift.Type.STRING,this.stoppedWords.length);for(var b in this.stoppedWords)this.stoppedWords.hasOwnProperty(b)&&(b=this.stoppedWords[b],a.writeString(b));a.writeListEnd();a.writeFieldEnd()}if(null!==this.searchedWords&&void 0!==this.searchedWords){a.writeFieldBegin("searchedWords",
Thrift.Type.LIST,5);a.writeListBegin(Thrift.Type.STRING,this.searchedWords.length);for(var d in this.searchedWords)this.searchedWords.hasOwnProperty(d)&&(d=this.searchedWords[d],a.writeString(d));a.writeListEnd();a.writeFieldEnd()}null!==this.updateCount&&void 0!==this.updateCount&&(a.writeFieldBegin("updateCount",Thrift.Type.I32,6),a.writeI32(this.updateCount),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteMetadata=function(a){this.largestResourceSize=this.largestResourceMime=this.attributes=this.tagGuids=this.notebookGuid=this.updateSequenceNum=this.deleted=this.updated=this.created=this.contentLength=this.title=this.guid=null;a&&(void 0!==a.guid&&(this.guid=a.guid),void 0!==a.title&&(this.title=a.title),void 0!==a.contentLength&&(this.contentLength=a.contentLength),void 0!==a.created&&(this.created=a.created),void 0!==a.updated&&(this.updated=a.updated),void 0!==a.deleted&&(this.deleted=a.deleted),
void 0!==a.updateSequenceNum&&(this.updateSequenceNum=a.updateSequenceNum),void 0!==a.notebookGuid&&(this.notebookGuid=a.notebookGuid),void 0!==a.tagGuids&&(this.tagGuids=a.tagGuids),void 0!==a.attributes&&(this.attributes=a.attributes),void 0!==a.largestResourceMime&&(this.largestResourceMime=a.largestResourceMime),void 0!==a.largestResourceSize&&(this.largestResourceSize=a.largestResourceSize))};NoteMetadata.prototype={};
NoteMetadata.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.title=a.readString().value:a.skip(b);break;case 5:b==Thrift.Type.I32?this.contentLength=a.readI32().value:a.skip(b);break;case 6:b==Thrift.Type.I64?this.created=a.readI64().value:a.skip(b);break;case 7:b==Thrift.Type.I64?this.updated=a.readI64().value:
a.skip(b);break;case 8:b==Thrift.Type.I64?this.deleted=a.readI64().value:a.skip(b);break;case 10:b==Thrift.Type.I32?this.updateSequenceNum=a.readI32().value:a.skip(b);break;case 11:b==Thrift.Type.STRING?this.notebookGuid=a.readString().value:a.skip(b);break;case 12:if(b==Thrift.Type.LIST){c=0;this.tagGuids=[];c=a.readListBegin().size;for(b=0;b<c;++b){var d=null,d=a.readString().value;this.tagGuids.push(d)}a.readListEnd()}else a.skip(b);break;case 14:b==Thrift.Type.STRUCT?(this.attributes=new NoteAttributes,
this.attributes.read(a)):a.skip(b);break;case 20:b==Thrift.Type.STRING?this.largestResourceMime=a.readString().value:a.skip(b);break;case 21:b==Thrift.Type.I32?this.largestResourceSize=a.readI32().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteMetadata.prototype.write=function(a){a.writeStructBegin("NoteMetadata");null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,1),a.writeString(this.guid),a.writeFieldEnd());null!==this.title&&void 0!==this.title&&(a.writeFieldBegin("title",Thrift.Type.STRING,2),a.writeString(this.title),a.writeFieldEnd());null!==this.contentLength&&void 0!==this.contentLength&&(a.writeFieldBegin("contentLength",Thrift.Type.I32,5),a.writeI32(this.contentLength),a.writeFieldEnd());null!==
this.created&&void 0!==this.created&&(a.writeFieldBegin("created",Thrift.Type.I64,6),a.writeI64(this.created),a.writeFieldEnd());null!==this.updated&&void 0!==this.updated&&(a.writeFieldBegin("updated",Thrift.Type.I64,7),a.writeI64(this.updated),a.writeFieldEnd());null!==this.deleted&&void 0!==this.deleted&&(a.writeFieldBegin("deleted",Thrift.Type.I64,8),a.writeI64(this.deleted),a.writeFieldEnd());null!==this.updateSequenceNum&&void 0!==this.updateSequenceNum&&(a.writeFieldBegin("updateSequenceNum",
Thrift.Type.I32,10),a.writeI32(this.updateSequenceNum),a.writeFieldEnd());null!==this.notebookGuid&&void 0!==this.notebookGuid&&(a.writeFieldBegin("notebookGuid",Thrift.Type.STRING,11),a.writeString(this.notebookGuid),a.writeFieldEnd());if(null!==this.tagGuids&&void 0!==this.tagGuids){a.writeFieldBegin("tagGuids",Thrift.Type.LIST,12);a.writeListBegin(Thrift.Type.STRING,this.tagGuids.length);for(var c in this.tagGuids)this.tagGuids.hasOwnProperty(c)&&(c=this.tagGuids[c],a.writeString(c));a.writeListEnd();
a.writeFieldEnd()}null!==this.attributes&&void 0!==this.attributes&&(a.writeFieldBegin("attributes",Thrift.Type.STRUCT,14),this.attributes.write(a),a.writeFieldEnd());null!==this.largestResourceMime&&void 0!==this.largestResourceMime&&(a.writeFieldBegin("largestResourceMime",Thrift.Type.STRING,20),a.writeString(this.largestResourceMime),a.writeFieldEnd());null!==this.largestResourceSize&&void 0!==this.largestResourceSize&&(a.writeFieldBegin("largestResourceSize",Thrift.Type.I32,21),a.writeI32(this.largestResourceSize),
a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NotesMetadataList=function(a){this.updateCount=this.searchedWords=this.stoppedWords=this.notes=this.totalNotes=this.startIndex=null;a&&(void 0!==a.startIndex&&(this.startIndex=a.startIndex),void 0!==a.totalNotes&&(this.totalNotes=a.totalNotes),void 0!==a.notes&&(this.notes=a.notes),void 0!==a.stoppedWords&&(this.stoppedWords=a.stoppedWords),void 0!==a.searchedWords&&(this.searchedWords=a.searchedWords),void 0!==a.updateCount&&(this.updateCount=a.updateCount))};NotesMetadataList.prototype={};
NotesMetadataList.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.I32?this.startIndex=a.readI32().value:a.skip(b);break;case 2:b==Thrift.Type.I32?this.totalNotes=a.readI32().value:a.skip(b);break;case 3:if(b==Thrift.Type.LIST){c=0;this.notes=[];c=a.readListBegin().size;for(b=0;b<c;++b){var d=null,d=new NoteMetadata;d.read(a);this.notes.push(d)}a.readListEnd()}else a.skip(b);break;case 4:if(b==
Thrift.Type.LIST){c=0;this.stoppedWords=[];c=a.readListBegin().size;for(b=0;b<c;++b)d=null,d=a.readString().value,this.stoppedWords.push(d);a.readListEnd()}else a.skip(b);break;case 5:if(b==Thrift.Type.LIST){c=0;this.searchedWords=[];c=a.readListBegin().size;for(b=0;b<c;++b)d=null,d=a.readString().value,this.searchedWords.push(d);a.readListEnd()}else a.skip(b);break;case 6:b==Thrift.Type.I32?this.updateCount=a.readI32().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NotesMetadataList.prototype.write=function(a){a.writeStructBegin("NotesMetadataList");null!==this.startIndex&&void 0!==this.startIndex&&(a.writeFieldBegin("startIndex",Thrift.Type.I32,1),a.writeI32(this.startIndex),a.writeFieldEnd());null!==this.totalNotes&&void 0!==this.totalNotes&&(a.writeFieldBegin("totalNotes",Thrift.Type.I32,2),a.writeI32(this.totalNotes),a.writeFieldEnd());if(null!==this.notes&&void 0!==this.notes){a.writeFieldBegin("notes",Thrift.Type.LIST,3);a.writeListBegin(Thrift.Type.STRUCT,
this.notes.length);for(var c in this.notes)this.notes.hasOwnProperty(c)&&(c=this.notes[c],c.write(a));a.writeListEnd();a.writeFieldEnd()}if(null!==this.stoppedWords&&void 0!==this.stoppedWords){a.writeFieldBegin("stoppedWords",Thrift.Type.LIST,4);a.writeListBegin(Thrift.Type.STRING,this.stoppedWords.length);for(var b in this.stoppedWords)this.stoppedWords.hasOwnProperty(b)&&(b=this.stoppedWords[b],a.writeString(b));a.writeListEnd();a.writeFieldEnd()}if(null!==this.searchedWords&&void 0!==this.searchedWords){a.writeFieldBegin("searchedWords",
Thrift.Type.LIST,5);a.writeListBegin(Thrift.Type.STRING,this.searchedWords.length);for(var d in this.searchedWords)this.searchedWords.hasOwnProperty(d)&&(d=this.searchedWords[d],a.writeString(d));a.writeListEnd();a.writeFieldEnd()}null!==this.updateCount&&void 0!==this.updateCount&&(a.writeFieldBegin("updateCount",Thrift.Type.I32,6),a.writeI32(this.updateCount),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NotesMetadataResultSpec=function(a){this.includeLargestResourceSize=this.includeLargestResourceMime=this.includeAttributes=this.includeTagGuids=this.includeNotebookGuid=this.includeUpdateSequenceNum=this.includeDeleted=this.includeUpdated=this.includeCreated=this.includeContentLength=this.includeTitle=null;a&&(void 0!==a.includeTitle&&(this.includeTitle=a.includeTitle),void 0!==a.includeContentLength&&(this.includeContentLength=a.includeContentLength),void 0!==a.includeCreated&&(this.includeCreated=
a.includeCreated),void 0!==a.includeUpdated&&(this.includeUpdated=a.includeUpdated),void 0!==a.includeDeleted&&(this.includeDeleted=a.includeDeleted),void 0!==a.includeUpdateSequenceNum&&(this.includeUpdateSequenceNum=a.includeUpdateSequenceNum),void 0!==a.includeNotebookGuid&&(this.includeNotebookGuid=a.includeNotebookGuid),void 0!==a.includeTagGuids&&(this.includeTagGuids=a.includeTagGuids),void 0!==a.includeAttributes&&(this.includeAttributes=a.includeAttributes),void 0!==a.includeLargestResourceMime&&
(this.includeLargestResourceMime=a.includeLargestResourceMime),void 0!==a.includeLargestResourceSize&&(this.includeLargestResourceSize=a.includeLargestResourceSize))};NotesMetadataResultSpec.prototype={};
NotesMetadataResultSpec.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 2:b==Thrift.Type.BOOL?this.includeTitle=a.readBool().value:a.skip(b);break;case 5:b==Thrift.Type.BOOL?this.includeContentLength=a.readBool().value:a.skip(b);break;case 6:b==Thrift.Type.BOOL?this.includeCreated=a.readBool().value:a.skip(b);break;case 7:b==Thrift.Type.BOOL?this.includeUpdated=a.readBool().value:a.skip(b);break;case 8:b==Thrift.Type.BOOL?
this.includeDeleted=a.readBool().value:a.skip(b);break;case 10:b==Thrift.Type.BOOL?this.includeUpdateSequenceNum=a.readBool().value:a.skip(b);break;case 11:b==Thrift.Type.BOOL?this.includeNotebookGuid=a.readBool().value:a.skip(b);break;case 12:b==Thrift.Type.BOOL?this.includeTagGuids=a.readBool().value:a.skip(b);break;case 14:b==Thrift.Type.BOOL?this.includeAttributes=a.readBool().value:a.skip(b);break;case 20:b==Thrift.Type.BOOL?this.includeLargestResourceMime=a.readBool().value:a.skip(b);break;
case 21:b==Thrift.Type.BOOL?this.includeLargestResourceSize=a.readBool().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NotesMetadataResultSpec.prototype.write=function(a){a.writeStructBegin("NotesMetadataResultSpec");null!==this.includeTitle&&void 0!==this.includeTitle&&(a.writeFieldBegin("includeTitle",Thrift.Type.BOOL,2),a.writeBool(this.includeTitle),a.writeFieldEnd());null!==this.includeContentLength&&void 0!==this.includeContentLength&&(a.writeFieldBegin("includeContentLength",Thrift.Type.BOOL,5),a.writeBool(this.includeContentLength),a.writeFieldEnd());null!==this.includeCreated&&void 0!==this.includeCreated&&
(a.writeFieldBegin("includeCreated",Thrift.Type.BOOL,6),a.writeBool(this.includeCreated),a.writeFieldEnd());null!==this.includeUpdated&&void 0!==this.includeUpdated&&(a.writeFieldBegin("includeUpdated",Thrift.Type.BOOL,7),a.writeBool(this.includeUpdated),a.writeFieldEnd());null!==this.includeDeleted&&void 0!==this.includeDeleted&&(a.writeFieldBegin("includeDeleted",Thrift.Type.BOOL,8),a.writeBool(this.includeDeleted),a.writeFieldEnd());null!==this.includeUpdateSequenceNum&&void 0!==this.includeUpdateSequenceNum&&
(a.writeFieldBegin("includeUpdateSequenceNum",Thrift.Type.BOOL,10),a.writeBool(this.includeUpdateSequenceNum),a.writeFieldEnd());null!==this.includeNotebookGuid&&void 0!==this.includeNotebookGuid&&(a.writeFieldBegin("includeNotebookGuid",Thrift.Type.BOOL,11),a.writeBool(this.includeNotebookGuid),a.writeFieldEnd());null!==this.includeTagGuids&&void 0!==this.includeTagGuids&&(a.writeFieldBegin("includeTagGuids",Thrift.Type.BOOL,12),a.writeBool(this.includeTagGuids),a.writeFieldEnd());null!==this.includeAttributes&&
void 0!==this.includeAttributes&&(a.writeFieldBegin("includeAttributes",Thrift.Type.BOOL,14),a.writeBool(this.includeAttributes),a.writeFieldEnd());null!==this.includeLargestResourceMime&&void 0!==this.includeLargestResourceMime&&(a.writeFieldBegin("includeLargestResourceMime",Thrift.Type.BOOL,20),a.writeBool(this.includeLargestResourceMime),a.writeFieldEnd());null!==this.includeLargestResourceSize&&void 0!==this.includeLargestResourceSize&&(a.writeFieldBegin("includeLargestResourceSize",Thrift.Type.BOOL,
21),a.writeBool(this.includeLargestResourceSize),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};NoteCollectionCounts=function(a){this.trashCount=this.tagCounts=this.notebookCounts=null;a&&(void 0!==a.notebookCounts&&(this.notebookCounts=a.notebookCounts),void 0!==a.tagCounts&&(this.tagCounts=a.tagCounts),void 0!==a.trashCount&&(this.trashCount=a.trashCount))};NoteCollectionCounts.prototype={};
NoteCollectionCounts.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:if(b==Thrift.Type.MAP){c=0;this.notebookCounts={};c=a.readMapBegin().size;for(b=0;b<c;++b){0<b&&a.rstack.length>a.rpos[a.rpos.length-1]+1&&a.rstack.pop();var d=null,e=null,d=a.readString().value,e=a.readI32().value;this.notebookCounts[d]=e}a.readMapEnd()}else a.skip(b);break;case 2:if(b==Thrift.Type.MAP){c=0;this.tagCounts={};c=a.readMapBegin().size;
for(b=0;b<c;++b)0<b&&a.rstack.length>a.rpos[a.rpos.length-1]+1&&a.rstack.pop(),e=d=null,d=a.readString().value,e=a.readI32().value,this.tagCounts[d]=e;a.readMapEnd()}else a.skip(b);break;case 3:b==Thrift.Type.I32?this.trashCount=a.readI32().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteCollectionCounts.prototype.write=function(a){a.writeStructBegin("NoteCollectionCounts");if(null!==this.notebookCounts&&void 0!==this.notebookCounts){a.writeFieldBegin("notebookCounts",Thrift.Type.MAP,1);a.writeMapBegin(Thrift.Type.STRING,Thrift.Type.I32,Thrift.objectLength(this.notebookCounts));for(var c in this.notebookCounts)if(this.notebookCounts.hasOwnProperty(c)){var b=this.notebookCounts[c];a.writeString(c);a.writeI32(b)}a.writeMapEnd();a.writeFieldEnd()}if(null!==this.tagCounts&&void 0!==
this.tagCounts){a.writeFieldBegin("tagCounts",Thrift.Type.MAP,2);a.writeMapBegin(Thrift.Type.STRING,Thrift.Type.I32,Thrift.objectLength(this.tagCounts));for(var d in this.tagCounts)this.tagCounts.hasOwnProperty(d)&&(c=this.tagCounts[d],a.writeString(d),a.writeI32(c));a.writeMapEnd();a.writeFieldEnd()}null!==this.trashCount&&void 0!==this.trashCount&&(a.writeFieldBegin("trashCount",Thrift.Type.I32,3),a.writeI32(this.trashCount),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteEmailParameters=function(a){this.message=this.subject=this.ccAddresses=this.toAddresses=this.note=this.guid=null;a&&(void 0!==a.guid&&(this.guid=a.guid),void 0!==a.note&&(this.note=a.note),void 0!==a.toAddresses&&(this.toAddresses=a.toAddresses),void 0!==a.ccAddresses&&(this.ccAddresses=a.ccAddresses),void 0!==a.subject&&(this.subject=a.subject),void 0!==a.message&&(this.message=a.message))};NoteEmailParameters.prototype={};
NoteEmailParameters.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.note=new Note,this.note.read(a)):a.skip(b);break;case 3:if(b==Thrift.Type.LIST){c=0;this.toAddresses=[];c=a.readListBegin().size;for(b=0;b<c;++b){var d=null,d=a.readString().value;this.toAddresses.push(d)}a.readListEnd()}else a.skip(b);break;
case 4:if(b==Thrift.Type.LIST){c=0;this.ccAddresses=[];c=a.readListBegin().size;for(b=0;b<c;++b)d=null,d=a.readString().value,this.ccAddresses.push(d);a.readListEnd()}else a.skip(b);break;case 5:b==Thrift.Type.STRING?this.subject=a.readString().value:a.skip(b);break;case 6:b==Thrift.Type.STRING?this.message=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteEmailParameters.prototype.write=function(a){a.writeStructBegin("NoteEmailParameters");null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,1),a.writeString(this.guid),a.writeFieldEnd());null!==this.note&&void 0!==this.note&&(a.writeFieldBegin("note",Thrift.Type.STRUCT,2),this.note.write(a),a.writeFieldEnd());if(null!==this.toAddresses&&void 0!==this.toAddresses){a.writeFieldBegin("toAddresses",Thrift.Type.LIST,3);a.writeListBegin(Thrift.Type.STRING,this.toAddresses.length);
for(var c in this.toAddresses)this.toAddresses.hasOwnProperty(c)&&(c=this.toAddresses[c],a.writeString(c));a.writeListEnd();a.writeFieldEnd()}if(null!==this.ccAddresses&&void 0!==this.ccAddresses){a.writeFieldBegin("ccAddresses",Thrift.Type.LIST,4);a.writeListBegin(Thrift.Type.STRING,this.ccAddresses.length);for(var b in this.ccAddresses)this.ccAddresses.hasOwnProperty(b)&&(b=this.ccAddresses[b],a.writeString(b));a.writeListEnd();a.writeFieldEnd()}null!==this.subject&&void 0!==this.subject&&(a.writeFieldBegin("subject",
Thrift.Type.STRING,5),a.writeString(this.subject),a.writeFieldEnd());null!==this.message&&void 0!==this.message&&(a.writeFieldBegin("message",Thrift.Type.STRING,6),a.writeString(this.message),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteVersionId=function(a){this.title=this.saved=this.updated=this.updateSequenceNum=null;a&&(void 0!==a.updateSequenceNum&&(this.updateSequenceNum=a.updateSequenceNum),void 0!==a.updated&&(this.updated=a.updated),void 0!==a.saved&&(this.saved=a.saved),void 0!==a.title&&(this.title=a.title))};NoteVersionId.prototype={};
NoteVersionId.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.I32?this.updateSequenceNum=a.readI32().value:a.skip(b);break;case 2:b==Thrift.Type.I64?this.updated=a.readI64().value:a.skip(b);break;case 3:b==Thrift.Type.I64?this.saved=a.readI64().value:a.skip(b);break;case 4:b==Thrift.Type.STRING?this.title=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteVersionId.prototype.write=function(a){a.writeStructBegin("NoteVersionId");null!==this.updateSequenceNum&&void 0!==this.updateSequenceNum&&(a.writeFieldBegin("updateSequenceNum",Thrift.Type.I32,1),a.writeI32(this.updateSequenceNum),a.writeFieldEnd());null!==this.updated&&void 0!==this.updated&&(a.writeFieldBegin("updated",Thrift.Type.I64,2),a.writeI64(this.updated),a.writeFieldEnd());null!==this.saved&&void 0!==this.saved&&(a.writeFieldBegin("saved",Thrift.Type.I64,3),a.writeI64(this.saved),a.writeFieldEnd());
null!==this.title&&void 0!==this.title&&(a.writeFieldBegin("title",Thrift.Type.STRING,4),a.writeString(this.title),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};ClientUsageMetrics=function(a){this.sessions=null;a&&void 0!==a.sessions&&(this.sessions=a.sessions)};ClientUsageMetrics.prototype={};
ClientUsageMetrics.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.I32?this.sessions=a.readI32().value:a.skip(b);break;case 0:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
ClientUsageMetrics.prototype.write=function(a){a.writeStructBegin("ClientUsageMetrics");null!==this.sessions&&void 0!==this.sessions&&(a.writeFieldBegin("sessions",Thrift.Type.I32,1),a.writeI32(this.sessions),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
RelatedQuery=function(a){this.referenceUri=this.filter=this.plainText=this.noteGuid=null;a&&(void 0!==a.noteGuid&&(this.noteGuid=a.noteGuid),void 0!==a.plainText&&(this.plainText=a.plainText),void 0!==a.filter&&(this.filter=a.filter),void 0!==a.referenceUri&&(this.referenceUri=a.referenceUri))};RelatedQuery.prototype={};
RelatedQuery.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.noteGuid=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.plainText=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.STRUCT?(this.filter=new NoteFilter,this.filter.read(a)):a.skip(b);break;case 4:b==Thrift.Type.STRING?this.referenceUri=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
RelatedQuery.prototype.write=function(a){a.writeStructBegin("RelatedQuery");null!==this.noteGuid&&void 0!==this.noteGuid&&(a.writeFieldBegin("noteGuid",Thrift.Type.STRING,1),a.writeString(this.noteGuid),a.writeFieldEnd());null!==this.plainText&&void 0!==this.plainText&&(a.writeFieldBegin("plainText",Thrift.Type.STRING,2),a.writeString(this.plainText),a.writeFieldEnd());null!==this.filter&&void 0!==this.filter&&(a.writeFieldBegin("filter",Thrift.Type.STRUCT,3),this.filter.write(a),a.writeFieldEnd());
null!==this.referenceUri&&void 0!==this.referenceUri&&(a.writeFieldBegin("referenceUri",Thrift.Type.STRING,4),a.writeString(this.referenceUri),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};RelatedResult=function(a){this.containingNotebooks=this.tags=this.notebooks=this.notes=null;a&&(void 0!==a.notes&&(this.notes=a.notes),void 0!==a.notebooks&&(this.notebooks=a.notebooks),void 0!==a.tags&&(this.tags=a.tags),void 0!==a.containingNotebooks&&(this.containingNotebooks=a.containingNotebooks))};
RelatedResult.prototype={};
RelatedResult.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:if(b==Thrift.Type.LIST){c=0;this.notes=[];c=a.readListBegin().size;for(b=0;b<c;++b){var d=null,d=new Note;d.read(a);this.notes.push(d)}a.readListEnd()}else a.skip(b);break;case 2:if(b==Thrift.Type.LIST){c=0;this.notebooks=[];c=a.readListBegin().size;for(b=0;b<c;++b)d=null,d=new Notebook,d.read(a),this.notebooks.push(d);a.readListEnd()}else a.skip(b);
break;case 3:if(b==Thrift.Type.LIST){c=0;this.tags=[];c=a.readListBegin().size;for(b=0;b<c;++b)d=null,d=new Tag,d.read(a),this.tags.push(d);a.readListEnd()}else a.skip(b);break;case 4:if(b==Thrift.Type.LIST){c=0;this.containingNotebooks=[];c=a.readListBegin().size;for(b=0;b<c;++b)d=null,d=new NotebookDescriptor,d.read(a),this.containingNotebooks.push(d);a.readListEnd()}else a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
RelatedResult.prototype.write=function(a){a.writeStructBegin("RelatedResult");if(null!==this.notes&&void 0!==this.notes){a.writeFieldBegin("notes",Thrift.Type.LIST,1);a.writeListBegin(Thrift.Type.STRUCT,this.notes.length);for(var c in this.notes)this.notes.hasOwnProperty(c)&&(c=this.notes[c],c.write(a));a.writeListEnd();a.writeFieldEnd()}if(null!==this.notebooks&&void 0!==this.notebooks){a.writeFieldBegin("notebooks",Thrift.Type.LIST,2);a.writeListBegin(Thrift.Type.STRUCT,this.notebooks.length);for(var b in this.notebooks)this.notebooks.hasOwnProperty(b)&&
(b=this.notebooks[b],b.write(a));a.writeListEnd();a.writeFieldEnd()}if(null!==this.tags&&void 0!==this.tags){a.writeFieldBegin("tags",Thrift.Type.LIST,3);a.writeListBegin(Thrift.Type.STRUCT,this.tags.length);for(var d in this.tags)this.tags.hasOwnProperty(d)&&(d=this.tags[d],d.write(a));a.writeListEnd();a.writeFieldEnd()}if(null!==this.containingNotebooks&&void 0!==this.containingNotebooks){a.writeFieldBegin("containingNotebooks",Thrift.Type.LIST,4);a.writeListBegin(Thrift.Type.STRUCT,this.containingNotebooks.length);
for(var e in this.containingNotebooks)this.containingNotebooks.hasOwnProperty(e)&&(e=this.containingNotebooks[e],e.write(a));a.writeListEnd();a.writeFieldEnd()}a.writeFieldStop();a.writeStructEnd()};
RelatedResultSpec=function(a){this.includeContainingNotebooks=this.writableNotebooksOnly=this.maxTags=this.maxNotebooks=this.maxNotes=null;a&&(void 0!==a.maxNotes&&(this.maxNotes=a.maxNotes),void 0!==a.maxNotebooks&&(this.maxNotebooks=a.maxNotebooks),void 0!==a.maxTags&&(this.maxTags=a.maxTags),void 0!==a.writableNotebooksOnly&&(this.writableNotebooksOnly=a.writableNotebooksOnly),void 0!==a.includeContainingNotebooks&&(this.includeContainingNotebooks=a.includeContainingNotebooks))};
RelatedResultSpec.prototype={};
RelatedResultSpec.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.I32?this.maxNotes=a.readI32().value:a.skip(b);break;case 2:b==Thrift.Type.I32?this.maxNotebooks=a.readI32().value:a.skip(b);break;case 3:b==Thrift.Type.I32?this.maxTags=a.readI32().value:a.skip(b);break;case 4:b==Thrift.Type.BOOL?this.writableNotebooksOnly=a.readBool().value:a.skip(b);break;case 5:b==Thrift.Type.BOOL?this.includeContainingNotebooks=
a.readBool().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
RelatedResultSpec.prototype.write=function(a){a.writeStructBegin("RelatedResultSpec");null!==this.maxNotes&&void 0!==this.maxNotes&&(a.writeFieldBegin("maxNotes",Thrift.Type.I32,1),a.writeI32(this.maxNotes),a.writeFieldEnd());null!==this.maxNotebooks&&void 0!==this.maxNotebooks&&(a.writeFieldBegin("maxNotebooks",Thrift.Type.I32,2),a.writeI32(this.maxNotebooks),a.writeFieldEnd());null!==this.maxTags&&void 0!==this.maxTags&&(a.writeFieldBegin("maxTags",Thrift.Type.I32,3),a.writeI32(this.maxTags),a.writeFieldEnd());
null!==this.writableNotebooksOnly&&void 0!==this.writableNotebooksOnly&&(a.writeFieldBegin("writableNotebooksOnly",Thrift.Type.BOOL,4),a.writeBool(this.writableNotebooksOnly),a.writeFieldEnd());null!==this.includeContainingNotebooks&&void 0!==this.includeContainingNotebooks&&(a.writeFieldBegin("includeContainingNotebooks",Thrift.Type.BOOL,5),a.writeBool(this.includeContainingNotebooks),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
PrivilegeLevel={NORMAL:1,PREMIUM:3,VIP:5,MANAGER:7,SUPPORT:8,ADMIN:9};QueryFormat={USER:1,SEXP:2};NoteSortOrder={CREATED:1,UPDATED:2,RELEVANCE:3,UPDATE_SEQUENCE_NUMBER:4,TITLE:5};PremiumOrderStatus={NONE:0,PENDING:1,ACTIVE:2,FAILED:3,CANCELLATION_PENDING:4,CANCELED:5};SharedNotebookPrivilegeLevel={READ_NOTEBOOK:0,MODIFY_NOTEBOOK_PLUS_ACTIVITY:1,READ_NOTEBOOK_PLUS_ACTIVITY:2,GROUP:3,FULL_ACCESS:4,BUSINESS_FULL_ACCESS:5};SponsoredGroupRole={GROUP_MEMBER:1,GROUP_ADMIN:2,GROUP_OWNER:3};
BusinessUserRole={ADMIN:1,NORMAL:2};SharedNotebookInstanceRestrictions={ONLY_JOINED_OR_PREVIEW:1,NO_SHARED_NOTEBOOKS:2};ReminderEmailConfig={DO_NOT_SEND:1,SEND_DAILY_EMAIL:2};CLASSIFICATION_RECIPE_USER_NON_RECIPE="000";CLASSIFICATION_RECIPE_USER_RECIPE="001";CLASSIFICATION_RECIPE_SERVICE_RECIPE="002";EDAM_NOTE_SOURCE_WEB_CLIP="web.clip";EDAM_NOTE_SOURCE_MAIL_CLIP="mail.clip";EDAM_NOTE_SOURCE_MAIL_SMTP_GATEWAY="mail.smtp";
Data=function(a){this.body=this.size=this.bodyHash=null;a&&(void 0!==a.bodyHash&&(this.bodyHash=a.bodyHash),void 0!==a.size&&(this.size=a.size),void 0!==a.body&&(this.body=a.body))};Data.prototype={};
Data.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.bodyHash=a.readBinary().value:a.skip(b);break;case 2:b==Thrift.Type.I32?this.size=a.readI32().value:a.skip(b);break;case 3:b==Thrift.Type.STRING?this.body=a.readBinary().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
Data.prototype.write=function(a){a.writeStructBegin("Data");null!==this.bodyHash&&void 0!==this.bodyHash&&(a.writeFieldBegin("bodyHash",Thrift.Type.STRING,1),a.writeBinary(this.bodyHash),a.writeFieldEnd());null!==this.size&&void 0!==this.size&&(a.writeFieldBegin("size",Thrift.Type.I32,2),a.writeI32(this.size),a.writeFieldEnd());null!==this.body&&void 0!==this.body&&(a.writeFieldBegin("body",Thrift.Type.STRING,3),a.writeBinary(this.body),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
UserAttributes=function(a){this.reminderEmailConfig=this.useEmailAutoFiling=this.taxExempt=this.hideSponsorBilling=this.businessAddress=this.educationalDiscount=this.referralProof=this.recognitionLanguage=this.groupName=this.twitterId=this.twitterUserName=this.clipFullPage=this.preferredCountry=this.preferredLanguage=this.partnerEmailOptInDate=this.emailOptOutDate=this.dailyEmailLimit=this.sentEmailCount=this.sentEmailDate=this.refererCode=this.referralCount=this.maxReferrals=this.dateAgreedToTermsOfService=
this.comments=this.recentMailedAddresses=this.incomingEmailAddress=this.viewedPromotions=this.preactivation=this.defaultLongitude=this.defaultLatitude=this.defaultLocationName=null;a&&(void 0!==a.defaultLocationName&&(this.defaultLocationName=a.defaultLocationName),void 0!==a.defaultLatitude&&(this.defaultLatitude=a.defaultLatitude),void 0!==a.defaultLongitude&&(this.defaultLongitude=a.defaultLongitude),void 0!==a.preactivation&&(this.preactivation=a.preactivation),void 0!==a.viewedPromotions&&(this.viewedPromotions=
a.viewedPromotions),void 0!==a.incomingEmailAddress&&(this.incomingEmailAddress=a.incomingEmailAddress),void 0!==a.recentMailedAddresses&&(this.recentMailedAddresses=a.recentMailedAddresses),void 0!==a.comments&&(this.comments=a.comments),void 0!==a.dateAgreedToTermsOfService&&(this.dateAgreedToTermsOfService=a.dateAgreedToTermsOfService),void 0!==a.maxReferrals&&(this.maxReferrals=a.maxReferrals),void 0!==a.referralCount&&(this.referralCount=a.referralCount),void 0!==a.refererCode&&(this.refererCode=
a.refererCode),void 0!==a.sentEmailDate&&(this.sentEmailDate=a.sentEmailDate),void 0!==a.sentEmailCount&&(this.sentEmailCount=a.sentEmailCount),void 0!==a.dailyEmailLimit&&(this.dailyEmailLimit=a.dailyEmailLimit),void 0!==a.emailOptOutDate&&(this.emailOptOutDate=a.emailOptOutDate),void 0!==a.partnerEmailOptInDate&&(this.partnerEmailOptInDate=a.partnerEmailOptInDate),void 0!==a.preferredLanguage&&(this.preferredLanguage=a.preferredLanguage),void 0!==a.preferredCountry&&(this.preferredCountry=a.preferredCountry),
void 0!==a.clipFullPage&&(this.clipFullPage=a.clipFullPage),void 0!==a.twitterUserName&&(this.twitterUserName=a.twitterUserName),void 0!==a.twitterId&&(this.twitterId=a.twitterId),void 0!==a.groupName&&(this.groupName=a.groupName),void 0!==a.recognitionLanguage&&(this.recognitionLanguage=a.recognitionLanguage),void 0!==a.referralProof&&(this.referralProof=a.referralProof),void 0!==a.educationalDiscount&&(this.educationalDiscount=a.educationalDiscount),void 0!==a.businessAddress&&(this.businessAddress=
a.businessAddress),void 0!==a.hideSponsorBilling&&(this.hideSponsorBilling=a.hideSponsorBilling),void 0!==a.taxExempt&&(this.taxExempt=a.taxExempt),void 0!==a.useEmailAutoFiling&&(this.useEmailAutoFiling=a.useEmailAutoFiling),void 0!==a.reminderEmailConfig&&(this.reminderEmailConfig=a.reminderEmailConfig))};UserAttributes.prototype={};
UserAttributes.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.defaultLocationName=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.DOUBLE?this.defaultLatitude=a.readDouble().value:a.skip(b);break;case 3:b==Thrift.Type.DOUBLE?this.defaultLongitude=a.readDouble().value:a.skip(b);break;case 4:b==Thrift.Type.BOOL?this.preactivation=a.readBool().value:a.skip(b);break;case 5:if(b==
Thrift.Type.LIST){c=0;this.viewedPromotions=[];c=a.readListBegin().size;for(b=0;b<c;++b){var d=null,d=a.readString().value;this.viewedPromotions.push(d)}a.readListEnd()}else a.skip(b);break;case 6:b==Thrift.Type.STRING?this.incomingEmailAddress=a.readString().value:a.skip(b);break;case 7:if(b==Thrift.Type.LIST){c=0;this.recentMailedAddresses=[];c=a.readListBegin().size;for(b=0;b<c;++b)d=null,d=a.readString().value,this.recentMailedAddresses.push(d);a.readListEnd()}else a.skip(b);break;case 9:b==Thrift.Type.STRING?
this.comments=a.readString().value:a.skip(b);break;case 11:b==Thrift.Type.I64?this.dateAgreedToTermsOfService=a.readI64().value:a.skip(b);break;case 12:b==Thrift.Type.I32?this.maxReferrals=a.readI32().value:a.skip(b);break;case 13:b==Thrift.Type.I32?this.referralCount=a.readI32().value:a.skip(b);break;case 14:b==Thrift.Type.STRING?this.refererCode=a.readString().value:a.skip(b);break;case 15:b==Thrift.Type.I64?this.sentEmailDate=a.readI64().value:a.skip(b);break;case 16:b==Thrift.Type.I32?this.sentEmailCount=
a.readI32().value:a.skip(b);break;case 17:b==Thrift.Type.I32?this.dailyEmailLimit=a.readI32().value:a.skip(b);break;case 18:b==Thrift.Type.I64?this.emailOptOutDate=a.readI64().value:a.skip(b);break;case 19:b==Thrift.Type.I64?this.partnerEmailOptInDate=a.readI64().value:a.skip(b);break;case 20:b==Thrift.Type.STRING?this.preferredLanguage=a.readString().value:a.skip(b);break;case 21:b==Thrift.Type.STRING?this.preferredCountry=a.readString().value:a.skip(b);break;case 22:b==Thrift.Type.BOOL?this.clipFullPage=
a.readBool().value:a.skip(b);break;case 23:b==Thrift.Type.STRING?this.twitterUserName=a.readString().value:a.skip(b);break;case 24:b==Thrift.Type.STRING?this.twitterId=a.readString().value:a.skip(b);break;case 25:b==Thrift.Type.STRING?this.groupName=a.readString().value:a.skip(b);break;case 26:b==Thrift.Type.STRING?this.recognitionLanguage=a.readString().value:a.skip(b);break;case 28:b==Thrift.Type.STRING?this.referralProof=a.readString().value:a.skip(b);break;case 29:b==Thrift.Type.BOOL?this.educationalDiscount=
a.readBool().value:a.skip(b);break;case 30:b==Thrift.Type.STRING?this.businessAddress=a.readString().value:a.skip(b);break;case 31:b==Thrift.Type.BOOL?this.hideSponsorBilling=a.readBool().value:a.skip(b);break;case 32:b==Thrift.Type.BOOL?this.taxExempt=a.readBool().value:a.skip(b);break;case 33:b==Thrift.Type.BOOL?this.useEmailAutoFiling=a.readBool().value:a.skip(b);break;case 34:b==Thrift.Type.I32?this.reminderEmailConfig=a.readI32().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserAttributes.prototype.write=function(a){a.writeStructBegin("UserAttributes");null!==this.defaultLocationName&&void 0!==this.defaultLocationName&&(a.writeFieldBegin("defaultLocationName",Thrift.Type.STRING,1),a.writeString(this.defaultLocationName),a.writeFieldEnd());null!==this.defaultLatitude&&void 0!==this.defaultLatitude&&(a.writeFieldBegin("defaultLatitude",Thrift.Type.DOUBLE,2),a.writeDouble(this.defaultLatitude),a.writeFieldEnd());null!==this.defaultLongitude&&void 0!==this.defaultLongitude&&
(a.writeFieldBegin("defaultLongitude",Thrift.Type.DOUBLE,3),a.writeDouble(this.defaultLongitude),a.writeFieldEnd());null!==this.preactivation&&void 0!==this.preactivation&&(a.writeFieldBegin("preactivation",Thrift.Type.BOOL,4),a.writeBool(this.preactivation),a.writeFieldEnd());if(null!==this.viewedPromotions&&void 0!==this.viewedPromotions){a.writeFieldBegin("viewedPromotions",Thrift.Type.LIST,5);a.writeListBegin(Thrift.Type.STRING,this.viewedPromotions.length);for(var c in this.viewedPromotions)this.viewedPromotions.hasOwnProperty(c)&&
(c=this.viewedPromotions[c],a.writeString(c));a.writeListEnd();a.writeFieldEnd()}null!==this.incomingEmailAddress&&void 0!==this.incomingEmailAddress&&(a.writeFieldBegin("incomingEmailAddress",Thrift.Type.STRING,6),a.writeString(this.incomingEmailAddress),a.writeFieldEnd());if(null!==this.recentMailedAddresses&&void 0!==this.recentMailedAddresses){a.writeFieldBegin("recentMailedAddresses",Thrift.Type.LIST,7);a.writeListBegin(Thrift.Type.STRING,this.recentMailedAddresses.length);for(var b in this.recentMailedAddresses)this.recentMailedAddresses.hasOwnProperty(b)&&
(b=this.recentMailedAddresses[b],a.writeString(b));a.writeListEnd();a.writeFieldEnd()}null!==this.comments&&void 0!==this.comments&&(a.writeFieldBegin("comments",Thrift.Type.STRING,9),a.writeString(this.comments),a.writeFieldEnd());null!==this.dateAgreedToTermsOfService&&void 0!==this.dateAgreedToTermsOfService&&(a.writeFieldBegin("dateAgreedToTermsOfService",Thrift.Type.I64,11),a.writeI64(this.dateAgreedToTermsOfService),a.writeFieldEnd());null!==this.maxReferrals&&void 0!==this.maxReferrals&&(a.writeFieldBegin("maxReferrals",
Thrift.Type.I32,12),a.writeI32(this.maxReferrals),a.writeFieldEnd());null!==this.referralCount&&void 0!==this.referralCount&&(a.writeFieldBegin("referralCount",Thrift.Type.I32,13),a.writeI32(this.referralCount),a.writeFieldEnd());null!==this.refererCode&&void 0!==this.refererCode&&(a.writeFieldBegin("refererCode",Thrift.Type.STRING,14),a.writeString(this.refererCode),a.writeFieldEnd());null!==this.sentEmailDate&&void 0!==this.sentEmailDate&&(a.writeFieldBegin("sentEmailDate",Thrift.Type.I64,15),a.writeI64(this.sentEmailDate),
a.writeFieldEnd());null!==this.sentEmailCount&&void 0!==this.sentEmailCount&&(a.writeFieldBegin("sentEmailCount",Thrift.Type.I32,16),a.writeI32(this.sentEmailCount),a.writeFieldEnd());null!==this.dailyEmailLimit&&void 0!==this.dailyEmailLimit&&(a.writeFieldBegin("dailyEmailLimit",Thrift.Type.I32,17),a.writeI32(this.dailyEmailLimit),a.writeFieldEnd());null!==this.emailOptOutDate&&void 0!==this.emailOptOutDate&&(a.writeFieldBegin("emailOptOutDate",Thrift.Type.I64,18),a.writeI64(this.emailOptOutDate),
a.writeFieldEnd());null!==this.partnerEmailOptInDate&&void 0!==this.partnerEmailOptInDate&&(a.writeFieldBegin("partnerEmailOptInDate",Thrift.Type.I64,19),a.writeI64(this.partnerEmailOptInDate),a.writeFieldEnd());null!==this.preferredLanguage&&void 0!==this.preferredLanguage&&(a.writeFieldBegin("preferredLanguage",Thrift.Type.STRING,20),a.writeString(this.preferredLanguage),a.writeFieldEnd());null!==this.preferredCountry&&void 0!==this.preferredCountry&&(a.writeFieldBegin("preferredCountry",Thrift.Type.STRING,
21),a.writeString(this.preferredCountry),a.writeFieldEnd());null!==this.clipFullPage&&void 0!==this.clipFullPage&&(a.writeFieldBegin("clipFullPage",Thrift.Type.BOOL,22),a.writeBool(this.clipFullPage),a.writeFieldEnd());null!==this.twitterUserName&&void 0!==this.twitterUserName&&(a.writeFieldBegin("twitterUserName",Thrift.Type.STRING,23),a.writeString(this.twitterUserName),a.writeFieldEnd());null!==this.twitterId&&void 0!==this.twitterId&&(a.writeFieldBegin("twitterId",Thrift.Type.STRING,24),a.writeString(this.twitterId),
a.writeFieldEnd());null!==this.groupName&&void 0!==this.groupName&&(a.writeFieldBegin("groupName",Thrift.Type.STRING,25),a.writeString(this.groupName),a.writeFieldEnd());null!==this.recognitionLanguage&&void 0!==this.recognitionLanguage&&(a.writeFieldBegin("recognitionLanguage",Thrift.Type.STRING,26),a.writeString(this.recognitionLanguage),a.writeFieldEnd());null!==this.referralProof&&void 0!==this.referralProof&&(a.writeFieldBegin("referralProof",Thrift.Type.STRING,28),a.writeString(this.referralProof),
a.writeFieldEnd());null!==this.educationalDiscount&&void 0!==this.educationalDiscount&&(a.writeFieldBegin("educationalDiscount",Thrift.Type.BOOL,29),a.writeBool(this.educationalDiscount),a.writeFieldEnd());null!==this.businessAddress&&void 0!==this.businessAddress&&(a.writeFieldBegin("businessAddress",Thrift.Type.STRING,30),a.writeString(this.businessAddress),a.writeFieldEnd());null!==this.hideSponsorBilling&&void 0!==this.hideSponsorBilling&&(a.writeFieldBegin("hideSponsorBilling",Thrift.Type.BOOL,
31),a.writeBool(this.hideSponsorBilling),a.writeFieldEnd());null!==this.taxExempt&&void 0!==this.taxExempt&&(a.writeFieldBegin("taxExempt",Thrift.Type.BOOL,32),a.writeBool(this.taxExempt),a.writeFieldEnd());null!==this.useEmailAutoFiling&&void 0!==this.useEmailAutoFiling&&(a.writeFieldBegin("useEmailAutoFiling",Thrift.Type.BOOL,33),a.writeBool(this.useEmailAutoFiling),a.writeFieldEnd());null!==this.reminderEmailConfig&&void 0!==this.reminderEmailConfig&&(a.writeFieldBegin("reminderEmailConfig",Thrift.Type.I32,
34),a.writeI32(this.reminderEmailConfig),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
Accounting=function(a){this.nextChargeDate=this.unitDiscount=this.businessRole=this.businessName=this.businessId=this.unitPrice=this.currency=this.lastRequestedCharge=this.premiumSubscriptionNumber=this.updated=this.premiumLockUntil=this.nextPaymentDue=this.lastFailedChargeReason=this.lastFailedCharge=this.lastSuccessfulCharge=this.premiumServiceSKU=this.premiumServiceStart=this.premiumCommerceService=this.premiumOrderNumber=this.premiumServiceStatus=this.uploadLimitNextMonth=this.uploadLimitEnd=
this.uploadLimit=null;a&&(void 0!==a.uploadLimit&&(this.uploadLimit=a.uploadLimit),void 0!==a.uploadLimitEnd&&(this.uploadLimitEnd=a.uploadLimitEnd),void 0!==a.uploadLimitNextMonth&&(this.uploadLimitNextMonth=a.uploadLimitNextMonth),void 0!==a.premiumServiceStatus&&(this.premiumServiceStatus=a.premiumServiceStatus),void 0!==a.premiumOrderNumber&&(this.premiumOrderNumber=a.premiumOrderNumber),void 0!==a.premiumCommerceService&&(this.premiumCommerceService=a.premiumCommerceService),void 0!==a.premiumServiceStart&&
(this.premiumServiceStart=a.premiumServiceStart),void 0!==a.premiumServiceSKU&&(this.premiumServiceSKU=a.premiumServiceSKU),void 0!==a.lastSuccessfulCharge&&(this.lastSuccessfulCharge=a.lastSuccessfulCharge),void 0!==a.lastFailedCharge&&(this.lastFailedCharge=a.lastFailedCharge),void 0!==a.lastFailedChargeReason&&(this.lastFailedChargeReason=a.lastFailedChargeReason),void 0!==a.nextPaymentDue&&(this.nextPaymentDue=a.nextPaymentDue),void 0!==a.premiumLockUntil&&(this.premiumLockUntil=a.premiumLockUntil),
void 0!==a.updated&&(this.updated=a.updated),void 0!==a.premiumSubscriptionNumber&&(this.premiumSubscriptionNumber=a.premiumSubscriptionNumber),void 0!==a.lastRequestedCharge&&(this.lastRequestedCharge=a.lastRequestedCharge),void 0!==a.currency&&(this.currency=a.currency),void 0!==a.unitPrice&&(this.unitPrice=a.unitPrice),void 0!==a.businessId&&(this.businessId=a.businessId),void 0!==a.businessName&&(this.businessName=a.businessName),void 0!==a.businessRole&&(this.businessRole=a.businessRole),void 0!==
a.unitDiscount&&(this.unitDiscount=a.unitDiscount),void 0!==a.nextChargeDate&&(this.nextChargeDate=a.nextChargeDate))};Accounting.prototype={};
Accounting.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.I64?this.uploadLimit=a.readI64().value:a.skip(b);break;case 2:b==Thrift.Type.I64?this.uploadLimitEnd=a.readI64().value:a.skip(b);break;case 3:b==Thrift.Type.I64?this.uploadLimitNextMonth=a.readI64().value:a.skip(b);break;case 4:b==Thrift.Type.I32?this.premiumServiceStatus=a.readI32().value:a.skip(b);break;case 5:b==Thrift.Type.STRING?
this.premiumOrderNumber=a.readString().value:a.skip(b);break;case 6:b==Thrift.Type.STRING?this.premiumCommerceService=a.readString().value:a.skip(b);break;case 7:b==Thrift.Type.I64?this.premiumServiceStart=a.readI64().value:a.skip(b);break;case 8:b==Thrift.Type.STRING?this.premiumServiceSKU=a.readString().value:a.skip(b);break;case 9:b==Thrift.Type.I64?this.lastSuccessfulCharge=a.readI64().value:a.skip(b);break;case 10:b==Thrift.Type.I64?this.lastFailedCharge=a.readI64().value:a.skip(b);break;case 11:b==
Thrift.Type.STRING?this.lastFailedChargeReason=a.readString().value:a.skip(b);break;case 12:b==Thrift.Type.I64?this.nextPaymentDue=a.readI64().value:a.skip(b);break;case 13:b==Thrift.Type.I64?this.premiumLockUntil=a.readI64().value:a.skip(b);break;case 14:b==Thrift.Type.I64?this.updated=a.readI64().value:a.skip(b);break;case 16:b==Thrift.Type.STRING?this.premiumSubscriptionNumber=a.readString().value:a.skip(b);break;case 17:b==Thrift.Type.I64?this.lastRequestedCharge=a.readI64().value:a.skip(b);break;
case 18:b==Thrift.Type.STRING?this.currency=a.readString().value:a.skip(b);break;case 19:b==Thrift.Type.I32?this.unitPrice=a.readI32().value:a.skip(b);break;case 20:b==Thrift.Type.I32?this.businessId=a.readI32().value:a.skip(b);break;case 21:b==Thrift.Type.STRING?this.businessName=a.readString().value:a.skip(b);break;case 22:b==Thrift.Type.I32?this.businessRole=a.readI32().value:a.skip(b);break;case 23:b==Thrift.Type.I32?this.unitDiscount=a.readI32().value:a.skip(b);break;case 24:b==Thrift.Type.I64?
this.nextChargeDate=a.readI64().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
Accounting.prototype.write=function(a){a.writeStructBegin("Accounting");null!==this.uploadLimit&&void 0!==this.uploadLimit&&(a.writeFieldBegin("uploadLimit",Thrift.Type.I64,1),a.writeI64(this.uploadLimit),a.writeFieldEnd());null!==this.uploadLimitEnd&&void 0!==this.uploadLimitEnd&&(a.writeFieldBegin("uploadLimitEnd",Thrift.Type.I64,2),a.writeI64(this.uploadLimitEnd),a.writeFieldEnd());null!==this.uploadLimitNextMonth&&void 0!==this.uploadLimitNextMonth&&(a.writeFieldBegin("uploadLimitNextMonth",Thrift.Type.I64,
3),a.writeI64(this.uploadLimitNextMonth),a.writeFieldEnd());null!==this.premiumServiceStatus&&void 0!==this.premiumServiceStatus&&(a.writeFieldBegin("premiumServiceStatus",Thrift.Type.I32,4),a.writeI32(this.premiumServiceStatus),a.writeFieldEnd());null!==this.premiumOrderNumber&&void 0!==this.premiumOrderNumber&&(a.writeFieldBegin("premiumOrderNumber",Thrift.Type.STRING,5),a.writeString(this.premiumOrderNumber),a.writeFieldEnd());null!==this.premiumCommerceService&&void 0!==this.premiumCommerceService&&
(a.writeFieldBegin("premiumCommerceService",Thrift.Type.STRING,6),a.writeString(this.premiumCommerceService),a.writeFieldEnd());null!==this.premiumServiceStart&&void 0!==this.premiumServiceStart&&(a.writeFieldBegin("premiumServiceStart",Thrift.Type.I64,7),a.writeI64(this.premiumServiceStart),a.writeFieldEnd());null!==this.premiumServiceSKU&&void 0!==this.premiumServiceSKU&&(a.writeFieldBegin("premiumServiceSKU",Thrift.Type.STRING,8),a.writeString(this.premiumServiceSKU),a.writeFieldEnd());null!==
this.lastSuccessfulCharge&&void 0!==this.lastSuccessfulCharge&&(a.writeFieldBegin("lastSuccessfulCharge",Thrift.Type.I64,9),a.writeI64(this.lastSuccessfulCharge),a.writeFieldEnd());null!==this.lastFailedCharge&&void 0!==this.lastFailedCharge&&(a.writeFieldBegin("lastFailedCharge",Thrift.Type.I64,10),a.writeI64(this.lastFailedCharge),a.writeFieldEnd());null!==this.lastFailedChargeReason&&void 0!==this.lastFailedChargeReason&&(a.writeFieldBegin("lastFailedChargeReason",Thrift.Type.STRING,11),a.writeString(this.lastFailedChargeReason),
a.writeFieldEnd());null!==this.nextPaymentDue&&void 0!==this.nextPaymentDue&&(a.writeFieldBegin("nextPaymentDue",Thrift.Type.I64,12),a.writeI64(this.nextPaymentDue),a.writeFieldEnd());null!==this.premiumLockUntil&&void 0!==this.premiumLockUntil&&(a.writeFieldBegin("premiumLockUntil",Thrift.Type.I64,13),a.writeI64(this.premiumLockUntil),a.writeFieldEnd());null!==this.updated&&void 0!==this.updated&&(a.writeFieldBegin("updated",Thrift.Type.I64,14),a.writeI64(this.updated),a.writeFieldEnd());null!==
this.premiumSubscriptionNumber&&void 0!==this.premiumSubscriptionNumber&&(a.writeFieldBegin("premiumSubscriptionNumber",Thrift.Type.STRING,16),a.writeString(this.premiumSubscriptionNumber),a.writeFieldEnd());null!==this.lastRequestedCharge&&void 0!==this.lastRequestedCharge&&(a.writeFieldBegin("lastRequestedCharge",Thrift.Type.I64,17),a.writeI64(this.lastRequestedCharge),a.writeFieldEnd());null!==this.currency&&void 0!==this.currency&&(a.writeFieldBegin("currency",Thrift.Type.STRING,18),a.writeString(this.currency),
a.writeFieldEnd());null!==this.unitPrice&&void 0!==this.unitPrice&&(a.writeFieldBegin("unitPrice",Thrift.Type.I32,19),a.writeI32(this.unitPrice),a.writeFieldEnd());null!==this.businessId&&void 0!==this.businessId&&(a.writeFieldBegin("businessId",Thrift.Type.I32,20),a.writeI32(this.businessId),a.writeFieldEnd());null!==this.businessName&&void 0!==this.businessName&&(a.writeFieldBegin("businessName",Thrift.Type.STRING,21),a.writeString(this.businessName),a.writeFieldEnd());null!==this.businessRole&&
void 0!==this.businessRole&&(a.writeFieldBegin("businessRole",Thrift.Type.I32,22),a.writeI32(this.businessRole),a.writeFieldEnd());null!==this.unitDiscount&&void 0!==this.unitDiscount&&(a.writeFieldBegin("unitDiscount",Thrift.Type.I32,23),a.writeI32(this.unitDiscount),a.writeFieldEnd());null!==this.nextChargeDate&&void 0!==this.nextChargeDate&&(a.writeFieldBegin("nextChargeDate",Thrift.Type.I64,24),a.writeI64(this.nextChargeDate),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
BusinessUserInfo=function(a){this.email=this.role=this.businessName=this.businessId=null;a&&(void 0!==a.businessId&&(this.businessId=a.businessId),void 0!==a.businessName&&(this.businessName=a.businessName),void 0!==a.role&&(this.role=a.role),void 0!==a.email&&(this.email=a.email))};BusinessUserInfo.prototype={};
BusinessUserInfo.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.I32?this.businessId=a.readI32().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.businessName=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.I32?this.role=a.readI32().value:a.skip(b);break;case 4:b==Thrift.Type.STRING?this.email=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
BusinessUserInfo.prototype.write=function(a){a.writeStructBegin("BusinessUserInfo");null!==this.businessId&&void 0!==this.businessId&&(a.writeFieldBegin("businessId",Thrift.Type.I32,1),a.writeI32(this.businessId),a.writeFieldEnd());null!==this.businessName&&void 0!==this.businessName&&(a.writeFieldBegin("businessName",Thrift.Type.STRING,2),a.writeString(this.businessName),a.writeFieldEnd());null!==this.role&&void 0!==this.role&&(a.writeFieldBegin("role",Thrift.Type.I32,3),a.writeI32(this.role),a.writeFieldEnd());
null!==this.email&&void 0!==this.email&&(a.writeFieldBegin("email",Thrift.Type.STRING,4),a.writeString(this.email),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
PremiumInfo=function(a){this.premiumUpgradable=this.sponsoredGroupRole=this.sponsoredGroupName=this.canPurchaseUploadAllowance=this.premiumCancellationPending=this.premiumPending=this.premiumExtendable=this.premiumExpirationDate=this.premiumRecurring=this.premium=this.currentTime=null;a&&(void 0!==a.currentTime&&(this.currentTime=a.currentTime),void 0!==a.premium&&(this.premium=a.premium),void 0!==a.premiumRecurring&&(this.premiumRecurring=a.premiumRecurring),void 0!==a.premiumExpirationDate&&(this.premiumExpirationDate=
a.premiumExpirationDate),void 0!==a.premiumExtendable&&(this.premiumExtendable=a.premiumExtendable),void 0!==a.premiumPending&&(this.premiumPending=a.premiumPending),void 0!==a.premiumCancellationPending&&(this.premiumCancellationPending=a.premiumCancellationPending),void 0!==a.canPurchaseUploadAllowance&&(this.canPurchaseUploadAllowance=a.canPurchaseUploadAllowance),void 0!==a.sponsoredGroupName&&(this.sponsoredGroupName=a.sponsoredGroupName),void 0!==a.sponsoredGroupRole&&(this.sponsoredGroupRole=
a.sponsoredGroupRole),void 0!==a.premiumUpgradable&&(this.premiumUpgradable=a.premiumUpgradable))};PremiumInfo.prototype={};
PremiumInfo.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.I64?this.currentTime=a.readI64().value:a.skip(b);break;case 2:b==Thrift.Type.BOOL?this.premium=a.readBool().value:a.skip(b);break;case 3:b==Thrift.Type.BOOL?this.premiumRecurring=a.readBool().value:a.skip(b);break;case 4:b==Thrift.Type.I64?this.premiumExpirationDate=a.readI64().value:a.skip(b);break;case 5:b==Thrift.Type.BOOL?this.premiumExtendable=
a.readBool().value:a.skip(b);break;case 6:b==Thrift.Type.BOOL?this.premiumPending=a.readBool().value:a.skip(b);break;case 7:b==Thrift.Type.BOOL?this.premiumCancellationPending=a.readBool().value:a.skip(b);break;case 8:b==Thrift.Type.BOOL?this.canPurchaseUploadAllowance=a.readBool().value:a.skip(b);break;case 9:b==Thrift.Type.STRING?this.sponsoredGroupName=a.readString().value:a.skip(b);break;case 10:b==Thrift.Type.I32?this.sponsoredGroupRole=a.readI32().value:a.skip(b);break;case 11:b==Thrift.Type.BOOL?
this.premiumUpgradable=a.readBool().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
PremiumInfo.prototype.write=function(a){a.writeStructBegin("PremiumInfo");null!==this.currentTime&&void 0!==this.currentTime&&(a.writeFieldBegin("currentTime",Thrift.Type.I64,1),a.writeI64(this.currentTime),a.writeFieldEnd());null!==this.premium&&void 0!==this.premium&&(a.writeFieldBegin("premium",Thrift.Type.BOOL,2),a.writeBool(this.premium),a.writeFieldEnd());null!==this.premiumRecurring&&void 0!==this.premiumRecurring&&(a.writeFieldBegin("premiumRecurring",Thrift.Type.BOOL,3),a.writeBool(this.premiumRecurring),
a.writeFieldEnd());null!==this.premiumExpirationDate&&void 0!==this.premiumExpirationDate&&(a.writeFieldBegin("premiumExpirationDate",Thrift.Type.I64,4),a.writeI64(this.premiumExpirationDate),a.writeFieldEnd());null!==this.premiumExtendable&&void 0!==this.premiumExtendable&&(a.writeFieldBegin("premiumExtendable",Thrift.Type.BOOL,5),a.writeBool(this.premiumExtendable),a.writeFieldEnd());null!==this.premiumPending&&void 0!==this.premiumPending&&(a.writeFieldBegin("premiumPending",Thrift.Type.BOOL,6),
a.writeBool(this.premiumPending),a.writeFieldEnd());null!==this.premiumCancellationPending&&void 0!==this.premiumCancellationPending&&(a.writeFieldBegin("premiumCancellationPending",Thrift.Type.BOOL,7),a.writeBool(this.premiumCancellationPending),a.writeFieldEnd());null!==this.canPurchaseUploadAllowance&&void 0!==this.canPurchaseUploadAllowance&&(a.writeFieldBegin("canPurchaseUploadAllowance",Thrift.Type.BOOL,8),a.writeBool(this.canPurchaseUploadAllowance),a.writeFieldEnd());null!==this.sponsoredGroupName&&
void 0!==this.sponsoredGroupName&&(a.writeFieldBegin("sponsoredGroupName",Thrift.Type.STRING,9),a.writeString(this.sponsoredGroupName),a.writeFieldEnd());null!==this.sponsoredGroupRole&&void 0!==this.sponsoredGroupRole&&(a.writeFieldBegin("sponsoredGroupRole",Thrift.Type.I32,10),a.writeI32(this.sponsoredGroupRole),a.writeFieldEnd());null!==this.premiumUpgradable&&void 0!==this.premiumUpgradable&&(a.writeFieldBegin("premiumUpgradable",Thrift.Type.BOOL,11),a.writeBool(this.premiumUpgradable),a.writeFieldEnd());
a.writeFieldStop();a.writeStructEnd()};
User=function(a){this.businessUserInfo=this.premiumInfo=this.accounting=this.attributes=this.shardId=this.active=this.deleted=this.updated=this.created=this.privilege=this.timezone=this.name=this.email=this.username=this.id=null;a&&(void 0!==a.id&&(this.id=a.id),void 0!==a.username&&(this.username=a.username),void 0!==a.email&&(this.email=a.email),void 0!==a.name&&(this.name=a.name),void 0!==a.timezone&&(this.timezone=a.timezone),void 0!==a.privilege&&(this.privilege=a.privilege),void 0!==a.created&&
(this.created=a.created),void 0!==a.updated&&(this.updated=a.updated),void 0!==a.deleted&&(this.deleted=a.deleted),void 0!==a.active&&(this.active=a.active),void 0!==a.shardId&&(this.shardId=a.shardId),void 0!==a.attributes&&(this.attributes=a.attributes),void 0!==a.accounting&&(this.accounting=a.accounting),void 0!==a.premiumInfo&&(this.premiumInfo=a.premiumInfo),void 0!==a.businessUserInfo&&(this.businessUserInfo=a.businessUserInfo))};User.prototype={};
User.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.I32?this.id=a.readI32().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.username=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.STRING?this.email=a.readString().value:a.skip(b);break;case 4:b==Thrift.Type.STRING?this.name=a.readString().value:a.skip(b);break;case 6:b==Thrift.Type.STRING?this.timezone=a.readString().value:
a.skip(b);break;case 7:b==Thrift.Type.I32?this.privilege=a.readI32().value:a.skip(b);break;case 9:b==Thrift.Type.I64?this.created=a.readI64().value:a.skip(b);break;case 10:b==Thrift.Type.I64?this.updated=a.readI64().value:a.skip(b);break;case 11:b==Thrift.Type.I64?this.deleted=a.readI64().value:a.skip(b);break;case 13:b==Thrift.Type.BOOL?this.active=a.readBool().value:a.skip(b);break;case 14:b==Thrift.Type.STRING?this.shardId=a.readString().value:a.skip(b);break;case 15:b==Thrift.Type.STRUCT?(this.attributes=
new UserAttributes,this.attributes.read(a)):a.skip(b);break;case 16:b==Thrift.Type.STRUCT?(this.accounting=new Accounting,this.accounting.read(a)):a.skip(b);break;case 17:b==Thrift.Type.STRUCT?(this.premiumInfo=new PremiumInfo,this.premiumInfo.read(a)):a.skip(b);break;case 18:b==Thrift.Type.STRUCT?(this.businessUserInfo=new BusinessUserInfo,this.businessUserInfo.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
User.prototype.write=function(a){a.writeStructBegin("User");null!==this.id&&void 0!==this.id&&(a.writeFieldBegin("id",Thrift.Type.I32,1),a.writeI32(this.id),a.writeFieldEnd());null!==this.username&&void 0!==this.username&&(a.writeFieldBegin("username",Thrift.Type.STRING,2),a.writeString(this.username),a.writeFieldEnd());null!==this.email&&void 0!==this.email&&(a.writeFieldBegin("email",Thrift.Type.STRING,3),a.writeString(this.email),a.writeFieldEnd());null!==this.name&&void 0!==this.name&&(a.writeFieldBegin("name",
Thrift.Type.STRING,4),a.writeString(this.name),a.writeFieldEnd());null!==this.timezone&&void 0!==this.timezone&&(a.writeFieldBegin("timezone",Thrift.Type.STRING,6),a.writeString(this.timezone),a.writeFieldEnd());null!==this.privilege&&void 0!==this.privilege&&(a.writeFieldBegin("privilege",Thrift.Type.I32,7),a.writeI32(this.privilege),a.writeFieldEnd());null!==this.created&&void 0!==this.created&&(a.writeFieldBegin("created",Thrift.Type.I64,9),a.writeI64(this.created),a.writeFieldEnd());null!==this.updated&&
void 0!==this.updated&&(a.writeFieldBegin("updated",Thrift.Type.I64,10),a.writeI64(this.updated),a.writeFieldEnd());null!==this.deleted&&void 0!==this.deleted&&(a.writeFieldBegin("deleted",Thrift.Type.I64,11),a.writeI64(this.deleted),a.writeFieldEnd());null!==this.active&&void 0!==this.active&&(a.writeFieldBegin("active",Thrift.Type.BOOL,13),a.writeBool(this.active),a.writeFieldEnd());null!==this.shardId&&void 0!==this.shardId&&(a.writeFieldBegin("shardId",Thrift.Type.STRING,14),a.writeString(this.shardId),
a.writeFieldEnd());null!==this.attributes&&void 0!==this.attributes&&(a.writeFieldBegin("attributes",Thrift.Type.STRUCT,15),this.attributes.write(a),a.writeFieldEnd());null!==this.accounting&&void 0!==this.accounting&&(a.writeFieldBegin("accounting",Thrift.Type.STRUCT,16),this.accounting.write(a),a.writeFieldEnd());null!==this.premiumInfo&&void 0!==this.premiumInfo&&(a.writeFieldBegin("premiumInfo",Thrift.Type.STRUCT,17),this.premiumInfo.write(a),a.writeFieldEnd());null!==this.businessUserInfo&&void 0!==
this.businessUserInfo&&(a.writeFieldBegin("businessUserInfo",Thrift.Type.STRUCT,18),this.businessUserInfo.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};Tag=function(a){this.updateSequenceNum=this.parentGuid=this.name=this.guid=null;a&&(void 0!==a.guid&&(this.guid=a.guid),void 0!==a.name&&(this.name=a.name),void 0!==a.parentGuid&&(this.parentGuid=a.parentGuid),void 0!==a.updateSequenceNum&&(this.updateSequenceNum=a.updateSequenceNum))};Tag.prototype={};
Tag.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.name=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.STRING?this.parentGuid=a.readString().value:a.skip(b);break;case 4:b==Thrift.Type.I32?this.updateSequenceNum=a.readI32().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
Tag.prototype.write=function(a){a.writeStructBegin("Tag");null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,1),a.writeString(this.guid),a.writeFieldEnd());null!==this.name&&void 0!==this.name&&(a.writeFieldBegin("name",Thrift.Type.STRING,2),a.writeString(this.name),a.writeFieldEnd());null!==this.parentGuid&&void 0!==this.parentGuid&&(a.writeFieldBegin("parentGuid",Thrift.Type.STRING,3),a.writeString(this.parentGuid),a.writeFieldEnd());null!==this.updateSequenceNum&&
void 0!==this.updateSequenceNum&&(a.writeFieldBegin("updateSequenceNum",Thrift.Type.I32,4),a.writeI32(this.updateSequenceNum),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};LazyMap=function(a){this.fullMap=this.keysOnly=null;a&&(void 0!==a.keysOnly&&(this.keysOnly=a.keysOnly),void 0!==a.fullMap&&(this.fullMap=a.fullMap))};LazyMap.prototype={};
LazyMap.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:if(b==Thrift.Type.SET){c=0;this.keysOnly=[];c=a.readSetBegin().size;for(b=0;b<c;++b){var d=null,d=a.readString().value;this.keysOnly.push(d)}a.readSetEnd()}else a.skip(b);break;case 2:if(b==Thrift.Type.MAP){c=0;this.fullMap={};c=a.readMapBegin().size;for(b=0;b<c;++b){0<b&&a.rstack.length>a.rpos[a.rpos.length-1]+1&&a.rstack.pop();var e=d=null,d=a.readString().value,
e=a.readString().value;this.fullMap[d]=e}a.readMapEnd()}else a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
LazyMap.prototype.write=function(a){a.writeStructBegin("LazyMap");if(null!==this.keysOnly&&void 0!==this.keysOnly){a.writeFieldBegin("keysOnly",Thrift.Type.SET,1);a.writeSetBegin(Thrift.Type.STRING,this.keysOnly.length);for(var c in this.keysOnly)this.keysOnly.hasOwnProperty(c)&&(c=this.keysOnly[c],a.writeString(c));a.writeSetEnd();a.writeFieldEnd()}if(null!==this.fullMap&&void 0!==this.fullMap){a.writeFieldBegin("fullMap",Thrift.Type.MAP,2);a.writeMapBegin(Thrift.Type.STRING,Thrift.Type.STRING,Thrift.objectLength(this.fullMap));
for(var b in this.fullMap)this.fullMap.hasOwnProperty(b)&&(c=this.fullMap[b],a.writeString(b),a.writeString(c));a.writeMapEnd();a.writeFieldEnd()}a.writeFieldStop();a.writeStructEnd()};
ResourceAttributes=function(a){this.applicationData=this.attachment=this.fileName=this.recoType=this.clientWillIndex=this.cameraModel=this.cameraMake=this.altitude=this.longitude=this.latitude=this.timestamp=this.sourceURL=null;a&&(void 0!==a.sourceURL&&(this.sourceURL=a.sourceURL),void 0!==a.timestamp&&(this.timestamp=a.timestamp),void 0!==a.latitude&&(this.latitude=a.latitude),void 0!==a.longitude&&(this.longitude=a.longitude),void 0!==a.altitude&&(this.altitude=a.altitude),void 0!==a.cameraMake&&
(this.cameraMake=a.cameraMake),void 0!==a.cameraModel&&(this.cameraModel=a.cameraModel),void 0!==a.clientWillIndex&&(this.clientWillIndex=a.clientWillIndex),void 0!==a.recoType&&(this.recoType=a.recoType),void 0!==a.fileName&&(this.fileName=a.fileName),void 0!==a.attachment&&(this.attachment=a.attachment),void 0!==a.applicationData&&(this.applicationData=a.applicationData))};ResourceAttributes.prototype={};
ResourceAttributes.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.sourceURL=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.I64?this.timestamp=a.readI64().value:a.skip(b);break;case 3:b==Thrift.Type.DOUBLE?this.latitude=a.readDouble().value:a.skip(b);break;case 4:b==Thrift.Type.DOUBLE?this.longitude=a.readDouble().value:a.skip(b);break;case 5:b==Thrift.Type.DOUBLE?this.altitude=
a.readDouble().value:a.skip(b);break;case 6:b==Thrift.Type.STRING?this.cameraMake=a.readString().value:a.skip(b);break;case 7:b==Thrift.Type.STRING?this.cameraModel=a.readString().value:a.skip(b);break;case 8:b==Thrift.Type.BOOL?this.clientWillIndex=a.readBool().value:a.skip(b);break;case 9:b==Thrift.Type.STRING?this.recoType=a.readString().value:a.skip(b);break;case 10:b==Thrift.Type.STRING?this.fileName=a.readString().value:a.skip(b);break;case 11:b==Thrift.Type.BOOL?this.attachment=a.readBool().value:
a.skip(b);break;case 12:b==Thrift.Type.STRUCT?(this.applicationData=new LazyMap,this.applicationData.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
ResourceAttributes.prototype.write=function(a){a.writeStructBegin("ResourceAttributes");null!==this.sourceURL&&void 0!==this.sourceURL&&(a.writeFieldBegin("sourceURL",Thrift.Type.STRING,1),a.writeString(this.sourceURL),a.writeFieldEnd());null!==this.timestamp&&void 0!==this.timestamp&&(a.writeFieldBegin("timestamp",Thrift.Type.I64,2),a.writeI64(this.timestamp),a.writeFieldEnd());null!==this.latitude&&void 0!==this.latitude&&(a.writeFieldBegin("latitude",Thrift.Type.DOUBLE,3),a.writeDouble(this.latitude),
a.writeFieldEnd());null!==this.longitude&&void 0!==this.longitude&&(a.writeFieldBegin("longitude",Thrift.Type.DOUBLE,4),a.writeDouble(this.longitude),a.writeFieldEnd());null!==this.altitude&&void 0!==this.altitude&&(a.writeFieldBegin("altitude",Thrift.Type.DOUBLE,5),a.writeDouble(this.altitude),a.writeFieldEnd());null!==this.cameraMake&&void 0!==this.cameraMake&&(a.writeFieldBegin("cameraMake",Thrift.Type.STRING,6),a.writeString(this.cameraMake),a.writeFieldEnd());null!==this.cameraModel&&void 0!==
this.cameraModel&&(a.writeFieldBegin("cameraModel",Thrift.Type.STRING,7),a.writeString(this.cameraModel),a.writeFieldEnd());null!==this.clientWillIndex&&void 0!==this.clientWillIndex&&(a.writeFieldBegin("clientWillIndex",Thrift.Type.BOOL,8),a.writeBool(this.clientWillIndex),a.writeFieldEnd());null!==this.recoType&&void 0!==this.recoType&&(a.writeFieldBegin("recoType",Thrift.Type.STRING,9),a.writeString(this.recoType),a.writeFieldEnd());null!==this.fileName&&void 0!==this.fileName&&(a.writeFieldBegin("fileName",
Thrift.Type.STRING,10),a.writeString(this.fileName),a.writeFieldEnd());null!==this.attachment&&void 0!==this.attachment&&(a.writeFieldBegin("attachment",Thrift.Type.BOOL,11),a.writeBool(this.attachment),a.writeFieldEnd());null!==this.applicationData&&void 0!==this.applicationData&&(a.writeFieldBegin("applicationData",Thrift.Type.STRUCT,12),this.applicationData.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
Resource=function(a){this.alternateData=this.updateSequenceNum=this.attributes=this.recognition=this.active=this.duration=this.height=this.width=this.mime=this.data=this.noteGuid=this.guid=null;a&&(void 0!==a.guid&&(this.guid=a.guid),void 0!==a.noteGuid&&(this.noteGuid=a.noteGuid),void 0!==a.data&&(this.data=a.data),void 0!==a.mime&&(this.mime=a.mime),void 0!==a.width&&(this.width=a.width),void 0!==a.height&&(this.height=a.height),void 0!==a.duration&&(this.duration=a.duration),void 0!==a.active&&
(this.active=a.active),void 0!==a.recognition&&(this.recognition=a.recognition),void 0!==a.attributes&&(this.attributes=a.attributes),void 0!==a.updateSequenceNum&&(this.updateSequenceNum=a.updateSequenceNum),void 0!==a.alternateData&&(this.alternateData=a.alternateData))};Resource.prototype={};
Resource.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.noteGuid=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.STRUCT?(this.data=new Data,this.data.read(a)):a.skip(b);break;case 4:b==Thrift.Type.STRING?this.mime=a.readString().value:a.skip(b);break;case 5:b==Thrift.Type.I16?this.width=a.readI16().value:
a.skip(b);break;case 6:b==Thrift.Type.I16?this.height=a.readI16().value:a.skip(b);break;case 7:b==Thrift.Type.I16?this.duration=a.readI16().value:a.skip(b);break;case 8:b==Thrift.Type.BOOL?this.active=a.readBool().value:a.skip(b);break;case 9:b==Thrift.Type.STRUCT?(this.recognition=new Data,this.recognition.read(a)):a.skip(b);break;case 11:b==Thrift.Type.STRUCT?(this.attributes=new ResourceAttributes,this.attributes.read(a)):a.skip(b);break;case 12:b==Thrift.Type.I32?this.updateSequenceNum=a.readI32().value:
a.skip(b);break;case 13:b==Thrift.Type.STRUCT?(this.alternateData=new Data,this.alternateData.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
Resource.prototype.write=function(a){a.writeStructBegin("Resource");null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,1),a.writeString(this.guid),a.writeFieldEnd());null!==this.noteGuid&&void 0!==this.noteGuid&&(a.writeFieldBegin("noteGuid",Thrift.Type.STRING,2),a.writeString(this.noteGuid),a.writeFieldEnd());null!==this.data&&void 0!==this.data&&(a.writeFieldBegin("data",Thrift.Type.STRUCT,3),this.data.write(a),a.writeFieldEnd());null!==this.mime&&void 0!==this.mime&&
(a.writeFieldBegin("mime",Thrift.Type.STRING,4),a.writeString(this.mime),a.writeFieldEnd());null!==this.width&&void 0!==this.width&&(a.writeFieldBegin("width",Thrift.Type.I16,5),a.writeI16(this.width),a.writeFieldEnd());null!==this.height&&void 0!==this.height&&(a.writeFieldBegin("height",Thrift.Type.I16,6),a.writeI16(this.height),a.writeFieldEnd());null!==this.duration&&void 0!==this.duration&&(a.writeFieldBegin("duration",Thrift.Type.I16,7),a.writeI16(this.duration),a.writeFieldEnd());null!==this.active&&
void 0!==this.active&&(a.writeFieldBegin("active",Thrift.Type.BOOL,8),a.writeBool(this.active),a.writeFieldEnd());null!==this.recognition&&void 0!==this.recognition&&(a.writeFieldBegin("recognition",Thrift.Type.STRUCT,9),this.recognition.write(a),a.writeFieldEnd());null!==this.attributes&&void 0!==this.attributes&&(a.writeFieldBegin("attributes",Thrift.Type.STRUCT,11),this.attributes.write(a),a.writeFieldEnd());null!==this.updateSequenceNum&&void 0!==this.updateSequenceNum&&(a.writeFieldBegin("updateSequenceNum",
Thrift.Type.I32,12),a.writeI32(this.updateSequenceNum),a.writeFieldEnd());null!==this.alternateData&&void 0!==this.alternateData&&(a.writeFieldBegin("alternateData",Thrift.Type.STRUCT,13),this.alternateData.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NoteAttributes=function(a){this.lastEditorId=this.creatorId=this.classifications=this.lastEditedBy=this.applicationData=this.contentClass=this.placeName=this.reminderTime=this.reminderDoneTime=this.reminderOrder=this.shareDate=this.sourceApplication=this.sourceURL=this.source=this.author=this.altitude=this.longitude=this.latitude=this.subjectDate=null;a&&(void 0!==a.subjectDate&&(this.subjectDate=a.subjectDate),void 0!==a.latitude&&(this.latitude=a.latitude),void 0!==a.longitude&&(this.longitude=
a.longitude),void 0!==a.altitude&&(this.altitude=a.altitude),void 0!==a.author&&(this.author=a.author),void 0!==a.source&&(this.source=a.source),void 0!==a.sourceURL&&(this.sourceURL=a.sourceURL),void 0!==a.sourceApplication&&(this.sourceApplication=a.sourceApplication),void 0!==a.shareDate&&(this.shareDate=a.shareDate),void 0!==a.reminderOrder&&(this.reminderOrder=a.reminderOrder),void 0!==a.reminderDoneTime&&(this.reminderDoneTime=a.reminderDoneTime),void 0!==a.reminderTime&&(this.reminderTime=
a.reminderTime),void 0!==a.placeName&&(this.placeName=a.placeName),void 0!==a.contentClass&&(this.contentClass=a.contentClass),void 0!==a.applicationData&&(this.applicationData=a.applicationData),void 0!==a.lastEditedBy&&(this.lastEditedBy=a.lastEditedBy),void 0!==a.classifications&&(this.classifications=a.classifications),void 0!==a.creatorId&&(this.creatorId=a.creatorId),void 0!==a.lastEditorId&&(this.lastEditorId=a.lastEditorId))};NoteAttributes.prototype={};
NoteAttributes.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.I64?this.subjectDate=a.readI64().value:a.skip(b);break;case 10:b==Thrift.Type.DOUBLE?this.latitude=a.readDouble().value:a.skip(b);break;case 11:b==Thrift.Type.DOUBLE?this.longitude=a.readDouble().value:a.skip(b);break;case 12:b==Thrift.Type.DOUBLE?this.altitude=a.readDouble().value:a.skip(b);break;case 13:b==Thrift.Type.STRING?this.author=
a.readString().value:a.skip(b);break;case 14:b==Thrift.Type.STRING?this.source=a.readString().value:a.skip(b);break;case 15:b==Thrift.Type.STRING?this.sourceURL=a.readString().value:a.skip(b);break;case 16:b==Thrift.Type.STRING?this.sourceApplication=a.readString().value:a.skip(b);break;case 17:b==Thrift.Type.I64?this.shareDate=a.readI64().value:a.skip(b);break;case 18:b==Thrift.Type.I64?this.reminderOrder=a.readI64().value:a.skip(b);break;case 19:b==Thrift.Type.I64?this.reminderDoneTime=a.readI64().value:
a.skip(b);break;case 20:b==Thrift.Type.I64?this.reminderTime=a.readI64().value:a.skip(b);break;case 21:b==Thrift.Type.STRING?this.placeName=a.readString().value:a.skip(b);break;case 22:b==Thrift.Type.STRING?this.contentClass=a.readString().value:a.skip(b);break;case 23:b==Thrift.Type.STRUCT?(this.applicationData=new LazyMap,this.applicationData.read(a)):a.skip(b);break;case 24:b==Thrift.Type.STRING?this.lastEditedBy=a.readString().value:a.skip(b);break;case 26:if(b==Thrift.Type.MAP){c=0;this.classifications=
{};c=a.readMapBegin().size;for(b=0;b<c;++b){0<b&&a.rstack.length>a.rpos[a.rpos.length-1]+1&&a.rstack.pop();var d=null,e=null,d=a.readString().value,e=a.readString().value;this.classifications[d]=e}a.readMapEnd()}else a.skip(b);break;case 27:b==Thrift.Type.I32?this.creatorId=a.readI32().value:a.skip(b);break;case 28:b==Thrift.Type.I32?this.lastEditorId=a.readI32().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NoteAttributes.prototype.write=function(a){a.writeStructBegin("NoteAttributes");null!==this.subjectDate&&void 0!==this.subjectDate&&(a.writeFieldBegin("subjectDate",Thrift.Type.I64,1),a.writeI64(this.subjectDate),a.writeFieldEnd());null!==this.latitude&&void 0!==this.latitude&&(a.writeFieldBegin("latitude",Thrift.Type.DOUBLE,10),a.writeDouble(this.latitude),a.writeFieldEnd());null!==this.longitude&&void 0!==this.longitude&&(a.writeFieldBegin("longitude",Thrift.Type.DOUBLE,11),a.writeDouble(this.longitude),
a.writeFieldEnd());null!==this.altitude&&void 0!==this.altitude&&(a.writeFieldBegin("altitude",Thrift.Type.DOUBLE,12),a.writeDouble(this.altitude),a.writeFieldEnd());null!==this.author&&void 0!==this.author&&(a.writeFieldBegin("author",Thrift.Type.STRING,13),a.writeString(this.author),a.writeFieldEnd());null!==this.source&&void 0!==this.source&&(a.writeFieldBegin("source",Thrift.Type.STRING,14),a.writeString(this.source),a.writeFieldEnd());null!==this.sourceURL&&void 0!==this.sourceURL&&(a.writeFieldBegin("sourceURL",
Thrift.Type.STRING,15),a.writeString(this.sourceURL),a.writeFieldEnd());null!==this.sourceApplication&&void 0!==this.sourceApplication&&(a.writeFieldBegin("sourceApplication",Thrift.Type.STRING,16),a.writeString(this.sourceApplication),a.writeFieldEnd());null!==this.shareDate&&void 0!==this.shareDate&&(a.writeFieldBegin("shareDate",Thrift.Type.I64,17),a.writeI64(this.shareDate),a.writeFieldEnd());null!==this.reminderOrder&&void 0!==this.reminderOrder&&(a.writeFieldBegin("reminderOrder",Thrift.Type.I64,
18),a.writeI64(this.reminderOrder),a.writeFieldEnd());null!==this.reminderDoneTime&&void 0!==this.reminderDoneTime&&(a.writeFieldBegin("reminderDoneTime",Thrift.Type.I64,19),a.writeI64(this.reminderDoneTime),a.writeFieldEnd());null!==this.reminderTime&&void 0!==this.reminderTime&&(a.writeFieldBegin("reminderTime",Thrift.Type.I64,20),a.writeI64(this.reminderTime),a.writeFieldEnd());null!==this.placeName&&void 0!==this.placeName&&(a.writeFieldBegin("placeName",Thrift.Type.STRING,21),a.writeString(this.placeName),
a.writeFieldEnd());null!==this.contentClass&&void 0!==this.contentClass&&(a.writeFieldBegin("contentClass",Thrift.Type.STRING,22),a.writeString(this.contentClass),a.writeFieldEnd());null!==this.applicationData&&void 0!==this.applicationData&&(a.writeFieldBegin("applicationData",Thrift.Type.STRUCT,23),this.applicationData.write(a),a.writeFieldEnd());null!==this.lastEditedBy&&void 0!==this.lastEditedBy&&(a.writeFieldBegin("lastEditedBy",Thrift.Type.STRING,24),a.writeString(this.lastEditedBy),a.writeFieldEnd());
if(null!==this.classifications&&void 0!==this.classifications){a.writeFieldBegin("classifications",Thrift.Type.MAP,26);a.writeMapBegin(Thrift.Type.STRING,Thrift.Type.STRING,Thrift.objectLength(this.classifications));for(var c in this.classifications)if(this.classifications.hasOwnProperty(c)){var b=this.classifications[c];a.writeString(c);a.writeString(b)}a.writeMapEnd();a.writeFieldEnd()}null!==this.creatorId&&void 0!==this.creatorId&&(a.writeFieldBegin("creatorId",Thrift.Type.I32,27),a.writeI32(this.creatorId),
a.writeFieldEnd());null!==this.lastEditorId&&void 0!==this.lastEditorId&&(a.writeFieldBegin("lastEditorId",Thrift.Type.I32,28),a.writeI32(this.lastEditorId),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
Note=function(a){this.tagNames=this.attributes=this.resources=this.tagGuids=this.notebookGuid=this.updateSequenceNum=this.active=this.deleted=this.updated=this.created=this.contentLength=this.contentHash=this.content=this.title=this.guid=null;a&&(void 0!==a.guid&&(this.guid=a.guid),void 0!==a.title&&(this.title=a.title),void 0!==a.content&&(this.content=a.content),void 0!==a.contentHash&&(this.contentHash=a.contentHash),void 0!==a.contentLength&&(this.contentLength=a.contentLength),void 0!==a.created&&
(this.created=a.created),void 0!==a.updated&&(this.updated=a.updated),void 0!==a.deleted&&(this.deleted=a.deleted),void 0!==a.active&&(this.active=a.active),void 0!==a.updateSequenceNum&&(this.updateSequenceNum=a.updateSequenceNum),void 0!==a.notebookGuid&&(this.notebookGuid=a.notebookGuid),void 0!==a.tagGuids&&(this.tagGuids=a.tagGuids),void 0!==a.resources&&(this.resources=a.resources),void 0!==a.attributes&&(this.attributes=a.attributes),void 0!==a.tagNames&&(this.tagNames=a.tagNames))};
Note.prototype={};
Note.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.title=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.STRING?this.content=a.readString().value:a.skip(b);break;case 4:b==Thrift.Type.STRING?this.contentHash=a.readBinary().value:a.skip(b);break;case 5:b==Thrift.Type.I32?this.contentLength=a.readI32().value:
a.skip(b);break;case 6:b==Thrift.Type.I64?this.created=a.readI64().value:a.skip(b);break;case 7:b==Thrift.Type.I64?this.updated=a.readI64().value:a.skip(b);break;case 8:b==Thrift.Type.I64?this.deleted=a.readI64().value:a.skip(b);break;case 9:b==Thrift.Type.BOOL?this.active=a.readBool().value:a.skip(b);break;case 10:b==Thrift.Type.I32?this.updateSequenceNum=a.readI32().value:a.skip(b);break;case 11:b==Thrift.Type.STRING?this.notebookGuid=a.readString().value:a.skip(b);break;case 12:if(b==Thrift.Type.LIST){c=
0;this.tagGuids=[];c=a.readListBegin().size;for(b=0;b<c;++b){var d=null,d=a.readString().value;this.tagGuids.push(d)}a.readListEnd()}else a.skip(b);break;case 13:if(b==Thrift.Type.LIST){c=0;this.resources=[];c=a.readListBegin().size;for(b=0;b<c;++b)d=null,d=new Resource,d.read(a),this.resources.push(d);a.readListEnd()}else a.skip(b);break;case 14:b==Thrift.Type.STRUCT?(this.attributes=new NoteAttributes,this.attributes.read(a)):a.skip(b);break;case 15:if(b==Thrift.Type.LIST){c=0;this.tagNames=[];
c=a.readListBegin().size;for(b=0;b<c;++b)d=null,d=a.readString().value,this.tagNames.push(d);a.readListEnd()}else a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
Note.prototype.write=function(a){a.writeStructBegin("Note");null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,1),a.writeString(this.guid),a.writeFieldEnd());null!==this.title&&void 0!==this.title&&(a.writeFieldBegin("title",Thrift.Type.STRING,2),a.writeString(this.title),a.writeFieldEnd());null!==this.content&&void 0!==this.content&&(a.writeFieldBegin("content",Thrift.Type.STRING,3),a.writeString(this.content),a.writeFieldEnd());null!==this.contentHash&&void 0!==this.contentHash&&
(a.writeFieldBegin("contentHash",Thrift.Type.STRING,4),a.writeBinary(this.contentHash),a.writeFieldEnd());null!==this.contentLength&&void 0!==this.contentLength&&(a.writeFieldBegin("contentLength",Thrift.Type.I32,5),a.writeI32(this.contentLength),a.writeFieldEnd());null!==this.created&&void 0!==this.created&&(a.writeFieldBegin("created",Thrift.Type.I64,6),a.writeI64(this.created),a.writeFieldEnd());null!==this.updated&&void 0!==this.updated&&(a.writeFieldBegin("updated",Thrift.Type.I64,7),a.writeI64(this.updated),
a.writeFieldEnd());null!==this.deleted&&void 0!==this.deleted&&(a.writeFieldBegin("deleted",Thrift.Type.I64,8),a.writeI64(this.deleted),a.writeFieldEnd());null!==this.active&&void 0!==this.active&&(a.writeFieldBegin("active",Thrift.Type.BOOL,9),a.writeBool(this.active),a.writeFieldEnd());null!==this.updateSequenceNum&&void 0!==this.updateSequenceNum&&(a.writeFieldBegin("updateSequenceNum",Thrift.Type.I32,10),a.writeI32(this.updateSequenceNum),a.writeFieldEnd());null!==this.notebookGuid&&void 0!==
this.notebookGuid&&(a.writeFieldBegin("notebookGuid",Thrift.Type.STRING,11),a.writeString(this.notebookGuid),a.writeFieldEnd());if(null!==this.tagGuids&&void 0!==this.tagGuids){a.writeFieldBegin("tagGuids",Thrift.Type.LIST,12);a.writeListBegin(Thrift.Type.STRING,this.tagGuids.length);for(var c in this.tagGuids)this.tagGuids.hasOwnProperty(c)&&(c=this.tagGuids[c],a.writeString(c));a.writeListEnd();a.writeFieldEnd()}if(null!==this.resources&&void 0!==this.resources){a.writeFieldBegin("resources",Thrift.Type.LIST,
13);a.writeListBegin(Thrift.Type.STRUCT,this.resources.length);for(var b in this.resources)this.resources.hasOwnProperty(b)&&(b=this.resources[b],b.write(a));a.writeListEnd();a.writeFieldEnd()}null!==this.attributes&&void 0!==this.attributes&&(a.writeFieldBegin("attributes",Thrift.Type.STRUCT,14),this.attributes.write(a),a.writeFieldEnd());if(null!==this.tagNames&&void 0!==this.tagNames){a.writeFieldBegin("tagNames",Thrift.Type.LIST,15);a.writeListBegin(Thrift.Type.STRING,this.tagNames.length);for(var d in this.tagNames)this.tagNames.hasOwnProperty(d)&&
(d=this.tagNames[d],a.writeString(d));a.writeListEnd();a.writeFieldEnd()}a.writeFieldStop();a.writeStructEnd()};Publishing=function(a){this.publicDescription=this.ascending=this.order=this.uri=null;a&&(void 0!==a.uri&&(this.uri=a.uri),void 0!==a.order&&(this.order=a.order),void 0!==a.ascending&&(this.ascending=a.ascending),void 0!==a.publicDescription&&(this.publicDescription=a.publicDescription))};Publishing.prototype={};
Publishing.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.uri=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.I32?this.order=a.readI32().value:a.skip(b);break;case 3:b==Thrift.Type.BOOL?this.ascending=a.readBool().value:a.skip(b);break;case 4:b==Thrift.Type.STRING?this.publicDescription=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
Publishing.prototype.write=function(a){a.writeStructBegin("Publishing");null!==this.uri&&void 0!==this.uri&&(a.writeFieldBegin("uri",Thrift.Type.STRING,1),a.writeString(this.uri),a.writeFieldEnd());null!==this.order&&void 0!==this.order&&(a.writeFieldBegin("order",Thrift.Type.I32,2),a.writeI32(this.order),a.writeFieldEnd());null!==this.ascending&&void 0!==this.ascending&&(a.writeFieldBegin("ascending",Thrift.Type.BOOL,3),a.writeBool(this.ascending),a.writeFieldEnd());null!==this.publicDescription&&
void 0!==this.publicDescription&&(a.writeFieldBegin("publicDescription",Thrift.Type.STRING,4),a.writeString(this.publicDescription),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};BusinessNotebook=function(a){this.recommended=this.privilege=this.notebookDescription=null;a&&(void 0!==a.notebookDescription&&(this.notebookDescription=a.notebookDescription),void 0!==a.privilege&&(this.privilege=a.privilege),void 0!==a.recommended&&(this.recommended=a.recommended))};
BusinessNotebook.prototype={};BusinessNotebook.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.notebookDescription=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.I32?this.privilege=a.readI32().value:a.skip(b);break;case 3:b==Thrift.Type.BOOL?this.recommended=a.readBool().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
BusinessNotebook.prototype.write=function(a){a.writeStructBegin("BusinessNotebook");null!==this.notebookDescription&&void 0!==this.notebookDescription&&(a.writeFieldBegin("notebookDescription",Thrift.Type.STRING,1),a.writeString(this.notebookDescription),a.writeFieldEnd());null!==this.privilege&&void 0!==this.privilege&&(a.writeFieldBegin("privilege",Thrift.Type.I32,2),a.writeI32(this.privilege),a.writeFieldEnd());null!==this.recommended&&void 0!==this.recommended&&(a.writeFieldBegin("recommended",
Thrift.Type.BOOL,3),a.writeBool(this.recommended),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};SavedSearchScope=function(a){this.includeBusinessLinkedNotebooks=this.includePersonalLinkedNotebooks=this.includeAccount=null;a&&(void 0!==a.includeAccount&&(this.includeAccount=a.includeAccount),void 0!==a.includePersonalLinkedNotebooks&&(this.includePersonalLinkedNotebooks=a.includePersonalLinkedNotebooks),void 0!==a.includeBusinessLinkedNotebooks&&(this.includeBusinessLinkedNotebooks=a.includeBusinessLinkedNotebooks))};
SavedSearchScope.prototype={};SavedSearchScope.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.BOOL?this.includeAccount=a.readBool().value:a.skip(b);break;case 2:b==Thrift.Type.BOOL?this.includePersonalLinkedNotebooks=a.readBool().value:a.skip(b);break;case 3:b==Thrift.Type.BOOL?this.includeBusinessLinkedNotebooks=a.readBool().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
SavedSearchScope.prototype.write=function(a){a.writeStructBegin("SavedSearchScope");null!==this.includeAccount&&void 0!==this.includeAccount&&(a.writeFieldBegin("includeAccount",Thrift.Type.BOOL,1),a.writeBool(this.includeAccount),a.writeFieldEnd());null!==this.includePersonalLinkedNotebooks&&void 0!==this.includePersonalLinkedNotebooks&&(a.writeFieldBegin("includePersonalLinkedNotebooks",Thrift.Type.BOOL,2),a.writeBool(this.includePersonalLinkedNotebooks),a.writeFieldEnd());null!==this.includeBusinessLinkedNotebooks&&
void 0!==this.includeBusinessLinkedNotebooks&&(a.writeFieldBegin("includeBusinessLinkedNotebooks",Thrift.Type.BOOL,3),a.writeBool(this.includeBusinessLinkedNotebooks),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
SavedSearch=function(a){this.scope=this.updateSequenceNum=this.format=this.query=this.name=this.guid=null;a&&(void 0!==a.guid&&(this.guid=a.guid),void 0!==a.name&&(this.name=a.name),void 0!==a.query&&(this.query=a.query),void 0!==a.format&&(this.format=a.format),void 0!==a.updateSequenceNum&&(this.updateSequenceNum=a.updateSequenceNum),void 0!==a.scope&&(this.scope=a.scope))};SavedSearch.prototype={};
SavedSearch.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.name=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.STRING?this.query=a.readString().value:a.skip(b);break;case 4:b==Thrift.Type.I32?this.format=a.readI32().value:a.skip(b);break;case 5:b==Thrift.Type.I32?this.updateSequenceNum=a.readI32().value:
a.skip(b);break;case 6:b==Thrift.Type.STRUCT?(this.scope=new SavedSearchScope,this.scope.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
SavedSearch.prototype.write=function(a){a.writeStructBegin("SavedSearch");null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,1),a.writeString(this.guid),a.writeFieldEnd());null!==this.name&&void 0!==this.name&&(a.writeFieldBegin("name",Thrift.Type.STRING,2),a.writeString(this.name),a.writeFieldEnd());null!==this.query&&void 0!==this.query&&(a.writeFieldBegin("query",Thrift.Type.STRING,3),a.writeString(this.query),a.writeFieldEnd());null!==this.format&&void 0!==this.format&&
(a.writeFieldBegin("format",Thrift.Type.I32,4),a.writeI32(this.format),a.writeFieldEnd());null!==this.updateSequenceNum&&void 0!==this.updateSequenceNum&&(a.writeFieldBegin("updateSequenceNum",Thrift.Type.I32,5),a.writeI32(this.updateSequenceNum),a.writeFieldEnd());null!==this.scope&&void 0!==this.scope&&(a.writeFieldBegin("scope",Thrift.Type.STRUCT,6),this.scope.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
SharedNotebookRecipientSettings=function(a){this.reminderNotifyInApp=this.reminderNotifyEmail=null;a&&(void 0!==a.reminderNotifyEmail&&(this.reminderNotifyEmail=a.reminderNotifyEmail),void 0!==a.reminderNotifyInApp&&(this.reminderNotifyInApp=a.reminderNotifyInApp))};SharedNotebookRecipientSettings.prototype={};
SharedNotebookRecipientSettings.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.BOOL?this.reminderNotifyEmail=a.readBool().value:a.skip(b);break;case 2:b==Thrift.Type.BOOL?this.reminderNotifyInApp=a.readBool().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
SharedNotebookRecipientSettings.prototype.write=function(a){a.writeStructBegin("SharedNotebookRecipientSettings");null!==this.reminderNotifyEmail&&void 0!==this.reminderNotifyEmail&&(a.writeFieldBegin("reminderNotifyEmail",Thrift.Type.BOOL,1),a.writeBool(this.reminderNotifyEmail),a.writeFieldEnd());null!==this.reminderNotifyInApp&&void 0!==this.reminderNotifyInApp&&(a.writeFieldBegin("reminderNotifyInApp",Thrift.Type.BOOL,2),a.writeBool(this.reminderNotifyInApp),a.writeFieldEnd());a.writeFieldStop();
a.writeStructEnd()};
SharedNotebook=function(a){this.recipientSettings=this.allowPreview=this.privilege=this.username=this.shareKey=this.serviceUpdated=this.serviceCreated=this.requireLogin=this.notebookModifiable=this.email=this.notebookGuid=this.userId=this.id=null;a&&(void 0!==a.id&&(this.id=a.id),void 0!==a.userId&&(this.userId=a.userId),void 0!==a.notebookGuid&&(this.notebookGuid=a.notebookGuid),void 0!==a.email&&(this.email=a.email),void 0!==a.notebookModifiable&&(this.notebookModifiable=a.notebookModifiable),void 0!==
a.requireLogin&&(this.requireLogin=a.requireLogin),void 0!==a.serviceCreated&&(this.serviceCreated=a.serviceCreated),void 0!==a.serviceUpdated&&(this.serviceUpdated=a.serviceUpdated),void 0!==a.shareKey&&(this.shareKey=a.shareKey),void 0!==a.username&&(this.username=a.username),void 0!==a.privilege&&(this.privilege=a.privilege),void 0!==a.allowPreview&&(this.allowPreview=a.allowPreview),void 0!==a.recipientSettings&&(this.recipientSettings=a.recipientSettings))};SharedNotebook.prototype={};
SharedNotebook.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.I64?this.id=a.readI64().value:a.skip(b);break;case 2:b==Thrift.Type.I32?this.userId=a.readI32().value:a.skip(b);break;case 3:b==Thrift.Type.STRING?this.notebookGuid=a.readString().value:a.skip(b);break;case 4:b==Thrift.Type.STRING?this.email=a.readString().value:a.skip(b);break;case 5:b==Thrift.Type.BOOL?this.notebookModifiable=a.readBool().value:
a.skip(b);break;case 6:b==Thrift.Type.BOOL?this.requireLogin=a.readBool().value:a.skip(b);break;case 7:b==Thrift.Type.I64?this.serviceCreated=a.readI64().value:a.skip(b);break;case 10:b==Thrift.Type.I64?this.serviceUpdated=a.readI64().value:a.skip(b);break;case 8:b==Thrift.Type.STRING?this.shareKey=a.readString().value:a.skip(b);break;case 9:b==Thrift.Type.STRING?this.username=a.readString().value:a.skip(b);break;case 11:b==Thrift.Type.I32?this.privilege=a.readI32().value:a.skip(b);break;case 12:b==
Thrift.Type.BOOL?this.allowPreview=a.readBool().value:a.skip(b);break;case 13:b==Thrift.Type.STRUCT?(this.recipientSettings=new SharedNotebookRecipientSettings,this.recipientSettings.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
SharedNotebook.prototype.write=function(a){a.writeStructBegin("SharedNotebook");null!==this.id&&void 0!==this.id&&(a.writeFieldBegin("id",Thrift.Type.I64,1),a.writeI64(this.id),a.writeFieldEnd());null!==this.userId&&void 0!==this.userId&&(a.writeFieldBegin("userId",Thrift.Type.I32,2),a.writeI32(this.userId),a.writeFieldEnd());null!==this.notebookGuid&&void 0!==this.notebookGuid&&(a.writeFieldBegin("notebookGuid",Thrift.Type.STRING,3),a.writeString(this.notebookGuid),a.writeFieldEnd());null!==this.email&&
void 0!==this.email&&(a.writeFieldBegin("email",Thrift.Type.STRING,4),a.writeString(this.email),a.writeFieldEnd());null!==this.notebookModifiable&&void 0!==this.notebookModifiable&&(a.writeFieldBegin("notebookModifiable",Thrift.Type.BOOL,5),a.writeBool(this.notebookModifiable),a.writeFieldEnd());null!==this.requireLogin&&void 0!==this.requireLogin&&(a.writeFieldBegin("requireLogin",Thrift.Type.BOOL,6),a.writeBool(this.requireLogin),a.writeFieldEnd());null!==this.serviceCreated&&void 0!==this.serviceCreated&&
(a.writeFieldBegin("serviceCreated",Thrift.Type.I64,7),a.writeI64(this.serviceCreated),a.writeFieldEnd());null!==this.serviceUpdated&&void 0!==this.serviceUpdated&&(a.writeFieldBegin("serviceUpdated",Thrift.Type.I64,10),a.writeI64(this.serviceUpdated),a.writeFieldEnd());null!==this.shareKey&&void 0!==this.shareKey&&(a.writeFieldBegin("shareKey",Thrift.Type.STRING,8),a.writeString(this.shareKey),a.writeFieldEnd());null!==this.username&&void 0!==this.username&&(a.writeFieldBegin("username",Thrift.Type.STRING,
9),a.writeString(this.username),a.writeFieldEnd());null!==this.privilege&&void 0!==this.privilege&&(a.writeFieldBegin("privilege",Thrift.Type.I32,11),a.writeI32(this.privilege),a.writeFieldEnd());null!==this.allowPreview&&void 0!==this.allowPreview&&(a.writeFieldBegin("allowPreview",Thrift.Type.BOOL,12),a.writeBool(this.allowPreview),a.writeFieldEnd());null!==this.recipientSettings&&void 0!==this.recipientSettings&&(a.writeFieldBegin("recipientSettings",Thrift.Type.STRUCT,13),this.recipientSettings.write(a),
a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NotebookRestrictions=function(a){this.expungeWhichSharedNotebookRestrictions=this.updateWhichSharedNotebookRestrictions=this.noCreateSharedNotebooks=this.noSetParentTag=this.noExpungeTags=this.noUpdateTags=this.noCreateTags=this.noPublishToBusinessLibrary=this.noPublishToPublic=this.noSetNotebookStack=this.noSetDefaultNotebook=this.noExpungeNotebook=this.noUpdateNotebook=this.noSendMessageToRecipients=this.noEmailNotes=this.noShareNotes=this.noExpungeNotes=this.noUpdateNotes=this.noCreateNotes=this.noReadNotes=
null;a&&(void 0!==a.noReadNotes&&(this.noReadNotes=a.noReadNotes),void 0!==a.noCreateNotes&&(this.noCreateNotes=a.noCreateNotes),void 0!==a.noUpdateNotes&&(this.noUpdateNotes=a.noUpdateNotes),void 0!==a.noExpungeNotes&&(this.noExpungeNotes=a.noExpungeNotes),void 0!==a.noShareNotes&&(this.noShareNotes=a.noShareNotes),void 0!==a.noEmailNotes&&(this.noEmailNotes=a.noEmailNotes),void 0!==a.noSendMessageToRecipients&&(this.noSendMessageToRecipients=a.noSendMessageToRecipients),void 0!==a.noUpdateNotebook&&
(this.noUpdateNotebook=a.noUpdateNotebook),void 0!==a.noExpungeNotebook&&(this.noExpungeNotebook=a.noExpungeNotebook),void 0!==a.noSetDefaultNotebook&&(this.noSetDefaultNotebook=a.noSetDefaultNotebook),void 0!==a.noSetNotebookStack&&(this.noSetNotebookStack=a.noSetNotebookStack),void 0!==a.noPublishToPublic&&(this.noPublishToPublic=a.noPublishToPublic),void 0!==a.noPublishToBusinessLibrary&&(this.noPublishToBusinessLibrary=a.noPublishToBusinessLibrary),void 0!==a.noCreateTags&&(this.noCreateTags=
a.noCreateTags),void 0!==a.noUpdateTags&&(this.noUpdateTags=a.noUpdateTags),void 0!==a.noExpungeTags&&(this.noExpungeTags=a.noExpungeTags),void 0!==a.noSetParentTag&&(this.noSetParentTag=a.noSetParentTag),void 0!==a.noCreateSharedNotebooks&&(this.noCreateSharedNotebooks=a.noCreateSharedNotebooks),void 0!==a.updateWhichSharedNotebookRestrictions&&(this.updateWhichSharedNotebookRestrictions=a.updateWhichSharedNotebookRestrictions),void 0!==a.expungeWhichSharedNotebookRestrictions&&(this.expungeWhichSharedNotebookRestrictions=
a.expungeWhichSharedNotebookRestrictions))};NotebookRestrictions.prototype={};
NotebookRestrictions.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.BOOL?this.noReadNotes=a.readBool().value:a.skip(b);break;case 2:b==Thrift.Type.BOOL?this.noCreateNotes=a.readBool().value:a.skip(b);break;case 3:b==Thrift.Type.BOOL?this.noUpdateNotes=a.readBool().value:a.skip(b);break;case 4:b==Thrift.Type.BOOL?this.noExpungeNotes=a.readBool().value:a.skip(b);break;case 5:b==Thrift.Type.BOOL?
this.noShareNotes=a.readBool().value:a.skip(b);break;case 6:b==Thrift.Type.BOOL?this.noEmailNotes=a.readBool().value:a.skip(b);break;case 7:b==Thrift.Type.BOOL?this.noSendMessageToRecipients=a.readBool().value:a.skip(b);break;case 8:b==Thrift.Type.BOOL?this.noUpdateNotebook=a.readBool().value:a.skip(b);break;case 9:b==Thrift.Type.BOOL?this.noExpungeNotebook=a.readBool().value:a.skip(b);break;case 10:b==Thrift.Type.BOOL?this.noSetDefaultNotebook=a.readBool().value:a.skip(b);break;case 11:b==Thrift.Type.BOOL?
this.noSetNotebookStack=a.readBool().value:a.skip(b);break;case 12:b==Thrift.Type.BOOL?this.noPublishToPublic=a.readBool().value:a.skip(b);break;case 13:b==Thrift.Type.BOOL?this.noPublishToBusinessLibrary=a.readBool().value:a.skip(b);break;case 14:b==Thrift.Type.BOOL?this.noCreateTags=a.readBool().value:a.skip(b);break;case 15:b==Thrift.Type.BOOL?this.noUpdateTags=a.readBool().value:a.skip(b);break;case 16:b==Thrift.Type.BOOL?this.noExpungeTags=a.readBool().value:a.skip(b);break;case 17:b==Thrift.Type.BOOL?
this.noSetParentTag=a.readBool().value:a.skip(b);break;case 18:b==Thrift.Type.BOOL?this.noCreateSharedNotebooks=a.readBool().value:a.skip(b);break;case 19:b==Thrift.Type.I32?this.updateWhichSharedNotebookRestrictions=a.readI32().value:a.skip(b);break;case 20:b==Thrift.Type.I32?this.expungeWhichSharedNotebookRestrictions=a.readI32().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NotebookRestrictions.prototype.write=function(a){a.writeStructBegin("NotebookRestrictions");null!==this.noReadNotes&&void 0!==this.noReadNotes&&(a.writeFieldBegin("noReadNotes",Thrift.Type.BOOL,1),a.writeBool(this.noReadNotes),a.writeFieldEnd());null!==this.noCreateNotes&&void 0!==this.noCreateNotes&&(a.writeFieldBegin("noCreateNotes",Thrift.Type.BOOL,2),a.writeBool(this.noCreateNotes),a.writeFieldEnd());null!==this.noUpdateNotes&&void 0!==this.noUpdateNotes&&(a.writeFieldBegin("noUpdateNotes",Thrift.Type.BOOL,
3),a.writeBool(this.noUpdateNotes),a.writeFieldEnd());null!==this.noExpungeNotes&&void 0!==this.noExpungeNotes&&(a.writeFieldBegin("noExpungeNotes",Thrift.Type.BOOL,4),a.writeBool(this.noExpungeNotes),a.writeFieldEnd());null!==this.noShareNotes&&void 0!==this.noShareNotes&&(a.writeFieldBegin("noShareNotes",Thrift.Type.BOOL,5),a.writeBool(this.noShareNotes),a.writeFieldEnd());null!==this.noEmailNotes&&void 0!==this.noEmailNotes&&(a.writeFieldBegin("noEmailNotes",Thrift.Type.BOOL,6),a.writeBool(this.noEmailNotes),
a.writeFieldEnd());null!==this.noSendMessageToRecipients&&void 0!==this.noSendMessageToRecipients&&(a.writeFieldBegin("noSendMessageToRecipients",Thrift.Type.BOOL,7),a.writeBool(this.noSendMessageToRecipients),a.writeFieldEnd());null!==this.noUpdateNotebook&&void 0!==this.noUpdateNotebook&&(a.writeFieldBegin("noUpdateNotebook",Thrift.Type.BOOL,8),a.writeBool(this.noUpdateNotebook),a.writeFieldEnd());null!==this.noExpungeNotebook&&void 0!==this.noExpungeNotebook&&(a.writeFieldBegin("noExpungeNotebook",
Thrift.Type.BOOL,9),a.writeBool(this.noExpungeNotebook),a.writeFieldEnd());null!==this.noSetDefaultNotebook&&void 0!==this.noSetDefaultNotebook&&(a.writeFieldBegin("noSetDefaultNotebook",Thrift.Type.BOOL,10),a.writeBool(this.noSetDefaultNotebook),a.writeFieldEnd());null!==this.noSetNotebookStack&&void 0!==this.noSetNotebookStack&&(a.writeFieldBegin("noSetNotebookStack",Thrift.Type.BOOL,11),a.writeBool(this.noSetNotebookStack),a.writeFieldEnd());null!==this.noPublishToPublic&&void 0!==this.noPublishToPublic&&
(a.writeFieldBegin("noPublishToPublic",Thrift.Type.BOOL,12),a.writeBool(this.noPublishToPublic),a.writeFieldEnd());null!==this.noPublishToBusinessLibrary&&void 0!==this.noPublishToBusinessLibrary&&(a.writeFieldBegin("noPublishToBusinessLibrary",Thrift.Type.BOOL,13),a.writeBool(this.noPublishToBusinessLibrary),a.writeFieldEnd());null!==this.noCreateTags&&void 0!==this.noCreateTags&&(a.writeFieldBegin("noCreateTags",Thrift.Type.BOOL,14),a.writeBool(this.noCreateTags),a.writeFieldEnd());null!==this.noUpdateTags&&
void 0!==this.noUpdateTags&&(a.writeFieldBegin("noUpdateTags",Thrift.Type.BOOL,15),a.writeBool(this.noUpdateTags),a.writeFieldEnd());null!==this.noExpungeTags&&void 0!==this.noExpungeTags&&(a.writeFieldBegin("noExpungeTags",Thrift.Type.BOOL,16),a.writeBool(this.noExpungeTags),a.writeFieldEnd());null!==this.noSetParentTag&&void 0!==this.noSetParentTag&&(a.writeFieldBegin("noSetParentTag",Thrift.Type.BOOL,17),a.writeBool(this.noSetParentTag),a.writeFieldEnd());null!==this.noCreateSharedNotebooks&&void 0!==
this.noCreateSharedNotebooks&&(a.writeFieldBegin("noCreateSharedNotebooks",Thrift.Type.BOOL,18),a.writeBool(this.noCreateSharedNotebooks),a.writeFieldEnd());null!==this.updateWhichSharedNotebookRestrictions&&void 0!==this.updateWhichSharedNotebookRestrictions&&(a.writeFieldBegin("updateWhichSharedNotebookRestrictions",Thrift.Type.I32,19),a.writeI32(this.updateWhichSharedNotebookRestrictions),a.writeFieldEnd());null!==this.expungeWhichSharedNotebookRestrictions&&void 0!==this.expungeWhichSharedNotebookRestrictions&&
(a.writeFieldBegin("expungeWhichSharedNotebookRestrictions",Thrift.Type.I32,20),a.writeI32(this.expungeWhichSharedNotebookRestrictions),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
Notebook=function(a){this.restrictions=this.contact=this.businessNotebook=this.sharedNotebooks=this.sharedNotebookIds=this.stack=this.published=this.publishing=this.serviceUpdated=this.serviceCreated=this.defaultNotebook=this.updateSequenceNum=this.name=this.guid=null;a&&(void 0!==a.guid&&(this.guid=a.guid),void 0!==a.name&&(this.name=a.name),void 0!==a.updateSequenceNum&&(this.updateSequenceNum=a.updateSequenceNum),void 0!==a.defaultNotebook&&(this.defaultNotebook=a.defaultNotebook),void 0!==a.serviceCreated&&
(this.serviceCreated=a.serviceCreated),void 0!==a.serviceUpdated&&(this.serviceUpdated=a.serviceUpdated),void 0!==a.publishing&&(this.publishing=a.publishing),void 0!==a.published&&(this.published=a.published),void 0!==a.stack&&(this.stack=a.stack),void 0!==a.sharedNotebookIds&&(this.sharedNotebookIds=a.sharedNotebookIds),void 0!==a.sharedNotebooks&&(this.sharedNotebooks=a.sharedNotebooks),void 0!==a.businessNotebook&&(this.businessNotebook=a.businessNotebook),void 0!==a.contact&&(this.contact=a.contact),
void 0!==a.restrictions&&(this.restrictions=a.restrictions))};Notebook.prototype={};
Notebook.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.name=a.readString().value:a.skip(b);break;case 5:b==Thrift.Type.I32?this.updateSequenceNum=a.readI32().value:a.skip(b);break;case 6:b==Thrift.Type.BOOL?this.defaultNotebook=a.readBool().value:a.skip(b);break;case 7:b==Thrift.Type.I64?this.serviceCreated=
a.readI64().value:a.skip(b);break;case 8:b==Thrift.Type.I64?this.serviceUpdated=a.readI64().value:a.skip(b);break;case 10:b==Thrift.Type.STRUCT?(this.publishing=new Publishing,this.publishing.read(a)):a.skip(b);break;case 11:b==Thrift.Type.BOOL?this.published=a.readBool().value:a.skip(b);break;case 12:b==Thrift.Type.STRING?this.stack=a.readString().value:a.skip(b);break;case 13:if(b==Thrift.Type.LIST){c=0;this.sharedNotebookIds=[];c=a.readListBegin().size;for(b=0;b<c;++b){var d=null,d=a.readI64().value;
this.sharedNotebookIds.push(d)}a.readListEnd()}else a.skip(b);break;case 14:if(b==Thrift.Type.LIST){c=0;this.sharedNotebooks=[];c=a.readListBegin().size;for(b=0;b<c;++b)d=null,d=new SharedNotebook,d.read(a),this.sharedNotebooks.push(d);a.readListEnd()}else a.skip(b);break;case 15:b==Thrift.Type.STRUCT?(this.businessNotebook=new BusinessNotebook,this.businessNotebook.read(a)):a.skip(b);break;case 16:b==Thrift.Type.STRUCT?(this.contact=new User,this.contact.read(a)):a.skip(b);break;case 17:b==Thrift.Type.STRUCT?
(this.restrictions=new NotebookRestrictions,this.restrictions.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
Notebook.prototype.write=function(a){a.writeStructBegin("Notebook");null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,1),a.writeString(this.guid),a.writeFieldEnd());null!==this.name&&void 0!==this.name&&(a.writeFieldBegin("name",Thrift.Type.STRING,2),a.writeString(this.name),a.writeFieldEnd());null!==this.updateSequenceNum&&void 0!==this.updateSequenceNum&&(a.writeFieldBegin("updateSequenceNum",Thrift.Type.I32,5),a.writeI32(this.updateSequenceNum),a.writeFieldEnd());
null!==this.defaultNotebook&&void 0!==this.defaultNotebook&&(a.writeFieldBegin("defaultNotebook",Thrift.Type.BOOL,6),a.writeBool(this.defaultNotebook),a.writeFieldEnd());null!==this.serviceCreated&&void 0!==this.serviceCreated&&(a.writeFieldBegin("serviceCreated",Thrift.Type.I64,7),a.writeI64(this.serviceCreated),a.writeFieldEnd());null!==this.serviceUpdated&&void 0!==this.serviceUpdated&&(a.writeFieldBegin("serviceUpdated",Thrift.Type.I64,8),a.writeI64(this.serviceUpdated),a.writeFieldEnd());null!==
this.publishing&&void 0!==this.publishing&&(a.writeFieldBegin("publishing",Thrift.Type.STRUCT,10),this.publishing.write(a),a.writeFieldEnd());null!==this.published&&void 0!==this.published&&(a.writeFieldBegin("published",Thrift.Type.BOOL,11),a.writeBool(this.published),a.writeFieldEnd());null!==this.stack&&void 0!==this.stack&&(a.writeFieldBegin("stack",Thrift.Type.STRING,12),a.writeString(this.stack),a.writeFieldEnd());if(null!==this.sharedNotebookIds&&void 0!==this.sharedNotebookIds){a.writeFieldBegin("sharedNotebookIds",
Thrift.Type.LIST,13);a.writeListBegin(Thrift.Type.I64,this.sharedNotebookIds.length);for(var c in this.sharedNotebookIds)this.sharedNotebookIds.hasOwnProperty(c)&&(c=this.sharedNotebookIds[c],a.writeI64(c));a.writeListEnd();a.writeFieldEnd()}if(null!==this.sharedNotebooks&&void 0!==this.sharedNotebooks){a.writeFieldBegin("sharedNotebooks",Thrift.Type.LIST,14);a.writeListBegin(Thrift.Type.STRUCT,this.sharedNotebooks.length);for(var b in this.sharedNotebooks)this.sharedNotebooks.hasOwnProperty(b)&&
(b=this.sharedNotebooks[b],b.write(a));a.writeListEnd();a.writeFieldEnd()}null!==this.businessNotebook&&void 0!==this.businessNotebook&&(a.writeFieldBegin("businessNotebook",Thrift.Type.STRUCT,15),this.businessNotebook.write(a),a.writeFieldEnd());null!==this.contact&&void 0!==this.contact&&(a.writeFieldBegin("contact",Thrift.Type.STRUCT,16),this.contact.write(a),a.writeFieldEnd());null!==this.restrictions&&void 0!==this.restrictions&&(a.writeFieldBegin("restrictions",Thrift.Type.STRUCT,17),this.restrictions.write(a),
a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
LinkedNotebook=function(a){this.businessId=this.stack=this.webApiUrlPrefix=this.noteStoreUrl=this.updateSequenceNum=this.guid=this.uri=this.shareKey=this.shardId=this.username=this.shareName=null;a&&(void 0!==a.shareName&&(this.shareName=a.shareName),void 0!==a.username&&(this.username=a.username),void 0!==a.shardId&&(this.shardId=a.shardId),void 0!==a.shareKey&&(this.shareKey=a.shareKey),void 0!==a.uri&&(this.uri=a.uri),void 0!==a.guid&&(this.guid=a.guid),void 0!==a.updateSequenceNum&&(this.updateSequenceNum=
a.updateSequenceNum),void 0!==a.noteStoreUrl&&(this.noteStoreUrl=a.noteStoreUrl),void 0!==a.webApiUrlPrefix&&(this.webApiUrlPrefix=a.webApiUrlPrefix),void 0!==a.stack&&(this.stack=a.stack),void 0!==a.businessId&&(this.businessId=a.businessId))};LinkedNotebook.prototype={};
LinkedNotebook.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 2:b==Thrift.Type.STRING?this.shareName=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.STRING?this.username=a.readString().value:a.skip(b);break;case 4:b==Thrift.Type.STRING?this.shardId=a.readString().value:a.skip(b);break;case 5:b==Thrift.Type.STRING?this.shareKey=a.readString().value:a.skip(b);break;case 6:b==Thrift.Type.STRING?this.uri=
a.readString().value:a.skip(b);break;case 7:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;case 8:b==Thrift.Type.I32?this.updateSequenceNum=a.readI32().value:a.skip(b);break;case 9:b==Thrift.Type.STRING?this.noteStoreUrl=a.readString().value:a.skip(b);break;case 10:b==Thrift.Type.STRING?this.webApiUrlPrefix=a.readString().value:a.skip(b);break;case 11:b==Thrift.Type.STRING?this.stack=a.readString().value:a.skip(b);break;case 12:b==Thrift.Type.I32?this.businessId=a.readI32().value:
a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
LinkedNotebook.prototype.write=function(a){a.writeStructBegin("LinkedNotebook");null!==this.shareName&&void 0!==this.shareName&&(a.writeFieldBegin("shareName",Thrift.Type.STRING,2),a.writeString(this.shareName),a.writeFieldEnd());null!==this.username&&void 0!==this.username&&(a.writeFieldBegin("username",Thrift.Type.STRING,3),a.writeString(this.username),a.writeFieldEnd());null!==this.shardId&&void 0!==this.shardId&&(a.writeFieldBegin("shardId",Thrift.Type.STRING,4),a.writeString(this.shardId),a.writeFieldEnd());
null!==this.shareKey&&void 0!==this.shareKey&&(a.writeFieldBegin("shareKey",Thrift.Type.STRING,5),a.writeString(this.shareKey),a.writeFieldEnd());null!==this.uri&&void 0!==this.uri&&(a.writeFieldBegin("uri",Thrift.Type.STRING,6),a.writeString(this.uri),a.writeFieldEnd());null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,7),a.writeString(this.guid),a.writeFieldEnd());null!==this.updateSequenceNum&&void 0!==this.updateSequenceNum&&(a.writeFieldBegin("updateSequenceNum",
Thrift.Type.I32,8),a.writeI32(this.updateSequenceNum),a.writeFieldEnd());null!==this.noteStoreUrl&&void 0!==this.noteStoreUrl&&(a.writeFieldBegin("noteStoreUrl",Thrift.Type.STRING,9),a.writeString(this.noteStoreUrl),a.writeFieldEnd());null!==this.webApiUrlPrefix&&void 0!==this.webApiUrlPrefix&&(a.writeFieldBegin("webApiUrlPrefix",Thrift.Type.STRING,10),a.writeString(this.webApiUrlPrefix),a.writeFieldEnd());null!==this.stack&&void 0!==this.stack&&(a.writeFieldBegin("stack",Thrift.Type.STRING,11),a.writeString(this.stack),
a.writeFieldEnd());null!==this.businessId&&void 0!==this.businessId&&(a.writeFieldBegin("businessId",Thrift.Type.I32,12),a.writeI32(this.businessId),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
NotebookDescriptor=function(a){this.joinedUserCount=this.hasSharedNotebook=this.contactName=this.notebookDisplayName=this.guid=null;a&&(void 0!==a.guid&&(this.guid=a.guid),void 0!==a.notebookDisplayName&&(this.notebookDisplayName=a.notebookDisplayName),void 0!==a.contactName&&(this.contactName=a.contactName),void 0!==a.hasSharedNotebook&&(this.hasSharedNotebook=a.hasSharedNotebook),void 0!==a.joinedUserCount&&(this.joinedUserCount=a.joinedUserCount))};NotebookDescriptor.prototype={};
NotebookDescriptor.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.guid=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.notebookDisplayName=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.STRING?this.contactName=a.readString().value:a.skip(b);break;case 4:b==Thrift.Type.BOOL?this.hasSharedNotebook=a.readBool().value:a.skip(b);break;case 5:b==Thrift.Type.I32?
this.joinedUserCount=a.readI32().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
NotebookDescriptor.prototype.write=function(a){a.writeStructBegin("NotebookDescriptor");null!==this.guid&&void 0!==this.guid&&(a.writeFieldBegin("guid",Thrift.Type.STRING,1),a.writeString(this.guid),a.writeFieldEnd());null!==this.notebookDisplayName&&void 0!==this.notebookDisplayName&&(a.writeFieldBegin("notebookDisplayName",Thrift.Type.STRING,2),a.writeString(this.notebookDisplayName),a.writeFieldEnd());null!==this.contactName&&void 0!==this.contactName&&(a.writeFieldBegin("contactName",Thrift.Type.STRING,
3),a.writeString(this.contactName),a.writeFieldEnd());null!==this.hasSharedNotebook&&void 0!==this.hasSharedNotebook&&(a.writeFieldBegin("hasSharedNotebook",Thrift.Type.BOOL,4),a.writeBool(this.hasSharedNotebook),a.writeFieldEnd());null!==this.joinedUserCount&&void 0!==this.joinedUserCount&&(a.writeFieldBegin("joinedUserCount",Thrift.Type.I32,5),a.writeI32(this.joinedUserCount),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
UserStore_checkVersion_args=function(a){this.clientName=null;this.edamVersionMajor=1;this.edamVersionMinor=25;a&&(void 0!==a.clientName&&(this.clientName=a.clientName),void 0!==a.edamVersionMajor&&(this.edamVersionMajor=a.edamVersionMajor),void 0!==a.edamVersionMinor&&(this.edamVersionMinor=a.edamVersionMinor))};UserStore_checkVersion_args.prototype={};
UserStore_checkVersion_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.clientName=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.I16?this.edamVersionMajor=a.readI16().value:a.skip(b);break;case 3:b==Thrift.Type.I16?this.edamVersionMinor=a.readI16().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_checkVersion_args.prototype.write=function(a){a.writeStructBegin("UserStore_checkVersion_args");null!==this.clientName&&void 0!==this.clientName&&(a.writeFieldBegin("clientName",Thrift.Type.STRING,1),a.writeString(this.clientName),a.writeFieldEnd());null!==this.edamVersionMajor&&void 0!==this.edamVersionMajor&&(a.writeFieldBegin("edamVersionMajor",Thrift.Type.I16,2),a.writeI16(this.edamVersionMajor),a.writeFieldEnd());null!==this.edamVersionMinor&&void 0!==this.edamVersionMinor&&(a.writeFieldBegin("edamVersionMinor",
Thrift.Type.I16,3),a.writeI16(this.edamVersionMinor),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};UserStore_checkVersion_result=function(a){this.success=null;a&&void 0!==a.success&&(this.success=a.success)};UserStore_checkVersion_result.prototype={};
UserStore_checkVersion_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.BOOL?this.success=a.readBool().value:a.skip(b);break;case 0:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_checkVersion_result.prototype.write=function(a){a.writeStructBegin("UserStore_checkVersion_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.BOOL,0),a.writeBool(this.success),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};UserStore_getBootstrapInfo_args=function(a){this.locale=null;a&&void 0!==a.locale&&(this.locale=a.locale)};UserStore_getBootstrapInfo_args.prototype={};
UserStore_getBootstrapInfo_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.locale=a.readString().value:a.skip(b);break;case 0:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_getBootstrapInfo_args.prototype.write=function(a){a.writeStructBegin("UserStore_getBootstrapInfo_args");null!==this.locale&&void 0!==this.locale&&(a.writeFieldBegin("locale",Thrift.Type.STRING,1),a.writeString(this.locale),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};UserStore_getBootstrapInfo_result=function(a){this.success=null;a&&void 0!==a.success&&(this.success=a.success)};UserStore_getBootstrapInfo_result.prototype={};
UserStore_getBootstrapInfo_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new BootstrapInfo,this.success.read(a)):a.skip(b);break;case 0:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_getBootstrapInfo_result.prototype.write=function(a){a.writeStructBegin("UserStore_getBootstrapInfo_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
UserStore_authenticate_args=function(a){this.supportsTwoFactor=this.consumerSecret=this.consumerKey=this.password=this.username=null;a&&(void 0!==a.username&&(this.username=a.username),void 0!==a.password&&(this.password=a.password),void 0!==a.consumerKey&&(this.consumerKey=a.consumerKey),void 0!==a.consumerSecret&&(this.consumerSecret=a.consumerSecret),void 0!==a.supportsTwoFactor&&(this.supportsTwoFactor=a.supportsTwoFactor))};UserStore_authenticate_args.prototype={};
UserStore_authenticate_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.username=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.password=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.STRING?this.consumerKey=a.readString().value:a.skip(b);break;case 4:b==Thrift.Type.STRING?this.consumerSecret=a.readString().value:a.skip(b);break;case 5:b==Thrift.Type.BOOL?
this.supportsTwoFactor=a.readBool().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_authenticate_args.prototype.write=function(a){a.writeStructBegin("UserStore_authenticate_args");null!==this.username&&void 0!==this.username&&(a.writeFieldBegin("username",Thrift.Type.STRING,1),a.writeString(this.username),a.writeFieldEnd());null!==this.password&&void 0!==this.password&&(a.writeFieldBegin("password",Thrift.Type.STRING,2),a.writeString(this.password),a.writeFieldEnd());null!==this.consumerKey&&void 0!==this.consumerKey&&(a.writeFieldBegin("consumerKey",Thrift.Type.STRING,
3),a.writeString(this.consumerKey),a.writeFieldEnd());null!==this.consumerSecret&&void 0!==this.consumerSecret&&(a.writeFieldBegin("consumerSecret",Thrift.Type.STRING,4),a.writeString(this.consumerSecret),a.writeFieldEnd());null!==this.supportsTwoFactor&&void 0!==this.supportsTwoFactor&&(a.writeFieldBegin("supportsTwoFactor",Thrift.Type.BOOL,5),a.writeBool(this.supportsTwoFactor),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
UserStore_authenticate_result=function(a){this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException))};UserStore_authenticate_result.prototype={};
UserStore_authenticate_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new AuthenticationResult,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;
default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_authenticate_result.prototype.write=function(a){a.writeStructBegin("UserStore_authenticate_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
UserStore_authenticateLongSession_args=function(a){this.supportsTwoFactor=this.deviceDescription=this.deviceIdentifier=this.consumerSecret=this.consumerKey=this.password=this.username=null;a&&(void 0!==a.username&&(this.username=a.username),void 0!==a.password&&(this.password=a.password),void 0!==a.consumerKey&&(this.consumerKey=a.consumerKey),void 0!==a.consumerSecret&&(this.consumerSecret=a.consumerSecret),void 0!==a.deviceIdentifier&&(this.deviceIdentifier=a.deviceIdentifier),void 0!==a.deviceDescription&&
(this.deviceDescription=a.deviceDescription),void 0!==a.supportsTwoFactor&&(this.supportsTwoFactor=a.supportsTwoFactor))};UserStore_authenticateLongSession_args.prototype={};
UserStore_authenticateLongSession_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.username=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.password=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.STRING?this.consumerKey=a.readString().value:a.skip(b);break;case 4:b==Thrift.Type.STRING?this.consumerSecret=a.readString().value:a.skip(b);break;case 5:b==
Thrift.Type.STRING?this.deviceIdentifier=a.readString().value:a.skip(b);break;case 6:b==Thrift.Type.STRING?this.deviceDescription=a.readString().value:a.skip(b);break;case 7:b==Thrift.Type.BOOL?this.supportsTwoFactor=a.readBool().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_authenticateLongSession_args.prototype.write=function(a){a.writeStructBegin("UserStore_authenticateLongSession_args");null!==this.username&&void 0!==this.username&&(a.writeFieldBegin("username",Thrift.Type.STRING,1),a.writeString(this.username),a.writeFieldEnd());null!==this.password&&void 0!==this.password&&(a.writeFieldBegin("password",Thrift.Type.STRING,2),a.writeString(this.password),a.writeFieldEnd());null!==this.consumerKey&&void 0!==this.consumerKey&&(a.writeFieldBegin("consumerKey",
Thrift.Type.STRING,3),a.writeString(this.consumerKey),a.writeFieldEnd());null!==this.consumerSecret&&void 0!==this.consumerSecret&&(a.writeFieldBegin("consumerSecret",Thrift.Type.STRING,4),a.writeString(this.consumerSecret),a.writeFieldEnd());null!==this.deviceIdentifier&&void 0!==this.deviceIdentifier&&(a.writeFieldBegin("deviceIdentifier",Thrift.Type.STRING,5),a.writeString(this.deviceIdentifier),a.writeFieldEnd());null!==this.deviceDescription&&void 0!==this.deviceDescription&&(a.writeFieldBegin("deviceDescription",
Thrift.Type.STRING,6),a.writeString(this.deviceDescription),a.writeFieldEnd());null!==this.supportsTwoFactor&&void 0!==this.supportsTwoFactor&&(a.writeFieldBegin("supportsTwoFactor",Thrift.Type.BOOL,7),a.writeBool(this.supportsTwoFactor),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
UserStore_authenticateLongSession_result=function(a){this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException))};UserStore_authenticateLongSession_result.prototype={};
UserStore_authenticateLongSession_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new AuthenticationResult,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);
break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_authenticateLongSession_result.prototype.write=function(a){a.writeStructBegin("UserStore_authenticateLongSession_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
UserStore_completeTwoFactorAuthentication_args=function(a){this.deviceDescription=this.deviceIdentifier=this.oneTimeCode=this.authenticationToken=null;a&&(void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.oneTimeCode&&(this.oneTimeCode=a.oneTimeCode),void 0!==a.deviceIdentifier&&(this.deviceIdentifier=a.deviceIdentifier),void 0!==a.deviceDescription&&(this.deviceDescription=a.deviceDescription))};UserStore_completeTwoFactorAuthentication_args.prototype={};
UserStore_completeTwoFactorAuthentication_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.oneTimeCode=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.STRING?this.deviceIdentifier=a.readString().value:a.skip(b);break;case 4:b==Thrift.Type.STRING?this.deviceDescription=a.readString().value:
a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_completeTwoFactorAuthentication_args.prototype.write=function(a){a.writeStructBegin("UserStore_completeTwoFactorAuthentication_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.oneTimeCode&&void 0!==this.oneTimeCode&&(a.writeFieldBegin("oneTimeCode",Thrift.Type.STRING,2),a.writeString(this.oneTimeCode),a.writeFieldEnd());null!==this.deviceIdentifier&&
void 0!==this.deviceIdentifier&&(a.writeFieldBegin("deviceIdentifier",Thrift.Type.STRING,3),a.writeString(this.deviceIdentifier),a.writeFieldEnd());null!==this.deviceDescription&&void 0!==this.deviceDescription&&(a.writeFieldBegin("deviceDescription",Thrift.Type.STRING,4),a.writeString(this.deviceDescription),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
UserStore_completeTwoFactorAuthentication_result=function(a){this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException))};UserStore_completeTwoFactorAuthentication_result.prototype={};
UserStore_completeTwoFactorAuthentication_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new AuthenticationResult,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):
a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_completeTwoFactorAuthentication_result.prototype.write=function(a){a.writeStructBegin("UserStore_completeTwoFactorAuthentication_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&
(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};UserStore_revokeLongSession_args=function(a){this.authenticationToken=null;a&&void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken)};UserStore_revokeLongSession_args.prototype={};
UserStore_revokeLongSession_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 0:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_revokeLongSession_args.prototype.write=function(a){a.writeStructBegin("UserStore_revokeLongSession_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
UserStore_revokeLongSession_result=function(a){this.systemException=this.userException=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException))};UserStore_revokeLongSession_result.prototype={};
UserStore_revokeLongSession_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_revokeLongSession_result.prototype.write=function(a){a.writeStructBegin("UserStore_revokeLongSession_result");null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
UserStore_authenticateToBusiness_args=function(a){this.authenticationToken=null;a&&void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken)};UserStore_authenticateToBusiness_args.prototype={};UserStore_authenticateToBusiness_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 0:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_authenticateToBusiness_args.prototype.write=function(a){a.writeStructBegin("UserStore_authenticateToBusiness_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
UserStore_authenticateToBusiness_result=function(a){this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException))};UserStore_authenticateToBusiness_result.prototype={};
UserStore_authenticateToBusiness_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new AuthenticationResult,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);
break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_authenticateToBusiness_result.prototype.write=function(a){a.writeStructBegin("UserStore_authenticateToBusiness_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};UserStore_refreshAuthentication_args=function(a){this.authenticationToken=null;a&&void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken)};UserStore_refreshAuthentication_args.prototype={};
UserStore_refreshAuthentication_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 0:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_refreshAuthentication_args.prototype.write=function(a){a.writeStructBegin("UserStore_refreshAuthentication_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
UserStore_refreshAuthentication_result=function(a){this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException))};UserStore_refreshAuthentication_result.prototype={};
UserStore_refreshAuthentication_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new AuthenticationResult,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);
break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_refreshAuthentication_result.prototype.write=function(a){a.writeStructBegin("UserStore_refreshAuthentication_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};UserStore_getUser_args=function(a){this.authenticationToken=null;a&&void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken)};UserStore_getUser_args.prototype={};
UserStore_getUser_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 0:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_getUser_args.prototype.write=function(a){a.writeStructBegin("UserStore_getUser_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
UserStore_getUser_result=function(a){this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException))};UserStore_getUser_result.prototype={};
UserStore_getUser_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new User,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_getUser_result.prototype.write=function(a){a.writeStructBegin("UserStore_getUser_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",Thrift.Type.STRUCT,
2),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};UserStore_getPublicUserInfo_args=function(a){this.username=null;a&&void 0!==a.username&&(this.username=a.username)};UserStore_getPublicUserInfo_args.prototype={};
UserStore_getPublicUserInfo_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.username=a.readString().value:a.skip(b);break;case 0:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_getPublicUserInfo_args.prototype.write=function(a){a.writeStructBegin("UserStore_getPublicUserInfo_args");null!==this.username&&void 0!==this.username&&(a.writeFieldBegin("username",Thrift.Type.STRING,1),a.writeString(this.username),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
UserStore_getPublicUserInfo_result=function(a){this.userException=this.systemException=this.notFoundException=this.success=null;a instanceof EDAMNotFoundException?this.notFoundException=a:a instanceof EDAMSystemException?this.systemException=a:a instanceof EDAMUserException?this.userException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.notFoundException&&(this.notFoundException=a.notFoundException),void 0!==a.systemException&&(this.systemException=a.systemException),void 0!==a.userException&&
(this.userException=a.userException))};UserStore_getPublicUserInfo_result.prototype={};
UserStore_getPublicUserInfo_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new PublicUserInfo,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.notFoundException=new EDAMNotFoundException,this.notFoundException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);
break;case 3:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_getPublicUserInfo_result.prototype.write=function(a){a.writeStructBegin("UserStore_getPublicUserInfo_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.notFoundException&&void 0!==this.notFoundException&&(a.writeFieldBegin("notFoundException",Thrift.Type.STRUCT,1),this.notFoundException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,3),this.userException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};UserStore_getPremiumInfo_args=function(a){this.authenticationToken=null;a&&void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken)};UserStore_getPremiumInfo_args.prototype={};
UserStore_getPremiumInfo_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 0:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_getPremiumInfo_args.prototype.write=function(a){a.writeStructBegin("UserStore_getPremiumInfo_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
UserStore_getPremiumInfo_result=function(a){this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException))};UserStore_getPremiumInfo_result.prototype={};
UserStore_getPremiumInfo_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRUCT?(this.success=new PremiumInfo,this.success.read(a)):a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_getPremiumInfo_result.prototype.write=function(a){a.writeStructBegin("UserStore_getPremiumInfo_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRUCT,0),this.success.write(a),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};UserStore_getNoteStoreUrl_args=function(a){this.authenticationToken=null;a&&void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken)};UserStore_getNoteStoreUrl_args.prototype={};
UserStore_getNoteStoreUrl_args.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 0:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_getNoteStoreUrl_args.prototype.write=function(a){a.writeStructBegin("UserStore_getNoteStoreUrl_args");null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,1),a.writeString(this.authenticationToken),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
UserStore_getNoteStoreUrl_result=function(a){this.systemException=this.userException=this.success=null;a instanceof EDAMUserException?this.userException=a:a instanceof EDAMSystemException?this.systemException=a:a&&(void 0!==a.success&&(this.success=a.success),void 0!==a.userException&&(this.userException=a.userException),void 0!==a.systemException&&(this.systemException=a.systemException))};UserStore_getNoteStoreUrl_result.prototype={};
UserStore_getNoteStoreUrl_result.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 0:b==Thrift.Type.STRING?this.success=a.readString().value:a.skip(b);break;case 1:b==Thrift.Type.STRUCT?(this.userException=new EDAMUserException,this.userException.read(a)):a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.systemException=new EDAMSystemException,this.systemException.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
UserStore_getNoteStoreUrl_result.prototype.write=function(a){a.writeStructBegin("UserStore_getNoteStoreUrl_result");null!==this.success&&void 0!==this.success&&(a.writeFieldBegin("success",Thrift.Type.STRING,0),a.writeString(this.success),a.writeFieldEnd());null!==this.userException&&void 0!==this.userException&&(a.writeFieldBegin("userException",Thrift.Type.STRUCT,1),this.userException.write(a),a.writeFieldEnd());null!==this.systemException&&void 0!==this.systemException&&(a.writeFieldBegin("systemException",
Thrift.Type.STRUCT,2),this.systemException.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};UserStoreClient=function(a,c){this.input=a;this.output=!c?a:c;this.seqid=0};UserStoreClient.prototype={};UserStoreClient.prototype.checkVersion=function(a,c,b,d){if(void 0===d)return this.send_checkVersion(a,c,b),this.recv_checkVersion();var e=this.send_checkVersion(a,c,b,!0);return this.output.getTransport().send(this,e,arguments,this.recv_checkVersion)};
UserStoreClient.prototype.send_checkVersion=function(a,c,b,d){this.output.writeMessageBegin("checkVersion",Thrift.MessageType.CALL,this.seqid);var e=new UserStore_checkVersion_args;e.clientName=a;e.edamVersionMajor=c;e.edamVersionMinor=b;e.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(d)};
UserStoreClient.prototype.recv_checkVersion=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new UserStore_checkVersion_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.success)return a.success;throw"checkVersion failed: unknown result";};
UserStoreClient.prototype.getBootstrapInfo=function(a,c){if(void 0===c)return this.send_getBootstrapInfo(a),this.recv_getBootstrapInfo();var b=this.send_getBootstrapInfo(a,!0);return this.output.getTransport().send(this,b,arguments,this.recv_getBootstrapInfo)};
UserStoreClient.prototype.send_getBootstrapInfo=function(a,c){this.output.writeMessageBegin("getBootstrapInfo",Thrift.MessageType.CALL,this.seqid);var b=new UserStore_getBootstrapInfo_args;b.locale=a;b.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(c)};
UserStoreClient.prototype.recv_getBootstrapInfo=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new UserStore_getBootstrapInfo_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.success)return a.success;throw"getBootstrapInfo failed: unknown result";};
UserStoreClient.prototype.authenticate=function(a,c,b,d,e,f){if(void 0===f)return this.send_authenticate(a,c,b,d,e),this.recv_authenticate();var g=this.send_authenticate(a,c,b,d,e,!0);return this.output.getTransport().send(this,g,arguments,this.recv_authenticate)};
UserStoreClient.prototype.send_authenticate=function(a,c,b,d,e,f){this.output.writeMessageBegin("authenticate",Thrift.MessageType.CALL,this.seqid);var g=new UserStore_authenticate_args;g.username=a;g.password=c;g.consumerKey=b;g.consumerSecret=d;g.supportsTwoFactor=e;g.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(f)};
UserStoreClient.prototype.recv_authenticate=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new UserStore_authenticate_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;throw"authenticate failed: unknown result";};
UserStoreClient.prototype.authenticateLongSession=function(a,c,b,d,e,f,g,h){if(void 0===h)return this.send_authenticateLongSession(a,c,b,d,e,f,g),this.recv_authenticateLongSession();var j=this.send_authenticateLongSession(a,c,b,d,e,f,g,!0);return this.output.getTransport().send(this,j,arguments,this.recv_authenticateLongSession)};
UserStoreClient.prototype.send_authenticateLongSession=function(a,c,b,d,e,f,g,h){this.output.writeMessageBegin("authenticateLongSession",Thrift.MessageType.CALL,this.seqid);var j=new UserStore_authenticateLongSession_args;j.username=a;j.password=c;j.consumerKey=b;j.consumerSecret=d;j.deviceIdentifier=e;j.deviceDescription=f;j.supportsTwoFactor=g;j.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(h)};
UserStoreClient.prototype.recv_authenticateLongSession=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new UserStore_authenticateLongSession_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;throw"authenticateLongSession failed: unknown result";
};UserStoreClient.prototype.completeTwoFactorAuthentication=function(a,c,b,d,e){if(void 0===e)return this.send_completeTwoFactorAuthentication(a,c,b,d),this.recv_completeTwoFactorAuthentication();var f=this.send_completeTwoFactorAuthentication(a,c,b,d,!0);return this.output.getTransport().send(this,f,arguments,this.recv_completeTwoFactorAuthentication)};
UserStoreClient.prototype.send_completeTwoFactorAuthentication=function(a,c,b,d,e){this.output.writeMessageBegin("completeTwoFactorAuthentication",Thrift.MessageType.CALL,this.seqid);var f=new UserStore_completeTwoFactorAuthentication_args;f.authenticationToken=a;f.oneTimeCode=c;f.deviceIdentifier=b;f.deviceDescription=d;f.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(e)};
UserStoreClient.prototype.recv_completeTwoFactorAuthentication=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new UserStore_completeTwoFactorAuthentication_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;throw"completeTwoFactorAuthentication failed: unknown result";
};UserStoreClient.prototype.revokeLongSession=function(a,c){if(void 0===c)this.send_revokeLongSession(a),this.recv_revokeLongSession();else{var b=this.send_revokeLongSession(a,!0);return this.output.getTransport().send(this,b,arguments,this.recv_revokeLongSession)}};
UserStoreClient.prototype.send_revokeLongSession=function(a,c){this.output.writeMessageBegin("revokeLongSession",Thrift.MessageType.CALL,this.seqid);var b=new UserStore_revokeLongSession_args;b.authenticationToken=a;b.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(c)};
UserStoreClient.prototype.recv_revokeLongSession=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new UserStore_revokeLongSession_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;};
UserStoreClient.prototype.authenticateToBusiness=function(a,c){if(void 0===c)return this.send_authenticateToBusiness(a),this.recv_authenticateToBusiness();var b=this.send_authenticateToBusiness(a,!0);return this.output.getTransport().send(this,b,arguments,this.recv_authenticateToBusiness)};
UserStoreClient.prototype.send_authenticateToBusiness=function(a,c){this.output.writeMessageBegin("authenticateToBusiness",Thrift.MessageType.CALL,this.seqid);var b=new UserStore_authenticateToBusiness_args;b.authenticationToken=a;b.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(c)};
UserStoreClient.prototype.recv_authenticateToBusiness=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new UserStore_authenticateToBusiness_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;throw"authenticateToBusiness failed: unknown result";
};UserStoreClient.prototype.refreshAuthentication=function(a,c){if(void 0===c)return this.send_refreshAuthentication(a),this.recv_refreshAuthentication();var b=this.send_refreshAuthentication(a,!0);return this.output.getTransport().send(this,b,arguments,this.recv_refreshAuthentication)};
UserStoreClient.prototype.send_refreshAuthentication=function(a,c){this.output.writeMessageBegin("refreshAuthentication",Thrift.MessageType.CALL,this.seqid);var b=new UserStore_refreshAuthentication_args;b.authenticationToken=a;b.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(c)};
UserStoreClient.prototype.recv_refreshAuthentication=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new UserStore_refreshAuthentication_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;throw"refreshAuthentication failed: unknown result";
};UserStoreClient.prototype.getUser=function(a,c){if(void 0===c)return this.send_getUser(a),this.recv_getUser();var b=this.send_getUser(a,!0);return this.output.getTransport().send(this,b,arguments,this.recv_getUser)};UserStoreClient.prototype.send_getUser=function(a,c){this.output.writeMessageBegin("getUser",Thrift.MessageType.CALL,this.seqid);var b=new UserStore_getUser_args;b.authenticationToken=a;b.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(c)};
UserStoreClient.prototype.recv_getUser=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new UserStore_getUser_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;throw"getUser failed: unknown result";};
UserStoreClient.prototype.getPublicUserInfo=function(a,c){if(void 0===c)return this.send_getPublicUserInfo(a),this.recv_getPublicUserInfo();var b=this.send_getPublicUserInfo(a,!0);return this.output.getTransport().send(this,b,arguments,this.recv_getPublicUserInfo)};
UserStoreClient.prototype.send_getPublicUserInfo=function(a,c){this.output.writeMessageBegin("getPublicUserInfo",Thrift.MessageType.CALL,this.seqid);var b=new UserStore_getPublicUserInfo_args;b.username=a;b.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(c)};
UserStoreClient.prototype.recv_getPublicUserInfo=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new UserStore_getPublicUserInfo_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.notFoundException)throw a.notFoundException;if(null!==a.systemException)throw a.systemException;if(null!==a.userException)throw a.userException;if(null!==a.success)return a.success;
throw"getPublicUserInfo failed: unknown result";};UserStoreClient.prototype.getPremiumInfo=function(a,c){if(void 0===c)return this.send_getPremiumInfo(a),this.recv_getPremiumInfo();var b=this.send_getPremiumInfo(a,!0);return this.output.getTransport().send(this,b,arguments,this.recv_getPremiumInfo)};
UserStoreClient.prototype.send_getPremiumInfo=function(a,c){this.output.writeMessageBegin("getPremiumInfo",Thrift.MessageType.CALL,this.seqid);var b=new UserStore_getPremiumInfo_args;b.authenticationToken=a;b.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(c)};
UserStoreClient.prototype.recv_getPremiumInfo=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new UserStore_getPremiumInfo_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;throw"getPremiumInfo failed: unknown result";};
UserStoreClient.prototype.getNoteStoreUrl=function(a,c){if(void 0===c)return this.send_getNoteStoreUrl(a),this.recv_getNoteStoreUrl();var b=this.send_getNoteStoreUrl(a,!0);return this.output.getTransport().send(this,b,arguments,this.recv_getNoteStoreUrl)};
UserStoreClient.prototype.send_getNoteStoreUrl=function(a,c){this.output.writeMessageBegin("getNoteStoreUrl",Thrift.MessageType.CALL,this.seqid);var b=new UserStore_getNoteStoreUrl_args;b.authenticationToken=a;b.write(this.output);this.output.writeMessageEnd();return this.output.getTransport().flush(c)};
UserStoreClient.prototype.recv_getNoteStoreUrl=function(){if(this.input.readMessageBegin().mtype==Thrift.MessageType.EXCEPTION){var a=new Thrift.TApplicationException;a.read(this.input);this.input.readMessageEnd();throw a;}a=new UserStore_getNoteStoreUrl_result;a.read(this.input);this.input.readMessageEnd();if(null!==a.userException)throw a.userException;if(null!==a.systemException)throw a.systemException;if(null!==a.success)return a.success;throw"getNoteStoreUrl failed: unknown result";};
EDAM_VERSION_MAJOR=1;EDAM_VERSION_MINOR=25;PublicUserInfo=function(a){this.webApiUrlPrefix=this.noteStoreUrl=this.username=this.privilege=this.shardId=this.userId=null;a&&(void 0!==a.userId&&(this.userId=a.userId),void 0!==a.shardId&&(this.shardId=a.shardId),void 0!==a.privilege&&(this.privilege=a.privilege),void 0!==a.username&&(this.username=a.username),void 0!==a.noteStoreUrl&&(this.noteStoreUrl=a.noteStoreUrl),void 0!==a.webApiUrlPrefix&&(this.webApiUrlPrefix=a.webApiUrlPrefix))};
PublicUserInfo.prototype={};
PublicUserInfo.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.I32?this.userId=a.readI32().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.shardId=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.I32?this.privilege=a.readI32().value:a.skip(b);break;case 4:b==Thrift.Type.STRING?this.username=a.readString().value:a.skip(b);break;case 5:b==Thrift.Type.STRING?this.noteStoreUrl=a.readString().value:
a.skip(b);break;case 6:b==Thrift.Type.STRING?this.webApiUrlPrefix=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
PublicUserInfo.prototype.write=function(a){a.writeStructBegin("PublicUserInfo");null!==this.userId&&void 0!==this.userId&&(a.writeFieldBegin("userId",Thrift.Type.I32,1),a.writeI32(this.userId),a.writeFieldEnd());null!==this.shardId&&void 0!==this.shardId&&(a.writeFieldBegin("shardId",Thrift.Type.STRING,2),a.writeString(this.shardId),a.writeFieldEnd());null!==this.privilege&&void 0!==this.privilege&&(a.writeFieldBegin("privilege",Thrift.Type.I32,3),a.writeI32(this.privilege),a.writeFieldEnd());null!==
this.username&&void 0!==this.username&&(a.writeFieldBegin("username",Thrift.Type.STRING,4),a.writeString(this.username),a.writeFieldEnd());null!==this.noteStoreUrl&&void 0!==this.noteStoreUrl&&(a.writeFieldBegin("noteStoreUrl",Thrift.Type.STRING,5),a.writeString(this.noteStoreUrl),a.writeFieldEnd());null!==this.webApiUrlPrefix&&void 0!==this.webApiUrlPrefix&&(a.writeFieldBegin("webApiUrlPrefix",Thrift.Type.STRING,6),a.writeString(this.webApiUrlPrefix),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
AuthenticationResult=function(a){this.secondFactorDeliveryHint=this.secondFactorRequired=this.webApiUrlPrefix=this.noteStoreUrl=this.publicUserInfo=this.user=this.expiration=this.authenticationToken=this.currentTime=null;a&&(void 0!==a.currentTime&&(this.currentTime=a.currentTime),void 0!==a.authenticationToken&&(this.authenticationToken=a.authenticationToken),void 0!==a.expiration&&(this.expiration=a.expiration),void 0!==a.user&&(this.user=a.user),void 0!==a.publicUserInfo&&(this.publicUserInfo=
a.publicUserInfo),void 0!==a.noteStoreUrl&&(this.noteStoreUrl=a.noteStoreUrl),void 0!==a.webApiUrlPrefix&&(this.webApiUrlPrefix=a.webApiUrlPrefix),void 0!==a.secondFactorRequired&&(this.secondFactorRequired=a.secondFactorRequired),void 0!==a.secondFactorDeliveryHint&&(this.secondFactorDeliveryHint=a.secondFactorDeliveryHint))};AuthenticationResult.prototype={};
AuthenticationResult.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.I64?this.currentTime=a.readI64().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.authenticationToken=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.I64?this.expiration=a.readI64().value:a.skip(b);break;case 4:b==Thrift.Type.STRUCT?(this.user=new User,this.user.read(a)):a.skip(b);break;case 5:b==Thrift.Type.STRUCT?
(this.publicUserInfo=new PublicUserInfo,this.publicUserInfo.read(a)):a.skip(b);break;case 6:b==Thrift.Type.STRING?this.noteStoreUrl=a.readString().value:a.skip(b);break;case 7:b==Thrift.Type.STRING?this.webApiUrlPrefix=a.readString().value:a.skip(b);break;case 8:b==Thrift.Type.BOOL?this.secondFactorRequired=a.readBool().value:a.skip(b);break;case 9:b==Thrift.Type.STRING?this.secondFactorDeliveryHint=a.readString().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
AuthenticationResult.prototype.write=function(a){a.writeStructBegin("AuthenticationResult");null!==this.currentTime&&void 0!==this.currentTime&&(a.writeFieldBegin("currentTime",Thrift.Type.I64,1),a.writeI64(this.currentTime),a.writeFieldEnd());null!==this.authenticationToken&&void 0!==this.authenticationToken&&(a.writeFieldBegin("authenticationToken",Thrift.Type.STRING,2),a.writeString(this.authenticationToken),a.writeFieldEnd());null!==this.expiration&&void 0!==this.expiration&&(a.writeFieldBegin("expiration",
Thrift.Type.I64,3),a.writeI64(this.expiration),a.writeFieldEnd());null!==this.user&&void 0!==this.user&&(a.writeFieldBegin("user",Thrift.Type.STRUCT,4),this.user.write(a),a.writeFieldEnd());null!==this.publicUserInfo&&void 0!==this.publicUserInfo&&(a.writeFieldBegin("publicUserInfo",Thrift.Type.STRUCT,5),this.publicUserInfo.write(a),a.writeFieldEnd());null!==this.noteStoreUrl&&void 0!==this.noteStoreUrl&&(a.writeFieldBegin("noteStoreUrl",Thrift.Type.STRING,6),a.writeString(this.noteStoreUrl),a.writeFieldEnd());
null!==this.webApiUrlPrefix&&void 0!==this.webApiUrlPrefix&&(a.writeFieldBegin("webApiUrlPrefix",Thrift.Type.STRING,7),a.writeString(this.webApiUrlPrefix),a.writeFieldEnd());null!==this.secondFactorRequired&&void 0!==this.secondFactorRequired&&(a.writeFieldBegin("secondFactorRequired",Thrift.Type.BOOL,8),a.writeBool(this.secondFactorRequired),a.writeFieldEnd());null!==this.secondFactorDeliveryHint&&void 0!==this.secondFactorDeliveryHint&&(a.writeFieldBegin("secondFactorDeliveryHint",Thrift.Type.STRING,
9),a.writeString(this.secondFactorDeliveryHint),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
BootstrapSettings=function(a){this.enablePublicNotebooks=this.enableLinkedInSharing=this.enableTwitterSharing=this.enableSponsoredAccounts=this.enableSingleNoteSharing=this.enableSharedNotebooks=this.enableSupportTickets=this.enableGiftSubscriptions=this.enableFacebookSharing=this.accountEmailDomain=this.supportUrl=this.marketingUrl=this.serviceHost=null;a&&(void 0!==a.serviceHost&&(this.serviceHost=a.serviceHost),void 0!==a.marketingUrl&&(this.marketingUrl=a.marketingUrl),void 0!==a.supportUrl&&
(this.supportUrl=a.supportUrl),void 0!==a.accountEmailDomain&&(this.accountEmailDomain=a.accountEmailDomain),void 0!==a.enableFacebookSharing&&(this.enableFacebookSharing=a.enableFacebookSharing),void 0!==a.enableGiftSubscriptions&&(this.enableGiftSubscriptions=a.enableGiftSubscriptions),void 0!==a.enableSupportTickets&&(this.enableSupportTickets=a.enableSupportTickets),void 0!==a.enableSharedNotebooks&&(this.enableSharedNotebooks=a.enableSharedNotebooks),void 0!==a.enableSingleNoteSharing&&(this.enableSingleNoteSharing=
a.enableSingleNoteSharing),void 0!==a.enableSponsoredAccounts&&(this.enableSponsoredAccounts=a.enableSponsoredAccounts),void 0!==a.enableTwitterSharing&&(this.enableTwitterSharing=a.enableTwitterSharing),void 0!==a.enableLinkedInSharing&&(this.enableLinkedInSharing=a.enableLinkedInSharing),void 0!==a.enablePublicNotebooks&&(this.enablePublicNotebooks=a.enablePublicNotebooks))};BootstrapSettings.prototype={};
BootstrapSettings.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.serviceHost=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRING?this.marketingUrl=a.readString().value:a.skip(b);break;case 3:b==Thrift.Type.STRING?this.supportUrl=a.readString().value:a.skip(b);break;case 4:b==Thrift.Type.STRING?this.accountEmailDomain=a.readString().value:a.skip(b);break;case 5:b==Thrift.Type.BOOL?
this.enableFacebookSharing=a.readBool().value:a.skip(b);break;case 6:b==Thrift.Type.BOOL?this.enableGiftSubscriptions=a.readBool().value:a.skip(b);break;case 7:b==Thrift.Type.BOOL?this.enableSupportTickets=a.readBool().value:a.skip(b);break;case 8:b==Thrift.Type.BOOL?this.enableSharedNotebooks=a.readBool().value:a.skip(b);break;case 9:b==Thrift.Type.BOOL?this.enableSingleNoteSharing=a.readBool().value:a.skip(b);break;case 10:b==Thrift.Type.BOOL?this.enableSponsoredAccounts=a.readBool().value:a.skip(b);
break;case 11:b==Thrift.Type.BOOL?this.enableTwitterSharing=a.readBool().value:a.skip(b);break;case 12:b==Thrift.Type.BOOL?this.enableLinkedInSharing=a.readBool().value:a.skip(b);break;case 13:b==Thrift.Type.BOOL?this.enablePublicNotebooks=a.readBool().value:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
BootstrapSettings.prototype.write=function(a){a.writeStructBegin("BootstrapSettings");null!==this.serviceHost&&void 0!==this.serviceHost&&(a.writeFieldBegin("serviceHost",Thrift.Type.STRING,1),a.writeString(this.serviceHost),a.writeFieldEnd());null!==this.marketingUrl&&void 0!==this.marketingUrl&&(a.writeFieldBegin("marketingUrl",Thrift.Type.STRING,2),a.writeString(this.marketingUrl),a.writeFieldEnd());null!==this.supportUrl&&void 0!==this.supportUrl&&(a.writeFieldBegin("supportUrl",Thrift.Type.STRING,
3),a.writeString(this.supportUrl),a.writeFieldEnd());null!==this.accountEmailDomain&&void 0!==this.accountEmailDomain&&(a.writeFieldBegin("accountEmailDomain",Thrift.Type.STRING,4),a.writeString(this.accountEmailDomain),a.writeFieldEnd());null!==this.enableFacebookSharing&&void 0!==this.enableFacebookSharing&&(a.writeFieldBegin("enableFacebookSharing",Thrift.Type.BOOL,5),a.writeBool(this.enableFacebookSharing),a.writeFieldEnd());null!==this.enableGiftSubscriptions&&void 0!==this.enableGiftSubscriptions&&
(a.writeFieldBegin("enableGiftSubscriptions",Thrift.Type.BOOL,6),a.writeBool(this.enableGiftSubscriptions),a.writeFieldEnd());null!==this.enableSupportTickets&&void 0!==this.enableSupportTickets&&(a.writeFieldBegin("enableSupportTickets",Thrift.Type.BOOL,7),a.writeBool(this.enableSupportTickets),a.writeFieldEnd());null!==this.enableSharedNotebooks&&void 0!==this.enableSharedNotebooks&&(a.writeFieldBegin("enableSharedNotebooks",Thrift.Type.BOOL,8),a.writeBool(this.enableSharedNotebooks),a.writeFieldEnd());
null!==this.enableSingleNoteSharing&&void 0!==this.enableSingleNoteSharing&&(a.writeFieldBegin("enableSingleNoteSharing",Thrift.Type.BOOL,9),a.writeBool(this.enableSingleNoteSharing),a.writeFieldEnd());null!==this.enableSponsoredAccounts&&void 0!==this.enableSponsoredAccounts&&(a.writeFieldBegin("enableSponsoredAccounts",Thrift.Type.BOOL,10),a.writeBool(this.enableSponsoredAccounts),a.writeFieldEnd());null!==this.enableTwitterSharing&&void 0!==this.enableTwitterSharing&&(a.writeFieldBegin("enableTwitterSharing",
Thrift.Type.BOOL,11),a.writeBool(this.enableTwitterSharing),a.writeFieldEnd());null!==this.enableLinkedInSharing&&void 0!==this.enableLinkedInSharing&&(a.writeFieldBegin("enableLinkedInSharing",Thrift.Type.BOOL,12),a.writeBool(this.enableLinkedInSharing),a.writeFieldEnd());null!==this.enablePublicNotebooks&&void 0!==this.enablePublicNotebooks&&(a.writeFieldBegin("enablePublicNotebooks",Thrift.Type.BOOL,13),a.writeBool(this.enablePublicNotebooks),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};
BootstrapProfile=function(a){this.settings=this.name=null;a&&(void 0!==a.name&&(this.name=a.name),void 0!==a.settings&&(this.settings=a.settings))};BootstrapProfile.prototype={};
BootstrapProfile.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:b==Thrift.Type.STRING?this.name=a.readString().value:a.skip(b);break;case 2:b==Thrift.Type.STRUCT?(this.settings=new BootstrapSettings,this.settings.read(a)):a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
BootstrapProfile.prototype.write=function(a){a.writeStructBegin("BootstrapProfile");null!==this.name&&void 0!==this.name&&(a.writeFieldBegin("name",Thrift.Type.STRING,1),a.writeString(this.name),a.writeFieldEnd());null!==this.settings&&void 0!==this.settings&&(a.writeFieldBegin("settings",Thrift.Type.STRUCT,2),this.settings.write(a),a.writeFieldEnd());a.writeFieldStop();a.writeStructEnd()};BootstrapInfo=function(a){this.profiles=null;a&&void 0!==a.profiles&&(this.profiles=a.profiles)};
BootstrapInfo.prototype={};BootstrapInfo.prototype.read=function(a){for(a.readStructBegin();;){var c=a.readFieldBegin(),b=c.ftype;if(b==Thrift.Type.STOP)break;switch(c.fid){case 1:if(b==Thrift.Type.LIST){c=0;this.profiles=[];c=a.readListBegin().size;for(b=0;b<c;++b){var d=null,d=new BootstrapProfile;d.read(a);this.profiles.push(d)}a.readListEnd()}else a.skip(b);break;case 0:a.skip(b);break;default:a.skip(b)}a.readFieldEnd()}a.readStructEnd()};
BootstrapInfo.prototype.write=function(a){a.writeStructBegin("BootstrapInfo");if(null!==this.profiles&&void 0!==this.profiles){a.writeFieldBegin("profiles",Thrift.Type.LIST,1);a.writeListBegin(Thrift.Type.STRUCT,this.profiles.length);for(var c in this.profiles)this.profiles.hasOwnProperty(c)&&(c=this.profiles[c],c.write(a));a.writeListEnd();a.writeFieldEnd()}a.writeFieldStop();a.writeStructEnd()};
