diff --git a/frontend/src/components/Peers/index.js b/frontend/src/components/Peers/index.js index 8cae2c954..33dd9304c 100644 --- a/frontend/src/components/Peers/index.js +++ b/frontend/src/components/Peers/index.js @@ -61,17 +61,26 @@ const Peers = (props) => { return 'IPV4'; }; + const getExternalAddressStr = () => { + if (externalAddress) { + return `${externalAddress.getHost()}:${externalAddress.getPort()}`; + } else { + return ''; + } + }; + function removeHttp(url) { return url.replace(/^https?:\/\//, ''); } const savePeer = ({values}) => { const network = getNetwork(values.useTor); - const strippedHost = removeHttp(values.host); + const strippedAddress = removeHttp(values.address); + const url = new URL(`http://${strippedAddress}`); dispatch(setSavePeer({ name: values.name, - host: strippedHost, - port: values.port, + host: url.hostname, + port: url.port, network: network, })); toggleSavePeerModal(); @@ -92,8 +101,7 @@ const Peers = (props) => {
2||I(E)>3?"":" "}function x(e,t){for(;--t&&T()&&!(E<48||E>102||E>57&&E<65||E>70&&E<97););return D(e,_()+(t<6&&32==O()&&32==T()))}function z(e){for(;T();)switch(E){case e:return M;case 34:case 39:34!==e&&39!==e&&z(E);break;case 40:41===e&&z(e);break;case 92:T()}return M}function j(e,t){for(;T()&&e+E!==57&&(e+E!==84||47!==O()););return"/*"+D(t,M-1)+"*"+d(47===e?e:T())}function G(e){for(;!I(O());)T();return D(e,M)}var U="-ms-",H="-moz-",V="-webkit-",K="comm",$="rule",Y="decl",Z="@keyframes";function J(e,t){for(var r="",n=k(e),o=0;o6)switch(m(e,t+1)){case 109:if(45!==m(e,t+4))break;case 102:return y(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+H+(108==m(e,t+3)?"$3":"$2-$3"))+e;case 115:return~h(e,"stretch")?X(y(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==m(e,t+1))break;case 6444:switch(m(e,b(e)-3-(~h(e,"!important")&&10))){case 107:return y(e,":",":"+V)+e;case 101:return y(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(45===m(e,14)?"inline-":"")+"box$3$1"+V+"$2$3$1"+U+"$2box$3")+e}break;case 5936:switch(m(e,t+11)){case 114:return V+e+U+y(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+U+y(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+U+y(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+U+e+e}return e}function ee(e){return N(te("",null,null,null,[""],e=A(e),0,[0],e))}function te(e,t,r,n,o,a,i,s,l){for(var u=0,p=0,c=i,g=0,f=0,m=0,R=1,k=1,v=1,P=0,q="",M=o,E=a,F=n,C=q;k;)switch(m=P,P=T()){case 40:if(108!=m&&58==C.charCodeAt(c-1)){-1!=h(C+=y(W(P),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:C+=W(P);break;case 9:case 10:case 13:case 32:C+=L(m);break;case 92:C+=x(_()-1,7);continue;case 47:switch(O()){case 42:case 47:S(ne(j(T(),_()),t,r),l);break;default:C+="/"}break;case 123*R:s[u++]=b(C)*v;case 125*R:case 59:case 0:switch(P){case 0:case 125:k=0;case 59+p:f>0&&b(C)-c&&S(f>32?oe(C+";",n,r,c-1):oe(y(C," ","")+";",n,r,c-2),l);break;case 59:C+=";";default:if(S(F=re(C,t,r,u,p,o,s,q,M=[],E=[],c),a),123===P)if(0===p)te(C,t,F,F,M,a,c,s,E);else switch(g){case 100:case 109:case 115:te(e,F,F,n&&S(re(e,F,F,0,0,o,s,q,o,M=[],c),E),o,E,c,s,n?M:E);break;default:te(C,F,F,F,[""],E,0,s,E)}}u=p=f=0,R=v=1,q=C="",c=i;break;case 58:c=1+b(C),f=m;default:if(R<1)if(123==P)--R;else if(125==P&&0==R++&&125==w())continue;switch(C+=d(P),P*R){case 38:v=p>0?1:(C+="\f",-1);break;case 44:s[u++]=(b(C)-1)*v,v=1;break;case 64:45===O()&&(C+=W(T())),g=O(),p=c=b(q=C+=G(_())),P++;break;case 45:45===m&&2==b(C)&&(R=0)}}return a}function re(e,t,r,n,o,a,i,s,l,u,p){for(var d=o-1,g=0===o?a:[""],h=k(g),m=0,b=0,S=0;m 0?g[v]+" "+P:y(P,/&\f/g,g[v])))&&(l[S++]=q);return C(e,t,r,0===o?$:s,l,u,p)}function ne(e,t,r){return C(e,t,r,K,d(E),R(e,2,-2),0)}function oe(e,t,r,n){return C(e,t,r,Y,R(e,0,n),R(e,n+1,-1),n)}var ae=function(e,t,r){for(var n=0,o=0;n=o,o=O(),38===n&&12===o&&(t[r]=1),!I(o);)T();return D(e,M)},ie=function(e,t){return N(function(e,t){var r=-1,n=44;do{switch(I(n)){case 0:38===n&&12===O()&&(t[r]=1),e[r]+=ae(M-1,t,r);break;case 2:e[r]+=W(n);break;case 4:if(44===n){e[++r]=58===O()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=d(n)}}while(n=T());return e}(A(e),t))},se=new WeakMap,le=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||se.get(r))&&!n){se.set(e,!0);for(var o=[],a=ie(t,o),i=r.props,s=0,l=0;s -1&&!e.return)switch(e.type){case Y:e.return=X(e.value,e.length);break;case Z:return J([B(e,{value:y(e.value,"@","@"+V)})],n);case $:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return J([B(e,{props:[y(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return J([B(e,{props:[y(t,/:(plac\w+)/,":-webkit-input-$1")]}),B(e,{props:[y(t,/:(plac\w+)/,":-moz-$1")]}),B(e,{props:[y(t,/:(plac\w+)/,U+"input-$1")]})],n)}return""}))}}],ce=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n=e.stylisPlugins||pe;var o,a,i={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r =4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)},ye={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var he=/[A-Z]|^ms/g,me=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Re=function(e){return 45===e.charCodeAt(1)},be=function(e){return null!=e&&"boolean"!==typeof e},ke=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){return Re(e)?e:e.replace(he,"-$&").toLowerCase()})),Se=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(me,(function(e,t,r){return Pe={name:t,styles:r,next:Pe},t}))}return 1===ye[e]||Re(e)||"number"!==typeof t||0===t?t:t+"px"};function ve(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return Pe={name:r.name,styles:r.styles,next:Pe},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)Pe={name:n.name,styles:n.styles,next:Pe},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o =0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Ge(e){return Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ge(e)}function Ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function He(e,t){for(var r=0;r -1}function pt(e){return ut(e)?window.pageYOffset:e.scrollTop}function ct(e,t){ut(e)?window.scrollTo(0,t):e.scrollTop=t}function dt(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function gt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ot,o=pt(e),a=t-o,i=10,s=0;function l(){var t=dt(s+=i,o,a,r);ct(e,t),s =g)return{placement:"bottom",maxHeight:t};if(P>=g&&!i)return a&>(l,q,E),{placement:"bottom",maxHeight:t};if(!i&&P>=n||i&&S>=n)return a&>(l,q,E),{placement:"bottom",maxHeight:i?S-R:P-R};if("auto"===o||i){var F=t,C=i?k:v;return C>=n&&(F=Math.min(C-R-s.controlHeight,t)),{placement:"top",maxHeight:F}}if("bottom"===o)return a&&ct(l,q),{placement:"bottom",maxHeight:t};break;case"top":if(k>=g)return{placement:"top",maxHeight:t};if(v>=g&&!i)return a&>(l,M,E),{placement:"top",maxHeight:t};if(!i&&v>=n||i&&k>=n){var B=t;return(!i&&v>=n||i&&k>=n)&&(B=i?k-b:v-b),a&>(l,M,E),{placement:"top",maxHeight:B}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var vt=function(e){return"auto"===e?"bottom":e},Pt=(0,o.createContext)({getPortalPlacement:null}),qt=function(e){$e(r,e);var t=rt(r);function r(){var e;Ue(this,r);for(var n=arguments.length,o=new Array(n),a=0;a 1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(n,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,r=e.focused,n=e.options,o=e.label,a=void 0===o?"":o,i=e.selectValue,s=e.isDisabled,l=e.isSelected,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(a," focused, ").concat(u(i,r),".");if("menu"===t){var p=s?" disabled":"",c="".concat(l?"selected":"focused").concat(p);return"option ".concat(a," ").concat(c,", ").concat(u(n,r),".")}return""},onFilter:function(e){var t=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(t?" for search term "+t:"",".")}},lr=function(e){var t=e.ariaSelection,r=e.focusedOption,n=e.focusedValue,a=e.focusableOptions,i=e.isFocused,s=e.selectValue,l=e.selectProps,u=e.id,p=l.ariaLiveMessages,c=l.getOptionLabel,d=l.inputValue,g=l.isMulti,f=l.isOptionDisabled,y=l.isSearchable,h=l.menuIsOpen,m=l.options,R=l.screenReaderStatus,b=l.tabSelectsValue,k=l["aria-label"],S=l["aria-live"],v=(0,o.useMemo)((function(){return Xe(Xe({},sr),p||{})}),[p]),P=(0,o.useMemo)((function(){var e,r="";if(t&&v.onChange){var n=t.option,o=t.options,a=t.removedValue,i=t.removedValues,l=t.value,u=a||n||(e=l,Array.isArray(e)?null:e),p=u?c(u):"",d=o||i||void 0,g=d?d.map(c):[],y=Xe({isDisabled:u&&f(u,s),label:p,labels:g},t);r=v.onChange(y)}return r}),[t,v,f,s,c]),q=(0,o.useMemo)((function(){var e="",t=r||n,o=!!(r&&s&&s.includes(r));if(t&&v.onFocus){var a={focused:t,label:c(t),isDisabled:f(t,s),isSelected:o,options:m,context:t===r?"menu":"value",selectValue:s};e=v.onFocus(a)}return e}),[r,n,c,f,v,m,s]),M=(0,o.useMemo)((function(){var e="";if(h&&m.length&&v.onFilter){var t=R({count:a.length});e=v.onFilter({inputValue:d,resultsMessage:t})}return e}),[a,d,h,v,m,R]),E=(0,o.useMemo)((function(){var e="";if(v.guidance){var t=n?"value":h?"menu":"input";e=v.guidance({"aria-label":k,context:t,isDisabled:r&&f(r,s),isMulti:g,isSearchable:y,tabSelectsValue:b})}return e}),[k,r,n,g,f,y,h,v,s,b]),F="".concat(q," ").concat(M," ").concat(E),C=Ie(o.Fragment,null,Ie("span",{id:"aria-selection"},P),Ie("span",{id:"aria-context"},F)),B="initial-input-focus"===(null===t||void 0===t?void 0:t.action);return Ie(o.Fragment,null,Ie(ir,{id:u},B&&C),Ie(ir,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text"},i&&!B&&C))},ur=[{base:"A",letters:"A\u24b6\uff21\xc0\xc1\xc2\u1ea6\u1ea4\u1eaa\u1ea8\xc3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\xc4\u01de\u1ea2\xc5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f"},{base:"AA",letters:"\ua732"},{base:"AE",letters:"\xc6\u01fc\u01e2"},{base:"AO",letters:"\ua734"},{base:"AU",letters:"\ua736"},{base:"AV",letters:"\ua738\ua73a"},{base:"AY",letters:"\ua73c"},{base:"B",letters:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181"},{base:"C",letters:"C\u24b8\uff23\u0106\u0108\u010a\u010c\xc7\u1e08\u0187\u023b\ua73e"},{base:"D",letters:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779"},{base:"DZ",letters:"\u01f1\u01c4"},{base:"Dz",letters:"\u01f2\u01c5"},{base:"E",letters:"E\u24ba\uff25\xc8\xc9\xca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\xcb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e"},{base:"F",letters:"F\u24bb\uff26\u1e1e\u0191\ua77b"},{base:"G",letters:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e"},{base:"H",letters:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d"},{base:"I",letters:"I\u24be\uff29\xcc\xcd\xce\u0128\u012a\u012c\u0130\xcf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197"},{base:"J",letters:"J\u24bf\uff2a\u0134\u0248"},{base:"K",letters:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2"},{base:"L",letters:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780"},{base:"LJ",letters:"\u01c7"},{base:"Lj",letters:"\u01c8"},{base:"M",letters:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c"},{base:"N",letters:"N\u24c3\uff2e\u01f8\u0143\xd1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4"},{base:"NJ",letters:"\u01ca"},{base:"Nj",letters:"\u01cb"},{base:"O",letters:"O\u24c4\uff2f\xd2\xd3\xd4\u1ed2\u1ed0\u1ed6\u1ed4\xd5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\xd6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\xd8\u01fe\u0186\u019f\ua74a\ua74c"},{base:"OI",letters:"\u01a2"},{base:"OO",letters:"\ua74e"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754"},{base:"Q",letters:"Q\u24c6\uff31\ua756\ua758\u024a"},{base:"R",letters:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782"},{base:"S",letters:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784"},{base:"T",letters:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786"},{base:"TZ",letters:"\ua728"},{base:"U",letters:"U\u24ca\uff35\xd9\xda\xdb\u0168\u1e78\u016a\u1e7a\u016c\xdc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244"},{base:"V",letters:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245"},{base:"VY",letters:"\ua760"},{base:"W",letters:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72"},{base:"X",letters:"X\u24cd\uff38\u1e8a\u1e8c"},{base:"Y",letters:"Y\u24ce\uff39\u1ef2\xdd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe"},{base:"Z",letters:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762"},{base:"a",letters:"a\u24d0\uff41\u1e9a\xe0\xe1\xe2\u1ea7\u1ea5\u1eab\u1ea9\xe3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\xe4\u01df\u1ea3\xe5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250"},{base:"aa",letters:"\ua733"},{base:"ae",letters:"\xe6\u01fd\u01e3"},{base:"ao",letters:"\ua735"},{base:"au",letters:"\ua737"},{base:"av",letters:"\ua739\ua73b"},{base:"ay",letters:"\ua73d"},{base:"b",letters:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253"},{base:"c",letters:"c\u24d2\uff43\u0107\u0109\u010b\u010d\xe7\u1e09\u0188\u023c\ua73f\u2184"},{base:"d",letters:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a"},{base:"dz",letters:"\u01f3\u01c6"},{base:"e",letters:"e\u24d4\uff45\xe8\xe9\xea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\xeb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd"},{base:"f",letters:"f\u24d5\uff46\u1e1f\u0192\ua77c"},{base:"g",letters:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f"},{base:"h",letters:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24d8\uff49\xec\xed\xee\u0129\u012b\u012d\xef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131"},{base:"j",letters:"j\u24d9\uff4a\u0135\u01f0\u0249"},{base:"k",letters:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3"},{base:"l",letters:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747"},{base:"lj",letters:"\u01c9"},{base:"m",letters:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f"},{base:"n",letters:"n\u24dd\uff4e\u01f9\u0144\xf1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5"},{base:"nj",letters:"\u01cc"},{base:"o",letters:"o\u24de\uff4f\xf2\xf3\xf4\u1ed3\u1ed1\u1ed7\u1ed5\xf5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\xf6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\xf8\u01ff\u0254\ua74b\ua74d\u0275"},{base:"oi",letters:"\u01a3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\ua74f"},{base:"p",letters:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755"},{base:"q",letters:"q\u24e0\uff51\u024b\ua757\ua759"},{base:"r",letters:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783"},{base:"s",letters:"s\u24e2\uff53\xdf\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b"},{base:"t",letters:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787"},{base:"tz",letters:"\ua729"},{base:"u",letters:"u\u24e4\uff55\xf9\xfa\xfb\u0169\u1e79\u016b\u1e7b\u016d\xfc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289"},{base:"v",letters:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c"},{base:"vy",letters:"\ua761"},{base:"w",letters:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73"},{base:"x",letters:"x\u24e7\uff58\u1e8b\u1e8d"},{base:"y",letters:"y\u24e8\uff59\u1ef3\xfd\u0177\u1ef9\u0233\u1e8f\xff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff"},{base:"z",letters:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"}],pr=new RegExp("["+ur.map((function(e){return e.letters})).join("")+"]","g"),cr={},dr=0;dr 0,y=c-d-u,h=!1;y>t&&s.current&&(n&&n(e),s.current=!1),f&&l.current&&(i&&i(e),l.current=!1),f&&t>y?(r&&!s.current&&r(e),g.scrollTop=c,h=!0,s.current=!0):!f&&-t>u&&(a&&!l.current&&a(e),g.scrollTop=0,h=!0,l.current=!0),h&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[r,n,a,i]),d=(0,o.useCallback)((function(e){c(e,e.deltaY)}),[c]),g=(0,o.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),f=(0,o.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;c(e,t)}),[c]),y=(0,o.useCallback)((function(e){if(e){var t=!!Rt&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",g,t),e.addEventListener("touchmove",f,t)}}),[f,g,d]),h=(0,o.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",g,!1),e.removeEventListener("touchmove",f,!1))}),[f,g,d]);return(0,o.useEffect)((function(){if(t){var e=p.current;return y(e),function(){h(e)}}}),[t,y,h]),function(e){p.current=e}}({isEnabled:void 0===n||n,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,r=e.accountForScrollbars,n=void 0===r||r,a=(0,o.useRef)({}),i=(0,o.useRef)(null),s=(0,o.useCallback)((function(e){if(Fr){var t=document.body,r=t&&t.style;if(n&&Sr.forEach((function(e){var t=r&&r[e];a.current[e]=t})),n&&Cr<1){var o=parseInt(a.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,s=window.innerWidth-i+o||0;Object.keys(vr).forEach((function(e){var t=vr[e];r&&(r[e]=t)})),r&&(r.paddingRight="".concat(s,"px"))}t&&Er()&&(t.addEventListener("touchmove",Pr,Br),e&&(e.addEventListener("touchstart",Mr,Br),e.addEventListener("touchmove",qr,Br))),Cr+=1}}),[n]),l=(0,o.useCallback)((function(e){if(Fr){var t=document.body,r=t&&t.style;Cr=Math.max(Cr-1,0),n&&Cr<1&&Sr.forEach((function(e){var t=a.current[e];r&&(r[e]=t)})),t&&Er()&&(t.removeEventListener("touchmove",Pr,Br),e&&(e.removeEventListener("touchstart",Mr,Br),e.removeEventListener("touchmove",qr,Br)))}}),[n]);return(0,o.useEffect)((function(){if(t){var e=i.current;return s(e),function(){l(e)}}}),[t,s,l]),function(e){i.current=e}}({isEnabled:r});return Ie(o.Fragment,null,r&&Ie("div",{onClick:wr,css:Tr}),t((function(e){a(e),i(e)})))}var _r={clearIndicator:zt,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e){var t=e.isDisabled,r=e.isFocused,n=e.theme,o=n.colors,a=n.borderRadius,i=n.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:r?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:r?o.primary:o.neutral30}}},dropdownIndicator:xt,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,r=e.theme,n=r.spacing.baseUnit,o=r.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*n,marginTop:2*n,width:1}},input:function(e){var t=e.isDisabled,r=e.value,n=e.theme,o=n.spacing,a=n.colors;return Xe({margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,visibility:t?"hidden":"visible",color:a.neutral80,transform:r?"translateZ(0)":""},$t)},loadingIndicator:function(e){var t=e.isFocused,r=e.size,n=e.theme,o=n.colors,a=n.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*a,transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Ft,menu:function(e){var t,r=e.placement,n=e.theme,o=n.borderRadius,a=n.spacing,i=n.colors;return t={label:"menu"},(0,Ye.Z)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),(0,Ye.Z)(t,"backgroundColor",i.neutral0),(0,Ye.Z)(t,"borderRadius",o),(0,Ye.Z)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),(0,Ye.Z)(t,"marginBottom",a.menuGutter),(0,Ye.Z)(t,"marginTop",a.menuGutter),(0,Ye.Z)(t,"position","absolute"),(0,Ye.Z)(t,"width","100%"),(0,Ye.Z)(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,r=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:r,paddingTop:r,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,r=e.offset,n=e.position;return{left:t.left,position:n,top:r,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,r=t.spacing,n=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:n/2,display:"flex",margin:r.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,r=t.borderRadius,n=t.colors,o=e.cropWithEllipsis;return{borderRadius:r/2,color:n.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,r=t.spacing,n=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:n/2,backgroundColor:e.isFocused?o.dangerLight:void 0,display:"flex",paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:Et,option:function(e){var t=e.isDisabled,r=e.isFocused,n=e.isSelected,o=e.theme,a=o.spacing,i=o.colors;return{label:"option",backgroundColor:n?i.primary:r?i.primary25:"transparent",color:t?i.neutral20:n?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:n?i.primary:i.primary50}}},placeholder:function(e){var t=e.theme,r=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2}},singleValue:function(e){var t=e.isDisabled,r=e.theme,n=r.spacing,o=r.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},valueContainer:function(e){var t=e.theme.spacing,r=e.isMulti,n=e.hasValue,o=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:r&&n&&o?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var Dr,Ir={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Ar={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ft(),captureMenuScroll:!ft(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var r=Xe({ignoreCase:!0,ignoreAccents:!0,stringify:Rr,trim:!0,matchFrom:"any"},Dr),n=r.ignoreCase,o=r.ignoreAccents,a=r.stringify,i=r.trim,s=r.matchFrom,l=i?mr(t):t,u=i?mr(a(e)):a(e);return n&&(l=l.toLowerCase(),u=u.toLowerCase()),o&&(l=hr(l),u=yr(u)),"start"===s?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0};function Nr(e,t,r,n){return{type:"option",data:t,isDisabled:Gr(e,t,r),isSelected:Ur(e,t,r),label:zr(e,t),value:jr(e,t),index:n}}function Wr(e,t){return e.options.map((function(r,n){if("options"in r){var o=r.options.map((function(r,n){return Nr(e,r,t,n)})).filter((function(t){return xr(e,t)}));return o.length>0?{type:"group",data:r,options:o,index:n}:void 0}var a=Nr(e,r,t,n);return xr(e,a)?a:void 0})).filter(bt)}function Lr(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,tr(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function xr(e,t){var r=e.inputValue,n=void 0===r?"":r,o=t.data,a=t.isSelected,i=t.label,s=t.value;return(!Vr(e)||!a)&&Hr(e,{label:i,value:s,data:o},n)}var zr=function(e,t){return e.getOptionLabel(t)},jr=function(e,t){return e.getOptionValue(t)};function Gr(e,t,r){return"function"===typeof e.isOptionDisabled&&e.isOptionDisabled(t,r)}function Ur(e,t,r){if(r.indexOf(t)>-1)return!0;if("function"===typeof e.isOptionSelected)return e.isOptionSelected(t,r);var n=jr(e,t);return r.some((function(t){return jr(e,t)===n}))}function Hr(e,t,r){return!e.filterOption||e.filterOption(t,r)}var Vr=function(e){var t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t},Kr=1,$r=function(e){$e(r,e);var t=rt(r);function r(e){var n;return Ue(this,r),(n=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},n.blockOptionHover=!1,n.isComposing=!1,n.commonProps=void 0,n.initialTouchX=0,n.initialTouchY=0,n.instancePrefix="",n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.controlRef=null,n.getControlRef=function(e){n.controlRef=e},n.focusedOptionRef=null,n.getFocusedOptionRef=function(e){n.focusedOptionRef=e},n.menuListRef=null,n.getMenuListRef=function(e){n.menuListRef=e},n.inputRef=null,n.getInputRef=function(e){n.inputRef=e},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(e,t){var r=n.props,o=r.onChange,a=r.name;t.name=a,n.ariaOnChange(e,t),o(e,t)},n.setValue=function(e,t,r){var o=n.props,a=o.closeMenuOnSelect,i=o.isMulti,s=o.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:s}),a&&(n.setState({inputIsHiddenAfterUpdate:!i}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(e,{action:t,option:r})},n.selectOption=function(e){var t=n.props,r=t.blurInputOnSelect,o=t.isMulti,a=t.name,i=n.state.selectValue,s=o&&n.isOptionSelected(e,i),l=n.isOptionDisabled(e,i);if(s){var u=n.getOptionValue(e);n.setValue(i.filter((function(e){return n.getOptionValue(e)!==u})),"deselect-option",e)}else{if(l)return void n.ariaOnChange(e,{action:"select-option",option:e,name:a});o?n.setValue([].concat(tr(i),[e]),"select-option",e):n.setValue(e,"select-option")}r&&n.blurInput()},n.removeValue=function(e){var t=n.props.isMulti,r=n.state.selectValue,o=n.getOptionValue(e),a=r.filter((function(e){return n.getOptionValue(e)!==o})),i=kt(t,a,a[0]||null);n.onChange(i,{action:"remove-value",removedValue:e}),n.focusInput()},n.clearValue=function(){var e=n.state.selectValue;n.onChange(kt(n.props.isMulti,[],null),{action:"clear",removedValues:e})},n.popValue=function(){var e=n.props.isMulti,t=n.state.selectValue,r=t[t.length-1],o=t.slice(0,t.length-1),a=kt(e,o,o[0]||null);n.onChange(a,{action:"pop-value",removedValue:r})},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var e=arguments.length,t=new Array(e),r=0;r 5||a>5}},n.onTouchEnd=function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(e){n.userIsDragging||n.onControlMouseDown(e)},n.onClearIndicatorTouchEnd=function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)},n.onDropdownIndicatorTouchEnd=function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)},n.handleInputChange=function(e){var t=n.props.inputValue,r=e.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(r,{action:"input-change",prevInputValue:t}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(e){n.props.onFocus&&n.props.onFocus(e),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(e){var t=n.props.inputValue;n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur",prevInputValue:t}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))},n.onOptionHover=function(e){n.blockOptionHover||n.state.focusedOption===e||n.setState({focusedOption:e})},n.shouldHideSelectedOptions=function(){return Vr(n.props)},n.onKeyDown=function(e){var t=n.props,r=t.isMulti,o=t.backspaceRemovesValue,a=t.escapeClearsValue,i=t.inputValue,s=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,p=t.onKeyDown,c=t.tabSelectsValue,d=t.openMenuOnFocus,g=n.state,f=g.focusedOption,y=g.focusedValue,h=g.selectValue;if(!l&&("function"!==typeof p||(p(e),!e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;n.focusValue("previous");break;case"ArrowRight":if(!r||i)return;n.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(y)n.removeValue(y);else{if(!o)return;r?n.popValue():s&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!u||!c||!f||d&&n.isOptionSelected(f,h))return;n.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(u){if(!f)return;if(n.isComposing)return;n.selectOption(f);break}return;case"Escape":u?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close",prevInputValue:i}),n.onMenuClose()):s&&a&&n.clearValue();break;case" ":if(i)return;if(!u){n.openMenu("first");break}if(!f)return;n.selectOption(f);break;case"ArrowUp":u?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":u?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!u)return;n.focusOption("pageup");break;case"PageDown":if(!u)return;n.focusOption("pagedown");break;case"Home":if(!u)return;n.focusOption("first");break;case"End":if(!u)return;n.focusOption("last");break;default:return}e.preventDefault()}},n.instancePrefix="react-select-"+(n.props.instanceId||++Kr),n.state.selectValue=st(e.value),n}return Ve(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isDisabled,n=t.menuIsOpen,o=this.state.isFocused;(o&&!r&&e.isDisabled||o&&n&&!e.menuIsOpen)&&this.focusInput(),o&&r&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(!function(e,t){var r=e.getBoundingClientRect(),n=t.getBoundingClientRect(),o=t.offsetHeight/3;n.bottom+o>r.bottom?ct(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):n.top-o -1&&(i=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,r=t.selectValue,n=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=r.indexOf(n);n||(o=-1);var a=r.length-1,i=-1;if(r.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,r=this.state.focusedOption,n=this.getFocusableOptions();if(n.length){var o=0,a=n.indexOf(r);r||(a=-1),"up"===e?o=a>0?a-1:n.length-1:"down"===e?o=(a+1)%n.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>n.length-1&&(o=n.length-1):"last"===e&&(o=n.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:n[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"===typeof this.props.theme?this.props.theme(Ir):Xe(Xe({},Ir),this.props.theme):Ir}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,r=this.getStyles,n=this.getValue,o=this.selectOption,a=this.setValue,i=this.props,s=i.isMulti,l=i.isRtl,u=i.options;return{clearValue:e,cx:t,getStyles:r,getValue:n,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:u,selectOption:o,selectProps:i,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,r=e.isMulti;return void 0===t?r:t}},{key:"isOptionDisabled",value:function(e,t){return Gr(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Ur(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Hr(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"===typeof this.props.formatOptionLabel){var r=this.props.inputValue,n=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:r,selectValue:n})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,r=e.isSearchable,n=e.inputId,a=e.inputValue,i=e.tabIndex,s=e.form,l=e.menuIsOpen,p=this.getComponents().Input,c=this.state,d=c.inputIsHidden,g=c.ariaSelection,f=this.commonProps,y=n||this.getElementId("input"),h=Xe(Xe({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox"),"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],role:"combobox"},!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null===g||void 0===g?void 0:g.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?o.createElement(p,(0,u.Z)({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:y,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:s,type:"text",value:a},h)):o.createElement(kr,(0,u.Z)({id:y,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ot,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:s,value:""},h))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),r=t.MultiValue,n=t.MultiValueContainer,a=t.MultiValueLabel,i=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,p=this.commonProps,c=this.props,d=c.controlShouldRenderValue,g=c.isDisabled,f=c.isMulti,y=c.inputValue,h=c.placeholder,m=this.state,R=m.selectValue,b=m.focusedValue,k=m.isFocused;if(!this.hasValue()||!d)return y?null:o.createElement(l,(0,u.Z)({},p,{key:"placeholder",isDisabled:g,isFocused:k,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return R.map((function(t,s){var l=t===b,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return o.createElement(r,(0,u.Z)({},p,{components:{Container:n,Label:a,Remove:i},isFocused:l,isDisabled:g,key:c,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(y)return null;var S=R[0];return o.createElement(s,(0,u.Z)({},p,{data:S,isDisabled:g}),this.formatOptionLabel(S,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,r=this.props,n=r.isDisabled,a=r.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||n||!this.hasValue()||a)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,(0,u.Z)({},t,{innerProps:s,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,r=this.props,n=r.isDisabled,a=r.isLoading,i=this.state.isFocused;if(!e||!a)return null;return o.createElement(e,(0,u.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:n,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,r=e.IndicatorSeparator;if(!t||!r)return null;var n=this.commonProps,a=this.props.isDisabled,i=this.state.isFocused;return o.createElement(r,(0,u.Z)({},n,{isDisabled:a,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,r=this.props.isDisabled,n=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,(0,u.Z)({},t,{innerProps:a,isDisabled:r,isFocused:n}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),r=t.Group,n=t.GroupHeading,a=t.Menu,i=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,p=t.NoOptionsMessage,c=t.Option,d=this.commonProps,g=this.state.focusedOption,f=this.props,y=f.captureMenuScroll,h=f.inputValue,m=f.isLoading,R=f.loadingMessage,b=f.minMenuHeight,k=f.maxMenuHeight,S=f.menuIsOpen,v=f.menuPlacement,P=f.menuPosition,q=f.menuPortalTarget,M=f.menuShouldBlockScroll,E=f.menuShouldScrollIntoView,F=f.noOptionsMessage,C=f.onMenuScrollToTop,B=f.onMenuScrollToBottom;if(!S)return null;var w,T=function(t,r){var n=t.type,a=t.data,i=t.isDisabled,s=t.isSelected,l=t.label,p=t.value,f=g===a,y=i?void 0:function(){return e.onOptionHover(a)},h=i?void 0:function(){return e.selectOption(a)},m="".concat(e.getElementId("option"),"-").concat(r),R={id:m,onClick:h,onMouseMove:y,onMouseOver:y,tabIndex:-1};return o.createElement(c,(0,u.Z)({},d,{innerProps:R,data:a,isDisabled:i,isSelected:s,key:m,label:l,type:n,value:p,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())w=this.getCategorizedOptions().map((function(t){if("group"===t.type){var a=t.data,i=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),p="".concat(l,"-heading");return o.createElement(r,(0,u.Z)({},d,{key:l,data:a,options:i,Heading:n,headingProps:{id:p,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return T(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return T(t,"".concat(t.index))}));else if(m){var O=R({inputValue:h});if(null===O)return null;w=o.createElement(l,d,O)}else{var _=F({inputValue:h});if(null===_)return null;w=o.createElement(p,d,_)}var D={minMenuHeight:b,maxMenuHeight:k,menuPlacement:v,menuPosition:P,menuShouldScrollIntoView:E},I=o.createElement(qt,(0,u.Z)({},d,D),(function(t){var r=t.ref,n=t.placerProps,s=n.placement,l=n.maxHeight;return o.createElement(a,(0,u.Z)({},d,D,{innerRef:r,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:m,placement:s}),o.createElement(Or,{captureEnabled:y,onTopArrive:C,onBottomArrive:B,lockEnabled:M},(function(t){return o.createElement(i,(0,u.Z)({},d,{innerRef:function(r){e.getMenuListRef(r),t(r)},isLoading:m,maxHeight:l,focusedOption:g}),w)})))}));return q||"fixed"===P?o.createElement(s,(0,u.Z)({},d,{appendTo:q,controlElement:this.controlRef,menuPlacement:v,menuPosition:P}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,r=t.delimiter,n=t.isDisabled,a=t.isMulti,i=t.name,s=this.state.selectValue;if(i&&!n){if(a){if(r){var l=s.map((function(t){return e.getOptionValue(t)})).join(r);return o.createElement("input",{name:i,type:"hidden",value:l})}var u=s.length>0?s.map((function(t,r){return o.createElement("input",{key:"i-".concat(r),name:i,type:"hidden",value:e.getOptionValue(t)})})):o.createElement("input",{name:i,type:"hidden"});return o.createElement("div",null,u)}var p=s[0]?this.getOptionValue(s[0]):"";return o.createElement("input",{name:i,type:"hidden",value:p})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,r=t.ariaSelection,n=t.focusedOption,a=t.focusedValue,i=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return o.createElement(lr,(0,u.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:n,focusedValue:a,isFocused:i,selectValue:s,focusableOptions:l}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,r=e.IndicatorsContainer,n=e.SelectContainer,a=e.ValueContainer,i=this.props,s=i.className,l=i.id,p=i.isDisabled,c=i.menuIsOpen,d=this.state.isFocused,g=this.commonProps=this.getCommonProps();return o.createElement(n,(0,u.Z)({},g,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:p,isFocused:d}),this.renderLiveRegion(),o.createElement(t,(0,u.Z)({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:p,isFocused:d,menuIsOpen:c}),o.createElement(a,(0,u.Z)({},g,{isDisabled:p}),this.renderPlaceholderOrValue(),this.renderInput()),o.createElement(r,(0,u.Z)({},g,{isDisabled:p}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.prevProps,n=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,s=t.prevWasFocused,l=e.options,u=e.value,p=e.menuIsOpen,c=e.inputValue,d=e.isMulti,g=st(u),f={};if(r&&(u!==r.value||l!==r.options||p!==r.menuIsOpen||c!==r.inputValue)){var y=p?function(e,t){return Lr(Wr(e,t))}(e,g):[],h=n?function(e,t){var r=e.focusedValue,n=e.selectValue.indexOf(r);if(n>-1){if(t.indexOf(r)>-1)return r;if(n -1?r:t[0]}(t,y);f={selectValue:g,focusedOption:m,focusedValue:h,clearFocusValueOnUpdate:!1}}var R=null!=o&&e!==r?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},b=a,k=i&&s;return i&&!k&&(b={value:kt(d,g,g[0]||null),options:g,action:"initial-input-focus"},k=!s),"initial-input-focus"===(null===a||void 0===a?void 0:a.action)&&(b=null),Xe(Xe(Xe({},f),R),{},{prevProps:e,ariaSelection:b,prevWasFocused:k})}}]),r}(o.Component);$r.defaultProps=Ar;var Yr=(0,o.forwardRef)((function(e,t){var r=function(e){var t=e.defaultInputValue,r=void 0===t?"":t,a=e.defaultMenuIsOpen,i=void 0!==a&&a,s=e.defaultValue,l=void 0===s?null:s,u=e.inputValue,p=e.menuIsOpen,c=e.onChange,d=e.onInputChange,g=e.onMenuClose,f=e.onMenuOpen,y=e.value,h=je(e,Qt),m=(0,o.useState)(void 0!==u?u:r),R=(0,n.Z)(m,2),b=R[0],k=R[1],S=(0,o.useState)(void 0!==p?p:i),v=(0,n.Z)(S,2),P=v[0],q=v[1],M=(0,o.useState)(void 0!==y?y:l),E=(0,n.Z)(M,2),F=E[0],C=E[1],B=(0,o.useCallback)((function(e,t){"function"===typeof c&&c(e,t),C(e)}),[c]),w=(0,o.useCallback)((function(e,t){var r;"function"===typeof d&&(r=d(e,t)),k(void 0!==r?r:e)}),[d]),T=(0,o.useCallback)((function(){"function"===typeof f&&f(),q(!0)}),[f]),O=(0,o.useCallback)((function(){"function"===typeof g&&g(),q(!1)}),[g]),_=void 0!==u?u:b,D=void 0!==p?p:P,I=void 0!==y?y:F;return Xe(Xe({},h),{},{inputValue:_,menuIsOpen:D,onChange:B,onInputChange:w,onMenuClose:O,onMenuOpen:T,value:I})}(e);return o.createElement($r,(0,u.Z)({ref:t},r))})),Zr=(o.Component,Yr),Jr=r(6789),Qr=r(6515),Xr=r(6682),en=r(9899),tn=(0,a.EN)((function(e){var t=e.squeak,r=t.getSqueakHash(),a=t.getAuthorPubkey();console.log(e.squeak);(0,Jr.v9)(en.X5),(0,Jr.v9)(Qr.sH);var u,p=(0,Jr.v9)(Qr.iL),c=(0,Jr.v9)(Qr.xc),d=(0,Jr.I0)(),g=(0,o.useState)(null),f=(0,n.Z)(g,2),y=f[0],h=f[1],m=function(e){var t=e.values;console.log(t),console.log("downloadOffers"),d((0,Qr.fb)(r))},R=function(){var e=(0,l.XQ)();return o.createElement("button",{type:"submit",className:"squeak-btn-side squeak-btn-active",onClick:e.submitForm},"Re-download Offers")},b=function(){return o.createElement(l.l0,{onSubmit:m,className:"Squeak-input-side"},o.createElement("div",{className:"inner-input-links"},o.createElement("div",{className:"input-links-side"}),o.createElement("div",{className:"squeak-btn-holder"},"idle"===c?o.createElement(R,null):o.createElement(s.Z,null))))};return o.createElement(o.Fragment,null,o.createElement("div",{className:"Squeak-input-side"},o.createElement("div",{className:"edit-input-wrap"},o.createElement(b,null),p.length," offers",o.createElement("div",{className:"inner-input-box"},o.createElement(Zr,{options:(u=p,console.log("optionsFromOffers"),console.log(u),u.map((function(e){return{value:e,label:"".concat(e.getPriceMsat()/1e3," sats (").concat(e.getPeerAddress().getHost(),":").concat(e.getPeerAddress().getPort(),")")}}))),onChange:function(e){h(e.value)}})),y&&o.createElement(o.Fragment,null,o.createElement("div",{className:"inner-input-box"},o.createElement("b",null,"Price"),": ",y.getPriceMsat()/1e3," sats"),o.createElement("div",{className:"inner-input-box"},o.createElement("b",null,"Peer"),": ",y.getPeerAddress().getHost(),":",y.getPeerAddress().getPort()),o.createElement("div",{className:"inner-input-box"},o.createElement("b",null,"Lightning Node"),":\xa0",o.createElement("a",{href:"https://amboss.space/node/".concat(y.getNodePubkey()),target:"_blank",rel:"noopener noreferrer",style:{color:"blue",fontWeight:"bold"},onClick:function(){window.open("https://amboss.space/node/".concat(y.getNodePubkey()),"_blank","noreferrer")}},y.getNodePubkey(),"@",y.getNodeHost(),":",y.getNodePort()))),o.createElement("div",{className:"inner-input-links"},o.createElement("div",{className:"input-links-side"}),o.createElement("div",{className:"squeak-btn-holder"},o.createElement("div",{onClick:function(t){var n=y&&y.getOfferId();if(n){var o={offerId:n,squeakHash:r};console.log("Buy clicked."),d((0,Qr.CK)(o)).then(i.SI).then((function(){d((0,Xr.Rd)()),d((0,Xr.au)()),d((0,Xr.Zu)({squeakHash:r})),d((0,Xr.Zb)({pubkey:a}))})).catch((function(e){alert(e.message)})),e.submittedCallback&&e.submittedCallback()}},className:y?"squeak-btn-side squeak-btn-active":"squeak-btn-side"},"Buy"))))))}))},6387:function(e,t,r){"use strict";var n=r(2791),o=r(9271),a=(r(2426),r(6059),r(8608),r(6440)),i=r(6789),s=r(6515);t.Z=(0,o.EN)((function(e){var t=(0,i.I0)(),r=function(){console.log("deleteSqueak"),t((0,s.ji)(e.squeakHash)),e.submittedCallback&&e.submittedCallback()},o=(e.replyToSqueak&&e.replyToSqueak.getAuthor(),function(){var e=(0,a.XQ)();return n.createElement("button",{type:"submit",className:"squeak-btn-side squeak-btn-active",onClick:e.submitForm},"Delete")}),l=function(){return n.createElement(a.l0,{onSubmit:r,className:"Squeak-input-side"},n.createElement("div",{className:"inner-input-links"},n.createElement("div",{className:"input-links-side"}),n.createElement("div",{className:"squeak-btn-holder"},n.createElement("div",{style:{fontSize:"13px",color:null}}),n.createElement(o,null))))};return n.createElement(n.Fragment,null,n.createElement("div",{className:"Squeak-input-wrapper"},n.createElement(l,null)))}))},3943:function(e,t,r){"use strict";var n=r(2791),o=r(9271),a=r(8785),i=r(2426),s=r.n(i),l=(r(6059),r(1523)),u=r(3652),p=(r(8608),r(6440)),c=r(6789),d=r(6515),g=r(9899);t.Z=(0,o.EN)((function(e){var t=(0,c.v9)(g.X5),r=((0,c.v9)(d.qW),(0,c.I0)());(0,n.useEffect)((function(){r((0,g.iK)())}),[]);var o=function(t){var n=t.values;if(console.log(n),console.log(n.signingProfileId),n.signingProfileId)if(e.resqueakedSqueak){var o={signingProfile:n.signingProfileId,resqueakedHash:e.resqueakedSqueak.getSqueakHash(),replyTo:e.replyToSqueak?e.replyToSqueak.getSqueakHash():null};console.log("makeResqueak"),r((0,d.Xj)(o)).then(a.SI).then((function(t){e.history.push("/app/squeak/".concat(t))})).catch((function(e){alert(e.message)})),e.submittedCallback&&e.submittedCallback()}else alert("Resqueaked squeak cannot be empty.");else alert("Signing Profile must be selected.")},i=e.resqueakedSqueak&&e.resqueakedSqueak.getAuthor(),f=function(){var e=(0,p.XQ)();return n.createElement("button",{type:"submit",className:"squeak-btn-side squeak-btn-active",onClick:e.submitForm},"Resqueak")},y=function(){return n.createElement(p.l0,{onSubmit:o,className:"Squeak-input-side"},n.createElement(p.Ph,{class:"informed-select",name:"signingProfileId",initialValue:""},n.createElement(p.Wx,{value:"",disabled:!0},"Select Signing Profile..."),t.map((function(e){return n.createElement("option",{value:e.getProfileId()},e.getProfileName())}))),n.createElement("div",{className:"inner-input-links"},n.createElement("div",{className:"input-links-side"}),n.createElement("div",{className:"squeak-btn-holder"},n.createElement(f,null))))};return n.createElement(n.Fragment,null,e.resqueakedSqueak?n.createElement("div",{className:"reply-content-wrapper"},n.createElement("div",{className:"card-userPic-wrapper"},n.createElement(l.rU,{onClick:function(e){return e.stopPropagation()},to:"/app/profile/".concat(e.resqueakedSqueak.getAuthorPubkey())},n.createElement("img",{alt:"",style:{borderRadius:"50%",minWidth:"49px"},width:"100%",height:"49px",src:i?"".concat((0,u.d)(e.resqueakedSqueak.getAuthor())):null}))),n.createElement("div",{className:"card-content-wrapper"},n.createElement("div",{className:"card-content-header"},n.createElement("div",{className:"card-header-detail"},n.createElement("span",{className:"card-header-user"},n.createElement(l.rU,{onClick:function(e){return e.stopPropagation()},to:"/app/profile/".concat(e.resqueakedSqueak.getAuthorPubkey())},i?i.getProfileName():"Unknown Author")),n.createElement("span",{className:"card-header-username"},n.createElement(l.rU,{onClick:function(e){return e.stopPropagation()},to:"/app/profile/".concat(e.resqueakedSqueak.getAuthorPubkey())},"@"+e.resqueakedSqueak.getAuthorPubkey())),n.createElement("span",{className:"card-header-dot"},"\xb7"),n.createElement("span",{className:"card-header-date"},s()(1e3*e.resqueakedSqueak.getBlockTime()).fromNow()))),n.createElement("div",{className:"card-content-info"},e.resqueakedSqueak.getContentStr()),n.createElement("div",{className:"reply-to-user"},n.createElement("span",{className:"reply-squeak-username"},"Replying to"),n.createElement("span",{className:"main-squeak-user"},"@",e.resqueakedSqueak.getAuthorPubkey())))):null,n.createElement("div",{className:"Squeak-input-wrapper"},n.createElement(y,null)))}))},2989:function(e,t,r){"use strict";var n=r(4942),o=r(2791),a=r(9271),i=r(8785),s=r(2426),l=r.n(s),u=(r(6059),r(1523)),p=r(3652),c=(r(8608),r(6440)),d=r(6789),g=r(6515),f=r(9899);t.Z=(0,a.EN)((function(e){var t=(0,d.v9)(f.X5),r=((0,d.v9)(g.qW),(0,d.I0)());(0,o.useEffect)((function(){r((0,f.iK)())}),[]);var a=function(t){var n=t.values;if(console.log(n),console.log(n.signingProfileId),console.log(n.content),n.signingProfileId)if(n.content){var o={signingProfile:n.signingProfileId,description:n.content,replyTo:e.replyToSqueak?e.replyToSqueak.getSqueakHash():null,hasRecipient:null,recipientProfileId:-1};console.log("makeSqueak"),r((0,g.Hn)(o)).then(i.SI).then((function(t){e.history.push("/app/squeak/".concat(t))})).catch((function(e){alert(e.message)})),e.submittedCallback&&e.submittedCallback()}else alert("Content cannot be empty.");else alert("Signing Profile must be selected.")},s=e.replyToSqueak&&e.replyToSqueak.getAuthor(),y=function(e){if(e&&e.length>280)return"Content must be less than 280 characters"},h=function(){var e=(0,c.XQ)();return o.createElement("button",{type:"submit",className:"squeak-btn-side squeak-btn-active",onClick:e.submitForm},"Squeak")},m=function(){var e;return o.createElement(c.l0,{onSubmit:a,className:"Squeak-input-side"},o.createElement(c.Ph,{class:"informed-select",name:"signingProfileId",initialValue:""},o.createElement(c.Wx,{value:"",disabled:!0},"Select Signing Profile..."),t.map((function(e){return o.createElement("option",{value:e.getProfileId()},e.getProfileName())}))),o.createElement(c.Kx,(e={class:"informed-input"},(0,n.Z)(e,"class","informed-textarea"),(0,n.Z)(e,"name","content"),(0,n.Z)(e,"validate",y),(0,n.Z)(e,"placeholder","What's happening..."),e)),o.createElement("div",{className:"inner-input-links"},o.createElement("div",{className:"input-links-side"}),o.createElement("div",{className:"squeak-btn-holder"},o.createElement(c.Uw,null,(function(e){return o.createElement("div",{style:{fontSize:"13px",color:e.values.content&&e.values.content.length>280?"red":null}},e.values.content&&e.values.content.length>0&&e.values.content.length+"/280")})),o.createElement(h,null))))};return o.createElement(o.Fragment,null,e.replyToSqueak?o.createElement("div",{className:"reply-content-wrapper"},o.createElement("div",{className:"card-userPic-wrapper"},o.createElement(u.rU,{onClick:function(e){return e.stopPropagation()},to:"/app/profile/".concat(e.replyToSqueak.getAuthorPubkey())},o.createElement("img",{alt:"",style:{borderRadius:"50%",minWidth:"49px"},width:"100%",height:"49px",src:s?"".concat((0,p.d)(e.replyToSqueak.getAuthor())):null}))),o.createElement("div",{className:"card-content-wrapper"},o.createElement("div",{className:"card-content-header"},o.createElement("div",{className:"card-header-detail"},o.createElement("span",{className:"card-header-user"},o.createElement(u.rU,{onClick:function(e){return e.stopPropagation()},to:"/app/profile/".concat(e.replyToSqueak.getAuthorPubkey())},s?s.getProfileName():"Unknown Author")),o.createElement("span",{className:"card-header-username"},o.createElement(u.rU,{onClick:function(e){return e.stopPropagation()},to:"/app/profile/".concat(e.replyToSqueak.getAuthorPubkey())},"@"+e.replyToSqueak.getAuthorPubkey())),o.createElement("span",{className:"card-header-dot"},"\xb7"),o.createElement("span",{className:"card-header-date"},l()(1e3*e.replyToSqueak.getBlockTime()).fromNow()))),o.createElement("div",{className:"card-content-info"},e.replyToSqueak.getContentStr()),o.createElement("div",{className:"reply-to-user"},o.createElement("span",{className:"reply-squeak-username"},"Replying to"),o.createElement("span",{className:"main-squeak-user"},"@",e.replyToSqueak.getAuthorPubkey())))):null,o.createElement("div",{className:"Squeak-input-wrapper"},o.createElement(m,null)))}))},6515:function(e,t,r){"use strict";r.d(t,{$Y:function(){return g},$h:function(){return c},$l:function(){return u},AQ:function(){return w},C0:function(){return G},CK:function(){return S},Hn:function(){return R},Ht:function(){return H},Il:function(){return f},JI:function(){return V},Jc:function(){return j},K:function(){return k},MI:function(){return N},Rm:function(){return A},V1:function(){return _},XW:function(){return I},Xj:function(){return b},b5:function(){return x},bV:function(){return v},fb:function(){return P},g:function(){return Z},iJ:function(){return O},iL:function(){return $},ji:function(){return d},ke:function(){return z},kg:function(){return W},kh:function(){return y},lq:function(){return B},n2:function(){return m},on:function(){return h},pO:function(){return U},qW:function(){return K},qx:function(){return p},sD:function(){return D},sH:function(){return Y},u8:function(){return T},xc:function(){return J},y1:function(){return L}});var n=r(5861),o=r(7757),a=r.n(o),i=r(8785),s=r(6916),l=r(3965),u=(0,i.hg)("squeaks/fetchSqueak",function(){var e=(0,n.Z)(a().mark((function e(t){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("Fetching squeak"),e.next=3,(0,l.Yb)(t);case 3:return r=e.sent,e.abrupt("return",r.getSqueakDisplayEntry());case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),p=(0,i.hg)("squeaks/setLikeSqueak",function(){var e=(0,n.Z)(a().mark((function e(t){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("Liking squeak"),e.next=3,(0,l.fm)(t);case 3:return e.next=5,(0,l.Yb)(t);case 5:return r=e.sent,e.abrupt("return",r.getSqueakDisplayEntry());case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),c=(0,i.hg)("squeaks/setUnlikeSqueak",function(){var e=(0,n.Z)(a().mark((function e(t){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("Unliking squeak"),e.next=3,(0,l.uh)(t);case 3:return e.next=5,(0,l.Yb)(t);case 5:return r=e.sent,e.abrupt("return",r.getSqueakDisplayEntry());case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),d=(0,i.hg)("squeaks/setDeleteSqueak",function(){var e=(0,n.Z)(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("Deleting squeak"),e.next=3,(0,l.ch)(t);case 3:return e.abrupt("return",null);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),g=(0,i.hg)("squeaks/fetchAncestorSqueaks",function(){var e=(0,n.Z)(a().mark((function e(t){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("Fetching ancestor squeaks"),e.next=3,(0,l.ks)(t);case 3:return r=e.sent,e.abrupt("return",r.getSqueakDisplayEntriesList());case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),f=(0,i.hg)("squeaks/fetchReplySqueaks",function(){var e=(0,n.Z)(a().mark((function e(t){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("Fetching reply squeaks"),console.log(t.squeakHash),console.log(t.limit),console.log(t.lastSqueak),e.next=6,(0,l.XD)(t.squeakHash,t.limit,t.lastSqueak);case 6:return r=e.sent,e.abrupt("return",r.getSqueakDisplayEntriesList());case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),y=(0,i.hg)("squeaks/fetchTimeline",function(){var e=(0,n.Z)(a().mark((function e(t){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.nm)(t.limit,t.lastSqueak);case 2:return r=e.sent,e.abrupt("return",r.getSqueakDisplayEntriesList());case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),h=(0,i.hg)("searchs/fetchSearch",function(){var e=(0,n.Z)(a().mark((function e(t){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.Un)(t.searchText,t.limit,t.lastSqueak);case 2:return r=e.sent,e.abrupt("return",r.getSqueakDisplayEntriesList());case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),m=(0,i.hg)("squeaks/fetchProfileSqueaks",function(){var e=(0,n.Z)(a().mark((function e(t){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("Fetching profile squeaks"),console.log(t.profilePubkey),console.log(t.limit),console.log(t.lastSqueak),e.next=6,(0,l.bc)(t.profilePubkey,t.limit,t.lastSqueak);case 6:return r=e.sent,e.abrupt("return",r.getSqueakDisplayEntriesList());case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),R=(0,i.hg)("squeaks/makeSqueak",function(){var e=(0,n.Z)(a().mark((function e(t){var r,n,o,i,s,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("Making squeak"),r=t.signingProfile,n=t.description,o=t.replyTo,i=t.hasRecipient,s=t.recipientProfileId,e.next=8,(0,l.Y9)(r,n,o,i,s);case 8:return u=e.sent,e.abrupt("return",u.getSqueakHash());case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),b=(0,i.hg)("squeaks/setMakeResqueak",function(){var e=(0,n.Z)(a().mark((function e(t){var r,n,o,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("Making resqueak"),r=t.signingProfile,n=t.resqueakedHash,o=t.replyTo,e.next=6,(0,l.Of)(r,n,o);case 6:return i=e.sent,e.abrupt("return",i.getSqueakHash());case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),k=(0,i.hg)("squeaks/fetchSqueakOffers",function(){var e=(0,n.Z)(a().mark((function e(t){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("Fetching squeak offers"),e.next=3,(0,l.ZB)(t);case 3:return r=e.sent,console.log(r),e.abrupt("return",r.getOffersList());case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),S=(0,i.hg)("squeaks/setBuySqueak",function(){var e=(0,n.Z)(a().mark((function e(t){var r,n,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("Buying squeak"),r=t.offerId,n=t.squeakHash,e.next=5,(0,l._m)(r);case 5:return e.next=7,(0,l.Yb)(n);case 7:return o=e.sent,e.abrupt("return",o.getSqueakDisplayEntry());case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),v=(0,i.hg)("squeaks/setDownloadSqueak",function(){var e=(0,n.Z)(a().mark((function e(t){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("Downloading squeak"),e.next=3,(0,l.WN)(t);case 3:return e.next=5,(0,l.Yb)(t);case 5:return r=e.sent,e.abrupt("return",r.getSqueakDisplayEntry());case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),P=(0,i.hg)("squeaks/setDownloadSqueakOffers",function(){var e=(0,n.Z)(a().mark((function e(t){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("Downloading squeak offers"),e.next=3,(0,l.S9)(t);case 3:return e.next=5,(0,l.ZB)(t);case 5:return r=e.sent,e.abrupt("return",r.getOffersList());case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),q=function(e,t){var r=e.currentSqueak;r&&r.getSqueakHash()===t.getSqueakHash()&&(e.currentSqueak=t);var n=r&&r.getResqueakedSqueak();if(n&&n.getSqueakHash()===t.getSqueakHash()){var o=r.clone();o.setResqueakedSqueak(t),e.currentSqueak=o}},M=function(e,t){var r=e.findIndex((function(e){return e.getSqueakHash()===t.getSqueakHash()}));-1!=r&&(e[r]=t);for(var n=0;n 0&&e[e.length-1]})),z=function(e){return e.squeaks.searchSqueaks},j=function(e){return e.squeaks.searchSqueaksStatus},G=(0,s.P1)(z,(function(e){return e.length>0&&e[e.length-1]})),U=function(e){return e.squeaks.profileSqueaks},H=function(e){return e.squeaks.profileSqueaksStatus},V=(0,s.P1)(U,(function(e){return e.length>0&&e[e.length-1]})),K=function(e){return e.squeaks.makeSqueakStatus},$=function(e){return e.squeaks.squeakOffers},Y=function(e){return e.squeaks.buySqueakStatus},Z=function(e){return e.squeaks.downloadSqueakStatus},J=function(e){return e.squeaks.downloadSqueakOffersStatus}},3532:function(e,t,r){"use strict";r.d(t,{Pg:function(){return u},Q_:function(){return g},R_:function(){return p},lF:function(){return l},ru:function(){return f},wt:function(){return d}});var n=r(5861),o=r(7757),a=r.n(o),i=r(8785),s=r(3965),l=(0,i.hg)("twitterAccounts/setDeleteTwitterAccount",function(){var e=(0,n.Z)(a().mark((function e(t){var r,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("Deleting twitter account"),r=t.twitterAccountId,e.next=4,(0,s.GM)(r);case 4:return e.next=6,(0,s.MB)();case 6:return n=e.sent,console.log(n),e.abrupt("return",n.getTwitterAccountsList());case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),u=(0,i.hg)("twitterAccounts/fetchTwitterAccounts",(0,n.Z)(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.MB)();case 2:return t=e.sent,console.log(t),e.abrupt("return",t.getTwitterAccountsList());case 5:case"end":return e.stop()}}),e)})))),p=(0,i.hg)("twitterAccounts/setCreateTwitterAccount",function(){var e=(0,n.Z)(a().mark((function e(t){var r,n,o,i,l;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("Creating twitter account"),r=t.twitterHandle,n=t.profileId,o=t.bearerToken,e.next=6,(0,s.sd)(r,n,o);case 6:return i=e.sent,console.log(i),e.next=10,(0,s.MB)();case 10:return l=e.sent,console.log(l),e.abrupt("return",l.getTwitterAccountsList());case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),c=(0,i.oM)({name:"twitterAccounts",initialState:{twitterAccountsStatus:"idle",twitterAccounts:[],createTwitterAccountStatus:"idle"},reducers:{clearTwitterAccounts:function(e,t){e.createTwitterAccountStatus="idle",e.twitterAccounts=[]}},extraReducers:function(e){e.addCase(u.pending,(function(e,t){e.twitterAccountsStatus="loading"})).addCase(u.fulfilled,(function(e,t){var r=t.payload;e.twitterAccounts=r,e.twitterAccountsStatus="idle"})).addCase(p.pending,(function(e,t){console.log("setCreateTwitterAccount pending"),e.createTwitterAccountStatus="loading"})).addCase(p.fulfilled,(function(e,t){console.log("setCreateTwitterAccount fulfilled"),console.log(t);var r=t.payload;e.twitterAccounts=r,e.twitterAccountsStatus="idle",e.createTwitterAccountStatus="idle"})).addCase(l.fulfilled,(function(e,t){console.log(t);var r=t.payload;e.twitterAccounts=r,e.twitterAccountsStatus="idle"}))}}),d=c.actions.clearTwitterAccounts;t.ZP=c.reducer;var g=function(e){return e.twitterAccounts.twitterAccountsStatus},f=function(e){return e.twitterAccounts.twitterAccounts}},4185:function(e,t,r){var n=r(9393),o=n,a=Function("return this")();o.exportSymbol("proto.lnrpc.AMP",null,a),o.exportSymbol("proto.lnrpc.AMPRecord",null,a),o.exportSymbol("proto.lnrpc.AbandonChannelRequest",null,a),o.exportSymbol("proto.lnrpc.AbandonChannelResponse",null,a),o.exportSymbol("proto.lnrpc.AddInvoiceResponse",null,a),o.exportSymbol("proto.lnrpc.AddressType",null,a),o.exportSymbol("proto.lnrpc.Amount",null,a),o.exportSymbol("proto.lnrpc.BakeMacaroonRequest",null,a),o.exportSymbol("proto.lnrpc.BakeMacaroonResponse",null,a),o.exportSymbol("proto.lnrpc.BatchOpenChannel",null,a),o.exportSymbol("proto.lnrpc.BatchOpenChannelRequest",null,a),o.exportSymbol("proto.lnrpc.BatchOpenChannelResponse",null,a),o.exportSymbol("proto.lnrpc.Chain",null,a),o.exportSymbol("proto.lnrpc.ChanBackupExportRequest",null,a),o.exportSymbol("proto.lnrpc.ChanBackupSnapshot",null,a),o.exportSymbol("proto.lnrpc.ChanInfoRequest",null,a),o.exportSymbol("proto.lnrpc.ChanPointShim",null,a),o.exportSymbol("proto.lnrpc.Channel",null,a),o.exportSymbol("proto.lnrpc.ChannelAcceptRequest",null,a),o.exportSymbol("proto.lnrpc.ChannelAcceptResponse",null,a),o.exportSymbol("proto.lnrpc.ChannelBackup",null,a),o.exportSymbol("proto.lnrpc.ChannelBackupSubscription",null,a),o.exportSymbol("proto.lnrpc.ChannelBackups",null,a),o.exportSymbol("proto.lnrpc.ChannelBalanceRequest",null,a),o.exportSymbol("proto.lnrpc.ChannelBalanceResponse",null,a),o.exportSymbol("proto.lnrpc.ChannelCloseSummary",null,a),o.exportSymbol("proto.lnrpc.ChannelCloseSummary.ClosureType",null,a),o.exportSymbol("proto.lnrpc.ChannelCloseUpdate",null,a),o.exportSymbol("proto.lnrpc.ChannelConstraints",null,a),o.exportSymbol("proto.lnrpc.ChannelEdge",null,a),o.exportSymbol("proto.lnrpc.ChannelEdgeUpdate",null,a),o.exportSymbol("proto.lnrpc.ChannelEventSubscription",null,a),o.exportSymbol("proto.lnrpc.ChannelEventUpdate",null,a),o.exportSymbol("proto.lnrpc.ChannelEventUpdate.ChannelCase",null,a),o.exportSymbol("proto.lnrpc.ChannelEventUpdate.UpdateType",null,a),o.exportSymbol("proto.lnrpc.ChannelFeeReport",null,a),o.exportSymbol("proto.lnrpc.ChannelGraph",null,a),o.exportSymbol("proto.lnrpc.ChannelGraphRequest",null,a),o.exportSymbol("proto.lnrpc.ChannelOpenUpdate",null,a),o.exportSymbol("proto.lnrpc.ChannelPoint",null,a),o.exportSymbol("proto.lnrpc.ChannelPoint.FundingTxidCase",null,a),o.exportSymbol("proto.lnrpc.ChannelUpdate",null,a),o.exportSymbol("proto.lnrpc.CheckMacPermRequest",null,a),o.exportSymbol("proto.lnrpc.CheckMacPermResponse",null,a),o.exportSymbol("proto.lnrpc.CloseChannelRequest",null,a),o.exportSymbol("proto.lnrpc.CloseStatusUpdate",null,a),o.exportSymbol("proto.lnrpc.CloseStatusUpdate.UpdateCase",null,a),o.exportSymbol("proto.lnrpc.ClosedChannelUpdate",null,a),o.exportSymbol("proto.lnrpc.ClosedChannelsRequest",null,a),o.exportSymbol("proto.lnrpc.ClosedChannelsResponse",null,a),o.exportSymbol("proto.lnrpc.CommitmentType",null,a),o.exportSymbol("proto.lnrpc.ConfirmationUpdate",null,a),o.exportSymbol("proto.lnrpc.ConnectPeerRequest",null,a),o.exportSymbol("proto.lnrpc.ConnectPeerResponse",null,a),o.exportSymbol("proto.lnrpc.DebugLevelRequest",null,a),o.exportSymbol("proto.lnrpc.DebugLevelResponse",null,a),o.exportSymbol("proto.lnrpc.DeleteAllPaymentsRequest",null,a),o.exportSymbol("proto.lnrpc.DeleteAllPaymentsResponse",null,a),o.exportSymbol("proto.lnrpc.DeleteMacaroonIDRequest",null,a),o.exportSymbol("proto.lnrpc.DeleteMacaroonIDResponse",null,a),o.exportSymbol("proto.lnrpc.DeletePaymentRequest",null,a),o.exportSymbol("proto.lnrpc.DeletePaymentResponse",null,a),o.exportSymbol("proto.lnrpc.DisconnectPeerRequest",null,a),o.exportSymbol("proto.lnrpc.DisconnectPeerResponse",null,a),o.exportSymbol("proto.lnrpc.EdgeLocator",null,a),o.exportSymbol("proto.lnrpc.EstimateFeeRequest",null,a),o.exportSymbol("proto.lnrpc.EstimateFeeResponse",null,a),o.exportSymbol("proto.lnrpc.ExportChannelBackupRequest",null,a),o.exportSymbol("proto.lnrpc.FailedUpdate",null,a),o.exportSymbol("proto.lnrpc.Failure",null,a),o.exportSymbol("proto.lnrpc.Failure.FailureCode",null,a),o.exportSymbol("proto.lnrpc.Feature",null,a),o.exportSymbol("proto.lnrpc.FeatureBit",null,a),o.exportSymbol("proto.lnrpc.FeeLimit",null,a),o.exportSymbol("proto.lnrpc.FeeLimit.LimitCase",null,a),o.exportSymbol("proto.lnrpc.FeeReportRequest",null,a),o.exportSymbol("proto.lnrpc.FeeReportResponse",null,a),o.exportSymbol("proto.lnrpc.FloatMetric",null,a),o.exportSymbol("proto.lnrpc.ForwardingEvent",null,a),o.exportSymbol("proto.lnrpc.ForwardingHistoryRequest",null,a),o.exportSymbol("proto.lnrpc.ForwardingHistoryResponse",null,a),o.exportSymbol("proto.lnrpc.FundingPsbtFinalize",null,a),o.exportSymbol("proto.lnrpc.FundingPsbtVerify",null,a),o.exportSymbol("proto.lnrpc.FundingShim",null,a),o.exportSymbol("proto.lnrpc.FundingShim.ShimCase",null,a),o.exportSymbol("proto.lnrpc.FundingShimCancel",null,a),o.exportSymbol("proto.lnrpc.FundingStateStepResp",null,a),o.exportSymbol("proto.lnrpc.FundingTransitionMsg",null,a),o.exportSymbol("proto.lnrpc.FundingTransitionMsg.TriggerCase",null,a),o.exportSymbol("proto.lnrpc.GetInfoRequest",null,a),o.exportSymbol("proto.lnrpc.GetInfoResponse",null,a),o.exportSymbol("proto.lnrpc.GetRecoveryInfoRequest",null,a),o.exportSymbol("proto.lnrpc.GetRecoveryInfoResponse",null,a),o.exportSymbol("proto.lnrpc.GetTransactionsRequest",null,a),o.exportSymbol("proto.lnrpc.GraphTopologySubscription",null,a),o.exportSymbol("proto.lnrpc.GraphTopologyUpdate",null,a),o.exportSymbol("proto.lnrpc.HTLC",null,a),o.exportSymbol("proto.lnrpc.HTLCAttempt",null,a),o.exportSymbol("proto.lnrpc.HTLCAttempt.HTLCStatus",null,a),o.exportSymbol("proto.lnrpc.Hop",null,a),o.exportSymbol("proto.lnrpc.HopHint",null,a),o.exportSymbol("proto.lnrpc.Initiator",null,a),o.exportSymbol("proto.lnrpc.InterceptFeedback",null,a),o.exportSymbol("proto.lnrpc.Invoice",null,a),o.exportSymbol("proto.lnrpc.Invoice.InvoiceState",null,a),o.exportSymbol("proto.lnrpc.InvoiceHTLC",null,a),o.exportSymbol("proto.lnrpc.InvoiceHTLCState",null,a),o.exportSymbol("proto.lnrpc.InvoiceSubscription",null,a),o.exportSymbol("proto.lnrpc.KeyDescriptor",null,a),o.exportSymbol("proto.lnrpc.KeyLocator",null,a),o.exportSymbol("proto.lnrpc.LightningAddress",null,a),o.exportSymbol("proto.lnrpc.LightningNode",null,a),o.exportSymbol("proto.lnrpc.ListChannelsRequest",null,a),o.exportSymbol("proto.lnrpc.ListChannelsResponse",null,a),o.exportSymbol("proto.lnrpc.ListInvoiceRequest",null,a),o.exportSymbol("proto.lnrpc.ListInvoiceResponse",null,a),o.exportSymbol("proto.lnrpc.ListMacaroonIDsRequest",null,a),o.exportSymbol("proto.lnrpc.ListMacaroonIDsResponse",null,a),o.exportSymbol("proto.lnrpc.ListPaymentsRequest",null,a),o.exportSymbol("proto.lnrpc.ListPaymentsResponse",null,a),o.exportSymbol("proto.lnrpc.ListPeersRequest",null,a),o.exportSymbol("proto.lnrpc.ListPeersResponse",null,a),o.exportSymbol("proto.lnrpc.ListPermissionsRequest",null,a),o.exportSymbol("proto.lnrpc.ListPermissionsResponse",null,a),o.exportSymbol("proto.lnrpc.ListUnspentRequest",null,a),o.exportSymbol("proto.lnrpc.ListUnspentResponse",null,a),o.exportSymbol("proto.lnrpc.MPPRecord",null,a),o.exportSymbol("proto.lnrpc.MacaroonId",null,a),o.exportSymbol("proto.lnrpc.MacaroonPermission",null,a),o.exportSymbol("proto.lnrpc.MacaroonPermissionList",null,a),o.exportSymbol("proto.lnrpc.MiddlewareRegistration",null,a),o.exportSymbol("proto.lnrpc.MultiChanBackup",null,a),o.exportSymbol("proto.lnrpc.NetworkInfo",null,a),o.exportSymbol("proto.lnrpc.NetworkInfoRequest",null,a),o.exportSymbol("proto.lnrpc.NewAddressRequest",null,a),o.exportSymbol("proto.lnrpc.NewAddressResponse",null,a),o.exportSymbol("proto.lnrpc.NodeAddress",null,a),o.exportSymbol("proto.lnrpc.NodeInfo",null,a),o.exportSymbol("proto.lnrpc.NodeInfoRequest",null,a),o.exportSymbol("proto.lnrpc.NodeMetricType",null,a),o.exportSymbol("proto.lnrpc.NodeMetricsRequest",null,a),o.exportSymbol("proto.lnrpc.NodeMetricsResponse",null,a),o.exportSymbol("proto.lnrpc.NodePair",null,a),o.exportSymbol("proto.lnrpc.NodeUpdate",null,a),o.exportSymbol("proto.lnrpc.Op",null,a),o.exportSymbol("proto.lnrpc.OpenChannelRequest",null,a),o.exportSymbol("proto.lnrpc.OpenStatusUpdate",null,a),o.exportSymbol("proto.lnrpc.OpenStatusUpdate.UpdateCase",null,a),o.exportSymbol("proto.lnrpc.OutPoint",null,a),o.exportSymbol("proto.lnrpc.PayReq",null,a),o.exportSymbol("proto.lnrpc.PayReqString",null,a),o.exportSymbol("proto.lnrpc.Payment",null,a),o.exportSymbol("proto.lnrpc.Payment.PaymentStatus",null,a),o.exportSymbol("proto.lnrpc.PaymentFailureReason",null,a),o.exportSymbol("proto.lnrpc.PaymentHash",null,a),o.exportSymbol("proto.lnrpc.Peer",null,a),o.exportSymbol("proto.lnrpc.Peer.SyncType",null,a),o.exportSymbol("proto.lnrpc.PeerEvent",null,a),o.exportSymbol("proto.lnrpc.PeerEvent.EventType",null,a),o.exportSymbol("proto.lnrpc.PeerEventSubscription",null,a),o.exportSymbol("proto.lnrpc.PendingChannelsRequest",null,a),o.exportSymbol("proto.lnrpc.PendingChannelsResponse",null,a),o.exportSymbol("proto.lnrpc.PendingChannelsResponse.ClosedChannel",null,a),o.exportSymbol("proto.lnrpc.PendingChannelsResponse.Commitments",null,a),o.exportSymbol("proto.lnrpc.PendingChannelsResponse.ForceClosedChannel",null,a),o.exportSymbol("proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.AnchorState",null,a),o.exportSymbol("proto.lnrpc.PendingChannelsResponse.PendingChannel",null,a),o.exportSymbol("proto.lnrpc.PendingChannelsResponse.PendingOpenChannel",null,a),o.exportSymbol("proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel",null,a),o.exportSymbol("proto.lnrpc.PendingHTLC",null,a),o.exportSymbol("proto.lnrpc.PendingUpdate",null,a),o.exportSymbol("proto.lnrpc.PolicyUpdateRequest",null,a),o.exportSymbol("proto.lnrpc.PolicyUpdateRequest.ScopeCase",null,a),o.exportSymbol("proto.lnrpc.PolicyUpdateResponse",null,a),o.exportSymbol("proto.lnrpc.PsbtShim",null,a),o.exportSymbol("proto.lnrpc.QueryRoutesRequest",null,a),o.exportSymbol("proto.lnrpc.QueryRoutesResponse",null,a),o.exportSymbol("proto.lnrpc.RPCMessage",null,a),o.exportSymbol("proto.lnrpc.RPCMiddlewareRequest",null,a),o.exportSymbol("proto.lnrpc.RPCMiddlewareRequest.InterceptTypeCase",null,a),o.exportSymbol("proto.lnrpc.RPCMiddlewareResponse",null,a),o.exportSymbol("proto.lnrpc.RPCMiddlewareResponse.MiddlewareMessageCase",null,a),o.exportSymbol("proto.lnrpc.ReadyForPsbtFunding",null,a),o.exportSymbol("proto.lnrpc.Resolution",null,a),o.exportSymbol("proto.lnrpc.ResolutionOutcome",null,a),o.exportSymbol("proto.lnrpc.ResolutionType",null,a),o.exportSymbol("proto.lnrpc.RestoreBackupResponse",null,a),o.exportSymbol("proto.lnrpc.RestoreChanBackupRequest",null,a),o.exportSymbol("proto.lnrpc.RestoreChanBackupRequest.BackupCase",null,a),o.exportSymbol("proto.lnrpc.Route",null,a),o.exportSymbol("proto.lnrpc.RouteHint",null,a),o.exportSymbol("proto.lnrpc.RoutingPolicy",null,a),o.exportSymbol("proto.lnrpc.SendCoinsRequest",null,a),o.exportSymbol("proto.lnrpc.SendCoinsResponse",null,a),o.exportSymbol("proto.lnrpc.SendManyRequest",null,a),o.exportSymbol("proto.lnrpc.SendManyResponse",null,a),o.exportSymbol("proto.lnrpc.SendRequest",null,a),o.exportSymbol("proto.lnrpc.SendResponse",null,a),o.exportSymbol("proto.lnrpc.SendToRouteRequest",null,a),o.exportSymbol("proto.lnrpc.SignMessageRequest",null,a),o.exportSymbol("proto.lnrpc.SignMessageResponse",null,a),o.exportSymbol("proto.lnrpc.StopRequest",null,a),o.exportSymbol("proto.lnrpc.StopResponse",null,a),o.exportSymbol("proto.lnrpc.StreamAuth",null,a),o.exportSymbol("proto.lnrpc.TimestampedError",null,a),o.exportSymbol("proto.lnrpc.Transaction",null,a),o.exportSymbol("proto.lnrpc.TransactionDetails",null,a),o.exportSymbol("proto.lnrpc.UpdateFailure",null,a),o.exportSymbol("proto.lnrpc.Utxo",null,a),o.exportSymbol("proto.lnrpc.VerifyChanBackupResponse",null,a),o.exportSymbol("proto.lnrpc.VerifyMessageRequest",null,a),o.exportSymbol("proto.lnrpc.VerifyMessageResponse",null,a),o.exportSymbol("proto.lnrpc.WalletAccountBalance",null,a),o.exportSymbol("proto.lnrpc.WalletBalanceRequest",null,a),o.exportSymbol("proto.lnrpc.WalletBalanceResponse",null,a),proto.lnrpc.Utxo=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.Utxo,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.Utxo.displayName="proto.lnrpc.Utxo"),proto.lnrpc.Transaction=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.Transaction.repeatedFields_,null)},o.inherits(proto.lnrpc.Transaction,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.Transaction.displayName="proto.lnrpc.Transaction"),proto.lnrpc.GetTransactionsRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.GetTransactionsRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.GetTransactionsRequest.displayName="proto.lnrpc.GetTransactionsRequest"),proto.lnrpc.TransactionDetails=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.TransactionDetails.repeatedFields_,null)},o.inherits(proto.lnrpc.TransactionDetails,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.TransactionDetails.displayName="proto.lnrpc.TransactionDetails"),proto.lnrpc.FeeLimit=function(e){n.Message.initialize(this,e,0,-1,null,proto.lnrpc.FeeLimit.oneofGroups_)},o.inherits(proto.lnrpc.FeeLimit,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.FeeLimit.displayName="proto.lnrpc.FeeLimit"),proto.lnrpc.SendRequest=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.SendRequest.repeatedFields_,null)},o.inherits(proto.lnrpc.SendRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.SendRequest.displayName="proto.lnrpc.SendRequest"),proto.lnrpc.SendResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.SendResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.SendResponse.displayName="proto.lnrpc.SendResponse"),proto.lnrpc.SendToRouteRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.SendToRouteRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.SendToRouteRequest.displayName="proto.lnrpc.SendToRouteRequest"),proto.lnrpc.ChannelAcceptRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ChannelAcceptRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChannelAcceptRequest.displayName="proto.lnrpc.ChannelAcceptRequest"),proto.lnrpc.ChannelAcceptResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ChannelAcceptResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChannelAcceptResponse.displayName="proto.lnrpc.ChannelAcceptResponse"),proto.lnrpc.ChannelPoint=function(e){n.Message.initialize(this,e,0,-1,null,proto.lnrpc.ChannelPoint.oneofGroups_)},o.inherits(proto.lnrpc.ChannelPoint,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChannelPoint.displayName="proto.lnrpc.ChannelPoint"),proto.lnrpc.OutPoint=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.OutPoint,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.OutPoint.displayName="proto.lnrpc.OutPoint"),proto.lnrpc.LightningAddress=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.LightningAddress,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.LightningAddress.displayName="proto.lnrpc.LightningAddress"),proto.lnrpc.EstimateFeeRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.EstimateFeeRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.EstimateFeeRequest.displayName="proto.lnrpc.EstimateFeeRequest"),proto.lnrpc.EstimateFeeResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.EstimateFeeResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.EstimateFeeResponse.displayName="proto.lnrpc.EstimateFeeResponse"),proto.lnrpc.SendManyRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.SendManyRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.SendManyRequest.displayName="proto.lnrpc.SendManyRequest"),proto.lnrpc.SendManyResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.SendManyResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.SendManyResponse.displayName="proto.lnrpc.SendManyResponse"),proto.lnrpc.SendCoinsRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.SendCoinsRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.SendCoinsRequest.displayName="proto.lnrpc.SendCoinsRequest"),proto.lnrpc.SendCoinsResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.SendCoinsResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.SendCoinsResponse.displayName="proto.lnrpc.SendCoinsResponse"),proto.lnrpc.ListUnspentRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ListUnspentRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ListUnspentRequest.displayName="proto.lnrpc.ListUnspentRequest"),proto.lnrpc.ListUnspentResponse=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.ListUnspentResponse.repeatedFields_,null)},o.inherits(proto.lnrpc.ListUnspentResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ListUnspentResponse.displayName="proto.lnrpc.ListUnspentResponse"),proto.lnrpc.NewAddressRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.NewAddressRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.NewAddressRequest.displayName="proto.lnrpc.NewAddressRequest"),proto.lnrpc.NewAddressResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.NewAddressResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.NewAddressResponse.displayName="proto.lnrpc.NewAddressResponse"),proto.lnrpc.SignMessageRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.SignMessageRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.SignMessageRequest.displayName="proto.lnrpc.SignMessageRequest"),proto.lnrpc.SignMessageResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.SignMessageResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.SignMessageResponse.displayName="proto.lnrpc.SignMessageResponse"),proto.lnrpc.VerifyMessageRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.VerifyMessageRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.VerifyMessageRequest.displayName="proto.lnrpc.VerifyMessageRequest"),proto.lnrpc.VerifyMessageResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.VerifyMessageResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.VerifyMessageResponse.displayName="proto.lnrpc.VerifyMessageResponse"),proto.lnrpc.ConnectPeerRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ConnectPeerRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ConnectPeerRequest.displayName="proto.lnrpc.ConnectPeerRequest"),proto.lnrpc.ConnectPeerResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ConnectPeerResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ConnectPeerResponse.displayName="proto.lnrpc.ConnectPeerResponse"),proto.lnrpc.DisconnectPeerRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.DisconnectPeerRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.DisconnectPeerRequest.displayName="proto.lnrpc.DisconnectPeerRequest"),proto.lnrpc.DisconnectPeerResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.DisconnectPeerResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.DisconnectPeerResponse.displayName="proto.lnrpc.DisconnectPeerResponse"),proto.lnrpc.HTLC=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.HTLC,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.HTLC.displayName="proto.lnrpc.HTLC"),proto.lnrpc.ChannelConstraints=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ChannelConstraints,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChannelConstraints.displayName="proto.lnrpc.ChannelConstraints"),proto.lnrpc.Channel=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.Channel.repeatedFields_,null)},o.inherits(proto.lnrpc.Channel,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.Channel.displayName="proto.lnrpc.Channel"),proto.lnrpc.ListChannelsRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ListChannelsRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ListChannelsRequest.displayName="proto.lnrpc.ListChannelsRequest"),proto.lnrpc.ListChannelsResponse=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.ListChannelsResponse.repeatedFields_,null)},o.inherits(proto.lnrpc.ListChannelsResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ListChannelsResponse.displayName="proto.lnrpc.ListChannelsResponse"),proto.lnrpc.ChannelCloseSummary=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.ChannelCloseSummary.repeatedFields_,null)},o.inherits(proto.lnrpc.ChannelCloseSummary,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChannelCloseSummary.displayName="proto.lnrpc.ChannelCloseSummary"),proto.lnrpc.Resolution=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.Resolution,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.Resolution.displayName="proto.lnrpc.Resolution"),proto.lnrpc.ClosedChannelsRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ClosedChannelsRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ClosedChannelsRequest.displayName="proto.lnrpc.ClosedChannelsRequest"),proto.lnrpc.ClosedChannelsResponse=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.ClosedChannelsResponse.repeatedFields_,null)},o.inherits(proto.lnrpc.ClosedChannelsResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ClosedChannelsResponse.displayName="proto.lnrpc.ClosedChannelsResponse"),proto.lnrpc.Peer=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.Peer.repeatedFields_,null)},o.inherits(proto.lnrpc.Peer,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.Peer.displayName="proto.lnrpc.Peer"),proto.lnrpc.TimestampedError=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.TimestampedError,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.TimestampedError.displayName="proto.lnrpc.TimestampedError"),proto.lnrpc.ListPeersRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ListPeersRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ListPeersRequest.displayName="proto.lnrpc.ListPeersRequest"),proto.lnrpc.ListPeersResponse=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.ListPeersResponse.repeatedFields_,null)},o.inherits(proto.lnrpc.ListPeersResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ListPeersResponse.displayName="proto.lnrpc.ListPeersResponse"),proto.lnrpc.PeerEventSubscription=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.PeerEventSubscription,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.PeerEventSubscription.displayName="proto.lnrpc.PeerEventSubscription"),proto.lnrpc.PeerEvent=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.PeerEvent,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.PeerEvent.displayName="proto.lnrpc.PeerEvent"),proto.lnrpc.GetInfoRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.GetInfoRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.GetInfoRequest.displayName="proto.lnrpc.GetInfoRequest"),proto.lnrpc.GetInfoResponse=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.GetInfoResponse.repeatedFields_,null)},o.inherits(proto.lnrpc.GetInfoResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.GetInfoResponse.displayName="proto.lnrpc.GetInfoResponse"),proto.lnrpc.GetRecoveryInfoRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.GetRecoveryInfoRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.GetRecoveryInfoRequest.displayName="proto.lnrpc.GetRecoveryInfoRequest"),proto.lnrpc.GetRecoveryInfoResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.GetRecoveryInfoResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.GetRecoveryInfoResponse.displayName="proto.lnrpc.GetRecoveryInfoResponse"),proto.lnrpc.Chain=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.Chain,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.Chain.displayName="proto.lnrpc.Chain"),proto.lnrpc.ConfirmationUpdate=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ConfirmationUpdate,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ConfirmationUpdate.displayName="proto.lnrpc.ConfirmationUpdate"),proto.lnrpc.ChannelOpenUpdate=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ChannelOpenUpdate,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChannelOpenUpdate.displayName="proto.lnrpc.ChannelOpenUpdate"),proto.lnrpc.ChannelCloseUpdate=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ChannelCloseUpdate,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChannelCloseUpdate.displayName="proto.lnrpc.ChannelCloseUpdate"),proto.lnrpc.CloseChannelRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.CloseChannelRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.CloseChannelRequest.displayName="proto.lnrpc.CloseChannelRequest"),proto.lnrpc.CloseStatusUpdate=function(e){n.Message.initialize(this,e,0,-1,null,proto.lnrpc.CloseStatusUpdate.oneofGroups_)},o.inherits(proto.lnrpc.CloseStatusUpdate,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.CloseStatusUpdate.displayName="proto.lnrpc.CloseStatusUpdate"),proto.lnrpc.PendingUpdate=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.PendingUpdate,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.PendingUpdate.displayName="proto.lnrpc.PendingUpdate"),proto.lnrpc.ReadyForPsbtFunding=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ReadyForPsbtFunding,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ReadyForPsbtFunding.displayName="proto.lnrpc.ReadyForPsbtFunding"),proto.lnrpc.BatchOpenChannelRequest=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.BatchOpenChannelRequest.repeatedFields_,null)},o.inherits(proto.lnrpc.BatchOpenChannelRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.BatchOpenChannelRequest.displayName="proto.lnrpc.BatchOpenChannelRequest"),proto.lnrpc.BatchOpenChannel=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.BatchOpenChannel,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.BatchOpenChannel.displayName="proto.lnrpc.BatchOpenChannel"),proto.lnrpc.BatchOpenChannelResponse=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.BatchOpenChannelResponse.repeatedFields_,null)},o.inherits(proto.lnrpc.BatchOpenChannelResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.BatchOpenChannelResponse.displayName="proto.lnrpc.BatchOpenChannelResponse"),proto.lnrpc.OpenChannelRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.OpenChannelRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.OpenChannelRequest.displayName="proto.lnrpc.OpenChannelRequest"),proto.lnrpc.OpenStatusUpdate=function(e){n.Message.initialize(this,e,0,-1,null,proto.lnrpc.OpenStatusUpdate.oneofGroups_)},o.inherits(proto.lnrpc.OpenStatusUpdate,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.OpenStatusUpdate.displayName="proto.lnrpc.OpenStatusUpdate"),proto.lnrpc.KeyLocator=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.KeyLocator,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.KeyLocator.displayName="proto.lnrpc.KeyLocator"),proto.lnrpc.KeyDescriptor=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.KeyDescriptor,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.KeyDescriptor.displayName="proto.lnrpc.KeyDescriptor"),proto.lnrpc.ChanPointShim=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ChanPointShim,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChanPointShim.displayName="proto.lnrpc.ChanPointShim"),proto.lnrpc.PsbtShim=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.PsbtShim,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.PsbtShim.displayName="proto.lnrpc.PsbtShim"),proto.lnrpc.FundingShim=function(e){n.Message.initialize(this,e,0,-1,null,proto.lnrpc.FundingShim.oneofGroups_)},o.inherits(proto.lnrpc.FundingShim,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.FundingShim.displayName="proto.lnrpc.FundingShim"),proto.lnrpc.FundingShimCancel=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.FundingShimCancel,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.FundingShimCancel.displayName="proto.lnrpc.FundingShimCancel"),proto.lnrpc.FundingPsbtVerify=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.FundingPsbtVerify,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.FundingPsbtVerify.displayName="proto.lnrpc.FundingPsbtVerify"),proto.lnrpc.FundingPsbtFinalize=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.FundingPsbtFinalize,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.FundingPsbtFinalize.displayName="proto.lnrpc.FundingPsbtFinalize"),proto.lnrpc.FundingTransitionMsg=function(e){n.Message.initialize(this,e,0,-1,null,proto.lnrpc.FundingTransitionMsg.oneofGroups_)},o.inherits(proto.lnrpc.FundingTransitionMsg,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.FundingTransitionMsg.displayName="proto.lnrpc.FundingTransitionMsg"),proto.lnrpc.FundingStateStepResp=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.FundingStateStepResp,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.FundingStateStepResp.displayName="proto.lnrpc.FundingStateStepResp"),proto.lnrpc.PendingHTLC=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.PendingHTLC,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.PendingHTLC.displayName="proto.lnrpc.PendingHTLC"),proto.lnrpc.PendingChannelsRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.PendingChannelsRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.PendingChannelsRequest.displayName="proto.lnrpc.PendingChannelsRequest"),proto.lnrpc.PendingChannelsResponse=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.PendingChannelsResponse.repeatedFields_,null)},o.inherits(proto.lnrpc.PendingChannelsResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.PendingChannelsResponse.displayName="proto.lnrpc.PendingChannelsResponse"),proto.lnrpc.PendingChannelsResponse.PendingChannel=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.PendingChannelsResponse.PendingChannel,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.PendingChannelsResponse.PendingChannel.displayName="proto.lnrpc.PendingChannelsResponse.PendingChannel"),proto.lnrpc.PendingChannelsResponse.PendingOpenChannel=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.PendingChannelsResponse.PendingOpenChannel,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.displayName="proto.lnrpc.PendingChannelsResponse.PendingOpenChannel"),proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.displayName="proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel"),proto.lnrpc.PendingChannelsResponse.Commitments=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.PendingChannelsResponse.Commitments,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.PendingChannelsResponse.Commitments.displayName="proto.lnrpc.PendingChannelsResponse.Commitments"),proto.lnrpc.PendingChannelsResponse.ClosedChannel=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.PendingChannelsResponse.ClosedChannel,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.PendingChannelsResponse.ClosedChannel.displayName="proto.lnrpc.PendingChannelsResponse.ClosedChannel"),proto.lnrpc.PendingChannelsResponse.ForceClosedChannel=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.repeatedFields_,null)},o.inherits(proto.lnrpc.PendingChannelsResponse.ForceClosedChannel,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.displayName="proto.lnrpc.PendingChannelsResponse.ForceClosedChannel"),proto.lnrpc.ChannelEventSubscription=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ChannelEventSubscription,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChannelEventSubscription.displayName="proto.lnrpc.ChannelEventSubscription"),proto.lnrpc.ChannelEventUpdate=function(e){n.Message.initialize(this,e,0,-1,null,proto.lnrpc.ChannelEventUpdate.oneofGroups_)},o.inherits(proto.lnrpc.ChannelEventUpdate,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChannelEventUpdate.displayName="proto.lnrpc.ChannelEventUpdate"),proto.lnrpc.WalletAccountBalance=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.WalletAccountBalance,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.WalletAccountBalance.displayName="proto.lnrpc.WalletAccountBalance"),proto.lnrpc.WalletBalanceRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.WalletBalanceRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.WalletBalanceRequest.displayName="proto.lnrpc.WalletBalanceRequest"),proto.lnrpc.WalletBalanceResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.WalletBalanceResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.WalletBalanceResponse.displayName="proto.lnrpc.WalletBalanceResponse"),proto.lnrpc.Amount=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.Amount,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.Amount.displayName="proto.lnrpc.Amount"),proto.lnrpc.ChannelBalanceRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ChannelBalanceRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChannelBalanceRequest.displayName="proto.lnrpc.ChannelBalanceRequest"),proto.lnrpc.ChannelBalanceResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ChannelBalanceResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChannelBalanceResponse.displayName="proto.lnrpc.ChannelBalanceResponse"),proto.lnrpc.QueryRoutesRequest=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.QueryRoutesRequest.repeatedFields_,null)},o.inherits(proto.lnrpc.QueryRoutesRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.QueryRoutesRequest.displayName="proto.lnrpc.QueryRoutesRequest"),proto.lnrpc.NodePair=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.NodePair,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.NodePair.displayName="proto.lnrpc.NodePair"),proto.lnrpc.EdgeLocator=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.EdgeLocator,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.EdgeLocator.displayName="proto.lnrpc.EdgeLocator"),proto.lnrpc.QueryRoutesResponse=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.QueryRoutesResponse.repeatedFields_,null)},o.inherits(proto.lnrpc.QueryRoutesResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.QueryRoutesResponse.displayName="proto.lnrpc.QueryRoutesResponse"),proto.lnrpc.Hop=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.Hop,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.Hop.displayName="proto.lnrpc.Hop"),proto.lnrpc.MPPRecord=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.MPPRecord,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.MPPRecord.displayName="proto.lnrpc.MPPRecord"),proto.lnrpc.AMPRecord=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.AMPRecord,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.AMPRecord.displayName="proto.lnrpc.AMPRecord"),proto.lnrpc.Route=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.Route.repeatedFields_,null)},o.inherits(proto.lnrpc.Route,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.Route.displayName="proto.lnrpc.Route"),proto.lnrpc.NodeInfoRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.NodeInfoRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.NodeInfoRequest.displayName="proto.lnrpc.NodeInfoRequest"),proto.lnrpc.NodeInfo=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.NodeInfo.repeatedFields_,null)},o.inherits(proto.lnrpc.NodeInfo,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.NodeInfo.displayName="proto.lnrpc.NodeInfo"),proto.lnrpc.LightningNode=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.LightningNode.repeatedFields_,null)},o.inherits(proto.lnrpc.LightningNode,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.LightningNode.displayName="proto.lnrpc.LightningNode"),proto.lnrpc.NodeAddress=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.NodeAddress,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.NodeAddress.displayName="proto.lnrpc.NodeAddress"),proto.lnrpc.RoutingPolicy=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.RoutingPolicy,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.RoutingPolicy.displayName="proto.lnrpc.RoutingPolicy"),proto.lnrpc.ChannelEdge=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ChannelEdge,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChannelEdge.displayName="proto.lnrpc.ChannelEdge"),proto.lnrpc.ChannelGraphRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ChannelGraphRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChannelGraphRequest.displayName="proto.lnrpc.ChannelGraphRequest"),proto.lnrpc.ChannelGraph=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.ChannelGraph.repeatedFields_,null)},o.inherits(proto.lnrpc.ChannelGraph,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChannelGraph.displayName="proto.lnrpc.ChannelGraph"),proto.lnrpc.NodeMetricsRequest=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.NodeMetricsRequest.repeatedFields_,null)},o.inherits(proto.lnrpc.NodeMetricsRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.NodeMetricsRequest.displayName="proto.lnrpc.NodeMetricsRequest"),proto.lnrpc.NodeMetricsResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.NodeMetricsResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.NodeMetricsResponse.displayName="proto.lnrpc.NodeMetricsResponse"),proto.lnrpc.FloatMetric=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.FloatMetric,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.FloatMetric.displayName="proto.lnrpc.FloatMetric"),proto.lnrpc.ChanInfoRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ChanInfoRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChanInfoRequest.displayName="proto.lnrpc.ChanInfoRequest"),proto.lnrpc.NetworkInfoRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.NetworkInfoRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.NetworkInfoRequest.displayName="proto.lnrpc.NetworkInfoRequest"),proto.lnrpc.NetworkInfo=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.NetworkInfo,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.NetworkInfo.displayName="proto.lnrpc.NetworkInfo"),proto.lnrpc.StopRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.StopRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.StopRequest.displayName="proto.lnrpc.StopRequest"),proto.lnrpc.StopResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.StopResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.StopResponse.displayName="proto.lnrpc.StopResponse"),proto.lnrpc.GraphTopologySubscription=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.GraphTopologySubscription,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.GraphTopologySubscription.displayName="proto.lnrpc.GraphTopologySubscription"),proto.lnrpc.GraphTopologyUpdate=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.GraphTopologyUpdate.repeatedFields_,null)},o.inherits(proto.lnrpc.GraphTopologyUpdate,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.GraphTopologyUpdate.displayName="proto.lnrpc.GraphTopologyUpdate"),proto.lnrpc.NodeUpdate=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.NodeUpdate.repeatedFields_,null)},o.inherits(proto.lnrpc.NodeUpdate,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.NodeUpdate.displayName="proto.lnrpc.NodeUpdate"),proto.lnrpc.ChannelEdgeUpdate=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ChannelEdgeUpdate,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChannelEdgeUpdate.displayName="proto.lnrpc.ChannelEdgeUpdate"),proto.lnrpc.ClosedChannelUpdate=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ClosedChannelUpdate,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ClosedChannelUpdate.displayName="proto.lnrpc.ClosedChannelUpdate"),proto.lnrpc.HopHint=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.HopHint,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.HopHint.displayName="proto.lnrpc.HopHint"),proto.lnrpc.RouteHint=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.RouteHint.repeatedFields_,null)},o.inherits(proto.lnrpc.RouteHint,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.RouteHint.displayName="proto.lnrpc.RouteHint"),proto.lnrpc.Invoice=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.Invoice.repeatedFields_,null)},o.inherits(proto.lnrpc.Invoice,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.Invoice.displayName="proto.lnrpc.Invoice"),proto.lnrpc.InvoiceHTLC=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.InvoiceHTLC,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.InvoiceHTLC.displayName="proto.lnrpc.InvoiceHTLC"),proto.lnrpc.AMP=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.AMP,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.AMP.displayName="proto.lnrpc.AMP"),proto.lnrpc.AddInvoiceResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.AddInvoiceResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.AddInvoiceResponse.displayName="proto.lnrpc.AddInvoiceResponse"),proto.lnrpc.PaymentHash=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.PaymentHash,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.PaymentHash.displayName="proto.lnrpc.PaymentHash"),proto.lnrpc.ListInvoiceRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ListInvoiceRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ListInvoiceRequest.displayName="proto.lnrpc.ListInvoiceRequest"),proto.lnrpc.ListInvoiceResponse=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.ListInvoiceResponse.repeatedFields_,null)},o.inherits(proto.lnrpc.ListInvoiceResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ListInvoiceResponse.displayName="proto.lnrpc.ListInvoiceResponse"),proto.lnrpc.InvoiceSubscription=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.InvoiceSubscription,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.InvoiceSubscription.displayName="proto.lnrpc.InvoiceSubscription"),proto.lnrpc.Payment=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.Payment.repeatedFields_,null)},o.inherits(proto.lnrpc.Payment,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.Payment.displayName="proto.lnrpc.Payment"),proto.lnrpc.HTLCAttempt=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.HTLCAttempt,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.HTLCAttempt.displayName="proto.lnrpc.HTLCAttempt"),proto.lnrpc.ListPaymentsRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ListPaymentsRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ListPaymentsRequest.displayName="proto.lnrpc.ListPaymentsRequest"),proto.lnrpc.ListPaymentsResponse=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.ListPaymentsResponse.repeatedFields_,null)},o.inherits(proto.lnrpc.ListPaymentsResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ListPaymentsResponse.displayName="proto.lnrpc.ListPaymentsResponse"),proto.lnrpc.DeletePaymentRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.DeletePaymentRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.DeletePaymentRequest.displayName="proto.lnrpc.DeletePaymentRequest"),proto.lnrpc.DeleteAllPaymentsRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.DeleteAllPaymentsRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.DeleteAllPaymentsRequest.displayName="proto.lnrpc.DeleteAllPaymentsRequest"),proto.lnrpc.DeletePaymentResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.DeletePaymentResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.DeletePaymentResponse.displayName="proto.lnrpc.DeletePaymentResponse"),proto.lnrpc.DeleteAllPaymentsResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.DeleteAllPaymentsResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.DeleteAllPaymentsResponse.displayName="proto.lnrpc.DeleteAllPaymentsResponse"),proto.lnrpc.AbandonChannelRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.AbandonChannelRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.AbandonChannelRequest.displayName="proto.lnrpc.AbandonChannelRequest"),proto.lnrpc.AbandonChannelResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.AbandonChannelResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.AbandonChannelResponse.displayName="proto.lnrpc.AbandonChannelResponse"),proto.lnrpc.DebugLevelRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.DebugLevelRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.DebugLevelRequest.displayName="proto.lnrpc.DebugLevelRequest"),proto.lnrpc.DebugLevelResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.DebugLevelResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.DebugLevelResponse.displayName="proto.lnrpc.DebugLevelResponse"),proto.lnrpc.PayReqString=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.PayReqString,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.PayReqString.displayName="proto.lnrpc.PayReqString"),proto.lnrpc.PayReq=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.PayReq.repeatedFields_,null)},o.inherits(proto.lnrpc.PayReq,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.PayReq.displayName="proto.lnrpc.PayReq"),proto.lnrpc.Feature=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.Feature,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.Feature.displayName="proto.lnrpc.Feature"),proto.lnrpc.FeeReportRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.FeeReportRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.FeeReportRequest.displayName="proto.lnrpc.FeeReportRequest"),proto.lnrpc.ChannelFeeReport=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ChannelFeeReport,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChannelFeeReport.displayName="proto.lnrpc.ChannelFeeReport"),proto.lnrpc.FeeReportResponse=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.FeeReportResponse.repeatedFields_,null)},o.inherits(proto.lnrpc.FeeReportResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.FeeReportResponse.displayName="proto.lnrpc.FeeReportResponse"),proto.lnrpc.PolicyUpdateRequest=function(e){n.Message.initialize(this,e,0,-1,null,proto.lnrpc.PolicyUpdateRequest.oneofGroups_)},o.inherits(proto.lnrpc.PolicyUpdateRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.PolicyUpdateRequest.displayName="proto.lnrpc.PolicyUpdateRequest"),proto.lnrpc.FailedUpdate=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.FailedUpdate,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.FailedUpdate.displayName="proto.lnrpc.FailedUpdate"),proto.lnrpc.PolicyUpdateResponse=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.PolicyUpdateResponse.repeatedFields_,null)},o.inherits(proto.lnrpc.PolicyUpdateResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.PolicyUpdateResponse.displayName="proto.lnrpc.PolicyUpdateResponse"),proto.lnrpc.ForwardingHistoryRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ForwardingHistoryRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ForwardingHistoryRequest.displayName="proto.lnrpc.ForwardingHistoryRequest"),proto.lnrpc.ForwardingEvent=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ForwardingEvent,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ForwardingEvent.displayName="proto.lnrpc.ForwardingEvent"),proto.lnrpc.ForwardingHistoryResponse=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.ForwardingHistoryResponse.repeatedFields_,null)},o.inherits(proto.lnrpc.ForwardingHistoryResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ForwardingHistoryResponse.displayName="proto.lnrpc.ForwardingHistoryResponse"),proto.lnrpc.ExportChannelBackupRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ExportChannelBackupRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ExportChannelBackupRequest.displayName="proto.lnrpc.ExportChannelBackupRequest"),proto.lnrpc.ChannelBackup=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ChannelBackup,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChannelBackup.displayName="proto.lnrpc.ChannelBackup"),proto.lnrpc.MultiChanBackup=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.MultiChanBackup.repeatedFields_,null)},o.inherits(proto.lnrpc.MultiChanBackup,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.MultiChanBackup.displayName="proto.lnrpc.MultiChanBackup"),proto.lnrpc.ChanBackupExportRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ChanBackupExportRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChanBackupExportRequest.displayName="proto.lnrpc.ChanBackupExportRequest"),proto.lnrpc.ChanBackupSnapshot=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ChanBackupSnapshot,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChanBackupSnapshot.displayName="proto.lnrpc.ChanBackupSnapshot"),proto.lnrpc.ChannelBackups=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.ChannelBackups.repeatedFields_,null)},o.inherits(proto.lnrpc.ChannelBackups,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChannelBackups.displayName="proto.lnrpc.ChannelBackups"),proto.lnrpc.RestoreChanBackupRequest=function(e){n.Message.initialize(this,e,0,-1,null,proto.lnrpc.RestoreChanBackupRequest.oneofGroups_)},o.inherits(proto.lnrpc.RestoreChanBackupRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.RestoreChanBackupRequest.displayName="proto.lnrpc.RestoreChanBackupRequest"),proto.lnrpc.RestoreBackupResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.RestoreBackupResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.RestoreBackupResponse.displayName="proto.lnrpc.RestoreBackupResponse"),proto.lnrpc.ChannelBackupSubscription=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ChannelBackupSubscription,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChannelBackupSubscription.displayName="proto.lnrpc.ChannelBackupSubscription"),proto.lnrpc.VerifyChanBackupResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.VerifyChanBackupResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.VerifyChanBackupResponse.displayName="proto.lnrpc.VerifyChanBackupResponse"),proto.lnrpc.MacaroonPermission=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.MacaroonPermission,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.MacaroonPermission.displayName="proto.lnrpc.MacaroonPermission"),proto.lnrpc.BakeMacaroonRequest=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.BakeMacaroonRequest.repeatedFields_,null)},o.inherits(proto.lnrpc.BakeMacaroonRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.BakeMacaroonRequest.displayName="proto.lnrpc.BakeMacaroonRequest"),proto.lnrpc.BakeMacaroonResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.BakeMacaroonResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.BakeMacaroonResponse.displayName="proto.lnrpc.BakeMacaroonResponse"),proto.lnrpc.ListMacaroonIDsRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ListMacaroonIDsRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ListMacaroonIDsRequest.displayName="proto.lnrpc.ListMacaroonIDsRequest"),proto.lnrpc.ListMacaroonIDsResponse=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.ListMacaroonIDsResponse.repeatedFields_,null)},o.inherits(proto.lnrpc.ListMacaroonIDsResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ListMacaroonIDsResponse.displayName="proto.lnrpc.ListMacaroonIDsResponse"),proto.lnrpc.DeleteMacaroonIDRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.DeleteMacaroonIDRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.DeleteMacaroonIDRequest.displayName="proto.lnrpc.DeleteMacaroonIDRequest"),proto.lnrpc.DeleteMacaroonIDResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.DeleteMacaroonIDResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.DeleteMacaroonIDResponse.displayName="proto.lnrpc.DeleteMacaroonIDResponse"),proto.lnrpc.MacaroonPermissionList=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.MacaroonPermissionList.repeatedFields_,null)},o.inherits(proto.lnrpc.MacaroonPermissionList,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.MacaroonPermissionList.displayName="proto.lnrpc.MacaroonPermissionList"),proto.lnrpc.ListPermissionsRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ListPermissionsRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ListPermissionsRequest.displayName="proto.lnrpc.ListPermissionsRequest"),proto.lnrpc.ListPermissionsResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ListPermissionsResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ListPermissionsResponse.displayName="proto.lnrpc.ListPermissionsResponse"),proto.lnrpc.Failure=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.Failure,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.Failure.displayName="proto.lnrpc.Failure"),proto.lnrpc.ChannelUpdate=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.ChannelUpdate,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.ChannelUpdate.displayName="proto.lnrpc.ChannelUpdate"),proto.lnrpc.MacaroonId=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.MacaroonId.repeatedFields_,null)},o.inherits(proto.lnrpc.MacaroonId,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.MacaroonId.displayName="proto.lnrpc.MacaroonId"),proto.lnrpc.Op=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.Op.repeatedFields_,null)},o.inherits(proto.lnrpc.Op,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.Op.displayName="proto.lnrpc.Op"),proto.lnrpc.CheckMacPermRequest=function(e){n.Message.initialize(this,e,0,-1,proto.lnrpc.CheckMacPermRequest.repeatedFields_,null)},o.inherits(proto.lnrpc.CheckMacPermRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.CheckMacPermRequest.displayName="proto.lnrpc.CheckMacPermRequest"),proto.lnrpc.CheckMacPermResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.CheckMacPermResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.CheckMacPermResponse.displayName="proto.lnrpc.CheckMacPermResponse"),proto.lnrpc.RPCMiddlewareRequest=function(e){n.Message.initialize(this,e,0,-1,null,proto.lnrpc.RPCMiddlewareRequest.oneofGroups_)},o.inherits(proto.lnrpc.RPCMiddlewareRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.RPCMiddlewareRequest.displayName="proto.lnrpc.RPCMiddlewareRequest"),proto.lnrpc.StreamAuth=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.StreamAuth,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.StreamAuth.displayName="proto.lnrpc.StreamAuth"),proto.lnrpc.RPCMessage=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.RPCMessage,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.RPCMessage.displayName="proto.lnrpc.RPCMessage"),proto.lnrpc.RPCMiddlewareResponse=function(e){n.Message.initialize(this,e,0,-1,null,proto.lnrpc.RPCMiddlewareResponse.oneofGroups_)},o.inherits(proto.lnrpc.RPCMiddlewareResponse,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.RPCMiddlewareResponse.displayName="proto.lnrpc.RPCMiddlewareResponse"),proto.lnrpc.MiddlewareRegistration=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.MiddlewareRegistration,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.MiddlewareRegistration.displayName="proto.lnrpc.MiddlewareRegistration"),proto.lnrpc.InterceptFeedback=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.lnrpc.InterceptFeedback,n.Message),o.DEBUG&&!COMPILED&&(proto.lnrpc.InterceptFeedback.displayName="proto.lnrpc.InterceptFeedback"),n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.Utxo.prototype.toObject=function(e){return proto.lnrpc.Utxo.toObject(e,this)},proto.lnrpc.Utxo.toObject=function(e,t){var r,o={addressType:n.Message.getFieldWithDefault(t,1,0),address:n.Message.getFieldWithDefault(t,2,""),amountSat:n.Message.getFieldWithDefault(t,3,0),pkScript:n.Message.getFieldWithDefault(t,4,""),outpoint:(r=t.getOutpoint())&&proto.lnrpc.OutPoint.toObject(e,r),confirmations:n.Message.getFieldWithDefault(t,6,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.Utxo.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.Utxo;return proto.lnrpc.Utxo.deserializeBinaryFromReader(r,t)},proto.lnrpc.Utxo.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setAddressType(r);break;case 2:r=t.readString();e.setAddress(r);break;case 3:r=t.readInt64();e.setAmountSat(r);break;case 4:r=t.readString();e.setPkScript(r);break;case 5:r=new proto.lnrpc.OutPoint;t.readMessage(r,proto.lnrpc.OutPoint.deserializeBinaryFromReader),e.setOutpoint(r);break;case 6:r=t.readInt64();e.setConfirmations(r);break;default:t.skipField()}}return e},proto.lnrpc.Utxo.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.Utxo.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.Utxo.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getAddressType())&&t.writeEnum(1,r),(r=e.getAddress()).length>0&&t.writeString(2,r),0!==(r=e.getAmountSat())&&t.writeInt64(3,r),(r=e.getPkScript()).length>0&&t.writeString(4,r),null!=(r=e.getOutpoint())&&t.writeMessage(5,r,proto.lnrpc.OutPoint.serializeBinaryToWriter),0!==(r=e.getConfirmations())&&t.writeInt64(6,r)},proto.lnrpc.Utxo.prototype.getAddressType=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.Utxo.prototype.setAddressType=function(e){return n.Message.setProto3EnumField(this,1,e)},proto.lnrpc.Utxo.prototype.getAddress=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.Utxo.prototype.setAddress=function(e){return n.Message.setProto3StringField(this,2,e)},proto.lnrpc.Utxo.prototype.getAmountSat=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.Utxo.prototype.setAmountSat=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.Utxo.prototype.getPkScript=function(){return n.Message.getFieldWithDefault(this,4,"")},proto.lnrpc.Utxo.prototype.setPkScript=function(e){return n.Message.setProto3StringField(this,4,e)},proto.lnrpc.Utxo.prototype.getOutpoint=function(){return n.Message.getWrapperField(this,proto.lnrpc.OutPoint,5)},proto.lnrpc.Utxo.prototype.setOutpoint=function(e){return n.Message.setWrapperField(this,5,e)},proto.lnrpc.Utxo.prototype.clearOutpoint=function(){return this.setOutpoint(void 0)},proto.lnrpc.Utxo.prototype.hasOutpoint=function(){return null!=n.Message.getField(this,5)},proto.lnrpc.Utxo.prototype.getConfirmations=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.Utxo.prototype.setConfirmations=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.Transaction.repeatedFields_=[8],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.Transaction.prototype.toObject=function(e){return proto.lnrpc.Transaction.toObject(e,this)},proto.lnrpc.Transaction.toObject=function(e,t){var r,o={txHash:n.Message.getFieldWithDefault(t,1,""),amount:n.Message.getFieldWithDefault(t,2,0),numConfirmations:n.Message.getFieldWithDefault(t,3,0),blockHash:n.Message.getFieldWithDefault(t,4,""),blockHeight:n.Message.getFieldWithDefault(t,5,0),timeStamp:n.Message.getFieldWithDefault(t,6,0),totalFees:n.Message.getFieldWithDefault(t,7,0),destAddressesList:null==(r=n.Message.getRepeatedField(t,8))?void 0:r,rawTxHex:n.Message.getFieldWithDefault(t,9,""),label:n.Message.getFieldWithDefault(t,10,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.Transaction.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.Transaction;return proto.lnrpc.Transaction.deserializeBinaryFromReader(r,t)},proto.lnrpc.Transaction.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setTxHash(r);break;case 2:r=t.readInt64();e.setAmount(r);break;case 3:r=t.readInt32();e.setNumConfirmations(r);break;case 4:r=t.readString();e.setBlockHash(r);break;case 5:r=t.readInt32();e.setBlockHeight(r);break;case 6:r=t.readInt64();e.setTimeStamp(r);break;case 7:r=t.readInt64();e.setTotalFees(r);break;case 8:r=t.readString();e.addDestAddresses(r);break;case 9:r=t.readString();e.setRawTxHex(r);break;case 10:r=t.readString();e.setLabel(r);break;default:t.skipField()}}return e},proto.lnrpc.Transaction.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.Transaction.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.Transaction.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getTxHash()).length>0&&t.writeString(1,r),0!==(r=e.getAmount())&&t.writeInt64(2,r),0!==(r=e.getNumConfirmations())&&t.writeInt32(3,r),(r=e.getBlockHash()).length>0&&t.writeString(4,r),0!==(r=e.getBlockHeight())&&t.writeInt32(5,r),0!==(r=e.getTimeStamp())&&t.writeInt64(6,r),0!==(r=e.getTotalFees())&&t.writeInt64(7,r),(r=e.getDestAddressesList()).length>0&&t.writeRepeatedString(8,r),(r=e.getRawTxHex()).length>0&&t.writeString(9,r),(r=e.getLabel()).length>0&&t.writeString(10,r)},proto.lnrpc.Transaction.prototype.getTxHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.Transaction.prototype.setTxHash=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.Transaction.prototype.getAmount=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.Transaction.prototype.setAmount=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.Transaction.prototype.getNumConfirmations=function(){return n.Message.getFieldWithDefault(this,3,0)};proto.lnrpc.Transaction.prototype.setNumConfirmations=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.Transaction.prototype.getBlockHash=function(){return n.Message.getFieldWithDefault(this,4,"")},proto.lnrpc.Transaction.prototype.setBlockHash=function(e){return n.Message.setProto3StringField(this,4,e)},proto.lnrpc.Transaction.prototype.getBlockHeight=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.Transaction.prototype.setBlockHeight=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.Transaction.prototype.getTimeStamp=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.Transaction.prototype.setTimeStamp=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.Transaction.prototype.getTotalFees=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.lnrpc.Transaction.prototype.setTotalFees=function(e){return n.Message.setProto3IntField(this,7,e)},proto.lnrpc.Transaction.prototype.getDestAddressesList=function(){return n.Message.getRepeatedField(this,8)},proto.lnrpc.Transaction.prototype.setDestAddressesList=function(e){return n.Message.setField(this,8,e||[])},proto.lnrpc.Transaction.prototype.addDestAddresses=function(e,t){return n.Message.addToRepeatedField(this,8,e,t)},proto.lnrpc.Transaction.prototype.clearDestAddressesList=function(){return this.setDestAddressesList([])},proto.lnrpc.Transaction.prototype.getRawTxHex=function(){return n.Message.getFieldWithDefault(this,9,"")},proto.lnrpc.Transaction.prototype.setRawTxHex=function(e){return n.Message.setProto3StringField(this,9,e)},proto.lnrpc.Transaction.prototype.getLabel=function(){return n.Message.getFieldWithDefault(this,10,"")},proto.lnrpc.Transaction.prototype.setLabel=function(e){return n.Message.setProto3StringField(this,10,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.GetTransactionsRequest.prototype.toObject=function(e){return proto.lnrpc.GetTransactionsRequest.toObject(e,this)},proto.lnrpc.GetTransactionsRequest.toObject=function(e,t){var r={startHeight:n.Message.getFieldWithDefault(t,1,0),endHeight:n.Message.getFieldWithDefault(t,2,0),account:n.Message.getFieldWithDefault(t,3,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.GetTransactionsRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.GetTransactionsRequest;return proto.lnrpc.GetTransactionsRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.GetTransactionsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setStartHeight(r);break;case 2:r=t.readInt32();e.setEndHeight(r);break;case 3:r=t.readString();e.setAccount(r);break;default:t.skipField()}}return e},proto.lnrpc.GetTransactionsRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.GetTransactionsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.GetTransactionsRequest.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getStartHeight())&&t.writeInt32(1,r),0!==(r=e.getEndHeight())&&t.writeInt32(2,r),(r=e.getAccount()).length>0&&t.writeString(3,r)},proto.lnrpc.GetTransactionsRequest.prototype.getStartHeight=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.GetTransactionsRequest.prototype.setStartHeight=function(e){return n.Message.setProto3IntField(this,1,e)},proto.lnrpc.GetTransactionsRequest.prototype.getEndHeight=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.GetTransactionsRequest.prototype.setEndHeight=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.GetTransactionsRequest.prototype.getAccount=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.lnrpc.GetTransactionsRequest.prototype.setAccount=function(e){return n.Message.setProto3StringField(this,3,e)},proto.lnrpc.TransactionDetails.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.TransactionDetails.prototype.toObject=function(e){return proto.lnrpc.TransactionDetails.toObject(e,this)},proto.lnrpc.TransactionDetails.toObject=function(e,t){var r={transactionsList:n.Message.toObjectList(t.getTransactionsList(),proto.lnrpc.Transaction.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.TransactionDetails.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.TransactionDetails;return proto.lnrpc.TransactionDetails.deserializeBinaryFromReader(r,t)},proto.lnrpc.TransactionDetails.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.lnrpc.Transaction;t.readMessage(r,proto.lnrpc.Transaction.deserializeBinaryFromReader),e.addTransactions(r)}else t.skipField()}return e},proto.lnrpc.TransactionDetails.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.TransactionDetails.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.TransactionDetails.serializeBinaryToWriter=function(e,t){var r;(r=e.getTransactionsList()).length>0&&t.writeRepeatedMessage(1,r,proto.lnrpc.Transaction.serializeBinaryToWriter)},proto.lnrpc.TransactionDetails.prototype.getTransactionsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.Transaction,1)},proto.lnrpc.TransactionDetails.prototype.setTransactionsList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.lnrpc.TransactionDetails.prototype.addTransactions=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.lnrpc.Transaction,t)},proto.lnrpc.TransactionDetails.prototype.clearTransactionsList=function(){return this.setTransactionsList([])},proto.lnrpc.FeeLimit.oneofGroups_=[[1,3,2]],proto.lnrpc.FeeLimit.LimitCase={LIMIT_NOT_SET:0,FIXED:1,FIXED_MSAT:3,PERCENT:2},proto.lnrpc.FeeLimit.prototype.getLimitCase=function(){return n.Message.computeOneofCase(this,proto.lnrpc.FeeLimit.oneofGroups_[0])},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.FeeLimit.prototype.toObject=function(e){return proto.lnrpc.FeeLimit.toObject(e,this)},proto.lnrpc.FeeLimit.toObject=function(e,t){var r={fixed:n.Message.getFieldWithDefault(t,1,0),fixedMsat:n.Message.getFieldWithDefault(t,3,0),percent:n.Message.getFieldWithDefault(t,2,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.FeeLimit.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.FeeLimit;return proto.lnrpc.FeeLimit.deserializeBinaryFromReader(r,t)},proto.lnrpc.FeeLimit.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt64();e.setFixed(r);break;case 3:r=t.readInt64();e.setFixedMsat(r);break;case 2:r=t.readInt64();e.setPercent(r);break;default:t.skipField()}}return e},proto.lnrpc.FeeLimit.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.FeeLimit.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.FeeLimit.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=n.Message.getField(e,1))&&t.writeInt64(1,r),null!=(r=n.Message.getField(e,3))&&t.writeInt64(3,r),null!=(r=n.Message.getField(e,2))&&t.writeInt64(2,r)},proto.lnrpc.FeeLimit.prototype.getFixed=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.FeeLimit.prototype.setFixed=function(e){return n.Message.setOneofField(this,1,proto.lnrpc.FeeLimit.oneofGroups_[0],e)},proto.lnrpc.FeeLimit.prototype.clearFixed=function(){return n.Message.setOneofField(this,1,proto.lnrpc.FeeLimit.oneofGroups_[0],void 0)},proto.lnrpc.FeeLimit.prototype.hasFixed=function(){return null!=n.Message.getField(this,1)},proto.lnrpc.FeeLimit.prototype.getFixedMsat=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.FeeLimit.prototype.setFixedMsat=function(e){return n.Message.setOneofField(this,3,proto.lnrpc.FeeLimit.oneofGroups_[0],e)},proto.lnrpc.FeeLimit.prototype.clearFixedMsat=function(){return n.Message.setOneofField(this,3,proto.lnrpc.FeeLimit.oneofGroups_[0],void 0)},proto.lnrpc.FeeLimit.prototype.hasFixedMsat=function(){return null!=n.Message.getField(this,3)},proto.lnrpc.FeeLimit.prototype.getPercent=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.FeeLimit.prototype.setPercent=function(e){return n.Message.setOneofField(this,2,proto.lnrpc.FeeLimit.oneofGroups_[0],e)},proto.lnrpc.FeeLimit.prototype.clearPercent=function(){return n.Message.setOneofField(this,2,proto.lnrpc.FeeLimit.oneofGroups_[0],void 0)},proto.lnrpc.FeeLimit.prototype.hasPercent=function(){return null!=n.Message.getField(this,2)},proto.lnrpc.SendRequest.repeatedFields_=[15],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.SendRequest.prototype.toObject=function(e){return proto.lnrpc.SendRequest.toObject(e,this)},proto.lnrpc.SendRequest.toObject=function(e,t){var r,o={dest:t.getDest_asB64(),destString:n.Message.getFieldWithDefault(t,2,""),amt:n.Message.getFieldWithDefault(t,3,0),amtMsat:n.Message.getFieldWithDefault(t,12,0),paymentHash:t.getPaymentHash_asB64(),paymentHashString:n.Message.getFieldWithDefault(t,5,""),paymentRequest:n.Message.getFieldWithDefault(t,6,""),finalCltvDelta:n.Message.getFieldWithDefault(t,7,0),feeLimit:(r=t.getFeeLimit())&&proto.lnrpc.FeeLimit.toObject(e,r),outgoingChanId:n.Message.getFieldWithDefault(t,9,"0"),lastHopPubkey:t.getLastHopPubkey_asB64(),cltvLimit:n.Message.getFieldWithDefault(t,10,0),destCustomRecordsMap:(r=t.getDestCustomRecordsMap())?r.toObject(e,void 0):[],allowSelfPayment:n.Message.getBooleanFieldWithDefault(t,14,!1),destFeaturesList:null==(r=n.Message.getRepeatedField(t,15))?void 0:r,paymentAddr:t.getPaymentAddr_asB64()};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.SendRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.SendRequest;return proto.lnrpc.SendRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.SendRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setDest(r);break;case 2:r=t.readString();e.setDestString(r);break;case 3:r=t.readInt64();e.setAmt(r);break;case 12:r=t.readInt64();e.setAmtMsat(r);break;case 4:r=t.readBytes();e.setPaymentHash(r);break;case 5:r=t.readString();e.setPaymentHashString(r);break;case 6:r=t.readString();e.setPaymentRequest(r);break;case 7:r=t.readInt32();e.setFinalCltvDelta(r);break;case 8:r=new proto.lnrpc.FeeLimit;t.readMessage(r,proto.lnrpc.FeeLimit.deserializeBinaryFromReader),e.setFeeLimit(r);break;case 9:r=t.readUint64String();e.setOutgoingChanId(r);break;case 13:r=t.readBytes();e.setLastHopPubkey(r);break;case 10:r=t.readUint32();e.setCltvLimit(r);break;case 11:r=e.getDestCustomRecordsMap();t.readMessage(r,(function(e,t){n.Map.deserializeBinary(e,t,n.BinaryReader.prototype.readUint64,n.BinaryReader.prototype.readBytes,null,0,"")}));break;case 14:r=t.readBool();e.setAllowSelfPayment(r);break;case 15:r=t.readPackedEnum();e.setDestFeaturesList(r);break;case 16:r=t.readBytes();e.setPaymentAddr(r);break;default:t.skipField()}}return e},proto.lnrpc.SendRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.SendRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.SendRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getDest_asU8()).length>0&&t.writeBytes(1,r),(r=e.getDestString()).length>0&&t.writeString(2,r),0!==(r=e.getAmt())&&t.writeInt64(3,r),0!==(r=e.getAmtMsat())&&t.writeInt64(12,r),(r=e.getPaymentHash_asU8()).length>0&&t.writeBytes(4,r),(r=e.getPaymentHashString()).length>0&&t.writeString(5,r),(r=e.getPaymentRequest()).length>0&&t.writeString(6,r),0!==(r=e.getFinalCltvDelta())&&t.writeInt32(7,r),null!=(r=e.getFeeLimit())&&t.writeMessage(8,r,proto.lnrpc.FeeLimit.serializeBinaryToWriter),r=e.getOutgoingChanId(),0!==parseInt(r,10)&&t.writeUint64String(9,r),(r=e.getLastHopPubkey_asU8()).length>0&&t.writeBytes(13,r),0!==(r=e.getCltvLimit())&&t.writeUint32(10,r),(r=e.getDestCustomRecordsMap(!0))&&r.getLength()>0&&r.serializeBinary(11,t,n.BinaryWriter.prototype.writeUint64,n.BinaryWriter.prototype.writeBytes),(r=e.getAllowSelfPayment())&&t.writeBool(14,r),(r=e.getDestFeaturesList()).length>0&&t.writePackedEnum(15,r),(r=e.getPaymentAddr_asU8()).length>0&&t.writeBytes(16,r)},proto.lnrpc.SendRequest.prototype.getDest=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.SendRequest.prototype.getDest_asB64=function(){return n.Message.bytesAsB64(this.getDest())},proto.lnrpc.SendRequest.prototype.getDest_asU8=function(){return n.Message.bytesAsU8(this.getDest())},proto.lnrpc.SendRequest.prototype.setDest=function(e){return n.Message.setProto3BytesField(this,1,e)},proto.lnrpc.SendRequest.prototype.getDestString=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.SendRequest.prototype.setDestString=function(e){return n.Message.setProto3StringField(this,2,e)},proto.lnrpc.SendRequest.prototype.getAmt=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.SendRequest.prototype.setAmt=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.SendRequest.prototype.getAmtMsat=function(){return n.Message.getFieldWithDefault(this,12,0)},proto.lnrpc.SendRequest.prototype.setAmtMsat=function(e){return n.Message.setProto3IntField(this,12,e)},proto.lnrpc.SendRequest.prototype.getPaymentHash=function(){return n.Message.getFieldWithDefault(this,4,"")},proto.lnrpc.SendRequest.prototype.getPaymentHash_asB64=function(){return n.Message.bytesAsB64(this.getPaymentHash())},proto.lnrpc.SendRequest.prototype.getPaymentHash_asU8=function(){return n.Message.bytesAsU8(this.getPaymentHash())},proto.lnrpc.SendRequest.prototype.setPaymentHash=function(e){return n.Message.setProto3BytesField(this,4,e)},proto.lnrpc.SendRequest.prototype.getPaymentHashString=function(){return n.Message.getFieldWithDefault(this,5,"")},proto.lnrpc.SendRequest.prototype.setPaymentHashString=function(e){return n.Message.setProto3StringField(this,5,e)},proto.lnrpc.SendRequest.prototype.getPaymentRequest=function(){return n.Message.getFieldWithDefault(this,6,"")},proto.lnrpc.SendRequest.prototype.setPaymentRequest=function(e){return n.Message.setProto3StringField(this,6,e)},proto.lnrpc.SendRequest.prototype.getFinalCltvDelta=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.lnrpc.SendRequest.prototype.setFinalCltvDelta=function(e){return n.Message.setProto3IntField(this,7,e)},proto.lnrpc.SendRequest.prototype.getFeeLimit=function(){return n.Message.getWrapperField(this,proto.lnrpc.FeeLimit,8)},proto.lnrpc.SendRequest.prototype.setFeeLimit=function(e){return n.Message.setWrapperField(this,8,e)},proto.lnrpc.SendRequest.prototype.clearFeeLimit=function(){return this.setFeeLimit(void 0)},proto.lnrpc.SendRequest.prototype.hasFeeLimit=function(){return null!=n.Message.getField(this,8)},proto.lnrpc.SendRequest.prototype.getOutgoingChanId=function(){return n.Message.getFieldWithDefault(this,9,"0")},proto.lnrpc.SendRequest.prototype.setOutgoingChanId=function(e){return n.Message.setProto3StringIntField(this,9,e)},proto.lnrpc.SendRequest.prototype.getLastHopPubkey=function(){return n.Message.getFieldWithDefault(this,13,"")},proto.lnrpc.SendRequest.prototype.getLastHopPubkey_asB64=function(){return n.Message.bytesAsB64(this.getLastHopPubkey())},proto.lnrpc.SendRequest.prototype.getLastHopPubkey_asU8=function(){return n.Message.bytesAsU8(this.getLastHopPubkey())},proto.lnrpc.SendRequest.prototype.setLastHopPubkey=function(e){return n.Message.setProto3BytesField(this,13,e)},proto.lnrpc.SendRequest.prototype.getCltvLimit=function(){return n.Message.getFieldWithDefault(this,10,0)},proto.lnrpc.SendRequest.prototype.setCltvLimit=function(e){return n.Message.setProto3IntField(this,10,e)},proto.lnrpc.SendRequest.prototype.getDestCustomRecordsMap=function(e){return n.Message.getMapField(this,11,e,null)},proto.lnrpc.SendRequest.prototype.clearDestCustomRecordsMap=function(){return this.getDestCustomRecordsMap().clear(),this},proto.lnrpc.SendRequest.prototype.getAllowSelfPayment=function(){return n.Message.getBooleanFieldWithDefault(this,14,!1)},proto.lnrpc.SendRequest.prototype.setAllowSelfPayment=function(e){return n.Message.setProto3BooleanField(this,14,e)},proto.lnrpc.SendRequest.prototype.getDestFeaturesList=function(){return n.Message.getRepeatedField(this,15)},proto.lnrpc.SendRequest.prototype.setDestFeaturesList=function(e){return n.Message.setField(this,15,e||[])},proto.lnrpc.SendRequest.prototype.addDestFeatures=function(e,t){return n.Message.addToRepeatedField(this,15,e,t)},proto.lnrpc.SendRequest.prototype.clearDestFeaturesList=function(){return this.setDestFeaturesList([])},proto.lnrpc.SendRequest.prototype.getPaymentAddr=function(){return n.Message.getFieldWithDefault(this,16,"")},proto.lnrpc.SendRequest.prototype.getPaymentAddr_asB64=function(){return n.Message.bytesAsB64(this.getPaymentAddr())},proto.lnrpc.SendRequest.prototype.getPaymentAddr_asU8=function(){return n.Message.bytesAsU8(this.getPaymentAddr())},proto.lnrpc.SendRequest.prototype.setPaymentAddr=function(e){return n.Message.setProto3BytesField(this,16,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.SendResponse.prototype.toObject=function(e){return proto.lnrpc.SendResponse.toObject(e,this)},proto.lnrpc.SendResponse.toObject=function(e,t){var r,o={paymentError:n.Message.getFieldWithDefault(t,1,""),paymentPreimage:t.getPaymentPreimage_asB64(),paymentRoute:(r=t.getPaymentRoute())&&proto.lnrpc.Route.toObject(e,r),paymentHash:t.getPaymentHash_asB64()};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.SendResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.SendResponse;return proto.lnrpc.SendResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.SendResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setPaymentError(r);break;case 2:r=t.readBytes();e.setPaymentPreimage(r);break;case 3:r=new proto.lnrpc.Route;t.readMessage(r,proto.lnrpc.Route.deserializeBinaryFromReader),e.setPaymentRoute(r);break;case 4:r=t.readBytes();e.setPaymentHash(r);break;default:t.skipField()}}return e},proto.lnrpc.SendResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.SendResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.SendResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPaymentError()).length>0&&t.writeString(1,r),(r=e.getPaymentPreimage_asU8()).length>0&&t.writeBytes(2,r),null!=(r=e.getPaymentRoute())&&t.writeMessage(3,r,proto.lnrpc.Route.serializeBinaryToWriter),(r=e.getPaymentHash_asU8()).length>0&&t.writeBytes(4,r)},proto.lnrpc.SendResponse.prototype.getPaymentError=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.SendResponse.prototype.setPaymentError=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.SendResponse.prototype.getPaymentPreimage=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.SendResponse.prototype.getPaymentPreimage_asB64=function(){return n.Message.bytesAsB64(this.getPaymentPreimage())},proto.lnrpc.SendResponse.prototype.getPaymentPreimage_asU8=function(){return n.Message.bytesAsU8(this.getPaymentPreimage())},proto.lnrpc.SendResponse.prototype.setPaymentPreimage=function(e){return n.Message.setProto3BytesField(this,2,e)},proto.lnrpc.SendResponse.prototype.getPaymentRoute=function(){return n.Message.getWrapperField(this,proto.lnrpc.Route,3)},proto.lnrpc.SendResponse.prototype.setPaymentRoute=function(e){return n.Message.setWrapperField(this,3,e)},proto.lnrpc.SendResponse.prototype.clearPaymentRoute=function(){return this.setPaymentRoute(void 0)},proto.lnrpc.SendResponse.prototype.hasPaymentRoute=function(){return null!=n.Message.getField(this,3)},proto.lnrpc.SendResponse.prototype.getPaymentHash=function(){return n.Message.getFieldWithDefault(this,4,"")},proto.lnrpc.SendResponse.prototype.getPaymentHash_asB64=function(){return n.Message.bytesAsB64(this.getPaymentHash())},proto.lnrpc.SendResponse.prototype.getPaymentHash_asU8=function(){return n.Message.bytesAsU8(this.getPaymentHash())},proto.lnrpc.SendResponse.prototype.setPaymentHash=function(e){return n.Message.setProto3BytesField(this,4,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.SendToRouteRequest.prototype.toObject=function(e){return proto.lnrpc.SendToRouteRequest.toObject(e,this)},proto.lnrpc.SendToRouteRequest.toObject=function(e,t){var r,o={paymentHash:t.getPaymentHash_asB64(),paymentHashString:n.Message.getFieldWithDefault(t,2,""),route:(r=t.getRoute())&&proto.lnrpc.Route.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.SendToRouteRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.SendToRouteRequest;return proto.lnrpc.SendToRouteRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.SendToRouteRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setPaymentHash(r);break;case 2:r=t.readString();e.setPaymentHashString(r);break;case 4:r=new proto.lnrpc.Route;t.readMessage(r,proto.lnrpc.Route.deserializeBinaryFromReader),e.setRoute(r);break;default:t.skipField()}}return e},proto.lnrpc.SendToRouteRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.SendToRouteRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.SendToRouteRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPaymentHash_asU8()).length>0&&t.writeBytes(1,r),(r=e.getPaymentHashString()).length>0&&t.writeString(2,r),null!=(r=e.getRoute())&&t.writeMessage(4,r,proto.lnrpc.Route.serializeBinaryToWriter)},proto.lnrpc.SendToRouteRequest.prototype.getPaymentHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.SendToRouteRequest.prototype.getPaymentHash_asB64=function(){return n.Message.bytesAsB64(this.getPaymentHash())},proto.lnrpc.SendToRouteRequest.prototype.getPaymentHash_asU8=function(){return n.Message.bytesAsU8(this.getPaymentHash())},proto.lnrpc.SendToRouteRequest.prototype.setPaymentHash=function(e){return n.Message.setProto3BytesField(this,1,e)},proto.lnrpc.SendToRouteRequest.prototype.getPaymentHashString=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.SendToRouteRequest.prototype.setPaymentHashString=function(e){return n.Message.setProto3StringField(this,2,e)},proto.lnrpc.SendToRouteRequest.prototype.getRoute=function(){return n.Message.getWrapperField(this,proto.lnrpc.Route,4)},proto.lnrpc.SendToRouteRequest.prototype.setRoute=function(e){return n.Message.setWrapperField(this,4,e)},proto.lnrpc.SendToRouteRequest.prototype.clearRoute=function(){return this.setRoute(void 0)},proto.lnrpc.SendToRouteRequest.prototype.hasRoute=function(){return null!=n.Message.getField(this,4)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChannelAcceptRequest.prototype.toObject=function(e){return proto.lnrpc.ChannelAcceptRequest.toObject(e,this)},proto.lnrpc.ChannelAcceptRequest.toObject=function(e,t){var r={nodePubkey:t.getNodePubkey_asB64(),chainHash:t.getChainHash_asB64(),pendingChanId:t.getPendingChanId_asB64(),fundingAmt:n.Message.getFieldWithDefault(t,4,0),pushAmt:n.Message.getFieldWithDefault(t,5,0),dustLimit:n.Message.getFieldWithDefault(t,6,0),maxValueInFlight:n.Message.getFieldWithDefault(t,7,0),channelReserve:n.Message.getFieldWithDefault(t,8,0),minHtlc:n.Message.getFieldWithDefault(t,9,0),feePerKw:n.Message.getFieldWithDefault(t,10,0),csvDelay:n.Message.getFieldWithDefault(t,11,0),maxAcceptedHtlcs:n.Message.getFieldWithDefault(t,12,0),channelFlags:n.Message.getFieldWithDefault(t,13,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ChannelAcceptRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChannelAcceptRequest;return proto.lnrpc.ChannelAcceptRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChannelAcceptRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setNodePubkey(r);break;case 2:r=t.readBytes();e.setChainHash(r);break;case 3:r=t.readBytes();e.setPendingChanId(r);break;case 4:r=t.readUint64();e.setFundingAmt(r);break;case 5:r=t.readUint64();e.setPushAmt(r);break;case 6:r=t.readUint64();e.setDustLimit(r);break;case 7:r=t.readUint64();e.setMaxValueInFlight(r);break;case 8:r=t.readUint64();e.setChannelReserve(r);break;case 9:r=t.readUint64();e.setMinHtlc(r);break;case 10:r=t.readUint64();e.setFeePerKw(r);break;case 11:r=t.readUint32();e.setCsvDelay(r);break;case 12:r=t.readUint32();e.setMaxAcceptedHtlcs(r);break;case 13:r=t.readUint32();e.setChannelFlags(r);break;default:t.skipField()}}return e},proto.lnrpc.ChannelAcceptRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChannelAcceptRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChannelAcceptRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getNodePubkey_asU8()).length>0&&t.writeBytes(1,r),(r=e.getChainHash_asU8()).length>0&&t.writeBytes(2,r),(r=e.getPendingChanId_asU8()).length>0&&t.writeBytes(3,r),0!==(r=e.getFundingAmt())&&t.writeUint64(4,r),0!==(r=e.getPushAmt())&&t.writeUint64(5,r),0!==(r=e.getDustLimit())&&t.writeUint64(6,r),0!==(r=e.getMaxValueInFlight())&&t.writeUint64(7,r),0!==(r=e.getChannelReserve())&&t.writeUint64(8,r),0!==(r=e.getMinHtlc())&&t.writeUint64(9,r),0!==(r=e.getFeePerKw())&&t.writeUint64(10,r),0!==(r=e.getCsvDelay())&&t.writeUint32(11,r),0!==(r=e.getMaxAcceptedHtlcs())&&t.writeUint32(12,r),0!==(r=e.getChannelFlags())&&t.writeUint32(13,r)},proto.lnrpc.ChannelAcceptRequest.prototype.getNodePubkey=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.ChannelAcceptRequest.prototype.getNodePubkey_asB64=function(){return n.Message.bytesAsB64(this.getNodePubkey())},proto.lnrpc.ChannelAcceptRequest.prototype.getNodePubkey_asU8=function(){return n.Message.bytesAsU8(this.getNodePubkey())},proto.lnrpc.ChannelAcceptRequest.prototype.setNodePubkey=function(e){return n.Message.setProto3BytesField(this,1,e)},proto.lnrpc.ChannelAcceptRequest.prototype.getChainHash=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.ChannelAcceptRequest.prototype.getChainHash_asB64=function(){return n.Message.bytesAsB64(this.getChainHash())},proto.lnrpc.ChannelAcceptRequest.prototype.getChainHash_asU8=function(){return n.Message.bytesAsU8(this.getChainHash())},proto.lnrpc.ChannelAcceptRequest.prototype.setChainHash=function(e){return n.Message.setProto3BytesField(this,2,e)},proto.lnrpc.ChannelAcceptRequest.prototype.getPendingChanId=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.lnrpc.ChannelAcceptRequest.prototype.getPendingChanId_asB64=function(){return n.Message.bytesAsB64(this.getPendingChanId())},proto.lnrpc.ChannelAcceptRequest.prototype.getPendingChanId_asU8=function(){return n.Message.bytesAsU8(this.getPendingChanId())},proto.lnrpc.ChannelAcceptRequest.prototype.setPendingChanId=function(e){return n.Message.setProto3BytesField(this,3,e)},proto.lnrpc.ChannelAcceptRequest.prototype.getFundingAmt=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.ChannelAcceptRequest.prototype.setFundingAmt=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.ChannelAcceptRequest.prototype.getPushAmt=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.ChannelAcceptRequest.prototype.setPushAmt=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.ChannelAcceptRequest.prototype.getDustLimit=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.ChannelAcceptRequest.prototype.setDustLimit=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.ChannelAcceptRequest.prototype.getMaxValueInFlight=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.lnrpc.ChannelAcceptRequest.prototype.setMaxValueInFlight=function(e){return n.Message.setProto3IntField(this,7,e)},proto.lnrpc.ChannelAcceptRequest.prototype.getChannelReserve=function(){return n.Message.getFieldWithDefault(this,8,0)},proto.lnrpc.ChannelAcceptRequest.prototype.setChannelReserve=function(e){return n.Message.setProto3IntField(this,8,e)},proto.lnrpc.ChannelAcceptRequest.prototype.getMinHtlc=function(){return n.Message.getFieldWithDefault(this,9,0)},proto.lnrpc.ChannelAcceptRequest.prototype.setMinHtlc=function(e){return n.Message.setProto3IntField(this,9,e)},proto.lnrpc.ChannelAcceptRequest.prototype.getFeePerKw=function(){return n.Message.getFieldWithDefault(this,10,0)},proto.lnrpc.ChannelAcceptRequest.prototype.setFeePerKw=function(e){return n.Message.setProto3IntField(this,10,e)},proto.lnrpc.ChannelAcceptRequest.prototype.getCsvDelay=function(){return n.Message.getFieldWithDefault(this,11,0)},proto.lnrpc.ChannelAcceptRequest.prototype.setCsvDelay=function(e){return n.Message.setProto3IntField(this,11,e)},proto.lnrpc.ChannelAcceptRequest.prototype.getMaxAcceptedHtlcs=function(){return n.Message.getFieldWithDefault(this,12,0)},proto.lnrpc.ChannelAcceptRequest.prototype.setMaxAcceptedHtlcs=function(e){return n.Message.setProto3IntField(this,12,e)},proto.lnrpc.ChannelAcceptRequest.prototype.getChannelFlags=function(){return n.Message.getFieldWithDefault(this,13,0)},proto.lnrpc.ChannelAcceptRequest.prototype.setChannelFlags=function(e){return n.Message.setProto3IntField(this,13,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChannelAcceptResponse.prototype.toObject=function(e){return proto.lnrpc.ChannelAcceptResponse.toObject(e,this)},proto.lnrpc.ChannelAcceptResponse.toObject=function(e,t){var r={accept:n.Message.getBooleanFieldWithDefault(t,1,!1),pendingChanId:t.getPendingChanId_asB64(),error:n.Message.getFieldWithDefault(t,3,""),upfrontShutdown:n.Message.getFieldWithDefault(t,4,""),csvDelay:n.Message.getFieldWithDefault(t,5,0),reserveSat:n.Message.getFieldWithDefault(t,6,0),inFlightMaxMsat:n.Message.getFieldWithDefault(t,7,0),maxHtlcCount:n.Message.getFieldWithDefault(t,8,0),minHtlcIn:n.Message.getFieldWithDefault(t,9,0),minAcceptDepth:n.Message.getFieldWithDefault(t,10,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ChannelAcceptResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChannelAcceptResponse;return proto.lnrpc.ChannelAcceptResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChannelAcceptResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBool();e.setAccept(r);break;case 2:r=t.readBytes();e.setPendingChanId(r);break;case 3:r=t.readString();e.setError(r);break;case 4:r=t.readString();e.setUpfrontShutdown(r);break;case 5:r=t.readUint32();e.setCsvDelay(r);break;case 6:r=t.readUint64();e.setReserveSat(r);break;case 7:r=t.readUint64();e.setInFlightMaxMsat(r);break;case 8:r=t.readUint32();e.setMaxHtlcCount(r);break;case 9:r=t.readUint64();e.setMinHtlcIn(r);break;case 10:r=t.readUint32();e.setMinAcceptDepth(r);break;default:t.skipField()}}return e},proto.lnrpc.ChannelAcceptResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChannelAcceptResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChannelAcceptResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getAccept())&&t.writeBool(1,r),(r=e.getPendingChanId_asU8()).length>0&&t.writeBytes(2,r),(r=e.getError()).length>0&&t.writeString(3,r),(r=e.getUpfrontShutdown()).length>0&&t.writeString(4,r),0!==(r=e.getCsvDelay())&&t.writeUint32(5,r),0!==(r=e.getReserveSat())&&t.writeUint64(6,r),0!==(r=e.getInFlightMaxMsat())&&t.writeUint64(7,r),0!==(r=e.getMaxHtlcCount())&&t.writeUint32(8,r),0!==(r=e.getMinHtlcIn())&&t.writeUint64(9,r),0!==(r=e.getMinAcceptDepth())&&t.writeUint32(10,r)},proto.lnrpc.ChannelAcceptResponse.prototype.getAccept=function(){return n.Message.getBooleanFieldWithDefault(this,1,!1)},proto.lnrpc.ChannelAcceptResponse.prototype.setAccept=function(e){return n.Message.setProto3BooleanField(this,1,e)},proto.lnrpc.ChannelAcceptResponse.prototype.getPendingChanId=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.ChannelAcceptResponse.prototype.getPendingChanId_asB64=function(){return n.Message.bytesAsB64(this.getPendingChanId())},proto.lnrpc.ChannelAcceptResponse.prototype.getPendingChanId_asU8=function(){return n.Message.bytesAsU8(this.getPendingChanId())},proto.lnrpc.ChannelAcceptResponse.prototype.setPendingChanId=function(e){return n.Message.setProto3BytesField(this,2,e)},proto.lnrpc.ChannelAcceptResponse.prototype.getError=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.lnrpc.ChannelAcceptResponse.prototype.setError=function(e){return n.Message.setProto3StringField(this,3,e)},proto.lnrpc.ChannelAcceptResponse.prototype.getUpfrontShutdown=function(){return n.Message.getFieldWithDefault(this,4,"")},proto.lnrpc.ChannelAcceptResponse.prototype.setUpfrontShutdown=function(e){return n.Message.setProto3StringField(this,4,e)},proto.lnrpc.ChannelAcceptResponse.prototype.getCsvDelay=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.ChannelAcceptResponse.prototype.setCsvDelay=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.ChannelAcceptResponse.prototype.getReserveSat=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.ChannelAcceptResponse.prototype.setReserveSat=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.ChannelAcceptResponse.prototype.getInFlightMaxMsat=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.lnrpc.ChannelAcceptResponse.prototype.setInFlightMaxMsat=function(e){return n.Message.setProto3IntField(this,7,e)},proto.lnrpc.ChannelAcceptResponse.prototype.getMaxHtlcCount=function(){return n.Message.getFieldWithDefault(this,8,0)},proto.lnrpc.ChannelAcceptResponse.prototype.setMaxHtlcCount=function(e){return n.Message.setProto3IntField(this,8,e)},proto.lnrpc.ChannelAcceptResponse.prototype.getMinHtlcIn=function(){return n.Message.getFieldWithDefault(this,9,0)},proto.lnrpc.ChannelAcceptResponse.prototype.setMinHtlcIn=function(e){return n.Message.setProto3IntField(this,9,e)},proto.lnrpc.ChannelAcceptResponse.prototype.getMinAcceptDepth=function(){return n.Message.getFieldWithDefault(this,10,0)},proto.lnrpc.ChannelAcceptResponse.prototype.setMinAcceptDepth=function(e){return n.Message.setProto3IntField(this,10,e)},proto.lnrpc.ChannelPoint.oneofGroups_=[[1,2]],proto.lnrpc.ChannelPoint.FundingTxidCase={FUNDING_TXID_NOT_SET:0,FUNDING_TXID_BYTES:1,FUNDING_TXID_STR:2},proto.lnrpc.ChannelPoint.prototype.getFundingTxidCase=function(){return n.Message.computeOneofCase(this,proto.lnrpc.ChannelPoint.oneofGroups_[0])},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChannelPoint.prototype.toObject=function(e){return proto.lnrpc.ChannelPoint.toObject(e,this)},proto.lnrpc.ChannelPoint.toObject=function(e,t){var r={fundingTxidBytes:t.getFundingTxidBytes_asB64(),fundingTxidStr:n.Message.getFieldWithDefault(t,2,""),outputIndex:n.Message.getFieldWithDefault(t,3,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ChannelPoint.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChannelPoint;return proto.lnrpc.ChannelPoint.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChannelPoint.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setFundingTxidBytes(r);break;case 2:r=t.readString();e.setFundingTxidStr(r);break;case 3:r=t.readUint32();e.setOutputIndex(r);break;default:t.skipField()}}return e},proto.lnrpc.ChannelPoint.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChannelPoint.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChannelPoint.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=n.Message.getField(e,1))&&t.writeBytes(1,r),null!=(r=n.Message.getField(e,2))&&t.writeString(2,r),0!==(r=e.getOutputIndex())&&t.writeUint32(3,r)},proto.lnrpc.ChannelPoint.prototype.getFundingTxidBytes=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.ChannelPoint.prototype.getFundingTxidBytes_asB64=function(){return n.Message.bytesAsB64(this.getFundingTxidBytes())},proto.lnrpc.ChannelPoint.prototype.getFundingTxidBytes_asU8=function(){return n.Message.bytesAsU8(this.getFundingTxidBytes())},proto.lnrpc.ChannelPoint.prototype.setFundingTxidBytes=function(e){return n.Message.setOneofField(this,1,proto.lnrpc.ChannelPoint.oneofGroups_[0],e)},proto.lnrpc.ChannelPoint.prototype.clearFundingTxidBytes=function(){return n.Message.setOneofField(this,1,proto.lnrpc.ChannelPoint.oneofGroups_[0],void 0)},proto.lnrpc.ChannelPoint.prototype.hasFundingTxidBytes=function(){return null!=n.Message.getField(this,1)},proto.lnrpc.ChannelPoint.prototype.getFundingTxidStr=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.ChannelPoint.prototype.setFundingTxidStr=function(e){return n.Message.setOneofField(this,2,proto.lnrpc.ChannelPoint.oneofGroups_[0],e)},proto.lnrpc.ChannelPoint.prototype.clearFundingTxidStr=function(){return n.Message.setOneofField(this,2,proto.lnrpc.ChannelPoint.oneofGroups_[0],void 0)},proto.lnrpc.ChannelPoint.prototype.hasFundingTxidStr=function(){return null!=n.Message.getField(this,2)},proto.lnrpc.ChannelPoint.prototype.getOutputIndex=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.ChannelPoint.prototype.setOutputIndex=function(e){return n.Message.setProto3IntField(this,3,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.OutPoint.prototype.toObject=function(e){return proto.lnrpc.OutPoint.toObject(e,this)},proto.lnrpc.OutPoint.toObject=function(e,t){var r={txidBytes:t.getTxidBytes_asB64(),txidStr:n.Message.getFieldWithDefault(t,2,""),outputIndex:n.Message.getFieldWithDefault(t,3,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.OutPoint.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.OutPoint;return proto.lnrpc.OutPoint.deserializeBinaryFromReader(r,t)},proto.lnrpc.OutPoint.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setTxidBytes(r);break;case 2:r=t.readString();e.setTxidStr(r);break;case 3:r=t.readUint32();e.setOutputIndex(r);break;default:t.skipField()}}return e},proto.lnrpc.OutPoint.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.OutPoint.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.OutPoint.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getTxidBytes_asU8()).length>0&&t.writeBytes(1,r),(r=e.getTxidStr()).length>0&&t.writeString(2,r),0!==(r=e.getOutputIndex())&&t.writeUint32(3,r)},proto.lnrpc.OutPoint.prototype.getTxidBytes=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.OutPoint.prototype.getTxidBytes_asB64=function(){return n.Message.bytesAsB64(this.getTxidBytes())},proto.lnrpc.OutPoint.prototype.getTxidBytes_asU8=function(){return n.Message.bytesAsU8(this.getTxidBytes())},proto.lnrpc.OutPoint.prototype.setTxidBytes=function(e){return n.Message.setProto3BytesField(this,1,e)},proto.lnrpc.OutPoint.prototype.getTxidStr=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.OutPoint.prototype.setTxidStr=function(e){return n.Message.setProto3StringField(this,2,e)},proto.lnrpc.OutPoint.prototype.getOutputIndex=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.OutPoint.prototype.setOutputIndex=function(e){return n.Message.setProto3IntField(this,3,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.LightningAddress.prototype.toObject=function(e){return proto.lnrpc.LightningAddress.toObject(e,this)},proto.lnrpc.LightningAddress.toObject=function(e,t){var r={pubkey:n.Message.getFieldWithDefault(t,1,""),host:n.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.LightningAddress.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.LightningAddress;return proto.lnrpc.LightningAddress.deserializeBinaryFromReader(r,t)},proto.lnrpc.LightningAddress.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setPubkey(r);break;case 2:r=t.readString();e.setHost(r);break;default:t.skipField()}}return e},proto.lnrpc.LightningAddress.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.LightningAddress.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.LightningAddress.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPubkey()).length>0&&t.writeString(1,r),(r=e.getHost()).length>0&&t.writeString(2,r)},proto.lnrpc.LightningAddress.prototype.getPubkey=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.LightningAddress.prototype.setPubkey=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.LightningAddress.prototype.getHost=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.LightningAddress.prototype.setHost=function(e){return n.Message.setProto3StringField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.EstimateFeeRequest.prototype.toObject=function(e){return proto.lnrpc.EstimateFeeRequest.toObject(e,this)},proto.lnrpc.EstimateFeeRequest.toObject=function(e,t){var r,o={addrtoamountMap:(r=t.getAddrtoamountMap())?r.toObject(e,void 0):[],targetConf:n.Message.getFieldWithDefault(t,2,0),minConfs:n.Message.getFieldWithDefault(t,3,0),spendUnconfirmed:n.Message.getBooleanFieldWithDefault(t,4,!1)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.EstimateFeeRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.EstimateFeeRequest;return proto.lnrpc.EstimateFeeRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.EstimateFeeRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=e.getAddrtoamountMap();t.readMessage(r,(function(e,t){n.Map.deserializeBinary(e,t,n.BinaryReader.prototype.readString,n.BinaryReader.prototype.readInt64,null,"",0)}));break;case 2:r=t.readInt32();e.setTargetConf(r);break;case 3:r=t.readInt32();e.setMinConfs(r);break;case 4:r=t.readBool();e.setSpendUnconfirmed(r);break;default:t.skipField()}}return e},proto.lnrpc.EstimateFeeRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.EstimateFeeRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.EstimateFeeRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getAddrtoamountMap(!0))&&r.getLength()>0&&r.serializeBinary(1,t,n.BinaryWriter.prototype.writeString,n.BinaryWriter.prototype.writeInt64),0!==(r=e.getTargetConf())&&t.writeInt32(2,r),0!==(r=e.getMinConfs())&&t.writeInt32(3,r),(r=e.getSpendUnconfirmed())&&t.writeBool(4,r)},proto.lnrpc.EstimateFeeRequest.prototype.getAddrtoamountMap=function(e){return n.Message.getMapField(this,1,e,null)},proto.lnrpc.EstimateFeeRequest.prototype.clearAddrtoamountMap=function(){return this.getAddrtoamountMap().clear(),this},proto.lnrpc.EstimateFeeRequest.prototype.getTargetConf=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.EstimateFeeRequest.prototype.setTargetConf=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.EstimateFeeRequest.prototype.getMinConfs=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.EstimateFeeRequest.prototype.setMinConfs=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.EstimateFeeRequest.prototype.getSpendUnconfirmed=function(){return n.Message.getBooleanFieldWithDefault(this,4,!1)},proto.lnrpc.EstimateFeeRequest.prototype.setSpendUnconfirmed=function(e){return n.Message.setProto3BooleanField(this,4,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.EstimateFeeResponse.prototype.toObject=function(e){return proto.lnrpc.EstimateFeeResponse.toObject(e,this)},proto.lnrpc.EstimateFeeResponse.toObject=function(e,t){var r={feeSat:n.Message.getFieldWithDefault(t,1,0),feerateSatPerByte:n.Message.getFieldWithDefault(t,2,0),satPerVbyte:n.Message.getFieldWithDefault(t,3,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.EstimateFeeResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.EstimateFeeResponse;return proto.lnrpc.EstimateFeeResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.EstimateFeeResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt64();e.setFeeSat(r);break;case 2:r=t.readInt64();e.setFeerateSatPerByte(r);break;case 3:r=t.readUint64();e.setSatPerVbyte(r);break;default:t.skipField()}}return e},proto.lnrpc.EstimateFeeResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.EstimateFeeResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.EstimateFeeResponse.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getFeeSat())&&t.writeInt64(1,r),0!==(r=e.getFeerateSatPerByte())&&t.writeInt64(2,r),0!==(r=e.getSatPerVbyte())&&t.writeUint64(3,r)},proto.lnrpc.EstimateFeeResponse.prototype.getFeeSat=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.EstimateFeeResponse.prototype.setFeeSat=function(e){return n.Message.setProto3IntField(this,1,e)},proto.lnrpc.EstimateFeeResponse.prototype.getFeerateSatPerByte=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.EstimateFeeResponse.prototype.setFeerateSatPerByte=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.EstimateFeeResponse.prototype.getSatPerVbyte=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.EstimateFeeResponse.prototype.setSatPerVbyte=function(e){return n.Message.setProto3IntField(this,3,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.SendManyRequest.prototype.toObject=function(e){return proto.lnrpc.SendManyRequest.toObject(e,this)},proto.lnrpc.SendManyRequest.toObject=function(e,t){var r,o={addrtoamountMap:(r=t.getAddrtoamountMap())?r.toObject(e,void 0):[],targetConf:n.Message.getFieldWithDefault(t,3,0),satPerVbyte:n.Message.getFieldWithDefault(t,4,0),satPerByte:n.Message.getFieldWithDefault(t,5,0),label:n.Message.getFieldWithDefault(t,6,""),minConfs:n.Message.getFieldWithDefault(t,7,0),spendUnconfirmed:n.Message.getBooleanFieldWithDefault(t,8,!1)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.SendManyRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.SendManyRequest;return proto.lnrpc.SendManyRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.SendManyRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=e.getAddrtoamountMap();t.readMessage(r,(function(e,t){n.Map.deserializeBinary(e,t,n.BinaryReader.prototype.readString,n.BinaryReader.prototype.readInt64,null,"",0)}));break;case 3:r=t.readInt32();e.setTargetConf(r);break;case 4:r=t.readUint64();e.setSatPerVbyte(r);break;case 5:r=t.readInt64();e.setSatPerByte(r);break;case 6:r=t.readString();e.setLabel(r);break;case 7:r=t.readInt32();e.setMinConfs(r);break;case 8:r=t.readBool();e.setSpendUnconfirmed(r);break;default:t.skipField()}}return e},proto.lnrpc.SendManyRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.SendManyRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.SendManyRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getAddrtoamountMap(!0))&&r.getLength()>0&&r.serializeBinary(1,t,n.BinaryWriter.prototype.writeString,n.BinaryWriter.prototype.writeInt64),0!==(r=e.getTargetConf())&&t.writeInt32(3,r),0!==(r=e.getSatPerVbyte())&&t.writeUint64(4,r),0!==(r=e.getSatPerByte())&&t.writeInt64(5,r),(r=e.getLabel()).length>0&&t.writeString(6,r),0!==(r=e.getMinConfs())&&t.writeInt32(7,r),(r=e.getSpendUnconfirmed())&&t.writeBool(8,r)},proto.lnrpc.SendManyRequest.prototype.getAddrtoamountMap=function(e){return n.Message.getMapField(this,1,e,null)},proto.lnrpc.SendManyRequest.prototype.clearAddrtoamountMap=function(){return this.getAddrtoamountMap().clear(),this},proto.lnrpc.SendManyRequest.prototype.getTargetConf=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.SendManyRequest.prototype.setTargetConf=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.SendManyRequest.prototype.getSatPerVbyte=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.SendManyRequest.prototype.setSatPerVbyte=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.SendManyRequest.prototype.getSatPerByte=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.SendManyRequest.prototype.setSatPerByte=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.SendManyRequest.prototype.getLabel=function(){return n.Message.getFieldWithDefault(this,6,"")},proto.lnrpc.SendManyRequest.prototype.setLabel=function(e){return n.Message.setProto3StringField(this,6,e)},proto.lnrpc.SendManyRequest.prototype.getMinConfs=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.lnrpc.SendManyRequest.prototype.setMinConfs=function(e){return n.Message.setProto3IntField(this,7,e)},proto.lnrpc.SendManyRequest.prototype.getSpendUnconfirmed=function(){return n.Message.getBooleanFieldWithDefault(this,8,!1)},proto.lnrpc.SendManyRequest.prototype.setSpendUnconfirmed=function(e){return n.Message.setProto3BooleanField(this,8,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.SendManyResponse.prototype.toObject=function(e){return proto.lnrpc.SendManyResponse.toObject(e,this)},proto.lnrpc.SendManyResponse.toObject=function(e,t){var r={txid:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.SendManyResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.SendManyResponse;return proto.lnrpc.SendManyResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.SendManyResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setTxid(r)}else t.skipField()}return e},proto.lnrpc.SendManyResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.SendManyResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.SendManyResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getTxid()).length>0&&t.writeString(1,r)},proto.lnrpc.SendManyResponse.prototype.getTxid=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.SendManyResponse.prototype.setTxid=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.SendCoinsRequest.prototype.toObject=function(e){return proto.lnrpc.SendCoinsRequest.toObject(e,this)},proto.lnrpc.SendCoinsRequest.toObject=function(e,t){var r={addr:n.Message.getFieldWithDefault(t,1,""),amount:n.Message.getFieldWithDefault(t,2,0),targetConf:n.Message.getFieldWithDefault(t,3,0),satPerVbyte:n.Message.getFieldWithDefault(t,4,0),satPerByte:n.Message.getFieldWithDefault(t,5,0),sendAll:n.Message.getBooleanFieldWithDefault(t,6,!1),label:n.Message.getFieldWithDefault(t,7,""),minConfs:n.Message.getFieldWithDefault(t,8,0),spendUnconfirmed:n.Message.getBooleanFieldWithDefault(t,9,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.SendCoinsRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.SendCoinsRequest;return proto.lnrpc.SendCoinsRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.SendCoinsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setAddr(r);break;case 2:r=t.readInt64();e.setAmount(r);break;case 3:r=t.readInt32();e.setTargetConf(r);break;case 4:r=t.readUint64();e.setSatPerVbyte(r);break;case 5:r=t.readInt64();e.setSatPerByte(r);break;case 6:r=t.readBool();e.setSendAll(r);break;case 7:r=t.readString();e.setLabel(r);break;case 8:r=t.readInt32();e.setMinConfs(r);break;case 9:r=t.readBool();e.setSpendUnconfirmed(r);break;default:t.skipField()}}return e},proto.lnrpc.SendCoinsRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.SendCoinsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.SendCoinsRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getAddr()).length>0&&t.writeString(1,r),0!==(r=e.getAmount())&&t.writeInt64(2,r),0!==(r=e.getTargetConf())&&t.writeInt32(3,r),0!==(r=e.getSatPerVbyte())&&t.writeUint64(4,r),0!==(r=e.getSatPerByte())&&t.writeInt64(5,r),(r=e.getSendAll())&&t.writeBool(6,r),(r=e.getLabel()).length>0&&t.writeString(7,r),0!==(r=e.getMinConfs())&&t.writeInt32(8,r),(r=e.getSpendUnconfirmed())&&t.writeBool(9,r)},proto.lnrpc.SendCoinsRequest.prototype.getAddr=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.SendCoinsRequest.prototype.setAddr=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.SendCoinsRequest.prototype.getAmount=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.SendCoinsRequest.prototype.setAmount=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.SendCoinsRequest.prototype.getTargetConf=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.SendCoinsRequest.prototype.setTargetConf=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.SendCoinsRequest.prototype.getSatPerVbyte=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.SendCoinsRequest.prototype.setSatPerVbyte=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.SendCoinsRequest.prototype.getSatPerByte=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.SendCoinsRequest.prototype.setSatPerByte=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.SendCoinsRequest.prototype.getSendAll=function(){return n.Message.getBooleanFieldWithDefault(this,6,!1)},proto.lnrpc.SendCoinsRequest.prototype.setSendAll=function(e){return n.Message.setProto3BooleanField(this,6,e)},proto.lnrpc.SendCoinsRequest.prototype.getLabel=function(){return n.Message.getFieldWithDefault(this,7,"")},proto.lnrpc.SendCoinsRequest.prototype.setLabel=function(e){return n.Message.setProto3StringField(this,7,e)},proto.lnrpc.SendCoinsRequest.prototype.getMinConfs=function(){return n.Message.getFieldWithDefault(this,8,0)},proto.lnrpc.SendCoinsRequest.prototype.setMinConfs=function(e){return n.Message.setProto3IntField(this,8,e)},proto.lnrpc.SendCoinsRequest.prototype.getSpendUnconfirmed=function(){return n.Message.getBooleanFieldWithDefault(this,9,!1)},proto.lnrpc.SendCoinsRequest.prototype.setSpendUnconfirmed=function(e){return n.Message.setProto3BooleanField(this,9,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.SendCoinsResponse.prototype.toObject=function(e){return proto.lnrpc.SendCoinsResponse.toObject(e,this)},proto.lnrpc.SendCoinsResponse.toObject=function(e,t){var r={txid:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.SendCoinsResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.SendCoinsResponse;return proto.lnrpc.SendCoinsResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.SendCoinsResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setTxid(r)}else t.skipField()}return e},proto.lnrpc.SendCoinsResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.SendCoinsResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.SendCoinsResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getTxid()).length>0&&t.writeString(1,r)},proto.lnrpc.SendCoinsResponse.prototype.getTxid=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.SendCoinsResponse.prototype.setTxid=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ListUnspentRequest.prototype.toObject=function(e){return proto.lnrpc.ListUnspentRequest.toObject(e,this)},proto.lnrpc.ListUnspentRequest.toObject=function(e,t){var r={minConfs:n.Message.getFieldWithDefault(t,1,0),maxConfs:n.Message.getFieldWithDefault(t,2,0),account:n.Message.getFieldWithDefault(t,3,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ListUnspentRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ListUnspentRequest;return proto.lnrpc.ListUnspentRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.ListUnspentRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setMinConfs(r);break;case 2:r=t.readInt32();e.setMaxConfs(r);break;case 3:r=t.readString();e.setAccount(r);break;default:t.skipField()}}return e},proto.lnrpc.ListUnspentRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ListUnspentRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ListUnspentRequest.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getMinConfs())&&t.writeInt32(1,r),0!==(r=e.getMaxConfs())&&t.writeInt32(2,r),(r=e.getAccount()).length>0&&t.writeString(3,r)},proto.lnrpc.ListUnspentRequest.prototype.getMinConfs=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.ListUnspentRequest.prototype.setMinConfs=function(e){return n.Message.setProto3IntField(this,1,e)},proto.lnrpc.ListUnspentRequest.prototype.getMaxConfs=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.ListUnspentRequest.prototype.setMaxConfs=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.ListUnspentRequest.prototype.getAccount=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.lnrpc.ListUnspentRequest.prototype.setAccount=function(e){return n.Message.setProto3StringField(this,3,e)},proto.lnrpc.ListUnspentResponse.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ListUnspentResponse.prototype.toObject=function(e){return proto.lnrpc.ListUnspentResponse.toObject(e,this)},proto.lnrpc.ListUnspentResponse.toObject=function(e,t){var r={utxosList:n.Message.toObjectList(t.getUtxosList(),proto.lnrpc.Utxo.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ListUnspentResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ListUnspentResponse;return proto.lnrpc.ListUnspentResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.ListUnspentResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.lnrpc.Utxo;t.readMessage(r,proto.lnrpc.Utxo.deserializeBinaryFromReader),e.addUtxos(r)}else t.skipField()}return e},proto.lnrpc.ListUnspentResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ListUnspentResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ListUnspentResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getUtxosList()).length>0&&t.writeRepeatedMessage(1,r,proto.lnrpc.Utxo.serializeBinaryToWriter)},proto.lnrpc.ListUnspentResponse.prototype.getUtxosList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.Utxo,1)},proto.lnrpc.ListUnspentResponse.prototype.setUtxosList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.lnrpc.ListUnspentResponse.prototype.addUtxos=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.lnrpc.Utxo,t)},proto.lnrpc.ListUnspentResponse.prototype.clearUtxosList=function(){return this.setUtxosList([])},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.NewAddressRequest.prototype.toObject=function(e){return proto.lnrpc.NewAddressRequest.toObject(e,this)},proto.lnrpc.NewAddressRequest.toObject=function(e,t){var r={type:n.Message.getFieldWithDefault(t,1,0),account:n.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.NewAddressRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.NewAddressRequest;return proto.lnrpc.NewAddressRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.NewAddressRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setType(r);break;case 2:r=t.readString();e.setAccount(r);break;default:t.skipField()}}return e},proto.lnrpc.NewAddressRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.NewAddressRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.NewAddressRequest.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getType())&&t.writeEnum(1,r),(r=e.getAccount()).length>0&&t.writeString(2,r)},proto.lnrpc.NewAddressRequest.prototype.getType=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.NewAddressRequest.prototype.setType=function(e){return n.Message.setProto3EnumField(this,1,e)},proto.lnrpc.NewAddressRequest.prototype.getAccount=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.NewAddressRequest.prototype.setAccount=function(e){return n.Message.setProto3StringField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.NewAddressResponse.prototype.toObject=function(e){return proto.lnrpc.NewAddressResponse.toObject(e,this)},proto.lnrpc.NewAddressResponse.toObject=function(e,t){var r={address:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.NewAddressResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.NewAddressResponse;return proto.lnrpc.NewAddressResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.NewAddressResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setAddress(r)}else t.skipField()}return e},proto.lnrpc.NewAddressResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.NewAddressResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.NewAddressResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getAddress()).length>0&&t.writeString(1,r)},proto.lnrpc.NewAddressResponse.prototype.getAddress=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.NewAddressResponse.prototype.setAddress=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.SignMessageRequest.prototype.toObject=function(e){return proto.lnrpc.SignMessageRequest.toObject(e,this)},proto.lnrpc.SignMessageRequest.toObject=function(e,t){var r={msg:t.getMsg_asB64(),singleHash:n.Message.getBooleanFieldWithDefault(t,2,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.SignMessageRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.SignMessageRequest;return proto.lnrpc.SignMessageRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.SignMessageRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setMsg(r);break;case 2:r=t.readBool();e.setSingleHash(r);break;default:t.skipField()}}return e},proto.lnrpc.SignMessageRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.SignMessageRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.SignMessageRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getMsg_asU8()).length>0&&t.writeBytes(1,r),(r=e.getSingleHash())&&t.writeBool(2,r)},proto.lnrpc.SignMessageRequest.prototype.getMsg=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.SignMessageRequest.prototype.getMsg_asB64=function(){return n.Message.bytesAsB64(this.getMsg())},proto.lnrpc.SignMessageRequest.prototype.getMsg_asU8=function(){return n.Message.bytesAsU8(this.getMsg())},proto.lnrpc.SignMessageRequest.prototype.setMsg=function(e){return n.Message.setProto3BytesField(this,1,e)},proto.lnrpc.SignMessageRequest.prototype.getSingleHash=function(){return n.Message.getBooleanFieldWithDefault(this,2,!1)},proto.lnrpc.SignMessageRequest.prototype.setSingleHash=function(e){return n.Message.setProto3BooleanField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.SignMessageResponse.prototype.toObject=function(e){return proto.lnrpc.SignMessageResponse.toObject(e,this)},proto.lnrpc.SignMessageResponse.toObject=function(e,t){var r={signature:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.SignMessageResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.SignMessageResponse;return proto.lnrpc.SignMessageResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.SignMessageResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setSignature(r)}else t.skipField()}return e},proto.lnrpc.SignMessageResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.SignMessageResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.SignMessageResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getSignature()).length>0&&t.writeString(1,r)},proto.lnrpc.SignMessageResponse.prototype.getSignature=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.SignMessageResponse.prototype.setSignature=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.VerifyMessageRequest.prototype.toObject=function(e){return proto.lnrpc.VerifyMessageRequest.toObject(e,this)},proto.lnrpc.VerifyMessageRequest.toObject=function(e,t){var r={msg:t.getMsg_asB64(),signature:n.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.VerifyMessageRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.VerifyMessageRequest;return proto.lnrpc.VerifyMessageRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.VerifyMessageRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setMsg(r);break;case 2:r=t.readString();e.setSignature(r);break;default:t.skipField()}}return e},proto.lnrpc.VerifyMessageRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.VerifyMessageRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.VerifyMessageRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getMsg_asU8()).length>0&&t.writeBytes(1,r),(r=e.getSignature()).length>0&&t.writeString(2,r)},proto.lnrpc.VerifyMessageRequest.prototype.getMsg=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.VerifyMessageRequest.prototype.getMsg_asB64=function(){return n.Message.bytesAsB64(this.getMsg())},proto.lnrpc.VerifyMessageRequest.prototype.getMsg_asU8=function(){return n.Message.bytesAsU8(this.getMsg())},proto.lnrpc.VerifyMessageRequest.prototype.setMsg=function(e){return n.Message.setProto3BytesField(this,1,e)},proto.lnrpc.VerifyMessageRequest.prototype.getSignature=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.VerifyMessageRequest.prototype.setSignature=function(e){return n.Message.setProto3StringField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.VerifyMessageResponse.prototype.toObject=function(e){return proto.lnrpc.VerifyMessageResponse.toObject(e,this)},proto.lnrpc.VerifyMessageResponse.toObject=function(e,t){var r={valid:n.Message.getBooleanFieldWithDefault(t,1,!1),pubkey:n.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.VerifyMessageResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.VerifyMessageResponse;return proto.lnrpc.VerifyMessageResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.VerifyMessageResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBool();e.setValid(r);break;case 2:r=t.readString();e.setPubkey(r);break;default:t.skipField()}}return e},proto.lnrpc.VerifyMessageResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.VerifyMessageResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.VerifyMessageResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getValid())&&t.writeBool(1,r),(r=e.getPubkey()).length>0&&t.writeString(2,r)},proto.lnrpc.VerifyMessageResponse.prototype.getValid=function(){return n.Message.getBooleanFieldWithDefault(this,1,!1)},proto.lnrpc.VerifyMessageResponse.prototype.setValid=function(e){return n.Message.setProto3BooleanField(this,1,e)},proto.lnrpc.VerifyMessageResponse.prototype.getPubkey=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.VerifyMessageResponse.prototype.setPubkey=function(e){return n.Message.setProto3StringField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ConnectPeerRequest.prototype.toObject=function(e){return proto.lnrpc.ConnectPeerRequest.toObject(e,this)},proto.lnrpc.ConnectPeerRequest.toObject=function(e,t){var r,o={addr:(r=t.getAddr())&&proto.lnrpc.LightningAddress.toObject(e,r),perm:n.Message.getBooleanFieldWithDefault(t,2,!1),timeout:n.Message.getFieldWithDefault(t,3,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.ConnectPeerRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ConnectPeerRequest;return proto.lnrpc.ConnectPeerRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.ConnectPeerRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.LightningAddress;t.readMessage(r,proto.lnrpc.LightningAddress.deserializeBinaryFromReader),e.setAddr(r);break;case 2:r=t.readBool();e.setPerm(r);break;case 3:r=t.readUint64();e.setTimeout(r);break;default:t.skipField()}}return e},proto.lnrpc.ConnectPeerRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ConnectPeerRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ConnectPeerRequest.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getAddr())&&t.writeMessage(1,r,proto.lnrpc.LightningAddress.serializeBinaryToWriter),(r=e.getPerm())&&t.writeBool(2,r),0!==(r=e.getTimeout())&&t.writeUint64(3,r)},proto.lnrpc.ConnectPeerRequest.prototype.getAddr=function(){return n.Message.getWrapperField(this,proto.lnrpc.LightningAddress,1)},proto.lnrpc.ConnectPeerRequest.prototype.setAddr=function(e){return n.Message.setWrapperField(this,1,e)},proto.lnrpc.ConnectPeerRequest.prototype.clearAddr=function(){return this.setAddr(void 0)},proto.lnrpc.ConnectPeerRequest.prototype.hasAddr=function(){return null!=n.Message.getField(this,1)},proto.lnrpc.ConnectPeerRequest.prototype.getPerm=function(){return n.Message.getBooleanFieldWithDefault(this,2,!1)},proto.lnrpc.ConnectPeerRequest.prototype.setPerm=function(e){return n.Message.setProto3BooleanField(this,2,e)},proto.lnrpc.ConnectPeerRequest.prototype.getTimeout=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.ConnectPeerRequest.prototype.setTimeout=function(e){return n.Message.setProto3IntField(this,3,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ConnectPeerResponse.prototype.toObject=function(e){return proto.lnrpc.ConnectPeerResponse.toObject(e,this)},proto.lnrpc.ConnectPeerResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ConnectPeerResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ConnectPeerResponse;return proto.lnrpc.ConnectPeerResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.ConnectPeerResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.ConnectPeerResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ConnectPeerResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ConnectPeerResponse.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.DisconnectPeerRequest.prototype.toObject=function(e){return proto.lnrpc.DisconnectPeerRequest.toObject(e,this)},proto.lnrpc.DisconnectPeerRequest.toObject=function(e,t){var r={pubKey:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.DisconnectPeerRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.DisconnectPeerRequest;return proto.lnrpc.DisconnectPeerRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.DisconnectPeerRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setPubKey(r)}else t.skipField()}return e},proto.lnrpc.DisconnectPeerRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.DisconnectPeerRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.DisconnectPeerRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getPubKey()).length>0&&t.writeString(1,r)},proto.lnrpc.DisconnectPeerRequest.prototype.getPubKey=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.DisconnectPeerRequest.prototype.setPubKey=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.DisconnectPeerResponse.prototype.toObject=function(e){return proto.lnrpc.DisconnectPeerResponse.toObject(e,this)},proto.lnrpc.DisconnectPeerResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.DisconnectPeerResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.DisconnectPeerResponse;return proto.lnrpc.DisconnectPeerResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.DisconnectPeerResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.DisconnectPeerResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.DisconnectPeerResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.DisconnectPeerResponse.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.HTLC.prototype.toObject=function(e){return proto.lnrpc.HTLC.toObject(e,this)},proto.lnrpc.HTLC.toObject=function(e,t){var r={incoming:n.Message.getBooleanFieldWithDefault(t,1,!1),amount:n.Message.getFieldWithDefault(t,2,0),hashLock:t.getHashLock_asB64(),expirationHeight:n.Message.getFieldWithDefault(t,4,0),htlcIndex:n.Message.getFieldWithDefault(t,5,0),forwardingChannel:n.Message.getFieldWithDefault(t,6,0),forwardingHtlcIndex:n.Message.getFieldWithDefault(t,7,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.HTLC.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.HTLC;return proto.lnrpc.HTLC.deserializeBinaryFromReader(r,t)},proto.lnrpc.HTLC.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBool();e.setIncoming(r);break;case 2:r=t.readInt64();e.setAmount(r);break;case 3:r=t.readBytes();e.setHashLock(r);break;case 4:r=t.readUint32();e.setExpirationHeight(r);break;case 5:r=t.readUint64();e.setHtlcIndex(r);break;case 6:r=t.readUint64();e.setForwardingChannel(r);break;case 7:r=t.readUint64();e.setForwardingHtlcIndex(r);break;default:t.skipField()}}return e},proto.lnrpc.HTLC.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.HTLC.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.HTLC.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getIncoming())&&t.writeBool(1,r),0!==(r=e.getAmount())&&t.writeInt64(2,r),(r=e.getHashLock_asU8()).length>0&&t.writeBytes(3,r),0!==(r=e.getExpirationHeight())&&t.writeUint32(4,r),0!==(r=e.getHtlcIndex())&&t.writeUint64(5,r),0!==(r=e.getForwardingChannel())&&t.writeUint64(6,r),0!==(r=e.getForwardingHtlcIndex())&&t.writeUint64(7,r)},proto.lnrpc.HTLC.prototype.getIncoming=function(){return n.Message.getBooleanFieldWithDefault(this,1,!1)},proto.lnrpc.HTLC.prototype.setIncoming=function(e){return n.Message.setProto3BooleanField(this,1,e)},proto.lnrpc.HTLC.prototype.getAmount=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.HTLC.prototype.setAmount=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.HTLC.prototype.getHashLock=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.lnrpc.HTLC.prototype.getHashLock_asB64=function(){return n.Message.bytesAsB64(this.getHashLock())},proto.lnrpc.HTLC.prototype.getHashLock_asU8=function(){return n.Message.bytesAsU8(this.getHashLock())},proto.lnrpc.HTLC.prototype.setHashLock=function(e){return n.Message.setProto3BytesField(this,3,e)},proto.lnrpc.HTLC.prototype.getExpirationHeight=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.HTLC.prototype.setExpirationHeight=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.HTLC.prototype.getHtlcIndex=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.HTLC.prototype.setHtlcIndex=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.HTLC.prototype.getForwardingChannel=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.HTLC.prototype.setForwardingChannel=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.HTLC.prototype.getForwardingHtlcIndex=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.lnrpc.HTLC.prototype.setForwardingHtlcIndex=function(e){return n.Message.setProto3IntField(this,7,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChannelConstraints.prototype.toObject=function(e){return proto.lnrpc.ChannelConstraints.toObject(e,this)},proto.lnrpc.ChannelConstraints.toObject=function(e,t){var r={csvDelay:n.Message.getFieldWithDefault(t,1,0),chanReserveSat:n.Message.getFieldWithDefault(t,2,0),dustLimitSat:n.Message.getFieldWithDefault(t,3,0),maxPendingAmtMsat:n.Message.getFieldWithDefault(t,4,0),minHtlcMsat:n.Message.getFieldWithDefault(t,5,0),maxAcceptedHtlcs:n.Message.getFieldWithDefault(t,6,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ChannelConstraints.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChannelConstraints;return proto.lnrpc.ChannelConstraints.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChannelConstraints.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint32();e.setCsvDelay(r);break;case 2:r=t.readUint64();e.setChanReserveSat(r);break;case 3:r=t.readUint64();e.setDustLimitSat(r);break;case 4:r=t.readUint64();e.setMaxPendingAmtMsat(r);break;case 5:r=t.readUint64();e.setMinHtlcMsat(r);break;case 6:r=t.readUint32();e.setMaxAcceptedHtlcs(r);break;default:t.skipField()}}return e},proto.lnrpc.ChannelConstraints.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChannelConstraints.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChannelConstraints.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getCsvDelay())&&t.writeUint32(1,r),0!==(r=e.getChanReserveSat())&&t.writeUint64(2,r),0!==(r=e.getDustLimitSat())&&t.writeUint64(3,r),0!==(r=e.getMaxPendingAmtMsat())&&t.writeUint64(4,r),0!==(r=e.getMinHtlcMsat())&&t.writeUint64(5,r),0!==(r=e.getMaxAcceptedHtlcs())&&t.writeUint32(6,r)},proto.lnrpc.ChannelConstraints.prototype.getCsvDelay=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.ChannelConstraints.prototype.setCsvDelay=function(e){return n.Message.setProto3IntField(this,1,e)},proto.lnrpc.ChannelConstraints.prototype.getChanReserveSat=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.ChannelConstraints.prototype.setChanReserveSat=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.ChannelConstraints.prototype.getDustLimitSat=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.ChannelConstraints.prototype.setDustLimitSat=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.ChannelConstraints.prototype.getMaxPendingAmtMsat=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.ChannelConstraints.prototype.setMaxPendingAmtMsat=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.ChannelConstraints.prototype.getMinHtlcMsat=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.ChannelConstraints.prototype.setMinHtlcMsat=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.ChannelConstraints.prototype.getMaxAcceptedHtlcs=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.ChannelConstraints.prototype.setMaxAcceptedHtlcs=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.Channel.repeatedFields_=[15],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.Channel.prototype.toObject=function(e){return proto.lnrpc.Channel.toObject(e,this)},proto.lnrpc.Channel.toObject=function(e,t){var r,o={active:n.Message.getBooleanFieldWithDefault(t,1,!1),remotePubkey:n.Message.getFieldWithDefault(t,2,""),channelPoint:n.Message.getFieldWithDefault(t,3,""),chanId:n.Message.getFieldWithDefault(t,4,"0"),capacity:n.Message.getFieldWithDefault(t,5,0),localBalance:n.Message.getFieldWithDefault(t,6,0),remoteBalance:n.Message.getFieldWithDefault(t,7,0),commitFee:n.Message.getFieldWithDefault(t,8,0),commitWeight:n.Message.getFieldWithDefault(t,9,0),feePerKw:n.Message.getFieldWithDefault(t,10,0),unsettledBalance:n.Message.getFieldWithDefault(t,11,0),totalSatoshisSent:n.Message.getFieldWithDefault(t,12,0),totalSatoshisReceived:n.Message.getFieldWithDefault(t,13,0),numUpdates:n.Message.getFieldWithDefault(t,14,0),pendingHtlcsList:n.Message.toObjectList(t.getPendingHtlcsList(),proto.lnrpc.HTLC.toObject,e),csvDelay:n.Message.getFieldWithDefault(t,16,0),pb_private:n.Message.getBooleanFieldWithDefault(t,17,!1),initiator:n.Message.getBooleanFieldWithDefault(t,18,!1),chanStatusFlags:n.Message.getFieldWithDefault(t,19,""),localChanReserveSat:n.Message.getFieldWithDefault(t,20,0),remoteChanReserveSat:n.Message.getFieldWithDefault(t,21,0),staticRemoteKey:n.Message.getBooleanFieldWithDefault(t,22,!1),commitmentType:n.Message.getFieldWithDefault(t,26,0),lifetime:n.Message.getFieldWithDefault(t,23,0),uptime:n.Message.getFieldWithDefault(t,24,0),closeAddress:n.Message.getFieldWithDefault(t,25,""),pushAmountSat:n.Message.getFieldWithDefault(t,27,0),thawHeight:n.Message.getFieldWithDefault(t,28,0),localConstraints:(r=t.getLocalConstraints())&&proto.lnrpc.ChannelConstraints.toObject(e,r),remoteConstraints:(r=t.getRemoteConstraints())&&proto.lnrpc.ChannelConstraints.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.Channel.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.Channel;return proto.lnrpc.Channel.deserializeBinaryFromReader(r,t)},proto.lnrpc.Channel.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBool();e.setActive(r);break;case 2:r=t.readString();e.setRemotePubkey(r);break;case 3:r=t.readString();e.setChannelPoint(r);break;case 4:r=t.readUint64String();e.setChanId(r);break;case 5:r=t.readInt64();e.setCapacity(r);break;case 6:r=t.readInt64();e.setLocalBalance(r);break;case 7:r=t.readInt64();e.setRemoteBalance(r);break;case 8:r=t.readInt64();e.setCommitFee(r);break;case 9:r=t.readInt64();e.setCommitWeight(r);break;case 10:r=t.readInt64();e.setFeePerKw(r);break;case 11:r=t.readInt64();e.setUnsettledBalance(r);break;case 12:r=t.readInt64();e.setTotalSatoshisSent(r);break;case 13:r=t.readInt64();e.setTotalSatoshisReceived(r);break;case 14:r=t.readUint64();e.setNumUpdates(r);break;case 15:r=new proto.lnrpc.HTLC;t.readMessage(r,proto.lnrpc.HTLC.deserializeBinaryFromReader),e.addPendingHtlcs(r);break;case 16:r=t.readUint32();e.setCsvDelay(r);break;case 17:r=t.readBool();e.setPrivate(r);break;case 18:r=t.readBool();e.setInitiator(r);break;case 19:r=t.readString();e.setChanStatusFlags(r);break;case 20:r=t.readInt64();e.setLocalChanReserveSat(r);break;case 21:r=t.readInt64();e.setRemoteChanReserveSat(r);break;case 22:r=t.readBool();e.setStaticRemoteKey(r);break;case 26:r=t.readEnum();e.setCommitmentType(r);break;case 23:r=t.readInt64();e.setLifetime(r);break;case 24:r=t.readInt64();e.setUptime(r);break;case 25:r=t.readString();e.setCloseAddress(r);break;case 27:r=t.readUint64();e.setPushAmountSat(r);break;case 28:r=t.readUint32();e.setThawHeight(r);break;case 29:r=new proto.lnrpc.ChannelConstraints;t.readMessage(r,proto.lnrpc.ChannelConstraints.deserializeBinaryFromReader),e.setLocalConstraints(r);break;case 30:r=new proto.lnrpc.ChannelConstraints;t.readMessage(r,proto.lnrpc.ChannelConstraints.deserializeBinaryFromReader),e.setRemoteConstraints(r);break;default:t.skipField()}}return e},proto.lnrpc.Channel.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.Channel.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.Channel.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getActive())&&t.writeBool(1,r),(r=e.getRemotePubkey()).length>0&&t.writeString(2,r),(r=e.getChannelPoint()).length>0&&t.writeString(3,r),r=e.getChanId(),0!==parseInt(r,10)&&t.writeUint64String(4,r),0!==(r=e.getCapacity())&&t.writeInt64(5,r),0!==(r=e.getLocalBalance())&&t.writeInt64(6,r),0!==(r=e.getRemoteBalance())&&t.writeInt64(7,r),0!==(r=e.getCommitFee())&&t.writeInt64(8,r),0!==(r=e.getCommitWeight())&&t.writeInt64(9,r),0!==(r=e.getFeePerKw())&&t.writeInt64(10,r),0!==(r=e.getUnsettledBalance())&&t.writeInt64(11,r),0!==(r=e.getTotalSatoshisSent())&&t.writeInt64(12,r),0!==(r=e.getTotalSatoshisReceived())&&t.writeInt64(13,r),0!==(r=e.getNumUpdates())&&t.writeUint64(14,r),(r=e.getPendingHtlcsList()).length>0&&t.writeRepeatedMessage(15,r,proto.lnrpc.HTLC.serializeBinaryToWriter),0!==(r=e.getCsvDelay())&&t.writeUint32(16,r),(r=e.getPrivate())&&t.writeBool(17,r),(r=e.getInitiator())&&t.writeBool(18,r),(r=e.getChanStatusFlags()).length>0&&t.writeString(19,r),0!==(r=e.getLocalChanReserveSat())&&t.writeInt64(20,r),0!==(r=e.getRemoteChanReserveSat())&&t.writeInt64(21,r),(r=e.getStaticRemoteKey())&&t.writeBool(22,r),0!==(r=e.getCommitmentType())&&t.writeEnum(26,r),0!==(r=e.getLifetime())&&t.writeInt64(23,r),0!==(r=e.getUptime())&&t.writeInt64(24,r),(r=e.getCloseAddress()).length>0&&t.writeString(25,r),0!==(r=e.getPushAmountSat())&&t.writeUint64(27,r),0!==(r=e.getThawHeight())&&t.writeUint32(28,r),null!=(r=e.getLocalConstraints())&&t.writeMessage(29,r,proto.lnrpc.ChannelConstraints.serializeBinaryToWriter),null!=(r=e.getRemoteConstraints())&&t.writeMessage(30,r,proto.lnrpc.ChannelConstraints.serializeBinaryToWriter)},proto.lnrpc.Channel.prototype.getActive=function(){return n.Message.getBooleanFieldWithDefault(this,1,!1)},proto.lnrpc.Channel.prototype.setActive=function(e){return n.Message.setProto3BooleanField(this,1,e)},proto.lnrpc.Channel.prototype.getRemotePubkey=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.Channel.prototype.setRemotePubkey=function(e){return n.Message.setProto3StringField(this,2,e)},proto.lnrpc.Channel.prototype.getChannelPoint=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.lnrpc.Channel.prototype.setChannelPoint=function(e){return n.Message.setProto3StringField(this,3,e)},proto.lnrpc.Channel.prototype.getChanId=function(){return n.Message.getFieldWithDefault(this,4,"0")},proto.lnrpc.Channel.prototype.setChanId=function(e){return n.Message.setProto3StringIntField(this,4,e)},proto.lnrpc.Channel.prototype.getCapacity=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.Channel.prototype.setCapacity=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.Channel.prototype.getLocalBalance=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.Channel.prototype.setLocalBalance=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.Channel.prototype.getRemoteBalance=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.lnrpc.Channel.prototype.setRemoteBalance=function(e){return n.Message.setProto3IntField(this,7,e)},proto.lnrpc.Channel.prototype.getCommitFee=function(){return n.Message.getFieldWithDefault(this,8,0)},proto.lnrpc.Channel.prototype.setCommitFee=function(e){return n.Message.setProto3IntField(this,8,e)},proto.lnrpc.Channel.prototype.getCommitWeight=function(){return n.Message.getFieldWithDefault(this,9,0)},proto.lnrpc.Channel.prototype.setCommitWeight=function(e){return n.Message.setProto3IntField(this,9,e)},proto.lnrpc.Channel.prototype.getFeePerKw=function(){return n.Message.getFieldWithDefault(this,10,0)},proto.lnrpc.Channel.prototype.setFeePerKw=function(e){return n.Message.setProto3IntField(this,10,e)},proto.lnrpc.Channel.prototype.getUnsettledBalance=function(){return n.Message.getFieldWithDefault(this,11,0)},proto.lnrpc.Channel.prototype.setUnsettledBalance=function(e){return n.Message.setProto3IntField(this,11,e)},proto.lnrpc.Channel.prototype.getTotalSatoshisSent=function(){return n.Message.getFieldWithDefault(this,12,0)},proto.lnrpc.Channel.prototype.setTotalSatoshisSent=function(e){return n.Message.setProto3IntField(this,12,e)},proto.lnrpc.Channel.prototype.getTotalSatoshisReceived=function(){return n.Message.getFieldWithDefault(this,13,0)},proto.lnrpc.Channel.prototype.setTotalSatoshisReceived=function(e){return n.Message.setProto3IntField(this,13,e)},proto.lnrpc.Channel.prototype.getNumUpdates=function(){return n.Message.getFieldWithDefault(this,14,0)},proto.lnrpc.Channel.prototype.setNumUpdates=function(e){return n.Message.setProto3IntField(this,14,e)},proto.lnrpc.Channel.prototype.getPendingHtlcsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.HTLC,15)},proto.lnrpc.Channel.prototype.setPendingHtlcsList=function(e){return n.Message.setRepeatedWrapperField(this,15,e)},proto.lnrpc.Channel.prototype.addPendingHtlcs=function(e,t){return n.Message.addToRepeatedWrapperField(this,15,e,proto.lnrpc.HTLC,t)},proto.lnrpc.Channel.prototype.clearPendingHtlcsList=function(){return this.setPendingHtlcsList([])},proto.lnrpc.Channel.prototype.getCsvDelay=function(){return n.Message.getFieldWithDefault(this,16,0)},proto.lnrpc.Channel.prototype.setCsvDelay=function(e){return n.Message.setProto3IntField(this,16,e)},proto.lnrpc.Channel.prototype.getPrivate=function(){return n.Message.getBooleanFieldWithDefault(this,17,!1)},proto.lnrpc.Channel.prototype.setPrivate=function(e){return n.Message.setProto3BooleanField(this,17,e)},proto.lnrpc.Channel.prototype.getInitiator=function(){return n.Message.getBooleanFieldWithDefault(this,18,!1)},proto.lnrpc.Channel.prototype.setInitiator=function(e){return n.Message.setProto3BooleanField(this,18,e)},proto.lnrpc.Channel.prototype.getChanStatusFlags=function(){return n.Message.getFieldWithDefault(this,19,"")},proto.lnrpc.Channel.prototype.setChanStatusFlags=function(e){return n.Message.setProto3StringField(this,19,e)},proto.lnrpc.Channel.prototype.getLocalChanReserveSat=function(){return n.Message.getFieldWithDefault(this,20,0)},proto.lnrpc.Channel.prototype.setLocalChanReserveSat=function(e){return n.Message.setProto3IntField(this,20,e)},proto.lnrpc.Channel.prototype.getRemoteChanReserveSat=function(){return n.Message.getFieldWithDefault(this,21,0)},proto.lnrpc.Channel.prototype.setRemoteChanReserveSat=function(e){return n.Message.setProto3IntField(this,21,e)},proto.lnrpc.Channel.prototype.getStaticRemoteKey=function(){return n.Message.getBooleanFieldWithDefault(this,22,!1)},proto.lnrpc.Channel.prototype.setStaticRemoteKey=function(e){return n.Message.setProto3BooleanField(this,22,e)},proto.lnrpc.Channel.prototype.getCommitmentType=function(){return n.Message.getFieldWithDefault(this,26,0)},proto.lnrpc.Channel.prototype.setCommitmentType=function(e){return n.Message.setProto3EnumField(this,26,e)},proto.lnrpc.Channel.prototype.getLifetime=function(){return n.Message.getFieldWithDefault(this,23,0)},proto.lnrpc.Channel.prototype.setLifetime=function(e){return n.Message.setProto3IntField(this,23,e)},proto.lnrpc.Channel.prototype.getUptime=function(){return n.Message.getFieldWithDefault(this,24,0)},proto.lnrpc.Channel.prototype.setUptime=function(e){return n.Message.setProto3IntField(this,24,e)},proto.lnrpc.Channel.prototype.getCloseAddress=function(){return n.Message.getFieldWithDefault(this,25,"")},proto.lnrpc.Channel.prototype.setCloseAddress=function(e){return n.Message.setProto3StringField(this,25,e)},proto.lnrpc.Channel.prototype.getPushAmountSat=function(){return n.Message.getFieldWithDefault(this,27,0)},proto.lnrpc.Channel.prototype.setPushAmountSat=function(e){return n.Message.setProto3IntField(this,27,e)},proto.lnrpc.Channel.prototype.getThawHeight=function(){return n.Message.getFieldWithDefault(this,28,0)},proto.lnrpc.Channel.prototype.setThawHeight=function(e){return n.Message.setProto3IntField(this,28,e)},proto.lnrpc.Channel.prototype.getLocalConstraints=function(){return n.Message.getWrapperField(this,proto.lnrpc.ChannelConstraints,29)},proto.lnrpc.Channel.prototype.setLocalConstraints=function(e){return n.Message.setWrapperField(this,29,e)},proto.lnrpc.Channel.prototype.clearLocalConstraints=function(){return this.setLocalConstraints(void 0)},proto.lnrpc.Channel.prototype.hasLocalConstraints=function(){return null!=n.Message.getField(this,29)},proto.lnrpc.Channel.prototype.getRemoteConstraints=function(){return n.Message.getWrapperField(this,proto.lnrpc.ChannelConstraints,30)},proto.lnrpc.Channel.prototype.setRemoteConstraints=function(e){return n.Message.setWrapperField(this,30,e)},proto.lnrpc.Channel.prototype.clearRemoteConstraints=function(){return this.setRemoteConstraints(void 0)},proto.lnrpc.Channel.prototype.hasRemoteConstraints=function(){return null!=n.Message.getField(this,30)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ListChannelsRequest.prototype.toObject=function(e){return proto.lnrpc.ListChannelsRequest.toObject(e,this)},proto.lnrpc.ListChannelsRequest.toObject=function(e,t){var r={activeOnly:n.Message.getBooleanFieldWithDefault(t,1,!1),inactiveOnly:n.Message.getBooleanFieldWithDefault(t,2,!1),publicOnly:n.Message.getBooleanFieldWithDefault(t,3,!1),privateOnly:n.Message.getBooleanFieldWithDefault(t,4,!1),peer:t.getPeer_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ListChannelsRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ListChannelsRequest;return proto.lnrpc.ListChannelsRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.ListChannelsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBool();e.setActiveOnly(r);break;case 2:r=t.readBool();e.setInactiveOnly(r);break;case 3:r=t.readBool();e.setPublicOnly(r);break;case 4:r=t.readBool();e.setPrivateOnly(r);break;case 5:r=t.readBytes();e.setPeer(r);break;default:t.skipField()}}return e},proto.lnrpc.ListChannelsRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ListChannelsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ListChannelsRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getActiveOnly())&&t.writeBool(1,r),(r=e.getInactiveOnly())&&t.writeBool(2,r),(r=e.getPublicOnly())&&t.writeBool(3,r),(r=e.getPrivateOnly())&&t.writeBool(4,r),(r=e.getPeer_asU8()).length>0&&t.writeBytes(5,r)},proto.lnrpc.ListChannelsRequest.prototype.getActiveOnly=function(){return n.Message.getBooleanFieldWithDefault(this,1,!1)},proto.lnrpc.ListChannelsRequest.prototype.setActiveOnly=function(e){return n.Message.setProto3BooleanField(this,1,e)},proto.lnrpc.ListChannelsRequest.prototype.getInactiveOnly=function(){return n.Message.getBooleanFieldWithDefault(this,2,!1)},proto.lnrpc.ListChannelsRequest.prototype.setInactiveOnly=function(e){return n.Message.setProto3BooleanField(this,2,e)},proto.lnrpc.ListChannelsRequest.prototype.getPublicOnly=function(){return n.Message.getBooleanFieldWithDefault(this,3,!1)},proto.lnrpc.ListChannelsRequest.prototype.setPublicOnly=function(e){return n.Message.setProto3BooleanField(this,3,e)},proto.lnrpc.ListChannelsRequest.prototype.getPrivateOnly=function(){return n.Message.getBooleanFieldWithDefault(this,4,!1)},proto.lnrpc.ListChannelsRequest.prototype.setPrivateOnly=function(e){return n.Message.setProto3BooleanField(this,4,e)},proto.lnrpc.ListChannelsRequest.prototype.getPeer=function(){return n.Message.getFieldWithDefault(this,5,"")},proto.lnrpc.ListChannelsRequest.prototype.getPeer_asB64=function(){return n.Message.bytesAsB64(this.getPeer())},proto.lnrpc.ListChannelsRequest.prototype.getPeer_asU8=function(){return n.Message.bytesAsU8(this.getPeer())},proto.lnrpc.ListChannelsRequest.prototype.setPeer=function(e){return n.Message.setProto3BytesField(this,5,e)},proto.lnrpc.ListChannelsResponse.repeatedFields_=[11],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ListChannelsResponse.prototype.toObject=function(e){return proto.lnrpc.ListChannelsResponse.toObject(e,this)},proto.lnrpc.ListChannelsResponse.toObject=function(e,t){var r={channelsList:n.Message.toObjectList(t.getChannelsList(),proto.lnrpc.Channel.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ListChannelsResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ListChannelsResponse;return proto.lnrpc.ListChannelsResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.ListChannelsResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(11===t.getFieldNumber()){var r=new proto.lnrpc.Channel;t.readMessage(r,proto.lnrpc.Channel.deserializeBinaryFromReader),e.addChannels(r)}else t.skipField()}return e},proto.lnrpc.ListChannelsResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ListChannelsResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ListChannelsResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getChannelsList()).length>0&&t.writeRepeatedMessage(11,r,proto.lnrpc.Channel.serializeBinaryToWriter)},proto.lnrpc.ListChannelsResponse.prototype.getChannelsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.Channel,11)},proto.lnrpc.ListChannelsResponse.prototype.setChannelsList=function(e){return n.Message.setRepeatedWrapperField(this,11,e)},proto.lnrpc.ListChannelsResponse.prototype.addChannels=function(e,t){return n.Message.addToRepeatedWrapperField(this,11,e,proto.lnrpc.Channel,t)},proto.lnrpc.ListChannelsResponse.prototype.clearChannelsList=function(){return this.setChannelsList([])},proto.lnrpc.ChannelCloseSummary.repeatedFields_=[13],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChannelCloseSummary.prototype.toObject=function(e){return proto.lnrpc.ChannelCloseSummary.toObject(e,this)},proto.lnrpc.ChannelCloseSummary.toObject=function(e,t){var r={channelPoint:n.Message.getFieldWithDefault(t,1,""),chanId:n.Message.getFieldWithDefault(t,2,"0"),chainHash:n.Message.getFieldWithDefault(t,3,""),closingTxHash:n.Message.getFieldWithDefault(t,4,""),remotePubkey:n.Message.getFieldWithDefault(t,5,""),capacity:n.Message.getFieldWithDefault(t,6,0),closeHeight:n.Message.getFieldWithDefault(t,7,0),settledBalance:n.Message.getFieldWithDefault(t,8,0),timeLockedBalance:n.Message.getFieldWithDefault(t,9,0),closeType:n.Message.getFieldWithDefault(t,10,0),openInitiator:n.Message.getFieldWithDefault(t,11,0),closeInitiator:n.Message.getFieldWithDefault(t,12,0),resolutionsList:n.Message.toObjectList(t.getResolutionsList(),proto.lnrpc.Resolution.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ChannelCloseSummary.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChannelCloseSummary;return proto.lnrpc.ChannelCloseSummary.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChannelCloseSummary.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setChannelPoint(r);break;case 2:r=t.readUint64String();e.setChanId(r);break;case 3:r=t.readString();e.setChainHash(r);break;case 4:r=t.readString();e.setClosingTxHash(r);break;case 5:r=t.readString();e.setRemotePubkey(r);break;case 6:r=t.readInt64();e.setCapacity(r);break;case 7:r=t.readUint32();e.setCloseHeight(r);break;case 8:r=t.readInt64();e.setSettledBalance(r);break;case 9:r=t.readInt64();e.setTimeLockedBalance(r);break;case 10:r=t.readEnum();e.setCloseType(r);break;case 11:r=t.readEnum();e.setOpenInitiator(r);break;case 12:r=t.readEnum();e.setCloseInitiator(r);break;case 13:r=new proto.lnrpc.Resolution;t.readMessage(r,proto.lnrpc.Resolution.deserializeBinaryFromReader),e.addResolutions(r);break;default:t.skipField()}}return e},proto.lnrpc.ChannelCloseSummary.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChannelCloseSummary.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChannelCloseSummary.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getChannelPoint()).length>0&&t.writeString(1,r),r=e.getChanId(),0!==parseInt(r,10)&&t.writeUint64String(2,r),(r=e.getChainHash()).length>0&&t.writeString(3,r),(r=e.getClosingTxHash()).length>0&&t.writeString(4,r),(r=e.getRemotePubkey()).length>0&&t.writeString(5,r),0!==(r=e.getCapacity())&&t.writeInt64(6,r),0!==(r=e.getCloseHeight())&&t.writeUint32(7,r),0!==(r=e.getSettledBalance())&&t.writeInt64(8,r),0!==(r=e.getTimeLockedBalance())&&t.writeInt64(9,r),0!==(r=e.getCloseType())&&t.writeEnum(10,r),0!==(r=e.getOpenInitiator())&&t.writeEnum(11,r),0!==(r=e.getCloseInitiator())&&t.writeEnum(12,r),(r=e.getResolutionsList()).length>0&&t.writeRepeatedMessage(13,r,proto.lnrpc.Resolution.serializeBinaryToWriter)},proto.lnrpc.ChannelCloseSummary.ClosureType={COOPERATIVE_CLOSE:0,LOCAL_FORCE_CLOSE:1,REMOTE_FORCE_CLOSE:2,BREACH_CLOSE:3,FUNDING_CANCELED:4,ABANDONED:5},proto.lnrpc.ChannelCloseSummary.prototype.getChannelPoint=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.ChannelCloseSummary.prototype.setChannelPoint=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.ChannelCloseSummary.prototype.getChanId=function(){return n.Message.getFieldWithDefault(this,2,"0")},proto.lnrpc.ChannelCloseSummary.prototype.setChanId=function(e){return n.Message.setProto3StringIntField(this,2,e)},proto.lnrpc.ChannelCloseSummary.prototype.getChainHash=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.lnrpc.ChannelCloseSummary.prototype.setChainHash=function(e){return n.Message.setProto3StringField(this,3,e)},proto.lnrpc.ChannelCloseSummary.prototype.getClosingTxHash=function(){return n.Message.getFieldWithDefault(this,4,"")},proto.lnrpc.ChannelCloseSummary.prototype.setClosingTxHash=function(e){return n.Message.setProto3StringField(this,4,e)},proto.lnrpc.ChannelCloseSummary.prototype.getRemotePubkey=function(){return n.Message.getFieldWithDefault(this,5,"")},proto.lnrpc.ChannelCloseSummary.prototype.setRemotePubkey=function(e){return n.Message.setProto3StringField(this,5,e)},proto.lnrpc.ChannelCloseSummary.prototype.getCapacity=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.ChannelCloseSummary.prototype.setCapacity=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.ChannelCloseSummary.prototype.getCloseHeight=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.lnrpc.ChannelCloseSummary.prototype.setCloseHeight=function(e){return n.Message.setProto3IntField(this,7,e)},proto.lnrpc.ChannelCloseSummary.prototype.getSettledBalance=function(){return n.Message.getFieldWithDefault(this,8,0)},proto.lnrpc.ChannelCloseSummary.prototype.setSettledBalance=function(e){return n.Message.setProto3IntField(this,8,e)},proto.lnrpc.ChannelCloseSummary.prototype.getTimeLockedBalance=function(){return n.Message.getFieldWithDefault(this,9,0)},proto.lnrpc.ChannelCloseSummary.prototype.setTimeLockedBalance=function(e){return n.Message.setProto3IntField(this,9,e)},proto.lnrpc.ChannelCloseSummary.prototype.getCloseType=function(){return n.Message.getFieldWithDefault(this,10,0)},proto.lnrpc.ChannelCloseSummary.prototype.setCloseType=function(e){return n.Message.setProto3EnumField(this,10,e)},proto.lnrpc.ChannelCloseSummary.prototype.getOpenInitiator=function(){return n.Message.getFieldWithDefault(this,11,0)},proto.lnrpc.ChannelCloseSummary.prototype.setOpenInitiator=function(e){return n.Message.setProto3EnumField(this,11,e)},proto.lnrpc.ChannelCloseSummary.prototype.getCloseInitiator=function(){return n.Message.getFieldWithDefault(this,12,0)},proto.lnrpc.ChannelCloseSummary.prototype.setCloseInitiator=function(e){return n.Message.setProto3EnumField(this,12,e)},proto.lnrpc.ChannelCloseSummary.prototype.getResolutionsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.Resolution,13)},proto.lnrpc.ChannelCloseSummary.prototype.setResolutionsList=function(e){return n.Message.setRepeatedWrapperField(this,13,e)},proto.lnrpc.ChannelCloseSummary.prototype.addResolutions=function(e,t){return n.Message.addToRepeatedWrapperField(this,13,e,proto.lnrpc.Resolution,t)},proto.lnrpc.ChannelCloseSummary.prototype.clearResolutionsList=function(){return this.setResolutionsList([])},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.Resolution.prototype.toObject=function(e){return proto.lnrpc.Resolution.toObject(e,this)},proto.lnrpc.Resolution.toObject=function(e,t){var r,o={resolutionType:n.Message.getFieldWithDefault(t,1,0),outcome:n.Message.getFieldWithDefault(t,2,0),outpoint:(r=t.getOutpoint())&&proto.lnrpc.OutPoint.toObject(e,r),amountSat:n.Message.getFieldWithDefault(t,4,0),sweepTxid:n.Message.getFieldWithDefault(t,5,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.Resolution.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.Resolution;return proto.lnrpc.Resolution.deserializeBinaryFromReader(r,t)},proto.lnrpc.Resolution.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setResolutionType(r);break;case 2:r=t.readEnum();e.setOutcome(r);break;case 3:r=new proto.lnrpc.OutPoint;t.readMessage(r,proto.lnrpc.OutPoint.deserializeBinaryFromReader),e.setOutpoint(r);break;case 4:r=t.readUint64();e.setAmountSat(r);break;case 5:r=t.readString();e.setSweepTxid(r);break;default:t.skipField()}}return e},proto.lnrpc.Resolution.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.Resolution.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.Resolution.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getResolutionType())&&t.writeEnum(1,r),0!==(r=e.getOutcome())&&t.writeEnum(2,r),null!=(r=e.getOutpoint())&&t.writeMessage(3,r,proto.lnrpc.OutPoint.serializeBinaryToWriter),0!==(r=e.getAmountSat())&&t.writeUint64(4,r),(r=e.getSweepTxid()).length>0&&t.writeString(5,r)},proto.lnrpc.Resolution.prototype.getResolutionType=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.Resolution.prototype.setResolutionType=function(e){return n.Message.setProto3EnumField(this,1,e)},proto.lnrpc.Resolution.prototype.getOutcome=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.Resolution.prototype.setOutcome=function(e){return n.Message.setProto3EnumField(this,2,e)},proto.lnrpc.Resolution.prototype.getOutpoint=function(){return n.Message.getWrapperField(this,proto.lnrpc.OutPoint,3)},proto.lnrpc.Resolution.prototype.setOutpoint=function(e){return n.Message.setWrapperField(this,3,e)},proto.lnrpc.Resolution.prototype.clearOutpoint=function(){return this.setOutpoint(void 0)},proto.lnrpc.Resolution.prototype.hasOutpoint=function(){return null!=n.Message.getField(this,3)},proto.lnrpc.Resolution.prototype.getAmountSat=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.Resolution.prototype.setAmountSat=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.Resolution.prototype.getSweepTxid=function(){return n.Message.getFieldWithDefault(this,5,"")},proto.lnrpc.Resolution.prototype.setSweepTxid=function(e){return n.Message.setProto3StringField(this,5,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ClosedChannelsRequest.prototype.toObject=function(e){return proto.lnrpc.ClosedChannelsRequest.toObject(e,this)},proto.lnrpc.ClosedChannelsRequest.toObject=function(e,t){var r={cooperative:n.Message.getBooleanFieldWithDefault(t,1,!1),localForce:n.Message.getBooleanFieldWithDefault(t,2,!1),remoteForce:n.Message.getBooleanFieldWithDefault(t,3,!1),breach:n.Message.getBooleanFieldWithDefault(t,4,!1),fundingCanceled:n.Message.getBooleanFieldWithDefault(t,5,!1),abandoned:n.Message.getBooleanFieldWithDefault(t,6,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ClosedChannelsRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ClosedChannelsRequest;return proto.lnrpc.ClosedChannelsRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.ClosedChannelsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBool();e.setCooperative(r);break;case 2:r=t.readBool();e.setLocalForce(r);break;case 3:r=t.readBool();e.setRemoteForce(r);break;case 4:r=t.readBool();e.setBreach(r);break;case 5:r=t.readBool();e.setFundingCanceled(r);break;case 6:r=t.readBool();e.setAbandoned(r);break;default:t.skipField()}}return e},proto.lnrpc.ClosedChannelsRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ClosedChannelsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ClosedChannelsRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCooperative())&&t.writeBool(1,r),(r=e.getLocalForce())&&t.writeBool(2,r),(r=e.getRemoteForce())&&t.writeBool(3,r),(r=e.getBreach())&&t.writeBool(4,r),(r=e.getFundingCanceled())&&t.writeBool(5,r),(r=e.getAbandoned())&&t.writeBool(6,r)},proto.lnrpc.ClosedChannelsRequest.prototype.getCooperative=function(){return n.Message.getBooleanFieldWithDefault(this,1,!1)},proto.lnrpc.ClosedChannelsRequest.prototype.setCooperative=function(e){return n.Message.setProto3BooleanField(this,1,e)},proto.lnrpc.ClosedChannelsRequest.prototype.getLocalForce=function(){return n.Message.getBooleanFieldWithDefault(this,2,!1)},proto.lnrpc.ClosedChannelsRequest.prototype.setLocalForce=function(e){return n.Message.setProto3BooleanField(this,2,e)},proto.lnrpc.ClosedChannelsRequest.prototype.getRemoteForce=function(){return n.Message.getBooleanFieldWithDefault(this,3,!1)},proto.lnrpc.ClosedChannelsRequest.prototype.setRemoteForce=function(e){return n.Message.setProto3BooleanField(this,3,e)},proto.lnrpc.ClosedChannelsRequest.prototype.getBreach=function(){return n.Message.getBooleanFieldWithDefault(this,4,!1)},proto.lnrpc.ClosedChannelsRequest.prototype.setBreach=function(e){return n.Message.setProto3BooleanField(this,4,e)},proto.lnrpc.ClosedChannelsRequest.prototype.getFundingCanceled=function(){return n.Message.getBooleanFieldWithDefault(this,5,!1)},proto.lnrpc.ClosedChannelsRequest.prototype.setFundingCanceled=function(e){return n.Message.setProto3BooleanField(this,5,e)},proto.lnrpc.ClosedChannelsRequest.prototype.getAbandoned=function(){return n.Message.getBooleanFieldWithDefault(this,6,!1)},proto.lnrpc.ClosedChannelsRequest.prototype.setAbandoned=function(e){return n.Message.setProto3BooleanField(this,6,e)},proto.lnrpc.ClosedChannelsResponse.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ClosedChannelsResponse.prototype.toObject=function(e){return proto.lnrpc.ClosedChannelsResponse.toObject(e,this)},proto.lnrpc.ClosedChannelsResponse.toObject=function(e,t){var r={channelsList:n.Message.toObjectList(t.getChannelsList(),proto.lnrpc.ChannelCloseSummary.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ClosedChannelsResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ClosedChannelsResponse;return proto.lnrpc.ClosedChannelsResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.ClosedChannelsResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.lnrpc.ChannelCloseSummary;t.readMessage(r,proto.lnrpc.ChannelCloseSummary.deserializeBinaryFromReader),e.addChannels(r)}else t.skipField()}return e},proto.lnrpc.ClosedChannelsResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ClosedChannelsResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ClosedChannelsResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getChannelsList()).length>0&&t.writeRepeatedMessage(1,r,proto.lnrpc.ChannelCloseSummary.serializeBinaryToWriter)},proto.lnrpc.ClosedChannelsResponse.prototype.getChannelsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.ChannelCloseSummary,1)},proto.lnrpc.ClosedChannelsResponse.prototype.setChannelsList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.lnrpc.ClosedChannelsResponse.prototype.addChannels=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.lnrpc.ChannelCloseSummary,t)},proto.lnrpc.ClosedChannelsResponse.prototype.clearChannelsList=function(){return this.setChannelsList([])},proto.lnrpc.Peer.repeatedFields_=[12],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.Peer.prototype.toObject=function(e){return proto.lnrpc.Peer.toObject(e,this)},proto.lnrpc.Peer.toObject=function(e,t){var r,o={pubKey:n.Message.getFieldWithDefault(t,1,""),address:n.Message.getFieldWithDefault(t,3,""),bytesSent:n.Message.getFieldWithDefault(t,4,0),bytesRecv:n.Message.getFieldWithDefault(t,5,0),satSent:n.Message.getFieldWithDefault(t,6,0),satRecv:n.Message.getFieldWithDefault(t,7,0),inbound:n.Message.getBooleanFieldWithDefault(t,8,!1),pingTime:n.Message.getFieldWithDefault(t,9,0),syncType:n.Message.getFieldWithDefault(t,10,0),featuresMap:(r=t.getFeaturesMap())?r.toObject(e,proto.lnrpc.Feature.toObject):[],errorsList:n.Message.toObjectList(t.getErrorsList(),proto.lnrpc.TimestampedError.toObject,e),flapCount:n.Message.getFieldWithDefault(t,13,0),lastFlapNs:n.Message.getFieldWithDefault(t,14,0),lastPingPayload:t.getLastPingPayload_asB64()};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.Peer.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.Peer;return proto.lnrpc.Peer.deserializeBinaryFromReader(r,t)},proto.lnrpc.Peer.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setPubKey(r);break;case 3:r=t.readString();e.setAddress(r);break;case 4:r=t.readUint64();e.setBytesSent(r);break;case 5:r=t.readUint64();e.setBytesRecv(r);break;case 6:r=t.readInt64();e.setSatSent(r);break;case 7:r=t.readInt64();e.setSatRecv(r);break;case 8:r=t.readBool();e.setInbound(r);break;case 9:r=t.readInt64();e.setPingTime(r);break;case 10:r=t.readEnum();e.setSyncType(r);break;case 11:r=e.getFeaturesMap();t.readMessage(r,(function(e,t){n.Map.deserializeBinary(e,t,n.BinaryReader.prototype.readUint32,n.BinaryReader.prototype.readMessage,proto.lnrpc.Feature.deserializeBinaryFromReader,0,new proto.lnrpc.Feature)}));break;case 12:r=new proto.lnrpc.TimestampedError;t.readMessage(r,proto.lnrpc.TimestampedError.deserializeBinaryFromReader),e.addErrors(r);break;case 13:r=t.readInt32();e.setFlapCount(r);break;case 14:r=t.readInt64();e.setLastFlapNs(r);break;case 15:r=t.readBytes();e.setLastPingPayload(r);break;default:t.skipField()}}return e},proto.lnrpc.Peer.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.Peer.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.Peer.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPubKey()).length>0&&t.writeString(1,r),(r=e.getAddress()).length>0&&t.writeString(3,r),0!==(r=e.getBytesSent())&&t.writeUint64(4,r),0!==(r=e.getBytesRecv())&&t.writeUint64(5,r),0!==(r=e.getSatSent())&&t.writeInt64(6,r),0!==(r=e.getSatRecv())&&t.writeInt64(7,r),(r=e.getInbound())&&t.writeBool(8,r),0!==(r=e.getPingTime())&&t.writeInt64(9,r),0!==(r=e.getSyncType())&&t.writeEnum(10,r),(r=e.getFeaturesMap(!0))&&r.getLength()>0&&r.serializeBinary(11,t,n.BinaryWriter.prototype.writeUint32,n.BinaryWriter.prototype.writeMessage,proto.lnrpc.Feature.serializeBinaryToWriter),(r=e.getErrorsList()).length>0&&t.writeRepeatedMessage(12,r,proto.lnrpc.TimestampedError.serializeBinaryToWriter),0!==(r=e.getFlapCount())&&t.writeInt32(13,r),0!==(r=e.getLastFlapNs())&&t.writeInt64(14,r),(r=e.getLastPingPayload_asU8()).length>0&&t.writeBytes(15,r)},proto.lnrpc.Peer.SyncType={UNKNOWN_SYNC:0,ACTIVE_SYNC:1,PASSIVE_SYNC:2,PINNED_SYNC:3},proto.lnrpc.Peer.prototype.getPubKey=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.Peer.prototype.setPubKey=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.Peer.prototype.getAddress=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.lnrpc.Peer.prototype.setAddress=function(e){return n.Message.setProto3StringField(this,3,e)},proto.lnrpc.Peer.prototype.getBytesSent=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.Peer.prototype.setBytesSent=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.Peer.prototype.getBytesRecv=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.Peer.prototype.setBytesRecv=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.Peer.prototype.getSatSent=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.Peer.prototype.setSatSent=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.Peer.prototype.getSatRecv=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.lnrpc.Peer.prototype.setSatRecv=function(e){return n.Message.setProto3IntField(this,7,e)},proto.lnrpc.Peer.prototype.getInbound=function(){return n.Message.getBooleanFieldWithDefault(this,8,!1)},proto.lnrpc.Peer.prototype.setInbound=function(e){return n.Message.setProto3BooleanField(this,8,e)},proto.lnrpc.Peer.prototype.getPingTime=function(){return n.Message.getFieldWithDefault(this,9,0)},proto.lnrpc.Peer.prototype.setPingTime=function(e){return n.Message.setProto3IntField(this,9,e)},proto.lnrpc.Peer.prototype.getSyncType=function(){return n.Message.getFieldWithDefault(this,10,0)},proto.lnrpc.Peer.prototype.setSyncType=function(e){return n.Message.setProto3EnumField(this,10,e)},proto.lnrpc.Peer.prototype.getFeaturesMap=function(e){return n.Message.getMapField(this,11,e,proto.lnrpc.Feature)},proto.lnrpc.Peer.prototype.clearFeaturesMap=function(){return this.getFeaturesMap().clear(),this},proto.lnrpc.Peer.prototype.getErrorsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.TimestampedError,12)},proto.lnrpc.Peer.prototype.setErrorsList=function(e){return n.Message.setRepeatedWrapperField(this,12,e)},proto.lnrpc.Peer.prototype.addErrors=function(e,t){return n.Message.addToRepeatedWrapperField(this,12,e,proto.lnrpc.TimestampedError,t)},proto.lnrpc.Peer.prototype.clearErrorsList=function(){return this.setErrorsList([])},proto.lnrpc.Peer.prototype.getFlapCount=function(){return n.Message.getFieldWithDefault(this,13,0)},proto.lnrpc.Peer.prototype.setFlapCount=function(e){return n.Message.setProto3IntField(this,13,e)},proto.lnrpc.Peer.prototype.getLastFlapNs=function(){return n.Message.getFieldWithDefault(this,14,0)},proto.lnrpc.Peer.prototype.setLastFlapNs=function(e){return n.Message.setProto3IntField(this,14,e)},proto.lnrpc.Peer.prototype.getLastPingPayload=function(){return n.Message.getFieldWithDefault(this,15,"")},proto.lnrpc.Peer.prototype.getLastPingPayload_asB64=function(){return n.Message.bytesAsB64(this.getLastPingPayload())},proto.lnrpc.Peer.prototype.getLastPingPayload_asU8=function(){return n.Message.bytesAsU8(this.getLastPingPayload())},proto.lnrpc.Peer.prototype.setLastPingPayload=function(e){return n.Message.setProto3BytesField(this,15,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.TimestampedError.prototype.toObject=function(e){return proto.lnrpc.TimestampedError.toObject(e,this)},proto.lnrpc.TimestampedError.toObject=function(e,t){var r={timestamp:n.Message.getFieldWithDefault(t,1,0),error:n.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.TimestampedError.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.TimestampedError;return proto.lnrpc.TimestampedError.deserializeBinaryFromReader(r,t)},proto.lnrpc.TimestampedError.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint64();e.setTimestamp(r);break;case 2:r=t.readString();e.setError(r);break;default:t.skipField()}}return e},proto.lnrpc.TimestampedError.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.TimestampedError.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.TimestampedError.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getTimestamp())&&t.writeUint64(1,r),(r=e.getError()).length>0&&t.writeString(2,r)},proto.lnrpc.TimestampedError.prototype.getTimestamp=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.TimestampedError.prototype.setTimestamp=function(e){return n.Message.setProto3IntField(this,1,e)},proto.lnrpc.TimestampedError.prototype.getError=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.TimestampedError.prototype.setError=function(e){return n.Message.setProto3StringField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ListPeersRequest.prototype.toObject=function(e){return proto.lnrpc.ListPeersRequest.toObject(e,this)},proto.lnrpc.ListPeersRequest.toObject=function(e,t){var r={latestError:n.Message.getBooleanFieldWithDefault(t,1,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ListPeersRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ListPeersRequest;return proto.lnrpc.ListPeersRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.ListPeersRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readBool();e.setLatestError(r)}else t.skipField()}return e},proto.lnrpc.ListPeersRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ListPeersRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ListPeersRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getLatestError())&&t.writeBool(1,r)},proto.lnrpc.ListPeersRequest.prototype.getLatestError=function(){return n.Message.getBooleanFieldWithDefault(this,1,!1)},proto.lnrpc.ListPeersRequest.prototype.setLatestError=function(e){return n.Message.setProto3BooleanField(this,1,e)},proto.lnrpc.ListPeersResponse.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ListPeersResponse.prototype.toObject=function(e){return proto.lnrpc.ListPeersResponse.toObject(e,this)},proto.lnrpc.ListPeersResponse.toObject=function(e,t){var r={peersList:n.Message.toObjectList(t.getPeersList(),proto.lnrpc.Peer.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ListPeersResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ListPeersResponse;return proto.lnrpc.ListPeersResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.ListPeersResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.lnrpc.Peer;t.readMessage(r,proto.lnrpc.Peer.deserializeBinaryFromReader),e.addPeers(r)}else t.skipField()}return e},proto.lnrpc.ListPeersResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ListPeersResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ListPeersResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getPeersList()).length>0&&t.writeRepeatedMessage(1,r,proto.lnrpc.Peer.serializeBinaryToWriter)},proto.lnrpc.ListPeersResponse.prototype.getPeersList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.Peer,1)},proto.lnrpc.ListPeersResponse.prototype.setPeersList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.lnrpc.ListPeersResponse.prototype.addPeers=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.lnrpc.Peer,t)},proto.lnrpc.ListPeersResponse.prototype.clearPeersList=function(){return this.setPeersList([])},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.PeerEventSubscription.prototype.toObject=function(e){return proto.lnrpc.PeerEventSubscription.toObject(e,this)},proto.lnrpc.PeerEventSubscription.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.PeerEventSubscription.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.PeerEventSubscription;return proto.lnrpc.PeerEventSubscription.deserializeBinaryFromReader(r,t)},proto.lnrpc.PeerEventSubscription.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.PeerEventSubscription.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.PeerEventSubscription.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.PeerEventSubscription.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.PeerEvent.prototype.toObject=function(e){return proto.lnrpc.PeerEvent.toObject(e,this)},proto.lnrpc.PeerEvent.toObject=function(e,t){var r={pubKey:n.Message.getFieldWithDefault(t,1,""),type:n.Message.getFieldWithDefault(t,2,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.PeerEvent.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.PeerEvent;return proto.lnrpc.PeerEvent.deserializeBinaryFromReader(r,t)},proto.lnrpc.PeerEvent.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setPubKey(r);break;case 2:r=t.readEnum();e.setType(r);break;default:t.skipField()}}return e},proto.lnrpc.PeerEvent.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.PeerEvent.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.PeerEvent.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPubKey()).length>0&&t.writeString(1,r),0!==(r=e.getType())&&t.writeEnum(2,r)},proto.lnrpc.PeerEvent.EventType={PEER_ONLINE:0,PEER_OFFLINE:1},proto.lnrpc.PeerEvent.prototype.getPubKey=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.PeerEvent.prototype.setPubKey=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.PeerEvent.prototype.getType=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.PeerEvent.prototype.setType=function(e){return n.Message.setProto3EnumField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.GetInfoRequest.prototype.toObject=function(e){return proto.lnrpc.GetInfoRequest.toObject(e,this)},proto.lnrpc.GetInfoRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.GetInfoRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.GetInfoRequest;return proto.lnrpc.GetInfoRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.GetInfoRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.GetInfoRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.GetInfoRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.GetInfoRequest.serializeBinaryToWriter=function(e,t){},proto.lnrpc.GetInfoResponse.repeatedFields_=[16,12],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.GetInfoResponse.prototype.toObject=function(e){return proto.lnrpc.GetInfoResponse.toObject(e,this)},proto.lnrpc.GetInfoResponse.toObject=function(e,t){var r,o={version:n.Message.getFieldWithDefault(t,14,""),commitHash:n.Message.getFieldWithDefault(t,20,""),identityPubkey:n.Message.getFieldWithDefault(t,1,""),alias:n.Message.getFieldWithDefault(t,2,""),color:n.Message.getFieldWithDefault(t,17,""),numPendingChannels:n.Message.getFieldWithDefault(t,3,0),numActiveChannels:n.Message.getFieldWithDefault(t,4,0),numInactiveChannels:n.Message.getFieldWithDefault(t,15,0),numPeers:n.Message.getFieldWithDefault(t,5,0),blockHeight:n.Message.getFieldWithDefault(t,6,0),blockHash:n.Message.getFieldWithDefault(t,8,""),bestHeaderTimestamp:n.Message.getFieldWithDefault(t,13,0),syncedToChain:n.Message.getBooleanFieldWithDefault(t,9,!1),syncedToGraph:n.Message.getBooleanFieldWithDefault(t,18,!1),testnet:n.Message.getBooleanFieldWithDefault(t,10,!1),chainsList:n.Message.toObjectList(t.getChainsList(),proto.lnrpc.Chain.toObject,e),urisList:null==(r=n.Message.getRepeatedField(t,12))?void 0:r,featuresMap:(r=t.getFeaturesMap())?r.toObject(e,proto.lnrpc.Feature.toObject):[]};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.GetInfoResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.GetInfoResponse;return proto.lnrpc.GetInfoResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.GetInfoResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 14:var r=t.readString();e.setVersion(r);break;case 20:r=t.readString();e.setCommitHash(r);break;case 1:r=t.readString();e.setIdentityPubkey(r);break;case 2:r=t.readString();e.setAlias(r);break;case 17:r=t.readString();e.setColor(r);break;case 3:r=t.readUint32();e.setNumPendingChannels(r);break;case 4:r=t.readUint32();e.setNumActiveChannels(r);break;case 15:r=t.readUint32();e.setNumInactiveChannels(r);break;case 5:r=t.readUint32();e.setNumPeers(r);break;case 6:r=t.readUint32();e.setBlockHeight(r);break;case 8:r=t.readString();e.setBlockHash(r);break;case 13:r=t.readInt64();e.setBestHeaderTimestamp(r);break;case 9:r=t.readBool();e.setSyncedToChain(r);break;case 18:r=t.readBool();e.setSyncedToGraph(r);break;case 10:r=t.readBool();e.setTestnet(r);break;case 16:r=new proto.lnrpc.Chain;t.readMessage(r,proto.lnrpc.Chain.deserializeBinaryFromReader),e.addChains(r);break;case 12:r=t.readString();e.addUris(r);break;case 19:r=e.getFeaturesMap();t.readMessage(r,(function(e,t){n.Map.deserializeBinary(e,t,n.BinaryReader.prototype.readUint32,n.BinaryReader.prototype.readMessage,proto.lnrpc.Feature.deserializeBinaryFromReader,0,new proto.lnrpc.Feature)}));break;default:t.skipField()}}return e},proto.lnrpc.GetInfoResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.GetInfoResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.GetInfoResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getVersion()).length>0&&t.writeString(14,r),(r=e.getCommitHash()).length>0&&t.writeString(20,r),(r=e.getIdentityPubkey()).length>0&&t.writeString(1,r),(r=e.getAlias()).length>0&&t.writeString(2,r),(r=e.getColor()).length>0&&t.writeString(17,r),0!==(r=e.getNumPendingChannels())&&t.writeUint32(3,r),0!==(r=e.getNumActiveChannels())&&t.writeUint32(4,r),0!==(r=e.getNumInactiveChannels())&&t.writeUint32(15,r),0!==(r=e.getNumPeers())&&t.writeUint32(5,r),0!==(r=e.getBlockHeight())&&t.writeUint32(6,r),(r=e.getBlockHash()).length>0&&t.writeString(8,r),0!==(r=e.getBestHeaderTimestamp())&&t.writeInt64(13,r),(r=e.getSyncedToChain())&&t.writeBool(9,r),(r=e.getSyncedToGraph())&&t.writeBool(18,r),(r=e.getTestnet())&&t.writeBool(10,r),(r=e.getChainsList()).length>0&&t.writeRepeatedMessage(16,r,proto.lnrpc.Chain.serializeBinaryToWriter),(r=e.getUrisList()).length>0&&t.writeRepeatedString(12,r),(r=e.getFeaturesMap(!0))&&r.getLength()>0&&r.serializeBinary(19,t,n.BinaryWriter.prototype.writeUint32,n.BinaryWriter.prototype.writeMessage,proto.lnrpc.Feature.serializeBinaryToWriter)},proto.lnrpc.GetInfoResponse.prototype.getVersion=function(){return n.Message.getFieldWithDefault(this,14,"")},proto.lnrpc.GetInfoResponse.prototype.setVersion=function(e){return n.Message.setProto3StringField(this,14,e)},proto.lnrpc.GetInfoResponse.prototype.getCommitHash=function(){return n.Message.getFieldWithDefault(this,20,"")},proto.lnrpc.GetInfoResponse.prototype.setCommitHash=function(e){return n.Message.setProto3StringField(this,20,e)},proto.lnrpc.GetInfoResponse.prototype.getIdentityPubkey=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.GetInfoResponse.prototype.setIdentityPubkey=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.GetInfoResponse.prototype.getAlias=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.GetInfoResponse.prototype.setAlias=function(e){return n.Message.setProto3StringField(this,2,e)},proto.lnrpc.GetInfoResponse.prototype.getColor=function(){return n.Message.getFieldWithDefault(this,17,"")},proto.lnrpc.GetInfoResponse.prototype.setColor=function(e){return n.Message.setProto3StringField(this,17,e)},proto.lnrpc.GetInfoResponse.prototype.getNumPendingChannels=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.GetInfoResponse.prototype.setNumPendingChannels=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.GetInfoResponse.prototype.getNumActiveChannels=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.GetInfoResponse.prototype.setNumActiveChannels=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.GetInfoResponse.prototype.getNumInactiveChannels=function(){return n.Message.getFieldWithDefault(this,15,0)},proto.lnrpc.GetInfoResponse.prototype.setNumInactiveChannels=function(e){return n.Message.setProto3IntField(this,15,e)},proto.lnrpc.GetInfoResponse.prototype.getNumPeers=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.GetInfoResponse.prototype.setNumPeers=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.GetInfoResponse.prototype.getBlockHeight=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.GetInfoResponse.prototype.setBlockHeight=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.GetInfoResponse.prototype.getBlockHash=function(){return n.Message.getFieldWithDefault(this,8,"")},proto.lnrpc.GetInfoResponse.prototype.setBlockHash=function(e){return n.Message.setProto3StringField(this,8,e)},proto.lnrpc.GetInfoResponse.prototype.getBestHeaderTimestamp=function(){return n.Message.getFieldWithDefault(this,13,0)},proto.lnrpc.GetInfoResponse.prototype.setBestHeaderTimestamp=function(e){return n.Message.setProto3IntField(this,13,e)},proto.lnrpc.GetInfoResponse.prototype.getSyncedToChain=function(){return n.Message.getBooleanFieldWithDefault(this,9,!1)},proto.lnrpc.GetInfoResponse.prototype.setSyncedToChain=function(e){return n.Message.setProto3BooleanField(this,9,e)},proto.lnrpc.GetInfoResponse.prototype.getSyncedToGraph=function(){return n.Message.getBooleanFieldWithDefault(this,18,!1)},proto.lnrpc.GetInfoResponse.prototype.setSyncedToGraph=function(e){return n.Message.setProto3BooleanField(this,18,e)},proto.lnrpc.GetInfoResponse.prototype.getTestnet=function(){return n.Message.getBooleanFieldWithDefault(this,10,!1)},proto.lnrpc.GetInfoResponse.prototype.setTestnet=function(e){return n.Message.setProto3BooleanField(this,10,e)},proto.lnrpc.GetInfoResponse.prototype.getChainsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.Chain,16)},proto.lnrpc.GetInfoResponse.prototype.setChainsList=function(e){return n.Message.setRepeatedWrapperField(this,16,e)},proto.lnrpc.GetInfoResponse.prototype.addChains=function(e,t){return n.Message.addToRepeatedWrapperField(this,16,e,proto.lnrpc.Chain,t)},proto.lnrpc.GetInfoResponse.prototype.clearChainsList=function(){return this.setChainsList([])},proto.lnrpc.GetInfoResponse.prototype.getUrisList=function(){return n.Message.getRepeatedField(this,12)},proto.lnrpc.GetInfoResponse.prototype.setUrisList=function(e){return n.Message.setField(this,12,e||[])},proto.lnrpc.GetInfoResponse.prototype.addUris=function(e,t){return n.Message.addToRepeatedField(this,12,e,t)},proto.lnrpc.GetInfoResponse.prototype.clearUrisList=function(){return this.setUrisList([])},proto.lnrpc.GetInfoResponse.prototype.getFeaturesMap=function(e){return n.Message.getMapField(this,19,e,proto.lnrpc.Feature)},proto.lnrpc.GetInfoResponse.prototype.clearFeaturesMap=function(){return this.getFeaturesMap().clear(),this},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.GetRecoveryInfoRequest.prototype.toObject=function(e){return proto.lnrpc.GetRecoveryInfoRequest.toObject(e,this)},proto.lnrpc.GetRecoveryInfoRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.GetRecoveryInfoRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.GetRecoveryInfoRequest;return proto.lnrpc.GetRecoveryInfoRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.GetRecoveryInfoRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.GetRecoveryInfoRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.GetRecoveryInfoRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.GetRecoveryInfoRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.GetRecoveryInfoResponse.prototype.toObject=function(e){return proto.lnrpc.GetRecoveryInfoResponse.toObject(e,this)},proto.lnrpc.GetRecoveryInfoResponse.toObject=function(e,t){var r={recoveryMode:n.Message.getBooleanFieldWithDefault(t,1,!1),recoveryFinished:n.Message.getBooleanFieldWithDefault(t,2,!1),progress:n.Message.getFloatingPointFieldWithDefault(t,3,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.GetRecoveryInfoResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.GetRecoveryInfoResponse;return proto.lnrpc.GetRecoveryInfoResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.GetRecoveryInfoResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBool();e.setRecoveryMode(r);break;case 2:r=t.readBool();e.setRecoveryFinished(r);break;case 3:r=t.readDouble();e.setProgress(r);break;default:t.skipField()}}return e},proto.lnrpc.GetRecoveryInfoResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.GetRecoveryInfoResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.GetRecoveryInfoResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getRecoveryMode())&&t.writeBool(1,r),(r=e.getRecoveryFinished())&&t.writeBool(2,r),0!==(r=e.getProgress())&&t.writeDouble(3,r)},proto.lnrpc.GetRecoveryInfoResponse.prototype.getRecoveryMode=function(){return n.Message.getBooleanFieldWithDefault(this,1,!1)},proto.lnrpc.GetRecoveryInfoResponse.prototype.setRecoveryMode=function(e){return n.Message.setProto3BooleanField(this,1,e)},proto.lnrpc.GetRecoveryInfoResponse.prototype.getRecoveryFinished=function(){return n.Message.getBooleanFieldWithDefault(this,2,!1)},proto.lnrpc.GetRecoveryInfoResponse.prototype.setRecoveryFinished=function(e){return n.Message.setProto3BooleanField(this,2,e)},proto.lnrpc.GetRecoveryInfoResponse.prototype.getProgress=function(){return n.Message.getFloatingPointFieldWithDefault(this,3,0)},proto.lnrpc.GetRecoveryInfoResponse.prototype.setProgress=function(e){return n.Message.setProto3FloatField(this,3,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.Chain.prototype.toObject=function(e){return proto.lnrpc.Chain.toObject(e,this)},proto.lnrpc.Chain.toObject=function(e,t){var r={chain:n.Message.getFieldWithDefault(t,1,""),network:n.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.Chain.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.Chain;return proto.lnrpc.Chain.deserializeBinaryFromReader(r,t)},proto.lnrpc.Chain.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setChain(r);break;case 2:r=t.readString();e.setNetwork(r);break;default:t.skipField()}}return e},proto.lnrpc.Chain.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.Chain.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.lnrpc.Chain.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getChain()).length>0&&t.writeString(1,r),(r=e.getNetwork()).length>0&&t.writeString(2,r)},proto.lnrpc.Chain.prototype.getChain=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.Chain.prototype.setChain=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.Chain.prototype.getNetwork=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.Chain.prototype.setNetwork=function(e){return n.Message.setProto3StringField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ConfirmationUpdate.prototype.toObject=function(e){return proto.lnrpc.ConfirmationUpdate.toObject(e,this)},proto.lnrpc.ConfirmationUpdate.toObject=function(e,t){var r={blockSha:t.getBlockSha_asB64(),blockHeight:n.Message.getFieldWithDefault(t,2,0),numConfsLeft:n.Message.getFieldWithDefault(t,3,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ConfirmationUpdate.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ConfirmationUpdate;return proto.lnrpc.ConfirmationUpdate.deserializeBinaryFromReader(r,t)},proto.lnrpc.ConfirmationUpdate.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setBlockSha(r);break;case 2:r=t.readInt32();e.setBlockHeight(r);break;case 3:r=t.readUint32();e.setNumConfsLeft(r);break;default:t.skipField()}}return e},proto.lnrpc.ConfirmationUpdate.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ConfirmationUpdate.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ConfirmationUpdate.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getBlockSha_asU8()).length>0&&t.writeBytes(1,r),0!==(r=e.getBlockHeight())&&t.writeInt32(2,r),0!==(r=e.getNumConfsLeft())&&t.writeUint32(3,r)},proto.lnrpc.ConfirmationUpdate.prototype.getBlockSha=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.ConfirmationUpdate.prototype.getBlockSha_asB64=function(){return n.Message.bytesAsB64(this.getBlockSha())},proto.lnrpc.ConfirmationUpdate.prototype.getBlockSha_asU8=function(){return n.Message.bytesAsU8(this.getBlockSha())},proto.lnrpc.ConfirmationUpdate.prototype.setBlockSha=function(e){return n.Message.setProto3BytesField(this,1,e)},proto.lnrpc.ConfirmationUpdate.prototype.getBlockHeight=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.ConfirmationUpdate.prototype.setBlockHeight=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.ConfirmationUpdate.prototype.getNumConfsLeft=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.ConfirmationUpdate.prototype.setNumConfsLeft=function(e){return n.Message.setProto3IntField(this,3,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChannelOpenUpdate.prototype.toObject=function(e){return proto.lnrpc.ChannelOpenUpdate.toObject(e,this)},proto.lnrpc.ChannelOpenUpdate.toObject=function(e,t){var r,n={channelPoint:(r=t.getChannelPoint())&&proto.lnrpc.ChannelPoint.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.lnrpc.ChannelOpenUpdate.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChannelOpenUpdate;return proto.lnrpc.ChannelOpenUpdate.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChannelOpenUpdate.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.lnrpc.ChannelPoint;t.readMessage(r,proto.lnrpc.ChannelPoint.deserializeBinaryFromReader),e.setChannelPoint(r)}else t.skipField()}return e},proto.lnrpc.ChannelOpenUpdate.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChannelOpenUpdate.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChannelOpenUpdate.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getChannelPoint())&&t.writeMessage(1,r,proto.lnrpc.ChannelPoint.serializeBinaryToWriter)},proto.lnrpc.ChannelOpenUpdate.prototype.getChannelPoint=function(){return n.Message.getWrapperField(this,proto.lnrpc.ChannelPoint,1)},proto.lnrpc.ChannelOpenUpdate.prototype.setChannelPoint=function(e){return n.Message.setWrapperField(this,1,e)},proto.lnrpc.ChannelOpenUpdate.prototype.clearChannelPoint=function(){return this.setChannelPoint(void 0)},proto.lnrpc.ChannelOpenUpdate.prototype.hasChannelPoint=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChannelCloseUpdate.prototype.toObject=function(e){return proto.lnrpc.ChannelCloseUpdate.toObject(e,this)},proto.lnrpc.ChannelCloseUpdate.toObject=function(e,t){var r={closingTxid:t.getClosingTxid_asB64(),success:n.Message.getBooleanFieldWithDefault(t,2,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ChannelCloseUpdate.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChannelCloseUpdate;return proto.lnrpc.ChannelCloseUpdate.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChannelCloseUpdate.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setClosingTxid(r);break;case 2:r=t.readBool();e.setSuccess(r);break;default:t.skipField()}}return e},proto.lnrpc.ChannelCloseUpdate.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChannelCloseUpdate.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChannelCloseUpdate.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getClosingTxid_asU8()).length>0&&t.writeBytes(1,r),(r=e.getSuccess())&&t.writeBool(2,r)},proto.lnrpc.ChannelCloseUpdate.prototype.getClosingTxid=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.ChannelCloseUpdate.prototype.getClosingTxid_asB64=function(){return n.Message.bytesAsB64(this.getClosingTxid())},proto.lnrpc.ChannelCloseUpdate.prototype.getClosingTxid_asU8=function(){return n.Message.bytesAsU8(this.getClosingTxid())},proto.lnrpc.ChannelCloseUpdate.prototype.setClosingTxid=function(e){return n.Message.setProto3BytesField(this,1,e)},proto.lnrpc.ChannelCloseUpdate.prototype.getSuccess=function(){return n.Message.getBooleanFieldWithDefault(this,2,!1)},proto.lnrpc.ChannelCloseUpdate.prototype.setSuccess=function(e){return n.Message.setProto3BooleanField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.CloseChannelRequest.prototype.toObject=function(e){return proto.lnrpc.CloseChannelRequest.toObject(e,this)},proto.lnrpc.CloseChannelRequest.toObject=function(e,t){var r,o={channelPoint:(r=t.getChannelPoint())&&proto.lnrpc.ChannelPoint.toObject(e,r),force:n.Message.getBooleanFieldWithDefault(t,2,!1),targetConf:n.Message.getFieldWithDefault(t,3,0),satPerByte:n.Message.getFieldWithDefault(t,4,0),deliveryAddress:n.Message.getFieldWithDefault(t,5,""),satPerVbyte:n.Message.getFieldWithDefault(t,6,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.CloseChannelRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.CloseChannelRequest;return proto.lnrpc.CloseChannelRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.CloseChannelRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.ChannelPoint;t.readMessage(r,proto.lnrpc.ChannelPoint.deserializeBinaryFromReader),e.setChannelPoint(r);break;case 2:r=t.readBool();e.setForce(r);break;case 3:r=t.readInt32();e.setTargetConf(r);break;case 4:r=t.readInt64();e.setSatPerByte(r);break;case 5:r=t.readString();e.setDeliveryAddress(r);break;case 6:r=t.readUint64();e.setSatPerVbyte(r);break;default:t.skipField()}}return e},proto.lnrpc.CloseChannelRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.CloseChannelRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.CloseChannelRequest.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getChannelPoint())&&t.writeMessage(1,r,proto.lnrpc.ChannelPoint.serializeBinaryToWriter),(r=e.getForce())&&t.writeBool(2,r),0!==(r=e.getTargetConf())&&t.writeInt32(3,r),0!==(r=e.getSatPerByte())&&t.writeInt64(4,r),(r=e.getDeliveryAddress()).length>0&&t.writeString(5,r),0!==(r=e.getSatPerVbyte())&&t.writeUint64(6,r)},proto.lnrpc.CloseChannelRequest.prototype.getChannelPoint=function(){return n.Message.getWrapperField(this,proto.lnrpc.ChannelPoint,1)},proto.lnrpc.CloseChannelRequest.prototype.setChannelPoint=function(e){return n.Message.setWrapperField(this,1,e)},proto.lnrpc.CloseChannelRequest.prototype.clearChannelPoint=function(){return this.setChannelPoint(void 0)},proto.lnrpc.CloseChannelRequest.prototype.hasChannelPoint=function(){return null!=n.Message.getField(this,1)},proto.lnrpc.CloseChannelRequest.prototype.getForce=function(){return n.Message.getBooleanFieldWithDefault(this,2,!1)},proto.lnrpc.CloseChannelRequest.prototype.setForce=function(e){return n.Message.setProto3BooleanField(this,2,e)},proto.lnrpc.CloseChannelRequest.prototype.getTargetConf=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.CloseChannelRequest.prototype.setTargetConf=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.CloseChannelRequest.prototype.getSatPerByte=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.CloseChannelRequest.prototype.setSatPerByte=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.CloseChannelRequest.prototype.getDeliveryAddress=function(){return n.Message.getFieldWithDefault(this,5,"")},proto.lnrpc.CloseChannelRequest.prototype.setDeliveryAddress=function(e){return n.Message.setProto3StringField(this,5,e)},proto.lnrpc.CloseChannelRequest.prototype.getSatPerVbyte=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.CloseChannelRequest.prototype.setSatPerVbyte=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.CloseStatusUpdate.oneofGroups_=[[1,3]],proto.lnrpc.CloseStatusUpdate.UpdateCase={UPDATE_NOT_SET:0,CLOSE_PENDING:1,CHAN_CLOSE:3},proto.lnrpc.CloseStatusUpdate.prototype.getUpdateCase=function(){return n.Message.computeOneofCase(this,proto.lnrpc.CloseStatusUpdate.oneofGroups_[0])},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.CloseStatusUpdate.prototype.toObject=function(e){return proto.lnrpc.CloseStatusUpdate.toObject(e,this)},proto.lnrpc.CloseStatusUpdate.toObject=function(e,t){var r,n={closePending:(r=t.getClosePending())&&proto.lnrpc.PendingUpdate.toObject(e,r),chanClose:(r=t.getChanClose())&&proto.lnrpc.ChannelCloseUpdate.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.lnrpc.CloseStatusUpdate.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.CloseStatusUpdate;return proto.lnrpc.CloseStatusUpdate.deserializeBinaryFromReader(r,t)},proto.lnrpc.CloseStatusUpdate.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.PendingUpdate;t.readMessage(r,proto.lnrpc.PendingUpdate.deserializeBinaryFromReader),e.setClosePending(r);break;case 3:r=new proto.lnrpc.ChannelCloseUpdate;t.readMessage(r,proto.lnrpc.ChannelCloseUpdate.deserializeBinaryFromReader),e.setChanClose(r);break;default:t.skipField()}}return e},proto.lnrpc.CloseStatusUpdate.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.CloseStatusUpdate.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.CloseStatusUpdate.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getClosePending())&&t.writeMessage(1,r,proto.lnrpc.PendingUpdate.serializeBinaryToWriter),null!=(r=e.getChanClose())&&t.writeMessage(3,r,proto.lnrpc.ChannelCloseUpdate.serializeBinaryToWriter)},proto.lnrpc.CloseStatusUpdate.prototype.getClosePending=function(){return n.Message.getWrapperField(this,proto.lnrpc.PendingUpdate,1)},proto.lnrpc.CloseStatusUpdate.prototype.setClosePending=function(e){return n.Message.setOneofWrapperField(this,1,proto.lnrpc.CloseStatusUpdate.oneofGroups_[0],e)},proto.lnrpc.CloseStatusUpdate.prototype.clearClosePending=function(){return this.setClosePending(void 0)},proto.lnrpc.CloseStatusUpdate.prototype.hasClosePending=function(){return null!=n.Message.getField(this,1)},proto.lnrpc.CloseStatusUpdate.prototype.getChanClose=function(){return n.Message.getWrapperField(this,proto.lnrpc.ChannelCloseUpdate,3)},proto.lnrpc.CloseStatusUpdate.prototype.setChanClose=function(e){return n.Message.setOneofWrapperField(this,3,proto.lnrpc.CloseStatusUpdate.oneofGroups_[0],e)},proto.lnrpc.CloseStatusUpdate.prototype.clearChanClose=function(){return this.setChanClose(void 0)},proto.lnrpc.CloseStatusUpdate.prototype.hasChanClose=function(){return null!=n.Message.getField(this,3)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.PendingUpdate.prototype.toObject=function(e){return proto.lnrpc.PendingUpdate.toObject(e,this)},proto.lnrpc.PendingUpdate.toObject=function(e,t){var r={txid:t.getTxid_asB64(),outputIndex:n.Message.getFieldWithDefault(t,2,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.PendingUpdate.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.PendingUpdate;return proto.lnrpc.PendingUpdate.deserializeBinaryFromReader(r,t)},proto.lnrpc.PendingUpdate.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setTxid(r);break;case 2:r=t.readUint32();e.setOutputIndex(r);break;default:t.skipField()}}return e},proto.lnrpc.PendingUpdate.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.PendingUpdate.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.PendingUpdate.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getTxid_asU8()).length>0&&t.writeBytes(1,r),0!==(r=e.getOutputIndex())&&t.writeUint32(2,r)},proto.lnrpc.PendingUpdate.prototype.getTxid=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.PendingUpdate.prototype.getTxid_asB64=function(){return n.Message.bytesAsB64(this.getTxid())},proto.lnrpc.PendingUpdate.prototype.getTxid_asU8=function(){return n.Message.bytesAsU8(this.getTxid())},proto.lnrpc.PendingUpdate.prototype.setTxid=function(e){return n.Message.setProto3BytesField(this,1,e)},proto.lnrpc.PendingUpdate.prototype.getOutputIndex=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.PendingUpdate.prototype.setOutputIndex=function(e){return n.Message.setProto3IntField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ReadyForPsbtFunding.prototype.toObject=function(e){return proto.lnrpc.ReadyForPsbtFunding.toObject(e,this)},proto.lnrpc.ReadyForPsbtFunding.toObject=function(e,t){var r={fundingAddress:n.Message.getFieldWithDefault(t,1,""),fundingAmount:n.Message.getFieldWithDefault(t,2,0),psbt:t.getPsbt_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ReadyForPsbtFunding.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ReadyForPsbtFunding;return proto.lnrpc.ReadyForPsbtFunding.deserializeBinaryFromReader(r,t)},proto.lnrpc.ReadyForPsbtFunding.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setFundingAddress(r);break;case 2:r=t.readInt64();e.setFundingAmount(r);break;case 3:r=t.readBytes();e.setPsbt(r);break;default:t.skipField()}}return e},proto.lnrpc.ReadyForPsbtFunding.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ReadyForPsbtFunding.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ReadyForPsbtFunding.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getFundingAddress()).length>0&&t.writeString(1,r),0!==(r=e.getFundingAmount())&&t.writeInt64(2,r),(r=e.getPsbt_asU8()).length>0&&t.writeBytes(3,r)},proto.lnrpc.ReadyForPsbtFunding.prototype.getFundingAddress=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.ReadyForPsbtFunding.prototype.setFundingAddress=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.ReadyForPsbtFunding.prototype.getFundingAmount=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.ReadyForPsbtFunding.prototype.setFundingAmount=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.ReadyForPsbtFunding.prototype.getPsbt=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.lnrpc.ReadyForPsbtFunding.prototype.getPsbt_asB64=function(){return n.Message.bytesAsB64(this.getPsbt())},proto.lnrpc.ReadyForPsbtFunding.prototype.getPsbt_asU8=function(){return n.Message.bytesAsU8(this.getPsbt())},proto.lnrpc.ReadyForPsbtFunding.prototype.setPsbt=function(e){return n.Message.setProto3BytesField(this,3,e)},proto.lnrpc.BatchOpenChannelRequest.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.BatchOpenChannelRequest.prototype.toObject=function(e){return proto.lnrpc.BatchOpenChannelRequest.toObject(e,this)},proto.lnrpc.BatchOpenChannelRequest.toObject=function(e,t){var r={channelsList:n.Message.toObjectList(t.getChannelsList(),proto.lnrpc.BatchOpenChannel.toObject,e),targetConf:n.Message.getFieldWithDefault(t,2,0),satPerVbyte:n.Message.getFieldWithDefault(t,3,0),minConfs:n.Message.getFieldWithDefault(t,4,0),spendUnconfirmed:n.Message.getBooleanFieldWithDefault(t,5,!1),label:n.Message.getFieldWithDefault(t,6,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.BatchOpenChannelRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.BatchOpenChannelRequest;return proto.lnrpc.BatchOpenChannelRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.BatchOpenChannelRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.BatchOpenChannel;t.readMessage(r,proto.lnrpc.BatchOpenChannel.deserializeBinaryFromReader),e.addChannels(r);break;case 2:r=t.readInt32();e.setTargetConf(r);break;case 3:r=t.readInt64();e.setSatPerVbyte(r);break;case 4:r=t.readInt32();e.setMinConfs(r);break;case 5:r=t.readBool();e.setSpendUnconfirmed(r);break;case 6:r=t.readString();e.setLabel(r);break;default:t.skipField()}}return e},proto.lnrpc.BatchOpenChannelRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.BatchOpenChannelRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.BatchOpenChannelRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getChannelsList()).length>0&&t.writeRepeatedMessage(1,r,proto.lnrpc.BatchOpenChannel.serializeBinaryToWriter),0!==(r=e.getTargetConf())&&t.writeInt32(2,r),0!==(r=e.getSatPerVbyte())&&t.writeInt64(3,r),0!==(r=e.getMinConfs())&&t.writeInt32(4,r),(r=e.getSpendUnconfirmed())&&t.writeBool(5,r),(r=e.getLabel()).length>0&&t.writeString(6,r)},proto.lnrpc.BatchOpenChannelRequest.prototype.getChannelsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.BatchOpenChannel,1)},proto.lnrpc.BatchOpenChannelRequest.prototype.setChannelsList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.lnrpc.BatchOpenChannelRequest.prototype.addChannels=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.lnrpc.BatchOpenChannel,t)},proto.lnrpc.BatchOpenChannelRequest.prototype.clearChannelsList=function(){return this.setChannelsList([])},proto.lnrpc.BatchOpenChannelRequest.prototype.getTargetConf=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.BatchOpenChannelRequest.prototype.setTargetConf=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.BatchOpenChannelRequest.prototype.getSatPerVbyte=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.BatchOpenChannelRequest.prototype.setSatPerVbyte=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.BatchOpenChannelRequest.prototype.getMinConfs=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.BatchOpenChannelRequest.prototype.setMinConfs=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.BatchOpenChannelRequest.prototype.getSpendUnconfirmed=function(){return n.Message.getBooleanFieldWithDefault(this,5,!1)},proto.lnrpc.BatchOpenChannelRequest.prototype.setSpendUnconfirmed=function(e){return n.Message.setProto3BooleanField(this,5,e)},proto.lnrpc.BatchOpenChannelRequest.prototype.getLabel=function(){return n.Message.getFieldWithDefault(this,6,"")},proto.lnrpc.BatchOpenChannelRequest.prototype.setLabel=function(e){return n.Message.setProto3StringField(this,6,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.BatchOpenChannel.prototype.toObject=function(e){return proto.lnrpc.BatchOpenChannel.toObject(e,this)},proto.lnrpc.BatchOpenChannel.toObject=function(e,t){var r={nodePubkey:t.getNodePubkey_asB64(),localFundingAmount:n.Message.getFieldWithDefault(t,2,0),pushSat:n.Message.getFieldWithDefault(t,3,0),pb_private:n.Message.getBooleanFieldWithDefault(t,4,!1),minHtlcMsat:n.Message.getFieldWithDefault(t,5,0),remoteCsvDelay:n.Message.getFieldWithDefault(t,6,0),closeAddress:n.Message.getFieldWithDefault(t,7,""),pendingChanId:t.getPendingChanId_asB64(),commitmentType:n.Message.getFieldWithDefault(t,9,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.BatchOpenChannel.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.BatchOpenChannel;return proto.lnrpc.BatchOpenChannel.deserializeBinaryFromReader(r,t)},proto.lnrpc.BatchOpenChannel.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setNodePubkey(r);break;case 2:r=t.readInt64();e.setLocalFundingAmount(r);break;case 3:r=t.readInt64();e.setPushSat(r);break;case 4:r=t.readBool();e.setPrivate(r);break;case 5:r=t.readInt64();e.setMinHtlcMsat(r);break;case 6:r=t.readUint32();e.setRemoteCsvDelay(r);break;case 7:r=t.readString();e.setCloseAddress(r);break;case 8:r=t.readBytes();e.setPendingChanId(r);break;case 9:r=t.readEnum();e.setCommitmentType(r);break;default:t.skipField()}}return e},proto.lnrpc.BatchOpenChannel.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.BatchOpenChannel.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.BatchOpenChannel.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getNodePubkey_asU8()).length>0&&t.writeBytes(1,r),0!==(r=e.getLocalFundingAmount())&&t.writeInt64(2,r),0!==(r=e.getPushSat())&&t.writeInt64(3,r),(r=e.getPrivate())&&t.writeBool(4,r),0!==(r=e.getMinHtlcMsat())&&t.writeInt64(5,r),0!==(r=e.getRemoteCsvDelay())&&t.writeUint32(6,r),(r=e.getCloseAddress()).length>0&&t.writeString(7,r),(r=e.getPendingChanId_asU8()).length>0&&t.writeBytes(8,r),0!==(r=e.getCommitmentType())&&t.writeEnum(9,r)},proto.lnrpc.BatchOpenChannel.prototype.getNodePubkey=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.BatchOpenChannel.prototype.getNodePubkey_asB64=function(){return n.Message.bytesAsB64(this.getNodePubkey())},proto.lnrpc.BatchOpenChannel.prototype.getNodePubkey_asU8=function(){return n.Message.bytesAsU8(this.getNodePubkey())},proto.lnrpc.BatchOpenChannel.prototype.setNodePubkey=function(e){return n.Message.setProto3BytesField(this,1,e)},proto.lnrpc.BatchOpenChannel.prototype.getLocalFundingAmount=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.BatchOpenChannel.prototype.setLocalFundingAmount=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.BatchOpenChannel.prototype.getPushSat=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.BatchOpenChannel.prototype.setPushSat=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.BatchOpenChannel.prototype.getPrivate=function(){return n.Message.getBooleanFieldWithDefault(this,4,!1)},proto.lnrpc.BatchOpenChannel.prototype.setPrivate=function(e){return n.Message.setProto3BooleanField(this,4,e)},proto.lnrpc.BatchOpenChannel.prototype.getMinHtlcMsat=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.BatchOpenChannel.prototype.setMinHtlcMsat=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.BatchOpenChannel.prototype.getRemoteCsvDelay=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.BatchOpenChannel.prototype.setRemoteCsvDelay=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.BatchOpenChannel.prototype.getCloseAddress=function(){return n.Message.getFieldWithDefault(this,7,"")},proto.lnrpc.BatchOpenChannel.prototype.setCloseAddress=function(e){return n.Message.setProto3StringField(this,7,e)},proto.lnrpc.BatchOpenChannel.prototype.getPendingChanId=function(){return n.Message.getFieldWithDefault(this,8,"")},proto.lnrpc.BatchOpenChannel.prototype.getPendingChanId_asB64=function(){return n.Message.bytesAsB64(this.getPendingChanId())},proto.lnrpc.BatchOpenChannel.prototype.getPendingChanId_asU8=function(){return n.Message.bytesAsU8(this.getPendingChanId())},proto.lnrpc.BatchOpenChannel.prototype.setPendingChanId=function(e){return n.Message.setProto3BytesField(this,8,e)},proto.lnrpc.BatchOpenChannel.prototype.getCommitmentType=function(){return n.Message.getFieldWithDefault(this,9,0)},proto.lnrpc.BatchOpenChannel.prototype.setCommitmentType=function(e){return n.Message.setProto3EnumField(this,9,e)},proto.lnrpc.BatchOpenChannelResponse.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.BatchOpenChannelResponse.prototype.toObject=function(e){return proto.lnrpc.BatchOpenChannelResponse.toObject(e,this)},proto.lnrpc.BatchOpenChannelResponse.toObject=function(e,t){var r={pendingChannelsList:n.Message.toObjectList(t.getPendingChannelsList(),proto.lnrpc.PendingUpdate.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.BatchOpenChannelResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.BatchOpenChannelResponse;return proto.lnrpc.BatchOpenChannelResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.BatchOpenChannelResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.lnrpc.PendingUpdate;t.readMessage(r,proto.lnrpc.PendingUpdate.deserializeBinaryFromReader),e.addPendingChannels(r)}else t.skipField()}return e},proto.lnrpc.BatchOpenChannelResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.BatchOpenChannelResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.BatchOpenChannelResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getPendingChannelsList()).length>0&&t.writeRepeatedMessage(1,r,proto.lnrpc.PendingUpdate.serializeBinaryToWriter)},proto.lnrpc.BatchOpenChannelResponse.prototype.getPendingChannelsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.PendingUpdate,1)},proto.lnrpc.BatchOpenChannelResponse.prototype.setPendingChannelsList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.lnrpc.BatchOpenChannelResponse.prototype.addPendingChannels=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.lnrpc.PendingUpdate,t)},proto.lnrpc.BatchOpenChannelResponse.prototype.clearPendingChannelsList=function(){return this.setPendingChannelsList([])},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.OpenChannelRequest.prototype.toObject=function(e){return proto.lnrpc.OpenChannelRequest.toObject(e,this)},proto.lnrpc.OpenChannelRequest.toObject=function(e,t){var r,o={satPerVbyte:n.Message.getFieldWithDefault(t,1,0),nodePubkey:t.getNodePubkey_asB64(),nodePubkeyString:n.Message.getFieldWithDefault(t,3,""),localFundingAmount:n.Message.getFieldWithDefault(t,4,0),pushSat:n.Message.getFieldWithDefault(t,5,0),targetConf:n.Message.getFieldWithDefault(t,6,0),satPerByte:n.Message.getFieldWithDefault(t,7,0),pb_private:n.Message.getBooleanFieldWithDefault(t,8,!1),minHtlcMsat:n.Message.getFieldWithDefault(t,9,0),remoteCsvDelay:n.Message.getFieldWithDefault(t,10,0),minConfs:n.Message.getFieldWithDefault(t,11,0),spendUnconfirmed:n.Message.getBooleanFieldWithDefault(t,12,!1),closeAddress:n.Message.getFieldWithDefault(t,13,""),fundingShim:(r=t.getFundingShim())&&proto.lnrpc.FundingShim.toObject(e,r),remoteMaxValueInFlightMsat:n.Message.getFieldWithDefault(t,15,0),remoteMaxHtlcs:n.Message.getFieldWithDefault(t,16,0),maxLocalCsv:n.Message.getFieldWithDefault(t,17,0),commitmentType:n.Message.getFieldWithDefault(t,18,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.OpenChannelRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.OpenChannelRequest;return proto.lnrpc.OpenChannelRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.OpenChannelRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint64();e.setSatPerVbyte(r);break;case 2:r=t.readBytes();e.setNodePubkey(r);break;case 3:r=t.readString();e.setNodePubkeyString(r);break;case 4:r=t.readInt64();e.setLocalFundingAmount(r);break;case 5:r=t.readInt64();e.setPushSat(r);break;case 6:r=t.readInt32();e.setTargetConf(r);break;case 7:r=t.readInt64();e.setSatPerByte(r);break;case 8:r=t.readBool();e.setPrivate(r);break;case 9:r=t.readInt64();e.setMinHtlcMsat(r);break;case 10:r=t.readUint32();e.setRemoteCsvDelay(r);break;case 11:r=t.readInt32();e.setMinConfs(r);break;case 12:r=t.readBool();e.setSpendUnconfirmed(r);break;case 13:r=t.readString();e.setCloseAddress(r);break;case 14:r=new proto.lnrpc.FundingShim;t.readMessage(r,proto.lnrpc.FundingShim.deserializeBinaryFromReader),e.setFundingShim(r);break;case 15:r=t.readUint64();e.setRemoteMaxValueInFlightMsat(r);break;case 16:r=t.readUint32();e.setRemoteMaxHtlcs(r);break;case 17:r=t.readUint32();e.setMaxLocalCsv(r);break;case 18:r=t.readEnum();e.setCommitmentType(r);break;default:t.skipField()}}return e},proto.lnrpc.OpenChannelRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.OpenChannelRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.OpenChannelRequest.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getSatPerVbyte())&&t.writeUint64(1,r),(r=e.getNodePubkey_asU8()).length>0&&t.writeBytes(2,r),(r=e.getNodePubkeyString()).length>0&&t.writeString(3,r),0!==(r=e.getLocalFundingAmount())&&t.writeInt64(4,r),0!==(r=e.getPushSat())&&t.writeInt64(5,r),0!==(r=e.getTargetConf())&&t.writeInt32(6,r),0!==(r=e.getSatPerByte())&&t.writeInt64(7,r),(r=e.getPrivate())&&t.writeBool(8,r),0!==(r=e.getMinHtlcMsat())&&t.writeInt64(9,r),0!==(r=e.getRemoteCsvDelay())&&t.writeUint32(10,r),0!==(r=e.getMinConfs())&&t.writeInt32(11,r),(r=e.getSpendUnconfirmed())&&t.writeBool(12,r),(r=e.getCloseAddress()).length>0&&t.writeString(13,r),null!=(r=e.getFundingShim())&&t.writeMessage(14,r,proto.lnrpc.FundingShim.serializeBinaryToWriter),0!==(r=e.getRemoteMaxValueInFlightMsat())&&t.writeUint64(15,r),0!==(r=e.getRemoteMaxHtlcs())&&t.writeUint32(16,r),0!==(r=e.getMaxLocalCsv())&&t.writeUint32(17,r),0!==(r=e.getCommitmentType())&&t.writeEnum(18,r)},proto.lnrpc.OpenChannelRequest.prototype.getSatPerVbyte=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.OpenChannelRequest.prototype.setSatPerVbyte=function(e){return n.Message.setProto3IntField(this,1,e)},proto.lnrpc.OpenChannelRequest.prototype.getNodePubkey=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.OpenChannelRequest.prototype.getNodePubkey_asB64=function(){return n.Message.bytesAsB64(this.getNodePubkey())},proto.lnrpc.OpenChannelRequest.prototype.getNodePubkey_asU8=function(){return n.Message.bytesAsU8(this.getNodePubkey())},proto.lnrpc.OpenChannelRequest.prototype.setNodePubkey=function(e){return n.Message.setProto3BytesField(this,2,e)},proto.lnrpc.OpenChannelRequest.prototype.getNodePubkeyString=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.lnrpc.OpenChannelRequest.prototype.setNodePubkeyString=function(e){return n.Message.setProto3StringField(this,3,e)},proto.lnrpc.OpenChannelRequest.prototype.getLocalFundingAmount=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.OpenChannelRequest.prototype.setLocalFundingAmount=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.OpenChannelRequest.prototype.getPushSat=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.OpenChannelRequest.prototype.setPushSat=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.OpenChannelRequest.prototype.getTargetConf=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.OpenChannelRequest.prototype.setTargetConf=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.OpenChannelRequest.prototype.getSatPerByte=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.lnrpc.OpenChannelRequest.prototype.setSatPerByte=function(e){return n.Message.setProto3IntField(this,7,e)},proto.lnrpc.OpenChannelRequest.prototype.getPrivate=function(){return n.Message.getBooleanFieldWithDefault(this,8,!1)},proto.lnrpc.OpenChannelRequest.prototype.setPrivate=function(e){return n.Message.setProto3BooleanField(this,8,e)},proto.lnrpc.OpenChannelRequest.prototype.getMinHtlcMsat=function(){return n.Message.getFieldWithDefault(this,9,0)},proto.lnrpc.OpenChannelRequest.prototype.setMinHtlcMsat=function(e){return n.Message.setProto3IntField(this,9,e)},proto.lnrpc.OpenChannelRequest.prototype.getRemoteCsvDelay=function(){return n.Message.getFieldWithDefault(this,10,0)},proto.lnrpc.OpenChannelRequest.prototype.setRemoteCsvDelay=function(e){return n.Message.setProto3IntField(this,10,e)},proto.lnrpc.OpenChannelRequest.prototype.getMinConfs=function(){return n.Message.getFieldWithDefault(this,11,0)},proto.lnrpc.OpenChannelRequest.prototype.setMinConfs=function(e){return n.Message.setProto3IntField(this,11,e)},proto.lnrpc.OpenChannelRequest.prototype.getSpendUnconfirmed=function(){return n.Message.getBooleanFieldWithDefault(this,12,!1)},proto.lnrpc.OpenChannelRequest.prototype.setSpendUnconfirmed=function(e){return n.Message.setProto3BooleanField(this,12,e)},proto.lnrpc.OpenChannelRequest.prototype.getCloseAddress=function(){return n.Message.getFieldWithDefault(this,13,"")},proto.lnrpc.OpenChannelRequest.prototype.setCloseAddress=function(e){return n.Message.setProto3StringField(this,13,e)},proto.lnrpc.OpenChannelRequest.prototype.getFundingShim=function(){return n.Message.getWrapperField(this,proto.lnrpc.FundingShim,14)},proto.lnrpc.OpenChannelRequest.prototype.setFundingShim=function(e){return n.Message.setWrapperField(this,14,e)},proto.lnrpc.OpenChannelRequest.prototype.clearFundingShim=function(){return this.setFundingShim(void 0)},proto.lnrpc.OpenChannelRequest.prototype.hasFundingShim=function(){return null!=n.Message.getField(this,14)},proto.lnrpc.OpenChannelRequest.prototype.getRemoteMaxValueInFlightMsat=function(){return n.Message.getFieldWithDefault(this,15,0)},proto.lnrpc.OpenChannelRequest.prototype.setRemoteMaxValueInFlightMsat=function(e){return n.Message.setProto3IntField(this,15,e)},proto.lnrpc.OpenChannelRequest.prototype.getRemoteMaxHtlcs=function(){return n.Message.getFieldWithDefault(this,16,0)},proto.lnrpc.OpenChannelRequest.prototype.setRemoteMaxHtlcs=function(e){return n.Message.setProto3IntField(this,16,e)},proto.lnrpc.OpenChannelRequest.prototype.getMaxLocalCsv=function(){return n.Message.getFieldWithDefault(this,17,0)},proto.lnrpc.OpenChannelRequest.prototype.setMaxLocalCsv=function(e){return n.Message.setProto3IntField(this,17,e)},proto.lnrpc.OpenChannelRequest.prototype.getCommitmentType=function(){return n.Message.getFieldWithDefault(this,18,0)},proto.lnrpc.OpenChannelRequest.prototype.setCommitmentType=function(e){return n.Message.setProto3EnumField(this,18,e)},proto.lnrpc.OpenStatusUpdate.oneofGroups_=[[1,3,5]],proto.lnrpc.OpenStatusUpdate.UpdateCase={UPDATE_NOT_SET:0,CHAN_PENDING:1,CHAN_OPEN:3,PSBT_FUND:5},proto.lnrpc.OpenStatusUpdate.prototype.getUpdateCase=function(){return n.Message.computeOneofCase(this,proto.lnrpc.OpenStatusUpdate.oneofGroups_[0])},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.OpenStatusUpdate.prototype.toObject=function(e){return proto.lnrpc.OpenStatusUpdate.toObject(e,this)},proto.lnrpc.OpenStatusUpdate.toObject=function(e,t){var r,n={chanPending:(r=t.getChanPending())&&proto.lnrpc.PendingUpdate.toObject(e,r),chanOpen:(r=t.getChanOpen())&&proto.lnrpc.ChannelOpenUpdate.toObject(e,r),psbtFund:(r=t.getPsbtFund())&&proto.lnrpc.ReadyForPsbtFunding.toObject(e,r),pendingChanId:t.getPendingChanId_asB64()};return e&&(n.$jspbMessageInstance=t),n}),proto.lnrpc.OpenStatusUpdate.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.OpenStatusUpdate;return proto.lnrpc.OpenStatusUpdate.deserializeBinaryFromReader(r,t)},proto.lnrpc.OpenStatusUpdate.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.PendingUpdate;t.readMessage(r,proto.lnrpc.PendingUpdate.deserializeBinaryFromReader),e.setChanPending(r);break;case 3:r=new proto.lnrpc.ChannelOpenUpdate;t.readMessage(r,proto.lnrpc.ChannelOpenUpdate.deserializeBinaryFromReader),e.setChanOpen(r);break;case 5:r=new proto.lnrpc.ReadyForPsbtFunding;t.readMessage(r,proto.lnrpc.ReadyForPsbtFunding.deserializeBinaryFromReader),e.setPsbtFund(r);break;case 4:r=t.readBytes();e.setPendingChanId(r);break;default:t.skipField()}}return e},proto.lnrpc.OpenStatusUpdate.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.OpenStatusUpdate.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.OpenStatusUpdate.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getChanPending())&&t.writeMessage(1,r,proto.lnrpc.PendingUpdate.serializeBinaryToWriter),null!=(r=e.getChanOpen())&&t.writeMessage(3,r,proto.lnrpc.ChannelOpenUpdate.serializeBinaryToWriter),null!=(r=e.getPsbtFund())&&t.writeMessage(5,r,proto.lnrpc.ReadyForPsbtFunding.serializeBinaryToWriter),(r=e.getPendingChanId_asU8()).length>0&&t.writeBytes(4,r)},proto.lnrpc.OpenStatusUpdate.prototype.getChanPending=function(){return n.Message.getWrapperField(this,proto.lnrpc.PendingUpdate,1)},proto.lnrpc.OpenStatusUpdate.prototype.setChanPending=function(e){return n.Message.setOneofWrapperField(this,1,proto.lnrpc.OpenStatusUpdate.oneofGroups_[0],e)},proto.lnrpc.OpenStatusUpdate.prototype.clearChanPending=function(){return this.setChanPending(void 0)},proto.lnrpc.OpenStatusUpdate.prototype.hasChanPending=function(){return null!=n.Message.getField(this,1)},proto.lnrpc.OpenStatusUpdate.prototype.getChanOpen=function(){return n.Message.getWrapperField(this,proto.lnrpc.ChannelOpenUpdate,3)},proto.lnrpc.OpenStatusUpdate.prototype.setChanOpen=function(e){return n.Message.setOneofWrapperField(this,3,proto.lnrpc.OpenStatusUpdate.oneofGroups_[0],e)},proto.lnrpc.OpenStatusUpdate.prototype.clearChanOpen=function(){return this.setChanOpen(void 0)},proto.lnrpc.OpenStatusUpdate.prototype.hasChanOpen=function(){return null!=n.Message.getField(this,3)},proto.lnrpc.OpenStatusUpdate.prototype.getPsbtFund=function(){return n.Message.getWrapperField(this,proto.lnrpc.ReadyForPsbtFunding,5)},proto.lnrpc.OpenStatusUpdate.prototype.setPsbtFund=function(e){return n.Message.setOneofWrapperField(this,5,proto.lnrpc.OpenStatusUpdate.oneofGroups_[0],e)},proto.lnrpc.OpenStatusUpdate.prototype.clearPsbtFund=function(){return this.setPsbtFund(void 0)},proto.lnrpc.OpenStatusUpdate.prototype.hasPsbtFund=function(){return null!=n.Message.getField(this,5)},proto.lnrpc.OpenStatusUpdate.prototype.getPendingChanId=function(){return n.Message.getFieldWithDefault(this,4,"")},proto.lnrpc.OpenStatusUpdate.prototype.getPendingChanId_asB64=function(){return n.Message.bytesAsB64(this.getPendingChanId())},proto.lnrpc.OpenStatusUpdate.prototype.getPendingChanId_asU8=function(){return n.Message.bytesAsU8(this.getPendingChanId())},proto.lnrpc.OpenStatusUpdate.prototype.setPendingChanId=function(e){return n.Message.setProto3BytesField(this,4,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.KeyLocator.prototype.toObject=function(e){return proto.lnrpc.KeyLocator.toObject(e,this)},proto.lnrpc.KeyLocator.toObject=function(e,t){var r={keyFamily:n.Message.getFieldWithDefault(t,1,0),keyIndex:n.Message.getFieldWithDefault(t,2,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.KeyLocator.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.KeyLocator;return proto.lnrpc.KeyLocator.deserializeBinaryFromReader(r,t)},proto.lnrpc.KeyLocator.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setKeyFamily(r);break;case 2:r=t.readInt32();e.setKeyIndex(r);break;default:t.skipField()}}return e},proto.lnrpc.KeyLocator.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.KeyLocator.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.KeyLocator.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getKeyFamily())&&t.writeInt32(1,r),0!==(r=e.getKeyIndex())&&t.writeInt32(2,r)},proto.lnrpc.KeyLocator.prototype.getKeyFamily=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.KeyLocator.prototype.setKeyFamily=function(e){return n.Message.setProto3IntField(this,1,e)},proto.lnrpc.KeyLocator.prototype.getKeyIndex=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.KeyLocator.prototype.setKeyIndex=function(e){return n.Message.setProto3IntField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.KeyDescriptor.prototype.toObject=function(e){return proto.lnrpc.KeyDescriptor.toObject(e,this)},proto.lnrpc.KeyDescriptor.toObject=function(e,t){var r,n={rawKeyBytes:t.getRawKeyBytes_asB64(),keyLoc:(r=t.getKeyLoc())&&proto.lnrpc.KeyLocator.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.lnrpc.KeyDescriptor.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.KeyDescriptor;return proto.lnrpc.KeyDescriptor.deserializeBinaryFromReader(r,t)},proto.lnrpc.KeyDescriptor.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setRawKeyBytes(r);break;case 2:r=new proto.lnrpc.KeyLocator;t.readMessage(r,proto.lnrpc.KeyLocator.deserializeBinaryFromReader),e.setKeyLoc(r);break;default:t.skipField()}}return e},proto.lnrpc.KeyDescriptor.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.KeyDescriptor.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.KeyDescriptor.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getRawKeyBytes_asU8()).length>0&&t.writeBytes(1,r),null!=(r=e.getKeyLoc())&&t.writeMessage(2,r,proto.lnrpc.KeyLocator.serializeBinaryToWriter)},proto.lnrpc.KeyDescriptor.prototype.getRawKeyBytes=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.KeyDescriptor.prototype.getRawKeyBytes_asB64=function(){return n.Message.bytesAsB64(this.getRawKeyBytes())},proto.lnrpc.KeyDescriptor.prototype.getRawKeyBytes_asU8=function(){return n.Message.bytesAsU8(this.getRawKeyBytes())},proto.lnrpc.KeyDescriptor.prototype.setRawKeyBytes=function(e){return n.Message.setProto3BytesField(this,1,e)},proto.lnrpc.KeyDescriptor.prototype.getKeyLoc=function(){return n.Message.getWrapperField(this,proto.lnrpc.KeyLocator,2)},proto.lnrpc.KeyDescriptor.prototype.setKeyLoc=function(e){return n.Message.setWrapperField(this,2,e)},proto.lnrpc.KeyDescriptor.prototype.clearKeyLoc=function(){return this.setKeyLoc(void 0)},proto.lnrpc.KeyDescriptor.prototype.hasKeyLoc=function(){return null!=n.Message.getField(this,2)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChanPointShim.prototype.toObject=function(e){return proto.lnrpc.ChanPointShim.toObject(e,this)},proto.lnrpc.ChanPointShim.toObject=function(e,t){var r,o={amt:n.Message.getFieldWithDefault(t,1,0),chanPoint:(r=t.getChanPoint())&&proto.lnrpc.ChannelPoint.toObject(e,r),localKey:(r=t.getLocalKey())&&proto.lnrpc.KeyDescriptor.toObject(e,r),remoteKey:t.getRemoteKey_asB64(),pendingChanId:t.getPendingChanId_asB64(),thawHeight:n.Message.getFieldWithDefault(t,6,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.ChanPointShim.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChanPointShim;return proto.lnrpc.ChanPointShim.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChanPointShim.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt64();e.setAmt(r);break;case 2:r=new proto.lnrpc.ChannelPoint;t.readMessage(r,proto.lnrpc.ChannelPoint.deserializeBinaryFromReader),e.setChanPoint(r);break;case 3:r=new proto.lnrpc.KeyDescriptor;t.readMessage(r,proto.lnrpc.KeyDescriptor.deserializeBinaryFromReader),e.setLocalKey(r);break;case 4:r=t.readBytes();e.setRemoteKey(r);break;case 5:r=t.readBytes();e.setPendingChanId(r);break;case 6:r=t.readUint32();e.setThawHeight(r);break;default:t.skipField()}}return e},proto.lnrpc.ChanPointShim.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChanPointShim.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChanPointShim.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getAmt())&&t.writeInt64(1,r),null!=(r=e.getChanPoint())&&t.writeMessage(2,r,proto.lnrpc.ChannelPoint.serializeBinaryToWriter),null!=(r=e.getLocalKey())&&t.writeMessage(3,r,proto.lnrpc.KeyDescriptor.serializeBinaryToWriter),(r=e.getRemoteKey_asU8()).length>0&&t.writeBytes(4,r),(r=e.getPendingChanId_asU8()).length>0&&t.writeBytes(5,r),0!==(r=e.getThawHeight())&&t.writeUint32(6,r)},proto.lnrpc.ChanPointShim.prototype.getAmt=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.ChanPointShim.prototype.setAmt=function(e){return n.Message.setProto3IntField(this,1,e)},proto.lnrpc.ChanPointShim.prototype.getChanPoint=function(){return n.Message.getWrapperField(this,proto.lnrpc.ChannelPoint,2)},proto.lnrpc.ChanPointShim.prototype.setChanPoint=function(e){return n.Message.setWrapperField(this,2,e)},proto.lnrpc.ChanPointShim.prototype.clearChanPoint=function(){return this.setChanPoint(void 0)},proto.lnrpc.ChanPointShim.prototype.hasChanPoint=function(){return null!=n.Message.getField(this,2)},proto.lnrpc.ChanPointShim.prototype.getLocalKey=function(){return n.Message.getWrapperField(this,proto.lnrpc.KeyDescriptor,3)},proto.lnrpc.ChanPointShim.prototype.setLocalKey=function(e){return n.Message.setWrapperField(this,3,e)},proto.lnrpc.ChanPointShim.prototype.clearLocalKey=function(){return this.setLocalKey(void 0)},proto.lnrpc.ChanPointShim.prototype.hasLocalKey=function(){return null!=n.Message.getField(this,3)},proto.lnrpc.ChanPointShim.prototype.getRemoteKey=function(){return n.Message.getFieldWithDefault(this,4,"")},proto.lnrpc.ChanPointShim.prototype.getRemoteKey_asB64=function(){return n.Message.bytesAsB64(this.getRemoteKey())},proto.lnrpc.ChanPointShim.prototype.getRemoteKey_asU8=function(){return n.Message.bytesAsU8(this.getRemoteKey())},proto.lnrpc.ChanPointShim.prototype.setRemoteKey=function(e){return n.Message.setProto3BytesField(this,4,e)},proto.lnrpc.ChanPointShim.prototype.getPendingChanId=function(){return n.Message.getFieldWithDefault(this,5,"")},proto.lnrpc.ChanPointShim.prototype.getPendingChanId_asB64=function(){return n.Message.bytesAsB64(this.getPendingChanId())},proto.lnrpc.ChanPointShim.prototype.getPendingChanId_asU8=function(){return n.Message.bytesAsU8(this.getPendingChanId())},proto.lnrpc.ChanPointShim.prototype.setPendingChanId=function(e){return n.Message.setProto3BytesField(this,5,e)},proto.lnrpc.ChanPointShim.prototype.getThawHeight=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.ChanPointShim.prototype.setThawHeight=function(e){return n.Message.setProto3IntField(this,6,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.PsbtShim.prototype.toObject=function(e){return proto.lnrpc.PsbtShim.toObject(e,this)},proto.lnrpc.PsbtShim.toObject=function(e,t){var r={pendingChanId:t.getPendingChanId_asB64(),basePsbt:t.getBasePsbt_asB64(),noPublish:n.Message.getBooleanFieldWithDefault(t,3,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.PsbtShim.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.PsbtShim;return proto.lnrpc.PsbtShim.deserializeBinaryFromReader(r,t)},proto.lnrpc.PsbtShim.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setPendingChanId(r);break;case 2:r=t.readBytes();e.setBasePsbt(r);break;case 3:r=t.readBool();e.setNoPublish(r);break;default:t.skipField()}}return e},proto.lnrpc.PsbtShim.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.PsbtShim.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.PsbtShim.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPendingChanId_asU8()).length>0&&t.writeBytes(1,r),(r=e.getBasePsbt_asU8()).length>0&&t.writeBytes(2,r),(r=e.getNoPublish())&&t.writeBool(3,r)},proto.lnrpc.PsbtShim.prototype.getPendingChanId=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.PsbtShim.prototype.getPendingChanId_asB64=function(){return n.Message.bytesAsB64(this.getPendingChanId())},proto.lnrpc.PsbtShim.prototype.getPendingChanId_asU8=function(){return n.Message.bytesAsU8(this.getPendingChanId())},proto.lnrpc.PsbtShim.prototype.setPendingChanId=function(e){return n.Message.setProto3BytesField(this,1,e)},proto.lnrpc.PsbtShim.prototype.getBasePsbt=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.PsbtShim.prototype.getBasePsbt_asB64=function(){return n.Message.bytesAsB64(this.getBasePsbt())},proto.lnrpc.PsbtShim.prototype.getBasePsbt_asU8=function(){return n.Message.bytesAsU8(this.getBasePsbt())},proto.lnrpc.PsbtShim.prototype.setBasePsbt=function(e){return n.Message.setProto3BytesField(this,2,e)},proto.lnrpc.PsbtShim.prototype.getNoPublish=function(){return n.Message.getBooleanFieldWithDefault(this,3,!1)},proto.lnrpc.PsbtShim.prototype.setNoPublish=function(e){return n.Message.setProto3BooleanField(this,3,e)},proto.lnrpc.FundingShim.oneofGroups_=[[1,2]],proto.lnrpc.FundingShim.ShimCase={SHIM_NOT_SET:0,CHAN_POINT_SHIM:1,PSBT_SHIM:2},proto.lnrpc.FundingShim.prototype.getShimCase=function(){return n.Message.computeOneofCase(this,proto.lnrpc.FundingShim.oneofGroups_[0])},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.FundingShim.prototype.toObject=function(e){return proto.lnrpc.FundingShim.toObject(e,this)},proto.lnrpc.FundingShim.toObject=function(e,t){var r,n={chanPointShim:(r=t.getChanPointShim())&&proto.lnrpc.ChanPointShim.toObject(e,r),psbtShim:(r=t.getPsbtShim())&&proto.lnrpc.PsbtShim.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.lnrpc.FundingShim.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.FundingShim;return proto.lnrpc.FundingShim.deserializeBinaryFromReader(r,t)},proto.lnrpc.FundingShim.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.ChanPointShim;t.readMessage(r,proto.lnrpc.ChanPointShim.deserializeBinaryFromReader),e.setChanPointShim(r);break;case 2:r=new proto.lnrpc.PsbtShim;t.readMessage(r,proto.lnrpc.PsbtShim.deserializeBinaryFromReader),e.setPsbtShim(r);break;default:t.skipField()}}return e},proto.lnrpc.FundingShim.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.FundingShim.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.FundingShim.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getChanPointShim())&&t.writeMessage(1,r,proto.lnrpc.ChanPointShim.serializeBinaryToWriter),null!=(r=e.getPsbtShim())&&t.writeMessage(2,r,proto.lnrpc.PsbtShim.serializeBinaryToWriter)},proto.lnrpc.FundingShim.prototype.getChanPointShim=function(){return n.Message.getWrapperField(this,proto.lnrpc.ChanPointShim,1)},proto.lnrpc.FundingShim.prototype.setChanPointShim=function(e){return n.Message.setOneofWrapperField(this,1,proto.lnrpc.FundingShim.oneofGroups_[0],e)},proto.lnrpc.FundingShim.prototype.clearChanPointShim=function(){return this.setChanPointShim(void 0)},proto.lnrpc.FundingShim.prototype.hasChanPointShim=function(){return null!=n.Message.getField(this,1)},proto.lnrpc.FundingShim.prototype.getPsbtShim=function(){return n.Message.getWrapperField(this,proto.lnrpc.PsbtShim,2)},proto.lnrpc.FundingShim.prototype.setPsbtShim=function(e){return n.Message.setOneofWrapperField(this,2,proto.lnrpc.FundingShim.oneofGroups_[0],e)},proto.lnrpc.FundingShim.prototype.clearPsbtShim=function(){return this.setPsbtShim(void 0)},proto.lnrpc.FundingShim.prototype.hasPsbtShim=function(){return null!=n.Message.getField(this,2)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.FundingShimCancel.prototype.toObject=function(e){return proto.lnrpc.FundingShimCancel.toObject(e,this)},proto.lnrpc.FundingShimCancel.toObject=function(e,t){var r={pendingChanId:t.getPendingChanId_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.FundingShimCancel.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.FundingShimCancel;return proto.lnrpc.FundingShimCancel.deserializeBinaryFromReader(r,t)},proto.lnrpc.FundingShimCancel.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readBytes();e.setPendingChanId(r)}else t.skipField()}return e},proto.lnrpc.FundingShimCancel.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.FundingShimCancel.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.FundingShimCancel.serializeBinaryToWriter=function(e,t){var r;(r=e.getPendingChanId_asU8()).length>0&&t.writeBytes(1,r)},proto.lnrpc.FundingShimCancel.prototype.getPendingChanId=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.FundingShimCancel.prototype.getPendingChanId_asB64=function(){return n.Message.bytesAsB64(this.getPendingChanId())},proto.lnrpc.FundingShimCancel.prototype.getPendingChanId_asU8=function(){return n.Message.bytesAsU8(this.getPendingChanId())},proto.lnrpc.FundingShimCancel.prototype.setPendingChanId=function(e){return n.Message.setProto3BytesField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.FundingPsbtVerify.prototype.toObject=function(e){return proto.lnrpc.FundingPsbtVerify.toObject(e,this)},proto.lnrpc.FundingPsbtVerify.toObject=function(e,t){var r={fundedPsbt:t.getFundedPsbt_asB64(),pendingChanId:t.getPendingChanId_asB64(),skipFinalize:n.Message.getBooleanFieldWithDefault(t,3,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.FundingPsbtVerify.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.FundingPsbtVerify;return proto.lnrpc.FundingPsbtVerify.deserializeBinaryFromReader(r,t)},proto.lnrpc.FundingPsbtVerify.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setFundedPsbt(r);break;case 2:r=t.readBytes();e.setPendingChanId(r);break;case 3:r=t.readBool();e.setSkipFinalize(r);break;default:t.skipField()}}return e},proto.lnrpc.FundingPsbtVerify.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.FundingPsbtVerify.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.FundingPsbtVerify.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getFundedPsbt_asU8()).length>0&&t.writeBytes(1,r),(r=e.getPendingChanId_asU8()).length>0&&t.writeBytes(2,r),(r=e.getSkipFinalize())&&t.writeBool(3,r)},proto.lnrpc.FundingPsbtVerify.prototype.getFundedPsbt=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.FundingPsbtVerify.prototype.getFundedPsbt_asB64=function(){return n.Message.bytesAsB64(this.getFundedPsbt())},proto.lnrpc.FundingPsbtVerify.prototype.getFundedPsbt_asU8=function(){return n.Message.bytesAsU8(this.getFundedPsbt())},proto.lnrpc.FundingPsbtVerify.prototype.setFundedPsbt=function(e){return n.Message.setProto3BytesField(this,1,e)},proto.lnrpc.FundingPsbtVerify.prototype.getPendingChanId=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.FundingPsbtVerify.prototype.getPendingChanId_asB64=function(){return n.Message.bytesAsB64(this.getPendingChanId())},proto.lnrpc.FundingPsbtVerify.prototype.getPendingChanId_asU8=function(){return n.Message.bytesAsU8(this.getPendingChanId())},proto.lnrpc.FundingPsbtVerify.prototype.setPendingChanId=function(e){return n.Message.setProto3BytesField(this,2,e)},proto.lnrpc.FundingPsbtVerify.prototype.getSkipFinalize=function(){return n.Message.getBooleanFieldWithDefault(this,3,!1)},proto.lnrpc.FundingPsbtVerify.prototype.setSkipFinalize=function(e){return n.Message.setProto3BooleanField(this,3,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.FundingPsbtFinalize.prototype.toObject=function(e){return proto.lnrpc.FundingPsbtFinalize.toObject(e,this)},proto.lnrpc.FundingPsbtFinalize.toObject=function(e,t){var r={signedPsbt:t.getSignedPsbt_asB64(),pendingChanId:t.getPendingChanId_asB64(),finalRawTx:t.getFinalRawTx_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.FundingPsbtFinalize.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.FundingPsbtFinalize;return proto.lnrpc.FundingPsbtFinalize.deserializeBinaryFromReader(r,t)},proto.lnrpc.FundingPsbtFinalize.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setSignedPsbt(r);break;case 2:r=t.readBytes();e.setPendingChanId(r);break;case 3:r=t.readBytes();e.setFinalRawTx(r);break;default:t.skipField()}}return e},proto.lnrpc.FundingPsbtFinalize.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.FundingPsbtFinalize.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.FundingPsbtFinalize.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSignedPsbt_asU8()).length>0&&t.writeBytes(1,r),(r=e.getPendingChanId_asU8()).length>0&&t.writeBytes(2,r),(r=e.getFinalRawTx_asU8()).length>0&&t.writeBytes(3,r)},proto.lnrpc.FundingPsbtFinalize.prototype.getSignedPsbt=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.FundingPsbtFinalize.prototype.getSignedPsbt_asB64=function(){return n.Message.bytesAsB64(this.getSignedPsbt())},proto.lnrpc.FundingPsbtFinalize.prototype.getSignedPsbt_asU8=function(){return n.Message.bytesAsU8(this.getSignedPsbt())},proto.lnrpc.FundingPsbtFinalize.prototype.setSignedPsbt=function(e){return n.Message.setProto3BytesField(this,1,e)},proto.lnrpc.FundingPsbtFinalize.prototype.getPendingChanId=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.FundingPsbtFinalize.prototype.getPendingChanId_asB64=function(){return n.Message.bytesAsB64(this.getPendingChanId())},proto.lnrpc.FundingPsbtFinalize.prototype.getPendingChanId_asU8=function(){return n.Message.bytesAsU8(this.getPendingChanId())},proto.lnrpc.FundingPsbtFinalize.prototype.setPendingChanId=function(e){return n.Message.setProto3BytesField(this,2,e)},proto.lnrpc.FundingPsbtFinalize.prototype.getFinalRawTx=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.lnrpc.FundingPsbtFinalize.prototype.getFinalRawTx_asB64=function(){return n.Message.bytesAsB64(this.getFinalRawTx())},proto.lnrpc.FundingPsbtFinalize.prototype.getFinalRawTx_asU8=function(){return n.Message.bytesAsU8(this.getFinalRawTx())},proto.lnrpc.FundingPsbtFinalize.prototype.setFinalRawTx=function(e){return n.Message.setProto3BytesField(this,3,e)},proto.lnrpc.FundingTransitionMsg.oneofGroups_=[[1,2,3,4]],proto.lnrpc.FundingTransitionMsg.TriggerCase={TRIGGER_NOT_SET:0,SHIM_REGISTER:1,SHIM_CANCEL:2,PSBT_VERIFY:3,PSBT_FINALIZE:4},proto.lnrpc.FundingTransitionMsg.prototype.getTriggerCase=function(){return n.Message.computeOneofCase(this,proto.lnrpc.FundingTransitionMsg.oneofGroups_[0])},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.FundingTransitionMsg.prototype.toObject=function(e){return proto.lnrpc.FundingTransitionMsg.toObject(e,this)},proto.lnrpc.FundingTransitionMsg.toObject=function(e,t){var r,n={shimRegister:(r=t.getShimRegister())&&proto.lnrpc.FundingShim.toObject(e,r),shimCancel:(r=t.getShimCancel())&&proto.lnrpc.FundingShimCancel.toObject(e,r),psbtVerify:(r=t.getPsbtVerify())&&proto.lnrpc.FundingPsbtVerify.toObject(e,r),psbtFinalize:(r=t.getPsbtFinalize())&&proto.lnrpc.FundingPsbtFinalize.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.lnrpc.FundingTransitionMsg.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.FundingTransitionMsg;return proto.lnrpc.FundingTransitionMsg.deserializeBinaryFromReader(r,t)},proto.lnrpc.FundingTransitionMsg.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.FundingShim;t.readMessage(r,proto.lnrpc.FundingShim.deserializeBinaryFromReader),e.setShimRegister(r);break;case 2:r=new proto.lnrpc.FundingShimCancel;t.readMessage(r,proto.lnrpc.FundingShimCancel.deserializeBinaryFromReader),e.setShimCancel(r);break;case 3:r=new proto.lnrpc.FundingPsbtVerify;t.readMessage(r,proto.lnrpc.FundingPsbtVerify.deserializeBinaryFromReader),e.setPsbtVerify(r);break;case 4:r=new proto.lnrpc.FundingPsbtFinalize;t.readMessage(r,proto.lnrpc.FundingPsbtFinalize.deserializeBinaryFromReader),e.setPsbtFinalize(r);break;default:t.skipField()}}return e},proto.lnrpc.FundingTransitionMsg.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.FundingTransitionMsg.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.FundingTransitionMsg.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getShimRegister())&&t.writeMessage(1,r,proto.lnrpc.FundingShim.serializeBinaryToWriter),null!=(r=e.getShimCancel())&&t.writeMessage(2,r,proto.lnrpc.FundingShimCancel.serializeBinaryToWriter),null!=(r=e.getPsbtVerify())&&t.writeMessage(3,r,proto.lnrpc.FundingPsbtVerify.serializeBinaryToWriter),null!=(r=e.getPsbtFinalize())&&t.writeMessage(4,r,proto.lnrpc.FundingPsbtFinalize.serializeBinaryToWriter)},proto.lnrpc.FundingTransitionMsg.prototype.getShimRegister=function(){return n.Message.getWrapperField(this,proto.lnrpc.FundingShim,1)},proto.lnrpc.FundingTransitionMsg.prototype.setShimRegister=function(e){return n.Message.setOneofWrapperField(this,1,proto.lnrpc.FundingTransitionMsg.oneofGroups_[0],e)},proto.lnrpc.FundingTransitionMsg.prototype.clearShimRegister=function(){return this.setShimRegister(void 0)},proto.lnrpc.FundingTransitionMsg.prototype.hasShimRegister=function(){return null!=n.Message.getField(this,1)},proto.lnrpc.FundingTransitionMsg.prototype.getShimCancel=function(){return n.Message.getWrapperField(this,proto.lnrpc.FundingShimCancel,2)},proto.lnrpc.FundingTransitionMsg.prototype.setShimCancel=function(e){return n.Message.setOneofWrapperField(this,2,proto.lnrpc.FundingTransitionMsg.oneofGroups_[0],e)},proto.lnrpc.FundingTransitionMsg.prototype.clearShimCancel=function(){return this.setShimCancel(void 0)},proto.lnrpc.FundingTransitionMsg.prototype.hasShimCancel=function(){return null!=n.Message.getField(this,2)},proto.lnrpc.FundingTransitionMsg.prototype.getPsbtVerify=function(){return n.Message.getWrapperField(this,proto.lnrpc.FundingPsbtVerify,3)},proto.lnrpc.FundingTransitionMsg.prototype.setPsbtVerify=function(e){return n.Message.setOneofWrapperField(this,3,proto.lnrpc.FundingTransitionMsg.oneofGroups_[0],e)},proto.lnrpc.FundingTransitionMsg.prototype.clearPsbtVerify=function(){return this.setPsbtVerify(void 0)},proto.lnrpc.FundingTransitionMsg.prototype.hasPsbtVerify=function(){return null!=n.Message.getField(this,3)},proto.lnrpc.FundingTransitionMsg.prototype.getPsbtFinalize=function(){return n.Message.getWrapperField(this,proto.lnrpc.FundingPsbtFinalize,4)},proto.lnrpc.FundingTransitionMsg.prototype.setPsbtFinalize=function(e){return n.Message.setOneofWrapperField(this,4,proto.lnrpc.FundingTransitionMsg.oneofGroups_[0],e)},proto.lnrpc.FundingTransitionMsg.prototype.clearPsbtFinalize=function(){return this.setPsbtFinalize(void 0)},proto.lnrpc.FundingTransitionMsg.prototype.hasPsbtFinalize=function(){return null!=n.Message.getField(this,4)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.FundingStateStepResp.prototype.toObject=function(e){return proto.lnrpc.FundingStateStepResp.toObject(e,this)},proto.lnrpc.FundingStateStepResp.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.FundingStateStepResp.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.FundingStateStepResp;return proto.lnrpc.FundingStateStepResp.deserializeBinaryFromReader(r,t)},proto.lnrpc.FundingStateStepResp.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.FundingStateStepResp.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.FundingStateStepResp.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.FundingStateStepResp.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.PendingHTLC.prototype.toObject=function(e){return proto.lnrpc.PendingHTLC.toObject(e,this)},proto.lnrpc.PendingHTLC.toObject=function(e,t){var r={incoming:n.Message.getBooleanFieldWithDefault(t,1,!1),amount:n.Message.getFieldWithDefault(t,2,0),outpoint:n.Message.getFieldWithDefault(t,3,""),maturityHeight:n.Message.getFieldWithDefault(t,4,0),blocksTilMaturity:n.Message.getFieldWithDefault(t,5,0),stage:n.Message.getFieldWithDefault(t,6,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.PendingHTLC.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.PendingHTLC;return proto.lnrpc.PendingHTLC.deserializeBinaryFromReader(r,t)},proto.lnrpc.PendingHTLC.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBool();e.setIncoming(r);break;case 2:r=t.readInt64();e.setAmount(r);break;case 3:r=t.readString();e.setOutpoint(r);break;case 4:r=t.readUint32();e.setMaturityHeight(r);break;case 5:r=t.readInt32();e.setBlocksTilMaturity(r);break;case 6:r=t.readUint32();e.setStage(r);break;default:t.skipField()}}return e},proto.lnrpc.PendingHTLC.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.PendingHTLC.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.PendingHTLC.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getIncoming())&&t.writeBool(1,r),0!==(r=e.getAmount())&&t.writeInt64(2,r),(r=e.getOutpoint()).length>0&&t.writeString(3,r),0!==(r=e.getMaturityHeight())&&t.writeUint32(4,r),0!==(r=e.getBlocksTilMaturity())&&t.writeInt32(5,r),0!==(r=e.getStage())&&t.writeUint32(6,r)},proto.lnrpc.PendingHTLC.prototype.getIncoming=function(){return n.Message.getBooleanFieldWithDefault(this,1,!1)},proto.lnrpc.PendingHTLC.prototype.setIncoming=function(e){return n.Message.setProto3BooleanField(this,1,e)},proto.lnrpc.PendingHTLC.prototype.getAmount=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.PendingHTLC.prototype.setAmount=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.PendingHTLC.prototype.getOutpoint=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.lnrpc.PendingHTLC.prototype.setOutpoint=function(e){return n.Message.setProto3StringField(this,3,e)},proto.lnrpc.PendingHTLC.prototype.getMaturityHeight=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.PendingHTLC.prototype.setMaturityHeight=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.PendingHTLC.prototype.getBlocksTilMaturity=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.PendingHTLC.prototype.setBlocksTilMaturity=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.PendingHTLC.prototype.getStage=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.PendingHTLC.prototype.setStage=function(e){return n.Message.setProto3IntField(this,6,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.PendingChannelsRequest.prototype.toObject=function(e){return proto.lnrpc.PendingChannelsRequest.toObject(e,this)},proto.lnrpc.PendingChannelsRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.PendingChannelsRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.PendingChannelsRequest;return proto.lnrpc.PendingChannelsRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.PendingChannelsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.PendingChannelsRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.PendingChannelsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.PendingChannelsRequest.serializeBinaryToWriter=function(e,t){},proto.lnrpc.PendingChannelsResponse.repeatedFields_=[2,3,4,5],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.PendingChannelsResponse.prototype.toObject=function(e){return proto.lnrpc.PendingChannelsResponse.toObject(e,this)},proto.lnrpc.PendingChannelsResponse.toObject=function(e,t){var r={totalLimboBalance:n.Message.getFieldWithDefault(t,1,0),pendingOpenChannelsList:n.Message.toObjectList(t.getPendingOpenChannelsList(),proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.toObject,e),pendingClosingChannelsList:n.Message.toObjectList(t.getPendingClosingChannelsList(),proto.lnrpc.PendingChannelsResponse.ClosedChannel.toObject,e),pendingForceClosingChannelsList:n.Message.toObjectList(t.getPendingForceClosingChannelsList(),proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.toObject,e),waitingCloseChannelsList:n.Message.toObjectList(t.getWaitingCloseChannelsList(),proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.PendingChannelsResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.PendingChannelsResponse;return proto.lnrpc.PendingChannelsResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.PendingChannelsResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt64();e.setTotalLimboBalance(r);break;case 2:r=new proto.lnrpc.PendingChannelsResponse.PendingOpenChannel;t.readMessage(r,proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.deserializeBinaryFromReader),e.addPendingOpenChannels(r);break;case 3:r=new proto.lnrpc.PendingChannelsResponse.ClosedChannel;t.readMessage(r,proto.lnrpc.PendingChannelsResponse.ClosedChannel.deserializeBinaryFromReader),e.addPendingClosingChannels(r);break;case 4:r=new proto.lnrpc.PendingChannelsResponse.ForceClosedChannel;t.readMessage(r,proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.deserializeBinaryFromReader),e.addPendingForceClosingChannels(r);break;case 5:r=new proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel;t.readMessage(r,proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.deserializeBinaryFromReader),e.addWaitingCloseChannels(r);break;default:t.skipField()}}return e},proto.lnrpc.PendingChannelsResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.PendingChannelsResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.PendingChannelsResponse.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getTotalLimboBalance())&&t.writeInt64(1,r),(r=e.getPendingOpenChannelsList()).length>0&&t.writeRepeatedMessage(2,r,proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.serializeBinaryToWriter),(r=e.getPendingClosingChannelsList()).length>0&&t.writeRepeatedMessage(3,r,proto.lnrpc.PendingChannelsResponse.ClosedChannel.serializeBinaryToWriter),(r=e.getPendingForceClosingChannelsList()).length>0&&t.writeRepeatedMessage(4,r,proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.serializeBinaryToWriter),(r=e.getWaitingCloseChannelsList()).length>0&&t.writeRepeatedMessage(5,r,proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.serializeBinaryToWriter)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.toObject=function(e){return proto.lnrpc.PendingChannelsResponse.PendingChannel.toObject(e,this)},proto.lnrpc.PendingChannelsResponse.PendingChannel.toObject=function(e,t){var r={remoteNodePub:n.Message.getFieldWithDefault(t,1,""),channelPoint:n.Message.getFieldWithDefault(t,2,""),capacity:n.Message.getFieldWithDefault(t,3,0),localBalance:n.Message.getFieldWithDefault(t,4,0),remoteBalance:n.Message.getFieldWithDefault(t,5,0),localChanReserveSat:n.Message.getFieldWithDefault(t,6,0),remoteChanReserveSat:n.Message.getFieldWithDefault(t,7,0),initiator:n.Message.getFieldWithDefault(t,8,0),commitmentType:n.Message.getFieldWithDefault(t,9,0),numForwardingPackages:n.Message.getFieldWithDefault(t,10,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.PendingChannelsResponse.PendingChannel.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.PendingChannelsResponse.PendingChannel;return proto.lnrpc.PendingChannelsResponse.PendingChannel.deserializeBinaryFromReader(r,t)},proto.lnrpc.PendingChannelsResponse.PendingChannel.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setRemoteNodePub(r);break;case 2:r=t.readString();e.setChannelPoint(r);break;case 3:r=t.readInt64();e.setCapacity(r);break;case 4:r=t.readInt64();e.setLocalBalance(r);break;case 5:r=t.readInt64();e.setRemoteBalance(r);break;case 6:r=t.readInt64();e.setLocalChanReserveSat(r);break;case 7:r=t.readInt64();e.setRemoteChanReserveSat(r);break;case 8:r=t.readEnum();e.setInitiator(r);break;case 9:r=t.readEnum();e.setCommitmentType(r);break;case 10:r=t.readInt64();e.setNumForwardingPackages(r);break;default:t.skipField()}}return e},proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.PendingChannelsResponse.PendingChannel.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.PendingChannelsResponse.PendingChannel.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getRemoteNodePub()).length>0&&t.writeString(1,r),(r=e.getChannelPoint()).length>0&&t.writeString(2,r),0!==(r=e.getCapacity())&&t.writeInt64(3,r),0!==(r=e.getLocalBalance())&&t.writeInt64(4,r),0!==(r=e.getRemoteBalance())&&t.writeInt64(5,r),0!==(r=e.getLocalChanReserveSat())&&t.writeInt64(6,r),0!==(r=e.getRemoteChanReserveSat())&&t.writeInt64(7,r),0!==(r=e.getInitiator())&&t.writeEnum(8,r),0!==(r=e.getCommitmentType())&&t.writeEnum(9,r),0!==(r=e.getNumForwardingPackages())&&t.writeInt64(10,r)},proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getRemoteNodePub=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setRemoteNodePub=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getChannelPoint=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setChannelPoint=function(e){return n.Message.setProto3StringField(this,2,e)},proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getCapacity=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setCapacity=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getLocalBalance=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setLocalBalance=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getRemoteBalance=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setRemoteBalance=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getLocalChanReserveSat=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setLocalChanReserveSat=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getRemoteChanReserveSat=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setRemoteChanReserveSat=function(e){return n.Message.setProto3IntField(this,7,e)},proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getInitiator=function(){return n.Message.getFieldWithDefault(this,8,0)},proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setInitiator=function(e){return n.Message.setProto3EnumField(this,8,e)},proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getCommitmentType=function(){return n.Message.getFieldWithDefault(this,9,0)},proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setCommitmentType=function(e){return n.Message.setProto3EnumField(this,9,e)},proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getNumForwardingPackages=function(){return n.Message.getFieldWithDefault(this,10,0)},proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setNumForwardingPackages=function(e){return n.Message.setProto3IntField(this,10,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.toObject=function(e){return proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.toObject(e,this)},proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.toObject=function(e,t){var r,o={channel:(r=t.getChannel())&&proto.lnrpc.PendingChannelsResponse.PendingChannel.toObject(e,r),confirmationHeight:n.Message.getFieldWithDefault(t,2,0),commitFee:n.Message.getFieldWithDefault(t,4,0),commitWeight:n.Message.getFieldWithDefault(t,5,0),feePerKw:n.Message.getFieldWithDefault(t,6,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.PendingChannelsResponse.PendingOpenChannel;return proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.deserializeBinaryFromReader(r,t)},proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.PendingChannelsResponse.PendingChannel;t.readMessage(r,proto.lnrpc.PendingChannelsResponse.PendingChannel.deserializeBinaryFromReader),e.setChannel(r);break;case 2:r=t.readUint32();e.setConfirmationHeight(r);break;case 4:r=t.readInt64();e.setCommitFee(r);break;case 5:r=t.readInt64();e.setCommitWeight(r);break;case 6:r=t.readInt64();e.setFeePerKw(r);break;default:t.skipField()}}return e},proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getChannel())&&t.writeMessage(1,r,proto.lnrpc.PendingChannelsResponse.PendingChannel.serializeBinaryToWriter),0!==(r=e.getConfirmationHeight())&&t.writeUint32(2,r),0!==(r=e.getCommitFee())&&t.writeInt64(4,r),0!==(r=e.getCommitWeight())&&t.writeInt64(5,r),0!==(r=e.getFeePerKw())&&t.writeInt64(6,r)},proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.getChannel=function(){return n.Message.getWrapperField(this,proto.lnrpc.PendingChannelsResponse.PendingChannel,1)},proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.setChannel=function(e){return n.Message.setWrapperField(this,1,e)},proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.clearChannel=function(){return this.setChannel(void 0)},proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.hasChannel=function(){return null!=n.Message.getField(this,1)},proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.getConfirmationHeight=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.setConfirmationHeight=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.getCommitFee=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.setCommitFee=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.getCommitWeight=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.setCommitWeight=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.getFeePerKw=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.setFeePerKw=function(e){return n.Message.setProto3IntField(this,6,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.toObject=function(e){return proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.toObject(e,this)},proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.toObject=function(e,t){var r,o={channel:(r=t.getChannel())&&proto.lnrpc.PendingChannelsResponse.PendingChannel.toObject(e,r),limboBalance:n.Message.getFieldWithDefault(t,2,0),commitments:(r=t.getCommitments())&&proto.lnrpc.PendingChannelsResponse.Commitments.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel;return proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.deserializeBinaryFromReader(r,t)},proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.PendingChannelsResponse.PendingChannel;t.readMessage(r,proto.lnrpc.PendingChannelsResponse.PendingChannel.deserializeBinaryFromReader),e.setChannel(r);break;case 2:r=t.readInt64();e.setLimboBalance(r);break;case 3:r=new proto.lnrpc.PendingChannelsResponse.Commitments;t.readMessage(r,proto.lnrpc.PendingChannelsResponse.Commitments.deserializeBinaryFromReader),e.setCommitments(r);break;default:t.skipField()}}return e},proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getChannel())&&t.writeMessage(1,r,proto.lnrpc.PendingChannelsResponse.PendingChannel.serializeBinaryToWriter),0!==(r=e.getLimboBalance())&&t.writeInt64(2,r),null!=(r=e.getCommitments())&&t.writeMessage(3,r,proto.lnrpc.PendingChannelsResponse.Commitments.serializeBinaryToWriter)},proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.getChannel=function(){return n.Message.getWrapperField(this,proto.lnrpc.PendingChannelsResponse.PendingChannel,1)},proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.setChannel=function(e){return n.Message.setWrapperField(this,1,e)},proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.clearChannel=function(){return this.setChannel(void 0)},proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.hasChannel=function(){return null!=n.Message.getField(this,1)},proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.getLimboBalance=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.setLimboBalance=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.getCommitments=function(){return n.Message.getWrapperField(this,proto.lnrpc.PendingChannelsResponse.Commitments,3)},proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.setCommitments=function(e){return n.Message.setWrapperField(this,3,e)},proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.clearCommitments=function(){return this.setCommitments(void 0)},proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.hasCommitments=function(){return null!=n.Message.getField(this,3)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.PendingChannelsResponse.Commitments.prototype.toObject=function(e){return proto.lnrpc.PendingChannelsResponse.Commitments.toObject(e,this)},proto.lnrpc.PendingChannelsResponse.Commitments.toObject=function(e,t){var r={localTxid:n.Message.getFieldWithDefault(t,1,""),remoteTxid:n.Message.getFieldWithDefault(t,2,""),remotePendingTxid:n.Message.getFieldWithDefault(t,3,""),localCommitFeeSat:n.Message.getFieldWithDefault(t,4,0),remoteCommitFeeSat:n.Message.getFieldWithDefault(t,5,0),remotePendingCommitFeeSat:n.Message.getFieldWithDefault(t,6,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.PendingChannelsResponse.Commitments.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.PendingChannelsResponse.Commitments;return proto.lnrpc.PendingChannelsResponse.Commitments.deserializeBinaryFromReader(r,t)},proto.lnrpc.PendingChannelsResponse.Commitments.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setLocalTxid(r);break;case 2:r=t.readString();e.setRemoteTxid(r);break;case 3:r=t.readString();e.setRemotePendingTxid(r);break;case 4:r=t.readUint64();e.setLocalCommitFeeSat(r);break;case 5:r=t.readUint64();e.setRemoteCommitFeeSat(r);break;case 6:r=t.readUint64();e.setRemotePendingCommitFeeSat(r);break;default:t.skipField()}}return e},proto.lnrpc.PendingChannelsResponse.Commitments.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.PendingChannelsResponse.Commitments.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.PendingChannelsResponse.Commitments.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getLocalTxid()).length>0&&t.writeString(1,r),(r=e.getRemoteTxid()).length>0&&t.writeString(2,r),(r=e.getRemotePendingTxid()).length>0&&t.writeString(3,r),0!==(r=e.getLocalCommitFeeSat())&&t.writeUint64(4,r),0!==(r=e.getRemoteCommitFeeSat())&&t.writeUint64(5,r),0!==(r=e.getRemotePendingCommitFeeSat())&&t.writeUint64(6,r)},proto.lnrpc.PendingChannelsResponse.Commitments.prototype.getLocalTxid=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.PendingChannelsResponse.Commitments.prototype.setLocalTxid=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.PendingChannelsResponse.Commitments.prototype.getRemoteTxid=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.PendingChannelsResponse.Commitments.prototype.setRemoteTxid=function(e){return n.Message.setProto3StringField(this,2,e)},proto.lnrpc.PendingChannelsResponse.Commitments.prototype.getRemotePendingTxid=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.lnrpc.PendingChannelsResponse.Commitments.prototype.setRemotePendingTxid=function(e){return n.Message.setProto3StringField(this,3,e)},proto.lnrpc.PendingChannelsResponse.Commitments.prototype.getLocalCommitFeeSat=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.PendingChannelsResponse.Commitments.prototype.setLocalCommitFeeSat=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.PendingChannelsResponse.Commitments.prototype.getRemoteCommitFeeSat=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.PendingChannelsResponse.Commitments.prototype.setRemoteCommitFeeSat=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.PendingChannelsResponse.Commitments.prototype.getRemotePendingCommitFeeSat=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.PendingChannelsResponse.Commitments.prototype.setRemotePendingCommitFeeSat=function(e){return n.Message.setProto3IntField(this,6,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.PendingChannelsResponse.ClosedChannel.prototype.toObject=function(e){return proto.lnrpc.PendingChannelsResponse.ClosedChannel.toObject(e,this)},proto.lnrpc.PendingChannelsResponse.ClosedChannel.toObject=function(e,t){var r,o={channel:(r=t.getChannel())&&proto.lnrpc.PendingChannelsResponse.PendingChannel.toObject(e,r),closingTxid:n.Message.getFieldWithDefault(t,2,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.PendingChannelsResponse.ClosedChannel.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.PendingChannelsResponse.ClosedChannel;return proto.lnrpc.PendingChannelsResponse.ClosedChannel.deserializeBinaryFromReader(r,t)},proto.lnrpc.PendingChannelsResponse.ClosedChannel.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.PendingChannelsResponse.PendingChannel;t.readMessage(r,proto.lnrpc.PendingChannelsResponse.PendingChannel.deserializeBinaryFromReader),e.setChannel(r);break;case 2:r=t.readString();e.setClosingTxid(r);break;default:t.skipField()}}return e},proto.lnrpc.PendingChannelsResponse.ClosedChannel.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.PendingChannelsResponse.ClosedChannel.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.PendingChannelsResponse.ClosedChannel.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getChannel())&&t.writeMessage(1,r,proto.lnrpc.PendingChannelsResponse.PendingChannel.serializeBinaryToWriter),(r=e.getClosingTxid()).length>0&&t.writeString(2,r)},proto.lnrpc.PendingChannelsResponse.ClosedChannel.prototype.getChannel=function(){return n.Message.getWrapperField(this,proto.lnrpc.PendingChannelsResponse.PendingChannel,1)},proto.lnrpc.PendingChannelsResponse.ClosedChannel.prototype.setChannel=function(e){return n.Message.setWrapperField(this,1,e)},proto.lnrpc.PendingChannelsResponse.ClosedChannel.prototype.clearChannel=function(){return this.setChannel(void 0)},proto.lnrpc.PendingChannelsResponse.ClosedChannel.prototype.hasChannel=function(){return null!=n.Message.getField(this,1)},proto.lnrpc.PendingChannelsResponse.ClosedChannel.prototype.getClosingTxid=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.PendingChannelsResponse.ClosedChannel.prototype.setClosingTxid=function(e){return n.Message.setProto3StringField(this,2,e)},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.repeatedFields_=[8],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.toObject=function(e){return proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.toObject(e,this)},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.toObject=function(e,t){var r,o={channel:(r=t.getChannel())&&proto.lnrpc.PendingChannelsResponse.PendingChannel.toObject(e,r),closingTxid:n.Message.getFieldWithDefault(t,2,""),limboBalance:n.Message.getFieldWithDefault(t,3,0),maturityHeight:n.Message.getFieldWithDefault(t,4,0),blocksTilMaturity:n.Message.getFieldWithDefault(t,5,0),recoveredBalance:n.Message.getFieldWithDefault(t,6,0),pendingHtlcsList:n.Message.toObjectList(t.getPendingHtlcsList(),proto.lnrpc.PendingHTLC.toObject,e),anchor:n.Message.getFieldWithDefault(t,9,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.PendingChannelsResponse.ForceClosedChannel;return proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.deserializeBinaryFromReader(r,t)},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.PendingChannelsResponse.PendingChannel;t.readMessage(r,proto.lnrpc.PendingChannelsResponse.PendingChannel.deserializeBinaryFromReader),e.setChannel(r);break;case 2:r=t.readString();e.setClosingTxid(r);break;case 3:r=t.readInt64();e.setLimboBalance(r);break;case 4:r=t.readUint32();e.setMaturityHeight(r);break;case 5:r=t.readInt32();e.setBlocksTilMaturity(r);break;case 6:r=t.readInt64();e.setRecoveredBalance(r);break;case 8:r=new proto.lnrpc.PendingHTLC;t.readMessage(r,proto.lnrpc.PendingHTLC.deserializeBinaryFromReader),e.addPendingHtlcs(r);break;case 9:r=t.readEnum();e.setAnchor(r);break;default:t.skipField()}}return e},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getChannel())&&t.writeMessage(1,r,proto.lnrpc.PendingChannelsResponse.PendingChannel.serializeBinaryToWriter),(r=e.getClosingTxid()).length>0&&t.writeString(2,r),0!==(r=e.getLimboBalance())&&t.writeInt64(3,r),0!==(r=e.getMaturityHeight())&&t.writeUint32(4,r),0!==(r=e.getBlocksTilMaturity())&&t.writeInt32(5,r),0!==(r=e.getRecoveredBalance())&&t.writeInt64(6,r),(r=e.getPendingHtlcsList()).length>0&&t.writeRepeatedMessage(8,r,proto.lnrpc.PendingHTLC.serializeBinaryToWriter),0!==(r=e.getAnchor())&&t.writeEnum(9,r)},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.AnchorState={LIMBO:0,RECOVERED:1,LOST:2},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.getChannel=function(){return n.Message.getWrapperField(this,proto.lnrpc.PendingChannelsResponse.PendingChannel,1)},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.setChannel=function(e){return n.Message.setWrapperField(this,1,e)},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.clearChannel=function(){return this.setChannel(void 0)},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.hasChannel=function(){return null!=n.Message.getField(this,1)},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.getClosingTxid=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.setClosingTxid=function(e){return n.Message.setProto3StringField(this,2,e)},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.getLimboBalance=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.setLimboBalance=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.getMaturityHeight=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.setMaturityHeight=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.getBlocksTilMaturity=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.setBlocksTilMaturity=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.getRecoveredBalance=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.setRecoveredBalance=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.getPendingHtlcsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.PendingHTLC,8)},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.setPendingHtlcsList=function(e){return n.Message.setRepeatedWrapperField(this,8,e)},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.addPendingHtlcs=function(e,t){return n.Message.addToRepeatedWrapperField(this,8,e,proto.lnrpc.PendingHTLC,t)},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.clearPendingHtlcsList=function(){return this.setPendingHtlcsList([])},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.getAnchor=function(){return n.Message.getFieldWithDefault(this,9,0)},proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.setAnchor=function(e){return n.Message.setProto3EnumField(this,9,e)},proto.lnrpc.PendingChannelsResponse.prototype.getTotalLimboBalance=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.PendingChannelsResponse.prototype.setTotalLimboBalance=function(e){return n.Message.setProto3IntField(this,1,e)},proto.lnrpc.PendingChannelsResponse.prototype.getPendingOpenChannelsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.PendingChannelsResponse.PendingOpenChannel,2)},proto.lnrpc.PendingChannelsResponse.prototype.setPendingOpenChannelsList=function(e){return n.Message.setRepeatedWrapperField(this,2,e)},proto.lnrpc.PendingChannelsResponse.prototype.addPendingOpenChannels=function(e,t){return n.Message.addToRepeatedWrapperField(this,2,e,proto.lnrpc.PendingChannelsResponse.PendingOpenChannel,t)},proto.lnrpc.PendingChannelsResponse.prototype.clearPendingOpenChannelsList=function(){return this.setPendingOpenChannelsList([])},proto.lnrpc.PendingChannelsResponse.prototype.getPendingClosingChannelsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.PendingChannelsResponse.ClosedChannel,3)},proto.lnrpc.PendingChannelsResponse.prototype.setPendingClosingChannelsList=function(e){return n.Message.setRepeatedWrapperField(this,3,e)},proto.lnrpc.PendingChannelsResponse.prototype.addPendingClosingChannels=function(e,t){return n.Message.addToRepeatedWrapperField(this,3,e,proto.lnrpc.PendingChannelsResponse.ClosedChannel,t)},proto.lnrpc.PendingChannelsResponse.prototype.clearPendingClosingChannelsList=function(){return this.setPendingClosingChannelsList([])},proto.lnrpc.PendingChannelsResponse.prototype.getPendingForceClosingChannelsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.PendingChannelsResponse.ForceClosedChannel,4)},proto.lnrpc.PendingChannelsResponse.prototype.setPendingForceClosingChannelsList=function(e){return n.Message.setRepeatedWrapperField(this,4,e)},proto.lnrpc.PendingChannelsResponse.prototype.addPendingForceClosingChannels=function(e,t){return n.Message.addToRepeatedWrapperField(this,4,e,proto.lnrpc.PendingChannelsResponse.ForceClosedChannel,t)},proto.lnrpc.PendingChannelsResponse.prototype.clearPendingForceClosingChannelsList=function(){return this.setPendingForceClosingChannelsList([])},proto.lnrpc.PendingChannelsResponse.prototype.getWaitingCloseChannelsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel,5)},proto.lnrpc.PendingChannelsResponse.prototype.setWaitingCloseChannelsList=function(e){return n.Message.setRepeatedWrapperField(this,5,e)},proto.lnrpc.PendingChannelsResponse.prototype.addWaitingCloseChannels=function(e,t){return n.Message.addToRepeatedWrapperField(this,5,e,proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel,t)},proto.lnrpc.PendingChannelsResponse.prototype.clearWaitingCloseChannelsList=function(){return this.setWaitingCloseChannelsList([])},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChannelEventSubscription.prototype.toObject=function(e){return proto.lnrpc.ChannelEventSubscription.toObject(e,this)},proto.lnrpc.ChannelEventSubscription.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ChannelEventSubscription.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChannelEventSubscription;return proto.lnrpc.ChannelEventSubscription.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChannelEventSubscription.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.ChannelEventSubscription.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChannelEventSubscription.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChannelEventSubscription.serializeBinaryToWriter=function(e,t){},proto.lnrpc.ChannelEventUpdate.oneofGroups_=[[1,2,3,4,6,7]],proto.lnrpc.ChannelEventUpdate.ChannelCase={CHANNEL_NOT_SET:0,OPEN_CHANNEL:1,CLOSED_CHANNEL:2,ACTIVE_CHANNEL:3,INACTIVE_CHANNEL:4,PENDING_OPEN_CHANNEL:6,FULLY_RESOLVED_CHANNEL:7},proto.lnrpc.ChannelEventUpdate.prototype.getChannelCase=function(){return n.Message.computeOneofCase(this,proto.lnrpc.ChannelEventUpdate.oneofGroups_[0])},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChannelEventUpdate.prototype.toObject=function(e){return proto.lnrpc.ChannelEventUpdate.toObject(e,this)},proto.lnrpc.ChannelEventUpdate.toObject=function(e,t){var r,o={openChannel:(r=t.getOpenChannel())&&proto.lnrpc.Channel.toObject(e,r),closedChannel:(r=t.getClosedChannel())&&proto.lnrpc.ChannelCloseSummary.toObject(e,r),activeChannel:(r=t.getActiveChannel())&&proto.lnrpc.ChannelPoint.toObject(e,r),inactiveChannel:(r=t.getInactiveChannel())&&proto.lnrpc.ChannelPoint.toObject(e,r),pendingOpenChannel:(r=t.getPendingOpenChannel())&&proto.lnrpc.PendingUpdate.toObject(e,r),fullyResolvedChannel:(r=t.getFullyResolvedChannel())&&proto.lnrpc.ChannelPoint.toObject(e,r),type:n.Message.getFieldWithDefault(t,5,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.ChannelEventUpdate.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChannelEventUpdate;return proto.lnrpc.ChannelEventUpdate.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChannelEventUpdate.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.Channel;t.readMessage(r,proto.lnrpc.Channel.deserializeBinaryFromReader),e.setOpenChannel(r);break;case 2:r=new proto.lnrpc.ChannelCloseSummary;t.readMessage(r,proto.lnrpc.ChannelCloseSummary.deserializeBinaryFromReader),e.setClosedChannel(r);break;case 3:r=new proto.lnrpc.ChannelPoint;t.readMessage(r,proto.lnrpc.ChannelPoint.deserializeBinaryFromReader),e.setActiveChannel(r);break;case 4:r=new proto.lnrpc.ChannelPoint;t.readMessage(r,proto.lnrpc.ChannelPoint.deserializeBinaryFromReader),e.setInactiveChannel(r);break;case 6:r=new proto.lnrpc.PendingUpdate;t.readMessage(r,proto.lnrpc.PendingUpdate.deserializeBinaryFromReader),e.setPendingOpenChannel(r);break;case 7:r=new proto.lnrpc.ChannelPoint;t.readMessage(r,proto.lnrpc.ChannelPoint.deserializeBinaryFromReader),e.setFullyResolvedChannel(r);break;case 5:r=t.readEnum();e.setType(r);break;default:t.skipField()}}return e},proto.lnrpc.ChannelEventUpdate.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChannelEventUpdate.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChannelEventUpdate.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getOpenChannel())&&t.writeMessage(1,r,proto.lnrpc.Channel.serializeBinaryToWriter),null!=(r=e.getClosedChannel())&&t.writeMessage(2,r,proto.lnrpc.ChannelCloseSummary.serializeBinaryToWriter),null!=(r=e.getActiveChannel())&&t.writeMessage(3,r,proto.lnrpc.ChannelPoint.serializeBinaryToWriter),null!=(r=e.getInactiveChannel())&&t.writeMessage(4,r,proto.lnrpc.ChannelPoint.serializeBinaryToWriter),null!=(r=e.getPendingOpenChannel())&&t.writeMessage(6,r,proto.lnrpc.PendingUpdate.serializeBinaryToWriter),null!=(r=e.getFullyResolvedChannel())&&t.writeMessage(7,r,proto.lnrpc.ChannelPoint.serializeBinaryToWriter),0!==(r=e.getType())&&t.writeEnum(5,r)},proto.lnrpc.ChannelEventUpdate.UpdateType={OPEN_CHANNEL:0,CLOSED_CHANNEL:1,ACTIVE_CHANNEL:2,INACTIVE_CHANNEL:3,PENDING_OPEN_CHANNEL:4,FULLY_RESOLVED_CHANNEL:5},proto.lnrpc.ChannelEventUpdate.prototype.getOpenChannel=function(){return n.Message.getWrapperField(this,proto.lnrpc.Channel,1)},proto.lnrpc.ChannelEventUpdate.prototype.setOpenChannel=function(e){return n.Message.setOneofWrapperField(this,1,proto.lnrpc.ChannelEventUpdate.oneofGroups_[0],e)},proto.lnrpc.ChannelEventUpdate.prototype.clearOpenChannel=function(){return this.setOpenChannel(void 0)},proto.lnrpc.ChannelEventUpdate.prototype.hasOpenChannel=function(){return null!=n.Message.getField(this,1)},proto.lnrpc.ChannelEventUpdate.prototype.getClosedChannel=function(){return n.Message.getWrapperField(this,proto.lnrpc.ChannelCloseSummary,2)},proto.lnrpc.ChannelEventUpdate.prototype.setClosedChannel=function(e){return n.Message.setOneofWrapperField(this,2,proto.lnrpc.ChannelEventUpdate.oneofGroups_[0],e)},proto.lnrpc.ChannelEventUpdate.prototype.clearClosedChannel=function(){return this.setClosedChannel(void 0)},proto.lnrpc.ChannelEventUpdate.prototype.hasClosedChannel=function(){return null!=n.Message.getField(this,2)},proto.lnrpc.ChannelEventUpdate.prototype.getActiveChannel=function(){return n.Message.getWrapperField(this,proto.lnrpc.ChannelPoint,3)},proto.lnrpc.ChannelEventUpdate.prototype.setActiveChannel=function(e){return n.Message.setOneofWrapperField(this,3,proto.lnrpc.ChannelEventUpdate.oneofGroups_[0],e)},proto.lnrpc.ChannelEventUpdate.prototype.clearActiveChannel=function(){return this.setActiveChannel(void 0)},proto.lnrpc.ChannelEventUpdate.prototype.hasActiveChannel=function(){return null!=n.Message.getField(this,3)},proto.lnrpc.ChannelEventUpdate.prototype.getInactiveChannel=function(){return n.Message.getWrapperField(this,proto.lnrpc.ChannelPoint,4)},proto.lnrpc.ChannelEventUpdate.prototype.setInactiveChannel=function(e){return n.Message.setOneofWrapperField(this,4,proto.lnrpc.ChannelEventUpdate.oneofGroups_[0],e)},proto.lnrpc.ChannelEventUpdate.prototype.clearInactiveChannel=function(){return this.setInactiveChannel(void 0)},proto.lnrpc.ChannelEventUpdate.prototype.hasInactiveChannel=function(){return null!=n.Message.getField(this,4)},proto.lnrpc.ChannelEventUpdate.prototype.getPendingOpenChannel=function(){return n.Message.getWrapperField(this,proto.lnrpc.PendingUpdate,6)},proto.lnrpc.ChannelEventUpdate.prototype.setPendingOpenChannel=function(e){return n.Message.setOneofWrapperField(this,6,proto.lnrpc.ChannelEventUpdate.oneofGroups_[0],e)},proto.lnrpc.ChannelEventUpdate.prototype.clearPendingOpenChannel=function(){return this.setPendingOpenChannel(void 0)},proto.lnrpc.ChannelEventUpdate.prototype.hasPendingOpenChannel=function(){return null!=n.Message.getField(this,6)},proto.lnrpc.ChannelEventUpdate.prototype.getFullyResolvedChannel=function(){return n.Message.getWrapperField(this,proto.lnrpc.ChannelPoint,7)},proto.lnrpc.ChannelEventUpdate.prototype.setFullyResolvedChannel=function(e){return n.Message.setOneofWrapperField(this,7,proto.lnrpc.ChannelEventUpdate.oneofGroups_[0],e)},proto.lnrpc.ChannelEventUpdate.prototype.clearFullyResolvedChannel=function(){return this.setFullyResolvedChannel(void 0)},proto.lnrpc.ChannelEventUpdate.prototype.hasFullyResolvedChannel=function(){return null!=n.Message.getField(this,7)},proto.lnrpc.ChannelEventUpdate.prototype.getType=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.ChannelEventUpdate.prototype.setType=function(e){return n.Message.setProto3EnumField(this,5,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.WalletAccountBalance.prototype.toObject=function(e){return proto.lnrpc.WalletAccountBalance.toObject(e,this)},proto.lnrpc.WalletAccountBalance.toObject=function(e,t){var r={confirmedBalance:n.Message.getFieldWithDefault(t,1,0),unconfirmedBalance:n.Message.getFieldWithDefault(t,2,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.WalletAccountBalance.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.WalletAccountBalance;return proto.lnrpc.WalletAccountBalance.deserializeBinaryFromReader(r,t)},proto.lnrpc.WalletAccountBalance.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt64();e.setConfirmedBalance(r);break;case 2:r=t.readInt64();e.setUnconfirmedBalance(r);break;default:t.skipField()}}return e},proto.lnrpc.WalletAccountBalance.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.WalletAccountBalance.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.WalletAccountBalance.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getConfirmedBalance())&&t.writeInt64(1,r),0!==(r=e.getUnconfirmedBalance())&&t.writeInt64(2,r)},proto.lnrpc.WalletAccountBalance.prototype.getConfirmedBalance=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.WalletAccountBalance.prototype.setConfirmedBalance=function(e){return n.Message.setProto3IntField(this,1,e)},proto.lnrpc.WalletAccountBalance.prototype.getUnconfirmedBalance=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.WalletAccountBalance.prototype.setUnconfirmedBalance=function(e){return n.Message.setProto3IntField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.WalletBalanceRequest.prototype.toObject=function(e){return proto.lnrpc.WalletBalanceRequest.toObject(e,this)},proto.lnrpc.WalletBalanceRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.WalletBalanceRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.WalletBalanceRequest;return proto.lnrpc.WalletBalanceRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.WalletBalanceRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.WalletBalanceRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.WalletBalanceRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.WalletBalanceRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.WalletBalanceResponse.prototype.toObject=function(e){return proto.lnrpc.WalletBalanceResponse.toObject(e,this)},proto.lnrpc.WalletBalanceResponse.toObject=function(e,t){var r,o={totalBalance:n.Message.getFieldWithDefault(t,1,0),confirmedBalance:n.Message.getFieldWithDefault(t,2,0),unconfirmedBalance:n.Message.getFieldWithDefault(t,3,0),accountBalanceMap:(r=t.getAccountBalanceMap())?r.toObject(e,proto.lnrpc.WalletAccountBalance.toObject):[]};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.WalletBalanceResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.WalletBalanceResponse;return proto.lnrpc.WalletBalanceResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.WalletBalanceResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt64();e.setTotalBalance(r);break;case 2:r=t.readInt64();e.setConfirmedBalance(r);break;case 3:r=t.readInt64();e.setUnconfirmedBalance(r);break;case 4:r=e.getAccountBalanceMap();t.readMessage(r,(function(e,t){n.Map.deserializeBinary(e,t,n.BinaryReader.prototype.readString,n.BinaryReader.prototype.readMessage,proto.lnrpc.WalletAccountBalance.deserializeBinaryFromReader,"",new proto.lnrpc.WalletAccountBalance)}));break;default:t.skipField()}}return e},proto.lnrpc.WalletBalanceResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.WalletBalanceResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.WalletBalanceResponse.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getTotalBalance())&&t.writeInt64(1,r),0!==(r=e.getConfirmedBalance())&&t.writeInt64(2,r),0!==(r=e.getUnconfirmedBalance())&&t.writeInt64(3,r),(r=e.getAccountBalanceMap(!0))&&r.getLength()>0&&r.serializeBinary(4,t,n.BinaryWriter.prototype.writeString,n.BinaryWriter.prototype.writeMessage,proto.lnrpc.WalletAccountBalance.serializeBinaryToWriter)},proto.lnrpc.WalletBalanceResponse.prototype.getTotalBalance=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.WalletBalanceResponse.prototype.setTotalBalance=function(e){return n.Message.setProto3IntField(this,1,e)},proto.lnrpc.WalletBalanceResponse.prototype.getConfirmedBalance=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.WalletBalanceResponse.prototype.setConfirmedBalance=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.WalletBalanceResponse.prototype.getUnconfirmedBalance=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.WalletBalanceResponse.prototype.setUnconfirmedBalance=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.WalletBalanceResponse.prototype.getAccountBalanceMap=function(e){return n.Message.getMapField(this,4,e,proto.lnrpc.WalletAccountBalance)},proto.lnrpc.WalletBalanceResponse.prototype.clearAccountBalanceMap=function(){return this.getAccountBalanceMap().clear(),this},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.Amount.prototype.toObject=function(e){return proto.lnrpc.Amount.toObject(e,this)},proto.lnrpc.Amount.toObject=function(e,t){var r={sat:n.Message.getFieldWithDefault(t,1,0),msat:n.Message.getFieldWithDefault(t,2,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.Amount.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.Amount;return proto.lnrpc.Amount.deserializeBinaryFromReader(r,t)},proto.lnrpc.Amount.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint64();e.setSat(r);break;case 2:r=t.readUint64();e.setMsat(r);break;default:t.skipField()}}return e},proto.lnrpc.Amount.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.Amount.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.Amount.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getSat())&&t.writeUint64(1,r),0!==(r=e.getMsat())&&t.writeUint64(2,r)},proto.lnrpc.Amount.prototype.getSat=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.Amount.prototype.setSat=function(e){return n.Message.setProto3IntField(this,1,e)},proto.lnrpc.Amount.prototype.getMsat=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.Amount.prototype.setMsat=function(e){return n.Message.setProto3IntField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChannelBalanceRequest.prototype.toObject=function(e){return proto.lnrpc.ChannelBalanceRequest.toObject(e,this)},proto.lnrpc.ChannelBalanceRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ChannelBalanceRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChannelBalanceRequest;return proto.lnrpc.ChannelBalanceRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChannelBalanceRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.ChannelBalanceRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChannelBalanceRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChannelBalanceRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChannelBalanceResponse.prototype.toObject=function(e){return proto.lnrpc.ChannelBalanceResponse.toObject(e,this)},proto.lnrpc.ChannelBalanceResponse.toObject=function(e,t){var r,o={balance:n.Message.getFieldWithDefault(t,1,0),pendingOpenBalance:n.Message.getFieldWithDefault(t,2,0),localBalance:(r=t.getLocalBalance())&&proto.lnrpc.Amount.toObject(e,r),remoteBalance:(r=t.getRemoteBalance())&&proto.lnrpc.Amount.toObject(e,r),unsettledLocalBalance:(r=t.getUnsettledLocalBalance())&&proto.lnrpc.Amount.toObject(e,r),unsettledRemoteBalance:(r=t.getUnsettledRemoteBalance())&&proto.lnrpc.Amount.toObject(e,r),pendingOpenLocalBalance:(r=t.getPendingOpenLocalBalance())&&proto.lnrpc.Amount.toObject(e,r),pendingOpenRemoteBalance:(r=t.getPendingOpenRemoteBalance())&&proto.lnrpc.Amount.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.ChannelBalanceResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChannelBalanceResponse;return proto.lnrpc.ChannelBalanceResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChannelBalanceResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt64();e.setBalance(r);break;case 2:r=t.readInt64();e.setPendingOpenBalance(r);break;case 3:r=new proto.lnrpc.Amount;t.readMessage(r,proto.lnrpc.Amount.deserializeBinaryFromReader),e.setLocalBalance(r);break;case 4:r=new proto.lnrpc.Amount;t.readMessage(r,proto.lnrpc.Amount.deserializeBinaryFromReader),e.setRemoteBalance(r);break;case 5:r=new proto.lnrpc.Amount;t.readMessage(r,proto.lnrpc.Amount.deserializeBinaryFromReader),e.setUnsettledLocalBalance(r);break;case 6:r=new proto.lnrpc.Amount;t.readMessage(r,proto.lnrpc.Amount.deserializeBinaryFromReader),e.setUnsettledRemoteBalance(r);break;case 7:r=new proto.lnrpc.Amount;t.readMessage(r,proto.lnrpc.Amount.deserializeBinaryFromReader),e.setPendingOpenLocalBalance(r);break;case 8:r=new proto.lnrpc.Amount;t.readMessage(r,proto.lnrpc.Amount.deserializeBinaryFromReader),e.setPendingOpenRemoteBalance(r);break;default:t.skipField()}}return e},proto.lnrpc.ChannelBalanceResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChannelBalanceResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChannelBalanceResponse.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getBalance())&&t.writeInt64(1,r),0!==(r=e.getPendingOpenBalance())&&t.writeInt64(2,r),null!=(r=e.getLocalBalance())&&t.writeMessage(3,r,proto.lnrpc.Amount.serializeBinaryToWriter),null!=(r=e.getRemoteBalance())&&t.writeMessage(4,r,proto.lnrpc.Amount.serializeBinaryToWriter),null!=(r=e.getUnsettledLocalBalance())&&t.writeMessage(5,r,proto.lnrpc.Amount.serializeBinaryToWriter),null!=(r=e.getUnsettledRemoteBalance())&&t.writeMessage(6,r,proto.lnrpc.Amount.serializeBinaryToWriter),null!=(r=e.getPendingOpenLocalBalance())&&t.writeMessage(7,r,proto.lnrpc.Amount.serializeBinaryToWriter),null!=(r=e.getPendingOpenRemoteBalance())&&t.writeMessage(8,r,proto.lnrpc.Amount.serializeBinaryToWriter)},proto.lnrpc.ChannelBalanceResponse.prototype.getBalance=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.ChannelBalanceResponse.prototype.setBalance=function(e){return n.Message.setProto3IntField(this,1,e)},proto.lnrpc.ChannelBalanceResponse.prototype.getPendingOpenBalance=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.ChannelBalanceResponse.prototype.setPendingOpenBalance=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.ChannelBalanceResponse.prototype.getLocalBalance=function(){return n.Message.getWrapperField(this,proto.lnrpc.Amount,3)},proto.lnrpc.ChannelBalanceResponse.prototype.setLocalBalance=function(e){return n.Message.setWrapperField(this,3,e)},proto.lnrpc.ChannelBalanceResponse.prototype.clearLocalBalance=function(){return this.setLocalBalance(void 0)},proto.lnrpc.ChannelBalanceResponse.prototype.hasLocalBalance=function(){return null!=n.Message.getField(this,3)},proto.lnrpc.ChannelBalanceResponse.prototype.getRemoteBalance=function(){return n.Message.getWrapperField(this,proto.lnrpc.Amount,4)},proto.lnrpc.ChannelBalanceResponse.prototype.setRemoteBalance=function(e){return n.Message.setWrapperField(this,4,e)},proto.lnrpc.ChannelBalanceResponse.prototype.clearRemoteBalance=function(){return this.setRemoteBalance(void 0)},proto.lnrpc.ChannelBalanceResponse.prototype.hasRemoteBalance=function(){return null!=n.Message.getField(this,4)},proto.lnrpc.ChannelBalanceResponse.prototype.getUnsettledLocalBalance=function(){return n.Message.getWrapperField(this,proto.lnrpc.Amount,5)},proto.lnrpc.ChannelBalanceResponse.prototype.setUnsettledLocalBalance=function(e){return n.Message.setWrapperField(this,5,e)},proto.lnrpc.ChannelBalanceResponse.prototype.clearUnsettledLocalBalance=function(){return this.setUnsettledLocalBalance(void 0)},proto.lnrpc.ChannelBalanceResponse.prototype.hasUnsettledLocalBalance=function(){return null!=n.Message.getField(this,5)},proto.lnrpc.ChannelBalanceResponse.prototype.getUnsettledRemoteBalance=function(){return n.Message.getWrapperField(this,proto.lnrpc.Amount,6)},proto.lnrpc.ChannelBalanceResponse.prototype.setUnsettledRemoteBalance=function(e){return n.Message.setWrapperField(this,6,e)},proto.lnrpc.ChannelBalanceResponse.prototype.clearUnsettledRemoteBalance=function(){return this.setUnsettledRemoteBalance(void 0)},proto.lnrpc.ChannelBalanceResponse.prototype.hasUnsettledRemoteBalance=function(){return null!=n.Message.getField(this,6)},proto.lnrpc.ChannelBalanceResponse.prototype.getPendingOpenLocalBalance=function(){return n.Message.getWrapperField(this,proto.lnrpc.Amount,7)},proto.lnrpc.ChannelBalanceResponse.prototype.setPendingOpenLocalBalance=function(e){return n.Message.setWrapperField(this,7,e)},proto.lnrpc.ChannelBalanceResponse.prototype.clearPendingOpenLocalBalance=function(){return this.setPendingOpenLocalBalance(void 0)},proto.lnrpc.ChannelBalanceResponse.prototype.hasPendingOpenLocalBalance=function(){return null!=n.Message.getField(this,7)},proto.lnrpc.ChannelBalanceResponse.prototype.getPendingOpenRemoteBalance=function(){return n.Message.getWrapperField(this,proto.lnrpc.Amount,8)},proto.lnrpc.ChannelBalanceResponse.prototype.setPendingOpenRemoteBalance=function(e){return n.Message.setWrapperField(this,8,e)},proto.lnrpc.ChannelBalanceResponse.prototype.clearPendingOpenRemoteBalance=function(){return this.setPendingOpenRemoteBalance(void 0)},proto.lnrpc.ChannelBalanceResponse.prototype.hasPendingOpenRemoteBalance=function(){return null!=n.Message.getField(this,8)},proto.lnrpc.QueryRoutesRequest.repeatedFields_=[6,7,10,16,17],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.QueryRoutesRequest.prototype.toObject=function(e){return proto.lnrpc.QueryRoutesRequest.toObject(e,this)},proto.lnrpc.QueryRoutesRequest.toObject=function(e,t){var r,o={pubKey:n.Message.getFieldWithDefault(t,1,""),amt:n.Message.getFieldWithDefault(t,2,0),amtMsat:n.Message.getFieldWithDefault(t,12,0),finalCltvDelta:n.Message.getFieldWithDefault(t,4,0),feeLimit:(r=t.getFeeLimit())&&proto.lnrpc.FeeLimit.toObject(e,r),ignoredNodesList:t.getIgnoredNodesList_asB64(),ignoredEdgesList:n.Message.toObjectList(t.getIgnoredEdgesList(),proto.lnrpc.EdgeLocator.toObject,e),sourcePubKey:n.Message.getFieldWithDefault(t,8,""),useMissionControl:n.Message.getBooleanFieldWithDefault(t,9,!1),ignoredPairsList:n.Message.toObjectList(t.getIgnoredPairsList(),proto.lnrpc.NodePair.toObject,e),cltvLimit:n.Message.getFieldWithDefault(t,11,0),destCustomRecordsMap:(r=t.getDestCustomRecordsMap())?r.toObject(e,void 0):[],outgoingChanId:n.Message.getFieldWithDefault(t,14,"0"),lastHopPubkey:t.getLastHopPubkey_asB64(),routeHintsList:n.Message.toObjectList(t.getRouteHintsList(),proto.lnrpc.RouteHint.toObject,e),destFeaturesList:null==(r=n.Message.getRepeatedField(t,17))?void 0:r};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.QueryRoutesRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.QueryRoutesRequest;return proto.lnrpc.QueryRoutesRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.QueryRoutesRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setPubKey(r);break;case 2:r=t.readInt64();e.setAmt(r);break;case 12:r=t.readInt64();e.setAmtMsat(r);break;case 4:r=t.readInt32();e.setFinalCltvDelta(r);break;case 5:r=new proto.lnrpc.FeeLimit;t.readMessage(r,proto.lnrpc.FeeLimit.deserializeBinaryFromReader),e.setFeeLimit(r);break;case 6:r=t.readBytes();e.addIgnoredNodes(r);break;case 7:r=new proto.lnrpc.EdgeLocator;t.readMessage(r,proto.lnrpc.EdgeLocator.deserializeBinaryFromReader),e.addIgnoredEdges(r);break;case 8:r=t.readString();e.setSourcePubKey(r);break;case 9:r=t.readBool();e.setUseMissionControl(r);break;case 10:r=new proto.lnrpc.NodePair;t.readMessage(r,proto.lnrpc.NodePair.deserializeBinaryFromReader),e.addIgnoredPairs(r);break;case 11:r=t.readUint32();e.setCltvLimit(r);break;case 13:r=e.getDestCustomRecordsMap();t.readMessage(r,(function(e,t){n.Map.deserializeBinary(e,t,n.BinaryReader.prototype.readUint64,n.BinaryReader.prototype.readBytes,null,0,"")}));break;case 14:r=t.readUint64String();e.setOutgoingChanId(r);break;case 15:r=t.readBytes();e.setLastHopPubkey(r);break;case 16:r=new proto.lnrpc.RouteHint;t.readMessage(r,proto.lnrpc.RouteHint.deserializeBinaryFromReader),e.addRouteHints(r);break;case 17:r=t.readPackedEnum();e.setDestFeaturesList(r);break;default:t.skipField()}}return e},proto.lnrpc.QueryRoutesRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.QueryRoutesRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.QueryRoutesRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPubKey()).length>0&&t.writeString(1,r),0!==(r=e.getAmt())&&t.writeInt64(2,r),0!==(r=e.getAmtMsat())&&t.writeInt64(12,r),0!==(r=e.getFinalCltvDelta())&&t.writeInt32(4,r),null!=(r=e.getFeeLimit())&&t.writeMessage(5,r,proto.lnrpc.FeeLimit.serializeBinaryToWriter),(r=e.getIgnoredNodesList_asU8()).length>0&&t.writeRepeatedBytes(6,r),(r=e.getIgnoredEdgesList()).length>0&&t.writeRepeatedMessage(7,r,proto.lnrpc.EdgeLocator.serializeBinaryToWriter),(r=e.getSourcePubKey()).length>0&&t.writeString(8,r),(r=e.getUseMissionControl())&&t.writeBool(9,r),(r=e.getIgnoredPairsList()).length>0&&t.writeRepeatedMessage(10,r,proto.lnrpc.NodePair.serializeBinaryToWriter),0!==(r=e.getCltvLimit())&&t.writeUint32(11,r),(r=e.getDestCustomRecordsMap(!0))&&r.getLength()>0&&r.serializeBinary(13,t,n.BinaryWriter.prototype.writeUint64,n.BinaryWriter.prototype.writeBytes),r=e.getOutgoingChanId(),0!==parseInt(r,10)&&t.writeUint64String(14,r),(r=e.getLastHopPubkey_asU8()).length>0&&t.writeBytes(15,r),(r=e.getRouteHintsList()).length>0&&t.writeRepeatedMessage(16,r,proto.lnrpc.RouteHint.serializeBinaryToWriter),(r=e.getDestFeaturesList()).length>0&&t.writePackedEnum(17,r)},proto.lnrpc.QueryRoutesRequest.prototype.getPubKey=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.QueryRoutesRequest.prototype.setPubKey=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.QueryRoutesRequest.prototype.getAmt=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.QueryRoutesRequest.prototype.setAmt=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.QueryRoutesRequest.prototype.getAmtMsat=function(){return n.Message.getFieldWithDefault(this,12,0)},proto.lnrpc.QueryRoutesRequest.prototype.setAmtMsat=function(e){return n.Message.setProto3IntField(this,12,e)},proto.lnrpc.QueryRoutesRequest.prototype.getFinalCltvDelta=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.QueryRoutesRequest.prototype.setFinalCltvDelta=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.QueryRoutesRequest.prototype.getFeeLimit=function(){return n.Message.getWrapperField(this,proto.lnrpc.FeeLimit,5)},proto.lnrpc.QueryRoutesRequest.prototype.setFeeLimit=function(e){return n.Message.setWrapperField(this,5,e)},proto.lnrpc.QueryRoutesRequest.prototype.clearFeeLimit=function(){return this.setFeeLimit(void 0)},proto.lnrpc.QueryRoutesRequest.prototype.hasFeeLimit=function(){return null!=n.Message.getField(this,5)},proto.lnrpc.QueryRoutesRequest.prototype.getIgnoredNodesList=function(){return n.Message.getRepeatedField(this,6)},proto.lnrpc.QueryRoutesRequest.prototype.getIgnoredNodesList_asB64=function(){return n.Message.bytesListAsB64(this.getIgnoredNodesList())},proto.lnrpc.QueryRoutesRequest.prototype.getIgnoredNodesList_asU8=function(){return n.Message.bytesListAsU8(this.getIgnoredNodesList())},proto.lnrpc.QueryRoutesRequest.prototype.setIgnoredNodesList=function(e){return n.Message.setField(this,6,e||[])},proto.lnrpc.QueryRoutesRequest.prototype.addIgnoredNodes=function(e,t){return n.Message.addToRepeatedField(this,6,e,t)},proto.lnrpc.QueryRoutesRequest.prototype.clearIgnoredNodesList=function(){return this.setIgnoredNodesList([])},proto.lnrpc.QueryRoutesRequest.prototype.getIgnoredEdgesList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.EdgeLocator,7)},proto.lnrpc.QueryRoutesRequest.prototype.setIgnoredEdgesList=function(e){return n.Message.setRepeatedWrapperField(this,7,e)},proto.lnrpc.QueryRoutesRequest.prototype.addIgnoredEdges=function(e,t){return n.Message.addToRepeatedWrapperField(this,7,e,proto.lnrpc.EdgeLocator,t)},proto.lnrpc.QueryRoutesRequest.prototype.clearIgnoredEdgesList=function(){return this.setIgnoredEdgesList([])},proto.lnrpc.QueryRoutesRequest.prototype.getSourcePubKey=function(){return n.Message.getFieldWithDefault(this,8,"")},proto.lnrpc.QueryRoutesRequest.prototype.setSourcePubKey=function(e){return n.Message.setProto3StringField(this,8,e)},proto.lnrpc.QueryRoutesRequest.prototype.getUseMissionControl=function(){return n.Message.getBooleanFieldWithDefault(this,9,!1)},proto.lnrpc.QueryRoutesRequest.prototype.setUseMissionControl=function(e){return n.Message.setProto3BooleanField(this,9,e)},proto.lnrpc.QueryRoutesRequest.prototype.getIgnoredPairsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.NodePair,10)},proto.lnrpc.QueryRoutesRequest.prototype.setIgnoredPairsList=function(e){return n.Message.setRepeatedWrapperField(this,10,e)},proto.lnrpc.QueryRoutesRequest.prototype.addIgnoredPairs=function(e,t){return n.Message.addToRepeatedWrapperField(this,10,e,proto.lnrpc.NodePair,t)},proto.lnrpc.QueryRoutesRequest.prototype.clearIgnoredPairsList=function(){return this.setIgnoredPairsList([])},proto.lnrpc.QueryRoutesRequest.prototype.getCltvLimit=function(){return n.Message.getFieldWithDefault(this,11,0)},proto.lnrpc.QueryRoutesRequest.prototype.setCltvLimit=function(e){return n.Message.setProto3IntField(this,11,e)},proto.lnrpc.QueryRoutesRequest.prototype.getDestCustomRecordsMap=function(e){return n.Message.getMapField(this,13,e,null)},proto.lnrpc.QueryRoutesRequest.prototype.clearDestCustomRecordsMap=function(){return this.getDestCustomRecordsMap().clear(),this},proto.lnrpc.QueryRoutesRequest.prototype.getOutgoingChanId=function(){return n.Message.getFieldWithDefault(this,14,"0")},proto.lnrpc.QueryRoutesRequest.prototype.setOutgoingChanId=function(e){return n.Message.setProto3StringIntField(this,14,e)},proto.lnrpc.QueryRoutesRequest.prototype.getLastHopPubkey=function(){return n.Message.getFieldWithDefault(this,15,"")},proto.lnrpc.QueryRoutesRequest.prototype.getLastHopPubkey_asB64=function(){return n.Message.bytesAsB64(this.getLastHopPubkey())},proto.lnrpc.QueryRoutesRequest.prototype.getLastHopPubkey_asU8=function(){return n.Message.bytesAsU8(this.getLastHopPubkey())},proto.lnrpc.QueryRoutesRequest.prototype.setLastHopPubkey=function(e){return n.Message.setProto3BytesField(this,15,e)},proto.lnrpc.QueryRoutesRequest.prototype.getRouteHintsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.RouteHint,16)},proto.lnrpc.QueryRoutesRequest.prototype.setRouteHintsList=function(e){return n.Message.setRepeatedWrapperField(this,16,e)},proto.lnrpc.QueryRoutesRequest.prototype.addRouteHints=function(e,t){return n.Message.addToRepeatedWrapperField(this,16,e,proto.lnrpc.RouteHint,t)},proto.lnrpc.QueryRoutesRequest.prototype.clearRouteHintsList=function(){return this.setRouteHintsList([])},proto.lnrpc.QueryRoutesRequest.prototype.getDestFeaturesList=function(){return n.Message.getRepeatedField(this,17)},proto.lnrpc.QueryRoutesRequest.prototype.setDestFeaturesList=function(e){return n.Message.setField(this,17,e||[])},proto.lnrpc.QueryRoutesRequest.prototype.addDestFeatures=function(e,t){return n.Message.addToRepeatedField(this,17,e,t)},proto.lnrpc.QueryRoutesRequest.prototype.clearDestFeaturesList=function(){return this.setDestFeaturesList([])},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.NodePair.prototype.toObject=function(e){return proto.lnrpc.NodePair.toObject(e,this)},proto.lnrpc.NodePair.toObject=function(e,t){var r={from:t.getFrom_asB64(),to:t.getTo_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.NodePair.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.NodePair;return proto.lnrpc.NodePair.deserializeBinaryFromReader(r,t)},proto.lnrpc.NodePair.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setFrom(r);break;case 2:r=t.readBytes();e.setTo(r);break;default:t.skipField()}}return e},proto.lnrpc.NodePair.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.NodePair.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.NodePair.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getFrom_asU8()).length>0&&t.writeBytes(1,r),(r=e.getTo_asU8()).length>0&&t.writeBytes(2,r)},proto.lnrpc.NodePair.prototype.getFrom=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.NodePair.prototype.getFrom_asB64=function(){return n.Message.bytesAsB64(this.getFrom())},proto.lnrpc.NodePair.prototype.getFrom_asU8=function(){return n.Message.bytesAsU8(this.getFrom())},proto.lnrpc.NodePair.prototype.setFrom=function(e){return n.Message.setProto3BytesField(this,1,e)},proto.lnrpc.NodePair.prototype.getTo=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.NodePair.prototype.getTo_asB64=function(){return n.Message.bytesAsB64(this.getTo())},proto.lnrpc.NodePair.prototype.getTo_asU8=function(){return n.Message.bytesAsU8(this.getTo())},proto.lnrpc.NodePair.prototype.setTo=function(e){return n.Message.setProto3BytesField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.EdgeLocator.prototype.toObject=function(e){return proto.lnrpc.EdgeLocator.toObject(e,this)},proto.lnrpc.EdgeLocator.toObject=function(e,t){var r={channelId:n.Message.getFieldWithDefault(t,1,"0"),directionReverse:n.Message.getBooleanFieldWithDefault(t,2,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.EdgeLocator.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.EdgeLocator;return proto.lnrpc.EdgeLocator.deserializeBinaryFromReader(r,t)},proto.lnrpc.EdgeLocator.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint64String();e.setChannelId(r);break;case 2:r=t.readBool();e.setDirectionReverse(r);break;default:t.skipField()}}return e},proto.lnrpc.EdgeLocator.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.EdgeLocator.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.EdgeLocator.serializeBinaryToWriter=function(e,t){var r=void 0;r=e.getChannelId(),0!==parseInt(r,10)&&t.writeUint64String(1,r),(r=e.getDirectionReverse())&&t.writeBool(2,r)},proto.lnrpc.EdgeLocator.prototype.getChannelId=function(){return n.Message.getFieldWithDefault(this,1,"0")},proto.lnrpc.EdgeLocator.prototype.setChannelId=function(e){return n.Message.setProto3StringIntField(this,1,e)},proto.lnrpc.EdgeLocator.prototype.getDirectionReverse=function(){return n.Message.getBooleanFieldWithDefault(this,2,!1)},proto.lnrpc.EdgeLocator.prototype.setDirectionReverse=function(e){return n.Message.setProto3BooleanField(this,2,e)},proto.lnrpc.QueryRoutesResponse.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.QueryRoutesResponse.prototype.toObject=function(e){return proto.lnrpc.QueryRoutesResponse.toObject(e,this)},proto.lnrpc.QueryRoutesResponse.toObject=function(e,t){var r={routesList:n.Message.toObjectList(t.getRoutesList(),proto.lnrpc.Route.toObject,e),successProb:n.Message.getFloatingPointFieldWithDefault(t,2,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.QueryRoutesResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.QueryRoutesResponse;return proto.lnrpc.QueryRoutesResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.QueryRoutesResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.Route;t.readMessage(r,proto.lnrpc.Route.deserializeBinaryFromReader),e.addRoutes(r);break;case 2:r=t.readDouble();e.setSuccessProb(r);break;default:t.skipField()}}return e},proto.lnrpc.QueryRoutesResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.QueryRoutesResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.QueryRoutesResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getRoutesList()).length>0&&t.writeRepeatedMessage(1,r,proto.lnrpc.Route.serializeBinaryToWriter),0!==(r=e.getSuccessProb())&&t.writeDouble(2,r)},proto.lnrpc.QueryRoutesResponse.prototype.getRoutesList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.Route,1)},proto.lnrpc.QueryRoutesResponse.prototype.setRoutesList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.lnrpc.QueryRoutesResponse.prototype.addRoutes=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.lnrpc.Route,t)},proto.lnrpc.QueryRoutesResponse.prototype.clearRoutesList=function(){return this.setRoutesList([])},proto.lnrpc.QueryRoutesResponse.prototype.getSuccessProb=function(){return n.Message.getFloatingPointFieldWithDefault(this,2,0)},proto.lnrpc.QueryRoutesResponse.prototype.setSuccessProb=function(e){return n.Message.setProto3FloatField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.Hop.prototype.toObject=function(e){return proto.lnrpc.Hop.toObject(e,this)},proto.lnrpc.Hop.toObject=function(e,t){var r,o={chanId:n.Message.getFieldWithDefault(t,1,"0"),chanCapacity:n.Message.getFieldWithDefault(t,2,0),amtToForward:n.Message.getFieldWithDefault(t,3,0),fee:n.Message.getFieldWithDefault(t,4,0),expiry:n.Message.getFieldWithDefault(t,5,0),amtToForwardMsat:n.Message.getFieldWithDefault(t,6,0),feeMsat:n.Message.getFieldWithDefault(t,7,0),pubKey:n.Message.getFieldWithDefault(t,8,""),tlvPayload:n.Message.getBooleanFieldWithDefault(t,9,!1),mppRecord:(r=t.getMppRecord())&&proto.lnrpc.MPPRecord.toObject(e,r),ampRecord:(r=t.getAmpRecord())&&proto.lnrpc.AMPRecord.toObject(e,r),customRecordsMap:(r=t.getCustomRecordsMap())?r.toObject(e,void 0):[]};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.Hop.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.Hop;return proto.lnrpc.Hop.deserializeBinaryFromReader(r,t)},proto.lnrpc.Hop.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint64String();e.setChanId(r);break;case 2:r=t.readInt64();e.setChanCapacity(r);break;case 3:r=t.readInt64();e.setAmtToForward(r);break;case 4:r=t.readInt64();e.setFee(r);break;case 5:r=t.readUint32();e.setExpiry(r);break;case 6:r=t.readInt64();e.setAmtToForwardMsat(r);break;case 7:r=t.readInt64();e.setFeeMsat(r);break;case 8:r=t.readString();e.setPubKey(r);break;case 9:r=t.readBool();e.setTlvPayload(r);break;case 10:r=new proto.lnrpc.MPPRecord;t.readMessage(r,proto.lnrpc.MPPRecord.deserializeBinaryFromReader),e.setMppRecord(r);break;case 12:r=new proto.lnrpc.AMPRecord;t.readMessage(r,proto.lnrpc.AMPRecord.deserializeBinaryFromReader),e.setAmpRecord(r);break;case 11:r=e.getCustomRecordsMap();t.readMessage(r,(function(e,t){n.Map.deserializeBinary(e,t,n.BinaryReader.prototype.readUint64,n.BinaryReader.prototype.readBytes,null,0,"")}));break;default:t.skipField()}}return e},proto.lnrpc.Hop.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.Hop.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.Hop.serializeBinaryToWriter=function(e,t){var r=void 0;r=e.getChanId(),0!==parseInt(r,10)&&t.writeUint64String(1,r),0!==(r=e.getChanCapacity())&&t.writeInt64(2,r),0!==(r=e.getAmtToForward())&&t.writeInt64(3,r),0!==(r=e.getFee())&&t.writeInt64(4,r),0!==(r=e.getExpiry())&&t.writeUint32(5,r),0!==(r=e.getAmtToForwardMsat())&&t.writeInt64(6,r),0!==(r=e.getFeeMsat())&&t.writeInt64(7,r),(r=e.getPubKey()).length>0&&t.writeString(8,r),(r=e.getTlvPayload())&&t.writeBool(9,r),null!=(r=e.getMppRecord())&&t.writeMessage(10,r,proto.lnrpc.MPPRecord.serializeBinaryToWriter),null!=(r=e.getAmpRecord())&&t.writeMessage(12,r,proto.lnrpc.AMPRecord.serializeBinaryToWriter),(r=e.getCustomRecordsMap(!0))&&r.getLength()>0&&r.serializeBinary(11,t,n.BinaryWriter.prototype.writeUint64,n.BinaryWriter.prototype.writeBytes)},proto.lnrpc.Hop.prototype.getChanId=function(){return n.Message.getFieldWithDefault(this,1,"0")},proto.lnrpc.Hop.prototype.setChanId=function(e){return n.Message.setProto3StringIntField(this,1,e)},proto.lnrpc.Hop.prototype.getChanCapacity=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.Hop.prototype.setChanCapacity=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.Hop.prototype.getAmtToForward=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.Hop.prototype.setAmtToForward=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.Hop.prototype.getFee=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.Hop.prototype.setFee=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.Hop.prototype.getExpiry=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.Hop.prototype.setExpiry=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.Hop.prototype.getAmtToForwardMsat=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.Hop.prototype.setAmtToForwardMsat=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.Hop.prototype.getFeeMsat=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.lnrpc.Hop.prototype.setFeeMsat=function(e){return n.Message.setProto3IntField(this,7,e)},proto.lnrpc.Hop.prototype.getPubKey=function(){return n.Message.getFieldWithDefault(this,8,"")},proto.lnrpc.Hop.prototype.setPubKey=function(e){return n.Message.setProto3StringField(this,8,e)},proto.lnrpc.Hop.prototype.getTlvPayload=function(){return n.Message.getBooleanFieldWithDefault(this,9,!1)},proto.lnrpc.Hop.prototype.setTlvPayload=function(e){return n.Message.setProto3BooleanField(this,9,e)},proto.lnrpc.Hop.prototype.getMppRecord=function(){return n.Message.getWrapperField(this,proto.lnrpc.MPPRecord,10)},proto.lnrpc.Hop.prototype.setMppRecord=function(e){return n.Message.setWrapperField(this,10,e)},proto.lnrpc.Hop.prototype.clearMppRecord=function(){return this.setMppRecord(void 0)},proto.lnrpc.Hop.prototype.hasMppRecord=function(){return null!=n.Message.getField(this,10)},proto.lnrpc.Hop.prototype.getAmpRecord=function(){return n.Message.getWrapperField(this,proto.lnrpc.AMPRecord,12)},proto.lnrpc.Hop.prototype.setAmpRecord=function(e){return n.Message.setWrapperField(this,12,e)},proto.lnrpc.Hop.prototype.clearAmpRecord=function(){return this.setAmpRecord(void 0)},proto.lnrpc.Hop.prototype.hasAmpRecord=function(){return null!=n.Message.getField(this,12)},proto.lnrpc.Hop.prototype.getCustomRecordsMap=function(e){return n.Message.getMapField(this,11,e,null)},proto.lnrpc.Hop.prototype.clearCustomRecordsMap=function(){return this.getCustomRecordsMap().clear(),this},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.MPPRecord.prototype.toObject=function(e){return proto.lnrpc.MPPRecord.toObject(e,this)},proto.lnrpc.MPPRecord.toObject=function(e,t){var r={paymentAddr:t.getPaymentAddr_asB64(),totalAmtMsat:n.Message.getFieldWithDefault(t,10,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.MPPRecord.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.MPPRecord;return proto.lnrpc.MPPRecord.deserializeBinaryFromReader(r,t)},proto.lnrpc.MPPRecord.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 11:var r=t.readBytes();e.setPaymentAddr(r);break;case 10:r=t.readInt64();e.setTotalAmtMsat(r);break;default:t.skipField()}}return e},proto.lnrpc.MPPRecord.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.MPPRecord.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.MPPRecord.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPaymentAddr_asU8()).length>0&&t.writeBytes(11,r),0!==(r=e.getTotalAmtMsat())&&t.writeInt64(10,r)},proto.lnrpc.MPPRecord.prototype.getPaymentAddr=function(){return n.Message.getFieldWithDefault(this,11,"")},proto.lnrpc.MPPRecord.prototype.getPaymentAddr_asB64=function(){return n.Message.bytesAsB64(this.getPaymentAddr())},proto.lnrpc.MPPRecord.prototype.getPaymentAddr_asU8=function(){return n.Message.bytesAsU8(this.getPaymentAddr())},proto.lnrpc.MPPRecord.prototype.setPaymentAddr=function(e){return n.Message.setProto3BytesField(this,11,e)},proto.lnrpc.MPPRecord.prototype.getTotalAmtMsat=function(){return n.Message.getFieldWithDefault(this,10,0)},proto.lnrpc.MPPRecord.prototype.setTotalAmtMsat=function(e){return n.Message.setProto3IntField(this,10,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.AMPRecord.prototype.toObject=function(e){return proto.lnrpc.AMPRecord.toObject(e,this)},proto.lnrpc.AMPRecord.toObject=function(e,t){var r={rootShare:t.getRootShare_asB64(),setId:t.getSetId_asB64(),childIndex:n.Message.getFieldWithDefault(t,3,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.AMPRecord.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.AMPRecord;return proto.lnrpc.AMPRecord.deserializeBinaryFromReader(r,t)},proto.lnrpc.AMPRecord.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setRootShare(r);break;case 2:r=t.readBytes();e.setSetId(r);break;case 3:r=t.readUint32();e.setChildIndex(r);break;default:t.skipField()}}return e},proto.lnrpc.AMPRecord.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.AMPRecord.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.AMPRecord.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getRootShare_asU8()).length>0&&t.writeBytes(1,r),(r=e.getSetId_asU8()).length>0&&t.writeBytes(2,r),0!==(r=e.getChildIndex())&&t.writeUint32(3,r)},proto.lnrpc.AMPRecord.prototype.getRootShare=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.AMPRecord.prototype.getRootShare_asB64=function(){return n.Message.bytesAsB64(this.getRootShare())},proto.lnrpc.AMPRecord.prototype.getRootShare_asU8=function(){return n.Message.bytesAsU8(this.getRootShare())},proto.lnrpc.AMPRecord.prototype.setRootShare=function(e){return n.Message.setProto3BytesField(this,1,e)},proto.lnrpc.AMPRecord.prototype.getSetId=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.AMPRecord.prototype.getSetId_asB64=function(){return n.Message.bytesAsB64(this.getSetId())},proto.lnrpc.AMPRecord.prototype.getSetId_asU8=function(){return n.Message.bytesAsU8(this.getSetId())},proto.lnrpc.AMPRecord.prototype.setSetId=function(e){return n.Message.setProto3BytesField(this,2,e)},proto.lnrpc.AMPRecord.prototype.getChildIndex=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.AMPRecord.prototype.setChildIndex=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.Route.repeatedFields_=[4],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.Route.prototype.toObject=function(e){return proto.lnrpc.Route.toObject(e,this)},proto.lnrpc.Route.toObject=function(e,t){var r={totalTimeLock:n.Message.getFieldWithDefault(t,1,0),totalFees:n.Message.getFieldWithDefault(t,2,0),totalAmt:n.Message.getFieldWithDefault(t,3,0),hopsList:n.Message.toObjectList(t.getHopsList(),proto.lnrpc.Hop.toObject,e),totalFeesMsat:n.Message.getFieldWithDefault(t,5,0),totalAmtMsat:n.Message.getFieldWithDefault(t,6,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.Route.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.Route;return proto.lnrpc.Route.deserializeBinaryFromReader(r,t)},proto.lnrpc.Route.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint32();e.setTotalTimeLock(r);break;case 2:r=t.readInt64();e.setTotalFees(r);break;case 3:r=t.readInt64();e.setTotalAmt(r);break;case 4:r=new proto.lnrpc.Hop;t.readMessage(r,proto.lnrpc.Hop.deserializeBinaryFromReader),e.addHops(r);break;case 5:r=t.readInt64();e.setTotalFeesMsat(r);break;case 6:r=t.readInt64();e.setTotalAmtMsat(r);break;default:t.skipField()}}return e},proto.lnrpc.Route.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.Route.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.Route.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getTotalTimeLock())&&t.writeUint32(1,r),0!==(r=e.getTotalFees())&&t.writeInt64(2,r),0!==(r=e.getTotalAmt())&&t.writeInt64(3,r),(r=e.getHopsList()).length>0&&t.writeRepeatedMessage(4,r,proto.lnrpc.Hop.serializeBinaryToWriter),0!==(r=e.getTotalFeesMsat())&&t.writeInt64(5,r),0!==(r=e.getTotalAmtMsat())&&t.writeInt64(6,r)},proto.lnrpc.Route.prototype.getTotalTimeLock=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.Route.prototype.setTotalTimeLock=function(e){return n.Message.setProto3IntField(this,1,e)},proto.lnrpc.Route.prototype.getTotalFees=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.Route.prototype.setTotalFees=function(e){return n.Message.setProto3IntField(this,2,e)};proto.lnrpc.Route.prototype.getTotalAmt=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.Route.prototype.setTotalAmt=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.Route.prototype.getHopsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.Hop,4)},proto.lnrpc.Route.prototype.setHopsList=function(e){return n.Message.setRepeatedWrapperField(this,4,e)},proto.lnrpc.Route.prototype.addHops=function(e,t){return n.Message.addToRepeatedWrapperField(this,4,e,proto.lnrpc.Hop,t)},proto.lnrpc.Route.prototype.clearHopsList=function(){return this.setHopsList([])},proto.lnrpc.Route.prototype.getTotalFeesMsat=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.Route.prototype.setTotalFeesMsat=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.Route.prototype.getTotalAmtMsat=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.Route.prototype.setTotalAmtMsat=function(e){return n.Message.setProto3IntField(this,6,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.NodeInfoRequest.prototype.toObject=function(e){return proto.lnrpc.NodeInfoRequest.toObject(e,this)},proto.lnrpc.NodeInfoRequest.toObject=function(e,t){var r={pubKey:n.Message.getFieldWithDefault(t,1,""),includeChannels:n.Message.getBooleanFieldWithDefault(t,2,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.NodeInfoRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.NodeInfoRequest;return proto.lnrpc.NodeInfoRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.NodeInfoRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setPubKey(r);break;case 2:r=t.readBool();e.setIncludeChannels(r);break;default:t.skipField()}}return e},proto.lnrpc.NodeInfoRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.NodeInfoRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.NodeInfoRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPubKey()).length>0&&t.writeString(1,r),(r=e.getIncludeChannels())&&t.writeBool(2,r)},proto.lnrpc.NodeInfoRequest.prototype.getPubKey=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.NodeInfoRequest.prototype.setPubKey=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.NodeInfoRequest.prototype.getIncludeChannels=function(){return n.Message.getBooleanFieldWithDefault(this,2,!1)},proto.lnrpc.NodeInfoRequest.prototype.setIncludeChannels=function(e){return n.Message.setProto3BooleanField(this,2,e)},proto.lnrpc.NodeInfo.repeatedFields_=[4],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.NodeInfo.prototype.toObject=function(e){return proto.lnrpc.NodeInfo.toObject(e,this)},proto.lnrpc.NodeInfo.toObject=function(e,t){var r,o={node:(r=t.getNode())&&proto.lnrpc.LightningNode.toObject(e,r),numChannels:n.Message.getFieldWithDefault(t,2,0),totalCapacity:n.Message.getFieldWithDefault(t,3,0),channelsList:n.Message.toObjectList(t.getChannelsList(),proto.lnrpc.ChannelEdge.toObject,e)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.NodeInfo.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.NodeInfo;return proto.lnrpc.NodeInfo.deserializeBinaryFromReader(r,t)},proto.lnrpc.NodeInfo.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.LightningNode;t.readMessage(r,proto.lnrpc.LightningNode.deserializeBinaryFromReader),e.setNode(r);break;case 2:r=t.readUint32();e.setNumChannels(r);break;case 3:r=t.readInt64();e.setTotalCapacity(r);break;case 4:r=new proto.lnrpc.ChannelEdge;t.readMessage(r,proto.lnrpc.ChannelEdge.deserializeBinaryFromReader),e.addChannels(r);break;default:t.skipField()}}return e},proto.lnrpc.NodeInfo.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.NodeInfo.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.NodeInfo.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getNode())&&t.writeMessage(1,r,proto.lnrpc.LightningNode.serializeBinaryToWriter),0!==(r=e.getNumChannels())&&t.writeUint32(2,r),0!==(r=e.getTotalCapacity())&&t.writeInt64(3,r),(r=e.getChannelsList()).length>0&&t.writeRepeatedMessage(4,r,proto.lnrpc.ChannelEdge.serializeBinaryToWriter)},proto.lnrpc.NodeInfo.prototype.getNode=function(){return n.Message.getWrapperField(this,proto.lnrpc.LightningNode,1)},proto.lnrpc.NodeInfo.prototype.setNode=function(e){return n.Message.setWrapperField(this,1,e)},proto.lnrpc.NodeInfo.prototype.clearNode=function(){return this.setNode(void 0)},proto.lnrpc.NodeInfo.prototype.hasNode=function(){return null!=n.Message.getField(this,1)},proto.lnrpc.NodeInfo.prototype.getNumChannels=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.NodeInfo.prototype.setNumChannels=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.NodeInfo.prototype.getTotalCapacity=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.NodeInfo.prototype.setTotalCapacity=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.NodeInfo.prototype.getChannelsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.ChannelEdge,4)},proto.lnrpc.NodeInfo.prototype.setChannelsList=function(e){return n.Message.setRepeatedWrapperField(this,4,e)},proto.lnrpc.NodeInfo.prototype.addChannels=function(e,t){return n.Message.addToRepeatedWrapperField(this,4,e,proto.lnrpc.ChannelEdge,t)},proto.lnrpc.NodeInfo.prototype.clearChannelsList=function(){return this.setChannelsList([])},proto.lnrpc.LightningNode.repeatedFields_=[4],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.LightningNode.prototype.toObject=function(e){return proto.lnrpc.LightningNode.toObject(e,this)},proto.lnrpc.LightningNode.toObject=function(e,t){var r,o={lastUpdate:n.Message.getFieldWithDefault(t,1,0),pubKey:n.Message.getFieldWithDefault(t,2,""),alias:n.Message.getFieldWithDefault(t,3,""),addressesList:n.Message.toObjectList(t.getAddressesList(),proto.lnrpc.NodeAddress.toObject,e),color:n.Message.getFieldWithDefault(t,5,""),featuresMap:(r=t.getFeaturesMap())?r.toObject(e,proto.lnrpc.Feature.toObject):[]};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.LightningNode.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.LightningNode;return proto.lnrpc.LightningNode.deserializeBinaryFromReader(r,t)},proto.lnrpc.LightningNode.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint32();e.setLastUpdate(r);break;case 2:r=t.readString();e.setPubKey(r);break;case 3:r=t.readString();e.setAlias(r);break;case 4:r=new proto.lnrpc.NodeAddress;t.readMessage(r,proto.lnrpc.NodeAddress.deserializeBinaryFromReader),e.addAddresses(r);break;case 5:r=t.readString();e.setColor(r);break;case 6:r=e.getFeaturesMap();t.readMessage(r,(function(e,t){n.Map.deserializeBinary(e,t,n.BinaryReader.prototype.readUint32,n.BinaryReader.prototype.readMessage,proto.lnrpc.Feature.deserializeBinaryFromReader,0,new proto.lnrpc.Feature)}));break;default:t.skipField()}}return e},proto.lnrpc.LightningNode.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.LightningNode.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.LightningNode.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getLastUpdate())&&t.writeUint32(1,r),(r=e.getPubKey()).length>0&&t.writeString(2,r),(r=e.getAlias()).length>0&&t.writeString(3,r),(r=e.getAddressesList()).length>0&&t.writeRepeatedMessage(4,r,proto.lnrpc.NodeAddress.serializeBinaryToWriter),(r=e.getColor()).length>0&&t.writeString(5,r),(r=e.getFeaturesMap(!0))&&r.getLength()>0&&r.serializeBinary(6,t,n.BinaryWriter.prototype.writeUint32,n.BinaryWriter.prototype.writeMessage,proto.lnrpc.Feature.serializeBinaryToWriter)},proto.lnrpc.LightningNode.prototype.getLastUpdate=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.LightningNode.prototype.setLastUpdate=function(e){return n.Message.setProto3IntField(this,1,e)},proto.lnrpc.LightningNode.prototype.getPubKey=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.LightningNode.prototype.setPubKey=function(e){return n.Message.setProto3StringField(this,2,e)},proto.lnrpc.LightningNode.prototype.getAlias=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.lnrpc.LightningNode.prototype.setAlias=function(e){return n.Message.setProto3StringField(this,3,e)},proto.lnrpc.LightningNode.prototype.getAddressesList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.NodeAddress,4)},proto.lnrpc.LightningNode.prototype.setAddressesList=function(e){return n.Message.setRepeatedWrapperField(this,4,e)},proto.lnrpc.LightningNode.prototype.addAddresses=function(e,t){return n.Message.addToRepeatedWrapperField(this,4,e,proto.lnrpc.NodeAddress,t)},proto.lnrpc.LightningNode.prototype.clearAddressesList=function(){return this.setAddressesList([])},proto.lnrpc.LightningNode.prototype.getColor=function(){return n.Message.getFieldWithDefault(this,5,"")},proto.lnrpc.LightningNode.prototype.setColor=function(e){return n.Message.setProto3StringField(this,5,e)},proto.lnrpc.LightningNode.prototype.getFeaturesMap=function(e){return n.Message.getMapField(this,6,e,proto.lnrpc.Feature)},proto.lnrpc.LightningNode.prototype.clearFeaturesMap=function(){return this.getFeaturesMap().clear(),this},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.NodeAddress.prototype.toObject=function(e){return proto.lnrpc.NodeAddress.toObject(e,this)},proto.lnrpc.NodeAddress.toObject=function(e,t){var r={network:n.Message.getFieldWithDefault(t,1,""),addr:n.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.NodeAddress.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.NodeAddress;return proto.lnrpc.NodeAddress.deserializeBinaryFromReader(r,t)},proto.lnrpc.NodeAddress.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setNetwork(r);break;case 2:r=t.readString();e.setAddr(r);break;default:t.skipField()}}return e},proto.lnrpc.NodeAddress.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.NodeAddress.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.NodeAddress.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getNetwork()).length>0&&t.writeString(1,r),(r=e.getAddr()).length>0&&t.writeString(2,r)},proto.lnrpc.NodeAddress.prototype.getNetwork=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.NodeAddress.prototype.setNetwork=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.NodeAddress.prototype.getAddr=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.NodeAddress.prototype.setAddr=function(e){return n.Message.setProto3StringField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.RoutingPolicy.prototype.toObject=function(e){return proto.lnrpc.RoutingPolicy.toObject(e,this)},proto.lnrpc.RoutingPolicy.toObject=function(e,t){var r={timeLockDelta:n.Message.getFieldWithDefault(t,1,0),minHtlc:n.Message.getFieldWithDefault(t,2,0),feeBaseMsat:n.Message.getFieldWithDefault(t,3,0),feeRateMilliMsat:n.Message.getFieldWithDefault(t,4,0),disabled:n.Message.getBooleanFieldWithDefault(t,5,!1),maxHtlcMsat:n.Message.getFieldWithDefault(t,6,0),lastUpdate:n.Message.getFieldWithDefault(t,7,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.RoutingPolicy.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.RoutingPolicy;return proto.lnrpc.RoutingPolicy.deserializeBinaryFromReader(r,t)},proto.lnrpc.RoutingPolicy.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint32();e.setTimeLockDelta(r);break;case 2:r=t.readInt64();e.setMinHtlc(r);break;case 3:r=t.readInt64();e.setFeeBaseMsat(r);break;case 4:r=t.readInt64();e.setFeeRateMilliMsat(r);break;case 5:r=t.readBool();e.setDisabled(r);break;case 6:r=t.readUint64();e.setMaxHtlcMsat(r);break;case 7:r=t.readUint32();e.setLastUpdate(r);break;default:t.skipField()}}return e},proto.lnrpc.RoutingPolicy.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.RoutingPolicy.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.RoutingPolicy.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getTimeLockDelta())&&t.writeUint32(1,r),0!==(r=e.getMinHtlc())&&t.writeInt64(2,r),0!==(r=e.getFeeBaseMsat())&&t.writeInt64(3,r),0!==(r=e.getFeeRateMilliMsat())&&t.writeInt64(4,r),(r=e.getDisabled())&&t.writeBool(5,r),0!==(r=e.getMaxHtlcMsat())&&t.writeUint64(6,r),0!==(r=e.getLastUpdate())&&t.writeUint32(7,r)},proto.lnrpc.RoutingPolicy.prototype.getTimeLockDelta=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.RoutingPolicy.prototype.setTimeLockDelta=function(e){return n.Message.setProto3IntField(this,1,e)},proto.lnrpc.RoutingPolicy.prototype.getMinHtlc=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.RoutingPolicy.prototype.setMinHtlc=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.RoutingPolicy.prototype.getFeeBaseMsat=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.RoutingPolicy.prototype.setFeeBaseMsat=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.RoutingPolicy.prototype.getFeeRateMilliMsat=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.RoutingPolicy.prototype.setFeeRateMilliMsat=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.RoutingPolicy.prototype.getDisabled=function(){return n.Message.getBooleanFieldWithDefault(this,5,!1)},proto.lnrpc.RoutingPolicy.prototype.setDisabled=function(e){return n.Message.setProto3BooleanField(this,5,e)},proto.lnrpc.RoutingPolicy.prototype.getMaxHtlcMsat=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.RoutingPolicy.prototype.setMaxHtlcMsat=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.RoutingPolicy.prototype.getLastUpdate=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.lnrpc.RoutingPolicy.prototype.setLastUpdate=function(e){return n.Message.setProto3IntField(this,7,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChannelEdge.prototype.toObject=function(e){return proto.lnrpc.ChannelEdge.toObject(e,this)},proto.lnrpc.ChannelEdge.toObject=function(e,t){var r,o={channelId:n.Message.getFieldWithDefault(t,1,"0"),chanPoint:n.Message.getFieldWithDefault(t,2,""),lastUpdate:n.Message.getFieldWithDefault(t,3,0),node1Pub:n.Message.getFieldWithDefault(t,4,""),node2Pub:n.Message.getFieldWithDefault(t,5,""),capacity:n.Message.getFieldWithDefault(t,6,0),node1Policy:(r=t.getNode1Policy())&&proto.lnrpc.RoutingPolicy.toObject(e,r),node2Policy:(r=t.getNode2Policy())&&proto.lnrpc.RoutingPolicy.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.ChannelEdge.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChannelEdge;return proto.lnrpc.ChannelEdge.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChannelEdge.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint64String();e.setChannelId(r);break;case 2:r=t.readString();e.setChanPoint(r);break;case 3:r=t.readUint32();e.setLastUpdate(r);break;case 4:r=t.readString();e.setNode1Pub(r);break;case 5:r=t.readString();e.setNode2Pub(r);break;case 6:r=t.readInt64();e.setCapacity(r);break;case 7:r=new proto.lnrpc.RoutingPolicy;t.readMessage(r,proto.lnrpc.RoutingPolicy.deserializeBinaryFromReader),e.setNode1Policy(r);break;case 8:r=new proto.lnrpc.RoutingPolicy;t.readMessage(r,proto.lnrpc.RoutingPolicy.deserializeBinaryFromReader),e.setNode2Policy(r);break;default:t.skipField()}}return e},proto.lnrpc.ChannelEdge.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChannelEdge.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChannelEdge.serializeBinaryToWriter=function(e,t){var r=void 0;r=e.getChannelId(),0!==parseInt(r,10)&&t.writeUint64String(1,r),(r=e.getChanPoint()).length>0&&t.writeString(2,r),0!==(r=e.getLastUpdate())&&t.writeUint32(3,r),(r=e.getNode1Pub()).length>0&&t.writeString(4,r),(r=e.getNode2Pub()).length>0&&t.writeString(5,r),0!==(r=e.getCapacity())&&t.writeInt64(6,r),null!=(r=e.getNode1Policy())&&t.writeMessage(7,r,proto.lnrpc.RoutingPolicy.serializeBinaryToWriter),null!=(r=e.getNode2Policy())&&t.writeMessage(8,r,proto.lnrpc.RoutingPolicy.serializeBinaryToWriter)},proto.lnrpc.ChannelEdge.prototype.getChannelId=function(){return n.Message.getFieldWithDefault(this,1,"0")},proto.lnrpc.ChannelEdge.prototype.setChannelId=function(e){return n.Message.setProto3StringIntField(this,1,e)},proto.lnrpc.ChannelEdge.prototype.getChanPoint=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.ChannelEdge.prototype.setChanPoint=function(e){return n.Message.setProto3StringField(this,2,e)},proto.lnrpc.ChannelEdge.prototype.getLastUpdate=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.ChannelEdge.prototype.setLastUpdate=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.ChannelEdge.prototype.getNode1Pub=function(){return n.Message.getFieldWithDefault(this,4,"")},proto.lnrpc.ChannelEdge.prototype.setNode1Pub=function(e){return n.Message.setProto3StringField(this,4,e)},proto.lnrpc.ChannelEdge.prototype.getNode2Pub=function(){return n.Message.getFieldWithDefault(this,5,"")},proto.lnrpc.ChannelEdge.prototype.setNode2Pub=function(e){return n.Message.setProto3StringField(this,5,e)},proto.lnrpc.ChannelEdge.prototype.getCapacity=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.ChannelEdge.prototype.setCapacity=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.ChannelEdge.prototype.getNode1Policy=function(){return n.Message.getWrapperField(this,proto.lnrpc.RoutingPolicy,7)},proto.lnrpc.ChannelEdge.prototype.setNode1Policy=function(e){return n.Message.setWrapperField(this,7,e)},proto.lnrpc.ChannelEdge.prototype.clearNode1Policy=function(){return this.setNode1Policy(void 0)},proto.lnrpc.ChannelEdge.prototype.hasNode1Policy=function(){return null!=n.Message.getField(this,7)},proto.lnrpc.ChannelEdge.prototype.getNode2Policy=function(){return n.Message.getWrapperField(this,proto.lnrpc.RoutingPolicy,8)},proto.lnrpc.ChannelEdge.prototype.setNode2Policy=function(e){return n.Message.setWrapperField(this,8,e)},proto.lnrpc.ChannelEdge.prototype.clearNode2Policy=function(){return this.setNode2Policy(void 0)},proto.lnrpc.ChannelEdge.prototype.hasNode2Policy=function(){return null!=n.Message.getField(this,8)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChannelGraphRequest.prototype.toObject=function(e){return proto.lnrpc.ChannelGraphRequest.toObject(e,this)},proto.lnrpc.ChannelGraphRequest.toObject=function(e,t){var r={includeUnannounced:n.Message.getBooleanFieldWithDefault(t,1,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ChannelGraphRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChannelGraphRequest;return proto.lnrpc.ChannelGraphRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChannelGraphRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readBool();e.setIncludeUnannounced(r)}else t.skipField()}return e},proto.lnrpc.ChannelGraphRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChannelGraphRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChannelGraphRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getIncludeUnannounced())&&t.writeBool(1,r)},proto.lnrpc.ChannelGraphRequest.prototype.getIncludeUnannounced=function(){return n.Message.getBooleanFieldWithDefault(this,1,!1)},proto.lnrpc.ChannelGraphRequest.prototype.setIncludeUnannounced=function(e){return n.Message.setProto3BooleanField(this,1,e)},proto.lnrpc.ChannelGraph.repeatedFields_=[1,2],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChannelGraph.prototype.toObject=function(e){return proto.lnrpc.ChannelGraph.toObject(e,this)},proto.lnrpc.ChannelGraph.toObject=function(e,t){var r={nodesList:n.Message.toObjectList(t.getNodesList(),proto.lnrpc.LightningNode.toObject,e),edgesList:n.Message.toObjectList(t.getEdgesList(),proto.lnrpc.ChannelEdge.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ChannelGraph.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChannelGraph;return proto.lnrpc.ChannelGraph.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChannelGraph.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.LightningNode;t.readMessage(r,proto.lnrpc.LightningNode.deserializeBinaryFromReader),e.addNodes(r);break;case 2:r=new proto.lnrpc.ChannelEdge;t.readMessage(r,proto.lnrpc.ChannelEdge.deserializeBinaryFromReader),e.addEdges(r);break;default:t.skipField()}}return e},proto.lnrpc.ChannelGraph.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChannelGraph.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChannelGraph.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getNodesList()).length>0&&t.writeRepeatedMessage(1,r,proto.lnrpc.LightningNode.serializeBinaryToWriter),(r=e.getEdgesList()).length>0&&t.writeRepeatedMessage(2,r,proto.lnrpc.ChannelEdge.serializeBinaryToWriter)},proto.lnrpc.ChannelGraph.prototype.getNodesList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.LightningNode,1)},proto.lnrpc.ChannelGraph.prototype.setNodesList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.lnrpc.ChannelGraph.prototype.addNodes=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.lnrpc.LightningNode,t)},proto.lnrpc.ChannelGraph.prototype.clearNodesList=function(){return this.setNodesList([])},proto.lnrpc.ChannelGraph.prototype.getEdgesList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.ChannelEdge,2)},proto.lnrpc.ChannelGraph.prototype.setEdgesList=function(e){return n.Message.setRepeatedWrapperField(this,2,e)},proto.lnrpc.ChannelGraph.prototype.addEdges=function(e,t){return n.Message.addToRepeatedWrapperField(this,2,e,proto.lnrpc.ChannelEdge,t)},proto.lnrpc.ChannelGraph.prototype.clearEdgesList=function(){return this.setEdgesList([])},proto.lnrpc.NodeMetricsRequest.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.NodeMetricsRequest.prototype.toObject=function(e){return proto.lnrpc.NodeMetricsRequest.toObject(e,this)},proto.lnrpc.NodeMetricsRequest.toObject=function(e,t){var r,o={typesList:null==(r=n.Message.getRepeatedField(t,1))?void 0:r};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.NodeMetricsRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.NodeMetricsRequest;return proto.lnrpc.NodeMetricsRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.NodeMetricsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readPackedEnum();e.setTypesList(r)}else t.skipField()}return e},proto.lnrpc.NodeMetricsRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.NodeMetricsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.NodeMetricsRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getTypesList()).length>0&&t.writePackedEnum(1,r)},proto.lnrpc.NodeMetricsRequest.prototype.getTypesList=function(){return n.Message.getRepeatedField(this,1)},proto.lnrpc.NodeMetricsRequest.prototype.setTypesList=function(e){return n.Message.setField(this,1,e||[])},proto.lnrpc.NodeMetricsRequest.prototype.addTypes=function(e,t){return n.Message.addToRepeatedField(this,1,e,t)},proto.lnrpc.NodeMetricsRequest.prototype.clearTypesList=function(){return this.setTypesList([])},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.NodeMetricsResponse.prototype.toObject=function(e){return proto.lnrpc.NodeMetricsResponse.toObject(e,this)},proto.lnrpc.NodeMetricsResponse.toObject=function(e,t){var r,n={betweennessCentralityMap:(r=t.getBetweennessCentralityMap())?r.toObject(e,proto.lnrpc.FloatMetric.toObject):[]};return e&&(n.$jspbMessageInstance=t),n}),proto.lnrpc.NodeMetricsResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.NodeMetricsResponse;return proto.lnrpc.NodeMetricsResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.NodeMetricsResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=e.getBetweennessCentralityMap();t.readMessage(r,(function(e,t){n.Map.deserializeBinary(e,t,n.BinaryReader.prototype.readString,n.BinaryReader.prototype.readMessage,proto.lnrpc.FloatMetric.deserializeBinaryFromReader,"",new proto.lnrpc.FloatMetric)}))}else t.skipField()}return e},proto.lnrpc.NodeMetricsResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.NodeMetricsResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.NodeMetricsResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getBetweennessCentralityMap(!0))&&r.getLength()>0&&r.serializeBinary(1,t,n.BinaryWriter.prototype.writeString,n.BinaryWriter.prototype.writeMessage,proto.lnrpc.FloatMetric.serializeBinaryToWriter)},proto.lnrpc.NodeMetricsResponse.prototype.getBetweennessCentralityMap=function(e){return n.Message.getMapField(this,1,e,proto.lnrpc.FloatMetric)},proto.lnrpc.NodeMetricsResponse.prototype.clearBetweennessCentralityMap=function(){return this.getBetweennessCentralityMap().clear(),this},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.FloatMetric.prototype.toObject=function(e){return proto.lnrpc.FloatMetric.toObject(e,this)},proto.lnrpc.FloatMetric.toObject=function(e,t){var r={value:n.Message.getFloatingPointFieldWithDefault(t,1,0),normalizedValue:n.Message.getFloatingPointFieldWithDefault(t,2,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.FloatMetric.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.FloatMetric;return proto.lnrpc.FloatMetric.deserializeBinaryFromReader(r,t)},proto.lnrpc.FloatMetric.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readDouble();e.setValue(r);break;case 2:r=t.readDouble();e.setNormalizedValue(r);break;default:t.skipField()}}return e},proto.lnrpc.FloatMetric.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.FloatMetric.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.FloatMetric.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getValue())&&t.writeDouble(1,r),0!==(r=e.getNormalizedValue())&&t.writeDouble(2,r)},proto.lnrpc.FloatMetric.prototype.getValue=function(){return n.Message.getFloatingPointFieldWithDefault(this,1,0)},proto.lnrpc.FloatMetric.prototype.setValue=function(e){return n.Message.setProto3FloatField(this,1,e)},proto.lnrpc.FloatMetric.prototype.getNormalizedValue=function(){return n.Message.getFloatingPointFieldWithDefault(this,2,0)},proto.lnrpc.FloatMetric.prototype.setNormalizedValue=function(e){return n.Message.setProto3FloatField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChanInfoRequest.prototype.toObject=function(e){return proto.lnrpc.ChanInfoRequest.toObject(e,this)},proto.lnrpc.ChanInfoRequest.toObject=function(e,t){var r={chanId:n.Message.getFieldWithDefault(t,1,"0")};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ChanInfoRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChanInfoRequest;return proto.lnrpc.ChanInfoRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChanInfoRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readUint64String();e.setChanId(r)}else t.skipField()}return e},proto.lnrpc.ChanInfoRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChanInfoRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChanInfoRequest.serializeBinaryToWriter=function(e,t){var r;r=e.getChanId(),0!==parseInt(r,10)&&t.writeUint64String(1,r)},proto.lnrpc.ChanInfoRequest.prototype.getChanId=function(){return n.Message.getFieldWithDefault(this,1,"0")},proto.lnrpc.ChanInfoRequest.prototype.setChanId=function(e){return n.Message.setProto3StringIntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.NetworkInfoRequest.prototype.toObject=function(e){return proto.lnrpc.NetworkInfoRequest.toObject(e,this)},proto.lnrpc.NetworkInfoRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.NetworkInfoRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.NetworkInfoRequest;return proto.lnrpc.NetworkInfoRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.NetworkInfoRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.NetworkInfoRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.NetworkInfoRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.NetworkInfoRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.NetworkInfo.prototype.toObject=function(e){return proto.lnrpc.NetworkInfo.toObject(e,this)},proto.lnrpc.NetworkInfo.toObject=function(e,t){var r={graphDiameter:n.Message.getFieldWithDefault(t,1,0),avgOutDegree:n.Message.getFloatingPointFieldWithDefault(t,2,0),maxOutDegree:n.Message.getFieldWithDefault(t,3,0),numNodes:n.Message.getFieldWithDefault(t,4,0),numChannels:n.Message.getFieldWithDefault(t,5,0),totalNetworkCapacity:n.Message.getFieldWithDefault(t,6,0),avgChannelSize:n.Message.getFloatingPointFieldWithDefault(t,7,0),minChannelSize:n.Message.getFieldWithDefault(t,8,0),maxChannelSize:n.Message.getFieldWithDefault(t,9,0),medianChannelSizeSat:n.Message.getFieldWithDefault(t,10,0),numZombieChans:n.Message.getFieldWithDefault(t,11,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.NetworkInfo.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.NetworkInfo;return proto.lnrpc.NetworkInfo.deserializeBinaryFromReader(r,t)},proto.lnrpc.NetworkInfo.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint32();e.setGraphDiameter(r);break;case 2:r=t.readDouble();e.setAvgOutDegree(r);break;case 3:r=t.readUint32();e.setMaxOutDegree(r);break;case 4:r=t.readUint32();e.setNumNodes(r);break;case 5:r=t.readUint32();e.setNumChannels(r);break;case 6:r=t.readInt64();e.setTotalNetworkCapacity(r);break;case 7:r=t.readDouble();e.setAvgChannelSize(r);break;case 8:r=t.readInt64();e.setMinChannelSize(r);break;case 9:r=t.readInt64();e.setMaxChannelSize(r);break;case 10:r=t.readInt64();e.setMedianChannelSizeSat(r);break;case 11:r=t.readUint64();e.setNumZombieChans(r);break;default:t.skipField()}}return e},proto.lnrpc.NetworkInfo.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.NetworkInfo.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.NetworkInfo.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getGraphDiameter())&&t.writeUint32(1,r),0!==(r=e.getAvgOutDegree())&&t.writeDouble(2,r),0!==(r=e.getMaxOutDegree())&&t.writeUint32(3,r),0!==(r=e.getNumNodes())&&t.writeUint32(4,r),0!==(r=e.getNumChannels())&&t.writeUint32(5,r),0!==(r=e.getTotalNetworkCapacity())&&t.writeInt64(6,r),0!==(r=e.getAvgChannelSize())&&t.writeDouble(7,r),0!==(r=e.getMinChannelSize())&&t.writeInt64(8,r),0!==(r=e.getMaxChannelSize())&&t.writeInt64(9,r),0!==(r=e.getMedianChannelSizeSat())&&t.writeInt64(10,r),0!==(r=e.getNumZombieChans())&&t.writeUint64(11,r)},proto.lnrpc.NetworkInfo.prototype.getGraphDiameter=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.NetworkInfo.prototype.setGraphDiameter=function(e){return n.Message.setProto3IntField(this,1,e)},proto.lnrpc.NetworkInfo.prototype.getAvgOutDegree=function(){return n.Message.getFloatingPointFieldWithDefault(this,2,0)},proto.lnrpc.NetworkInfo.prototype.setAvgOutDegree=function(e){return n.Message.setProto3FloatField(this,2,e)},proto.lnrpc.NetworkInfo.prototype.getMaxOutDegree=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.NetworkInfo.prototype.setMaxOutDegree=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.NetworkInfo.prototype.getNumNodes=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.NetworkInfo.prototype.setNumNodes=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.NetworkInfo.prototype.getNumChannels=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.NetworkInfo.prototype.setNumChannels=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.NetworkInfo.prototype.getTotalNetworkCapacity=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.NetworkInfo.prototype.setTotalNetworkCapacity=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.NetworkInfo.prototype.getAvgChannelSize=function(){return n.Message.getFloatingPointFieldWithDefault(this,7,0)},proto.lnrpc.NetworkInfo.prototype.setAvgChannelSize=function(e){return n.Message.setProto3FloatField(this,7,e)},proto.lnrpc.NetworkInfo.prototype.getMinChannelSize=function(){return n.Message.getFieldWithDefault(this,8,0)},proto.lnrpc.NetworkInfo.prototype.setMinChannelSize=function(e){return n.Message.setProto3IntField(this,8,e)},proto.lnrpc.NetworkInfo.prototype.getMaxChannelSize=function(){return n.Message.getFieldWithDefault(this,9,0)},proto.lnrpc.NetworkInfo.prototype.setMaxChannelSize=function(e){return n.Message.setProto3IntField(this,9,e)},proto.lnrpc.NetworkInfo.prototype.getMedianChannelSizeSat=function(){return n.Message.getFieldWithDefault(this,10,0)},proto.lnrpc.NetworkInfo.prototype.setMedianChannelSizeSat=function(e){return n.Message.setProto3IntField(this,10,e)},proto.lnrpc.NetworkInfo.prototype.getNumZombieChans=function(){return n.Message.getFieldWithDefault(this,11,0)},proto.lnrpc.NetworkInfo.prototype.setNumZombieChans=function(e){return n.Message.setProto3IntField(this,11,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.StopRequest.prototype.toObject=function(e){return proto.lnrpc.StopRequest.toObject(e,this)},proto.lnrpc.StopRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.StopRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.StopRequest;return proto.lnrpc.StopRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.StopRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.StopRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.StopRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.StopRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.StopResponse.prototype.toObject=function(e){return proto.lnrpc.StopResponse.toObject(e,this)},proto.lnrpc.StopResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.StopResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.StopResponse;return proto.lnrpc.StopResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.StopResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.StopResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.StopResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.StopResponse.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.GraphTopologySubscription.prototype.toObject=function(e){return proto.lnrpc.GraphTopologySubscription.toObject(e,this)},proto.lnrpc.GraphTopologySubscription.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.GraphTopologySubscription.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.GraphTopologySubscription;return proto.lnrpc.GraphTopologySubscription.deserializeBinaryFromReader(r,t)},proto.lnrpc.GraphTopologySubscription.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.GraphTopologySubscription.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.GraphTopologySubscription.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.GraphTopologySubscription.serializeBinaryToWriter=function(e,t){},proto.lnrpc.GraphTopologyUpdate.repeatedFields_=[1,2,3],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.GraphTopologyUpdate.prototype.toObject=function(e){return proto.lnrpc.GraphTopologyUpdate.toObject(e,this)},proto.lnrpc.GraphTopologyUpdate.toObject=function(e,t){var r={nodeUpdatesList:n.Message.toObjectList(t.getNodeUpdatesList(),proto.lnrpc.NodeUpdate.toObject,e),channelUpdatesList:n.Message.toObjectList(t.getChannelUpdatesList(),proto.lnrpc.ChannelEdgeUpdate.toObject,e),closedChansList:n.Message.toObjectList(t.getClosedChansList(),proto.lnrpc.ClosedChannelUpdate.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.GraphTopologyUpdate.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.GraphTopologyUpdate;return proto.lnrpc.GraphTopologyUpdate.deserializeBinaryFromReader(r,t)},proto.lnrpc.GraphTopologyUpdate.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.NodeUpdate;t.readMessage(r,proto.lnrpc.NodeUpdate.deserializeBinaryFromReader),e.addNodeUpdates(r);break;case 2:r=new proto.lnrpc.ChannelEdgeUpdate;t.readMessage(r,proto.lnrpc.ChannelEdgeUpdate.deserializeBinaryFromReader),e.addChannelUpdates(r);break;case 3:r=new proto.lnrpc.ClosedChannelUpdate;t.readMessage(r,proto.lnrpc.ClosedChannelUpdate.deserializeBinaryFromReader),e.addClosedChans(r);break;default:t.skipField()}}return e},proto.lnrpc.GraphTopologyUpdate.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.GraphTopologyUpdate.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.GraphTopologyUpdate.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getNodeUpdatesList()).length>0&&t.writeRepeatedMessage(1,r,proto.lnrpc.NodeUpdate.serializeBinaryToWriter),(r=e.getChannelUpdatesList()).length>0&&t.writeRepeatedMessage(2,r,proto.lnrpc.ChannelEdgeUpdate.serializeBinaryToWriter),(r=e.getClosedChansList()).length>0&&t.writeRepeatedMessage(3,r,proto.lnrpc.ClosedChannelUpdate.serializeBinaryToWriter)},proto.lnrpc.GraphTopologyUpdate.prototype.getNodeUpdatesList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.NodeUpdate,1)},proto.lnrpc.GraphTopologyUpdate.prototype.setNodeUpdatesList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.lnrpc.GraphTopologyUpdate.prototype.addNodeUpdates=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.lnrpc.NodeUpdate,t)},proto.lnrpc.GraphTopologyUpdate.prototype.clearNodeUpdatesList=function(){return this.setNodeUpdatesList([])},proto.lnrpc.GraphTopologyUpdate.prototype.getChannelUpdatesList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.ChannelEdgeUpdate,2)},proto.lnrpc.GraphTopologyUpdate.prototype.setChannelUpdatesList=function(e){return n.Message.setRepeatedWrapperField(this,2,e)},proto.lnrpc.GraphTopologyUpdate.prototype.addChannelUpdates=function(e,t){return n.Message.addToRepeatedWrapperField(this,2,e,proto.lnrpc.ChannelEdgeUpdate,t)},proto.lnrpc.GraphTopologyUpdate.prototype.clearChannelUpdatesList=function(){return this.setChannelUpdatesList([])},proto.lnrpc.GraphTopologyUpdate.prototype.getClosedChansList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.ClosedChannelUpdate,3)},proto.lnrpc.GraphTopologyUpdate.prototype.setClosedChansList=function(e){return n.Message.setRepeatedWrapperField(this,3,e)},proto.lnrpc.GraphTopologyUpdate.prototype.addClosedChans=function(e,t){return n.Message.addToRepeatedWrapperField(this,3,e,proto.lnrpc.ClosedChannelUpdate,t)},proto.lnrpc.GraphTopologyUpdate.prototype.clearClosedChansList=function(){return this.setClosedChansList([])},proto.lnrpc.NodeUpdate.repeatedFields_=[1,7],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.NodeUpdate.prototype.toObject=function(e){return proto.lnrpc.NodeUpdate.toObject(e,this)},proto.lnrpc.NodeUpdate.toObject=function(e,t){var r,o={addressesList:null==(r=n.Message.getRepeatedField(t,1))?void 0:r,identityKey:n.Message.getFieldWithDefault(t,2,""),globalFeatures:t.getGlobalFeatures_asB64(),alias:n.Message.getFieldWithDefault(t,4,""),color:n.Message.getFieldWithDefault(t,5,""),nodeAddressesList:n.Message.toObjectList(t.getNodeAddressesList(),proto.lnrpc.NodeAddress.toObject,e),featuresMap:(r=t.getFeaturesMap())?r.toObject(e,proto.lnrpc.Feature.toObject):[]};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.NodeUpdate.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.NodeUpdate;return proto.lnrpc.NodeUpdate.deserializeBinaryFromReader(r,t)},proto.lnrpc.NodeUpdate.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.addAddresses(r);break;case 2:r=t.readString();e.setIdentityKey(r);break;case 3:r=t.readBytes();e.setGlobalFeatures(r);break;case 4:r=t.readString();e.setAlias(r);break;case 5:r=t.readString();e.setColor(r);break;case 7:r=new proto.lnrpc.NodeAddress;t.readMessage(r,proto.lnrpc.NodeAddress.deserializeBinaryFromReader),e.addNodeAddresses(r);break;case 6:r=e.getFeaturesMap();t.readMessage(r,(function(e,t){n.Map.deserializeBinary(e,t,n.BinaryReader.prototype.readUint32,n.BinaryReader.prototype.readMessage,proto.lnrpc.Feature.deserializeBinaryFromReader,0,new proto.lnrpc.Feature)}));break;default:t.skipField()}}return e},proto.lnrpc.NodeUpdate.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.NodeUpdate.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.NodeUpdate.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getAddressesList()).length>0&&t.writeRepeatedString(1,r),(r=e.getIdentityKey()).length>0&&t.writeString(2,r),(r=e.getGlobalFeatures_asU8()).length>0&&t.writeBytes(3,r),(r=e.getAlias()).length>0&&t.writeString(4,r),(r=e.getColor()).length>0&&t.writeString(5,r),(r=e.getNodeAddressesList()).length>0&&t.writeRepeatedMessage(7,r,proto.lnrpc.NodeAddress.serializeBinaryToWriter),(r=e.getFeaturesMap(!0))&&r.getLength()>0&&r.serializeBinary(6,t,n.BinaryWriter.prototype.writeUint32,n.BinaryWriter.prototype.writeMessage,proto.lnrpc.Feature.serializeBinaryToWriter)},proto.lnrpc.NodeUpdate.prototype.getAddressesList=function(){return n.Message.getRepeatedField(this,1)},proto.lnrpc.NodeUpdate.prototype.setAddressesList=function(e){return n.Message.setField(this,1,e||[])},proto.lnrpc.NodeUpdate.prototype.addAddresses=function(e,t){return n.Message.addToRepeatedField(this,1,e,t)},proto.lnrpc.NodeUpdate.prototype.clearAddressesList=function(){return this.setAddressesList([])},proto.lnrpc.NodeUpdate.prototype.getIdentityKey=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.NodeUpdate.prototype.setIdentityKey=function(e){return n.Message.setProto3StringField(this,2,e)},proto.lnrpc.NodeUpdate.prototype.getGlobalFeatures=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.lnrpc.NodeUpdate.prototype.getGlobalFeatures_asB64=function(){return n.Message.bytesAsB64(this.getGlobalFeatures())},proto.lnrpc.NodeUpdate.prototype.getGlobalFeatures_asU8=function(){return n.Message.bytesAsU8(this.getGlobalFeatures())},proto.lnrpc.NodeUpdate.prototype.setGlobalFeatures=function(e){return n.Message.setProto3BytesField(this,3,e)},proto.lnrpc.NodeUpdate.prototype.getAlias=function(){return n.Message.getFieldWithDefault(this,4,"")},proto.lnrpc.NodeUpdate.prototype.setAlias=function(e){return n.Message.setProto3StringField(this,4,e)},proto.lnrpc.NodeUpdate.prototype.getColor=function(){return n.Message.getFieldWithDefault(this,5,"")},proto.lnrpc.NodeUpdate.prototype.setColor=function(e){return n.Message.setProto3StringField(this,5,e)},proto.lnrpc.NodeUpdate.prototype.getNodeAddressesList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.NodeAddress,7)},proto.lnrpc.NodeUpdate.prototype.setNodeAddressesList=function(e){return n.Message.setRepeatedWrapperField(this,7,e)},proto.lnrpc.NodeUpdate.prototype.addNodeAddresses=function(e,t){return n.Message.addToRepeatedWrapperField(this,7,e,proto.lnrpc.NodeAddress,t)},proto.lnrpc.NodeUpdate.prototype.clearNodeAddressesList=function(){return this.setNodeAddressesList([])},proto.lnrpc.NodeUpdate.prototype.getFeaturesMap=function(e){return n.Message.getMapField(this,6,e,proto.lnrpc.Feature)},proto.lnrpc.NodeUpdate.prototype.clearFeaturesMap=function(){return this.getFeaturesMap().clear(),this},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChannelEdgeUpdate.prototype.toObject=function(e){return proto.lnrpc.ChannelEdgeUpdate.toObject(e,this)},proto.lnrpc.ChannelEdgeUpdate.toObject=function(e,t){var r,o={chanId:n.Message.getFieldWithDefault(t,1,"0"),chanPoint:(r=t.getChanPoint())&&proto.lnrpc.ChannelPoint.toObject(e,r),capacity:n.Message.getFieldWithDefault(t,3,0),routingPolicy:(r=t.getRoutingPolicy())&&proto.lnrpc.RoutingPolicy.toObject(e,r),advertisingNode:n.Message.getFieldWithDefault(t,5,""),connectingNode:n.Message.getFieldWithDefault(t,6,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.ChannelEdgeUpdate.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChannelEdgeUpdate;return proto.lnrpc.ChannelEdgeUpdate.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChannelEdgeUpdate.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint64String();e.setChanId(r);break;case 2:r=new proto.lnrpc.ChannelPoint;t.readMessage(r,proto.lnrpc.ChannelPoint.deserializeBinaryFromReader),e.setChanPoint(r);break;case 3:r=t.readInt64();e.setCapacity(r);break;case 4:r=new proto.lnrpc.RoutingPolicy;t.readMessage(r,proto.lnrpc.RoutingPolicy.deserializeBinaryFromReader),e.setRoutingPolicy(r);break;case 5:r=t.readString();e.setAdvertisingNode(r);break;case 6:r=t.readString();e.setConnectingNode(r);break;default:t.skipField()}}return e},proto.lnrpc.ChannelEdgeUpdate.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChannelEdgeUpdate.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChannelEdgeUpdate.serializeBinaryToWriter=function(e,t){var r=void 0;r=e.getChanId(),0!==parseInt(r,10)&&t.writeUint64String(1,r),null!=(r=e.getChanPoint())&&t.writeMessage(2,r,proto.lnrpc.ChannelPoint.serializeBinaryToWriter),0!==(r=e.getCapacity())&&t.writeInt64(3,r),null!=(r=e.getRoutingPolicy())&&t.writeMessage(4,r,proto.lnrpc.RoutingPolicy.serializeBinaryToWriter),(r=e.getAdvertisingNode()).length>0&&t.writeString(5,r),(r=e.getConnectingNode()).length>0&&t.writeString(6,r)},proto.lnrpc.ChannelEdgeUpdate.prototype.getChanId=function(){return n.Message.getFieldWithDefault(this,1,"0")},proto.lnrpc.ChannelEdgeUpdate.prototype.setChanId=function(e){return n.Message.setProto3StringIntField(this,1,e)},proto.lnrpc.ChannelEdgeUpdate.prototype.getChanPoint=function(){return n.Message.getWrapperField(this,proto.lnrpc.ChannelPoint,2)},proto.lnrpc.ChannelEdgeUpdate.prototype.setChanPoint=function(e){return n.Message.setWrapperField(this,2,e)},proto.lnrpc.ChannelEdgeUpdate.prototype.clearChanPoint=function(){return this.setChanPoint(void 0)},proto.lnrpc.ChannelEdgeUpdate.prototype.hasChanPoint=function(){return null!=n.Message.getField(this,2)},proto.lnrpc.ChannelEdgeUpdate.prototype.getCapacity=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.ChannelEdgeUpdate.prototype.setCapacity=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.ChannelEdgeUpdate.prototype.getRoutingPolicy=function(){return n.Message.getWrapperField(this,proto.lnrpc.RoutingPolicy,4)},proto.lnrpc.ChannelEdgeUpdate.prototype.setRoutingPolicy=function(e){return n.Message.setWrapperField(this,4,e)},proto.lnrpc.ChannelEdgeUpdate.prototype.clearRoutingPolicy=function(){return this.setRoutingPolicy(void 0)},proto.lnrpc.ChannelEdgeUpdate.prototype.hasRoutingPolicy=function(){return null!=n.Message.getField(this,4)},proto.lnrpc.ChannelEdgeUpdate.prototype.getAdvertisingNode=function(){return n.Message.getFieldWithDefault(this,5,"")},proto.lnrpc.ChannelEdgeUpdate.prototype.setAdvertisingNode=function(e){return n.Message.setProto3StringField(this,5,e)},proto.lnrpc.ChannelEdgeUpdate.prototype.getConnectingNode=function(){return n.Message.getFieldWithDefault(this,6,"")},proto.lnrpc.ChannelEdgeUpdate.prototype.setConnectingNode=function(e){return n.Message.setProto3StringField(this,6,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ClosedChannelUpdate.prototype.toObject=function(e){return proto.lnrpc.ClosedChannelUpdate.toObject(e,this)},proto.lnrpc.ClosedChannelUpdate.toObject=function(e,t){var r,o={chanId:n.Message.getFieldWithDefault(t,1,"0"),capacity:n.Message.getFieldWithDefault(t,2,0),closedHeight:n.Message.getFieldWithDefault(t,3,0),chanPoint:(r=t.getChanPoint())&&proto.lnrpc.ChannelPoint.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.ClosedChannelUpdate.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ClosedChannelUpdate;return proto.lnrpc.ClosedChannelUpdate.deserializeBinaryFromReader(r,t)},proto.lnrpc.ClosedChannelUpdate.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint64String();e.setChanId(r);break;case 2:r=t.readInt64();e.setCapacity(r);break;case 3:r=t.readUint32();e.setClosedHeight(r);break;case 4:r=new proto.lnrpc.ChannelPoint;t.readMessage(r,proto.lnrpc.ChannelPoint.deserializeBinaryFromReader),e.setChanPoint(r);break;default:t.skipField()}}return e},proto.lnrpc.ClosedChannelUpdate.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ClosedChannelUpdate.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ClosedChannelUpdate.serializeBinaryToWriter=function(e,t){var r=void 0;r=e.getChanId(),0!==parseInt(r,10)&&t.writeUint64String(1,r),0!==(r=e.getCapacity())&&t.writeInt64(2,r),0!==(r=e.getClosedHeight())&&t.writeUint32(3,r),null!=(r=e.getChanPoint())&&t.writeMessage(4,r,proto.lnrpc.ChannelPoint.serializeBinaryToWriter)},proto.lnrpc.ClosedChannelUpdate.prototype.getChanId=function(){return n.Message.getFieldWithDefault(this,1,"0")},proto.lnrpc.ClosedChannelUpdate.prototype.setChanId=function(e){return n.Message.setProto3StringIntField(this,1,e)},proto.lnrpc.ClosedChannelUpdate.prototype.getCapacity=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.ClosedChannelUpdate.prototype.setCapacity=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.ClosedChannelUpdate.prototype.getClosedHeight=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.ClosedChannelUpdate.prototype.setClosedHeight=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.ClosedChannelUpdate.prototype.getChanPoint=function(){return n.Message.getWrapperField(this,proto.lnrpc.ChannelPoint,4)},proto.lnrpc.ClosedChannelUpdate.prototype.setChanPoint=function(e){return n.Message.setWrapperField(this,4,e)},proto.lnrpc.ClosedChannelUpdate.prototype.clearChanPoint=function(){return this.setChanPoint(void 0)},proto.lnrpc.ClosedChannelUpdate.prototype.hasChanPoint=function(){return null!=n.Message.getField(this,4)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.HopHint.prototype.toObject=function(e){return proto.lnrpc.HopHint.toObject(e,this)},proto.lnrpc.HopHint.toObject=function(e,t){var r={nodeId:n.Message.getFieldWithDefault(t,1,""),chanId:n.Message.getFieldWithDefault(t,2,"0"),feeBaseMsat:n.Message.getFieldWithDefault(t,3,0),feeProportionalMillionths:n.Message.getFieldWithDefault(t,4,0),cltvExpiryDelta:n.Message.getFieldWithDefault(t,5,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.HopHint.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.HopHint;return proto.lnrpc.HopHint.deserializeBinaryFromReader(r,t)},proto.lnrpc.HopHint.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setNodeId(r);break;case 2:r=t.readUint64String();e.setChanId(r);break;case 3:r=t.readUint32();e.setFeeBaseMsat(r);break;case 4:r=t.readUint32();e.setFeeProportionalMillionths(r);break;case 5:r=t.readUint32();e.setCltvExpiryDelta(r);break;default:t.skipField()}}return e},proto.lnrpc.HopHint.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.HopHint.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.HopHint.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getNodeId()).length>0&&t.writeString(1,r),r=e.getChanId(),0!==parseInt(r,10)&&t.writeUint64String(2,r),0!==(r=e.getFeeBaseMsat())&&t.writeUint32(3,r),0!==(r=e.getFeeProportionalMillionths())&&t.writeUint32(4,r),0!==(r=e.getCltvExpiryDelta())&&t.writeUint32(5,r)},proto.lnrpc.HopHint.prototype.getNodeId=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.HopHint.prototype.setNodeId=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.HopHint.prototype.getChanId=function(){return n.Message.getFieldWithDefault(this,2,"0")},proto.lnrpc.HopHint.prototype.setChanId=function(e){return n.Message.setProto3StringIntField(this,2,e)},proto.lnrpc.HopHint.prototype.getFeeBaseMsat=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.HopHint.prototype.setFeeBaseMsat=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.HopHint.prototype.getFeeProportionalMillionths=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.HopHint.prototype.setFeeProportionalMillionths=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.HopHint.prototype.getCltvExpiryDelta=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.HopHint.prototype.setCltvExpiryDelta=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.RouteHint.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.RouteHint.prototype.toObject=function(e){return proto.lnrpc.RouteHint.toObject(e,this)},proto.lnrpc.RouteHint.toObject=function(e,t){var r={hopHintsList:n.Message.toObjectList(t.getHopHintsList(),proto.lnrpc.HopHint.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.RouteHint.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.RouteHint;return proto.lnrpc.RouteHint.deserializeBinaryFromReader(r,t)},proto.lnrpc.RouteHint.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.lnrpc.HopHint;t.readMessage(r,proto.lnrpc.HopHint.deserializeBinaryFromReader),e.addHopHints(r)}else t.skipField()}return e},proto.lnrpc.RouteHint.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.RouteHint.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.RouteHint.serializeBinaryToWriter=function(e,t){var r;(r=e.getHopHintsList()).length>0&&t.writeRepeatedMessage(1,r,proto.lnrpc.HopHint.serializeBinaryToWriter)},proto.lnrpc.RouteHint.prototype.getHopHintsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.HopHint,1)},proto.lnrpc.RouteHint.prototype.setHopHintsList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.lnrpc.RouteHint.prototype.addHopHints=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.lnrpc.HopHint,t)},proto.lnrpc.RouteHint.prototype.clearHopHintsList=function(){return this.setHopHintsList([])},proto.lnrpc.Invoice.repeatedFields_=[14,22],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.Invoice.prototype.toObject=function(e){return proto.lnrpc.Invoice.toObject(e,this)},proto.lnrpc.Invoice.toObject=function(e,t){var r,o={memo:n.Message.getFieldWithDefault(t,1,""),rPreimage:t.getRPreimage_asB64(),rHash:t.getRHash_asB64(),value:n.Message.getFieldWithDefault(t,5,0),valueMsat:n.Message.getFieldWithDefault(t,23,0),settled:n.Message.getBooleanFieldWithDefault(t,6,!1),creationDate:n.Message.getFieldWithDefault(t,7,0),settleDate:n.Message.getFieldWithDefault(t,8,0),paymentRequest:n.Message.getFieldWithDefault(t,9,""),descriptionHash:t.getDescriptionHash_asB64(),expiry:n.Message.getFieldWithDefault(t,11,0),fallbackAddr:n.Message.getFieldWithDefault(t,12,""),cltvExpiry:n.Message.getFieldWithDefault(t,13,0),routeHintsList:n.Message.toObjectList(t.getRouteHintsList(),proto.lnrpc.RouteHint.toObject,e),pb_private:n.Message.getBooleanFieldWithDefault(t,15,!1),addIndex:n.Message.getFieldWithDefault(t,16,0),settleIndex:n.Message.getFieldWithDefault(t,17,0),amtPaid:n.Message.getFieldWithDefault(t,18,0),amtPaidSat:n.Message.getFieldWithDefault(t,19,0),amtPaidMsat:n.Message.getFieldWithDefault(t,20,0),state:n.Message.getFieldWithDefault(t,21,0),htlcsList:n.Message.toObjectList(t.getHtlcsList(),proto.lnrpc.InvoiceHTLC.toObject,e),featuresMap:(r=t.getFeaturesMap())?r.toObject(e,proto.lnrpc.Feature.toObject):[],isKeysend:n.Message.getBooleanFieldWithDefault(t,25,!1),paymentAddr:t.getPaymentAddr_asB64(),isAmp:n.Message.getBooleanFieldWithDefault(t,27,!1)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.Invoice.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.Invoice;return proto.lnrpc.Invoice.deserializeBinaryFromReader(r,t)},proto.lnrpc.Invoice.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setMemo(r);break;case 3:r=t.readBytes();e.setRPreimage(r);break;case 4:r=t.readBytes();e.setRHash(r);break;case 5:r=t.readInt64();e.setValue(r);break;case 23:r=t.readInt64();e.setValueMsat(r);break;case 6:r=t.readBool();e.setSettled(r);break;case 7:r=t.readInt64();e.setCreationDate(r);break;case 8:r=t.readInt64();e.setSettleDate(r);break;case 9:r=t.readString();e.setPaymentRequest(r);break;case 10:r=t.readBytes();e.setDescriptionHash(r);break;case 11:r=t.readInt64();e.setExpiry(r);break;case 12:r=t.readString();e.setFallbackAddr(r);break;case 13:r=t.readUint64();e.setCltvExpiry(r);break;case 14:r=new proto.lnrpc.RouteHint;t.readMessage(r,proto.lnrpc.RouteHint.deserializeBinaryFromReader),e.addRouteHints(r);break;case 15:r=t.readBool();e.setPrivate(r);break;case 16:r=t.readUint64();e.setAddIndex(r);break;case 17:r=t.readUint64();e.setSettleIndex(r);break;case 18:r=t.readInt64();e.setAmtPaid(r);break;case 19:r=t.readInt64();e.setAmtPaidSat(r);break;case 20:r=t.readInt64();e.setAmtPaidMsat(r);break;case 21:r=t.readEnum();e.setState(r);break;case 22:r=new proto.lnrpc.InvoiceHTLC;t.readMessage(r,proto.lnrpc.InvoiceHTLC.deserializeBinaryFromReader),e.addHtlcs(r);break;case 24:r=e.getFeaturesMap();t.readMessage(r,(function(e,t){n.Map.deserializeBinary(e,t,n.BinaryReader.prototype.readUint32,n.BinaryReader.prototype.readMessage,proto.lnrpc.Feature.deserializeBinaryFromReader,0,new proto.lnrpc.Feature)}));break;case 25:r=t.readBool();e.setIsKeysend(r);break;case 26:r=t.readBytes();e.setPaymentAddr(r);break;case 27:r=t.readBool();e.setIsAmp(r);break;default:t.skipField()}}return e},proto.lnrpc.Invoice.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.Invoice.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.Invoice.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getMemo()).length>0&&t.writeString(1,r),(r=e.getRPreimage_asU8()).length>0&&t.writeBytes(3,r),(r=e.getRHash_asU8()).length>0&&t.writeBytes(4,r),0!==(r=e.getValue())&&t.writeInt64(5,r),0!==(r=e.getValueMsat())&&t.writeInt64(23,r),(r=e.getSettled())&&t.writeBool(6,r),0!==(r=e.getCreationDate())&&t.writeInt64(7,r),0!==(r=e.getSettleDate())&&t.writeInt64(8,r),(r=e.getPaymentRequest()).length>0&&t.writeString(9,r),(r=e.getDescriptionHash_asU8()).length>0&&t.writeBytes(10,r),0!==(r=e.getExpiry())&&t.writeInt64(11,r),(r=e.getFallbackAddr()).length>0&&t.writeString(12,r),0!==(r=e.getCltvExpiry())&&t.writeUint64(13,r),(r=e.getRouteHintsList()).length>0&&t.writeRepeatedMessage(14,r,proto.lnrpc.RouteHint.serializeBinaryToWriter),(r=e.getPrivate())&&t.writeBool(15,r),0!==(r=e.getAddIndex())&&t.writeUint64(16,r),0!==(r=e.getSettleIndex())&&t.writeUint64(17,r),0!==(r=e.getAmtPaid())&&t.writeInt64(18,r),0!==(r=e.getAmtPaidSat())&&t.writeInt64(19,r),0!==(r=e.getAmtPaidMsat())&&t.writeInt64(20,r),0!==(r=e.getState())&&t.writeEnum(21,r),(r=e.getHtlcsList()).length>0&&t.writeRepeatedMessage(22,r,proto.lnrpc.InvoiceHTLC.serializeBinaryToWriter),(r=e.getFeaturesMap(!0))&&r.getLength()>0&&r.serializeBinary(24,t,n.BinaryWriter.prototype.writeUint32,n.BinaryWriter.prototype.writeMessage,proto.lnrpc.Feature.serializeBinaryToWriter),(r=e.getIsKeysend())&&t.writeBool(25,r),(r=e.getPaymentAddr_asU8()).length>0&&t.writeBytes(26,r),(r=e.getIsAmp())&&t.writeBool(27,r)},proto.lnrpc.Invoice.InvoiceState={OPEN:0,SETTLED:1,CANCELED:2,ACCEPTED:3},proto.lnrpc.Invoice.prototype.getMemo=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.Invoice.prototype.setMemo=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.Invoice.prototype.getRPreimage=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.lnrpc.Invoice.prototype.getRPreimage_asB64=function(){return n.Message.bytesAsB64(this.getRPreimage())},proto.lnrpc.Invoice.prototype.getRPreimage_asU8=function(){return n.Message.bytesAsU8(this.getRPreimage())},proto.lnrpc.Invoice.prototype.setRPreimage=function(e){return n.Message.setProto3BytesField(this,3,e)},proto.lnrpc.Invoice.prototype.getRHash=function(){return n.Message.getFieldWithDefault(this,4,"")},proto.lnrpc.Invoice.prototype.getRHash_asB64=function(){return n.Message.bytesAsB64(this.getRHash())},proto.lnrpc.Invoice.prototype.getRHash_asU8=function(){return n.Message.bytesAsU8(this.getRHash())},proto.lnrpc.Invoice.prototype.setRHash=function(e){return n.Message.setProto3BytesField(this,4,e)},proto.lnrpc.Invoice.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.Invoice.prototype.setValue=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.Invoice.prototype.getValueMsat=function(){return n.Message.getFieldWithDefault(this,23,0)},proto.lnrpc.Invoice.prototype.setValueMsat=function(e){return n.Message.setProto3IntField(this,23,e)},proto.lnrpc.Invoice.prototype.getSettled=function(){return n.Message.getBooleanFieldWithDefault(this,6,!1)},proto.lnrpc.Invoice.prototype.setSettled=function(e){return n.Message.setProto3BooleanField(this,6,e)},proto.lnrpc.Invoice.prototype.getCreationDate=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.lnrpc.Invoice.prototype.setCreationDate=function(e){return n.Message.setProto3IntField(this,7,e)},proto.lnrpc.Invoice.prototype.getSettleDate=function(){return n.Message.getFieldWithDefault(this,8,0)},proto.lnrpc.Invoice.prototype.setSettleDate=function(e){return n.Message.setProto3IntField(this,8,e)},proto.lnrpc.Invoice.prototype.getPaymentRequest=function(){return n.Message.getFieldWithDefault(this,9,"")},proto.lnrpc.Invoice.prototype.setPaymentRequest=function(e){return n.Message.setProto3StringField(this,9,e)},proto.lnrpc.Invoice.prototype.getDescriptionHash=function(){return n.Message.getFieldWithDefault(this,10,"")},proto.lnrpc.Invoice.prototype.getDescriptionHash_asB64=function(){return n.Message.bytesAsB64(this.getDescriptionHash())},proto.lnrpc.Invoice.prototype.getDescriptionHash_asU8=function(){return n.Message.bytesAsU8(this.getDescriptionHash())},proto.lnrpc.Invoice.prototype.setDescriptionHash=function(e){return n.Message.setProto3BytesField(this,10,e)},proto.lnrpc.Invoice.prototype.getExpiry=function(){return n.Message.getFieldWithDefault(this,11,0)},proto.lnrpc.Invoice.prototype.setExpiry=function(e){return n.Message.setProto3IntField(this,11,e)},proto.lnrpc.Invoice.prototype.getFallbackAddr=function(){return n.Message.getFieldWithDefault(this,12,"")},proto.lnrpc.Invoice.prototype.setFallbackAddr=function(e){return n.Message.setProto3StringField(this,12,e)},proto.lnrpc.Invoice.prototype.getCltvExpiry=function(){return n.Message.getFieldWithDefault(this,13,0)},proto.lnrpc.Invoice.prototype.setCltvExpiry=function(e){return n.Message.setProto3IntField(this,13,e)},proto.lnrpc.Invoice.prototype.getRouteHintsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.RouteHint,14)},proto.lnrpc.Invoice.prototype.setRouteHintsList=function(e){return n.Message.setRepeatedWrapperField(this,14,e)},proto.lnrpc.Invoice.prototype.addRouteHints=function(e,t){return n.Message.addToRepeatedWrapperField(this,14,e,proto.lnrpc.RouteHint,t)},proto.lnrpc.Invoice.prototype.clearRouteHintsList=function(){return this.setRouteHintsList([])},proto.lnrpc.Invoice.prototype.getPrivate=function(){return n.Message.getBooleanFieldWithDefault(this,15,!1)},proto.lnrpc.Invoice.prototype.setPrivate=function(e){return n.Message.setProto3BooleanField(this,15,e)},proto.lnrpc.Invoice.prototype.getAddIndex=function(){return n.Message.getFieldWithDefault(this,16,0)},proto.lnrpc.Invoice.prototype.setAddIndex=function(e){return n.Message.setProto3IntField(this,16,e)},proto.lnrpc.Invoice.prototype.getSettleIndex=function(){return n.Message.getFieldWithDefault(this,17,0)},proto.lnrpc.Invoice.prototype.setSettleIndex=function(e){return n.Message.setProto3IntField(this,17,e)},proto.lnrpc.Invoice.prototype.getAmtPaid=function(){return n.Message.getFieldWithDefault(this,18,0)},proto.lnrpc.Invoice.prototype.setAmtPaid=function(e){return n.Message.setProto3IntField(this,18,e)},proto.lnrpc.Invoice.prototype.getAmtPaidSat=function(){return n.Message.getFieldWithDefault(this,19,0)},proto.lnrpc.Invoice.prototype.setAmtPaidSat=function(e){return n.Message.setProto3IntField(this,19,e)},proto.lnrpc.Invoice.prototype.getAmtPaidMsat=function(){return n.Message.getFieldWithDefault(this,20,0)},proto.lnrpc.Invoice.prototype.setAmtPaidMsat=function(e){return n.Message.setProto3IntField(this,20,e)},proto.lnrpc.Invoice.prototype.getState=function(){return n.Message.getFieldWithDefault(this,21,0)},proto.lnrpc.Invoice.prototype.setState=function(e){return n.Message.setProto3EnumField(this,21,e)},proto.lnrpc.Invoice.prototype.getHtlcsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.InvoiceHTLC,22)},proto.lnrpc.Invoice.prototype.setHtlcsList=function(e){return n.Message.setRepeatedWrapperField(this,22,e)},proto.lnrpc.Invoice.prototype.addHtlcs=function(e,t){return n.Message.addToRepeatedWrapperField(this,22,e,proto.lnrpc.InvoiceHTLC,t)},proto.lnrpc.Invoice.prototype.clearHtlcsList=function(){return this.setHtlcsList([])},proto.lnrpc.Invoice.prototype.getFeaturesMap=function(e){return n.Message.getMapField(this,24,e,proto.lnrpc.Feature)},proto.lnrpc.Invoice.prototype.clearFeaturesMap=function(){return this.getFeaturesMap().clear(),this},proto.lnrpc.Invoice.prototype.getIsKeysend=function(){return n.Message.getBooleanFieldWithDefault(this,25,!1)},proto.lnrpc.Invoice.prototype.setIsKeysend=function(e){return n.Message.setProto3BooleanField(this,25,e)},proto.lnrpc.Invoice.prototype.getPaymentAddr=function(){return n.Message.getFieldWithDefault(this,26,"")},proto.lnrpc.Invoice.prototype.getPaymentAddr_asB64=function(){return n.Message.bytesAsB64(this.getPaymentAddr())},proto.lnrpc.Invoice.prototype.getPaymentAddr_asU8=function(){return n.Message.bytesAsU8(this.getPaymentAddr())},proto.lnrpc.Invoice.prototype.setPaymentAddr=function(e){return n.Message.setProto3BytesField(this,26,e)},proto.lnrpc.Invoice.prototype.getIsAmp=function(){return n.Message.getBooleanFieldWithDefault(this,27,!1)},proto.lnrpc.Invoice.prototype.setIsAmp=function(e){return n.Message.setProto3BooleanField(this,27,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.InvoiceHTLC.prototype.toObject=function(e){return proto.lnrpc.InvoiceHTLC.toObject(e,this)},proto.lnrpc.InvoiceHTLC.toObject=function(e,t){var r,o={chanId:n.Message.getFieldWithDefault(t,1,"0"),htlcIndex:n.Message.getFieldWithDefault(t,2,0),amtMsat:n.Message.getFieldWithDefault(t,3,0),acceptHeight:n.Message.getFieldWithDefault(t,4,0),acceptTime:n.Message.getFieldWithDefault(t,5,0),resolveTime:n.Message.getFieldWithDefault(t,6,0),expiryHeight:n.Message.getFieldWithDefault(t,7,0),state:n.Message.getFieldWithDefault(t,8,0),customRecordsMap:(r=t.getCustomRecordsMap())?r.toObject(e,void 0):[],mppTotalAmtMsat:n.Message.getFieldWithDefault(t,10,0),amp:(r=t.getAmp())&&proto.lnrpc.AMP.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.InvoiceHTLC.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.InvoiceHTLC;return proto.lnrpc.InvoiceHTLC.deserializeBinaryFromReader(r,t)},proto.lnrpc.InvoiceHTLC.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint64String();e.setChanId(r);break;case 2:r=t.readUint64();e.setHtlcIndex(r);break;case 3:r=t.readUint64();e.setAmtMsat(r);break;case 4:r=t.readInt32();e.setAcceptHeight(r);break;case 5:r=t.readInt64();e.setAcceptTime(r);break;case 6:r=t.readInt64();e.setResolveTime(r);break;case 7:r=t.readInt32();e.setExpiryHeight(r);break;case 8:r=t.readEnum();e.setState(r);break;case 9:r=e.getCustomRecordsMap();t.readMessage(r,(function(e,t){n.Map.deserializeBinary(e,t,n.BinaryReader.prototype.readUint64,n.BinaryReader.prototype.readBytes,null,0,"")}));break;case 10:r=t.readUint64();e.setMppTotalAmtMsat(r);break;case 11:r=new proto.lnrpc.AMP;t.readMessage(r,proto.lnrpc.AMP.deserializeBinaryFromReader),e.setAmp(r);break;default:t.skipField()}}return e},proto.lnrpc.InvoiceHTLC.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.InvoiceHTLC.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.InvoiceHTLC.serializeBinaryToWriter=function(e,t){var r=void 0;r=e.getChanId(),0!==parseInt(r,10)&&t.writeUint64String(1,r),0!==(r=e.getHtlcIndex())&&t.writeUint64(2,r),0!==(r=e.getAmtMsat())&&t.writeUint64(3,r),0!==(r=e.getAcceptHeight())&&t.writeInt32(4,r),0!==(r=e.getAcceptTime())&&t.writeInt64(5,r),0!==(r=e.getResolveTime())&&t.writeInt64(6,r),0!==(r=e.getExpiryHeight())&&t.writeInt32(7,r),0!==(r=e.getState())&&t.writeEnum(8,r),(r=e.getCustomRecordsMap(!0))&&r.getLength()>0&&r.serializeBinary(9,t,n.BinaryWriter.prototype.writeUint64,n.BinaryWriter.prototype.writeBytes),0!==(r=e.getMppTotalAmtMsat())&&t.writeUint64(10,r),null!=(r=e.getAmp())&&t.writeMessage(11,r,proto.lnrpc.AMP.serializeBinaryToWriter)},proto.lnrpc.InvoiceHTLC.prototype.getChanId=function(){return n.Message.getFieldWithDefault(this,1,"0")},proto.lnrpc.InvoiceHTLC.prototype.setChanId=function(e){return n.Message.setProto3StringIntField(this,1,e)},proto.lnrpc.InvoiceHTLC.prototype.getHtlcIndex=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.InvoiceHTLC.prototype.setHtlcIndex=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.InvoiceHTLC.prototype.getAmtMsat=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.InvoiceHTLC.prototype.setAmtMsat=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.InvoiceHTLC.prototype.getAcceptHeight=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.InvoiceHTLC.prototype.setAcceptHeight=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.InvoiceHTLC.prototype.getAcceptTime=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.InvoiceHTLC.prototype.setAcceptTime=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.InvoiceHTLC.prototype.getResolveTime=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.InvoiceHTLC.prototype.setResolveTime=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.InvoiceHTLC.prototype.getExpiryHeight=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.lnrpc.InvoiceHTLC.prototype.setExpiryHeight=function(e){return n.Message.setProto3IntField(this,7,e)},proto.lnrpc.InvoiceHTLC.prototype.getState=function(){return n.Message.getFieldWithDefault(this,8,0)},proto.lnrpc.InvoiceHTLC.prototype.setState=function(e){return n.Message.setProto3EnumField(this,8,e)},proto.lnrpc.InvoiceHTLC.prototype.getCustomRecordsMap=function(e){return n.Message.getMapField(this,9,e,null)},proto.lnrpc.InvoiceHTLC.prototype.clearCustomRecordsMap=function(){return this.getCustomRecordsMap().clear(),this},proto.lnrpc.InvoiceHTLC.prototype.getMppTotalAmtMsat=function(){return n.Message.getFieldWithDefault(this,10,0)},proto.lnrpc.InvoiceHTLC.prototype.setMppTotalAmtMsat=function(e){return n.Message.setProto3IntField(this,10,e)},proto.lnrpc.InvoiceHTLC.prototype.getAmp=function(){return n.Message.getWrapperField(this,proto.lnrpc.AMP,11)},proto.lnrpc.InvoiceHTLC.prototype.setAmp=function(e){return n.Message.setWrapperField(this,11,e)},proto.lnrpc.InvoiceHTLC.prototype.clearAmp=function(){return this.setAmp(void 0)},proto.lnrpc.InvoiceHTLC.prototype.hasAmp=function(){return null!=n.Message.getField(this,11)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.AMP.prototype.toObject=function(e){return proto.lnrpc.AMP.toObject(e,this)},proto.lnrpc.AMP.toObject=function(e,t){var r={rootShare:t.getRootShare_asB64(),setId:t.getSetId_asB64(),childIndex:n.Message.getFieldWithDefault(t,3,0),hash:t.getHash_asB64(),preimage:t.getPreimage_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.AMP.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.AMP;return proto.lnrpc.AMP.deserializeBinaryFromReader(r,t)},proto.lnrpc.AMP.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setRootShare(r);break;case 2:r=t.readBytes();e.setSetId(r);break;case 3:r=t.readUint32();e.setChildIndex(r);break;case 4:r=t.readBytes();e.setHash(r);break;case 5:r=t.readBytes();e.setPreimage(r);break;default:t.skipField()}}return e},proto.lnrpc.AMP.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.AMP.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.AMP.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getRootShare_asU8()).length>0&&t.writeBytes(1,r),(r=e.getSetId_asU8()).length>0&&t.writeBytes(2,r),0!==(r=e.getChildIndex())&&t.writeUint32(3,r),(r=e.getHash_asU8()).length>0&&t.writeBytes(4,r),(r=e.getPreimage_asU8()).length>0&&t.writeBytes(5,r)},proto.lnrpc.AMP.prototype.getRootShare=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.AMP.prototype.getRootShare_asB64=function(){return n.Message.bytesAsB64(this.getRootShare())},proto.lnrpc.AMP.prototype.getRootShare_asU8=function(){return n.Message.bytesAsU8(this.getRootShare())},proto.lnrpc.AMP.prototype.setRootShare=function(e){return n.Message.setProto3BytesField(this,1,e)},proto.lnrpc.AMP.prototype.getSetId=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.AMP.prototype.getSetId_asB64=function(){return n.Message.bytesAsB64(this.getSetId())},proto.lnrpc.AMP.prototype.getSetId_asU8=function(){return n.Message.bytesAsU8(this.getSetId())},proto.lnrpc.AMP.prototype.setSetId=function(e){return n.Message.setProto3BytesField(this,2,e)},proto.lnrpc.AMP.prototype.getChildIndex=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.AMP.prototype.setChildIndex=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.AMP.prototype.getHash=function(){return n.Message.getFieldWithDefault(this,4,"")},proto.lnrpc.AMP.prototype.getHash_asB64=function(){return n.Message.bytesAsB64(this.getHash())},proto.lnrpc.AMP.prototype.getHash_asU8=function(){return n.Message.bytesAsU8(this.getHash())},proto.lnrpc.AMP.prototype.setHash=function(e){return n.Message.setProto3BytesField(this,4,e)},proto.lnrpc.AMP.prototype.getPreimage=function(){return n.Message.getFieldWithDefault(this,5,"")},proto.lnrpc.AMP.prototype.getPreimage_asB64=function(){return n.Message.bytesAsB64(this.getPreimage())},proto.lnrpc.AMP.prototype.getPreimage_asU8=function(){return n.Message.bytesAsU8(this.getPreimage())},proto.lnrpc.AMP.prototype.setPreimage=function(e){return n.Message.setProto3BytesField(this,5,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.AddInvoiceResponse.prototype.toObject=function(e){return proto.lnrpc.AddInvoiceResponse.toObject(e,this)},proto.lnrpc.AddInvoiceResponse.toObject=function(e,t){var r={rHash:t.getRHash_asB64(),paymentRequest:n.Message.getFieldWithDefault(t,2,""),addIndex:n.Message.getFieldWithDefault(t,16,0),paymentAddr:t.getPaymentAddr_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.AddInvoiceResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.AddInvoiceResponse;return proto.lnrpc.AddInvoiceResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.AddInvoiceResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setRHash(r);break;case 2:r=t.readString();e.setPaymentRequest(r);break;case 16:r=t.readUint64();e.setAddIndex(r);break;case 17:r=t.readBytes();e.setPaymentAddr(r);break;default:t.skipField()}}return e},proto.lnrpc.AddInvoiceResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.AddInvoiceResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.AddInvoiceResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getRHash_asU8()).length>0&&t.writeBytes(1,r),(r=e.getPaymentRequest()).length>0&&t.writeString(2,r),0!==(r=e.getAddIndex())&&t.writeUint64(16,r),(r=e.getPaymentAddr_asU8()).length>0&&t.writeBytes(17,r)},proto.lnrpc.AddInvoiceResponse.prototype.getRHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.AddInvoiceResponse.prototype.getRHash_asB64=function(){return n.Message.bytesAsB64(this.getRHash())},proto.lnrpc.AddInvoiceResponse.prototype.getRHash_asU8=function(){return n.Message.bytesAsU8(this.getRHash())},proto.lnrpc.AddInvoiceResponse.prototype.setRHash=function(e){return n.Message.setProto3BytesField(this,1,e)},proto.lnrpc.AddInvoiceResponse.prototype.getPaymentRequest=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.AddInvoiceResponse.prototype.setPaymentRequest=function(e){return n.Message.setProto3StringField(this,2,e)},proto.lnrpc.AddInvoiceResponse.prototype.getAddIndex=function(){return n.Message.getFieldWithDefault(this,16,0)},proto.lnrpc.AddInvoiceResponse.prototype.setAddIndex=function(e){return n.Message.setProto3IntField(this,16,e)},proto.lnrpc.AddInvoiceResponse.prototype.getPaymentAddr=function(){return n.Message.getFieldWithDefault(this,17,"")},proto.lnrpc.AddInvoiceResponse.prototype.getPaymentAddr_asB64=function(){return n.Message.bytesAsB64(this.getPaymentAddr())},proto.lnrpc.AddInvoiceResponse.prototype.getPaymentAddr_asU8=function(){return n.Message.bytesAsU8(this.getPaymentAddr())},proto.lnrpc.AddInvoiceResponse.prototype.setPaymentAddr=function(e){return n.Message.setProto3BytesField(this,17,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.PaymentHash.prototype.toObject=function(e){return proto.lnrpc.PaymentHash.toObject(e,this)},proto.lnrpc.PaymentHash.toObject=function(e,t){var r={rHashStr:n.Message.getFieldWithDefault(t,1,""),rHash:t.getRHash_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.PaymentHash.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.PaymentHash;return proto.lnrpc.PaymentHash.deserializeBinaryFromReader(r,t)},proto.lnrpc.PaymentHash.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setRHashStr(r);break;case 2:r=t.readBytes();e.setRHash(r);break;default:t.skipField()}}return e},proto.lnrpc.PaymentHash.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.PaymentHash.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.PaymentHash.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getRHashStr()).length>0&&t.writeString(1,r),(r=e.getRHash_asU8()).length>0&&t.writeBytes(2,r)},proto.lnrpc.PaymentHash.prototype.getRHashStr=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.PaymentHash.prototype.setRHashStr=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.PaymentHash.prototype.getRHash=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.PaymentHash.prototype.getRHash_asB64=function(){return n.Message.bytesAsB64(this.getRHash())},proto.lnrpc.PaymentHash.prototype.getRHash_asU8=function(){return n.Message.bytesAsU8(this.getRHash())},proto.lnrpc.PaymentHash.prototype.setRHash=function(e){return n.Message.setProto3BytesField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ListInvoiceRequest.prototype.toObject=function(e){return proto.lnrpc.ListInvoiceRequest.toObject(e,this)},proto.lnrpc.ListInvoiceRequest.toObject=function(e,t){var r={pendingOnly:n.Message.getBooleanFieldWithDefault(t,1,!1),indexOffset:n.Message.getFieldWithDefault(t,4,0),numMaxInvoices:n.Message.getFieldWithDefault(t,5,0),reversed:n.Message.getBooleanFieldWithDefault(t,6,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ListInvoiceRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ListInvoiceRequest;return proto.lnrpc.ListInvoiceRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.ListInvoiceRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBool();e.setPendingOnly(r);break;case 4:r=t.readUint64();e.setIndexOffset(r);break;case 5:r=t.readUint64();e.setNumMaxInvoices(r);break;case 6:r=t.readBool();e.setReversed(r);break;default:t.skipField()}}return e},proto.lnrpc.ListInvoiceRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ListInvoiceRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ListInvoiceRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPendingOnly())&&t.writeBool(1,r),0!==(r=e.getIndexOffset())&&t.writeUint64(4,r),0!==(r=e.getNumMaxInvoices())&&t.writeUint64(5,r),(r=e.getReversed())&&t.writeBool(6,r)},proto.lnrpc.ListInvoiceRequest.prototype.getPendingOnly=function(){return n.Message.getBooleanFieldWithDefault(this,1,!1)},proto.lnrpc.ListInvoiceRequest.prototype.setPendingOnly=function(e){return n.Message.setProto3BooleanField(this,1,e)},proto.lnrpc.ListInvoiceRequest.prototype.getIndexOffset=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.ListInvoiceRequest.prototype.setIndexOffset=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.ListInvoiceRequest.prototype.getNumMaxInvoices=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.ListInvoiceRequest.prototype.setNumMaxInvoices=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.ListInvoiceRequest.prototype.getReversed=function(){return n.Message.getBooleanFieldWithDefault(this,6,!1)},proto.lnrpc.ListInvoiceRequest.prototype.setReversed=function(e){return n.Message.setProto3BooleanField(this,6,e)},proto.lnrpc.ListInvoiceResponse.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ListInvoiceResponse.prototype.toObject=function(e){return proto.lnrpc.ListInvoiceResponse.toObject(e,this)},proto.lnrpc.ListInvoiceResponse.toObject=function(e,t){var r={invoicesList:n.Message.toObjectList(t.getInvoicesList(),proto.lnrpc.Invoice.toObject,e),lastIndexOffset:n.Message.getFieldWithDefault(t,2,0),firstIndexOffset:n.Message.getFieldWithDefault(t,3,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ListInvoiceResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ListInvoiceResponse;return proto.lnrpc.ListInvoiceResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.ListInvoiceResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.Invoice;t.readMessage(r,proto.lnrpc.Invoice.deserializeBinaryFromReader),e.addInvoices(r);break;case 2:r=t.readUint64();e.setLastIndexOffset(r);break;case 3:r=t.readUint64();e.setFirstIndexOffset(r);break;default:t.skipField()}}return e},proto.lnrpc.ListInvoiceResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ListInvoiceResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ListInvoiceResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getInvoicesList()).length>0&&t.writeRepeatedMessage(1,r,proto.lnrpc.Invoice.serializeBinaryToWriter),0!==(r=e.getLastIndexOffset())&&t.writeUint64(2,r),0!==(r=e.getFirstIndexOffset())&&t.writeUint64(3,r)},proto.lnrpc.ListInvoiceResponse.prototype.getInvoicesList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.Invoice,1)},proto.lnrpc.ListInvoiceResponse.prototype.setInvoicesList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.lnrpc.ListInvoiceResponse.prototype.addInvoices=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.lnrpc.Invoice,t)},proto.lnrpc.ListInvoiceResponse.prototype.clearInvoicesList=function(){return this.setInvoicesList([])},proto.lnrpc.ListInvoiceResponse.prototype.getLastIndexOffset=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.ListInvoiceResponse.prototype.setLastIndexOffset=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.ListInvoiceResponse.prototype.getFirstIndexOffset=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.ListInvoiceResponse.prototype.setFirstIndexOffset=function(e){return n.Message.setProto3IntField(this,3,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.InvoiceSubscription.prototype.toObject=function(e){return proto.lnrpc.InvoiceSubscription.toObject(e,this)},proto.lnrpc.InvoiceSubscription.toObject=function(e,t){var r={addIndex:n.Message.getFieldWithDefault(t,1,0),settleIndex:n.Message.getFieldWithDefault(t,2,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.InvoiceSubscription.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.InvoiceSubscription;return proto.lnrpc.InvoiceSubscription.deserializeBinaryFromReader(r,t)},proto.lnrpc.InvoiceSubscription.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint64();e.setAddIndex(r);break;case 2:r=t.readUint64();e.setSettleIndex(r);break;default:t.skipField()}}return e},proto.lnrpc.InvoiceSubscription.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.InvoiceSubscription.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.InvoiceSubscription.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getAddIndex())&&t.writeUint64(1,r),0!==(r=e.getSettleIndex())&&t.writeUint64(2,r)},proto.lnrpc.InvoiceSubscription.prototype.getAddIndex=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.InvoiceSubscription.prototype.setAddIndex=function(e){return n.Message.setProto3IntField(this,1,e)},proto.lnrpc.InvoiceSubscription.prototype.getSettleIndex=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.InvoiceSubscription.prototype.setSettleIndex=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.Payment.repeatedFields_=[14],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.Payment.prototype.toObject=function(e){return proto.lnrpc.Payment.toObject(e,this)},proto.lnrpc.Payment.toObject=function(e,t){var r={paymentHash:n.Message.getFieldWithDefault(t,1,""),value:n.Message.getFieldWithDefault(t,2,0),creationDate:n.Message.getFieldWithDefault(t,3,0),fee:n.Message.getFieldWithDefault(t,5,0),paymentPreimage:n.Message.getFieldWithDefault(t,6,""),valueSat:n.Message.getFieldWithDefault(t,7,0),valueMsat:n.Message.getFieldWithDefault(t,8,0),paymentRequest:n.Message.getFieldWithDefault(t,9,""),status:n.Message.getFieldWithDefault(t,10,0),feeSat:n.Message.getFieldWithDefault(t,11,0),feeMsat:n.Message.getFieldWithDefault(t,12,0),creationTimeNs:n.Message.getFieldWithDefault(t,13,0),htlcsList:n.Message.toObjectList(t.getHtlcsList(),proto.lnrpc.HTLCAttempt.toObject,e),paymentIndex:n.Message.getFieldWithDefault(t,15,0),failureReason:n.Message.getFieldWithDefault(t,16,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.Payment.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.Payment;return proto.lnrpc.Payment.deserializeBinaryFromReader(r,t)},proto.lnrpc.Payment.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setPaymentHash(r);break;case 2:r=t.readInt64();e.setValue(r);break;case 3:r=t.readInt64();e.setCreationDate(r);break;case 5:r=t.readInt64();e.setFee(r);break;case 6:r=t.readString();e.setPaymentPreimage(r);break;case 7:r=t.readInt64();e.setValueSat(r);break;case 8:r=t.readInt64();e.setValueMsat(r);break;case 9:r=t.readString();e.setPaymentRequest(r);break;case 10:r=t.readEnum();e.setStatus(r);break;case 11:r=t.readInt64();e.setFeeSat(r);break;case 12:r=t.readInt64();e.setFeeMsat(r);break;case 13:r=t.readInt64();e.setCreationTimeNs(r);break;case 14:r=new proto.lnrpc.HTLCAttempt;t.readMessage(r,proto.lnrpc.HTLCAttempt.deserializeBinaryFromReader),e.addHtlcs(r);break;case 15:r=t.readUint64();e.setPaymentIndex(r);break;case 16:r=t.readEnum();e.setFailureReason(r);break;default:t.skipField()}}return e},proto.lnrpc.Payment.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.Payment.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.Payment.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPaymentHash()).length>0&&t.writeString(1,r),0!==(r=e.getValue())&&t.writeInt64(2,r),0!==(r=e.getCreationDate())&&t.writeInt64(3,r),0!==(r=e.getFee())&&t.writeInt64(5,r),(r=e.getPaymentPreimage()).length>0&&t.writeString(6,r),0!==(r=e.getValueSat())&&t.writeInt64(7,r),0!==(r=e.getValueMsat())&&t.writeInt64(8,r),(r=e.getPaymentRequest()).length>0&&t.writeString(9,r),0!==(r=e.getStatus())&&t.writeEnum(10,r),0!==(r=e.getFeeSat())&&t.writeInt64(11,r),0!==(r=e.getFeeMsat())&&t.writeInt64(12,r),0!==(r=e.getCreationTimeNs())&&t.writeInt64(13,r),(r=e.getHtlcsList()).length>0&&t.writeRepeatedMessage(14,r,proto.lnrpc.HTLCAttempt.serializeBinaryToWriter),0!==(r=e.getPaymentIndex())&&t.writeUint64(15,r),0!==(r=e.getFailureReason())&&t.writeEnum(16,r)},proto.lnrpc.Payment.PaymentStatus={UNKNOWN:0,IN_FLIGHT:1,SUCCEEDED:2,FAILED:3},proto.lnrpc.Payment.prototype.getPaymentHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.Payment.prototype.setPaymentHash=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.Payment.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.Payment.prototype.setValue=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.Payment.prototype.getCreationDate=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.Payment.prototype.setCreationDate=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.Payment.prototype.getFee=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.Payment.prototype.setFee=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.Payment.prototype.getPaymentPreimage=function(){return n.Message.getFieldWithDefault(this,6,"")},proto.lnrpc.Payment.prototype.setPaymentPreimage=function(e){return n.Message.setProto3StringField(this,6,e)},proto.lnrpc.Payment.prototype.getValueSat=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.lnrpc.Payment.prototype.setValueSat=function(e){return n.Message.setProto3IntField(this,7,e)},proto.lnrpc.Payment.prototype.getValueMsat=function(){return n.Message.getFieldWithDefault(this,8,0)},proto.lnrpc.Payment.prototype.setValueMsat=function(e){return n.Message.setProto3IntField(this,8,e)},proto.lnrpc.Payment.prototype.getPaymentRequest=function(){return n.Message.getFieldWithDefault(this,9,"")},proto.lnrpc.Payment.prototype.setPaymentRequest=function(e){return n.Message.setProto3StringField(this,9,e)},proto.lnrpc.Payment.prototype.getStatus=function(){return n.Message.getFieldWithDefault(this,10,0)},proto.lnrpc.Payment.prototype.setStatus=function(e){return n.Message.setProto3EnumField(this,10,e)},proto.lnrpc.Payment.prototype.getFeeSat=function(){return n.Message.getFieldWithDefault(this,11,0)},proto.lnrpc.Payment.prototype.setFeeSat=function(e){return n.Message.setProto3IntField(this,11,e)},proto.lnrpc.Payment.prototype.getFeeMsat=function(){return n.Message.getFieldWithDefault(this,12,0)},proto.lnrpc.Payment.prototype.setFeeMsat=function(e){return n.Message.setProto3IntField(this,12,e)},proto.lnrpc.Payment.prototype.getCreationTimeNs=function(){return n.Message.getFieldWithDefault(this,13,0)},proto.lnrpc.Payment.prototype.setCreationTimeNs=function(e){return n.Message.setProto3IntField(this,13,e)},proto.lnrpc.Payment.prototype.getHtlcsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.HTLCAttempt,14)},proto.lnrpc.Payment.prototype.setHtlcsList=function(e){return n.Message.setRepeatedWrapperField(this,14,e)},proto.lnrpc.Payment.prototype.addHtlcs=function(e,t){return n.Message.addToRepeatedWrapperField(this,14,e,proto.lnrpc.HTLCAttempt,t)},proto.lnrpc.Payment.prototype.clearHtlcsList=function(){return this.setHtlcsList([])},proto.lnrpc.Payment.prototype.getPaymentIndex=function(){return n.Message.getFieldWithDefault(this,15,0)},proto.lnrpc.Payment.prototype.setPaymentIndex=function(e){return n.Message.setProto3IntField(this,15,e)},proto.lnrpc.Payment.prototype.getFailureReason=function(){return n.Message.getFieldWithDefault(this,16,0)},proto.lnrpc.Payment.prototype.setFailureReason=function(e){return n.Message.setProto3EnumField(this,16,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.HTLCAttempt.prototype.toObject=function(e){return proto.lnrpc.HTLCAttempt.toObject(e,this)},proto.lnrpc.HTLCAttempt.toObject=function(e,t){var r,o={attemptId:n.Message.getFieldWithDefault(t,7,0),status:n.Message.getFieldWithDefault(t,1,0),route:(r=t.getRoute())&&proto.lnrpc.Route.toObject(e,r),attemptTimeNs:n.Message.getFieldWithDefault(t,3,0),resolveTimeNs:n.Message.getFieldWithDefault(t,4,0),failure:(r=t.getFailure())&&proto.lnrpc.Failure.toObject(e,r),preimage:t.getPreimage_asB64()};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.HTLCAttempt.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.HTLCAttempt;return proto.lnrpc.HTLCAttempt.deserializeBinaryFromReader(r,t)},proto.lnrpc.HTLCAttempt.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 7:var r=t.readUint64();e.setAttemptId(r);break;case 1:r=t.readEnum();e.setStatus(r);break;case 2:r=new proto.lnrpc.Route;t.readMessage(r,proto.lnrpc.Route.deserializeBinaryFromReader),e.setRoute(r);break;case 3:r=t.readInt64();e.setAttemptTimeNs(r);break;case 4:r=t.readInt64();e.setResolveTimeNs(r);break;case 5:r=new proto.lnrpc.Failure;t.readMessage(r,proto.lnrpc.Failure.deserializeBinaryFromReader),e.setFailure(r);break;case 6:r=t.readBytes();e.setPreimage(r);break;default:t.skipField()}}return e},proto.lnrpc.HTLCAttempt.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.HTLCAttempt.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.HTLCAttempt.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getAttemptId())&&t.writeUint64(7,r),0!==(r=e.getStatus())&&t.writeEnum(1,r),null!=(r=e.getRoute())&&t.writeMessage(2,r,proto.lnrpc.Route.serializeBinaryToWriter),0!==(r=e.getAttemptTimeNs())&&t.writeInt64(3,r),0!==(r=e.getResolveTimeNs())&&t.writeInt64(4,r),null!=(r=e.getFailure())&&t.writeMessage(5,r,proto.lnrpc.Failure.serializeBinaryToWriter),(r=e.getPreimage_asU8()).length>0&&t.writeBytes(6,r)},proto.lnrpc.HTLCAttempt.HTLCStatus={IN_FLIGHT:0,SUCCEEDED:1,FAILED:2},proto.lnrpc.HTLCAttempt.prototype.getAttemptId=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.lnrpc.HTLCAttempt.prototype.setAttemptId=function(e){return n.Message.setProto3IntField(this,7,e)},proto.lnrpc.HTLCAttempt.prototype.getStatus=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.HTLCAttempt.prototype.setStatus=function(e){return n.Message.setProto3EnumField(this,1,e)},proto.lnrpc.HTLCAttempt.prototype.getRoute=function(){return n.Message.getWrapperField(this,proto.lnrpc.Route,2)},proto.lnrpc.HTLCAttempt.prototype.setRoute=function(e){return n.Message.setWrapperField(this,2,e)},proto.lnrpc.HTLCAttempt.prototype.clearRoute=function(){return this.setRoute(void 0)},proto.lnrpc.HTLCAttempt.prototype.hasRoute=function(){return null!=n.Message.getField(this,2)},proto.lnrpc.HTLCAttempt.prototype.getAttemptTimeNs=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.HTLCAttempt.prototype.setAttemptTimeNs=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.HTLCAttempt.prototype.getResolveTimeNs=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.HTLCAttempt.prototype.setResolveTimeNs=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.HTLCAttempt.prototype.getFailure=function(){return n.Message.getWrapperField(this,proto.lnrpc.Failure,5)},proto.lnrpc.HTLCAttempt.prototype.setFailure=function(e){return n.Message.setWrapperField(this,5,e)},proto.lnrpc.HTLCAttempt.prototype.clearFailure=function(){return this.setFailure(void 0)},proto.lnrpc.HTLCAttempt.prototype.hasFailure=function(){return null!=n.Message.getField(this,5)},proto.lnrpc.HTLCAttempt.prototype.getPreimage=function(){return n.Message.getFieldWithDefault(this,6,"")},proto.lnrpc.HTLCAttempt.prototype.getPreimage_asB64=function(){return n.Message.bytesAsB64(this.getPreimage())},proto.lnrpc.HTLCAttempt.prototype.getPreimage_asU8=function(){return n.Message.bytesAsU8(this.getPreimage())},proto.lnrpc.HTLCAttempt.prototype.setPreimage=function(e){return n.Message.setProto3BytesField(this,6,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ListPaymentsRequest.prototype.toObject=function(e){return proto.lnrpc.ListPaymentsRequest.toObject(e,this)},proto.lnrpc.ListPaymentsRequest.toObject=function(e,t){var r={includeIncomplete:n.Message.getBooleanFieldWithDefault(t,1,!1),indexOffset:n.Message.getFieldWithDefault(t,2,0),maxPayments:n.Message.getFieldWithDefault(t,3,0),reversed:n.Message.getBooleanFieldWithDefault(t,4,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ListPaymentsRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ListPaymentsRequest;return proto.lnrpc.ListPaymentsRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.ListPaymentsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBool();e.setIncludeIncomplete(r);break;case 2:r=t.readUint64();e.setIndexOffset(r);break;case 3:r=t.readUint64();e.setMaxPayments(r);break;case 4:r=t.readBool();e.setReversed(r);break;default:t.skipField()}}return e},proto.lnrpc.ListPaymentsRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ListPaymentsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ListPaymentsRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getIncludeIncomplete())&&t.writeBool(1,r),0!==(r=e.getIndexOffset())&&t.writeUint64(2,r),0!==(r=e.getMaxPayments())&&t.writeUint64(3,r),(r=e.getReversed())&&t.writeBool(4,r)},proto.lnrpc.ListPaymentsRequest.prototype.getIncludeIncomplete=function(){return n.Message.getBooleanFieldWithDefault(this,1,!1)},proto.lnrpc.ListPaymentsRequest.prototype.setIncludeIncomplete=function(e){return n.Message.setProto3BooleanField(this,1,e)},proto.lnrpc.ListPaymentsRequest.prototype.getIndexOffset=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.ListPaymentsRequest.prototype.setIndexOffset=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.ListPaymentsRequest.prototype.getMaxPayments=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.ListPaymentsRequest.prototype.setMaxPayments=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.ListPaymentsRequest.prototype.getReversed=function(){return n.Message.getBooleanFieldWithDefault(this,4,!1)},proto.lnrpc.ListPaymentsRequest.prototype.setReversed=function(e){return n.Message.setProto3BooleanField(this,4,e)},proto.lnrpc.ListPaymentsResponse.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ListPaymentsResponse.prototype.toObject=function(e){return proto.lnrpc.ListPaymentsResponse.toObject(e,this)},proto.lnrpc.ListPaymentsResponse.toObject=function(e,t){var r={paymentsList:n.Message.toObjectList(t.getPaymentsList(),proto.lnrpc.Payment.toObject,e),firstIndexOffset:n.Message.getFieldWithDefault(t,2,0),lastIndexOffset:n.Message.getFieldWithDefault(t,3,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ListPaymentsResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ListPaymentsResponse;return proto.lnrpc.ListPaymentsResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.ListPaymentsResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.Payment;t.readMessage(r,proto.lnrpc.Payment.deserializeBinaryFromReader),e.addPayments(r);break;case 2:r=t.readUint64();e.setFirstIndexOffset(r);break;case 3:r=t.readUint64();e.setLastIndexOffset(r);break;default:t.skipField()}}return e},proto.lnrpc.ListPaymentsResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ListPaymentsResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ListPaymentsResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPaymentsList()).length>0&&t.writeRepeatedMessage(1,r,proto.lnrpc.Payment.serializeBinaryToWriter),0!==(r=e.getFirstIndexOffset())&&t.writeUint64(2,r),0!==(r=e.getLastIndexOffset())&&t.writeUint64(3,r)},proto.lnrpc.ListPaymentsResponse.prototype.getPaymentsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.Payment,1)},proto.lnrpc.ListPaymentsResponse.prototype.setPaymentsList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.lnrpc.ListPaymentsResponse.prototype.addPayments=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.lnrpc.Payment,t)},proto.lnrpc.ListPaymentsResponse.prototype.clearPaymentsList=function(){return this.setPaymentsList([])},proto.lnrpc.ListPaymentsResponse.prototype.getFirstIndexOffset=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.ListPaymentsResponse.prototype.setFirstIndexOffset=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.ListPaymentsResponse.prototype.getLastIndexOffset=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.ListPaymentsResponse.prototype.setLastIndexOffset=function(e){return n.Message.setProto3IntField(this,3,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.DeletePaymentRequest.prototype.toObject=function(e){return proto.lnrpc.DeletePaymentRequest.toObject(e,this)},proto.lnrpc.DeletePaymentRequest.toObject=function(e,t){var r={paymentHash:t.getPaymentHash_asB64(),failedHtlcsOnly:n.Message.getBooleanFieldWithDefault(t,2,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.DeletePaymentRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.DeletePaymentRequest;return proto.lnrpc.DeletePaymentRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.DeletePaymentRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setPaymentHash(r);break;case 2:r=t.readBool();e.setFailedHtlcsOnly(r);break;default:t.skipField()}}return e},proto.lnrpc.DeletePaymentRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.DeletePaymentRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.DeletePaymentRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPaymentHash_asU8()).length>0&&t.writeBytes(1,r),(r=e.getFailedHtlcsOnly())&&t.writeBool(2,r)},proto.lnrpc.DeletePaymentRequest.prototype.getPaymentHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.DeletePaymentRequest.prototype.getPaymentHash_asB64=function(){return n.Message.bytesAsB64(this.getPaymentHash())},proto.lnrpc.DeletePaymentRequest.prototype.getPaymentHash_asU8=function(){return n.Message.bytesAsU8(this.getPaymentHash())},proto.lnrpc.DeletePaymentRequest.prototype.setPaymentHash=function(e){return n.Message.setProto3BytesField(this,1,e)},proto.lnrpc.DeletePaymentRequest.prototype.getFailedHtlcsOnly=function(){return n.Message.getBooleanFieldWithDefault(this,2,!1)},proto.lnrpc.DeletePaymentRequest.prototype.setFailedHtlcsOnly=function(e){return n.Message.setProto3BooleanField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.DeleteAllPaymentsRequest.prototype.toObject=function(e){return proto.lnrpc.DeleteAllPaymentsRequest.toObject(e,this)},proto.lnrpc.DeleteAllPaymentsRequest.toObject=function(e,t){var r={failedPaymentsOnly:n.Message.getBooleanFieldWithDefault(t,1,!1),failedHtlcsOnly:n.Message.getBooleanFieldWithDefault(t,2,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.DeleteAllPaymentsRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.DeleteAllPaymentsRequest;return proto.lnrpc.DeleteAllPaymentsRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.DeleteAllPaymentsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBool();e.setFailedPaymentsOnly(r);break;case 2:r=t.readBool();e.setFailedHtlcsOnly(r);break;default:t.skipField()}}return e},proto.lnrpc.DeleteAllPaymentsRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.DeleteAllPaymentsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.DeleteAllPaymentsRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getFailedPaymentsOnly())&&t.writeBool(1,r),(r=e.getFailedHtlcsOnly())&&t.writeBool(2,r)},proto.lnrpc.DeleteAllPaymentsRequest.prototype.getFailedPaymentsOnly=function(){return n.Message.getBooleanFieldWithDefault(this,1,!1)},proto.lnrpc.DeleteAllPaymentsRequest.prototype.setFailedPaymentsOnly=function(e){return n.Message.setProto3BooleanField(this,1,e)},proto.lnrpc.DeleteAllPaymentsRequest.prototype.getFailedHtlcsOnly=function(){return n.Message.getBooleanFieldWithDefault(this,2,!1)},proto.lnrpc.DeleteAllPaymentsRequest.prototype.setFailedHtlcsOnly=function(e){return n.Message.setProto3BooleanField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.DeletePaymentResponse.prototype.toObject=function(e){return proto.lnrpc.DeletePaymentResponse.toObject(e,this)},proto.lnrpc.DeletePaymentResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.DeletePaymentResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.DeletePaymentResponse;return proto.lnrpc.DeletePaymentResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.DeletePaymentResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.DeletePaymentResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.DeletePaymentResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.DeletePaymentResponse.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.DeleteAllPaymentsResponse.prototype.toObject=function(e){return proto.lnrpc.DeleteAllPaymentsResponse.toObject(e,this)},proto.lnrpc.DeleteAllPaymentsResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.DeleteAllPaymentsResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.DeleteAllPaymentsResponse;return proto.lnrpc.DeleteAllPaymentsResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.DeleteAllPaymentsResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.DeleteAllPaymentsResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.DeleteAllPaymentsResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.DeleteAllPaymentsResponse.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.AbandonChannelRequest.prototype.toObject=function(e){return proto.lnrpc.AbandonChannelRequest.toObject(e,this)},proto.lnrpc.AbandonChannelRequest.toObject=function(e,t){var r,o={channelPoint:(r=t.getChannelPoint())&&proto.lnrpc.ChannelPoint.toObject(e,r),pendingFundingShimOnly:n.Message.getBooleanFieldWithDefault(t,2,!1),iKnowWhatIAmDoing:n.Message.getBooleanFieldWithDefault(t,3,!1)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.AbandonChannelRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.AbandonChannelRequest;return proto.lnrpc.AbandonChannelRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.AbandonChannelRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.ChannelPoint;t.readMessage(r,proto.lnrpc.ChannelPoint.deserializeBinaryFromReader),e.setChannelPoint(r);break;case 2:r=t.readBool();e.setPendingFundingShimOnly(r);break;case 3:r=t.readBool();e.setIKnowWhatIAmDoing(r);break;default:t.skipField()}}return e},proto.lnrpc.AbandonChannelRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.AbandonChannelRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.AbandonChannelRequest.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getChannelPoint())&&t.writeMessage(1,r,proto.lnrpc.ChannelPoint.serializeBinaryToWriter),(r=e.getPendingFundingShimOnly())&&t.writeBool(2,r),(r=e.getIKnowWhatIAmDoing())&&t.writeBool(3,r)},proto.lnrpc.AbandonChannelRequest.prototype.getChannelPoint=function(){return n.Message.getWrapperField(this,proto.lnrpc.ChannelPoint,1)},proto.lnrpc.AbandonChannelRequest.prototype.setChannelPoint=function(e){return n.Message.setWrapperField(this,1,e)},proto.lnrpc.AbandonChannelRequest.prototype.clearChannelPoint=function(){return this.setChannelPoint(void 0)},proto.lnrpc.AbandonChannelRequest.prototype.hasChannelPoint=function(){return null!=n.Message.getField(this,1)},proto.lnrpc.AbandonChannelRequest.prototype.getPendingFundingShimOnly=function(){return n.Message.getBooleanFieldWithDefault(this,2,!1)},proto.lnrpc.AbandonChannelRequest.prototype.setPendingFundingShimOnly=function(e){return n.Message.setProto3BooleanField(this,2,e)},proto.lnrpc.AbandonChannelRequest.prototype.getIKnowWhatIAmDoing=function(){return n.Message.getBooleanFieldWithDefault(this,3,!1)},proto.lnrpc.AbandonChannelRequest.prototype.setIKnowWhatIAmDoing=function(e){return n.Message.setProto3BooleanField(this,3,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.AbandonChannelResponse.prototype.toObject=function(e){return proto.lnrpc.AbandonChannelResponse.toObject(e,this)},proto.lnrpc.AbandonChannelResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.AbandonChannelResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.AbandonChannelResponse;return proto.lnrpc.AbandonChannelResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.AbandonChannelResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.AbandonChannelResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.AbandonChannelResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.AbandonChannelResponse.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.DebugLevelRequest.prototype.toObject=function(e){return proto.lnrpc.DebugLevelRequest.toObject(e,this)},proto.lnrpc.DebugLevelRequest.toObject=function(e,t){var r={show:n.Message.getBooleanFieldWithDefault(t,1,!1),levelSpec:n.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.DebugLevelRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.DebugLevelRequest;return proto.lnrpc.DebugLevelRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.DebugLevelRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBool();e.setShow(r);break;case 2:r=t.readString();e.setLevelSpec(r);break;default:t.skipField()}}return e},proto.lnrpc.DebugLevelRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.DebugLevelRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.DebugLevelRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getShow())&&t.writeBool(1,r),(r=e.getLevelSpec()).length>0&&t.writeString(2,r)},proto.lnrpc.DebugLevelRequest.prototype.getShow=function(){return n.Message.getBooleanFieldWithDefault(this,1,!1)},proto.lnrpc.DebugLevelRequest.prototype.setShow=function(e){return n.Message.setProto3BooleanField(this,1,e)},proto.lnrpc.DebugLevelRequest.prototype.getLevelSpec=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.DebugLevelRequest.prototype.setLevelSpec=function(e){return n.Message.setProto3StringField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.DebugLevelResponse.prototype.toObject=function(e){return proto.lnrpc.DebugLevelResponse.toObject(e,this)},proto.lnrpc.DebugLevelResponse.toObject=function(e,t){var r={subSystems:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.DebugLevelResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.DebugLevelResponse;return proto.lnrpc.DebugLevelResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.DebugLevelResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setSubSystems(r)}else t.skipField()}return e},proto.lnrpc.DebugLevelResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.DebugLevelResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.DebugLevelResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getSubSystems()).length>0&&t.writeString(1,r)},proto.lnrpc.DebugLevelResponse.prototype.getSubSystems=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.DebugLevelResponse.prototype.setSubSystems=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.PayReqString.prototype.toObject=function(e){return proto.lnrpc.PayReqString.toObject(e,this)},proto.lnrpc.PayReqString.toObject=function(e,t){var r={payReq:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.PayReqString.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.PayReqString;return proto.lnrpc.PayReqString.deserializeBinaryFromReader(r,t)},proto.lnrpc.PayReqString.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setPayReq(r)}else t.skipField()}return e},proto.lnrpc.PayReqString.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.PayReqString.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.PayReqString.serializeBinaryToWriter=function(e,t){var r;(r=e.getPayReq()).length>0&&t.writeString(1,r)},proto.lnrpc.PayReqString.prototype.getPayReq=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.PayReqString.prototype.setPayReq=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.PayReq.repeatedFields_=[10],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.PayReq.prototype.toObject=function(e){return proto.lnrpc.PayReq.toObject(e,this)},proto.lnrpc.PayReq.toObject=function(e,t){var r,o={destination:n.Message.getFieldWithDefault(t,1,""),paymentHash:n.Message.getFieldWithDefault(t,2,""),numSatoshis:n.Message.getFieldWithDefault(t,3,0),timestamp:n.Message.getFieldWithDefault(t,4,0),expiry:n.Message.getFieldWithDefault(t,5,0),description:n.Message.getFieldWithDefault(t,6,""),descriptionHash:n.Message.getFieldWithDefault(t,7,""),fallbackAddr:n.Message.getFieldWithDefault(t,8,""),cltvExpiry:n.Message.getFieldWithDefault(t,9,0),routeHintsList:n.Message.toObjectList(t.getRouteHintsList(),proto.lnrpc.RouteHint.toObject,e),paymentAddr:t.getPaymentAddr_asB64(),numMsat:n.Message.getFieldWithDefault(t,12,0),featuresMap:(r=t.getFeaturesMap())?r.toObject(e,proto.lnrpc.Feature.toObject):[]};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.PayReq.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.PayReq;return proto.lnrpc.PayReq.deserializeBinaryFromReader(r,t)},proto.lnrpc.PayReq.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setDestination(r);break;case 2:r=t.readString();e.setPaymentHash(r);break;case 3:r=t.readInt64();e.setNumSatoshis(r);break;case 4:r=t.readInt64();e.setTimestamp(r);break;case 5:r=t.readInt64();e.setExpiry(r);break;case 6:r=t.readString();e.setDescription(r);break;case 7:r=t.readString();e.setDescriptionHash(r);break;case 8:r=t.readString();e.setFallbackAddr(r);break;case 9:r=t.readInt64();e.setCltvExpiry(r);break;case 10:r=new proto.lnrpc.RouteHint;t.readMessage(r,proto.lnrpc.RouteHint.deserializeBinaryFromReader),e.addRouteHints(r);break;case 11:r=t.readBytes();e.setPaymentAddr(r);break;case 12:r=t.readInt64();e.setNumMsat(r);break;case 13:r=e.getFeaturesMap();t.readMessage(r,(function(e,t){n.Map.deserializeBinary(e,t,n.BinaryReader.prototype.readUint32,n.BinaryReader.prototype.readMessage,proto.lnrpc.Feature.deserializeBinaryFromReader,0,new proto.lnrpc.Feature)}));break;default:t.skipField()}}return e},proto.lnrpc.PayReq.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.PayReq.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.PayReq.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getDestination()).length>0&&t.writeString(1,r),(r=e.getPaymentHash()).length>0&&t.writeString(2,r),0!==(r=e.getNumSatoshis())&&t.writeInt64(3,r),0!==(r=e.getTimestamp())&&t.writeInt64(4,r),0!==(r=e.getExpiry())&&t.writeInt64(5,r),(r=e.getDescription()).length>0&&t.writeString(6,r),(r=e.getDescriptionHash()).length>0&&t.writeString(7,r),(r=e.getFallbackAddr()).length>0&&t.writeString(8,r),0!==(r=e.getCltvExpiry())&&t.writeInt64(9,r),(r=e.getRouteHintsList()).length>0&&t.writeRepeatedMessage(10,r,proto.lnrpc.RouteHint.serializeBinaryToWriter),(r=e.getPaymentAddr_asU8()).length>0&&t.writeBytes(11,r),0!==(r=e.getNumMsat())&&t.writeInt64(12,r),(r=e.getFeaturesMap(!0))&&r.getLength()>0&&r.serializeBinary(13,t,n.BinaryWriter.prototype.writeUint32,n.BinaryWriter.prototype.writeMessage,proto.lnrpc.Feature.serializeBinaryToWriter)},proto.lnrpc.PayReq.prototype.getDestination=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.PayReq.prototype.setDestination=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.PayReq.prototype.getPaymentHash=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.PayReq.prototype.setPaymentHash=function(e){return n.Message.setProto3StringField(this,2,e)},proto.lnrpc.PayReq.prototype.getNumSatoshis=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.PayReq.prototype.setNumSatoshis=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.PayReq.prototype.getTimestamp=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.PayReq.prototype.setTimestamp=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.PayReq.prototype.getExpiry=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.PayReq.prototype.setExpiry=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.PayReq.prototype.getDescription=function(){return n.Message.getFieldWithDefault(this,6,"")},proto.lnrpc.PayReq.prototype.setDescription=function(e){return n.Message.setProto3StringField(this,6,e)},proto.lnrpc.PayReq.prototype.getDescriptionHash=function(){return n.Message.getFieldWithDefault(this,7,"")},proto.lnrpc.PayReq.prototype.setDescriptionHash=function(e){return n.Message.setProto3StringField(this,7,e)},proto.lnrpc.PayReq.prototype.getFallbackAddr=function(){return n.Message.getFieldWithDefault(this,8,"")},proto.lnrpc.PayReq.prototype.setFallbackAddr=function(e){return n.Message.setProto3StringField(this,8,e)},proto.lnrpc.PayReq.prototype.getCltvExpiry=function(){return n.Message.getFieldWithDefault(this,9,0)},proto.lnrpc.PayReq.prototype.setCltvExpiry=function(e){return n.Message.setProto3IntField(this,9,e)},proto.lnrpc.PayReq.prototype.getRouteHintsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.RouteHint,10)},proto.lnrpc.PayReq.prototype.setRouteHintsList=function(e){return n.Message.setRepeatedWrapperField(this,10,e)},proto.lnrpc.PayReq.prototype.addRouteHints=function(e,t){return n.Message.addToRepeatedWrapperField(this,10,e,proto.lnrpc.RouteHint,t)},proto.lnrpc.PayReq.prototype.clearRouteHintsList=function(){return this.setRouteHintsList([])},proto.lnrpc.PayReq.prototype.getPaymentAddr=function(){return n.Message.getFieldWithDefault(this,11,"")},proto.lnrpc.PayReq.prototype.getPaymentAddr_asB64=function(){return n.Message.bytesAsB64(this.getPaymentAddr())},proto.lnrpc.PayReq.prototype.getPaymentAddr_asU8=function(){return n.Message.bytesAsU8(this.getPaymentAddr())},proto.lnrpc.PayReq.prototype.setPaymentAddr=function(e){return n.Message.setProto3BytesField(this,11,e)},proto.lnrpc.PayReq.prototype.getNumMsat=function(){return n.Message.getFieldWithDefault(this,12,0)},proto.lnrpc.PayReq.prototype.setNumMsat=function(e){return n.Message.setProto3IntField(this,12,e)},proto.lnrpc.PayReq.prototype.getFeaturesMap=function(e){return n.Message.getMapField(this,13,e,proto.lnrpc.Feature)},proto.lnrpc.PayReq.prototype.clearFeaturesMap=function(){return this.getFeaturesMap().clear(),this},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.Feature.prototype.toObject=function(e){return proto.lnrpc.Feature.toObject(e,this)},proto.lnrpc.Feature.toObject=function(e,t){var r={name:n.Message.getFieldWithDefault(t,2,""),isRequired:n.Message.getBooleanFieldWithDefault(t,3,!1),isKnown:n.Message.getBooleanFieldWithDefault(t,4,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.Feature.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.Feature;return proto.lnrpc.Feature.deserializeBinaryFromReader(r,t)},proto.lnrpc.Feature.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 2:var r=t.readString();e.setName(r);break;case 3:r=t.readBool();e.setIsRequired(r);break;case 4:r=t.readBool();e.setIsKnown(r);break;default:t.skipField()}}return e},proto.lnrpc.Feature.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.Feature.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.Feature.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getName()).length>0&&t.writeString(2,r),(r=e.getIsRequired())&&t.writeBool(3,r),(r=e.getIsKnown())&&t.writeBool(4,r)},proto.lnrpc.Feature.prototype.getName=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.Feature.prototype.setName=function(e){return n.Message.setProto3StringField(this,2,e)},proto.lnrpc.Feature.prototype.getIsRequired=function(){return n.Message.getBooleanFieldWithDefault(this,3,!1)},proto.lnrpc.Feature.prototype.setIsRequired=function(e){return n.Message.setProto3BooleanField(this,3,e)},proto.lnrpc.Feature.prototype.getIsKnown=function(){return n.Message.getBooleanFieldWithDefault(this,4,!1)},proto.lnrpc.Feature.prototype.setIsKnown=function(e){return n.Message.setProto3BooleanField(this,4,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.FeeReportRequest.prototype.toObject=function(e){return proto.lnrpc.FeeReportRequest.toObject(e,this)},proto.lnrpc.FeeReportRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.FeeReportRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.FeeReportRequest;return proto.lnrpc.FeeReportRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.FeeReportRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.FeeReportRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.FeeReportRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.FeeReportRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChannelFeeReport.prototype.toObject=function(e){return proto.lnrpc.ChannelFeeReport.toObject(e,this)},proto.lnrpc.ChannelFeeReport.toObject=function(e,t){var r={chanId:n.Message.getFieldWithDefault(t,5,"0"),channelPoint:n.Message.getFieldWithDefault(t,1,""),baseFeeMsat:n.Message.getFieldWithDefault(t,2,0),feePerMil:n.Message.getFieldWithDefault(t,3,0),feeRate:n.Message.getFloatingPointFieldWithDefault(t,4,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ChannelFeeReport.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChannelFeeReport;return proto.lnrpc.ChannelFeeReport.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChannelFeeReport.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 5:var r=t.readUint64String();e.setChanId(r);break;case 1:r=t.readString();e.setChannelPoint(r);break;case 2:r=t.readInt64();e.setBaseFeeMsat(r);break;case 3:r=t.readInt64();e.setFeePerMil(r);break;case 4:r=t.readDouble();e.setFeeRate(r);break;default:t.skipField()}}return e},proto.lnrpc.ChannelFeeReport.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChannelFeeReport.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChannelFeeReport.serializeBinaryToWriter=function(e,t){var r=void 0;r=e.getChanId(),0!==parseInt(r,10)&&t.writeUint64String(5,r),(r=e.getChannelPoint()).length>0&&t.writeString(1,r),0!==(r=e.getBaseFeeMsat())&&t.writeInt64(2,r),0!==(r=e.getFeePerMil())&&t.writeInt64(3,r),0!==(r=e.getFeeRate())&&t.writeDouble(4,r)},proto.lnrpc.ChannelFeeReport.prototype.getChanId=function(){return n.Message.getFieldWithDefault(this,5,"0")},proto.lnrpc.ChannelFeeReport.prototype.setChanId=function(e){return n.Message.setProto3StringIntField(this,5,e)},proto.lnrpc.ChannelFeeReport.prototype.getChannelPoint=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.ChannelFeeReport.prototype.setChannelPoint=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.ChannelFeeReport.prototype.getBaseFeeMsat=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.ChannelFeeReport.prototype.setBaseFeeMsat=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.ChannelFeeReport.prototype.getFeePerMil=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.ChannelFeeReport.prototype.setFeePerMil=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.ChannelFeeReport.prototype.getFeeRate=function(){return n.Message.getFloatingPointFieldWithDefault(this,4,0)},proto.lnrpc.ChannelFeeReport.prototype.setFeeRate=function(e){return n.Message.setProto3FloatField(this,4,e)},proto.lnrpc.FeeReportResponse.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.FeeReportResponse.prototype.toObject=function(e){return proto.lnrpc.FeeReportResponse.toObject(e,this)},proto.lnrpc.FeeReportResponse.toObject=function(e,t){var r={channelFeesList:n.Message.toObjectList(t.getChannelFeesList(),proto.lnrpc.ChannelFeeReport.toObject,e),dayFeeSum:n.Message.getFieldWithDefault(t,2,0),weekFeeSum:n.Message.getFieldWithDefault(t,3,0),monthFeeSum:n.Message.getFieldWithDefault(t,4,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.FeeReportResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.FeeReportResponse;return proto.lnrpc.FeeReportResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.FeeReportResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.ChannelFeeReport;t.readMessage(r,proto.lnrpc.ChannelFeeReport.deserializeBinaryFromReader),e.addChannelFees(r);break;case 2:r=t.readUint64();e.setDayFeeSum(r);break;case 3:r=t.readUint64();e.setWeekFeeSum(r);break;case 4:r=t.readUint64();e.setMonthFeeSum(r);break;default:t.skipField()}}return e},proto.lnrpc.FeeReportResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.FeeReportResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.FeeReportResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getChannelFeesList()).length>0&&t.writeRepeatedMessage(1,r,proto.lnrpc.ChannelFeeReport.serializeBinaryToWriter),0!==(r=e.getDayFeeSum())&&t.writeUint64(2,r),0!==(r=e.getWeekFeeSum())&&t.writeUint64(3,r),0!==(r=e.getMonthFeeSum())&&t.writeUint64(4,r)},proto.lnrpc.FeeReportResponse.prototype.getChannelFeesList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.ChannelFeeReport,1)},proto.lnrpc.FeeReportResponse.prototype.setChannelFeesList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.lnrpc.FeeReportResponse.prototype.addChannelFees=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.lnrpc.ChannelFeeReport,t)},proto.lnrpc.FeeReportResponse.prototype.clearChannelFeesList=function(){return this.setChannelFeesList([])},proto.lnrpc.FeeReportResponse.prototype.getDayFeeSum=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.FeeReportResponse.prototype.setDayFeeSum=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.FeeReportResponse.prototype.getWeekFeeSum=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.FeeReportResponse.prototype.setWeekFeeSum=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.FeeReportResponse.prototype.getMonthFeeSum=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.FeeReportResponse.prototype.setMonthFeeSum=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.PolicyUpdateRequest.oneofGroups_=[[1,2]],proto.lnrpc.PolicyUpdateRequest.ScopeCase={SCOPE_NOT_SET:0,GLOBAL:1,CHAN_POINT:2},proto.lnrpc.PolicyUpdateRequest.prototype.getScopeCase=function(){return n.Message.computeOneofCase(this,proto.lnrpc.PolicyUpdateRequest.oneofGroups_[0])},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.PolicyUpdateRequest.prototype.toObject=function(e){return proto.lnrpc.PolicyUpdateRequest.toObject(e,this)},proto.lnrpc.PolicyUpdateRequest.toObject=function(e,t){var r,o={global:n.Message.getBooleanFieldWithDefault(t,1,!1),chanPoint:(r=t.getChanPoint())&&proto.lnrpc.ChannelPoint.toObject(e,r),baseFeeMsat:n.Message.getFieldWithDefault(t,3,0),feeRate:n.Message.getFloatingPointFieldWithDefault(t,4,0),timeLockDelta:n.Message.getFieldWithDefault(t,5,0),maxHtlcMsat:n.Message.getFieldWithDefault(t,6,0),minHtlcMsat:n.Message.getFieldWithDefault(t,7,0),minHtlcMsatSpecified:n.Message.getBooleanFieldWithDefault(t,8,!1)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.PolicyUpdateRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.PolicyUpdateRequest;return proto.lnrpc.PolicyUpdateRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.PolicyUpdateRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBool();e.setGlobal(r);break;case 2:r=new proto.lnrpc.ChannelPoint;t.readMessage(r,proto.lnrpc.ChannelPoint.deserializeBinaryFromReader),e.setChanPoint(r);break;case 3:r=t.readInt64();e.setBaseFeeMsat(r);break;case 4:r=t.readDouble();e.setFeeRate(r);break;case 5:r=t.readUint32();e.setTimeLockDelta(r);break;case 6:r=t.readUint64();e.setMaxHtlcMsat(r);break;case 7:r=t.readUint64();e.setMinHtlcMsat(r);break;case 8:r=t.readBool();e.setMinHtlcMsatSpecified(r);break;default:t.skipField()}}return e},proto.lnrpc.PolicyUpdateRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.PolicyUpdateRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.PolicyUpdateRequest.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=n.Message.getField(e,1))&&t.writeBool(1,r),null!=(r=e.getChanPoint())&&t.writeMessage(2,r,proto.lnrpc.ChannelPoint.serializeBinaryToWriter),0!==(r=e.getBaseFeeMsat())&&t.writeInt64(3,r),0!==(r=e.getFeeRate())&&t.writeDouble(4,r),0!==(r=e.getTimeLockDelta())&&t.writeUint32(5,r),0!==(r=e.getMaxHtlcMsat())&&t.writeUint64(6,r),0!==(r=e.getMinHtlcMsat())&&t.writeUint64(7,r),(r=e.getMinHtlcMsatSpecified())&&t.writeBool(8,r)},proto.lnrpc.PolicyUpdateRequest.prototype.getGlobal=function(){return n.Message.getBooleanFieldWithDefault(this,1,!1)},proto.lnrpc.PolicyUpdateRequest.prototype.setGlobal=function(e){return n.Message.setOneofField(this,1,proto.lnrpc.PolicyUpdateRequest.oneofGroups_[0],e)},proto.lnrpc.PolicyUpdateRequest.prototype.clearGlobal=function(){return n.Message.setOneofField(this,1,proto.lnrpc.PolicyUpdateRequest.oneofGroups_[0],void 0)},proto.lnrpc.PolicyUpdateRequest.prototype.hasGlobal=function(){return null!=n.Message.getField(this,1)},proto.lnrpc.PolicyUpdateRequest.prototype.getChanPoint=function(){return n.Message.getWrapperField(this,proto.lnrpc.ChannelPoint,2)},proto.lnrpc.PolicyUpdateRequest.prototype.setChanPoint=function(e){return n.Message.setOneofWrapperField(this,2,proto.lnrpc.PolicyUpdateRequest.oneofGroups_[0],e)},proto.lnrpc.PolicyUpdateRequest.prototype.clearChanPoint=function(){return this.setChanPoint(void 0)},proto.lnrpc.PolicyUpdateRequest.prototype.hasChanPoint=function(){return null!=n.Message.getField(this,2)},proto.lnrpc.PolicyUpdateRequest.prototype.getBaseFeeMsat=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.PolicyUpdateRequest.prototype.setBaseFeeMsat=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.PolicyUpdateRequest.prototype.getFeeRate=function(){return n.Message.getFloatingPointFieldWithDefault(this,4,0)},proto.lnrpc.PolicyUpdateRequest.prototype.setFeeRate=function(e){return n.Message.setProto3FloatField(this,4,e)},proto.lnrpc.PolicyUpdateRequest.prototype.getTimeLockDelta=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.PolicyUpdateRequest.prototype.setTimeLockDelta=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.PolicyUpdateRequest.prototype.getMaxHtlcMsat=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.PolicyUpdateRequest.prototype.setMaxHtlcMsat=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.PolicyUpdateRequest.prototype.getMinHtlcMsat=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.lnrpc.PolicyUpdateRequest.prototype.setMinHtlcMsat=function(e){return n.Message.setProto3IntField(this,7,e)},proto.lnrpc.PolicyUpdateRequest.prototype.getMinHtlcMsatSpecified=function(){return n.Message.getBooleanFieldWithDefault(this,8,!1)},proto.lnrpc.PolicyUpdateRequest.prototype.setMinHtlcMsatSpecified=function(e){return n.Message.setProto3BooleanField(this,8,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.FailedUpdate.prototype.toObject=function(e){return proto.lnrpc.FailedUpdate.toObject(e,this)},proto.lnrpc.FailedUpdate.toObject=function(e,t){var r,o={outpoint:(r=t.getOutpoint())&&proto.lnrpc.OutPoint.toObject(e,r),reason:n.Message.getFieldWithDefault(t,2,0),updateError:n.Message.getFieldWithDefault(t,3,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.FailedUpdate.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.FailedUpdate;return proto.lnrpc.FailedUpdate.deserializeBinaryFromReader(r,t)},proto.lnrpc.FailedUpdate.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.OutPoint;t.readMessage(r,proto.lnrpc.OutPoint.deserializeBinaryFromReader),e.setOutpoint(r);break;case 2:r=t.readEnum();e.setReason(r);break;case 3:r=t.readString();e.setUpdateError(r);break;default:t.skipField()}}return e},proto.lnrpc.FailedUpdate.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.FailedUpdate.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.FailedUpdate.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getOutpoint())&&t.writeMessage(1,r,proto.lnrpc.OutPoint.serializeBinaryToWriter),0!==(r=e.getReason())&&t.writeEnum(2,r),(r=e.getUpdateError()).length>0&&t.writeString(3,r)},proto.lnrpc.FailedUpdate.prototype.getOutpoint=function(){return n.Message.getWrapperField(this,proto.lnrpc.OutPoint,1)},proto.lnrpc.FailedUpdate.prototype.setOutpoint=function(e){return n.Message.setWrapperField(this,1,e)},proto.lnrpc.FailedUpdate.prototype.clearOutpoint=function(){return this.setOutpoint(void 0)},proto.lnrpc.FailedUpdate.prototype.hasOutpoint=function(){return null!=n.Message.getField(this,1)},proto.lnrpc.FailedUpdate.prototype.getReason=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.FailedUpdate.prototype.setReason=function(e){return n.Message.setProto3EnumField(this,2,e)},proto.lnrpc.FailedUpdate.prototype.getUpdateError=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.lnrpc.FailedUpdate.prototype.setUpdateError=function(e){return n.Message.setProto3StringField(this,3,e)},proto.lnrpc.PolicyUpdateResponse.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.PolicyUpdateResponse.prototype.toObject=function(e){return proto.lnrpc.PolicyUpdateResponse.toObject(e,this)},proto.lnrpc.PolicyUpdateResponse.toObject=function(e,t){var r={failedUpdatesList:n.Message.toObjectList(t.getFailedUpdatesList(),proto.lnrpc.FailedUpdate.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.PolicyUpdateResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.PolicyUpdateResponse;return proto.lnrpc.PolicyUpdateResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.PolicyUpdateResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.lnrpc.FailedUpdate;t.readMessage(r,proto.lnrpc.FailedUpdate.deserializeBinaryFromReader),e.addFailedUpdates(r)}else t.skipField()}return e},proto.lnrpc.PolicyUpdateResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.PolicyUpdateResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.PolicyUpdateResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getFailedUpdatesList()).length>0&&t.writeRepeatedMessage(1,r,proto.lnrpc.FailedUpdate.serializeBinaryToWriter)},proto.lnrpc.PolicyUpdateResponse.prototype.getFailedUpdatesList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.FailedUpdate,1)},proto.lnrpc.PolicyUpdateResponse.prototype.setFailedUpdatesList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.lnrpc.PolicyUpdateResponse.prototype.addFailedUpdates=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.lnrpc.FailedUpdate,t)},proto.lnrpc.PolicyUpdateResponse.prototype.clearFailedUpdatesList=function(){return this.setFailedUpdatesList([])};n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ForwardingHistoryRequest.prototype.toObject=function(e){return proto.lnrpc.ForwardingHistoryRequest.toObject(e,this)},proto.lnrpc.ForwardingHistoryRequest.toObject=function(e,t){var r={startTime:n.Message.getFieldWithDefault(t,1,0),endTime:n.Message.getFieldWithDefault(t,2,0),indexOffset:n.Message.getFieldWithDefault(t,3,0),numMaxEvents:n.Message.getFieldWithDefault(t,4,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ForwardingHistoryRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ForwardingHistoryRequest;return proto.lnrpc.ForwardingHistoryRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.ForwardingHistoryRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint64();e.setStartTime(r);break;case 2:r=t.readUint64();e.setEndTime(r);break;case 3:r=t.readUint32();e.setIndexOffset(r);break;case 4:r=t.readUint32();e.setNumMaxEvents(r);break;default:t.skipField()}}return e},proto.lnrpc.ForwardingHistoryRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ForwardingHistoryRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ForwardingHistoryRequest.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getStartTime())&&t.writeUint64(1,r),0!==(r=e.getEndTime())&&t.writeUint64(2,r),0!==(r=e.getIndexOffset())&&t.writeUint32(3,r),0!==(r=e.getNumMaxEvents())&&t.writeUint32(4,r)},proto.lnrpc.ForwardingHistoryRequest.prototype.getStartTime=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.ForwardingHistoryRequest.prototype.setStartTime=function(e){return n.Message.setProto3IntField(this,1,e)},proto.lnrpc.ForwardingHistoryRequest.prototype.getEndTime=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.ForwardingHistoryRequest.prototype.setEndTime=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.ForwardingHistoryRequest.prototype.getIndexOffset=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.lnrpc.ForwardingHistoryRequest.prototype.setIndexOffset=function(e){return n.Message.setProto3IntField(this,3,e)},proto.lnrpc.ForwardingHistoryRequest.prototype.getNumMaxEvents=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.ForwardingHistoryRequest.prototype.setNumMaxEvents=function(e){return n.Message.setProto3IntField(this,4,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ForwardingEvent.prototype.toObject=function(e){return proto.lnrpc.ForwardingEvent.toObject(e,this)},proto.lnrpc.ForwardingEvent.toObject=function(e,t){var r={timestamp:n.Message.getFieldWithDefault(t,1,0),chanIdIn:n.Message.getFieldWithDefault(t,2,"0"),chanIdOut:n.Message.getFieldWithDefault(t,4,"0"),amtIn:n.Message.getFieldWithDefault(t,5,0),amtOut:n.Message.getFieldWithDefault(t,6,0),fee:n.Message.getFieldWithDefault(t,7,0),feeMsat:n.Message.getFieldWithDefault(t,8,0),amtInMsat:n.Message.getFieldWithDefault(t,9,0),amtOutMsat:n.Message.getFieldWithDefault(t,10,0),timestampNs:n.Message.getFieldWithDefault(t,11,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ForwardingEvent.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ForwardingEvent;return proto.lnrpc.ForwardingEvent.deserializeBinaryFromReader(r,t)},proto.lnrpc.ForwardingEvent.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint64();e.setTimestamp(r);break;case 2:r=t.readUint64String();e.setChanIdIn(r);break;case 4:r=t.readUint64String();e.setChanIdOut(r);break;case 5:r=t.readUint64();e.setAmtIn(r);break;case 6:r=t.readUint64();e.setAmtOut(r);break;case 7:r=t.readUint64();e.setFee(r);break;case 8:r=t.readUint64();e.setFeeMsat(r);break;case 9:r=t.readUint64();e.setAmtInMsat(r);break;case 10:r=t.readUint64();e.setAmtOutMsat(r);break;case 11:r=t.readUint64();e.setTimestampNs(r);break;default:t.skipField()}}return e},proto.lnrpc.ForwardingEvent.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ForwardingEvent.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ForwardingEvent.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getTimestamp())&&t.writeUint64(1,r),r=e.getChanIdIn(),0!==parseInt(r,10)&&t.writeUint64String(2,r),r=e.getChanIdOut(),0!==parseInt(r,10)&&t.writeUint64String(4,r),0!==(r=e.getAmtIn())&&t.writeUint64(5,r),0!==(r=e.getAmtOut())&&t.writeUint64(6,r),0!==(r=e.getFee())&&t.writeUint64(7,r),0!==(r=e.getFeeMsat())&&t.writeUint64(8,r),0!==(r=e.getAmtInMsat())&&t.writeUint64(9,r),0!==(r=e.getAmtOutMsat())&&t.writeUint64(10,r),0!==(r=e.getTimestampNs())&&t.writeUint64(11,r)},proto.lnrpc.ForwardingEvent.prototype.getTimestamp=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.ForwardingEvent.prototype.setTimestamp=function(e){return n.Message.setProto3IntField(this,1,e)},proto.lnrpc.ForwardingEvent.prototype.getChanIdIn=function(){return n.Message.getFieldWithDefault(this,2,"0")},proto.lnrpc.ForwardingEvent.prototype.setChanIdIn=function(e){return n.Message.setProto3StringIntField(this,2,e)},proto.lnrpc.ForwardingEvent.prototype.getChanIdOut=function(){return n.Message.getFieldWithDefault(this,4,"0")},proto.lnrpc.ForwardingEvent.prototype.setChanIdOut=function(e){return n.Message.setProto3StringIntField(this,4,e)},proto.lnrpc.ForwardingEvent.prototype.getAmtIn=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.ForwardingEvent.prototype.setAmtIn=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.ForwardingEvent.prototype.getAmtOut=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.ForwardingEvent.prototype.setAmtOut=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.ForwardingEvent.prototype.getFee=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.lnrpc.ForwardingEvent.prototype.setFee=function(e){return n.Message.setProto3IntField(this,7,e)},proto.lnrpc.ForwardingEvent.prototype.getFeeMsat=function(){return n.Message.getFieldWithDefault(this,8,0)},proto.lnrpc.ForwardingEvent.prototype.setFeeMsat=function(e){return n.Message.setProto3IntField(this,8,e)},proto.lnrpc.ForwardingEvent.prototype.getAmtInMsat=function(){return n.Message.getFieldWithDefault(this,9,0)},proto.lnrpc.ForwardingEvent.prototype.setAmtInMsat=function(e){return n.Message.setProto3IntField(this,9,e)},proto.lnrpc.ForwardingEvent.prototype.getAmtOutMsat=function(){return n.Message.getFieldWithDefault(this,10,0)},proto.lnrpc.ForwardingEvent.prototype.setAmtOutMsat=function(e){return n.Message.setProto3IntField(this,10,e)},proto.lnrpc.ForwardingEvent.prototype.getTimestampNs=function(){return n.Message.getFieldWithDefault(this,11,0)},proto.lnrpc.ForwardingEvent.prototype.setTimestampNs=function(e){return n.Message.setProto3IntField(this,11,e)},proto.lnrpc.ForwardingHistoryResponse.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ForwardingHistoryResponse.prototype.toObject=function(e){return proto.lnrpc.ForwardingHistoryResponse.toObject(e,this)},proto.lnrpc.ForwardingHistoryResponse.toObject=function(e,t){var r={forwardingEventsList:n.Message.toObjectList(t.getForwardingEventsList(),proto.lnrpc.ForwardingEvent.toObject,e),lastOffsetIndex:n.Message.getFieldWithDefault(t,2,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ForwardingHistoryResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ForwardingHistoryResponse;return proto.lnrpc.ForwardingHistoryResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.ForwardingHistoryResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.ForwardingEvent;t.readMessage(r,proto.lnrpc.ForwardingEvent.deserializeBinaryFromReader),e.addForwardingEvents(r);break;case 2:r=t.readUint32();e.setLastOffsetIndex(r);break;default:t.skipField()}}return e},proto.lnrpc.ForwardingHistoryResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ForwardingHistoryResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ForwardingHistoryResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getForwardingEventsList()).length>0&&t.writeRepeatedMessage(1,r,proto.lnrpc.ForwardingEvent.serializeBinaryToWriter),0!==(r=e.getLastOffsetIndex())&&t.writeUint32(2,r)},proto.lnrpc.ForwardingHistoryResponse.prototype.getForwardingEventsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.ForwardingEvent,1)},proto.lnrpc.ForwardingHistoryResponse.prototype.setForwardingEventsList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.lnrpc.ForwardingHistoryResponse.prototype.addForwardingEvents=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.lnrpc.ForwardingEvent,t)},proto.lnrpc.ForwardingHistoryResponse.prototype.clearForwardingEventsList=function(){return this.setForwardingEventsList([])},proto.lnrpc.ForwardingHistoryResponse.prototype.getLastOffsetIndex=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.ForwardingHistoryResponse.prototype.setLastOffsetIndex=function(e){return n.Message.setProto3IntField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ExportChannelBackupRequest.prototype.toObject=function(e){return proto.lnrpc.ExportChannelBackupRequest.toObject(e,this)},proto.lnrpc.ExportChannelBackupRequest.toObject=function(e,t){var r,n={chanPoint:(r=t.getChanPoint())&&proto.lnrpc.ChannelPoint.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.lnrpc.ExportChannelBackupRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ExportChannelBackupRequest;return proto.lnrpc.ExportChannelBackupRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.ExportChannelBackupRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.lnrpc.ChannelPoint;t.readMessage(r,proto.lnrpc.ChannelPoint.deserializeBinaryFromReader),e.setChanPoint(r)}else t.skipField()}return e},proto.lnrpc.ExportChannelBackupRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ExportChannelBackupRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ExportChannelBackupRequest.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getChanPoint())&&t.writeMessage(1,r,proto.lnrpc.ChannelPoint.serializeBinaryToWriter)},proto.lnrpc.ExportChannelBackupRequest.prototype.getChanPoint=function(){return n.Message.getWrapperField(this,proto.lnrpc.ChannelPoint,1)},proto.lnrpc.ExportChannelBackupRequest.prototype.setChanPoint=function(e){return n.Message.setWrapperField(this,1,e)},proto.lnrpc.ExportChannelBackupRequest.prototype.clearChanPoint=function(){return this.setChanPoint(void 0)},proto.lnrpc.ExportChannelBackupRequest.prototype.hasChanPoint=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChannelBackup.prototype.toObject=function(e){return proto.lnrpc.ChannelBackup.toObject(e,this)},proto.lnrpc.ChannelBackup.toObject=function(e,t){var r,n={chanPoint:(r=t.getChanPoint())&&proto.lnrpc.ChannelPoint.toObject(e,r),chanBackup:t.getChanBackup_asB64()};return e&&(n.$jspbMessageInstance=t),n}),proto.lnrpc.ChannelBackup.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChannelBackup;return proto.lnrpc.ChannelBackup.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChannelBackup.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.ChannelPoint;t.readMessage(r,proto.lnrpc.ChannelPoint.deserializeBinaryFromReader),e.setChanPoint(r);break;case 2:r=t.readBytes();e.setChanBackup(r);break;default:t.skipField()}}return e},proto.lnrpc.ChannelBackup.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChannelBackup.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChannelBackup.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getChanPoint())&&t.writeMessage(1,r,proto.lnrpc.ChannelPoint.serializeBinaryToWriter),(r=e.getChanBackup_asU8()).length>0&&t.writeBytes(2,r)},proto.lnrpc.ChannelBackup.prototype.getChanPoint=function(){return n.Message.getWrapperField(this,proto.lnrpc.ChannelPoint,1)},proto.lnrpc.ChannelBackup.prototype.setChanPoint=function(e){return n.Message.setWrapperField(this,1,e)},proto.lnrpc.ChannelBackup.prototype.clearChanPoint=function(){return this.setChanPoint(void 0)},proto.lnrpc.ChannelBackup.prototype.hasChanPoint=function(){return null!=n.Message.getField(this,1)},proto.lnrpc.ChannelBackup.prototype.getChanBackup=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.ChannelBackup.prototype.getChanBackup_asB64=function(){return n.Message.bytesAsB64(this.getChanBackup())},proto.lnrpc.ChannelBackup.prototype.getChanBackup_asU8=function(){return n.Message.bytesAsU8(this.getChanBackup())},proto.lnrpc.ChannelBackup.prototype.setChanBackup=function(e){return n.Message.setProto3BytesField(this,2,e)},proto.lnrpc.MultiChanBackup.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.MultiChanBackup.prototype.toObject=function(e){return proto.lnrpc.MultiChanBackup.toObject(e,this)},proto.lnrpc.MultiChanBackup.toObject=function(e,t){var r={chanPointsList:n.Message.toObjectList(t.getChanPointsList(),proto.lnrpc.ChannelPoint.toObject,e),multiChanBackup:t.getMultiChanBackup_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.MultiChanBackup.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.MultiChanBackup;return proto.lnrpc.MultiChanBackup.deserializeBinaryFromReader(r,t)},proto.lnrpc.MultiChanBackup.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.ChannelPoint;t.readMessage(r,proto.lnrpc.ChannelPoint.deserializeBinaryFromReader),e.addChanPoints(r);break;case 2:r=t.readBytes();e.setMultiChanBackup(r);break;default:t.skipField()}}return e},proto.lnrpc.MultiChanBackup.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.MultiChanBackup.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.MultiChanBackup.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getChanPointsList()).length>0&&t.writeRepeatedMessage(1,r,proto.lnrpc.ChannelPoint.serializeBinaryToWriter),(r=e.getMultiChanBackup_asU8()).length>0&&t.writeBytes(2,r)},proto.lnrpc.MultiChanBackup.prototype.getChanPointsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.ChannelPoint,1)},proto.lnrpc.MultiChanBackup.prototype.setChanPointsList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.lnrpc.MultiChanBackup.prototype.addChanPoints=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.lnrpc.ChannelPoint,t)},proto.lnrpc.MultiChanBackup.prototype.clearChanPointsList=function(){return this.setChanPointsList([])},proto.lnrpc.MultiChanBackup.prototype.getMultiChanBackup=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.MultiChanBackup.prototype.getMultiChanBackup_asB64=function(){return n.Message.bytesAsB64(this.getMultiChanBackup())},proto.lnrpc.MultiChanBackup.prototype.getMultiChanBackup_asU8=function(){return n.Message.bytesAsU8(this.getMultiChanBackup())},proto.lnrpc.MultiChanBackup.prototype.setMultiChanBackup=function(e){return n.Message.setProto3BytesField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChanBackupExportRequest.prototype.toObject=function(e){return proto.lnrpc.ChanBackupExportRequest.toObject(e,this)},proto.lnrpc.ChanBackupExportRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ChanBackupExportRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChanBackupExportRequest;return proto.lnrpc.ChanBackupExportRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChanBackupExportRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.ChanBackupExportRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChanBackupExportRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChanBackupExportRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChanBackupSnapshot.prototype.toObject=function(e){return proto.lnrpc.ChanBackupSnapshot.toObject(e,this)},proto.lnrpc.ChanBackupSnapshot.toObject=function(e,t){var r,n={singleChanBackups:(r=t.getSingleChanBackups())&&proto.lnrpc.ChannelBackups.toObject(e,r),multiChanBackup:(r=t.getMultiChanBackup())&&proto.lnrpc.MultiChanBackup.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.lnrpc.ChanBackupSnapshot.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChanBackupSnapshot;return proto.lnrpc.ChanBackupSnapshot.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChanBackupSnapshot.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.ChannelBackups;t.readMessage(r,proto.lnrpc.ChannelBackups.deserializeBinaryFromReader),e.setSingleChanBackups(r);break;case 2:r=new proto.lnrpc.MultiChanBackup;t.readMessage(r,proto.lnrpc.MultiChanBackup.deserializeBinaryFromReader),e.setMultiChanBackup(r);break;default:t.skipField()}}return e},proto.lnrpc.ChanBackupSnapshot.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChanBackupSnapshot.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChanBackupSnapshot.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getSingleChanBackups())&&t.writeMessage(1,r,proto.lnrpc.ChannelBackups.serializeBinaryToWriter),null!=(r=e.getMultiChanBackup())&&t.writeMessage(2,r,proto.lnrpc.MultiChanBackup.serializeBinaryToWriter)},proto.lnrpc.ChanBackupSnapshot.prototype.getSingleChanBackups=function(){return n.Message.getWrapperField(this,proto.lnrpc.ChannelBackups,1)},proto.lnrpc.ChanBackupSnapshot.prototype.setSingleChanBackups=function(e){return n.Message.setWrapperField(this,1,e)},proto.lnrpc.ChanBackupSnapshot.prototype.clearSingleChanBackups=function(){return this.setSingleChanBackups(void 0)},proto.lnrpc.ChanBackupSnapshot.prototype.hasSingleChanBackups=function(){return null!=n.Message.getField(this,1)},proto.lnrpc.ChanBackupSnapshot.prototype.getMultiChanBackup=function(){return n.Message.getWrapperField(this,proto.lnrpc.MultiChanBackup,2)},proto.lnrpc.ChanBackupSnapshot.prototype.setMultiChanBackup=function(e){return n.Message.setWrapperField(this,2,e)},proto.lnrpc.ChanBackupSnapshot.prototype.clearMultiChanBackup=function(){return this.setMultiChanBackup(void 0)},proto.lnrpc.ChanBackupSnapshot.prototype.hasMultiChanBackup=function(){return null!=n.Message.getField(this,2)},proto.lnrpc.ChannelBackups.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChannelBackups.prototype.toObject=function(e){return proto.lnrpc.ChannelBackups.toObject(e,this)},proto.lnrpc.ChannelBackups.toObject=function(e,t){var r={chanBackupsList:n.Message.toObjectList(t.getChanBackupsList(),proto.lnrpc.ChannelBackup.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ChannelBackups.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChannelBackups;return proto.lnrpc.ChannelBackups.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChannelBackups.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.lnrpc.ChannelBackup;t.readMessage(r,proto.lnrpc.ChannelBackup.deserializeBinaryFromReader),e.addChanBackups(r)}else t.skipField()}return e},proto.lnrpc.ChannelBackups.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChannelBackups.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChannelBackups.serializeBinaryToWriter=function(e,t){var r;(r=e.getChanBackupsList()).length>0&&t.writeRepeatedMessage(1,r,proto.lnrpc.ChannelBackup.serializeBinaryToWriter)},proto.lnrpc.ChannelBackups.prototype.getChanBackupsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.ChannelBackup,1)},proto.lnrpc.ChannelBackups.prototype.setChanBackupsList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.lnrpc.ChannelBackups.prototype.addChanBackups=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.lnrpc.ChannelBackup,t)},proto.lnrpc.ChannelBackups.prototype.clearChanBackupsList=function(){return this.setChanBackupsList([])},proto.lnrpc.RestoreChanBackupRequest.oneofGroups_=[[1,2]],proto.lnrpc.RestoreChanBackupRequest.BackupCase={BACKUP_NOT_SET:0,CHAN_BACKUPS:1,MULTI_CHAN_BACKUP:2},proto.lnrpc.RestoreChanBackupRequest.prototype.getBackupCase=function(){return n.Message.computeOneofCase(this,proto.lnrpc.RestoreChanBackupRequest.oneofGroups_[0])},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.RestoreChanBackupRequest.prototype.toObject=function(e){return proto.lnrpc.RestoreChanBackupRequest.toObject(e,this)},proto.lnrpc.RestoreChanBackupRequest.toObject=function(e,t){var r,n={chanBackups:(r=t.getChanBackups())&&proto.lnrpc.ChannelBackups.toObject(e,r),multiChanBackup:t.getMultiChanBackup_asB64()};return e&&(n.$jspbMessageInstance=t),n}),proto.lnrpc.RestoreChanBackupRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.RestoreChanBackupRequest;return proto.lnrpc.RestoreChanBackupRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.RestoreChanBackupRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.ChannelBackups;t.readMessage(r,proto.lnrpc.ChannelBackups.deserializeBinaryFromReader),e.setChanBackups(r);break;case 2:r=t.readBytes();e.setMultiChanBackup(r);break;default:t.skipField()}}return e},proto.lnrpc.RestoreChanBackupRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.RestoreChanBackupRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.RestoreChanBackupRequest.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getChanBackups())&&t.writeMessage(1,r,proto.lnrpc.ChannelBackups.serializeBinaryToWriter),null!=(r=n.Message.getField(e,2))&&t.writeBytes(2,r)},proto.lnrpc.RestoreChanBackupRequest.prototype.getChanBackups=function(){return n.Message.getWrapperField(this,proto.lnrpc.ChannelBackups,1)},proto.lnrpc.RestoreChanBackupRequest.prototype.setChanBackups=function(e){return n.Message.setOneofWrapperField(this,1,proto.lnrpc.RestoreChanBackupRequest.oneofGroups_[0],e)},proto.lnrpc.RestoreChanBackupRequest.prototype.clearChanBackups=function(){return this.setChanBackups(void 0)},proto.lnrpc.RestoreChanBackupRequest.prototype.hasChanBackups=function(){return null!=n.Message.getField(this,1)},proto.lnrpc.RestoreChanBackupRequest.prototype.getMultiChanBackup=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.RestoreChanBackupRequest.prototype.getMultiChanBackup_asB64=function(){return n.Message.bytesAsB64(this.getMultiChanBackup())},proto.lnrpc.RestoreChanBackupRequest.prototype.getMultiChanBackup_asU8=function(){return n.Message.bytesAsU8(this.getMultiChanBackup())},proto.lnrpc.RestoreChanBackupRequest.prototype.setMultiChanBackup=function(e){return n.Message.setOneofField(this,2,proto.lnrpc.RestoreChanBackupRequest.oneofGroups_[0],e)},proto.lnrpc.RestoreChanBackupRequest.prototype.clearMultiChanBackup=function(){return n.Message.setOneofField(this,2,proto.lnrpc.RestoreChanBackupRequest.oneofGroups_[0],void 0)},proto.lnrpc.RestoreChanBackupRequest.prototype.hasMultiChanBackup=function(){return null!=n.Message.getField(this,2)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.RestoreBackupResponse.prototype.toObject=function(e){return proto.lnrpc.RestoreBackupResponse.toObject(e,this)},proto.lnrpc.RestoreBackupResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.RestoreBackupResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.RestoreBackupResponse;return proto.lnrpc.RestoreBackupResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.RestoreBackupResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.RestoreBackupResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.RestoreBackupResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.RestoreBackupResponse.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChannelBackupSubscription.prototype.toObject=function(e){return proto.lnrpc.ChannelBackupSubscription.toObject(e,this)},proto.lnrpc.ChannelBackupSubscription.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ChannelBackupSubscription.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChannelBackupSubscription;return proto.lnrpc.ChannelBackupSubscription.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChannelBackupSubscription.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.ChannelBackupSubscription.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChannelBackupSubscription.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChannelBackupSubscription.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.VerifyChanBackupResponse.prototype.toObject=function(e){return proto.lnrpc.VerifyChanBackupResponse.toObject(e,this)},proto.lnrpc.VerifyChanBackupResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.VerifyChanBackupResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.VerifyChanBackupResponse;return proto.lnrpc.VerifyChanBackupResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.VerifyChanBackupResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.VerifyChanBackupResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.VerifyChanBackupResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.VerifyChanBackupResponse.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.MacaroonPermission.prototype.toObject=function(e){return proto.lnrpc.MacaroonPermission.toObject(e,this)},proto.lnrpc.MacaroonPermission.toObject=function(e,t){var r={entity:n.Message.getFieldWithDefault(t,1,""),action:n.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.MacaroonPermission.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.MacaroonPermission;return proto.lnrpc.MacaroonPermission.deserializeBinaryFromReader(r,t)},proto.lnrpc.MacaroonPermission.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setEntity(r);break;case 2:r=t.readString();e.setAction(r);break;default:t.skipField()}}return e},proto.lnrpc.MacaroonPermission.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.MacaroonPermission.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.MacaroonPermission.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getEntity()).length>0&&t.writeString(1,r),(r=e.getAction()).length>0&&t.writeString(2,r)},proto.lnrpc.MacaroonPermission.prototype.getEntity=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.MacaroonPermission.prototype.setEntity=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.MacaroonPermission.prototype.getAction=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.MacaroonPermission.prototype.setAction=function(e){return n.Message.setProto3StringField(this,2,e)},proto.lnrpc.BakeMacaroonRequest.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.BakeMacaroonRequest.prototype.toObject=function(e){return proto.lnrpc.BakeMacaroonRequest.toObject(e,this)},proto.lnrpc.BakeMacaroonRequest.toObject=function(e,t){var r={permissionsList:n.Message.toObjectList(t.getPermissionsList(),proto.lnrpc.MacaroonPermission.toObject,e),rootKeyId:n.Message.getFieldWithDefault(t,2,0),allowExternalPermissions:n.Message.getBooleanFieldWithDefault(t,3,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.BakeMacaroonRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.BakeMacaroonRequest;return proto.lnrpc.BakeMacaroonRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.BakeMacaroonRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.lnrpc.MacaroonPermission;t.readMessage(r,proto.lnrpc.MacaroonPermission.deserializeBinaryFromReader),e.addPermissions(r);break;case 2:r=t.readUint64();e.setRootKeyId(r);break;case 3:r=t.readBool();e.setAllowExternalPermissions(r);break;default:t.skipField()}}return e},proto.lnrpc.BakeMacaroonRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.BakeMacaroonRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.BakeMacaroonRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPermissionsList()).length>0&&t.writeRepeatedMessage(1,r,proto.lnrpc.MacaroonPermission.serializeBinaryToWriter),0!==(r=e.getRootKeyId())&&t.writeUint64(2,r),(r=e.getAllowExternalPermissions())&&t.writeBool(3,r)},proto.lnrpc.BakeMacaroonRequest.prototype.getPermissionsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.MacaroonPermission,1)},proto.lnrpc.BakeMacaroonRequest.prototype.setPermissionsList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.lnrpc.BakeMacaroonRequest.prototype.addPermissions=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.lnrpc.MacaroonPermission,t)},proto.lnrpc.BakeMacaroonRequest.prototype.clearPermissionsList=function(){return this.setPermissionsList([])},proto.lnrpc.BakeMacaroonRequest.prototype.getRootKeyId=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.lnrpc.BakeMacaroonRequest.prototype.setRootKeyId=function(e){return n.Message.setProto3IntField(this,2,e)},proto.lnrpc.BakeMacaroonRequest.prototype.getAllowExternalPermissions=function(){return n.Message.getBooleanFieldWithDefault(this,3,!1)},proto.lnrpc.BakeMacaroonRequest.prototype.setAllowExternalPermissions=function(e){return n.Message.setProto3BooleanField(this,3,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.BakeMacaroonResponse.prototype.toObject=function(e){return proto.lnrpc.BakeMacaroonResponse.toObject(e,this)},proto.lnrpc.BakeMacaroonResponse.toObject=function(e,t){var r={macaroon:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.BakeMacaroonResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.BakeMacaroonResponse;return proto.lnrpc.BakeMacaroonResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.BakeMacaroonResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setMacaroon(r)}else t.skipField()}return e},proto.lnrpc.BakeMacaroonResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.BakeMacaroonResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.BakeMacaroonResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getMacaroon()).length>0&&t.writeString(1,r)},proto.lnrpc.BakeMacaroonResponse.prototype.getMacaroon=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.BakeMacaroonResponse.prototype.setMacaroon=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ListMacaroonIDsRequest.prototype.toObject=function(e){return proto.lnrpc.ListMacaroonIDsRequest.toObject(e,this)},proto.lnrpc.ListMacaroonIDsRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ListMacaroonIDsRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ListMacaroonIDsRequest;return proto.lnrpc.ListMacaroonIDsRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.ListMacaroonIDsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.ListMacaroonIDsRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ListMacaroonIDsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ListMacaroonIDsRequest.serializeBinaryToWriter=function(e,t){},proto.lnrpc.ListMacaroonIDsResponse.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ListMacaroonIDsResponse.prototype.toObject=function(e){return proto.lnrpc.ListMacaroonIDsResponse.toObject(e,this)},proto.lnrpc.ListMacaroonIDsResponse.toObject=function(e,t){var r,o={rootKeyIdsList:null==(r=n.Message.getRepeatedField(t,1))?void 0:r};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.ListMacaroonIDsResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ListMacaroonIDsResponse;return proto.lnrpc.ListMacaroonIDsResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.ListMacaroonIDsResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readPackedUint64();e.setRootKeyIdsList(r)}else t.skipField()}return e},proto.lnrpc.ListMacaroonIDsResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ListMacaroonIDsResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ListMacaroonIDsResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getRootKeyIdsList()).length>0&&t.writePackedUint64(1,r)},proto.lnrpc.ListMacaroonIDsResponse.prototype.getRootKeyIdsList=function(){return n.Message.getRepeatedField(this,1)},proto.lnrpc.ListMacaroonIDsResponse.prototype.setRootKeyIdsList=function(e){return n.Message.setField(this,1,e||[])},proto.lnrpc.ListMacaroonIDsResponse.prototype.addRootKeyIds=function(e,t){return n.Message.addToRepeatedField(this,1,e,t)},proto.lnrpc.ListMacaroonIDsResponse.prototype.clearRootKeyIdsList=function(){return this.setRootKeyIdsList([])},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.DeleteMacaroonIDRequest.prototype.toObject=function(e){return proto.lnrpc.DeleteMacaroonIDRequest.toObject(e,this)},proto.lnrpc.DeleteMacaroonIDRequest.toObject=function(e,t){var r={rootKeyId:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.DeleteMacaroonIDRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.DeleteMacaroonIDRequest;return proto.lnrpc.DeleteMacaroonIDRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.DeleteMacaroonIDRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readUint64();e.setRootKeyId(r)}else t.skipField()}return e},proto.lnrpc.DeleteMacaroonIDRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.DeleteMacaroonIDRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.DeleteMacaroonIDRequest.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getRootKeyId())&&t.writeUint64(1,r)},proto.lnrpc.DeleteMacaroonIDRequest.prototype.getRootKeyId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.DeleteMacaroonIDRequest.prototype.setRootKeyId=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.DeleteMacaroonIDResponse.prototype.toObject=function(e){return proto.lnrpc.DeleteMacaroonIDResponse.toObject(e,this)},proto.lnrpc.DeleteMacaroonIDResponse.toObject=function(e,t){var r={deleted:n.Message.getBooleanFieldWithDefault(t,1,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.DeleteMacaroonIDResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.DeleteMacaroonIDResponse;return proto.lnrpc.DeleteMacaroonIDResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.DeleteMacaroonIDResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readBool();e.setDeleted(r)}else t.skipField()}return e},proto.lnrpc.DeleteMacaroonIDResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.DeleteMacaroonIDResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.DeleteMacaroonIDResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getDeleted())&&t.writeBool(1,r)},proto.lnrpc.DeleteMacaroonIDResponse.prototype.getDeleted=function(){return n.Message.getBooleanFieldWithDefault(this,1,!1)},proto.lnrpc.DeleteMacaroonIDResponse.prototype.setDeleted=function(e){return n.Message.setProto3BooleanField(this,1,e)},proto.lnrpc.MacaroonPermissionList.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.MacaroonPermissionList.prototype.toObject=function(e){return proto.lnrpc.MacaroonPermissionList.toObject(e,this)},proto.lnrpc.MacaroonPermissionList.toObject=function(e,t){var r={permissionsList:n.Message.toObjectList(t.getPermissionsList(),proto.lnrpc.MacaroonPermission.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.MacaroonPermissionList.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.MacaroonPermissionList;return proto.lnrpc.MacaroonPermissionList.deserializeBinaryFromReader(r,t)},proto.lnrpc.MacaroonPermissionList.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.lnrpc.MacaroonPermission;t.readMessage(r,proto.lnrpc.MacaroonPermission.deserializeBinaryFromReader),e.addPermissions(r)}else t.skipField()}return e},proto.lnrpc.MacaroonPermissionList.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.MacaroonPermissionList.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.MacaroonPermissionList.serializeBinaryToWriter=function(e,t){var r;(r=e.getPermissionsList()).length>0&&t.writeRepeatedMessage(1,r,proto.lnrpc.MacaroonPermission.serializeBinaryToWriter)},proto.lnrpc.MacaroonPermissionList.prototype.getPermissionsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.MacaroonPermission,1)},proto.lnrpc.MacaroonPermissionList.prototype.setPermissionsList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.lnrpc.MacaroonPermissionList.prototype.addPermissions=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.lnrpc.MacaroonPermission,t)},proto.lnrpc.MacaroonPermissionList.prototype.clearPermissionsList=function(){return this.setPermissionsList([])},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ListPermissionsRequest.prototype.toObject=function(e){return proto.lnrpc.ListPermissionsRequest.toObject(e,this)},proto.lnrpc.ListPermissionsRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ListPermissionsRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ListPermissionsRequest;return proto.lnrpc.ListPermissionsRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.ListPermissionsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.lnrpc.ListPermissionsRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ListPermissionsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ListPermissionsRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ListPermissionsResponse.prototype.toObject=function(e){return proto.lnrpc.ListPermissionsResponse.toObject(e,this)},proto.lnrpc.ListPermissionsResponse.toObject=function(e,t){var r,n={methodPermissionsMap:(r=t.getMethodPermissionsMap())?r.toObject(e,proto.lnrpc.MacaroonPermissionList.toObject):[]};return e&&(n.$jspbMessageInstance=t),n}),proto.lnrpc.ListPermissionsResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ListPermissionsResponse;return proto.lnrpc.ListPermissionsResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.ListPermissionsResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=e.getMethodPermissionsMap();t.readMessage(r,(function(e,t){n.Map.deserializeBinary(e,t,n.BinaryReader.prototype.readString,n.BinaryReader.prototype.readMessage,proto.lnrpc.MacaroonPermissionList.deserializeBinaryFromReader,"",new proto.lnrpc.MacaroonPermissionList)}))}else t.skipField()}return e},proto.lnrpc.ListPermissionsResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ListPermissionsResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ListPermissionsResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getMethodPermissionsMap(!0))&&r.getLength()>0&&r.serializeBinary(1,t,n.BinaryWriter.prototype.writeString,n.BinaryWriter.prototype.writeMessage,proto.lnrpc.MacaroonPermissionList.serializeBinaryToWriter)},proto.lnrpc.ListPermissionsResponse.prototype.getMethodPermissionsMap=function(e){return n.Message.getMapField(this,1,e,proto.lnrpc.MacaroonPermissionList)},proto.lnrpc.ListPermissionsResponse.prototype.clearMethodPermissionsMap=function(){return this.getMethodPermissionsMap().clear(),this},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.Failure.prototype.toObject=function(e){return proto.lnrpc.Failure.toObject(e,this)},proto.lnrpc.Failure.toObject=function(e,t){var r,o={code:n.Message.getFieldWithDefault(t,1,0),channelUpdate:(r=t.getChannelUpdate())&&proto.lnrpc.ChannelUpdate.toObject(e,r),htlcMsat:n.Message.getFieldWithDefault(t,4,0),onionSha256:t.getOnionSha256_asB64(),cltvExpiry:n.Message.getFieldWithDefault(t,6,0),flags:n.Message.getFieldWithDefault(t,7,0),failureSourceIndex:n.Message.getFieldWithDefault(t,8,0),height:n.Message.getFieldWithDefault(t,9,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.Failure.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.Failure;return proto.lnrpc.Failure.deserializeBinaryFromReader(r,t)},proto.lnrpc.Failure.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setCode(r);break;case 3:r=new proto.lnrpc.ChannelUpdate;t.readMessage(r,proto.lnrpc.ChannelUpdate.deserializeBinaryFromReader),e.setChannelUpdate(r);break;case 4:r=t.readUint64();e.setHtlcMsat(r);break;case 5:r=t.readBytes();e.setOnionSha256(r);break;case 6:r=t.readUint32();e.setCltvExpiry(r);break;case 7:r=t.readUint32();e.setFlags(r);break;case 8:r=t.readUint32();e.setFailureSourceIndex(r);break;case 9:r=t.readUint32();e.setHeight(r);break;default:t.skipField()}}return e},proto.lnrpc.Failure.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.Failure.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.Failure.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getCode())&&t.writeEnum(1,r),null!=(r=e.getChannelUpdate())&&t.writeMessage(3,r,proto.lnrpc.ChannelUpdate.serializeBinaryToWriter),0!==(r=e.getHtlcMsat())&&t.writeUint64(4,r),(r=e.getOnionSha256_asU8()).length>0&&t.writeBytes(5,r),0!==(r=e.getCltvExpiry())&&t.writeUint32(6,r),0!==(r=e.getFlags())&&t.writeUint32(7,r),0!==(r=e.getFailureSourceIndex())&&t.writeUint32(8,r),0!==(r=e.getHeight())&&t.writeUint32(9,r)},proto.lnrpc.Failure.FailureCode={RESERVED:0,INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS:1,INCORRECT_PAYMENT_AMOUNT:2,FINAL_INCORRECT_CLTV_EXPIRY:3,FINAL_INCORRECT_HTLC_AMOUNT:4,FINAL_EXPIRY_TOO_SOON:5,INVALID_REALM:6,EXPIRY_TOO_SOON:7,INVALID_ONION_VERSION:8,INVALID_ONION_HMAC:9,INVALID_ONION_KEY:10,AMOUNT_BELOW_MINIMUM:11,FEE_INSUFFICIENT:12,INCORRECT_CLTV_EXPIRY:13,CHANNEL_DISABLED:14,TEMPORARY_CHANNEL_FAILURE:15,REQUIRED_NODE_FEATURE_MISSING:16,REQUIRED_CHANNEL_FEATURE_MISSING:17,UNKNOWN_NEXT_PEER:18,TEMPORARY_NODE_FAILURE:19,PERMANENT_NODE_FAILURE:20,PERMANENT_CHANNEL_FAILURE:21,EXPIRY_TOO_FAR:22,MPP_TIMEOUT:23,INVALID_ONION_PAYLOAD:24,INTERNAL_FAILURE:997,UNKNOWN_FAILURE:998,UNREADABLE_FAILURE:999},proto.lnrpc.Failure.prototype.getCode=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.Failure.prototype.setCode=function(e){return n.Message.setProto3EnumField(this,1,e)},proto.lnrpc.Failure.prototype.getChannelUpdate=function(){return n.Message.getWrapperField(this,proto.lnrpc.ChannelUpdate,3)},proto.lnrpc.Failure.prototype.setChannelUpdate=function(e){return n.Message.setWrapperField(this,3,e)},proto.lnrpc.Failure.prototype.clearChannelUpdate=function(){return this.setChannelUpdate(void 0)},proto.lnrpc.Failure.prototype.hasChannelUpdate=function(){return null!=n.Message.getField(this,3)},proto.lnrpc.Failure.prototype.getHtlcMsat=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.Failure.prototype.setHtlcMsat=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.Failure.prototype.getOnionSha256=function(){return n.Message.getFieldWithDefault(this,5,"")},proto.lnrpc.Failure.prototype.getOnionSha256_asB64=function(){return n.Message.bytesAsB64(this.getOnionSha256())},proto.lnrpc.Failure.prototype.getOnionSha256_asU8=function(){return n.Message.bytesAsU8(this.getOnionSha256())},proto.lnrpc.Failure.prototype.setOnionSha256=function(e){return n.Message.setProto3BytesField(this,5,e)},proto.lnrpc.Failure.prototype.getCltvExpiry=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.Failure.prototype.setCltvExpiry=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.Failure.prototype.getFlags=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.lnrpc.Failure.prototype.setFlags=function(e){return n.Message.setProto3IntField(this,7,e)},proto.lnrpc.Failure.prototype.getFailureSourceIndex=function(){return n.Message.getFieldWithDefault(this,8,0)},proto.lnrpc.Failure.prototype.setFailureSourceIndex=function(e){return n.Message.setProto3IntField(this,8,e)},proto.lnrpc.Failure.prototype.getHeight=function(){return n.Message.getFieldWithDefault(this,9,0)},proto.lnrpc.Failure.prototype.setHeight=function(e){return n.Message.setProto3IntField(this,9,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.ChannelUpdate.prototype.toObject=function(e){return proto.lnrpc.ChannelUpdate.toObject(e,this)},proto.lnrpc.ChannelUpdate.toObject=function(e,t){var r={signature:t.getSignature_asB64(),chainHash:t.getChainHash_asB64(),chanId:n.Message.getFieldWithDefault(t,3,"0"),timestamp:n.Message.getFieldWithDefault(t,4,0),messageFlags:n.Message.getFieldWithDefault(t,10,0),channelFlags:n.Message.getFieldWithDefault(t,5,0),timeLockDelta:n.Message.getFieldWithDefault(t,6,0),htlcMinimumMsat:n.Message.getFieldWithDefault(t,7,0),baseFee:n.Message.getFieldWithDefault(t,8,0),feeRate:n.Message.getFieldWithDefault(t,9,0),htlcMaximumMsat:n.Message.getFieldWithDefault(t,11,0),extraOpaqueData:t.getExtraOpaqueData_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.ChannelUpdate.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.ChannelUpdate;return proto.lnrpc.ChannelUpdate.deserializeBinaryFromReader(r,t)},proto.lnrpc.ChannelUpdate.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setSignature(r);break;case 2:r=t.readBytes();e.setChainHash(r);break;case 3:r=t.readUint64String();e.setChanId(r);break;case 4:r=t.readUint32();e.setTimestamp(r);break;case 10:r=t.readUint32();e.setMessageFlags(r);break;case 5:r=t.readUint32();e.setChannelFlags(r);break;case 6:r=t.readUint32();e.setTimeLockDelta(r);break;case 7:r=t.readUint64();e.setHtlcMinimumMsat(r);break;case 8:r=t.readUint32();e.setBaseFee(r);break;case 9:r=t.readUint32();e.setFeeRate(r);break;case 11:r=t.readUint64();e.setHtlcMaximumMsat(r);break;case 12:r=t.readBytes();e.setExtraOpaqueData(r);break;default:t.skipField()}}return e},proto.lnrpc.ChannelUpdate.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.ChannelUpdate.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.ChannelUpdate.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSignature_asU8()).length>0&&t.writeBytes(1,r),(r=e.getChainHash_asU8()).length>0&&t.writeBytes(2,r),r=e.getChanId(),0!==parseInt(r,10)&&t.writeUint64String(3,r),0!==(r=e.getTimestamp())&&t.writeUint32(4,r),0!==(r=e.getMessageFlags())&&t.writeUint32(10,r),0!==(r=e.getChannelFlags())&&t.writeUint32(5,r),0!==(r=e.getTimeLockDelta())&&t.writeUint32(6,r),0!==(r=e.getHtlcMinimumMsat())&&t.writeUint64(7,r),0!==(r=e.getBaseFee())&&t.writeUint32(8,r),0!==(r=e.getFeeRate())&&t.writeUint32(9,r),0!==(r=e.getHtlcMaximumMsat())&&t.writeUint64(11,r),(r=e.getExtraOpaqueData_asU8()).length>0&&t.writeBytes(12,r)},proto.lnrpc.ChannelUpdate.prototype.getSignature=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.ChannelUpdate.prototype.getSignature_asB64=function(){return n.Message.bytesAsB64(this.getSignature())},proto.lnrpc.ChannelUpdate.prototype.getSignature_asU8=function(){return n.Message.bytesAsU8(this.getSignature())},proto.lnrpc.ChannelUpdate.prototype.setSignature=function(e){return n.Message.setProto3BytesField(this,1,e)},proto.lnrpc.ChannelUpdate.prototype.getChainHash=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.ChannelUpdate.prototype.getChainHash_asB64=function(){return n.Message.bytesAsB64(this.getChainHash())},proto.lnrpc.ChannelUpdate.prototype.getChainHash_asU8=function(){return n.Message.bytesAsU8(this.getChainHash())},proto.lnrpc.ChannelUpdate.prototype.setChainHash=function(e){return n.Message.setProto3BytesField(this,2,e)},proto.lnrpc.ChannelUpdate.prototype.getChanId=function(){return n.Message.getFieldWithDefault(this,3,"0")},proto.lnrpc.ChannelUpdate.prototype.setChanId=function(e){return n.Message.setProto3StringIntField(this,3,e)},proto.lnrpc.ChannelUpdate.prototype.getTimestamp=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.lnrpc.ChannelUpdate.prototype.setTimestamp=function(e){return n.Message.setProto3IntField(this,4,e)},proto.lnrpc.ChannelUpdate.prototype.getMessageFlags=function(){return n.Message.getFieldWithDefault(this,10,0)},proto.lnrpc.ChannelUpdate.prototype.setMessageFlags=function(e){return n.Message.setProto3IntField(this,10,e)},proto.lnrpc.ChannelUpdate.prototype.getChannelFlags=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.lnrpc.ChannelUpdate.prototype.setChannelFlags=function(e){return n.Message.setProto3IntField(this,5,e)},proto.lnrpc.ChannelUpdate.prototype.getTimeLockDelta=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.lnrpc.ChannelUpdate.prototype.setTimeLockDelta=function(e){return n.Message.setProto3IntField(this,6,e)},proto.lnrpc.ChannelUpdate.prototype.getHtlcMinimumMsat=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.lnrpc.ChannelUpdate.prototype.setHtlcMinimumMsat=function(e){return n.Message.setProto3IntField(this,7,e)},proto.lnrpc.ChannelUpdate.prototype.getBaseFee=function(){return n.Message.getFieldWithDefault(this,8,0)},proto.lnrpc.ChannelUpdate.prototype.setBaseFee=function(e){return n.Message.setProto3IntField(this,8,e)},proto.lnrpc.ChannelUpdate.prototype.getFeeRate=function(){return n.Message.getFieldWithDefault(this,9,0)},proto.lnrpc.ChannelUpdate.prototype.setFeeRate=function(e){return n.Message.setProto3IntField(this,9,e)},proto.lnrpc.ChannelUpdate.prototype.getHtlcMaximumMsat=function(){return n.Message.getFieldWithDefault(this,11,0)},proto.lnrpc.ChannelUpdate.prototype.setHtlcMaximumMsat=function(e){return n.Message.setProto3IntField(this,11,e)},proto.lnrpc.ChannelUpdate.prototype.getExtraOpaqueData=function(){return n.Message.getFieldWithDefault(this,12,"")},proto.lnrpc.ChannelUpdate.prototype.getExtraOpaqueData_asB64=function(){return n.Message.bytesAsB64(this.getExtraOpaqueData())},proto.lnrpc.ChannelUpdate.prototype.getExtraOpaqueData_asU8=function(){return n.Message.bytesAsU8(this.getExtraOpaqueData())},proto.lnrpc.ChannelUpdate.prototype.setExtraOpaqueData=function(e){return n.Message.setProto3BytesField(this,12,e)},proto.lnrpc.MacaroonId.repeatedFields_=[3],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.MacaroonId.prototype.toObject=function(e){return proto.lnrpc.MacaroonId.toObject(e,this)},proto.lnrpc.MacaroonId.toObject=function(e,t){var r={nonce:t.getNonce_asB64(),storageid:t.getStorageid_asB64(),opsList:n.Message.toObjectList(t.getOpsList(),proto.lnrpc.Op.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.MacaroonId.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.MacaroonId;return proto.lnrpc.MacaroonId.deserializeBinaryFromReader(r,t)},proto.lnrpc.MacaroonId.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setNonce(r);break;case 2:r=t.readBytes();e.setStorageid(r);break;case 3:r=new proto.lnrpc.Op;t.readMessage(r,proto.lnrpc.Op.deserializeBinaryFromReader),e.addOps(r);break;default:t.skipField()}}return e},proto.lnrpc.MacaroonId.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.MacaroonId.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.MacaroonId.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getNonce_asU8()).length>0&&t.writeBytes(1,r),(r=e.getStorageid_asU8()).length>0&&t.writeBytes(2,r),(r=e.getOpsList()).length>0&&t.writeRepeatedMessage(3,r,proto.lnrpc.Op.serializeBinaryToWriter)},proto.lnrpc.MacaroonId.prototype.getNonce=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.MacaroonId.prototype.getNonce_asB64=function(){return n.Message.bytesAsB64(this.getNonce())},proto.lnrpc.MacaroonId.prototype.getNonce_asU8=function(){return n.Message.bytesAsU8(this.getNonce())},proto.lnrpc.MacaroonId.prototype.setNonce=function(e){return n.Message.setProto3BytesField(this,1,e)},proto.lnrpc.MacaroonId.prototype.getStorageid=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.MacaroonId.prototype.getStorageid_asB64=function(){return n.Message.bytesAsB64(this.getStorageid())},proto.lnrpc.MacaroonId.prototype.getStorageid_asU8=function(){return n.Message.bytesAsU8(this.getStorageid())},proto.lnrpc.MacaroonId.prototype.setStorageid=function(e){return n.Message.setProto3BytesField(this,2,e)},proto.lnrpc.MacaroonId.prototype.getOpsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.Op,3)},proto.lnrpc.MacaroonId.prototype.setOpsList=function(e){return n.Message.setRepeatedWrapperField(this,3,e)},proto.lnrpc.MacaroonId.prototype.addOps=function(e,t){return n.Message.addToRepeatedWrapperField(this,3,e,proto.lnrpc.Op,t)},proto.lnrpc.MacaroonId.prototype.clearOpsList=function(){return this.setOpsList([])},proto.lnrpc.Op.repeatedFields_=[2],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.Op.prototype.toObject=function(e){return proto.lnrpc.Op.toObject(e,this)},proto.lnrpc.Op.toObject=function(e,t){var r,o={entity:n.Message.getFieldWithDefault(t,1,""),actionsList:null==(r=n.Message.getRepeatedField(t,2))?void 0:r};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.Op.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.Op;return proto.lnrpc.Op.deserializeBinaryFromReader(r,t)},proto.lnrpc.Op.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setEntity(r);break;case 2:r=t.readString();e.addActions(r);break;default:t.skipField()}}return e},proto.lnrpc.Op.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.Op.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.Op.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getEntity()).length>0&&t.writeString(1,r),(r=e.getActionsList()).length>0&&t.writeRepeatedString(2,r)},proto.lnrpc.Op.prototype.getEntity=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.Op.prototype.setEntity=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.Op.prototype.getActionsList=function(){return n.Message.getRepeatedField(this,2)},proto.lnrpc.Op.prototype.setActionsList=function(e){return n.Message.setField(this,2,e||[])},proto.lnrpc.Op.prototype.addActions=function(e,t){return n.Message.addToRepeatedField(this,2,e,t)},proto.lnrpc.Op.prototype.clearActionsList=function(){return this.setActionsList([])},proto.lnrpc.CheckMacPermRequest.repeatedFields_=[2],n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.CheckMacPermRequest.prototype.toObject=function(e){return proto.lnrpc.CheckMacPermRequest.toObject(e,this)},proto.lnrpc.CheckMacPermRequest.toObject=function(e,t){var r={macaroon:t.getMacaroon_asB64(),permissionsList:n.Message.toObjectList(t.getPermissionsList(),proto.lnrpc.MacaroonPermission.toObject,e),fullmethod:n.Message.getFieldWithDefault(t,3,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.CheckMacPermRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.CheckMacPermRequest;return proto.lnrpc.CheckMacPermRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.CheckMacPermRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setMacaroon(r);break;case 2:r=new proto.lnrpc.MacaroonPermission;t.readMessage(r,proto.lnrpc.MacaroonPermission.deserializeBinaryFromReader),e.addPermissions(r);break;case 3:r=t.readString();e.setFullmethod(r);break;default:t.skipField()}}return e},proto.lnrpc.CheckMacPermRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.CheckMacPermRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.CheckMacPermRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getMacaroon_asU8()).length>0&&t.writeBytes(1,r),(r=e.getPermissionsList()).length>0&&t.writeRepeatedMessage(2,r,proto.lnrpc.MacaroonPermission.serializeBinaryToWriter),(r=e.getFullmethod()).length>0&&t.writeString(3,r)},proto.lnrpc.CheckMacPermRequest.prototype.getMacaroon=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.CheckMacPermRequest.prototype.getMacaroon_asB64=function(){return n.Message.bytesAsB64(this.getMacaroon())},proto.lnrpc.CheckMacPermRequest.prototype.getMacaroon_asU8=function(){return n.Message.bytesAsU8(this.getMacaroon())},proto.lnrpc.CheckMacPermRequest.prototype.setMacaroon=function(e){return n.Message.setProto3BytesField(this,1,e)},proto.lnrpc.CheckMacPermRequest.prototype.getPermissionsList=function(){return n.Message.getRepeatedWrapperField(this,proto.lnrpc.MacaroonPermission,2)},proto.lnrpc.CheckMacPermRequest.prototype.setPermissionsList=function(e){return n.Message.setRepeatedWrapperField(this,2,e)},proto.lnrpc.CheckMacPermRequest.prototype.addPermissions=function(e,t){return n.Message.addToRepeatedWrapperField(this,2,e,proto.lnrpc.MacaroonPermission,t)},proto.lnrpc.CheckMacPermRequest.prototype.clearPermissionsList=function(){return this.setPermissionsList([])},proto.lnrpc.CheckMacPermRequest.prototype.getFullmethod=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.lnrpc.CheckMacPermRequest.prototype.setFullmethod=function(e){return n.Message.setProto3StringField(this,3,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.CheckMacPermResponse.prototype.toObject=function(e){return proto.lnrpc.CheckMacPermResponse.toObject(e,this)},proto.lnrpc.CheckMacPermResponse.toObject=function(e,t){var r={valid:n.Message.getBooleanFieldWithDefault(t,1,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.CheckMacPermResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.CheckMacPermResponse;return proto.lnrpc.CheckMacPermResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.CheckMacPermResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readBool();e.setValid(r)}else t.skipField()}return e},proto.lnrpc.CheckMacPermResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.CheckMacPermResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.CheckMacPermResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getValid())&&t.writeBool(1,r)},proto.lnrpc.CheckMacPermResponse.prototype.getValid=function(){return n.Message.getBooleanFieldWithDefault(this,1,!1)},proto.lnrpc.CheckMacPermResponse.prototype.setValid=function(e){return n.Message.setProto3BooleanField(this,1,e)},proto.lnrpc.RPCMiddlewareRequest.oneofGroups_=[[4,5,6]],proto.lnrpc.RPCMiddlewareRequest.InterceptTypeCase={INTERCEPT_TYPE_NOT_SET:0,STREAM_AUTH:4,REQUEST:5,RESPONSE:6},proto.lnrpc.RPCMiddlewareRequest.prototype.getInterceptTypeCase=function(){return n.Message.computeOneofCase(this,proto.lnrpc.RPCMiddlewareRequest.oneofGroups_[0])},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.RPCMiddlewareRequest.prototype.toObject=function(e){return proto.lnrpc.RPCMiddlewareRequest.toObject(e,this)},proto.lnrpc.RPCMiddlewareRequest.toObject=function(e,t){var r,o={requestId:n.Message.getFieldWithDefault(t,1,0),rawMacaroon:t.getRawMacaroon_asB64(),customCaveatCondition:n.Message.getFieldWithDefault(t,3,""),streamAuth:(r=t.getStreamAuth())&&proto.lnrpc.StreamAuth.toObject(e,r),request:(r=t.getRequest())&&proto.lnrpc.RPCMessage.toObject(e,r),response:(r=t.getResponse())&&proto.lnrpc.RPCMessage.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.RPCMiddlewareRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.RPCMiddlewareRequest;return proto.lnrpc.RPCMiddlewareRequest.deserializeBinaryFromReader(r,t)},proto.lnrpc.RPCMiddlewareRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint64();e.setRequestId(r);break;case 2:r=t.readBytes();e.setRawMacaroon(r);break;case 3:r=t.readString();e.setCustomCaveatCondition(r);break;case 4:r=new proto.lnrpc.StreamAuth;t.readMessage(r,proto.lnrpc.StreamAuth.deserializeBinaryFromReader),e.setStreamAuth(r);break;case 5:r=new proto.lnrpc.RPCMessage;t.readMessage(r,proto.lnrpc.RPCMessage.deserializeBinaryFromReader),e.setRequest(r);break;case 6:r=new proto.lnrpc.RPCMessage;t.readMessage(r,proto.lnrpc.RPCMessage.deserializeBinaryFromReader),e.setResponse(r);break;default:t.skipField()}}return e},proto.lnrpc.RPCMiddlewareRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.RPCMiddlewareRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.RPCMiddlewareRequest.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getRequestId())&&t.writeUint64(1,r),(r=e.getRawMacaroon_asU8()).length>0&&t.writeBytes(2,r),(r=e.getCustomCaveatCondition()).length>0&&t.writeString(3,r),null!=(r=e.getStreamAuth())&&t.writeMessage(4,r,proto.lnrpc.StreamAuth.serializeBinaryToWriter),null!=(r=e.getRequest())&&t.writeMessage(5,r,proto.lnrpc.RPCMessage.serializeBinaryToWriter),null!=(r=e.getResponse())&&t.writeMessage(6,r,proto.lnrpc.RPCMessage.serializeBinaryToWriter)},proto.lnrpc.RPCMiddlewareRequest.prototype.getRequestId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.RPCMiddlewareRequest.prototype.setRequestId=function(e){return n.Message.setProto3IntField(this,1,e)},proto.lnrpc.RPCMiddlewareRequest.prototype.getRawMacaroon=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.RPCMiddlewareRequest.prototype.getRawMacaroon_asB64=function(){return n.Message.bytesAsB64(this.getRawMacaroon())},proto.lnrpc.RPCMiddlewareRequest.prototype.getRawMacaroon_asU8=function(){return n.Message.bytesAsU8(this.getRawMacaroon())},proto.lnrpc.RPCMiddlewareRequest.prototype.setRawMacaroon=function(e){return n.Message.setProto3BytesField(this,2,e)},proto.lnrpc.RPCMiddlewareRequest.prototype.getCustomCaveatCondition=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.lnrpc.RPCMiddlewareRequest.prototype.setCustomCaveatCondition=function(e){return n.Message.setProto3StringField(this,3,e)},proto.lnrpc.RPCMiddlewareRequest.prototype.getStreamAuth=function(){return n.Message.getWrapperField(this,proto.lnrpc.StreamAuth,4)},proto.lnrpc.RPCMiddlewareRequest.prototype.setStreamAuth=function(e){return n.Message.setOneofWrapperField(this,4,proto.lnrpc.RPCMiddlewareRequest.oneofGroups_[0],e)},proto.lnrpc.RPCMiddlewareRequest.prototype.clearStreamAuth=function(){return this.setStreamAuth(void 0)},proto.lnrpc.RPCMiddlewareRequest.prototype.hasStreamAuth=function(){return null!=n.Message.getField(this,4)},proto.lnrpc.RPCMiddlewareRequest.prototype.getRequest=function(){return n.Message.getWrapperField(this,proto.lnrpc.RPCMessage,5)},proto.lnrpc.RPCMiddlewareRequest.prototype.setRequest=function(e){return n.Message.setOneofWrapperField(this,5,proto.lnrpc.RPCMiddlewareRequest.oneofGroups_[0],e)},proto.lnrpc.RPCMiddlewareRequest.prototype.clearRequest=function(){return this.setRequest(void 0)},proto.lnrpc.RPCMiddlewareRequest.prototype.hasRequest=function(){return null!=n.Message.getField(this,5)},proto.lnrpc.RPCMiddlewareRequest.prototype.getResponse=function(){return n.Message.getWrapperField(this,proto.lnrpc.RPCMessage,6)},proto.lnrpc.RPCMiddlewareRequest.prototype.setResponse=function(e){return n.Message.setOneofWrapperField(this,6,proto.lnrpc.RPCMiddlewareRequest.oneofGroups_[0],e)},proto.lnrpc.RPCMiddlewareRequest.prototype.clearResponse=function(){return this.setResponse(void 0)},proto.lnrpc.RPCMiddlewareRequest.prototype.hasResponse=function(){return null!=n.Message.getField(this,6)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.StreamAuth.prototype.toObject=function(e){return proto.lnrpc.StreamAuth.toObject(e,this)},proto.lnrpc.StreamAuth.toObject=function(e,t){var r={methodFullUri:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.StreamAuth.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.StreamAuth;return proto.lnrpc.StreamAuth.deserializeBinaryFromReader(r,t)},proto.lnrpc.StreamAuth.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setMethodFullUri(r)}else t.skipField()}return e},proto.lnrpc.StreamAuth.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.StreamAuth.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.StreamAuth.serializeBinaryToWriter=function(e,t){var r;(r=e.getMethodFullUri()).length>0&&t.writeString(1,r)},proto.lnrpc.StreamAuth.prototype.getMethodFullUri=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.StreamAuth.prototype.setMethodFullUri=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.RPCMessage.prototype.toObject=function(e){return proto.lnrpc.RPCMessage.toObject(e,this)},proto.lnrpc.RPCMessage.toObject=function(e,t){var r={methodFullUri:n.Message.getFieldWithDefault(t,1,""),streamRpc:n.Message.getBooleanFieldWithDefault(t,2,!1),typeName:n.Message.getFieldWithDefault(t,3,""),serialized:t.getSerialized_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.RPCMessage.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.RPCMessage;return proto.lnrpc.RPCMessage.deserializeBinaryFromReader(r,t)},proto.lnrpc.RPCMessage.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setMethodFullUri(r);break;case 2:r=t.readBool();e.setStreamRpc(r);break;case 3:r=t.readString();e.setTypeName(r);break;case 4:r=t.readBytes();e.setSerialized(r);break;default:t.skipField()}}return e},proto.lnrpc.RPCMessage.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.RPCMessage.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.RPCMessage.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getMethodFullUri()).length>0&&t.writeString(1,r),(r=e.getStreamRpc())&&t.writeBool(2,r),(r=e.getTypeName()).length>0&&t.writeString(3,r),(r=e.getSerialized_asU8()).length>0&&t.writeBytes(4,r)},proto.lnrpc.RPCMessage.prototype.getMethodFullUri=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.RPCMessage.prototype.setMethodFullUri=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.RPCMessage.prototype.getStreamRpc=function(){return n.Message.getBooleanFieldWithDefault(this,2,!1)},proto.lnrpc.RPCMessage.prototype.setStreamRpc=function(e){return n.Message.setProto3BooleanField(this,2,e)},proto.lnrpc.RPCMessage.prototype.getTypeName=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.lnrpc.RPCMessage.prototype.setTypeName=function(e){return n.Message.setProto3StringField(this,3,e)},proto.lnrpc.RPCMessage.prototype.getSerialized=function(){return n.Message.getFieldWithDefault(this,4,"")},proto.lnrpc.RPCMessage.prototype.getSerialized_asB64=function(){return n.Message.bytesAsB64(this.getSerialized())},proto.lnrpc.RPCMessage.prototype.getSerialized_asU8=function(){return n.Message.bytesAsU8(this.getSerialized())},proto.lnrpc.RPCMessage.prototype.setSerialized=function(e){return n.Message.setProto3BytesField(this,4,e)},proto.lnrpc.RPCMiddlewareResponse.oneofGroups_=[[2,3]],proto.lnrpc.RPCMiddlewareResponse.MiddlewareMessageCase={MIDDLEWARE_MESSAGE_NOT_SET:0,REGISTER:2,FEEDBACK:3},proto.lnrpc.RPCMiddlewareResponse.prototype.getMiddlewareMessageCase=function(){return n.Message.computeOneofCase(this,proto.lnrpc.RPCMiddlewareResponse.oneofGroups_[0])},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.RPCMiddlewareResponse.prototype.toObject=function(e){return proto.lnrpc.RPCMiddlewareResponse.toObject(e,this)},proto.lnrpc.RPCMiddlewareResponse.toObject=function(e,t){var r,o={requestId:n.Message.getFieldWithDefault(t,1,0),register:(r=t.getRegister())&&proto.lnrpc.MiddlewareRegistration.toObject(e,r),feedback:(r=t.getFeedback())&&proto.lnrpc.InterceptFeedback.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.lnrpc.RPCMiddlewareResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.RPCMiddlewareResponse;return proto.lnrpc.RPCMiddlewareResponse.deserializeBinaryFromReader(r,t)},proto.lnrpc.RPCMiddlewareResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint64();e.setRequestId(r);break;case 2:r=new proto.lnrpc.MiddlewareRegistration;t.readMessage(r,proto.lnrpc.MiddlewareRegistration.deserializeBinaryFromReader),e.setRegister(r);break;case 3:r=new proto.lnrpc.InterceptFeedback;t.readMessage(r,proto.lnrpc.InterceptFeedback.deserializeBinaryFromReader),e.setFeedback(r);break;default:t.skipField()}}return e},proto.lnrpc.RPCMiddlewareResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.RPCMiddlewareResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.RPCMiddlewareResponse.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getRequestId())&&t.writeUint64(1,r),null!=(r=e.getRegister())&&t.writeMessage(2,r,proto.lnrpc.MiddlewareRegistration.serializeBinaryToWriter),null!=(r=e.getFeedback())&&t.writeMessage(3,r,proto.lnrpc.InterceptFeedback.serializeBinaryToWriter)},proto.lnrpc.RPCMiddlewareResponse.prototype.getRequestId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.lnrpc.RPCMiddlewareResponse.prototype.setRequestId=function(e){return n.Message.setProto3IntField(this,1,e)},proto.lnrpc.RPCMiddlewareResponse.prototype.getRegister=function(){return n.Message.getWrapperField(this,proto.lnrpc.MiddlewareRegistration,2)},proto.lnrpc.RPCMiddlewareResponse.prototype.setRegister=function(e){return n.Message.setOneofWrapperField(this,2,proto.lnrpc.RPCMiddlewareResponse.oneofGroups_[0],e)},proto.lnrpc.RPCMiddlewareResponse.prototype.clearRegister=function(){return this.setRegister(void 0)},proto.lnrpc.RPCMiddlewareResponse.prototype.hasRegister=function(){return null!=n.Message.getField(this,2)},proto.lnrpc.RPCMiddlewareResponse.prototype.getFeedback=function(){return n.Message.getWrapperField(this,proto.lnrpc.InterceptFeedback,3)},proto.lnrpc.RPCMiddlewareResponse.prototype.setFeedback=function(e){return n.Message.setOneofWrapperField(this,3,proto.lnrpc.RPCMiddlewareResponse.oneofGroups_[0],e)},proto.lnrpc.RPCMiddlewareResponse.prototype.clearFeedback=function(){return this.setFeedback(void 0)},proto.lnrpc.RPCMiddlewareResponse.prototype.hasFeedback=function(){return null!=n.Message.getField(this,3)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.MiddlewareRegistration.prototype.toObject=function(e){return proto.lnrpc.MiddlewareRegistration.toObject(e,this)},proto.lnrpc.MiddlewareRegistration.toObject=function(e,t){var r={middlewareName:n.Message.getFieldWithDefault(t,1,""),customMacaroonCaveatName:n.Message.getFieldWithDefault(t,2,""),readOnlyMode:n.Message.getBooleanFieldWithDefault(t,3,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.MiddlewareRegistration.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.MiddlewareRegistration;return proto.lnrpc.MiddlewareRegistration.deserializeBinaryFromReader(r,t)},proto.lnrpc.MiddlewareRegistration.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setMiddlewareName(r);break;case 2:r=t.readString();e.setCustomMacaroonCaveatName(r);break;case 3:r=t.readBool();e.setReadOnlyMode(r);break;default:t.skipField()}}return e},proto.lnrpc.MiddlewareRegistration.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.MiddlewareRegistration.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.MiddlewareRegistration.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getMiddlewareName()).length>0&&t.writeString(1,r),(r=e.getCustomMacaroonCaveatName()).length>0&&t.writeString(2,r),(r=e.getReadOnlyMode())&&t.writeBool(3,r)},proto.lnrpc.MiddlewareRegistration.prototype.getMiddlewareName=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.MiddlewareRegistration.prototype.setMiddlewareName=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.MiddlewareRegistration.prototype.getCustomMacaroonCaveatName=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.lnrpc.MiddlewareRegistration.prototype.setCustomMacaroonCaveatName=function(e){return n.Message.setProto3StringField(this,2,e)},proto.lnrpc.MiddlewareRegistration.prototype.getReadOnlyMode=function(){return n.Message.getBooleanFieldWithDefault(this,3,!1)},proto.lnrpc.MiddlewareRegistration.prototype.setReadOnlyMode=function(e){return n.Message.setProto3BooleanField(this,3,e)},n.Message.GENERATE_TO_OBJECT&&(proto.lnrpc.InterceptFeedback.prototype.toObject=function(e){return proto.lnrpc.InterceptFeedback.toObject(e,this)},proto.lnrpc.InterceptFeedback.toObject=function(e,t){var r={error:n.Message.getFieldWithDefault(t,1,""),replaceResponse:n.Message.getBooleanFieldWithDefault(t,2,!1),replacementSerialized:t.getReplacementSerialized_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.lnrpc.InterceptFeedback.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.lnrpc.InterceptFeedback;return proto.lnrpc.InterceptFeedback.deserializeBinaryFromReader(r,t)},proto.lnrpc.InterceptFeedback.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setError(r);break;case 2:r=t.readBool();e.setReplaceResponse(r);break;case 3:r=t.readBytes();e.setReplacementSerialized(r);break;default:t.skipField()}}return e},proto.lnrpc.InterceptFeedback.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.lnrpc.InterceptFeedback.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.lnrpc.InterceptFeedback.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getError()).length>0&&t.writeString(1,r),(r=e.getReplaceResponse())&&t.writeBool(2,r),(r=e.getReplacementSerialized_asU8()).length>0&&t.writeBytes(3,r)},proto.lnrpc.InterceptFeedback.prototype.getError=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.lnrpc.InterceptFeedback.prototype.setError=function(e){return n.Message.setProto3StringField(this,1,e)},proto.lnrpc.InterceptFeedback.prototype.getReplaceResponse=function(){return n.Message.getBooleanFieldWithDefault(this,2,!1)},proto.lnrpc.InterceptFeedback.prototype.setReplaceResponse=function(e){return n.Message.setProto3BooleanField(this,2,e)},proto.lnrpc.InterceptFeedback.prototype.getReplacementSerialized=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.lnrpc.InterceptFeedback.prototype.getReplacementSerialized_asB64=function(){return n.Message.bytesAsB64(this.getReplacementSerialized())},proto.lnrpc.InterceptFeedback.prototype.getReplacementSerialized_asU8=function(){return n.Message.bytesAsU8(this.getReplacementSerialized())},proto.lnrpc.InterceptFeedback.prototype.setReplacementSerialized=function(e){return n.Message.setProto3BytesField(this,3,e)},proto.lnrpc.AddressType={WITNESS_PUBKEY_HASH:0,NESTED_PUBKEY_HASH:1,UNUSED_WITNESS_PUBKEY_HASH:2,UNUSED_NESTED_PUBKEY_HASH:3},proto.lnrpc.CommitmentType={UNKNOWN_COMMITMENT_TYPE:0,LEGACY:1,STATIC_REMOTE_KEY:2,ANCHORS:3},proto.lnrpc.Initiator={INITIATOR_UNKNOWN:0,INITIATOR_LOCAL:1,INITIATOR_REMOTE:2,INITIATOR_BOTH:3},proto.lnrpc.ResolutionType={TYPE_UNKNOWN:0,ANCHOR:1,INCOMING_HTLC:2,OUTGOING_HTLC:3,COMMIT:4},proto.lnrpc.ResolutionOutcome={OUTCOME_UNKNOWN:0,CLAIMED:1,UNCLAIMED:2,ABANDONED:3,FIRST_STAGE:4,TIMEOUT:5},proto.lnrpc.NodeMetricType={UNKNOWN:0,BETWEENNESS_CENTRALITY:1},proto.lnrpc.InvoiceHTLCState={ACCEPTED:0,SETTLED:1,CANCELED:2},proto.lnrpc.PaymentFailureReason={FAILURE_REASON_NONE:0,FAILURE_REASON_TIMEOUT:1,FAILURE_REASON_NO_ROUTE:2,FAILURE_REASON_ERROR:3,FAILURE_REASON_INCORRECT_PAYMENT_DETAILS:4,FAILURE_REASON_INSUFFICIENT_BALANCE:5},proto.lnrpc.FeatureBit={DATALOSS_PROTECT_REQ:0,DATALOSS_PROTECT_OPT:1,INITIAL_ROUING_SYNC:3,UPFRONT_SHUTDOWN_SCRIPT_REQ:4,UPFRONT_SHUTDOWN_SCRIPT_OPT:5,GOSSIP_QUERIES_REQ:6,GOSSIP_QUERIES_OPT:7,TLV_ONION_REQ:8,TLV_ONION_OPT:9,EXT_GOSSIP_QUERIES_REQ:10,EXT_GOSSIP_QUERIES_OPT:11,STATIC_REMOTE_KEY_REQ:12,STATIC_REMOTE_KEY_OPT:13,PAYMENT_ADDR_REQ:14,PAYMENT_ADDR_OPT:15,MPP_REQ:16,MPP_OPT:17,WUMBO_CHANNELS_REQ:18,WUMBO_CHANNELS_OPT:19,ANCHORS_REQ:20,ANCHORS_OPT:21,ANCHORS_ZERO_FEE_HTLC_REQ:22,ANCHORS_ZERO_FEE_HTLC_OPT:23,AMP_REQ:30,AMP_OPT:31},proto.lnrpc.UpdateFailure={UPDATE_FAILURE_UNKNOWN:0,UPDATE_FAILURE_PENDING:1,UPDATE_FAILURE_NOT_FOUND:2,UPDATE_FAILURE_INTERNAL_ERR:3,UPDATE_FAILURE_INVALID_PARAMETER:4},o.object.extend(t,proto.lnrpc)},6509:function(e,t,r){var n=r(9393),o=n,a=Function("return this")(),i=r(4185);o.object.extend(proto,i),o.exportSymbol("proto.squeaknode.AddTwitterAccountReply",null,a),o.exportSymbol("proto.squeaknode.AddTwitterAccountRequest",null,a),o.exportSymbol("proto.squeaknode.ClearSellPriceReply",null,a),o.exportSymbol("proto.squeaknode.ClearSellPriceRequest",null,a),o.exportSymbol("proto.squeaknode.ClearSqueakProfileImageReply",null,a),o.exportSymbol("proto.squeaknode.ClearSqueakProfileImageRequest",null,a),o.exportSymbol("proto.squeaknode.ConnectPeerReply",null,a),o.exportSymbol("proto.squeaknode.ConnectPeerRequest",null,a),o.exportSymbol("proto.squeaknode.ConnectedPeer",null,a),o.exportSymbol("proto.squeaknode.CreateContactProfileReply",null,a),o.exportSymbol("proto.squeaknode.CreateContactProfileRequest",null,a),o.exportSymbol("proto.squeaknode.CreatePeerReply",null,a),o.exportSymbol("proto.squeaknode.CreatePeerRequest",null,a),o.exportSymbol("proto.squeaknode.CreateSigningProfileReply",null,a),o.exportSymbol("proto.squeaknode.CreateSigningProfileRequest",null,a),o.exportSymbol("proto.squeaknode.DecryptSqueakReply",null,a),o.exportSymbol("proto.squeaknode.DecryptSqueakRequest",null,a),o.exportSymbol("proto.squeaknode.DeletePeerReply",null,a),o.exportSymbol("proto.squeaknode.DeletePeerRequest",null,a),o.exportSymbol("proto.squeaknode.DeleteSqueakProfileReply",null,a),o.exportSymbol("proto.squeaknode.DeleteSqueakProfileRequest",null,a),o.exportSymbol("proto.squeaknode.DeleteSqueakReply",null,a),o.exportSymbol("proto.squeaknode.DeleteSqueakRequest",null,a),o.exportSymbol("proto.squeaknode.DeleteTwitterAccountReply",null,a),o.exportSymbol("proto.squeaknode.DeleteTwitterAccountRequest",null,a),o.exportSymbol("proto.squeaknode.DisconnectPeerReply",null,a),o.exportSymbol("proto.squeaknode.DisconnectPeerRequest",null,a),o.exportSymbol("proto.squeaknode.DownloadOffersReply",null,a),o.exportSymbol("proto.squeaknode.DownloadOffersRequest",null,a),o.exportSymbol("proto.squeaknode.DownloadPubKeySqueaksReply",null,a),o.exportSymbol("proto.squeaknode.DownloadPubKeySqueaksRequest",null,a),o.exportSymbol("proto.squeaknode.DownloadRepliesReply",null,a),o.exportSymbol("proto.squeaknode.DownloadRepliesRequest",null,a),o.exportSymbol("proto.squeaknode.DownloadResult",null,a),o.exportSymbol("proto.squeaknode.DownloadSqueakReply",null,a),o.exportSymbol("proto.squeaknode.DownloadSqueakRequest",null,a),o.exportSymbol("proto.squeaknode.DownloadSqueakSecretKeyReply",null,a),o.exportSymbol("proto.squeaknode.DownloadSqueakSecretKeyRequest",null,a),o.exportSymbol("proto.squeaknode.DownloadSqueaksReply",null,a),o.exportSymbol("proto.squeaknode.DownloadSqueaksRequest",null,a),o.exportSymbol("proto.squeaknode.GetAncestorSqueakDisplaysReply",null,a),o.exportSymbol("proto.squeaknode.GetAncestorSqueakDisplaysRequest",null,a),o.exportSymbol("proto.squeaknode.GetBuyOfferReply",null,a),o.exportSymbol("proto.squeaknode.GetBuyOfferRequest",null,a),o.exportSymbol("proto.squeaknode.GetBuyOffersReply",null,a),o.exportSymbol("proto.squeaknode.GetBuyOffersRequest",null,a),o.exportSymbol("proto.squeaknode.GetConnectedPeerReply",null,a),o.exportSymbol("proto.squeaknode.GetConnectedPeerRequest",null,a),o.exportSymbol("proto.squeaknode.GetConnectedPeersReply",null,a),o.exportSymbol("proto.squeaknode.GetConnectedPeersRequest",null,a),o.exportSymbol("proto.squeaknode.GetContactProfilesReply",null,a),o.exportSymbol("proto.squeaknode.GetContactProfilesRequest",null,a),o.exportSymbol("proto.squeaknode.GetDefaultPeerPortReply",null,a),o.exportSymbol("proto.squeaknode.GetDefaultPeerPortRequest",null,a),o.exportSymbol("proto.squeaknode.GetExternalAddressReply",null,a),o.exportSymbol("proto.squeaknode.GetExternalAddressRequest",null,a),o.exportSymbol("proto.squeaknode.GetLikedSqueakDisplaysReply",null,a),o.exportSymbol("proto.squeaknode.GetLikedSqueakDisplaysRequest",null,a),o.exportSymbol("proto.squeaknode.GetNetworkReply",null,a),o.exportSymbol("proto.squeaknode.GetNetworkRequest",null,a),o.exportSymbol("proto.squeaknode.GetPaymentSummaryForPeerReply",null,a),o.exportSymbol("proto.squeaknode.GetPaymentSummaryForPeerRequest",null,a),o.exportSymbol("proto.squeaknode.GetPaymentSummaryForPubkeyReply",null,a),o.exportSymbol("proto.squeaknode.GetPaymentSummaryForPubkeyRequest",null,a),o.exportSymbol("proto.squeaknode.GetPaymentSummaryForSqueakReply",null,a),o.exportSymbol("proto.squeaknode.GetPaymentSummaryForSqueakRequest",null,a),o.exportSymbol("proto.squeaknode.GetPaymentSummaryReply",null,a),o.exportSymbol("proto.squeaknode.GetPaymentSummaryRequest",null,a),o.exportSymbol("proto.squeaknode.GetPeerByAddressReply",null,a),o.exportSymbol("proto.squeaknode.GetPeerByAddressRequest",null,a),o.exportSymbol("proto.squeaknode.GetPeerReply",null,a),o.exportSymbol("proto.squeaknode.GetPeerRequest",null,a),o.exportSymbol("proto.squeaknode.GetPeersReply",null,a),o.exportSymbol("proto.squeaknode.GetPeersRequest",null,a),o.exportSymbol("proto.squeaknode.GetProfilesReply",null,a),o.exportSymbol("proto.squeaknode.GetProfilesRequest",null,a),o.exportSymbol("proto.squeaknode.GetPubKeySqueakDisplaysReply",null,a),o.exportSymbol("proto.squeaknode.GetPubKeySqueakDisplaysRequest",null,a),o.exportSymbol("proto.squeaknode.GetReceivedPaymentsForPeerReply",null,a),o.exportSymbol("proto.squeaknode.GetReceivedPaymentsForPeerRequest",null,a),o.exportSymbol("proto.squeaknode.GetReceivedPaymentsForPubkeyReply",null,a),o.exportSymbol("proto.squeaknode.GetReceivedPaymentsForPubkeyRequest",null,a),o.exportSymbol("proto.squeaknode.GetReceivedPaymentsForSqueakReply",null,a),o.exportSymbol("proto.squeaknode.GetReceivedPaymentsForSqueakRequest",null,a),o.exportSymbol("proto.squeaknode.GetReceivedPaymentsReply",null,a),o.exportSymbol("proto.squeaknode.GetReceivedPaymentsRequest",null,a),o.exportSymbol("proto.squeaknode.GetReplySqueakDisplaysReply",null,a),o.exportSymbol("proto.squeaknode.GetReplySqueakDisplaysRequest",null,a),o.exportSymbol("proto.squeaknode.GetSearchSqueakDisplaysReply",null,a),o.exportSymbol("proto.squeaknode.GetSearchSqueakDisplaysRequest",null,a),o.exportSymbol("proto.squeaknode.GetSellPriceReply",null,a),o.exportSymbol("proto.squeaknode.GetSellPriceRequest",null,a),o.exportSymbol("proto.squeaknode.GetSentOffersReply",null,a),o.exportSymbol("proto.squeaknode.GetSentOffersRequest",null,a),o.exportSymbol("proto.squeaknode.GetSentPaymentReply",null,a),o.exportSymbol("proto.squeaknode.GetSentPaymentRequest",null,a),o.exportSymbol("proto.squeaknode.GetSentPaymentsForPeerReply",null,a),o.exportSymbol("proto.squeaknode.GetSentPaymentsForPeerRequest",null,a),o.exportSymbol("proto.squeaknode.GetSentPaymentsForPubkeyReply",null,a),o.exportSymbol("proto.squeaknode.GetSentPaymentsForPubkeyRequest",null,a),o.exportSymbol("proto.squeaknode.GetSentPaymentsForSqueakReply",null,a),o.exportSymbol("proto.squeaknode.GetSentPaymentsForSqueakRequest",null,a),o.exportSymbol("proto.squeaknode.GetSentPaymentsReply",null,a),o.exportSymbol("proto.squeaknode.GetSentPaymentsRequest",null,a),o.exportSymbol("proto.squeaknode.GetSigningProfilesReply",null,a),o.exportSymbol("proto.squeaknode.GetSigningProfilesRequest",null,a),o.exportSymbol("proto.squeaknode.GetSqueakDisplayReply",null,a),o.exportSymbol("proto.squeaknode.GetSqueakDisplayRequest",null,a),o.exportSymbol("proto.squeaknode.GetSqueakProfileByNameReply",null,a),o.exportSymbol("proto.squeaknode.GetSqueakProfileByNameRequest",null,a),o.exportSymbol("proto.squeaknode.GetSqueakProfileByPubKeyReply",null,a),o.exportSymbol("proto.squeaknode.GetSqueakProfileByPubKeyRequest",null,a),o.exportSymbol("proto.squeaknode.GetSqueakProfilePrivateKeyReply",null,a),o.exportSymbol("proto.squeaknode.GetSqueakProfilePrivateKeyRequest",null,a),o.exportSymbol("proto.squeaknode.GetSqueakProfileReply",null,a),o.exportSymbol("proto.squeaknode.GetSqueakProfileRequest",null,a),o.exportSymbol("proto.squeaknode.GetTimelineSqueakDisplaysReply",null,a),o.exportSymbol("proto.squeaknode.GetTimelineSqueakDisplaysRequest",null,a),o.exportSymbol("proto.squeaknode.GetTwitterAccountsReply",null,a),o.exportSymbol("proto.squeaknode.GetTwitterAccountsRequest",null,a),o.exportSymbol("proto.squeaknode.ImportSigningProfileReply",null,a),o.exportSymbol("proto.squeaknode.ImportSigningProfileRequest",null,a),o.exportSymbol("proto.squeaknode.LikeSqueakReply",null,a),o.exportSymbol("proto.squeaknode.LikeSqueakRequest",null,a),o.exportSymbol("proto.squeaknode.LoadBuyOffersReply",null,a),o.exportSymbol("proto.squeaknode.LoadBuyOffersRequest",null,a),o.exportSymbol("proto.squeaknode.MakeResqueakReply",null,a),o.exportSymbol("proto.squeaknode.MakeResqueakRequest",null,a),o.exportSymbol("proto.squeaknode.MakeSqueakReply",null,a),o.exportSymbol("proto.squeaknode.MakeSqueakRequest",null,a),o.exportSymbol("proto.squeaknode.OfferDisplayEntry",null,a),o.exportSymbol("proto.squeaknode.PayOfferReply",null,a),o.exportSymbol("proto.squeaknode.PayOfferRequest",null,a),o.exportSymbol("proto.squeaknode.PaymentSummary",null,a),o.exportSymbol("proto.squeaknode.PeerAddress",null,a),o.exportSymbol("proto.squeaknode.ReceivedPayment",null,a),o.exportSymbol("proto.squeaknode.RenamePeerReply",null,a),o.exportSymbol("proto.squeaknode.RenamePeerRequest",null,a),o.exportSymbol("proto.squeaknode.RenameSqueakProfileReply",null,a),o.exportSymbol("proto.squeaknode.RenameSqueakProfileRequest",null,a),o.exportSymbol("proto.squeaknode.ReprocessReceivedPaymentsReply",null,a),o.exportSymbol("proto.squeaknode.ReprocessReceivedPaymentsRequest",null,a),o.exportSymbol("proto.squeaknode.SentOffer",null,a),o.exportSymbol("proto.squeaknode.SentPayment",null,a),o.exportSymbol("proto.squeaknode.SetPeerAutoconnectReply",null,a),o.exportSymbol("proto.squeaknode.SetPeerAutoconnectRequest",null,a),o.exportSymbol("proto.squeaknode.SetPeerShareForFreeReply",null,a),o.exportSymbol("proto.squeaknode.SetPeerShareForFreeRequest",null,a),o.exportSymbol("proto.squeaknode.SetSellPriceReply",null,a),o.exportSymbol("proto.squeaknode.SetSellPriceRequest",null,a),o.exportSymbol("proto.squeaknode.SetSqueakProfileFollowingReply",null,a),o.exportSymbol("proto.squeaknode.SetSqueakProfileFollowingRequest",null,a),o.exportSymbol("proto.squeaknode.SetSqueakProfileImageReply",null,a),o.exportSymbol("proto.squeaknode.SetSqueakProfileImageRequest",null,a),o.exportSymbol("proto.squeaknode.SqueakDisplayEntry",null,a),o.exportSymbol("proto.squeaknode.SqueakPeer",null,a),o.exportSymbol("proto.squeaknode.SqueakProfile",null,a),o.exportSymbol("proto.squeaknode.SubscribeAncestorSqueakDisplaysRequest",null,a),o.exportSymbol("proto.squeaknode.SubscribeBuyOffersRequest",null,a),o.exportSymbol("proto.squeaknode.SubscribeConnectedPeerRequest",null,a),o.exportSymbol("proto.squeaknode.SubscribeConnectedPeersRequest",null,a),o.exportSymbol("proto.squeaknode.SubscribePubKeySqueakDisplaysRequest",null,a),o.exportSymbol("proto.squeaknode.SubscribeReceivedPaymentsRequest",null,a),o.exportSymbol("proto.squeaknode.SubscribeReplySqueakDisplaysRequest",null,a),o.exportSymbol("proto.squeaknode.SubscribeSqueakDisplayRequest",null,a),o.exportSymbol("proto.squeaknode.SubscribeSqueakDisplaysRequest",null,a),o.exportSymbol("proto.squeaknode.SubscribeTimelineSqueakDisplaysRequest",null,a),o.exportSymbol("proto.squeaknode.TwitterAccount",null,a),o.exportSymbol("proto.squeaknode.UnlikeSqueakReply",null,a),o.exportSymbol("proto.squeaknode.UnlikeSqueakRequest",null,a),proto.squeaknode.CreateSigningProfileRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.CreateSigningProfileRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.CreateSigningProfileRequest.displayName="proto.squeaknode.CreateSigningProfileRequest"),proto.squeaknode.CreateSigningProfileReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.CreateSigningProfileReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.CreateSigningProfileReply.displayName="proto.squeaknode.CreateSigningProfileReply"),proto.squeaknode.ImportSigningProfileRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.ImportSigningProfileRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.ImportSigningProfileRequest.displayName="proto.squeaknode.ImportSigningProfileRequest"),proto.squeaknode.ImportSigningProfileReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.ImportSigningProfileReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.ImportSigningProfileReply.displayName="proto.squeaknode.ImportSigningProfileReply"),proto.squeaknode.CreateContactProfileRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.CreateContactProfileRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.CreateContactProfileRequest.displayName="proto.squeaknode.CreateContactProfileRequest"),proto.squeaknode.CreateContactProfileReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.CreateContactProfileReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.CreateContactProfileReply.displayName="proto.squeaknode.CreateContactProfileReply"),proto.squeaknode.GetProfilesRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetProfilesRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetProfilesRequest.displayName="proto.squeaknode.GetProfilesRequest"),proto.squeaknode.GetProfilesReply=function(e){n.Message.initialize(this,e,0,-1,proto.squeaknode.GetProfilesReply.repeatedFields_,null)},o.inherits(proto.squeaknode.GetProfilesReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetProfilesReply.displayName="proto.squeaknode.GetProfilesReply"),proto.squeaknode.GetSigningProfilesRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetSigningProfilesRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSigningProfilesRequest.displayName="proto.squeaknode.GetSigningProfilesRequest"),proto.squeaknode.GetSigningProfilesReply=function(e){n.Message.initialize(this,e,0,-1,proto.squeaknode.GetSigningProfilesReply.repeatedFields_,null)},o.inherits(proto.squeaknode.GetSigningProfilesReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSigningProfilesReply.displayName="proto.squeaknode.GetSigningProfilesReply"),proto.squeaknode.GetContactProfilesRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetContactProfilesRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetContactProfilesRequest.displayName="proto.squeaknode.GetContactProfilesRequest"),proto.squeaknode.GetContactProfilesReply=function(e){n.Message.initialize(this,e,0,-1,proto.squeaknode.GetContactProfilesReply.repeatedFields_,null)},o.inherits(proto.squeaknode.GetContactProfilesReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetContactProfilesReply.displayName="proto.squeaknode.GetContactProfilesReply"),proto.squeaknode.GetSqueakProfileRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetSqueakProfileRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSqueakProfileRequest.displayName="proto.squeaknode.GetSqueakProfileRequest"),proto.squeaknode.GetSqueakProfileReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetSqueakProfileReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSqueakProfileReply.displayName="proto.squeaknode.GetSqueakProfileReply"),proto.squeaknode.GetSqueakProfileByPubKeyRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetSqueakProfileByPubKeyRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSqueakProfileByPubKeyRequest.displayName="proto.squeaknode.GetSqueakProfileByPubKeyRequest"),proto.squeaknode.GetSqueakProfileByPubKeyReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetSqueakProfileByPubKeyReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSqueakProfileByPubKeyReply.displayName="proto.squeaknode.GetSqueakProfileByPubKeyReply"),proto.squeaknode.GetSqueakProfileByNameRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetSqueakProfileByNameRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSqueakProfileByNameRequest.displayName="proto.squeaknode.GetSqueakProfileByNameRequest"),proto.squeaknode.GetSqueakProfileByNameReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetSqueakProfileByNameReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSqueakProfileByNameReply.displayName="proto.squeaknode.GetSqueakProfileByNameReply"),proto.squeaknode.SetSqueakProfileFollowingRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SetSqueakProfileFollowingRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SetSqueakProfileFollowingRequest.displayName="proto.squeaknode.SetSqueakProfileFollowingRequest"),proto.squeaknode.SetSqueakProfileFollowingReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SetSqueakProfileFollowingReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SetSqueakProfileFollowingReply.displayName="proto.squeaknode.SetSqueakProfileFollowingReply"),proto.squeaknode.RenameSqueakProfileRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.RenameSqueakProfileRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.RenameSqueakProfileRequest.displayName="proto.squeaknode.RenameSqueakProfileRequest"),proto.squeaknode.RenameSqueakProfileReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.RenameSqueakProfileReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.RenameSqueakProfileReply.displayName="proto.squeaknode.RenameSqueakProfileReply"),proto.squeaknode.GetSqueakProfilePrivateKeyRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetSqueakProfilePrivateKeyRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSqueakProfilePrivateKeyRequest.displayName="proto.squeaknode.GetSqueakProfilePrivateKeyRequest"),proto.squeaknode.GetSqueakProfilePrivateKeyReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetSqueakProfilePrivateKeyReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSqueakProfilePrivateKeyReply.displayName="proto.squeaknode.GetSqueakProfilePrivateKeyReply"),proto.squeaknode.DeleteSqueakProfileRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DeleteSqueakProfileRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DeleteSqueakProfileRequest.displayName="proto.squeaknode.DeleteSqueakProfileRequest"),proto.squeaknode.DeleteSqueakProfileReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DeleteSqueakProfileReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DeleteSqueakProfileReply.displayName="proto.squeaknode.DeleteSqueakProfileReply"),proto.squeaknode.SetSqueakProfileImageRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SetSqueakProfileImageRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SetSqueakProfileImageRequest.displayName="proto.squeaknode.SetSqueakProfileImageRequest"),proto.squeaknode.SetSqueakProfileImageReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SetSqueakProfileImageReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SetSqueakProfileImageReply.displayName="proto.squeaknode.SetSqueakProfileImageReply"),proto.squeaknode.ClearSqueakProfileImageRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.ClearSqueakProfileImageRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.ClearSqueakProfileImageRequest.displayName="proto.squeaknode.ClearSqueakProfileImageRequest"),proto.squeaknode.ClearSqueakProfileImageReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.ClearSqueakProfileImageReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.ClearSqueakProfileImageReply.displayName="proto.squeaknode.ClearSqueakProfileImageReply"),proto.squeaknode.SqueakProfile=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SqueakProfile,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SqueakProfile.displayName="proto.squeaknode.SqueakProfile"),proto.squeaknode.MakeSqueakRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.MakeSqueakRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.MakeSqueakRequest.displayName="proto.squeaknode.MakeSqueakRequest"),proto.squeaknode.MakeSqueakReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.MakeSqueakReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.MakeSqueakReply.displayName="proto.squeaknode.MakeSqueakReply"),proto.squeaknode.MakeResqueakRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.MakeResqueakRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.MakeResqueakRequest.displayName="proto.squeaknode.MakeResqueakRequest"),proto.squeaknode.MakeResqueakReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.MakeResqueakReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.MakeResqueakReply.displayName="proto.squeaknode.MakeResqueakReply"),proto.squeaknode.GetSqueakDisplayRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetSqueakDisplayRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSqueakDisplayRequest.displayName="proto.squeaknode.GetSqueakDisplayRequest"),proto.squeaknode.GetSqueakDisplayReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetSqueakDisplayReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSqueakDisplayReply.displayName="proto.squeaknode.GetSqueakDisplayReply"),proto.squeaknode.SqueakDisplayEntry=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SqueakDisplayEntry,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SqueakDisplayEntry.displayName="proto.squeaknode.SqueakDisplayEntry"),proto.squeaknode.GetTimelineSqueakDisplaysRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetTimelineSqueakDisplaysRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetTimelineSqueakDisplaysRequest.displayName="proto.squeaknode.GetTimelineSqueakDisplaysRequest"),proto.squeaknode.GetTimelineSqueakDisplaysReply=function(e){n.Message.initialize(this,e,0,-1,proto.squeaknode.GetTimelineSqueakDisplaysReply.repeatedFields_,null)},o.inherits(proto.squeaknode.GetTimelineSqueakDisplaysReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetTimelineSqueakDisplaysReply.displayName="proto.squeaknode.GetTimelineSqueakDisplaysReply"),proto.squeaknode.GetPubKeySqueakDisplaysRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetPubKeySqueakDisplaysRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetPubKeySqueakDisplaysRequest.displayName="proto.squeaknode.GetPubKeySqueakDisplaysRequest"),proto.squeaknode.GetPubKeySqueakDisplaysReply=function(e){n.Message.initialize(this,e,0,-1,proto.squeaknode.GetPubKeySqueakDisplaysReply.repeatedFields_,null)},o.inherits(proto.squeaknode.GetPubKeySqueakDisplaysReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetPubKeySqueakDisplaysReply.displayName="proto.squeaknode.GetPubKeySqueakDisplaysReply"),proto.squeaknode.GetSearchSqueakDisplaysRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetSearchSqueakDisplaysRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSearchSqueakDisplaysRequest.displayName="proto.squeaknode.GetSearchSqueakDisplaysRequest"),proto.squeaknode.GetSearchSqueakDisplaysReply=function(e){n.Message.initialize(this,e,0,-1,proto.squeaknode.GetSearchSqueakDisplaysReply.repeatedFields_,null)},o.inherits(proto.squeaknode.GetSearchSqueakDisplaysReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSearchSqueakDisplaysReply.displayName="proto.squeaknode.GetSearchSqueakDisplaysReply"),proto.squeaknode.GetAncestorSqueakDisplaysRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetAncestorSqueakDisplaysRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetAncestorSqueakDisplaysRequest.displayName="proto.squeaknode.GetAncestorSqueakDisplaysRequest"),proto.squeaknode.GetAncestorSqueakDisplaysReply=function(e){n.Message.initialize(this,e,0,-1,proto.squeaknode.GetAncestorSqueakDisplaysReply.repeatedFields_,null)},o.inherits(proto.squeaknode.GetAncestorSqueakDisplaysReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetAncestorSqueakDisplaysReply.displayName="proto.squeaknode.GetAncestorSqueakDisplaysReply"),proto.squeaknode.GetReplySqueakDisplaysRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetReplySqueakDisplaysRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetReplySqueakDisplaysRequest.displayName="proto.squeaknode.GetReplySqueakDisplaysRequest"),proto.squeaknode.GetReplySqueakDisplaysReply=function(e){n.Message.initialize(this,e,0,-1,proto.squeaknode.GetReplySqueakDisplaysReply.repeatedFields_,null)},o.inherits(proto.squeaknode.GetReplySqueakDisplaysReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetReplySqueakDisplaysReply.displayName="proto.squeaknode.GetReplySqueakDisplaysReply"),proto.squeaknode.DeleteSqueakRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DeleteSqueakRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DeleteSqueakRequest.displayName="proto.squeaknode.DeleteSqueakRequest"),proto.squeaknode.DeleteSqueakReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DeleteSqueakReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DeleteSqueakReply.displayName="proto.squeaknode.DeleteSqueakReply"),proto.squeaknode.CreatePeerRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.CreatePeerRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.CreatePeerRequest.displayName="proto.squeaknode.CreatePeerRequest"),proto.squeaknode.CreatePeerReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.CreatePeerReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.CreatePeerReply.displayName="proto.squeaknode.CreatePeerReply"),proto.squeaknode.GetPeerRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetPeerRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetPeerRequest.displayName="proto.squeaknode.GetPeerRequest"),proto.squeaknode.GetPeerReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetPeerReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetPeerReply.displayName="proto.squeaknode.GetPeerReply"),proto.squeaknode.GetPeerByAddressRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetPeerByAddressRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetPeerByAddressRequest.displayName="proto.squeaknode.GetPeerByAddressRequest"),proto.squeaknode.GetPeerByAddressReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetPeerByAddressReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetPeerByAddressReply.displayName="proto.squeaknode.GetPeerByAddressReply"),proto.squeaknode.GetPeersRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetPeersRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetPeersRequest.displayName="proto.squeaknode.GetPeersRequest"),proto.squeaknode.GetPeersReply=function(e){n.Message.initialize(this,e,0,-1,proto.squeaknode.GetPeersReply.repeatedFields_,null)},o.inherits(proto.squeaknode.GetPeersReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetPeersReply.displayName="proto.squeaknode.GetPeersReply"),proto.squeaknode.SqueakPeer=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SqueakPeer,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SqueakPeer.displayName="proto.squeaknode.SqueakPeer"),proto.squeaknode.SetPeerAutoconnectRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SetPeerAutoconnectRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SetPeerAutoconnectRequest.displayName="proto.squeaknode.SetPeerAutoconnectRequest"),proto.squeaknode.SetPeerAutoconnectReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SetPeerAutoconnectReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SetPeerAutoconnectReply.displayName="proto.squeaknode.SetPeerAutoconnectReply"),proto.squeaknode.SetPeerShareForFreeRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SetPeerShareForFreeRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SetPeerShareForFreeRequest.displayName="proto.squeaknode.SetPeerShareForFreeRequest"),proto.squeaknode.SetPeerShareForFreeReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SetPeerShareForFreeReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SetPeerShareForFreeReply.displayName="proto.squeaknode.SetPeerShareForFreeReply"),proto.squeaknode.RenamePeerRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.RenamePeerRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.RenamePeerRequest.displayName="proto.squeaknode.RenamePeerRequest"),proto.squeaknode.RenamePeerReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.RenamePeerReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.RenamePeerReply.displayName="proto.squeaknode.RenamePeerReply"),proto.squeaknode.DeletePeerRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DeletePeerRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DeletePeerRequest.displayName="proto.squeaknode.DeletePeerRequest"),proto.squeaknode.DeletePeerReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DeletePeerReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DeletePeerReply.displayName="proto.squeaknode.DeletePeerReply"),proto.squeaknode.LoadBuyOffersRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.LoadBuyOffersRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.LoadBuyOffersRequest.displayName="proto.squeaknode.LoadBuyOffersRequest"),proto.squeaknode.LoadBuyOffersReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.LoadBuyOffersReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.LoadBuyOffersReply.displayName="proto.squeaknode.LoadBuyOffersReply"),proto.squeaknode.GetBuyOffersRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetBuyOffersRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetBuyOffersRequest.displayName="proto.squeaknode.GetBuyOffersRequest"),proto.squeaknode.GetBuyOffersReply=function(e){n.Message.initialize(this,e,0,-1,proto.squeaknode.GetBuyOffersReply.repeatedFields_,null)},o.inherits(proto.squeaknode.GetBuyOffersReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetBuyOffersReply.displayName="proto.squeaknode.GetBuyOffersReply"),proto.squeaknode.GetBuyOfferRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetBuyOfferRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetBuyOfferRequest.displayName="proto.squeaknode.GetBuyOfferRequest"),proto.squeaknode.GetBuyOfferReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetBuyOfferReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetBuyOfferReply.displayName="proto.squeaknode.GetBuyOfferReply"),proto.squeaknode.OfferDisplayEntry=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.OfferDisplayEntry,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.OfferDisplayEntry.displayName="proto.squeaknode.OfferDisplayEntry"),proto.squeaknode.DownloadSqueaksRequest=function(e){n.Message.initialize(this,e,0,-1,proto.squeaknode.DownloadSqueaksRequest.repeatedFields_,null)},o.inherits(proto.squeaknode.DownloadSqueaksRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DownloadSqueaksRequest.displayName="proto.squeaknode.DownloadSqueaksRequest"),proto.squeaknode.DownloadResult=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DownloadResult,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DownloadResult.displayName="proto.squeaknode.DownloadResult"),proto.squeaknode.DownloadSqueaksReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DownloadSqueaksReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DownloadSqueaksReply.displayName="proto.squeaknode.DownloadSqueaksReply"),proto.squeaknode.PayOfferRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.PayOfferRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.PayOfferRequest.displayName="proto.squeaknode.PayOfferRequest"),proto.squeaknode.PayOfferReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.PayOfferReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.PayOfferReply.displayName="proto.squeaknode.PayOfferReply"),proto.squeaknode.DecryptSqueakRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DecryptSqueakRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DecryptSqueakRequest.displayName="proto.squeaknode.DecryptSqueakRequest"),proto.squeaknode.DecryptSqueakReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DecryptSqueakReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DecryptSqueakReply.displayName="proto.squeaknode.DecryptSqueakReply"),proto.squeaknode.GetSentPaymentsRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetSentPaymentsRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSentPaymentsRequest.displayName="proto.squeaknode.GetSentPaymentsRequest"),proto.squeaknode.GetSentPaymentsReply=function(e){n.Message.initialize(this,e,0,-1,proto.squeaknode.GetSentPaymentsReply.repeatedFields_,null)},o.inherits(proto.squeaknode.GetSentPaymentsReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSentPaymentsReply.displayName="proto.squeaknode.GetSentPaymentsReply"),proto.squeaknode.GetSentPaymentsForSqueakRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetSentPaymentsForSqueakRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSentPaymentsForSqueakRequest.displayName="proto.squeaknode.GetSentPaymentsForSqueakRequest"),proto.squeaknode.GetSentPaymentsForSqueakReply=function(e){n.Message.initialize(this,e,0,-1,proto.squeaknode.GetSentPaymentsForSqueakReply.repeatedFields_,null)},o.inherits(proto.squeaknode.GetSentPaymentsForSqueakReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSentPaymentsForSqueakReply.displayName="proto.squeaknode.GetSentPaymentsForSqueakReply"),proto.squeaknode.GetSentPaymentsForPubkeyRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetSentPaymentsForPubkeyRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSentPaymentsForPubkeyRequest.displayName="proto.squeaknode.GetSentPaymentsForPubkeyRequest"),proto.squeaknode.GetSentPaymentsForPubkeyReply=function(e){n.Message.initialize(this,e,0,-1,proto.squeaknode.GetSentPaymentsForPubkeyReply.repeatedFields_,null)},o.inherits(proto.squeaknode.GetSentPaymentsForPubkeyReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSentPaymentsForPubkeyReply.displayName="proto.squeaknode.GetSentPaymentsForPubkeyReply"),proto.squeaknode.GetSentPaymentsForPeerRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetSentPaymentsForPeerRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSentPaymentsForPeerRequest.displayName="proto.squeaknode.GetSentPaymentsForPeerRequest"),proto.squeaknode.GetSentPaymentsForPeerReply=function(e){n.Message.initialize(this,e,0,-1,proto.squeaknode.GetSentPaymentsForPeerReply.repeatedFields_,null)},o.inherits(proto.squeaknode.GetSentPaymentsForPeerReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSentPaymentsForPeerReply.displayName="proto.squeaknode.GetSentPaymentsForPeerReply"),proto.squeaknode.GetSentPaymentRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetSentPaymentRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSentPaymentRequest.displayName="proto.squeaknode.GetSentPaymentRequest"),proto.squeaknode.GetSentPaymentReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetSentPaymentReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSentPaymentReply.displayName="proto.squeaknode.GetSentPaymentReply"),proto.squeaknode.SentPayment=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SentPayment,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SentPayment.displayName="proto.squeaknode.SentPayment"),proto.squeaknode.DownloadSqueakRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DownloadSqueakRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DownloadSqueakRequest.displayName="proto.squeaknode.DownloadSqueakRequest"),proto.squeaknode.DownloadSqueakReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DownloadSqueakReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DownloadSqueakReply.displayName="proto.squeaknode.DownloadSqueakReply"),proto.squeaknode.DownloadSqueakSecretKeyRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DownloadSqueakSecretKeyRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DownloadSqueakSecretKeyRequest.displayName="proto.squeaknode.DownloadSqueakSecretKeyRequest"),proto.squeaknode.DownloadSqueakSecretKeyReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DownloadSqueakSecretKeyReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DownloadSqueakSecretKeyReply.displayName="proto.squeaknode.DownloadSqueakSecretKeyReply"),proto.squeaknode.DownloadOffersRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DownloadOffersRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DownloadOffersRequest.displayName="proto.squeaknode.DownloadOffersRequest"),proto.squeaknode.DownloadOffersReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DownloadOffersReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DownloadOffersReply.displayName="proto.squeaknode.DownloadOffersReply"),proto.squeaknode.DownloadRepliesRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DownloadRepliesRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DownloadRepliesRequest.displayName="proto.squeaknode.DownloadRepliesRequest"),proto.squeaknode.DownloadRepliesReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DownloadRepliesReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DownloadRepliesReply.displayName="proto.squeaknode.DownloadRepliesReply"),proto.squeaknode.DownloadPubKeySqueaksRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DownloadPubKeySqueaksRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DownloadPubKeySqueaksRequest.displayName="proto.squeaknode.DownloadPubKeySqueaksRequest"),proto.squeaknode.DownloadPubKeySqueaksReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DownloadPubKeySqueaksReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DownloadPubKeySqueaksReply.displayName="proto.squeaknode.DownloadPubKeySqueaksReply"),proto.squeaknode.GetSentOffersRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetSentOffersRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSentOffersRequest.displayName="proto.squeaknode.GetSentOffersRequest"),proto.squeaknode.GetSentOffersReply=function(e){n.Message.initialize(this,e,0,-1,proto.squeaknode.GetSentOffersReply.repeatedFields_,null)},o.inherits(proto.squeaknode.GetSentOffersReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSentOffersReply.displayName="proto.squeaknode.GetSentOffersReply"),proto.squeaknode.SentOffer=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SentOffer,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SentOffer.displayName="proto.squeaknode.SentOffer"),proto.squeaknode.GetReceivedPaymentsRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetReceivedPaymentsRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetReceivedPaymentsRequest.displayName="proto.squeaknode.GetReceivedPaymentsRequest"),proto.squeaknode.GetReceivedPaymentsReply=function(e){n.Message.initialize(this,e,0,-1,proto.squeaknode.GetReceivedPaymentsReply.repeatedFields_,null)},o.inherits(proto.squeaknode.GetReceivedPaymentsReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetReceivedPaymentsReply.displayName="proto.squeaknode.GetReceivedPaymentsReply"),proto.squeaknode.GetReceivedPaymentsForSqueakRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetReceivedPaymentsForSqueakRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetReceivedPaymentsForSqueakRequest.displayName="proto.squeaknode.GetReceivedPaymentsForSqueakRequest"),proto.squeaknode.GetReceivedPaymentsForSqueakReply=function(e){n.Message.initialize(this,e,0,-1,proto.squeaknode.GetReceivedPaymentsForSqueakReply.repeatedFields_,null)},o.inherits(proto.squeaknode.GetReceivedPaymentsForSqueakReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetReceivedPaymentsForSqueakReply.displayName="proto.squeaknode.GetReceivedPaymentsForSqueakReply"),proto.squeaknode.GetReceivedPaymentsForPubkeyRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetReceivedPaymentsForPubkeyRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetReceivedPaymentsForPubkeyRequest.displayName="proto.squeaknode.GetReceivedPaymentsForPubkeyRequest"),proto.squeaknode.GetReceivedPaymentsForPubkeyReply=function(e){n.Message.initialize(this,e,0,-1,proto.squeaknode.GetReceivedPaymentsForPubkeyReply.repeatedFields_,null)},o.inherits(proto.squeaknode.GetReceivedPaymentsForPubkeyReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetReceivedPaymentsForPubkeyReply.displayName="proto.squeaknode.GetReceivedPaymentsForPubkeyReply"),proto.squeaknode.GetReceivedPaymentsForPeerRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetReceivedPaymentsForPeerRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetReceivedPaymentsForPeerRequest.displayName="proto.squeaknode.GetReceivedPaymentsForPeerRequest"),proto.squeaknode.GetReceivedPaymentsForPeerReply=function(e){n.Message.initialize(this,e,0,-1,proto.squeaknode.GetReceivedPaymentsForPeerReply.repeatedFields_,null)},o.inherits(proto.squeaknode.GetReceivedPaymentsForPeerReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetReceivedPaymentsForPeerReply.displayName="proto.squeaknode.GetReceivedPaymentsForPeerReply"),proto.squeaknode.ReceivedPayment=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.ReceivedPayment,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.ReceivedPayment.displayName="proto.squeaknode.ReceivedPayment"),proto.squeaknode.SubscribeReceivedPaymentsRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SubscribeReceivedPaymentsRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SubscribeReceivedPaymentsRequest.displayName="proto.squeaknode.SubscribeReceivedPaymentsRequest"),proto.squeaknode.GetNetworkRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetNetworkRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetNetworkRequest.displayName="proto.squeaknode.GetNetworkRequest"),proto.squeaknode.GetNetworkReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetNetworkReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetNetworkReply.displayName="proto.squeaknode.GetNetworkReply"),proto.squeaknode.GetPaymentSummaryRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetPaymentSummaryRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetPaymentSummaryRequest.displayName="proto.squeaknode.GetPaymentSummaryRequest"),proto.squeaknode.GetPaymentSummaryReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetPaymentSummaryReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetPaymentSummaryReply.displayName="proto.squeaknode.GetPaymentSummaryReply"),proto.squeaknode.GetPaymentSummaryForSqueakRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetPaymentSummaryForSqueakRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetPaymentSummaryForSqueakRequest.displayName="proto.squeaknode.GetPaymentSummaryForSqueakRequest"),proto.squeaknode.GetPaymentSummaryForSqueakReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetPaymentSummaryForSqueakReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetPaymentSummaryForSqueakReply.displayName="proto.squeaknode.GetPaymentSummaryForSqueakReply"),proto.squeaknode.GetPaymentSummaryForPubkeyRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetPaymentSummaryForPubkeyRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetPaymentSummaryForPubkeyRequest.displayName="proto.squeaknode.GetPaymentSummaryForPubkeyRequest"),proto.squeaknode.GetPaymentSummaryForPubkeyReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetPaymentSummaryForPubkeyReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetPaymentSummaryForPubkeyReply.displayName="proto.squeaknode.GetPaymentSummaryForPubkeyReply"),proto.squeaknode.GetPaymentSummaryForPeerRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetPaymentSummaryForPeerRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetPaymentSummaryForPeerRequest.displayName="proto.squeaknode.GetPaymentSummaryForPeerRequest"),proto.squeaknode.GetPaymentSummaryForPeerReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetPaymentSummaryForPeerReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetPaymentSummaryForPeerReply.displayName="proto.squeaknode.GetPaymentSummaryForPeerReply"),proto.squeaknode.PaymentSummary=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.PaymentSummary,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.PaymentSummary.displayName="proto.squeaknode.PaymentSummary"),proto.squeaknode.ReprocessReceivedPaymentsRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.ReprocessReceivedPaymentsRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.ReprocessReceivedPaymentsRequest.displayName="proto.squeaknode.ReprocessReceivedPaymentsRequest"),proto.squeaknode.ReprocessReceivedPaymentsReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.ReprocessReceivedPaymentsReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.ReprocessReceivedPaymentsReply.displayName="proto.squeaknode.ReprocessReceivedPaymentsReply"),proto.squeaknode.LikeSqueakRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.LikeSqueakRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.LikeSqueakRequest.displayName="proto.squeaknode.LikeSqueakRequest"),proto.squeaknode.LikeSqueakReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.LikeSqueakReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.LikeSqueakReply.displayName="proto.squeaknode.LikeSqueakReply"),proto.squeaknode.UnlikeSqueakRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.UnlikeSqueakRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.UnlikeSqueakRequest.displayName="proto.squeaknode.UnlikeSqueakRequest"),proto.squeaknode.UnlikeSqueakReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.UnlikeSqueakReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.UnlikeSqueakReply.displayName="proto.squeaknode.UnlikeSqueakReply"),proto.squeaknode.GetLikedSqueakDisplaysRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetLikedSqueakDisplaysRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetLikedSqueakDisplaysRequest.displayName="proto.squeaknode.GetLikedSqueakDisplaysRequest"),proto.squeaknode.GetLikedSqueakDisplaysReply=function(e){n.Message.initialize(this,e,0,-1,proto.squeaknode.GetLikedSqueakDisplaysReply.repeatedFields_,null)},o.inherits(proto.squeaknode.GetLikedSqueakDisplaysReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetLikedSqueakDisplaysReply.displayName="proto.squeaknode.GetLikedSqueakDisplaysReply"),proto.squeaknode.ConnectPeerRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.ConnectPeerRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.ConnectPeerRequest.displayName="proto.squeaknode.ConnectPeerRequest"),proto.squeaknode.ConnectPeerReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.ConnectPeerReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.ConnectPeerReply.displayName="proto.squeaknode.ConnectPeerReply"),proto.squeaknode.ConnectedPeer=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.ConnectedPeer,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.ConnectedPeer.displayName="proto.squeaknode.ConnectedPeer"),proto.squeaknode.GetConnectedPeersRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetConnectedPeersRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetConnectedPeersRequest.displayName="proto.squeaknode.GetConnectedPeersRequest"),proto.squeaknode.GetConnectedPeersReply=function(e){n.Message.initialize(this,e,0,-1,proto.squeaknode.GetConnectedPeersReply.repeatedFields_,null)},o.inherits(proto.squeaknode.GetConnectedPeersReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetConnectedPeersReply.displayName="proto.squeaknode.GetConnectedPeersReply"),proto.squeaknode.GetConnectedPeerRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetConnectedPeerRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetConnectedPeerRequest.displayName="proto.squeaknode.GetConnectedPeerRequest"),proto.squeaknode.GetConnectedPeerReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetConnectedPeerReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetConnectedPeerReply.displayName="proto.squeaknode.GetConnectedPeerReply"),proto.squeaknode.DisconnectPeerRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DisconnectPeerRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DisconnectPeerRequest.displayName="proto.squeaknode.DisconnectPeerRequest"),proto.squeaknode.DisconnectPeerReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DisconnectPeerReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DisconnectPeerReply.displayName="proto.squeaknode.DisconnectPeerReply"),proto.squeaknode.SubscribeConnectedPeersRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SubscribeConnectedPeersRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SubscribeConnectedPeersRequest.displayName="proto.squeaknode.SubscribeConnectedPeersRequest"),proto.squeaknode.SubscribeConnectedPeerRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SubscribeConnectedPeerRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SubscribeConnectedPeerRequest.displayName="proto.squeaknode.SubscribeConnectedPeerRequest"),proto.squeaknode.PeerAddress=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.PeerAddress,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.PeerAddress.displayName="proto.squeaknode.PeerAddress"),proto.squeaknode.SubscribeBuyOffersRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SubscribeBuyOffersRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SubscribeBuyOffersRequest.displayName="proto.squeaknode.SubscribeBuyOffersRequest"),proto.squeaknode.SubscribeSqueakDisplayRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SubscribeSqueakDisplayRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SubscribeSqueakDisplayRequest.displayName="proto.squeaknode.SubscribeSqueakDisplayRequest"),proto.squeaknode.SubscribeReplySqueakDisplaysRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SubscribeReplySqueakDisplaysRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SubscribeReplySqueakDisplaysRequest.displayName="proto.squeaknode.SubscribeReplySqueakDisplaysRequest"),proto.squeaknode.SubscribePubKeySqueakDisplaysRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SubscribePubKeySqueakDisplaysRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SubscribePubKeySqueakDisplaysRequest.displayName="proto.squeaknode.SubscribePubKeySqueakDisplaysRequest"),proto.squeaknode.SubscribeAncestorSqueakDisplaysRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SubscribeAncestorSqueakDisplaysRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SubscribeAncestorSqueakDisplaysRequest.displayName="proto.squeaknode.SubscribeAncestorSqueakDisplaysRequest"),proto.squeaknode.SubscribeSqueakDisplaysRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SubscribeSqueakDisplaysRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SubscribeSqueakDisplaysRequest.displayName="proto.squeaknode.SubscribeSqueakDisplaysRequest"),proto.squeaknode.SubscribeTimelineSqueakDisplaysRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SubscribeTimelineSqueakDisplaysRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SubscribeTimelineSqueakDisplaysRequest.displayName="proto.squeaknode.SubscribeTimelineSqueakDisplaysRequest"),proto.squeaknode.GetExternalAddressRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetExternalAddressRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetExternalAddressRequest.displayName="proto.squeaknode.GetExternalAddressRequest"),proto.squeaknode.GetExternalAddressReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetExternalAddressReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetExternalAddressReply.displayName="proto.squeaknode.GetExternalAddressReply"),proto.squeaknode.GetDefaultPeerPortRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetDefaultPeerPortRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetDefaultPeerPortRequest.displayName="proto.squeaknode.GetDefaultPeerPortRequest"),proto.squeaknode.GetDefaultPeerPortReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetDefaultPeerPortReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetDefaultPeerPortReply.displayName="proto.squeaknode.GetDefaultPeerPortReply"),proto.squeaknode.SetSellPriceRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SetSellPriceRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SetSellPriceRequest.displayName="proto.squeaknode.SetSellPriceRequest"),proto.squeaknode.SetSellPriceReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.SetSellPriceReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.SetSellPriceReply.displayName="proto.squeaknode.SetSellPriceReply"),proto.squeaknode.ClearSellPriceRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.ClearSellPriceRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.ClearSellPriceRequest.displayName="proto.squeaknode.ClearSellPriceRequest"),proto.squeaknode.ClearSellPriceReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.ClearSellPriceReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.ClearSellPriceReply.displayName="proto.squeaknode.ClearSellPriceReply"),proto.squeaknode.GetSellPriceRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetSellPriceRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSellPriceRequest.displayName="proto.squeaknode.GetSellPriceRequest"),proto.squeaknode.GetSellPriceReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetSellPriceReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetSellPriceReply.displayName="proto.squeaknode.GetSellPriceReply"),proto.squeaknode.TwitterAccount=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.TwitterAccount,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.TwitterAccount.displayName="proto.squeaknode.TwitterAccount"),proto.squeaknode.AddTwitterAccountRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.AddTwitterAccountRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.AddTwitterAccountRequest.displayName="proto.squeaknode.AddTwitterAccountRequest"),proto.squeaknode.AddTwitterAccountReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.AddTwitterAccountReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.AddTwitterAccountReply.displayName="proto.squeaknode.AddTwitterAccountReply"),proto.squeaknode.GetTwitterAccountsRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.GetTwitterAccountsRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetTwitterAccountsRequest.displayName="proto.squeaknode.GetTwitterAccountsRequest"),proto.squeaknode.GetTwitterAccountsReply=function(e){n.Message.initialize(this,e,0,-1,proto.squeaknode.GetTwitterAccountsReply.repeatedFields_,null)},o.inherits(proto.squeaknode.GetTwitterAccountsReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.GetTwitterAccountsReply.displayName="proto.squeaknode.GetTwitterAccountsReply"),proto.squeaknode.DeleteTwitterAccountRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DeleteTwitterAccountRequest,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DeleteTwitterAccountRequest.displayName="proto.squeaknode.DeleteTwitterAccountRequest"),proto.squeaknode.DeleteTwitterAccountReply=function(e){n.Message.initialize(this,e,0,-1,null,null)},o.inherits(proto.squeaknode.DeleteTwitterAccountReply,n.Message),o.DEBUG&&!COMPILED&&(proto.squeaknode.DeleteTwitterAccountReply.displayName="proto.squeaknode.DeleteTwitterAccountReply"),n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.CreateSigningProfileRequest.prototype.toObject=function(e){return proto.squeaknode.CreateSigningProfileRequest.toObject(e,this)},proto.squeaknode.CreateSigningProfileRequest.toObject=function(e,t){var r={profileName:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.CreateSigningProfileRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.CreateSigningProfileRequest;return proto.squeaknode.CreateSigningProfileRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.CreateSigningProfileRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setProfileName(r)}else t.skipField()}return e},proto.squeaknode.CreateSigningProfileRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.CreateSigningProfileRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.CreateSigningProfileRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getProfileName()).length>0&&t.writeString(1,r)},proto.squeaknode.CreateSigningProfileRequest.prototype.getProfileName=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.CreateSigningProfileRequest.prototype.setProfileName=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.CreateSigningProfileReply.prototype.toObject=function(e){return proto.squeaknode.CreateSigningProfileReply.toObject(e,this)},proto.squeaknode.CreateSigningProfileReply.toObject=function(e,t){var r={profileId:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.CreateSigningProfileReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.CreateSigningProfileReply;return proto.squeaknode.CreateSigningProfileReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.CreateSigningProfileReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readInt32();e.setProfileId(r)}else t.skipField()}return e},proto.squeaknode.CreateSigningProfileReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.CreateSigningProfileReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.CreateSigningProfileReply.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getProfileId())&&t.writeInt32(1,r)},proto.squeaknode.CreateSigningProfileReply.prototype.getProfileId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.CreateSigningProfileReply.prototype.setProfileId=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.ImportSigningProfileRequest.prototype.toObject=function(e){return proto.squeaknode.ImportSigningProfileRequest.toObject(e,this)},proto.squeaknode.ImportSigningProfileRequest.toObject=function(e,t){var r={profileName:n.Message.getFieldWithDefault(t,1,""),privateKey:n.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.ImportSigningProfileRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.ImportSigningProfileRequest;return proto.squeaknode.ImportSigningProfileRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.ImportSigningProfileRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setProfileName(r);break;case 2:r=t.readString();e.setPrivateKey(r);break;default:t.skipField()}}return e},proto.squeaknode.ImportSigningProfileRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.ImportSigningProfileRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.ImportSigningProfileRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getProfileName()).length>0&&t.writeString(1,r),(r=e.getPrivateKey()).length>0&&t.writeString(2,r)},proto.squeaknode.ImportSigningProfileRequest.prototype.getProfileName=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.ImportSigningProfileRequest.prototype.setProfileName=function(e){return n.Message.setProto3StringField(this,1,e)},proto.squeaknode.ImportSigningProfileRequest.prototype.getPrivateKey=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.squeaknode.ImportSigningProfileRequest.prototype.setPrivateKey=function(e){return n.Message.setProto3StringField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.ImportSigningProfileReply.prototype.toObject=function(e){return proto.squeaknode.ImportSigningProfileReply.toObject(e,this)},proto.squeaknode.ImportSigningProfileReply.toObject=function(e,t){var r={profileId:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.ImportSigningProfileReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.ImportSigningProfileReply;return proto.squeaknode.ImportSigningProfileReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.ImportSigningProfileReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readInt32();e.setProfileId(r)}else t.skipField()}return e},proto.squeaknode.ImportSigningProfileReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.ImportSigningProfileReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.ImportSigningProfileReply.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getProfileId())&&t.writeInt32(1,r)},proto.squeaknode.ImportSigningProfileReply.prototype.getProfileId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.ImportSigningProfileReply.prototype.setProfileId=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.CreateContactProfileRequest.prototype.toObject=function(e){return proto.squeaknode.CreateContactProfileRequest.toObject(e,this)},proto.squeaknode.CreateContactProfileRequest.toObject=function(e,t){var r={profileName:n.Message.getFieldWithDefault(t,1,""),pubkey:n.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.CreateContactProfileRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.CreateContactProfileRequest;return proto.squeaknode.CreateContactProfileRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.CreateContactProfileRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setProfileName(r);break;case 2:r=t.readString();e.setPubkey(r);break;default:t.skipField()}}return e},proto.squeaknode.CreateContactProfileRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.CreateContactProfileRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.CreateContactProfileRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getProfileName()).length>0&&t.writeString(1,r),(r=e.getPubkey()).length>0&&t.writeString(2,r)},proto.squeaknode.CreateContactProfileRequest.prototype.getProfileName=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.CreateContactProfileRequest.prototype.setProfileName=function(e){return n.Message.setProto3StringField(this,1,e)},proto.squeaknode.CreateContactProfileRequest.prototype.getPubkey=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.squeaknode.CreateContactProfileRequest.prototype.setPubkey=function(e){return n.Message.setProto3StringField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.CreateContactProfileReply.prototype.toObject=function(e){return proto.squeaknode.CreateContactProfileReply.toObject(e,this)},proto.squeaknode.CreateContactProfileReply.toObject=function(e,t){var r={profileId:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.CreateContactProfileReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.CreateContactProfileReply;return proto.squeaknode.CreateContactProfileReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.CreateContactProfileReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readInt32();e.setProfileId(r)}else t.skipField()}return e},proto.squeaknode.CreateContactProfileReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.CreateContactProfileReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.CreateContactProfileReply.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getProfileId())&&t.writeInt32(1,r)},proto.squeaknode.CreateContactProfileReply.prototype.getProfileId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.CreateContactProfileReply.prototype.setProfileId=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetProfilesRequest.prototype.toObject=function(e){return proto.squeaknode.GetProfilesRequest.toObject(e,this)},proto.squeaknode.GetProfilesRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetProfilesRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetProfilesRequest;return proto.squeaknode.GetProfilesRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetProfilesRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.GetProfilesRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetProfilesRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetProfilesRequest.serializeBinaryToWriter=function(e,t){},proto.squeaknode.GetProfilesReply.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetProfilesReply.prototype.toObject=function(e){return proto.squeaknode.GetProfilesReply.toObject(e,this)},proto.squeaknode.GetProfilesReply.toObject=function(e,t){var r={squeakProfilesList:n.Message.toObjectList(t.getSqueakProfilesList(),proto.squeaknode.SqueakProfile.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetProfilesReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetProfilesReply;return proto.squeaknode.GetProfilesReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetProfilesReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.SqueakProfile;t.readMessage(r,proto.squeaknode.SqueakProfile.deserializeBinaryFromReader),e.addSqueakProfiles(r)}else t.skipField()}return e},proto.squeaknode.GetProfilesReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetProfilesReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetProfilesReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakProfilesList()).length>0&&t.writeRepeatedMessage(1,r,proto.squeaknode.SqueakProfile.serializeBinaryToWriter)},proto.squeaknode.GetProfilesReply.prototype.getSqueakProfilesList=function(){return n.Message.getRepeatedWrapperField(this,proto.squeaknode.SqueakProfile,1)},proto.squeaknode.GetProfilesReply.prototype.setSqueakProfilesList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.squeaknode.GetProfilesReply.prototype.addSqueakProfiles=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.squeaknode.SqueakProfile,t)},proto.squeaknode.GetProfilesReply.prototype.clearSqueakProfilesList=function(){return this.setSqueakProfilesList([])},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSigningProfilesRequest.prototype.toObject=function(e){return proto.squeaknode.GetSigningProfilesRequest.toObject(e,this)},proto.squeaknode.GetSigningProfilesRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetSigningProfilesRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSigningProfilesRequest;return proto.squeaknode.GetSigningProfilesRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSigningProfilesRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.GetSigningProfilesRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSigningProfilesRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSigningProfilesRequest.serializeBinaryToWriter=function(e,t){},proto.squeaknode.GetSigningProfilesReply.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSigningProfilesReply.prototype.toObject=function(e){return proto.squeaknode.GetSigningProfilesReply.toObject(e,this)},proto.squeaknode.GetSigningProfilesReply.toObject=function(e,t){var r={squeakProfilesList:n.Message.toObjectList(t.getSqueakProfilesList(),proto.squeaknode.SqueakProfile.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetSigningProfilesReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSigningProfilesReply;return proto.squeaknode.GetSigningProfilesReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSigningProfilesReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.SqueakProfile;t.readMessage(r,proto.squeaknode.SqueakProfile.deserializeBinaryFromReader),e.addSqueakProfiles(r)}else t.skipField()}return e},proto.squeaknode.GetSigningProfilesReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSigningProfilesReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSigningProfilesReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakProfilesList()).length>0&&t.writeRepeatedMessage(1,r,proto.squeaknode.SqueakProfile.serializeBinaryToWriter)},proto.squeaknode.GetSigningProfilesReply.prototype.getSqueakProfilesList=function(){return n.Message.getRepeatedWrapperField(this,proto.squeaknode.SqueakProfile,1)},proto.squeaknode.GetSigningProfilesReply.prototype.setSqueakProfilesList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.squeaknode.GetSigningProfilesReply.prototype.addSqueakProfiles=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.squeaknode.SqueakProfile,t)},proto.squeaknode.GetSigningProfilesReply.prototype.clearSqueakProfilesList=function(){return this.setSqueakProfilesList([])},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetContactProfilesRequest.prototype.toObject=function(e){return proto.squeaknode.GetContactProfilesRequest.toObject(e,this)},proto.squeaknode.GetContactProfilesRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetContactProfilesRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetContactProfilesRequest;return proto.squeaknode.GetContactProfilesRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetContactProfilesRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.GetContactProfilesRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetContactProfilesRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetContactProfilesRequest.serializeBinaryToWriter=function(e,t){},proto.squeaknode.GetContactProfilesReply.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetContactProfilesReply.prototype.toObject=function(e){return proto.squeaknode.GetContactProfilesReply.toObject(e,this)},proto.squeaknode.GetContactProfilesReply.toObject=function(e,t){var r={squeakProfilesList:n.Message.toObjectList(t.getSqueakProfilesList(),proto.squeaknode.SqueakProfile.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetContactProfilesReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetContactProfilesReply;return proto.squeaknode.GetContactProfilesReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetContactProfilesReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.SqueakProfile;t.readMessage(r,proto.squeaknode.SqueakProfile.deserializeBinaryFromReader),e.addSqueakProfiles(r)}else t.skipField()}return e},proto.squeaknode.GetContactProfilesReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetContactProfilesReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetContactProfilesReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakProfilesList()).length>0&&t.writeRepeatedMessage(1,r,proto.squeaknode.SqueakProfile.serializeBinaryToWriter)},proto.squeaknode.GetContactProfilesReply.prototype.getSqueakProfilesList=function(){return n.Message.getRepeatedWrapperField(this,proto.squeaknode.SqueakProfile,1)},proto.squeaknode.GetContactProfilesReply.prototype.setSqueakProfilesList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.squeaknode.GetContactProfilesReply.prototype.addSqueakProfiles=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.squeaknode.SqueakProfile,t)},proto.squeaknode.GetContactProfilesReply.prototype.clearSqueakProfilesList=function(){return this.setSqueakProfilesList([])},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSqueakProfileRequest.prototype.toObject=function(e){return proto.squeaknode.GetSqueakProfileRequest.toObject(e,this)},proto.squeaknode.GetSqueakProfileRequest.toObject=function(e,t){var r={profileId:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetSqueakProfileRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSqueakProfileRequest;return proto.squeaknode.GetSqueakProfileRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSqueakProfileRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readInt32();e.setProfileId(r)}else t.skipField()}return e},proto.squeaknode.GetSqueakProfileRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSqueakProfileRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSqueakProfileRequest.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getProfileId())&&t.writeInt32(1,r)},proto.squeaknode.GetSqueakProfileRequest.prototype.getProfileId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.GetSqueakProfileRequest.prototype.setProfileId=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSqueakProfileReply.prototype.toObject=function(e){return proto.squeaknode.GetSqueakProfileReply.toObject(e,this)},proto.squeaknode.GetSqueakProfileReply.toObject=function(e,t){var r,n={squeakProfile:(r=t.getSqueakProfile())&&proto.squeaknode.SqueakProfile.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.GetSqueakProfileReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSqueakProfileReply;return proto.squeaknode.GetSqueakProfileReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSqueakProfileReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.SqueakProfile;t.readMessage(r,proto.squeaknode.SqueakProfile.deserializeBinaryFromReader),e.setSqueakProfile(r)}else t.skipField()}return e},proto.squeaknode.GetSqueakProfileReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSqueakProfileReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSqueakProfileReply.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getSqueakProfile())&&t.writeMessage(1,r,proto.squeaknode.SqueakProfile.serializeBinaryToWriter)},proto.squeaknode.GetSqueakProfileReply.prototype.getSqueakProfile=function(){return n.Message.getWrapperField(this,proto.squeaknode.SqueakProfile,1)},proto.squeaknode.GetSqueakProfileReply.prototype.setSqueakProfile=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.GetSqueakProfileReply.prototype.clearSqueakProfile=function(){return this.setSqueakProfile(void 0)},proto.squeaknode.GetSqueakProfileReply.prototype.hasSqueakProfile=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSqueakProfileByPubKeyRequest.prototype.toObject=function(e){return proto.squeaknode.GetSqueakProfileByPubKeyRequest.toObject(e,this)},proto.squeaknode.GetSqueakProfileByPubKeyRequest.toObject=function(e,t){var r={pubkey:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetSqueakProfileByPubKeyRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSqueakProfileByPubKeyRequest;return proto.squeaknode.GetSqueakProfileByPubKeyRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSqueakProfileByPubKeyRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setPubkey(r)}else t.skipField()}return e},proto.squeaknode.GetSqueakProfileByPubKeyRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSqueakProfileByPubKeyRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSqueakProfileByPubKeyRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getPubkey()).length>0&&t.writeString(1,r)},proto.squeaknode.GetSqueakProfileByPubKeyRequest.prototype.getPubkey=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.GetSqueakProfileByPubKeyRequest.prototype.setPubkey=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSqueakProfileByPubKeyReply.prototype.toObject=function(e){return proto.squeaknode.GetSqueakProfileByPubKeyReply.toObject(e,this)},proto.squeaknode.GetSqueakProfileByPubKeyReply.toObject=function(e,t){var r,n={squeakProfile:(r=t.getSqueakProfile())&&proto.squeaknode.SqueakProfile.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.GetSqueakProfileByPubKeyReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSqueakProfileByPubKeyReply;return proto.squeaknode.GetSqueakProfileByPubKeyReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSqueakProfileByPubKeyReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.SqueakProfile;t.readMessage(r,proto.squeaknode.SqueakProfile.deserializeBinaryFromReader),e.setSqueakProfile(r)}else t.skipField()}return e},proto.squeaknode.GetSqueakProfileByPubKeyReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSqueakProfileByPubKeyReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSqueakProfileByPubKeyReply.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getSqueakProfile())&&t.writeMessage(1,r,proto.squeaknode.SqueakProfile.serializeBinaryToWriter)};proto.squeaknode.GetSqueakProfileByPubKeyReply.prototype.getSqueakProfile=function(){return n.Message.getWrapperField(this,proto.squeaknode.SqueakProfile,1)},proto.squeaknode.GetSqueakProfileByPubKeyReply.prototype.setSqueakProfile=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.GetSqueakProfileByPubKeyReply.prototype.clearSqueakProfile=function(){return this.setSqueakProfile(void 0)},proto.squeaknode.GetSqueakProfileByPubKeyReply.prototype.hasSqueakProfile=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSqueakProfileByNameRequest.prototype.toObject=function(e){return proto.squeaknode.GetSqueakProfileByNameRequest.toObject(e,this)},proto.squeaknode.GetSqueakProfileByNameRequest.toObject=function(e,t){var r={name:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetSqueakProfileByNameRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSqueakProfileByNameRequest;return proto.squeaknode.GetSqueakProfileByNameRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSqueakProfileByNameRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setName(r)}else t.skipField()}return e},proto.squeaknode.GetSqueakProfileByNameRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSqueakProfileByNameRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSqueakProfileByNameRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getName()).length>0&&t.writeString(1,r)},proto.squeaknode.GetSqueakProfileByNameRequest.prototype.getName=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.GetSqueakProfileByNameRequest.prototype.setName=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSqueakProfileByNameReply.prototype.toObject=function(e){return proto.squeaknode.GetSqueakProfileByNameReply.toObject(e,this)},proto.squeaknode.GetSqueakProfileByNameReply.toObject=function(e,t){var r,n={squeakProfile:(r=t.getSqueakProfile())&&proto.squeaknode.SqueakProfile.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.GetSqueakProfileByNameReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSqueakProfileByNameReply;return proto.squeaknode.GetSqueakProfileByNameReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSqueakProfileByNameReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.SqueakProfile;t.readMessage(r,proto.squeaknode.SqueakProfile.deserializeBinaryFromReader),e.setSqueakProfile(r)}else t.skipField()}return e},proto.squeaknode.GetSqueakProfileByNameReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSqueakProfileByNameReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSqueakProfileByNameReply.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getSqueakProfile())&&t.writeMessage(1,r,proto.squeaknode.SqueakProfile.serializeBinaryToWriter)},proto.squeaknode.GetSqueakProfileByNameReply.prototype.getSqueakProfile=function(){return n.Message.getWrapperField(this,proto.squeaknode.SqueakProfile,1)},proto.squeaknode.GetSqueakProfileByNameReply.prototype.setSqueakProfile=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.GetSqueakProfileByNameReply.prototype.clearSqueakProfile=function(){return this.setSqueakProfile(void 0)},proto.squeaknode.GetSqueakProfileByNameReply.prototype.hasSqueakProfile=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SetSqueakProfileFollowingRequest.prototype.toObject=function(e){return proto.squeaknode.SetSqueakProfileFollowingRequest.toObject(e,this)},proto.squeaknode.SetSqueakProfileFollowingRequest.toObject=function(e,t){var r={profileId:n.Message.getFieldWithDefault(t,1,0),following:n.Message.getBooleanFieldWithDefault(t,2,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.SetSqueakProfileFollowingRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SetSqueakProfileFollowingRequest;return proto.squeaknode.SetSqueakProfileFollowingRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.SetSqueakProfileFollowingRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setProfileId(r);break;case 2:r=t.readBool();e.setFollowing(r);break;default:t.skipField()}}return e},proto.squeaknode.SetSqueakProfileFollowingRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SetSqueakProfileFollowingRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SetSqueakProfileFollowingRequest.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getProfileId())&&t.writeInt32(1,r),(r=e.getFollowing())&&t.writeBool(2,r)},proto.squeaknode.SetSqueakProfileFollowingRequest.prototype.getProfileId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.SetSqueakProfileFollowingRequest.prototype.setProfileId=function(e){return n.Message.setProto3IntField(this,1,e)},proto.squeaknode.SetSqueakProfileFollowingRequest.prototype.getFollowing=function(){return n.Message.getBooleanFieldWithDefault(this,2,!1)},proto.squeaknode.SetSqueakProfileFollowingRequest.prototype.setFollowing=function(e){return n.Message.setProto3BooleanField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SetSqueakProfileFollowingReply.prototype.toObject=function(e){return proto.squeaknode.SetSqueakProfileFollowingReply.toObject(e,this)},proto.squeaknode.SetSqueakProfileFollowingReply.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.SetSqueakProfileFollowingReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SetSqueakProfileFollowingReply;return proto.squeaknode.SetSqueakProfileFollowingReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.SetSqueakProfileFollowingReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.SetSqueakProfileFollowingReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SetSqueakProfileFollowingReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SetSqueakProfileFollowingReply.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.RenameSqueakProfileRequest.prototype.toObject=function(e){return proto.squeaknode.RenameSqueakProfileRequest.toObject(e,this)},proto.squeaknode.RenameSqueakProfileRequest.toObject=function(e,t){var r={profileId:n.Message.getFieldWithDefault(t,1,0),profileName:n.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.RenameSqueakProfileRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.RenameSqueakProfileRequest;return proto.squeaknode.RenameSqueakProfileRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.RenameSqueakProfileRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setProfileId(r);break;case 2:r=t.readString();e.setProfileName(r);break;default:t.skipField()}}return e},proto.squeaknode.RenameSqueakProfileRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.RenameSqueakProfileRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.RenameSqueakProfileRequest.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getProfileId())&&t.writeInt32(1,r),(r=e.getProfileName()).length>0&&t.writeString(2,r)},proto.squeaknode.RenameSqueakProfileRequest.prototype.getProfileId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.RenameSqueakProfileRequest.prototype.setProfileId=function(e){return n.Message.setProto3IntField(this,1,e)},proto.squeaknode.RenameSqueakProfileRequest.prototype.getProfileName=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.squeaknode.RenameSqueakProfileRequest.prototype.setProfileName=function(e){return n.Message.setProto3StringField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.RenameSqueakProfileReply.prototype.toObject=function(e){return proto.squeaknode.RenameSqueakProfileReply.toObject(e,this)},proto.squeaknode.RenameSqueakProfileReply.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.RenameSqueakProfileReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.RenameSqueakProfileReply;return proto.squeaknode.RenameSqueakProfileReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.RenameSqueakProfileReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.RenameSqueakProfileReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.RenameSqueakProfileReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.RenameSqueakProfileReply.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSqueakProfilePrivateKeyRequest.prototype.toObject=function(e){return proto.squeaknode.GetSqueakProfilePrivateKeyRequest.toObject(e,this)},proto.squeaknode.GetSqueakProfilePrivateKeyRequest.toObject=function(e,t){var r={profileId:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetSqueakProfilePrivateKeyRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSqueakProfilePrivateKeyRequest;return proto.squeaknode.GetSqueakProfilePrivateKeyRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSqueakProfilePrivateKeyRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readInt32();e.setProfileId(r)}else t.skipField()}return e},proto.squeaknode.GetSqueakProfilePrivateKeyRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSqueakProfilePrivateKeyRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSqueakProfilePrivateKeyRequest.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getProfileId())&&t.writeInt32(1,r)},proto.squeaknode.GetSqueakProfilePrivateKeyRequest.prototype.getProfileId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.GetSqueakProfilePrivateKeyRequest.prototype.setProfileId=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSqueakProfilePrivateKeyReply.prototype.toObject=function(e){return proto.squeaknode.GetSqueakProfilePrivateKeyReply.toObject(e,this)},proto.squeaknode.GetSqueakProfilePrivateKeyReply.toObject=function(e,t){var r={privateKey:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetSqueakProfilePrivateKeyReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSqueakProfilePrivateKeyReply;return proto.squeaknode.GetSqueakProfilePrivateKeyReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSqueakProfilePrivateKeyReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setPrivateKey(r)}else t.skipField()}return e},proto.squeaknode.GetSqueakProfilePrivateKeyReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSqueakProfilePrivateKeyReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSqueakProfilePrivateKeyReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getPrivateKey()).length>0&&t.writeString(1,r)},proto.squeaknode.GetSqueakProfilePrivateKeyReply.prototype.getPrivateKey=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.GetSqueakProfilePrivateKeyReply.prototype.setPrivateKey=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DeleteSqueakProfileRequest.prototype.toObject=function(e){return proto.squeaknode.DeleteSqueakProfileRequest.toObject(e,this)},proto.squeaknode.DeleteSqueakProfileRequest.toObject=function(e,t){var r={profileId:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.DeleteSqueakProfileRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DeleteSqueakProfileRequest;return proto.squeaknode.DeleteSqueakProfileRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.DeleteSqueakProfileRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readInt32();e.setProfileId(r)}else t.skipField()}return e},proto.squeaknode.DeleteSqueakProfileRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DeleteSqueakProfileRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DeleteSqueakProfileRequest.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getProfileId())&&t.writeInt32(1,r)},proto.squeaknode.DeleteSqueakProfileRequest.prototype.getProfileId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.DeleteSqueakProfileRequest.prototype.setProfileId=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DeleteSqueakProfileReply.prototype.toObject=function(e){return proto.squeaknode.DeleteSqueakProfileReply.toObject(e,this)},proto.squeaknode.DeleteSqueakProfileReply.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.DeleteSqueakProfileReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DeleteSqueakProfileReply;return proto.squeaknode.DeleteSqueakProfileReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.DeleteSqueakProfileReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.DeleteSqueakProfileReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DeleteSqueakProfileReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DeleteSqueakProfileReply.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SetSqueakProfileImageRequest.prototype.toObject=function(e){return proto.squeaknode.SetSqueakProfileImageRequest.toObject(e,this)},proto.squeaknode.SetSqueakProfileImageRequest.toObject=function(e,t){var r={profileId:n.Message.getFieldWithDefault(t,1,0),profileImage:n.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.SetSqueakProfileImageRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SetSqueakProfileImageRequest;return proto.squeaknode.SetSqueakProfileImageRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.SetSqueakProfileImageRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setProfileId(r);break;case 2:r=t.readString();e.setProfileImage(r);break;default:t.skipField()}}return e},proto.squeaknode.SetSqueakProfileImageRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SetSqueakProfileImageRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SetSqueakProfileImageRequest.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getProfileId())&&t.writeInt32(1,r),(r=e.getProfileImage()).length>0&&t.writeString(2,r)},proto.squeaknode.SetSqueakProfileImageRequest.prototype.getProfileId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.SetSqueakProfileImageRequest.prototype.setProfileId=function(e){return n.Message.setProto3IntField(this,1,e)},proto.squeaknode.SetSqueakProfileImageRequest.prototype.getProfileImage=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.squeaknode.SetSqueakProfileImageRequest.prototype.setProfileImage=function(e){return n.Message.setProto3StringField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SetSqueakProfileImageReply.prototype.toObject=function(e){return proto.squeaknode.SetSqueakProfileImageReply.toObject(e,this)},proto.squeaknode.SetSqueakProfileImageReply.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.SetSqueakProfileImageReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SetSqueakProfileImageReply;return proto.squeaknode.SetSqueakProfileImageReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.SetSqueakProfileImageReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.SetSqueakProfileImageReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SetSqueakProfileImageReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SetSqueakProfileImageReply.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.ClearSqueakProfileImageRequest.prototype.toObject=function(e){return proto.squeaknode.ClearSqueakProfileImageRequest.toObject(e,this)},proto.squeaknode.ClearSqueakProfileImageRequest.toObject=function(e,t){var r={profileId:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.ClearSqueakProfileImageRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.ClearSqueakProfileImageRequest;return proto.squeaknode.ClearSqueakProfileImageRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.ClearSqueakProfileImageRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readInt32();e.setProfileId(r)}else t.skipField()}return e},proto.squeaknode.ClearSqueakProfileImageRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.ClearSqueakProfileImageRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.ClearSqueakProfileImageRequest.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getProfileId())&&t.writeInt32(1,r)},proto.squeaknode.ClearSqueakProfileImageRequest.prototype.getProfileId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.ClearSqueakProfileImageRequest.prototype.setProfileId=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.ClearSqueakProfileImageReply.prototype.toObject=function(e){return proto.squeaknode.ClearSqueakProfileImageReply.toObject(e,this)},proto.squeaknode.ClearSqueakProfileImageReply.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.ClearSqueakProfileImageReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.ClearSqueakProfileImageReply;return proto.squeaknode.ClearSqueakProfileImageReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.ClearSqueakProfileImageReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.ClearSqueakProfileImageReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.ClearSqueakProfileImageReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.ClearSqueakProfileImageReply.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SqueakProfile.prototype.toObject=function(e){return proto.squeaknode.SqueakProfile.toObject(e,this)},proto.squeaknode.SqueakProfile.toObject=function(e,t){var r={profileId:n.Message.getFieldWithDefault(t,1,0),profileName:n.Message.getFieldWithDefault(t,2,""),hasPrivateKey:n.Message.getBooleanFieldWithDefault(t,3,!1),pubkey:n.Message.getFieldWithDefault(t,4,""),following:n.Message.getBooleanFieldWithDefault(t,5,!1),profileImage:n.Message.getFieldWithDefault(t,6,""),hasCustomProfileImage:n.Message.getBooleanFieldWithDefault(t,7,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.SqueakProfile.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SqueakProfile;return proto.squeaknode.SqueakProfile.deserializeBinaryFromReader(r,t)},proto.squeaknode.SqueakProfile.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setProfileId(r);break;case 2:r=t.readString();e.setProfileName(r);break;case 3:r=t.readBool();e.setHasPrivateKey(r);break;case 4:r=t.readString();e.setPubkey(r);break;case 5:r=t.readBool();e.setFollowing(r);break;case 6:r=t.readString();e.setProfileImage(r);break;case 7:r=t.readBool();e.setHasCustomProfileImage(r);break;default:t.skipField()}}return e},proto.squeaknode.SqueakProfile.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SqueakProfile.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SqueakProfile.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getProfileId())&&t.writeInt32(1,r),(r=e.getProfileName()).length>0&&t.writeString(2,r),(r=e.getHasPrivateKey())&&t.writeBool(3,r),(r=e.getPubkey()).length>0&&t.writeString(4,r),(r=e.getFollowing())&&t.writeBool(5,r),(r=e.getProfileImage()).length>0&&t.writeString(6,r),(r=e.getHasCustomProfileImage())&&t.writeBool(7,r)},proto.squeaknode.SqueakProfile.prototype.getProfileId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.SqueakProfile.prototype.setProfileId=function(e){return n.Message.setProto3IntField(this,1,e)},proto.squeaknode.SqueakProfile.prototype.getProfileName=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.squeaknode.SqueakProfile.prototype.setProfileName=function(e){return n.Message.setProto3StringField(this,2,e)},proto.squeaknode.SqueakProfile.prototype.getHasPrivateKey=function(){return n.Message.getBooleanFieldWithDefault(this,3,!1)},proto.squeaknode.SqueakProfile.prototype.setHasPrivateKey=function(e){return n.Message.setProto3BooleanField(this,3,e)},proto.squeaknode.SqueakProfile.prototype.getPubkey=function(){return n.Message.getFieldWithDefault(this,4,"")},proto.squeaknode.SqueakProfile.prototype.setPubkey=function(e){return n.Message.setProto3StringField(this,4,e)},proto.squeaknode.SqueakProfile.prototype.getFollowing=function(){return n.Message.getBooleanFieldWithDefault(this,5,!1)},proto.squeaknode.SqueakProfile.prototype.setFollowing=function(e){return n.Message.setProto3BooleanField(this,5,e)},proto.squeaknode.SqueakProfile.prototype.getProfileImage=function(){return n.Message.getFieldWithDefault(this,6,"")},proto.squeaknode.SqueakProfile.prototype.setProfileImage=function(e){return n.Message.setProto3StringField(this,6,e)},proto.squeaknode.SqueakProfile.prototype.getHasCustomProfileImage=function(){return n.Message.getBooleanFieldWithDefault(this,7,!1)},proto.squeaknode.SqueakProfile.prototype.setHasCustomProfileImage=function(e){return n.Message.setProto3BooleanField(this,7,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.MakeSqueakRequest.prototype.toObject=function(e){return proto.squeaknode.MakeSqueakRequest.toObject(e,this)},proto.squeaknode.MakeSqueakRequest.toObject=function(e,t){var r={profileId:n.Message.getFieldWithDefault(t,1,0),content:n.Message.getFieldWithDefault(t,2,""),replyto:n.Message.getFieldWithDefault(t,3,""),hasRecipient:n.Message.getBooleanFieldWithDefault(t,4,!1),recipientProfileId:n.Message.getFieldWithDefault(t,5,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.MakeSqueakRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.MakeSqueakRequest;return proto.squeaknode.MakeSqueakRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.MakeSqueakRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setProfileId(r);break;case 2:r=t.readString();e.setContent(r);break;case 3:r=t.readString();e.setReplyto(r);break;case 4:r=t.readBool();e.setHasRecipient(r);break;case 5:r=t.readInt32();e.setRecipientProfileId(r);break;default:t.skipField()}}return e},proto.squeaknode.MakeSqueakRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.MakeSqueakRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.MakeSqueakRequest.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getProfileId())&&t.writeInt32(1,r),(r=e.getContent()).length>0&&t.writeString(2,r),(r=e.getReplyto()).length>0&&t.writeString(3,r),(r=e.getHasRecipient())&&t.writeBool(4,r),0!==(r=e.getRecipientProfileId())&&t.writeInt32(5,r)},proto.squeaknode.MakeSqueakRequest.prototype.getProfileId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.MakeSqueakRequest.prototype.setProfileId=function(e){return n.Message.setProto3IntField(this,1,e)},proto.squeaknode.MakeSqueakRequest.prototype.getContent=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.squeaknode.MakeSqueakRequest.prototype.setContent=function(e){return n.Message.setProto3StringField(this,2,e)},proto.squeaknode.MakeSqueakRequest.prototype.getReplyto=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.squeaknode.MakeSqueakRequest.prototype.setReplyto=function(e){return n.Message.setProto3StringField(this,3,e)},proto.squeaknode.MakeSqueakRequest.prototype.getHasRecipient=function(){return n.Message.getBooleanFieldWithDefault(this,4,!1)},proto.squeaknode.MakeSqueakRequest.prototype.setHasRecipient=function(e){return n.Message.setProto3BooleanField(this,4,e)},proto.squeaknode.MakeSqueakRequest.prototype.getRecipientProfileId=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.squeaknode.MakeSqueakRequest.prototype.setRecipientProfileId=function(e){return n.Message.setProto3IntField(this,5,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.MakeSqueakReply.prototype.toObject=function(e){return proto.squeaknode.MakeSqueakReply.toObject(e,this)},proto.squeaknode.MakeSqueakReply.toObject=function(e,t){var r={squeakHash:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.MakeSqueakReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.MakeSqueakReply;return proto.squeaknode.MakeSqueakReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.MakeSqueakReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setSqueakHash(r)}else t.skipField()}return e},proto.squeaknode.MakeSqueakReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.MakeSqueakReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.MakeSqueakReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakHash()).length>0&&t.writeString(1,r)},proto.squeaknode.MakeSqueakReply.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.MakeSqueakReply.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.MakeResqueakRequest.prototype.toObject=function(e){return proto.squeaknode.MakeResqueakRequest.toObject(e,this)},proto.squeaknode.MakeResqueakRequest.toObject=function(e,t){var r={profileId:n.Message.getFieldWithDefault(t,1,0),resqueakedHash:n.Message.getFieldWithDefault(t,2,""),replyto:n.Message.getFieldWithDefault(t,3,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.MakeResqueakRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.MakeResqueakRequest;return proto.squeaknode.MakeResqueakRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.MakeResqueakRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setProfileId(r);break;case 2:r=t.readString();e.setResqueakedHash(r);break;case 3:r=t.readString();e.setReplyto(r);break;default:t.skipField()}}return e},proto.squeaknode.MakeResqueakRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.MakeResqueakRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.MakeResqueakRequest.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getProfileId())&&t.writeInt32(1,r),(r=e.getResqueakedHash()).length>0&&t.writeString(2,r),(r=e.getReplyto()).length>0&&t.writeString(3,r)},proto.squeaknode.MakeResqueakRequest.prototype.getProfileId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.MakeResqueakRequest.prototype.setProfileId=function(e){return n.Message.setProto3IntField(this,1,e)},proto.squeaknode.MakeResqueakRequest.prototype.getResqueakedHash=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.squeaknode.MakeResqueakRequest.prototype.setResqueakedHash=function(e){return n.Message.setProto3StringField(this,2,e)},proto.squeaknode.MakeResqueakRequest.prototype.getReplyto=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.squeaknode.MakeResqueakRequest.prototype.setReplyto=function(e){return n.Message.setProto3StringField(this,3,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.MakeResqueakReply.prototype.toObject=function(e){return proto.squeaknode.MakeResqueakReply.toObject(e,this)},proto.squeaknode.MakeResqueakReply.toObject=function(e,t){var r={squeakHash:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.MakeResqueakReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.MakeResqueakReply;return proto.squeaknode.MakeResqueakReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.MakeResqueakReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setSqueakHash(r)}else t.skipField()}return e},proto.squeaknode.MakeResqueakReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.MakeResqueakReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.MakeResqueakReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakHash()).length>0&&t.writeString(1,r)},proto.squeaknode.MakeResqueakReply.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.MakeResqueakReply.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSqueakDisplayRequest.prototype.toObject=function(e){return proto.squeaknode.GetSqueakDisplayRequest.toObject(e,this)},proto.squeaknode.GetSqueakDisplayRequest.toObject=function(e,t){var r={squeakHash:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetSqueakDisplayRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSqueakDisplayRequest;return proto.squeaknode.GetSqueakDisplayRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSqueakDisplayRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setSqueakHash(r)}else t.skipField()}return e},proto.squeaknode.GetSqueakDisplayRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSqueakDisplayRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSqueakDisplayRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakHash()).length>0&&t.writeString(1,r)},proto.squeaknode.GetSqueakDisplayRequest.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.GetSqueakDisplayRequest.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSqueakDisplayReply.prototype.toObject=function(e){return proto.squeaknode.GetSqueakDisplayReply.toObject(e,this)},proto.squeaknode.GetSqueakDisplayReply.toObject=function(e,t){var r,n={squeakDisplayEntry:(r=t.getSqueakDisplayEntry())&&proto.squeaknode.SqueakDisplayEntry.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.GetSqueakDisplayReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSqueakDisplayReply;return proto.squeaknode.GetSqueakDisplayReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSqueakDisplayReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.SqueakDisplayEntry;t.readMessage(r,proto.squeaknode.SqueakDisplayEntry.deserializeBinaryFromReader),e.setSqueakDisplayEntry(r)}else t.skipField()}return e},proto.squeaknode.GetSqueakDisplayReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSqueakDisplayReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSqueakDisplayReply.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getSqueakDisplayEntry())&&t.writeMessage(1,r,proto.squeaknode.SqueakDisplayEntry.serializeBinaryToWriter)},proto.squeaknode.GetSqueakDisplayReply.prototype.getSqueakDisplayEntry=function(){return n.Message.getWrapperField(this,proto.squeaknode.SqueakDisplayEntry,1)},proto.squeaknode.GetSqueakDisplayReply.prototype.setSqueakDisplayEntry=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.GetSqueakDisplayReply.prototype.clearSqueakDisplayEntry=function(){return this.setSqueakDisplayEntry(void 0)},proto.squeaknode.GetSqueakDisplayReply.prototype.hasSqueakDisplayEntry=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SqueakDisplayEntry.prototype.toObject=function(e){return proto.squeaknode.SqueakDisplayEntry.toObject(e,this)},proto.squeaknode.SqueakDisplayEntry.toObject=function(e,t){var r,o={squeakHash:n.Message.getFieldWithDefault(t,1,""),isUnlocked:n.Message.getBooleanFieldWithDefault(t,2,!1),contentStr:n.Message.getFieldWithDefault(t,3,""),isReply:n.Message.getBooleanFieldWithDefault(t,4,!1),replyTo:n.Message.getFieldWithDefault(t,5,""),blockHeight:n.Message.getFieldWithDefault(t,6,0),blockHash:n.Message.getFieldWithDefault(t,7,""),blockTime:n.Message.getFieldWithDefault(t,8,0),squeakTime:n.Message.getFieldWithDefault(t,9,0),authorPubkey:n.Message.getFieldWithDefault(t,10,""),isAuthorKnown:n.Message.getBooleanFieldWithDefault(t,11,!1),author:(r=t.getAuthor())&&proto.squeaknode.SqueakProfile.toObject(e,r),likedTimeMs:n.Message.getFieldWithDefault(t,13,0),serializedSqueakHex:n.Message.getFieldWithDefault(t,14,""),secretKeyHex:n.Message.getFieldWithDefault(t,15,""),isPrivate:n.Message.getBooleanFieldWithDefault(t,16,!1),recipientPubkey:n.Message.getFieldWithDefault(t,17,""),isRecipientKnown:n.Message.getBooleanFieldWithDefault(t,18,!1),recipient:(r=t.getRecipient())&&proto.squeaknode.SqueakProfile.toObject(e,r),numReplies:n.Message.getFieldWithDefault(t,20,0),isResqueak:n.Message.getBooleanFieldWithDefault(t,21,!1),resqueakedHash:n.Message.getFieldWithDefault(t,22,""),resqueakedSqueak:(r=t.getResqueakedSqueak())&&proto.squeaknode.SqueakDisplayEntry.toObject(e,r),numResqueaks:n.Message.getFieldWithDefault(t,24,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.squeaknode.SqueakDisplayEntry.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SqueakDisplayEntry;return proto.squeaknode.SqueakDisplayEntry.deserializeBinaryFromReader(r,t)},proto.squeaknode.SqueakDisplayEntry.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setSqueakHash(r);break;case 2:r=t.readBool();e.setIsUnlocked(r);break;case 3:r=t.readString();e.setContentStr(r);break;case 4:r=t.readBool();e.setIsReply(r);break;case 5:r=t.readString();e.setReplyTo(r);break;case 6:r=t.readInt32();e.setBlockHeight(r);break;case 7:r=t.readString();e.setBlockHash(r);break;case 8:r=t.readInt64();e.setBlockTime(r);break;case 9:r=t.readInt64();e.setSqueakTime(r);break;case 10:r=t.readString();e.setAuthorPubkey(r);break;case 11:r=t.readBool();e.setIsAuthorKnown(r);break;case 12:r=new proto.squeaknode.SqueakProfile;t.readMessage(r,proto.squeaknode.SqueakProfile.deserializeBinaryFromReader),e.setAuthor(r);break;case 13:r=t.readInt64();e.setLikedTimeMs(r);break;case 14:r=t.readString();e.setSerializedSqueakHex(r);break;case 15:r=t.readString();e.setSecretKeyHex(r);break;case 16:r=t.readBool();e.setIsPrivate(r);break;case 17:r=t.readString();e.setRecipientPubkey(r);break;case 18:r=t.readBool();e.setIsRecipientKnown(r);break;case 19:r=new proto.squeaknode.SqueakProfile;t.readMessage(r,proto.squeaknode.SqueakProfile.deserializeBinaryFromReader),e.setRecipient(r);break;case 20:r=t.readInt32();e.setNumReplies(r);break;case 21:r=t.readBool();e.setIsResqueak(r);break;case 22:r=t.readString();e.setResqueakedHash(r);break;case 23:r=new proto.squeaknode.SqueakDisplayEntry;t.readMessage(r,proto.squeaknode.SqueakDisplayEntry.deserializeBinaryFromReader),e.setResqueakedSqueak(r);break;case 24:r=t.readInt32();e.setNumResqueaks(r);break;default:t.skipField()}}return e},proto.squeaknode.SqueakDisplayEntry.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SqueakDisplayEntry.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SqueakDisplayEntry.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSqueakHash()).length>0&&t.writeString(1,r),(r=e.getIsUnlocked())&&t.writeBool(2,r),(r=e.getContentStr()).length>0&&t.writeString(3,r),(r=e.getIsReply())&&t.writeBool(4,r),(r=e.getReplyTo()).length>0&&t.writeString(5,r),0!==(r=e.getBlockHeight())&&t.writeInt32(6,r),(r=e.getBlockHash()).length>0&&t.writeString(7,r),0!==(r=e.getBlockTime())&&t.writeInt64(8,r),0!==(r=e.getSqueakTime())&&t.writeInt64(9,r),(r=e.getAuthorPubkey()).length>0&&t.writeString(10,r),(r=e.getIsAuthorKnown())&&t.writeBool(11,r),null!=(r=e.getAuthor())&&t.writeMessage(12,r,proto.squeaknode.SqueakProfile.serializeBinaryToWriter),0!==(r=e.getLikedTimeMs())&&t.writeInt64(13,r),(r=e.getSerializedSqueakHex()).length>0&&t.writeString(14,r),(r=e.getSecretKeyHex()).length>0&&t.writeString(15,r),(r=e.getIsPrivate())&&t.writeBool(16,r),(r=e.getRecipientPubkey()).length>0&&t.writeString(17,r),(r=e.getIsRecipientKnown())&&t.writeBool(18,r),null!=(r=e.getRecipient())&&t.writeMessage(19,r,proto.squeaknode.SqueakProfile.serializeBinaryToWriter),0!==(r=e.getNumReplies())&&t.writeInt32(20,r),(r=e.getIsResqueak())&&t.writeBool(21,r),(r=e.getResqueakedHash()).length>0&&t.writeString(22,r),null!=(r=e.getResqueakedSqueak())&&t.writeMessage(23,r,proto.squeaknode.SqueakDisplayEntry.serializeBinaryToWriter),0!==(r=e.getNumResqueaks())&&t.writeInt32(24,r)},proto.squeaknode.SqueakDisplayEntry.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.SqueakDisplayEntry.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,1,e)},proto.squeaknode.SqueakDisplayEntry.prototype.getIsUnlocked=function(){return n.Message.getBooleanFieldWithDefault(this,2,!1)},proto.squeaknode.SqueakDisplayEntry.prototype.setIsUnlocked=function(e){return n.Message.setProto3BooleanField(this,2,e)},proto.squeaknode.SqueakDisplayEntry.prototype.getContentStr=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.squeaknode.SqueakDisplayEntry.prototype.setContentStr=function(e){return n.Message.setProto3StringField(this,3,e)},proto.squeaknode.SqueakDisplayEntry.prototype.getIsReply=function(){return n.Message.getBooleanFieldWithDefault(this,4,!1)},proto.squeaknode.SqueakDisplayEntry.prototype.setIsReply=function(e){return n.Message.setProto3BooleanField(this,4,e)},proto.squeaknode.SqueakDisplayEntry.prototype.getReplyTo=function(){return n.Message.getFieldWithDefault(this,5,"")},proto.squeaknode.SqueakDisplayEntry.prototype.setReplyTo=function(e){return n.Message.setProto3StringField(this,5,e)},proto.squeaknode.SqueakDisplayEntry.prototype.getBlockHeight=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.squeaknode.SqueakDisplayEntry.prototype.setBlockHeight=function(e){return n.Message.setProto3IntField(this,6,e)},proto.squeaknode.SqueakDisplayEntry.prototype.getBlockHash=function(){return n.Message.getFieldWithDefault(this,7,"")},proto.squeaknode.SqueakDisplayEntry.prototype.setBlockHash=function(e){return n.Message.setProto3StringField(this,7,e)},proto.squeaknode.SqueakDisplayEntry.prototype.getBlockTime=function(){return n.Message.getFieldWithDefault(this,8,0)},proto.squeaknode.SqueakDisplayEntry.prototype.setBlockTime=function(e){return n.Message.setProto3IntField(this,8,e)},proto.squeaknode.SqueakDisplayEntry.prototype.getSqueakTime=function(){return n.Message.getFieldWithDefault(this,9,0)},proto.squeaknode.SqueakDisplayEntry.prototype.setSqueakTime=function(e){return n.Message.setProto3IntField(this,9,e)},proto.squeaknode.SqueakDisplayEntry.prototype.getAuthorPubkey=function(){return n.Message.getFieldWithDefault(this,10,"")},proto.squeaknode.SqueakDisplayEntry.prototype.setAuthorPubkey=function(e){return n.Message.setProto3StringField(this,10,e)},proto.squeaknode.SqueakDisplayEntry.prototype.getIsAuthorKnown=function(){return n.Message.getBooleanFieldWithDefault(this,11,!1)},proto.squeaknode.SqueakDisplayEntry.prototype.setIsAuthorKnown=function(e){return n.Message.setProto3BooleanField(this,11,e)},proto.squeaknode.SqueakDisplayEntry.prototype.getAuthor=function(){return n.Message.getWrapperField(this,proto.squeaknode.SqueakProfile,12)},proto.squeaknode.SqueakDisplayEntry.prototype.setAuthor=function(e){return n.Message.setWrapperField(this,12,e)},proto.squeaknode.SqueakDisplayEntry.prototype.clearAuthor=function(){return this.setAuthor(void 0)},proto.squeaknode.SqueakDisplayEntry.prototype.hasAuthor=function(){return null!=n.Message.getField(this,12)},proto.squeaknode.SqueakDisplayEntry.prototype.getLikedTimeMs=function(){return n.Message.getFieldWithDefault(this,13,0)},proto.squeaknode.SqueakDisplayEntry.prototype.setLikedTimeMs=function(e){return n.Message.setProto3IntField(this,13,e)},proto.squeaknode.SqueakDisplayEntry.prototype.getSerializedSqueakHex=function(){return n.Message.getFieldWithDefault(this,14,"")},proto.squeaknode.SqueakDisplayEntry.prototype.setSerializedSqueakHex=function(e){return n.Message.setProto3StringField(this,14,e)},proto.squeaknode.SqueakDisplayEntry.prototype.getSecretKeyHex=function(){return n.Message.getFieldWithDefault(this,15,"")},proto.squeaknode.SqueakDisplayEntry.prototype.setSecretKeyHex=function(e){return n.Message.setProto3StringField(this,15,e)},proto.squeaknode.SqueakDisplayEntry.prototype.getIsPrivate=function(){return n.Message.getBooleanFieldWithDefault(this,16,!1)},proto.squeaknode.SqueakDisplayEntry.prototype.setIsPrivate=function(e){return n.Message.setProto3BooleanField(this,16,e)},proto.squeaknode.SqueakDisplayEntry.prototype.getRecipientPubkey=function(){return n.Message.getFieldWithDefault(this,17,"")},proto.squeaknode.SqueakDisplayEntry.prototype.setRecipientPubkey=function(e){return n.Message.setProto3StringField(this,17,e)},proto.squeaknode.SqueakDisplayEntry.prototype.getIsRecipientKnown=function(){return n.Message.getBooleanFieldWithDefault(this,18,!1)},proto.squeaknode.SqueakDisplayEntry.prototype.setIsRecipientKnown=function(e){return n.Message.setProto3BooleanField(this,18,e)},proto.squeaknode.SqueakDisplayEntry.prototype.getRecipient=function(){return n.Message.getWrapperField(this,proto.squeaknode.SqueakProfile,19)},proto.squeaknode.SqueakDisplayEntry.prototype.setRecipient=function(e){return n.Message.setWrapperField(this,19,e)},proto.squeaknode.SqueakDisplayEntry.prototype.clearRecipient=function(){return this.setRecipient(void 0)},proto.squeaknode.SqueakDisplayEntry.prototype.hasRecipient=function(){return null!=n.Message.getField(this,19)},proto.squeaknode.SqueakDisplayEntry.prototype.getNumReplies=function(){return n.Message.getFieldWithDefault(this,20,0)},proto.squeaknode.SqueakDisplayEntry.prototype.setNumReplies=function(e){return n.Message.setProto3IntField(this,20,e)},proto.squeaknode.SqueakDisplayEntry.prototype.getIsResqueak=function(){return n.Message.getBooleanFieldWithDefault(this,21,!1)},proto.squeaknode.SqueakDisplayEntry.prototype.setIsResqueak=function(e){return n.Message.setProto3BooleanField(this,21,e)},proto.squeaknode.SqueakDisplayEntry.prototype.getResqueakedHash=function(){return n.Message.getFieldWithDefault(this,22,"")},proto.squeaknode.SqueakDisplayEntry.prototype.setResqueakedHash=function(e){return n.Message.setProto3StringField(this,22,e)},proto.squeaknode.SqueakDisplayEntry.prototype.getResqueakedSqueak=function(){return n.Message.getWrapperField(this,proto.squeaknode.SqueakDisplayEntry,23)},proto.squeaknode.SqueakDisplayEntry.prototype.setResqueakedSqueak=function(e){return n.Message.setWrapperField(this,23,e)},proto.squeaknode.SqueakDisplayEntry.prototype.clearResqueakedSqueak=function(){return this.setResqueakedSqueak(void 0)},proto.squeaknode.SqueakDisplayEntry.prototype.hasResqueakedSqueak=function(){return null!=n.Message.getField(this,23)},proto.squeaknode.SqueakDisplayEntry.prototype.getNumResqueaks=function(){return n.Message.getFieldWithDefault(this,24,0)},proto.squeaknode.SqueakDisplayEntry.prototype.setNumResqueaks=function(e){return n.Message.setProto3IntField(this,24,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetTimelineSqueakDisplaysRequest.prototype.toObject=function(e){return proto.squeaknode.GetTimelineSqueakDisplaysRequest.toObject(e,this)},proto.squeaknode.GetTimelineSqueakDisplaysRequest.toObject=function(e,t){var r,o={limit:n.Message.getFieldWithDefault(t,1,0),lastEntry:(r=t.getLastEntry())&&proto.squeaknode.SqueakDisplayEntry.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.squeaknode.GetTimelineSqueakDisplaysRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetTimelineSqueakDisplaysRequest;return proto.squeaknode.GetTimelineSqueakDisplaysRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetTimelineSqueakDisplaysRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setLimit(r);break;case 2:r=new proto.squeaknode.SqueakDisplayEntry;t.readMessage(r,proto.squeaknode.SqueakDisplayEntry.deserializeBinaryFromReader),e.setLastEntry(r);break;default:t.skipField()}}return e},proto.squeaknode.GetTimelineSqueakDisplaysRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetTimelineSqueakDisplaysRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetTimelineSqueakDisplaysRequest.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getLimit())&&t.writeInt32(1,r),null!=(r=e.getLastEntry())&&t.writeMessage(2,r,proto.squeaknode.SqueakDisplayEntry.serializeBinaryToWriter)},proto.squeaknode.GetTimelineSqueakDisplaysRequest.prototype.getLimit=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.GetTimelineSqueakDisplaysRequest.prototype.setLimit=function(e){return n.Message.setProto3IntField(this,1,e)},proto.squeaknode.GetTimelineSqueakDisplaysRequest.prototype.getLastEntry=function(){return n.Message.getWrapperField(this,proto.squeaknode.SqueakDisplayEntry,2)},proto.squeaknode.GetTimelineSqueakDisplaysRequest.prototype.setLastEntry=function(e){return n.Message.setWrapperField(this,2,e)},proto.squeaknode.GetTimelineSqueakDisplaysRequest.prototype.clearLastEntry=function(){return this.setLastEntry(void 0)},proto.squeaknode.GetTimelineSqueakDisplaysRequest.prototype.hasLastEntry=function(){return null!=n.Message.getField(this,2)},proto.squeaknode.GetTimelineSqueakDisplaysReply.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetTimelineSqueakDisplaysReply.prototype.toObject=function(e){return proto.squeaknode.GetTimelineSqueakDisplaysReply.toObject(e,this)},proto.squeaknode.GetTimelineSqueakDisplaysReply.toObject=function(e,t){var r={squeakDisplayEntriesList:n.Message.toObjectList(t.getSqueakDisplayEntriesList(),proto.squeaknode.SqueakDisplayEntry.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetTimelineSqueakDisplaysReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetTimelineSqueakDisplaysReply;return proto.squeaknode.GetTimelineSqueakDisplaysReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetTimelineSqueakDisplaysReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.SqueakDisplayEntry;t.readMessage(r,proto.squeaknode.SqueakDisplayEntry.deserializeBinaryFromReader),e.addSqueakDisplayEntries(r)}else t.skipField()}return e},proto.squeaknode.GetTimelineSqueakDisplaysReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetTimelineSqueakDisplaysReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetTimelineSqueakDisplaysReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakDisplayEntriesList()).length>0&&t.writeRepeatedMessage(1,r,proto.squeaknode.SqueakDisplayEntry.serializeBinaryToWriter)},proto.squeaknode.GetTimelineSqueakDisplaysReply.prototype.getSqueakDisplayEntriesList=function(){return n.Message.getRepeatedWrapperField(this,proto.squeaknode.SqueakDisplayEntry,1)},proto.squeaknode.GetTimelineSqueakDisplaysReply.prototype.setSqueakDisplayEntriesList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.squeaknode.GetTimelineSqueakDisplaysReply.prototype.addSqueakDisplayEntries=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.squeaknode.SqueakDisplayEntry,t)},proto.squeaknode.GetTimelineSqueakDisplaysReply.prototype.clearSqueakDisplayEntriesList=function(){return this.setSqueakDisplayEntriesList([])},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetPubKeySqueakDisplaysRequest.prototype.toObject=function(e){return proto.squeaknode.GetPubKeySqueakDisplaysRequest.toObject(e,this)},proto.squeaknode.GetPubKeySqueakDisplaysRequest.toObject=function(e,t){var r,o={pubkey:n.Message.getFieldWithDefault(t,1,""),limit:n.Message.getFieldWithDefault(t,2,0),lastEntry:(r=t.getLastEntry())&&proto.squeaknode.SqueakDisplayEntry.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.squeaknode.GetPubKeySqueakDisplaysRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetPubKeySqueakDisplaysRequest;return proto.squeaknode.GetPubKeySqueakDisplaysRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetPubKeySqueakDisplaysRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setPubkey(r);break;case 2:r=t.readInt32();e.setLimit(r);break;case 3:r=new proto.squeaknode.SqueakDisplayEntry;t.readMessage(r,proto.squeaknode.SqueakDisplayEntry.deserializeBinaryFromReader),e.setLastEntry(r);break;default:t.skipField()}}return e},proto.squeaknode.GetPubKeySqueakDisplaysRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetPubKeySqueakDisplaysRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetPubKeySqueakDisplaysRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPubkey()).length>0&&t.writeString(1,r),0!==(r=e.getLimit())&&t.writeInt32(2,r),null!=(r=e.getLastEntry())&&t.writeMessage(3,r,proto.squeaknode.SqueakDisplayEntry.serializeBinaryToWriter)},proto.squeaknode.GetPubKeySqueakDisplaysRequest.prototype.getPubkey=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.GetPubKeySqueakDisplaysRequest.prototype.setPubkey=function(e){return n.Message.setProto3StringField(this,1,e)},proto.squeaknode.GetPubKeySqueakDisplaysRequest.prototype.getLimit=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.squeaknode.GetPubKeySqueakDisplaysRequest.prototype.setLimit=function(e){return n.Message.setProto3IntField(this,2,e)},proto.squeaknode.GetPubKeySqueakDisplaysRequest.prototype.getLastEntry=function(){return n.Message.getWrapperField(this,proto.squeaknode.SqueakDisplayEntry,3)},proto.squeaknode.GetPubKeySqueakDisplaysRequest.prototype.setLastEntry=function(e){return n.Message.setWrapperField(this,3,e)},proto.squeaknode.GetPubKeySqueakDisplaysRequest.prototype.clearLastEntry=function(){return this.setLastEntry(void 0)},proto.squeaknode.GetPubKeySqueakDisplaysRequest.prototype.hasLastEntry=function(){return null!=n.Message.getField(this,3)},proto.squeaknode.GetPubKeySqueakDisplaysReply.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetPubKeySqueakDisplaysReply.prototype.toObject=function(e){return proto.squeaknode.GetPubKeySqueakDisplaysReply.toObject(e,this)},proto.squeaknode.GetPubKeySqueakDisplaysReply.toObject=function(e,t){var r={squeakDisplayEntriesList:n.Message.toObjectList(t.getSqueakDisplayEntriesList(),proto.squeaknode.SqueakDisplayEntry.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetPubKeySqueakDisplaysReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetPubKeySqueakDisplaysReply;return proto.squeaknode.GetPubKeySqueakDisplaysReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetPubKeySqueakDisplaysReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.SqueakDisplayEntry;t.readMessage(r,proto.squeaknode.SqueakDisplayEntry.deserializeBinaryFromReader),e.addSqueakDisplayEntries(r)}else t.skipField()}return e},proto.squeaknode.GetPubKeySqueakDisplaysReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetPubKeySqueakDisplaysReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetPubKeySqueakDisplaysReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakDisplayEntriesList()).length>0&&t.writeRepeatedMessage(1,r,proto.squeaknode.SqueakDisplayEntry.serializeBinaryToWriter)},proto.squeaknode.GetPubKeySqueakDisplaysReply.prototype.getSqueakDisplayEntriesList=function(){return n.Message.getRepeatedWrapperField(this,proto.squeaknode.SqueakDisplayEntry,1)},proto.squeaknode.GetPubKeySqueakDisplaysReply.prototype.setSqueakDisplayEntriesList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.squeaknode.GetPubKeySqueakDisplaysReply.prototype.addSqueakDisplayEntries=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.squeaknode.SqueakDisplayEntry,t)},proto.squeaknode.GetPubKeySqueakDisplaysReply.prototype.clearSqueakDisplayEntriesList=function(){return this.setSqueakDisplayEntriesList([])},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSearchSqueakDisplaysRequest.prototype.toObject=function(e){return proto.squeaknode.GetSearchSqueakDisplaysRequest.toObject(e,this)},proto.squeaknode.GetSearchSqueakDisplaysRequest.toObject=function(e,t){var r,o={searchText:n.Message.getFieldWithDefault(t,1,""),limit:n.Message.getFieldWithDefault(t,2,0),lastEntry:(r=t.getLastEntry())&&proto.squeaknode.SqueakDisplayEntry.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.squeaknode.GetSearchSqueakDisplaysRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSearchSqueakDisplaysRequest;return proto.squeaknode.GetSearchSqueakDisplaysRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSearchSqueakDisplaysRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setSearchText(r);break;case 2:r=t.readInt32();e.setLimit(r);break;case 3:r=new proto.squeaknode.SqueakDisplayEntry;t.readMessage(r,proto.squeaknode.SqueakDisplayEntry.deserializeBinaryFromReader),e.setLastEntry(r);break;default:t.skipField()}}return e},proto.squeaknode.GetSearchSqueakDisplaysRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSearchSqueakDisplaysRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSearchSqueakDisplaysRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSearchText()).length>0&&t.writeString(1,r),0!==(r=e.getLimit())&&t.writeInt32(2,r),null!=(r=e.getLastEntry())&&t.writeMessage(3,r,proto.squeaknode.SqueakDisplayEntry.serializeBinaryToWriter)},proto.squeaknode.GetSearchSqueakDisplaysRequest.prototype.getSearchText=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.GetSearchSqueakDisplaysRequest.prototype.setSearchText=function(e){return n.Message.setProto3StringField(this,1,e)},proto.squeaknode.GetSearchSqueakDisplaysRequest.prototype.getLimit=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.squeaknode.GetSearchSqueakDisplaysRequest.prototype.setLimit=function(e){return n.Message.setProto3IntField(this,2,e)},proto.squeaknode.GetSearchSqueakDisplaysRequest.prototype.getLastEntry=function(){return n.Message.getWrapperField(this,proto.squeaknode.SqueakDisplayEntry,3)},proto.squeaknode.GetSearchSqueakDisplaysRequest.prototype.setLastEntry=function(e){return n.Message.setWrapperField(this,3,e)},proto.squeaknode.GetSearchSqueakDisplaysRequest.prototype.clearLastEntry=function(){return this.setLastEntry(void 0)},proto.squeaknode.GetSearchSqueakDisplaysRequest.prototype.hasLastEntry=function(){return null!=n.Message.getField(this,3)},proto.squeaknode.GetSearchSqueakDisplaysReply.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSearchSqueakDisplaysReply.prototype.toObject=function(e){return proto.squeaknode.GetSearchSqueakDisplaysReply.toObject(e,this)},proto.squeaknode.GetSearchSqueakDisplaysReply.toObject=function(e,t){var r={squeakDisplayEntriesList:n.Message.toObjectList(t.getSqueakDisplayEntriesList(),proto.squeaknode.SqueakDisplayEntry.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetSearchSqueakDisplaysReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSearchSqueakDisplaysReply;return proto.squeaknode.GetSearchSqueakDisplaysReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSearchSqueakDisplaysReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.SqueakDisplayEntry;t.readMessage(r,proto.squeaknode.SqueakDisplayEntry.deserializeBinaryFromReader),e.addSqueakDisplayEntries(r)}else t.skipField()}return e},proto.squeaknode.GetSearchSqueakDisplaysReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSearchSqueakDisplaysReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSearchSqueakDisplaysReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakDisplayEntriesList()).length>0&&t.writeRepeatedMessage(1,r,proto.squeaknode.SqueakDisplayEntry.serializeBinaryToWriter)},proto.squeaknode.GetSearchSqueakDisplaysReply.prototype.getSqueakDisplayEntriesList=function(){return n.Message.getRepeatedWrapperField(this,proto.squeaknode.SqueakDisplayEntry,1)},proto.squeaknode.GetSearchSqueakDisplaysReply.prototype.setSqueakDisplayEntriesList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.squeaknode.GetSearchSqueakDisplaysReply.prototype.addSqueakDisplayEntries=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.squeaknode.SqueakDisplayEntry,t)},proto.squeaknode.GetSearchSqueakDisplaysReply.prototype.clearSqueakDisplayEntriesList=function(){return this.setSqueakDisplayEntriesList([])},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetAncestorSqueakDisplaysRequest.prototype.toObject=function(e){return proto.squeaknode.GetAncestorSqueakDisplaysRequest.toObject(e,this)},proto.squeaknode.GetAncestorSqueakDisplaysRequest.toObject=function(e,t){var r={squeakHash:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetAncestorSqueakDisplaysRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetAncestorSqueakDisplaysRequest;return proto.squeaknode.GetAncestorSqueakDisplaysRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetAncestorSqueakDisplaysRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setSqueakHash(r)}else t.skipField()}return e},proto.squeaknode.GetAncestorSqueakDisplaysRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetAncestorSqueakDisplaysRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetAncestorSqueakDisplaysRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakHash()).length>0&&t.writeString(1,r)},proto.squeaknode.GetAncestorSqueakDisplaysRequest.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.GetAncestorSqueakDisplaysRequest.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,1,e)},proto.squeaknode.GetAncestorSqueakDisplaysReply.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetAncestorSqueakDisplaysReply.prototype.toObject=function(e){return proto.squeaknode.GetAncestorSqueakDisplaysReply.toObject(e,this)},proto.squeaknode.GetAncestorSqueakDisplaysReply.toObject=function(e,t){var r={squeakDisplayEntriesList:n.Message.toObjectList(t.getSqueakDisplayEntriesList(),proto.squeaknode.SqueakDisplayEntry.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetAncestorSqueakDisplaysReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetAncestorSqueakDisplaysReply;return proto.squeaknode.GetAncestorSqueakDisplaysReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetAncestorSqueakDisplaysReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.SqueakDisplayEntry;t.readMessage(r,proto.squeaknode.SqueakDisplayEntry.deserializeBinaryFromReader),e.addSqueakDisplayEntries(r)}else t.skipField()}return e},proto.squeaknode.GetAncestorSqueakDisplaysReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetAncestorSqueakDisplaysReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetAncestorSqueakDisplaysReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakDisplayEntriesList()).length>0&&t.writeRepeatedMessage(1,r,proto.squeaknode.SqueakDisplayEntry.serializeBinaryToWriter)},proto.squeaknode.GetAncestorSqueakDisplaysReply.prototype.getSqueakDisplayEntriesList=function(){return n.Message.getRepeatedWrapperField(this,proto.squeaknode.SqueakDisplayEntry,1)},proto.squeaknode.GetAncestorSqueakDisplaysReply.prototype.setSqueakDisplayEntriesList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.squeaknode.GetAncestorSqueakDisplaysReply.prototype.addSqueakDisplayEntries=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.squeaknode.SqueakDisplayEntry,t)},proto.squeaknode.GetAncestorSqueakDisplaysReply.prototype.clearSqueakDisplayEntriesList=function(){return this.setSqueakDisplayEntriesList([])},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetReplySqueakDisplaysRequest.prototype.toObject=function(e){return proto.squeaknode.GetReplySqueakDisplaysRequest.toObject(e,this)},proto.squeaknode.GetReplySqueakDisplaysRequest.toObject=function(e,t){var r,o={squeakHash:n.Message.getFieldWithDefault(t,1,""),limit:n.Message.getFieldWithDefault(t,2,0),lastEntry:(r=t.getLastEntry())&&proto.squeaknode.SqueakDisplayEntry.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.squeaknode.GetReplySqueakDisplaysRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetReplySqueakDisplaysRequest;return proto.squeaknode.GetReplySqueakDisplaysRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetReplySqueakDisplaysRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setSqueakHash(r);break;case 2:r=t.readInt32();e.setLimit(r);break;case 3:r=new proto.squeaknode.SqueakDisplayEntry;t.readMessage(r,proto.squeaknode.SqueakDisplayEntry.deserializeBinaryFromReader),e.setLastEntry(r);break;default:t.skipField()}}return e},proto.squeaknode.GetReplySqueakDisplaysRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetReplySqueakDisplaysRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetReplySqueakDisplaysRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSqueakHash()).length>0&&t.writeString(1,r),0!==(r=e.getLimit())&&t.writeInt32(2,r),null!=(r=e.getLastEntry())&&t.writeMessage(3,r,proto.squeaknode.SqueakDisplayEntry.serializeBinaryToWriter)},proto.squeaknode.GetReplySqueakDisplaysRequest.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.GetReplySqueakDisplaysRequest.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,1,e)},proto.squeaknode.GetReplySqueakDisplaysRequest.prototype.getLimit=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.squeaknode.GetReplySqueakDisplaysRequest.prototype.setLimit=function(e){return n.Message.setProto3IntField(this,2,e)},proto.squeaknode.GetReplySqueakDisplaysRequest.prototype.getLastEntry=function(){return n.Message.getWrapperField(this,proto.squeaknode.SqueakDisplayEntry,3)},proto.squeaknode.GetReplySqueakDisplaysRequest.prototype.setLastEntry=function(e){return n.Message.setWrapperField(this,3,e)},proto.squeaknode.GetReplySqueakDisplaysRequest.prototype.clearLastEntry=function(){return this.setLastEntry(void 0)},proto.squeaknode.GetReplySqueakDisplaysRequest.prototype.hasLastEntry=function(){return null!=n.Message.getField(this,3)},proto.squeaknode.GetReplySqueakDisplaysReply.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetReplySqueakDisplaysReply.prototype.toObject=function(e){return proto.squeaknode.GetReplySqueakDisplaysReply.toObject(e,this)},proto.squeaknode.GetReplySqueakDisplaysReply.toObject=function(e,t){var r={squeakDisplayEntriesList:n.Message.toObjectList(t.getSqueakDisplayEntriesList(),proto.squeaknode.SqueakDisplayEntry.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetReplySqueakDisplaysReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetReplySqueakDisplaysReply;return proto.squeaknode.GetReplySqueakDisplaysReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetReplySqueakDisplaysReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.SqueakDisplayEntry;t.readMessage(r,proto.squeaknode.SqueakDisplayEntry.deserializeBinaryFromReader),e.addSqueakDisplayEntries(r)}else t.skipField()}return e},proto.squeaknode.GetReplySqueakDisplaysReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetReplySqueakDisplaysReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetReplySqueakDisplaysReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakDisplayEntriesList()).length>0&&t.writeRepeatedMessage(1,r,proto.squeaknode.SqueakDisplayEntry.serializeBinaryToWriter)},proto.squeaknode.GetReplySqueakDisplaysReply.prototype.getSqueakDisplayEntriesList=function(){return n.Message.getRepeatedWrapperField(this,proto.squeaknode.SqueakDisplayEntry,1)},proto.squeaknode.GetReplySqueakDisplaysReply.prototype.setSqueakDisplayEntriesList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.squeaknode.GetReplySqueakDisplaysReply.prototype.addSqueakDisplayEntries=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.squeaknode.SqueakDisplayEntry,t)},proto.squeaknode.GetReplySqueakDisplaysReply.prototype.clearSqueakDisplayEntriesList=function(){return this.setSqueakDisplayEntriesList([])},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DeleteSqueakRequest.prototype.toObject=function(e){return proto.squeaknode.DeleteSqueakRequest.toObject(e,this)},proto.squeaknode.DeleteSqueakRequest.toObject=function(e,t){var r={squeakHash:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.DeleteSqueakRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DeleteSqueakRequest;return proto.squeaknode.DeleteSqueakRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.DeleteSqueakRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setSqueakHash(r)}else t.skipField()}return e},proto.squeaknode.DeleteSqueakRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DeleteSqueakRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DeleteSqueakRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakHash()).length>0&&t.writeString(1,r)},proto.squeaknode.DeleteSqueakRequest.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.DeleteSqueakRequest.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DeleteSqueakReply.prototype.toObject=function(e){return proto.squeaknode.DeleteSqueakReply.toObject(e,this)},proto.squeaknode.DeleteSqueakReply.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.DeleteSqueakReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DeleteSqueakReply;return proto.squeaknode.DeleteSqueakReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.DeleteSqueakReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.DeleteSqueakReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DeleteSqueakReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DeleteSqueakReply.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.CreatePeerRequest.prototype.toObject=function(e){return proto.squeaknode.CreatePeerRequest.toObject(e,this)},proto.squeaknode.CreatePeerRequest.toObject=function(e,t){var r,o={peerName:n.Message.getFieldWithDefault(t,1,""),peerAddress:(r=t.getPeerAddress())&&proto.squeaknode.PeerAddress.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.squeaknode.CreatePeerRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.CreatePeerRequest;return proto.squeaknode.CreatePeerRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.CreatePeerRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setPeerName(r);break;case 2:r=new proto.squeaknode.PeerAddress;t.readMessage(r,proto.squeaknode.PeerAddress.deserializeBinaryFromReader),e.setPeerAddress(r);break;default:t.skipField()}}return e},proto.squeaknode.CreatePeerRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.CreatePeerRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.CreatePeerRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPeerName()).length>0&&t.writeString(1,r),null!=(r=e.getPeerAddress())&&t.writeMessage(2,r,proto.squeaknode.PeerAddress.serializeBinaryToWriter)},proto.squeaknode.CreatePeerRequest.prototype.getPeerName=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.CreatePeerRequest.prototype.setPeerName=function(e){return n.Message.setProto3StringField(this,1,e)},proto.squeaknode.CreatePeerRequest.prototype.getPeerAddress=function(){return n.Message.getWrapperField(this,proto.squeaknode.PeerAddress,2)},proto.squeaknode.CreatePeerRequest.prototype.setPeerAddress=function(e){return n.Message.setWrapperField(this,2,e)},proto.squeaknode.CreatePeerRequest.prototype.clearPeerAddress=function(){return this.setPeerAddress(void 0)},proto.squeaknode.CreatePeerRequest.prototype.hasPeerAddress=function(){return null!=n.Message.getField(this,2)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.CreatePeerReply.prototype.toObject=function(e){return proto.squeaknode.CreatePeerReply.toObject(e,this)},proto.squeaknode.CreatePeerReply.toObject=function(e,t){var r={peerId:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.CreatePeerReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.CreatePeerReply;return proto.squeaknode.CreatePeerReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.CreatePeerReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readInt32();e.setPeerId(r)}else t.skipField()}return e},proto.squeaknode.CreatePeerReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.CreatePeerReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.CreatePeerReply.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getPeerId())&&t.writeInt32(1,r)},proto.squeaknode.CreatePeerReply.prototype.getPeerId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.CreatePeerReply.prototype.setPeerId=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetPeerRequest.prototype.toObject=function(e){return proto.squeaknode.GetPeerRequest.toObject(e,this)},proto.squeaknode.GetPeerRequest.toObject=function(e,t){var r={peerId:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetPeerRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetPeerRequest;return proto.squeaknode.GetPeerRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetPeerRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readInt32();e.setPeerId(r)}else t.skipField()}return e},proto.squeaknode.GetPeerRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetPeerRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetPeerRequest.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getPeerId())&&t.writeInt32(1,r)},proto.squeaknode.GetPeerRequest.prototype.getPeerId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.GetPeerRequest.prototype.setPeerId=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetPeerReply.prototype.toObject=function(e){return proto.squeaknode.GetPeerReply.toObject(e,this)},proto.squeaknode.GetPeerReply.toObject=function(e,t){var r,n={squeakPeer:(r=t.getSqueakPeer())&&proto.squeaknode.SqueakPeer.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.GetPeerReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetPeerReply;return proto.squeaknode.GetPeerReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetPeerReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.SqueakPeer;t.readMessage(r,proto.squeaknode.SqueakPeer.deserializeBinaryFromReader),e.setSqueakPeer(r)}else t.skipField()}return e},proto.squeaknode.GetPeerReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetPeerReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetPeerReply.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getSqueakPeer())&&t.writeMessage(1,r,proto.squeaknode.SqueakPeer.serializeBinaryToWriter)},proto.squeaknode.GetPeerReply.prototype.getSqueakPeer=function(){return n.Message.getWrapperField(this,proto.squeaknode.SqueakPeer,1)},proto.squeaknode.GetPeerReply.prototype.setSqueakPeer=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.GetPeerReply.prototype.clearSqueakPeer=function(){return this.setSqueakPeer(void 0)},proto.squeaknode.GetPeerReply.prototype.hasSqueakPeer=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetPeerByAddressRequest.prototype.toObject=function(e){return proto.squeaknode.GetPeerByAddressRequest.toObject(e,this)},proto.squeaknode.GetPeerByAddressRequest.toObject=function(e,t){var r,n={peerAddress:(r=t.getPeerAddress())&&proto.squeaknode.PeerAddress.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.GetPeerByAddressRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetPeerByAddressRequest;return proto.squeaknode.GetPeerByAddressRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetPeerByAddressRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.PeerAddress;t.readMessage(r,proto.squeaknode.PeerAddress.deserializeBinaryFromReader),e.setPeerAddress(r)}else t.skipField()}return e},proto.squeaknode.GetPeerByAddressRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetPeerByAddressRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetPeerByAddressRequest.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getPeerAddress())&&t.writeMessage(1,r,proto.squeaknode.PeerAddress.serializeBinaryToWriter)},proto.squeaknode.GetPeerByAddressRequest.prototype.getPeerAddress=function(){return n.Message.getWrapperField(this,proto.squeaknode.PeerAddress,1)},proto.squeaknode.GetPeerByAddressRequest.prototype.setPeerAddress=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.GetPeerByAddressRequest.prototype.clearPeerAddress=function(){return this.setPeerAddress(void 0)},proto.squeaknode.GetPeerByAddressRequest.prototype.hasPeerAddress=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetPeerByAddressReply.prototype.toObject=function(e){return proto.squeaknode.GetPeerByAddressReply.toObject(e,this)},proto.squeaknode.GetPeerByAddressReply.toObject=function(e,t){var r,n={squeakPeer:(r=t.getSqueakPeer())&&proto.squeaknode.SqueakPeer.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.GetPeerByAddressReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetPeerByAddressReply;return proto.squeaknode.GetPeerByAddressReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetPeerByAddressReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.SqueakPeer;t.readMessage(r,proto.squeaknode.SqueakPeer.deserializeBinaryFromReader),e.setSqueakPeer(r)}else t.skipField()}return e},proto.squeaknode.GetPeerByAddressReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetPeerByAddressReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetPeerByAddressReply.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getSqueakPeer())&&t.writeMessage(1,r,proto.squeaknode.SqueakPeer.serializeBinaryToWriter)},proto.squeaknode.GetPeerByAddressReply.prototype.getSqueakPeer=function(){return n.Message.getWrapperField(this,proto.squeaknode.SqueakPeer,1)},proto.squeaknode.GetPeerByAddressReply.prototype.setSqueakPeer=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.GetPeerByAddressReply.prototype.clearSqueakPeer=function(){return this.setSqueakPeer(void 0)},proto.squeaknode.GetPeerByAddressReply.prototype.hasSqueakPeer=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetPeersRequest.prototype.toObject=function(e){return proto.squeaknode.GetPeersRequest.toObject(e,this)},proto.squeaknode.GetPeersRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetPeersRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetPeersRequest;return proto.squeaknode.GetPeersRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetPeersRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.GetPeersRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetPeersRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetPeersRequest.serializeBinaryToWriter=function(e,t){},proto.squeaknode.GetPeersReply.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetPeersReply.prototype.toObject=function(e){return proto.squeaknode.GetPeersReply.toObject(e,this)},proto.squeaknode.GetPeersReply.toObject=function(e,t){var r={squeakPeersList:n.Message.toObjectList(t.getSqueakPeersList(),proto.squeaknode.SqueakPeer.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetPeersReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetPeersReply;return proto.squeaknode.GetPeersReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetPeersReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.SqueakPeer;t.readMessage(r,proto.squeaknode.SqueakPeer.deserializeBinaryFromReader),e.addSqueakPeers(r)}else t.skipField()}return e},proto.squeaknode.GetPeersReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetPeersReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetPeersReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakPeersList()).length>0&&t.writeRepeatedMessage(1,r,proto.squeaknode.SqueakPeer.serializeBinaryToWriter)},proto.squeaknode.GetPeersReply.prototype.getSqueakPeersList=function(){return n.Message.getRepeatedWrapperField(this,proto.squeaknode.SqueakPeer,1)},proto.squeaknode.GetPeersReply.prototype.setSqueakPeersList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.squeaknode.GetPeersReply.prototype.addSqueakPeers=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.squeaknode.SqueakPeer,t)},proto.squeaknode.GetPeersReply.prototype.clearSqueakPeersList=function(){return this.setSqueakPeersList([])},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SqueakPeer.prototype.toObject=function(e){return proto.squeaknode.SqueakPeer.toObject(e,this)},proto.squeaknode.SqueakPeer.toObject=function(e,t){var r,o={peerId:n.Message.getFieldWithDefault(t,1,0),peerName:n.Message.getFieldWithDefault(t,2,""),peerAddress:(r=t.getPeerAddress())&&proto.squeaknode.PeerAddress.toObject(e,r),autoconnect:n.Message.getBooleanFieldWithDefault(t,4,!1),shareForFree:n.Message.getBooleanFieldWithDefault(t,5,!1)};return e&&(o.$jspbMessageInstance=t),o}),proto.squeaknode.SqueakPeer.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SqueakPeer;return proto.squeaknode.SqueakPeer.deserializeBinaryFromReader(r,t)},proto.squeaknode.SqueakPeer.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setPeerId(r);break;case 2:r=t.readString();e.setPeerName(r);break;case 3:r=new proto.squeaknode.PeerAddress;t.readMessage(r,proto.squeaknode.PeerAddress.deserializeBinaryFromReader),e.setPeerAddress(r);break;case 4:r=t.readBool();e.setAutoconnect(r);break;case 5:r=t.readBool();e.setShareForFree(r);break;default:t.skipField()}}return e},proto.squeaknode.SqueakPeer.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SqueakPeer.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SqueakPeer.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getPeerId())&&t.writeInt32(1,r),(r=e.getPeerName()).length>0&&t.writeString(2,r),null!=(r=e.getPeerAddress())&&t.writeMessage(3,r,proto.squeaknode.PeerAddress.serializeBinaryToWriter),(r=e.getAutoconnect())&&t.writeBool(4,r),(r=e.getShareForFree())&&t.writeBool(5,r)},proto.squeaknode.SqueakPeer.prototype.getPeerId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.SqueakPeer.prototype.setPeerId=function(e){return n.Message.setProto3IntField(this,1,e)},proto.squeaknode.SqueakPeer.prototype.getPeerName=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.squeaknode.SqueakPeer.prototype.setPeerName=function(e){return n.Message.setProto3StringField(this,2,e)},proto.squeaknode.SqueakPeer.prototype.getPeerAddress=function(){return n.Message.getWrapperField(this,proto.squeaknode.PeerAddress,3)},proto.squeaknode.SqueakPeer.prototype.setPeerAddress=function(e){return n.Message.setWrapperField(this,3,e)},proto.squeaknode.SqueakPeer.prototype.clearPeerAddress=function(){return this.setPeerAddress(void 0)},proto.squeaknode.SqueakPeer.prototype.hasPeerAddress=function(){return null!=n.Message.getField(this,3)},proto.squeaknode.SqueakPeer.prototype.getAutoconnect=function(){return n.Message.getBooleanFieldWithDefault(this,4,!1)},proto.squeaknode.SqueakPeer.prototype.setAutoconnect=function(e){return n.Message.setProto3BooleanField(this,4,e)},proto.squeaknode.SqueakPeer.prototype.getShareForFree=function(){return n.Message.getBooleanFieldWithDefault(this,5,!1)},proto.squeaknode.SqueakPeer.prototype.setShareForFree=function(e){return n.Message.setProto3BooleanField(this,5,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SetPeerAutoconnectRequest.prototype.toObject=function(e){return proto.squeaknode.SetPeerAutoconnectRequest.toObject(e,this)},proto.squeaknode.SetPeerAutoconnectRequest.toObject=function(e,t){var r={peerId:n.Message.getFieldWithDefault(t,1,0),autoconnect:n.Message.getBooleanFieldWithDefault(t,2,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.SetPeerAutoconnectRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SetPeerAutoconnectRequest;return proto.squeaknode.SetPeerAutoconnectRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.SetPeerAutoconnectRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setPeerId(r);break;case 2:r=t.readBool();e.setAutoconnect(r);break;default:t.skipField()}}return e},proto.squeaknode.SetPeerAutoconnectRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SetPeerAutoconnectRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SetPeerAutoconnectRequest.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getPeerId())&&t.writeInt32(1,r),(r=e.getAutoconnect())&&t.writeBool(2,r)},proto.squeaknode.SetPeerAutoconnectRequest.prototype.getPeerId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.SetPeerAutoconnectRequest.prototype.setPeerId=function(e){return n.Message.setProto3IntField(this,1,e)},proto.squeaknode.SetPeerAutoconnectRequest.prototype.getAutoconnect=function(){return n.Message.getBooleanFieldWithDefault(this,2,!1)},proto.squeaknode.SetPeerAutoconnectRequest.prototype.setAutoconnect=function(e){return n.Message.setProto3BooleanField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SetPeerAutoconnectReply.prototype.toObject=function(e){return proto.squeaknode.SetPeerAutoconnectReply.toObject(e,this)},proto.squeaknode.SetPeerAutoconnectReply.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.SetPeerAutoconnectReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SetPeerAutoconnectReply;return proto.squeaknode.SetPeerAutoconnectReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.SetPeerAutoconnectReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.SetPeerAutoconnectReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SetPeerAutoconnectReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SetPeerAutoconnectReply.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SetPeerShareForFreeRequest.prototype.toObject=function(e){return proto.squeaknode.SetPeerShareForFreeRequest.toObject(e,this)},proto.squeaknode.SetPeerShareForFreeRequest.toObject=function(e,t){var r={peerId:n.Message.getFieldWithDefault(t,1,0),shareForFree:n.Message.getBooleanFieldWithDefault(t,2,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.SetPeerShareForFreeRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SetPeerShareForFreeRequest;return proto.squeaknode.SetPeerShareForFreeRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.SetPeerShareForFreeRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setPeerId(r);break;case 2:r=t.readBool();e.setShareForFree(r);break;default:t.skipField()}}return e},proto.squeaknode.SetPeerShareForFreeRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SetPeerShareForFreeRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SetPeerShareForFreeRequest.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getPeerId())&&t.writeInt32(1,r),(r=e.getShareForFree())&&t.writeBool(2,r)},proto.squeaknode.SetPeerShareForFreeRequest.prototype.getPeerId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.SetPeerShareForFreeRequest.prototype.setPeerId=function(e){return n.Message.setProto3IntField(this,1,e)},proto.squeaknode.SetPeerShareForFreeRequest.prototype.getShareForFree=function(){return n.Message.getBooleanFieldWithDefault(this,2,!1)},proto.squeaknode.SetPeerShareForFreeRequest.prototype.setShareForFree=function(e){return n.Message.setProto3BooleanField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SetPeerShareForFreeReply.prototype.toObject=function(e){return proto.squeaknode.SetPeerShareForFreeReply.toObject(e,this)},proto.squeaknode.SetPeerShareForFreeReply.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.SetPeerShareForFreeReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SetPeerShareForFreeReply;return proto.squeaknode.SetPeerShareForFreeReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.SetPeerShareForFreeReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.SetPeerShareForFreeReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SetPeerShareForFreeReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SetPeerShareForFreeReply.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.RenamePeerRequest.prototype.toObject=function(e){return proto.squeaknode.RenamePeerRequest.toObject(e,this)},proto.squeaknode.RenamePeerRequest.toObject=function(e,t){var r={peerId:n.Message.getFieldWithDefault(t,1,0),peerName:n.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.RenamePeerRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.RenamePeerRequest;return proto.squeaknode.RenamePeerRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.RenamePeerRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setPeerId(r);break;case 2:r=t.readString();e.setPeerName(r);break;default:t.skipField()}}return e},proto.squeaknode.RenamePeerRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.RenamePeerRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.RenamePeerRequest.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getPeerId())&&t.writeInt32(1,r),(r=e.getPeerName()).length>0&&t.writeString(2,r)},proto.squeaknode.RenamePeerRequest.prototype.getPeerId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.RenamePeerRequest.prototype.setPeerId=function(e){return n.Message.setProto3IntField(this,1,e)},proto.squeaknode.RenamePeerRequest.prototype.getPeerName=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.squeaknode.RenamePeerRequest.prototype.setPeerName=function(e){return n.Message.setProto3StringField(this,2,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.RenamePeerReply.prototype.toObject=function(e){return proto.squeaknode.RenamePeerReply.toObject(e,this)},proto.squeaknode.RenamePeerReply.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.RenamePeerReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.RenamePeerReply;return proto.squeaknode.RenamePeerReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.RenamePeerReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.RenamePeerReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.RenamePeerReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.RenamePeerReply.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DeletePeerRequest.prototype.toObject=function(e){return proto.squeaknode.DeletePeerRequest.toObject(e,this)},proto.squeaknode.DeletePeerRequest.toObject=function(e,t){var r={peerId:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.DeletePeerRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DeletePeerRequest;return proto.squeaknode.DeletePeerRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.DeletePeerRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readInt32();e.setPeerId(r)}else t.skipField()}return e},proto.squeaknode.DeletePeerRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DeletePeerRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DeletePeerRequest.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getPeerId())&&t.writeInt32(1,r)},proto.squeaknode.DeletePeerRequest.prototype.getPeerId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.DeletePeerRequest.prototype.setPeerId=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DeletePeerReply.prototype.toObject=function(e){return proto.squeaknode.DeletePeerReply.toObject(e,this)},proto.squeaknode.DeletePeerReply.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.DeletePeerReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DeletePeerReply;return proto.squeaknode.DeletePeerReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.DeletePeerReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.DeletePeerReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DeletePeerReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DeletePeerReply.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.LoadBuyOffersRequest.prototype.toObject=function(e){return proto.squeaknode.LoadBuyOffersRequest.toObject(e,this)},proto.squeaknode.LoadBuyOffersRequest.toObject=function(e,t){var r={squeakHash:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.LoadBuyOffersRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.LoadBuyOffersRequest;return proto.squeaknode.LoadBuyOffersRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.LoadBuyOffersRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setSqueakHash(r)}else t.skipField()}return e},proto.squeaknode.LoadBuyOffersRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.LoadBuyOffersRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.LoadBuyOffersRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakHash()).length>0&&t.writeString(1,r)},proto.squeaknode.LoadBuyOffersRequest.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.LoadBuyOffersRequest.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.LoadBuyOffersReply.prototype.toObject=function(e){return proto.squeaknode.LoadBuyOffersReply.toObject(e,this)},proto.squeaknode.LoadBuyOffersReply.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.LoadBuyOffersReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.LoadBuyOffersReply;return proto.squeaknode.LoadBuyOffersReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.LoadBuyOffersReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.LoadBuyOffersReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.LoadBuyOffersReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.LoadBuyOffersReply.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetBuyOffersRequest.prototype.toObject=function(e){return proto.squeaknode.GetBuyOffersRequest.toObject(e,this)},proto.squeaknode.GetBuyOffersRequest.toObject=function(e,t){var r={squeakHash:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetBuyOffersRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetBuyOffersRequest;return proto.squeaknode.GetBuyOffersRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetBuyOffersRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setSqueakHash(r)}else t.skipField()}return e},proto.squeaknode.GetBuyOffersRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetBuyOffersRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetBuyOffersRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakHash()).length>0&&t.writeString(1,r)},proto.squeaknode.GetBuyOffersRequest.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.GetBuyOffersRequest.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,1,e)},proto.squeaknode.GetBuyOffersReply.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetBuyOffersReply.prototype.toObject=function(e){return proto.squeaknode.GetBuyOffersReply.toObject(e,this)},proto.squeaknode.GetBuyOffersReply.toObject=function(e,t){var r={offersList:n.Message.toObjectList(t.getOffersList(),proto.squeaknode.OfferDisplayEntry.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetBuyOffersReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetBuyOffersReply;return proto.squeaknode.GetBuyOffersReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetBuyOffersReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.OfferDisplayEntry;t.readMessage(r,proto.squeaknode.OfferDisplayEntry.deserializeBinaryFromReader),e.addOffers(r)}else t.skipField()}return e},proto.squeaknode.GetBuyOffersReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetBuyOffersReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetBuyOffersReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getOffersList()).length>0&&t.writeRepeatedMessage(1,r,proto.squeaknode.OfferDisplayEntry.serializeBinaryToWriter)},proto.squeaknode.GetBuyOffersReply.prototype.getOffersList=function(){return n.Message.getRepeatedWrapperField(this,proto.squeaknode.OfferDisplayEntry,1)},proto.squeaknode.GetBuyOffersReply.prototype.setOffersList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.squeaknode.GetBuyOffersReply.prototype.addOffers=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.squeaknode.OfferDisplayEntry,t)},proto.squeaknode.GetBuyOffersReply.prototype.clearOffersList=function(){return this.setOffersList([])},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetBuyOfferRequest.prototype.toObject=function(e){return proto.squeaknode.GetBuyOfferRequest.toObject(e,this)},proto.squeaknode.GetBuyOfferRequest.toObject=function(e,t){var r={offerId:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetBuyOfferRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetBuyOfferRequest;return proto.squeaknode.GetBuyOfferRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetBuyOfferRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readInt32();e.setOfferId(r)}else t.skipField()}return e},proto.squeaknode.GetBuyOfferRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetBuyOfferRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetBuyOfferRequest.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getOfferId())&&t.writeInt32(1,r)},proto.squeaknode.GetBuyOfferRequest.prototype.getOfferId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.GetBuyOfferRequest.prototype.setOfferId=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetBuyOfferReply.prototype.toObject=function(e){return proto.squeaknode.GetBuyOfferReply.toObject(e,this)},proto.squeaknode.GetBuyOfferReply.toObject=function(e,t){var r,n={offer:(r=t.getOffer())&&proto.squeaknode.OfferDisplayEntry.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.GetBuyOfferReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetBuyOfferReply;return proto.squeaknode.GetBuyOfferReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetBuyOfferReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.OfferDisplayEntry;t.readMessage(r,proto.squeaknode.OfferDisplayEntry.deserializeBinaryFromReader),e.setOffer(r)}else t.skipField()}return e},proto.squeaknode.GetBuyOfferReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetBuyOfferReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetBuyOfferReply.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getOffer())&&t.writeMessage(1,r,proto.squeaknode.OfferDisplayEntry.serializeBinaryToWriter)},proto.squeaknode.GetBuyOfferReply.prototype.getOffer=function(){return n.Message.getWrapperField(this,proto.squeaknode.OfferDisplayEntry,1)},proto.squeaknode.GetBuyOfferReply.prototype.setOffer=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.GetBuyOfferReply.prototype.clearOffer=function(){return this.setOffer(void 0)},proto.squeaknode.GetBuyOfferReply.prototype.hasOffer=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.OfferDisplayEntry.prototype.toObject=function(e){return proto.squeaknode.OfferDisplayEntry.toObject(e,this)},proto.squeaknode.OfferDisplayEntry.toObject=function(e,t){var r,o={offerId:n.Message.getFieldWithDefault(t,1,0),squeakHash:n.Message.getFieldWithDefault(t,2,""),priceMsat:n.Message.getFieldWithDefault(t,3,0),nodePubkey:n.Message.getFieldWithDefault(t,4,""),nodeHost:n.Message.getFieldWithDefault(t,5,""),nodePort:n.Message.getFieldWithDefault(t,6,0),invoiceTimestamp:n.Message.getFieldWithDefault(t,7,0),invoiceExpiry:n.Message.getFieldWithDefault(t,8,0),peerAddress:(r=t.getPeerAddress())&&proto.squeaknode.PeerAddress.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.squeaknode.OfferDisplayEntry.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.OfferDisplayEntry;return proto.squeaknode.OfferDisplayEntry.deserializeBinaryFromReader(r,t)},proto.squeaknode.OfferDisplayEntry.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setOfferId(r);break;case 2:r=t.readString();e.setSqueakHash(r);break;case 3:r=t.readInt64();e.setPriceMsat(r);break;case 4:r=t.readString();e.setNodePubkey(r);break;case 5:r=t.readString();e.setNodeHost(r);break;case 6:r=t.readInt32();e.setNodePort(r);break;case 7:r=t.readInt32();e.setInvoiceTimestamp(r);break;case 8:r=t.readInt32();e.setInvoiceExpiry(r);break;case 9:r=new proto.squeaknode.PeerAddress;t.readMessage(r,proto.squeaknode.PeerAddress.deserializeBinaryFromReader),e.setPeerAddress(r);break;default:t.skipField()}}return e},proto.squeaknode.OfferDisplayEntry.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.OfferDisplayEntry.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.OfferDisplayEntry.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getOfferId())&&t.writeInt32(1,r),(r=e.getSqueakHash()).length>0&&t.writeString(2,r),0!==(r=e.getPriceMsat())&&t.writeInt64(3,r),(r=e.getNodePubkey()).length>0&&t.writeString(4,r),(r=e.getNodeHost()).length>0&&t.writeString(5,r),0!==(r=e.getNodePort())&&t.writeInt32(6,r),0!==(r=e.getInvoiceTimestamp())&&t.writeInt32(7,r),0!==(r=e.getInvoiceExpiry())&&t.writeInt32(8,r),null!=(r=e.getPeerAddress())&&t.writeMessage(9,r,proto.squeaknode.PeerAddress.serializeBinaryToWriter)},proto.squeaknode.OfferDisplayEntry.prototype.getOfferId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.OfferDisplayEntry.prototype.setOfferId=function(e){return n.Message.setProto3IntField(this,1,e)},proto.squeaknode.OfferDisplayEntry.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.squeaknode.OfferDisplayEntry.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,2,e)},proto.squeaknode.OfferDisplayEntry.prototype.getPriceMsat=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.squeaknode.OfferDisplayEntry.prototype.setPriceMsat=function(e){return n.Message.setProto3IntField(this,3,e)},proto.squeaknode.OfferDisplayEntry.prototype.getNodePubkey=function(){return n.Message.getFieldWithDefault(this,4,"")},proto.squeaknode.OfferDisplayEntry.prototype.setNodePubkey=function(e){return n.Message.setProto3StringField(this,4,e)},proto.squeaknode.OfferDisplayEntry.prototype.getNodeHost=function(){return n.Message.getFieldWithDefault(this,5,"")},proto.squeaknode.OfferDisplayEntry.prototype.setNodeHost=function(e){return n.Message.setProto3StringField(this,5,e)},proto.squeaknode.OfferDisplayEntry.prototype.getNodePort=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.squeaknode.OfferDisplayEntry.prototype.setNodePort=function(e){return n.Message.setProto3IntField(this,6,e)},proto.squeaknode.OfferDisplayEntry.prototype.getInvoiceTimestamp=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.squeaknode.OfferDisplayEntry.prototype.setInvoiceTimestamp=function(e){return n.Message.setProto3IntField(this,7,e)},proto.squeaknode.OfferDisplayEntry.prototype.getInvoiceExpiry=function(){return n.Message.getFieldWithDefault(this,8,0)},proto.squeaknode.OfferDisplayEntry.prototype.setInvoiceExpiry=function(e){return n.Message.setProto3IntField(this,8,e)},proto.squeaknode.OfferDisplayEntry.prototype.getPeerAddress=function(){return n.Message.getWrapperField(this,proto.squeaknode.PeerAddress,9)},proto.squeaknode.OfferDisplayEntry.prototype.setPeerAddress=function(e){return n.Message.setWrapperField(this,9,e)},proto.squeaknode.OfferDisplayEntry.prototype.clearPeerAddress=function(){return this.setPeerAddress(void 0)},proto.squeaknode.OfferDisplayEntry.prototype.hasPeerAddress=function(){return null!=n.Message.getField(this,9)},proto.squeaknode.DownloadSqueaksRequest.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DownloadSqueaksRequest.prototype.toObject=function(e){return proto.squeaknode.DownloadSqueaksRequest.toObject(e,this)},proto.squeaknode.DownloadSqueaksRequest.toObject=function(e,t){var r,o={pubkeysList:null==(r=n.Message.getRepeatedField(t,1))?void 0:r,minBlockHeight:n.Message.getFieldWithDefault(t,2,0),maxBlockHeight:n.Message.getFieldWithDefault(t,3,0),replytoSqueakHash:n.Message.getFieldWithDefault(t,4,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.squeaknode.DownloadSqueaksRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DownloadSqueaksRequest;return proto.squeaknode.DownloadSqueaksRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.DownloadSqueaksRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.addPubkeys(r);break;case 2:r=t.readInt32();e.setMinBlockHeight(r);break;case 3:r=t.readInt32();e.setMaxBlockHeight(r);break;case 4:r=t.readString();e.setReplytoSqueakHash(r);break;default:t.skipField()}}return e},proto.squeaknode.DownloadSqueaksRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DownloadSqueaksRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DownloadSqueaksRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPubkeysList()).length>0&&t.writeRepeatedString(1,r),0!==(r=e.getMinBlockHeight())&&t.writeInt32(2,r),0!==(r=e.getMaxBlockHeight())&&t.writeInt32(3,r),(r=e.getReplytoSqueakHash()).length>0&&t.writeString(4,r)},proto.squeaknode.DownloadSqueaksRequest.prototype.getPubkeysList=function(){return n.Message.getRepeatedField(this,1)},proto.squeaknode.DownloadSqueaksRequest.prototype.setPubkeysList=function(e){return n.Message.setField(this,1,e||[])},proto.squeaknode.DownloadSqueaksRequest.prototype.addPubkeys=function(e,t){return n.Message.addToRepeatedField(this,1,e,t)},proto.squeaknode.DownloadSqueaksRequest.prototype.clearPubkeysList=function(){return this.setPubkeysList([])},proto.squeaknode.DownloadSqueaksRequest.prototype.getMinBlockHeight=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.squeaknode.DownloadSqueaksRequest.prototype.setMinBlockHeight=function(e){return n.Message.setProto3IntField(this,2,e)},proto.squeaknode.DownloadSqueaksRequest.prototype.getMaxBlockHeight=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.squeaknode.DownloadSqueaksRequest.prototype.setMaxBlockHeight=function(e){return n.Message.setProto3IntField(this,3,e)},proto.squeaknode.DownloadSqueaksRequest.prototype.getReplytoSqueakHash=function(){return n.Message.getFieldWithDefault(this,4,"")},proto.squeaknode.DownloadSqueaksRequest.prototype.setReplytoSqueakHash=function(e){return n.Message.setProto3StringField(this,4,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DownloadResult.prototype.toObject=function(e){return proto.squeaknode.DownloadResult.toObject(e,this)},proto.squeaknode.DownloadResult.toObject=function(e,t){var r={numberDownloaded:n.Message.getFieldWithDefault(t,1,0),numberRequested:n.Message.getFieldWithDefault(t,2,0),numberPeers:n.Message.getFieldWithDefault(t,3,0),elapsedTimeMs:n.Message.getFieldWithDefault(t,4,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.DownloadResult.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DownloadResult;return proto.squeaknode.DownloadResult.deserializeBinaryFromReader(r,t)},proto.squeaknode.DownloadResult.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setNumberDownloaded(r);break;case 2:r=t.readInt32();e.setNumberRequested(r);break;case 3:r=t.readInt32();e.setNumberPeers(r);break;case 4:r=t.readInt32();e.setElapsedTimeMs(r);break;default:t.skipField()}}return e},proto.squeaknode.DownloadResult.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DownloadResult.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DownloadResult.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getNumberDownloaded())&&t.writeInt32(1,r),0!==(r=e.getNumberRequested())&&t.writeInt32(2,r),0!==(r=e.getNumberPeers())&&t.writeInt32(3,r),0!==(r=e.getElapsedTimeMs())&&t.writeInt32(4,r)},proto.squeaknode.DownloadResult.prototype.getNumberDownloaded=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.DownloadResult.prototype.setNumberDownloaded=function(e){return n.Message.setProto3IntField(this,1,e)},proto.squeaknode.DownloadResult.prototype.getNumberRequested=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.squeaknode.DownloadResult.prototype.setNumberRequested=function(e){return n.Message.setProto3IntField(this,2,e)},proto.squeaknode.DownloadResult.prototype.getNumberPeers=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.squeaknode.DownloadResult.prototype.setNumberPeers=function(e){return n.Message.setProto3IntField(this,3,e)},proto.squeaknode.DownloadResult.prototype.getElapsedTimeMs=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.squeaknode.DownloadResult.prototype.setElapsedTimeMs=function(e){return n.Message.setProto3IntField(this,4,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DownloadSqueaksReply.prototype.toObject=function(e){return proto.squeaknode.DownloadSqueaksReply.toObject(e,this)},proto.squeaknode.DownloadSqueaksReply.toObject=function(e,t){var r,n={downloadResult:(r=t.getDownloadResult())&&proto.squeaknode.DownloadResult.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.DownloadSqueaksReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DownloadSqueaksReply;return proto.squeaknode.DownloadSqueaksReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.DownloadSqueaksReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.DownloadResult;t.readMessage(r,proto.squeaknode.DownloadResult.deserializeBinaryFromReader),e.setDownloadResult(r)}else t.skipField()}return e},proto.squeaknode.DownloadSqueaksReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DownloadSqueaksReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DownloadSqueaksReply.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getDownloadResult())&&t.writeMessage(1,r,proto.squeaknode.DownloadResult.serializeBinaryToWriter)},proto.squeaknode.DownloadSqueaksReply.prototype.getDownloadResult=function(){return n.Message.getWrapperField(this,proto.squeaknode.DownloadResult,1)},proto.squeaknode.DownloadSqueaksReply.prototype.setDownloadResult=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.DownloadSqueaksReply.prototype.clearDownloadResult=function(){return this.setDownloadResult(void 0)},proto.squeaknode.DownloadSqueaksReply.prototype.hasDownloadResult=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.PayOfferRequest.prototype.toObject=function(e){return proto.squeaknode.PayOfferRequest.toObject(e,this)},proto.squeaknode.PayOfferRequest.toObject=function(e,t){var r={offerId:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.PayOfferRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.PayOfferRequest;return proto.squeaknode.PayOfferRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.PayOfferRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readInt32();e.setOfferId(r)}else t.skipField()}return e},proto.squeaknode.PayOfferRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.PayOfferRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.PayOfferRequest.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getOfferId())&&t.writeInt32(1,r)},proto.squeaknode.PayOfferRequest.prototype.getOfferId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.PayOfferRequest.prototype.setOfferId=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.PayOfferReply.prototype.toObject=function(e){return proto.squeaknode.PayOfferReply.toObject(e,this)},proto.squeaknode.PayOfferReply.toObject=function(e,t){var r={sentPaymentId:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.PayOfferReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.PayOfferReply;return proto.squeaknode.PayOfferReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.PayOfferReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readInt32();e.setSentPaymentId(r)}else t.skipField()}return e},proto.squeaknode.PayOfferReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.PayOfferReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.PayOfferReply.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getSentPaymentId())&&t.writeInt32(1,r)},proto.squeaknode.PayOfferReply.prototype.getSentPaymentId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.PayOfferReply.prototype.setSentPaymentId=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DecryptSqueakRequest.prototype.toObject=function(e){return proto.squeaknode.DecryptSqueakRequest.toObject(e,this)},proto.squeaknode.DecryptSqueakRequest.toObject=function(e,t){var r={squeakHash:n.Message.getFieldWithDefault(t,1,""),hasRecipient:n.Message.getBooleanFieldWithDefault(t,2,!1),recipientProfileId:n.Message.getFieldWithDefault(t,3,0),hasAuthor:n.Message.getBooleanFieldWithDefault(t,4,!1),authorProfileId:n.Message.getFieldWithDefault(t,5,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.DecryptSqueakRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DecryptSqueakRequest;return proto.squeaknode.DecryptSqueakRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.DecryptSqueakRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setSqueakHash(r);break;case 2:r=t.readBool();e.setHasRecipient(r);break;case 3:r=t.readInt32();e.setRecipientProfileId(r);break;case 4:r=t.readBool();e.setHasAuthor(r);break;case 5:r=t.readInt32();e.setAuthorProfileId(r);break;default:t.skipField()}}return e},proto.squeaknode.DecryptSqueakRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DecryptSqueakRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DecryptSqueakRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSqueakHash()).length>0&&t.writeString(1,r),(r=e.getHasRecipient())&&t.writeBool(2,r),0!==(r=e.getRecipientProfileId())&&t.writeInt32(3,r),(r=e.getHasAuthor())&&t.writeBool(4,r),0!==(r=e.getAuthorProfileId())&&t.writeInt32(5,r)},proto.squeaknode.DecryptSqueakRequest.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.DecryptSqueakRequest.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,1,e)},proto.squeaknode.DecryptSqueakRequest.prototype.getHasRecipient=function(){return n.Message.getBooleanFieldWithDefault(this,2,!1)},proto.squeaknode.DecryptSqueakRequest.prototype.setHasRecipient=function(e){return n.Message.setProto3BooleanField(this,2,e)},proto.squeaknode.DecryptSqueakRequest.prototype.getRecipientProfileId=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.squeaknode.DecryptSqueakRequest.prototype.setRecipientProfileId=function(e){return n.Message.setProto3IntField(this,3,e)},proto.squeaknode.DecryptSqueakRequest.prototype.getHasAuthor=function(){return n.Message.getBooleanFieldWithDefault(this,4,!1)},proto.squeaknode.DecryptSqueakRequest.prototype.setHasAuthor=function(e){return n.Message.setProto3BooleanField(this,4,e)},proto.squeaknode.DecryptSqueakRequest.prototype.getAuthorProfileId=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.squeaknode.DecryptSqueakRequest.prototype.setAuthorProfileId=function(e){return n.Message.setProto3IntField(this,5,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DecryptSqueakReply.prototype.toObject=function(e){return proto.squeaknode.DecryptSqueakReply.toObject(e,this)},proto.squeaknode.DecryptSqueakReply.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.DecryptSqueakReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DecryptSqueakReply;return proto.squeaknode.DecryptSqueakReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.DecryptSqueakReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.DecryptSqueakReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DecryptSqueakReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DecryptSqueakReply.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSentPaymentsRequest.prototype.toObject=function(e){return proto.squeaknode.GetSentPaymentsRequest.toObject(e,this)},proto.squeaknode.GetSentPaymentsRequest.toObject=function(e,t){var r,o={limit:n.Message.getFieldWithDefault(t,1,0),lastSentPayment:(r=t.getLastSentPayment())&&proto.squeaknode.SentPayment.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.squeaknode.GetSentPaymentsRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSentPaymentsRequest;return proto.squeaknode.GetSentPaymentsRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSentPaymentsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setLimit(r);break;case 2:r=new proto.squeaknode.SentPayment;t.readMessage(r,proto.squeaknode.SentPayment.deserializeBinaryFromReader),e.setLastSentPayment(r);break;default:t.skipField()}}return e},proto.squeaknode.GetSentPaymentsRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSentPaymentsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSentPaymentsRequest.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getLimit())&&t.writeInt32(1,r),null!=(r=e.getLastSentPayment())&&t.writeMessage(2,r,proto.squeaknode.SentPayment.serializeBinaryToWriter)},proto.squeaknode.GetSentPaymentsRequest.prototype.getLimit=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.GetSentPaymentsRequest.prototype.setLimit=function(e){return n.Message.setProto3IntField(this,1,e)},proto.squeaknode.GetSentPaymentsRequest.prototype.getLastSentPayment=function(){return n.Message.getWrapperField(this,proto.squeaknode.SentPayment,2)},proto.squeaknode.GetSentPaymentsRequest.prototype.setLastSentPayment=function(e){return n.Message.setWrapperField(this,2,e)},proto.squeaknode.GetSentPaymentsRequest.prototype.clearLastSentPayment=function(){return this.setLastSentPayment(void 0)},proto.squeaknode.GetSentPaymentsRequest.prototype.hasLastSentPayment=function(){return null!=n.Message.getField(this,2)},proto.squeaknode.GetSentPaymentsReply.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSentPaymentsReply.prototype.toObject=function(e){return proto.squeaknode.GetSentPaymentsReply.toObject(e,this)},proto.squeaknode.GetSentPaymentsReply.toObject=function(e,t){var r={sentPaymentsList:n.Message.toObjectList(t.getSentPaymentsList(),proto.squeaknode.SentPayment.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetSentPaymentsReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSentPaymentsReply;return proto.squeaknode.GetSentPaymentsReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSentPaymentsReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.SentPayment;t.readMessage(r,proto.squeaknode.SentPayment.deserializeBinaryFromReader),e.addSentPayments(r)}else t.skipField()}return e},proto.squeaknode.GetSentPaymentsReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSentPaymentsReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSentPaymentsReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getSentPaymentsList()).length>0&&t.writeRepeatedMessage(1,r,proto.squeaknode.SentPayment.serializeBinaryToWriter)},proto.squeaknode.GetSentPaymentsReply.prototype.getSentPaymentsList=function(){return n.Message.getRepeatedWrapperField(this,proto.squeaknode.SentPayment,1)},proto.squeaknode.GetSentPaymentsReply.prototype.setSentPaymentsList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.squeaknode.GetSentPaymentsReply.prototype.addSentPayments=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.squeaknode.SentPayment,t)},proto.squeaknode.GetSentPaymentsReply.prototype.clearSentPaymentsList=function(){return this.setSentPaymentsList([])},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSentPaymentsForSqueakRequest.prototype.toObject=function(e){return proto.squeaknode.GetSentPaymentsForSqueakRequest.toObject(e,this)},proto.squeaknode.GetSentPaymentsForSqueakRequest.toObject=function(e,t){var r,o={squeakHash:n.Message.getFieldWithDefault(t,1,""),limit:n.Message.getFieldWithDefault(t,2,0),lastSentPayment:(r=t.getLastSentPayment())&&proto.squeaknode.SentPayment.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.squeaknode.GetSentPaymentsForSqueakRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSentPaymentsForSqueakRequest;return proto.squeaknode.GetSentPaymentsForSqueakRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSentPaymentsForSqueakRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setSqueakHash(r);break;case 2:r=t.readInt32();e.setLimit(r);break;case 3:r=new proto.squeaknode.SentPayment;t.readMessage(r,proto.squeaknode.SentPayment.deserializeBinaryFromReader),e.setLastSentPayment(r);break;default:t.skipField()}}return e},proto.squeaknode.GetSentPaymentsForSqueakRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSentPaymentsForSqueakRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSentPaymentsForSqueakRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSqueakHash()).length>0&&t.writeString(1,r),0!==(r=e.getLimit())&&t.writeInt32(2,r),null!=(r=e.getLastSentPayment())&&t.writeMessage(3,r,proto.squeaknode.SentPayment.serializeBinaryToWriter)},proto.squeaknode.GetSentPaymentsForSqueakRequest.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.GetSentPaymentsForSqueakRequest.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,1,e)},proto.squeaknode.GetSentPaymentsForSqueakRequest.prototype.getLimit=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.squeaknode.GetSentPaymentsForSqueakRequest.prototype.setLimit=function(e){return n.Message.setProto3IntField(this,2,e)},proto.squeaknode.GetSentPaymentsForSqueakRequest.prototype.getLastSentPayment=function(){return n.Message.getWrapperField(this,proto.squeaknode.SentPayment,3)},proto.squeaknode.GetSentPaymentsForSqueakRequest.prototype.setLastSentPayment=function(e){return n.Message.setWrapperField(this,3,e)},proto.squeaknode.GetSentPaymentsForSqueakRequest.prototype.clearLastSentPayment=function(){return this.setLastSentPayment(void 0)},proto.squeaknode.GetSentPaymentsForSqueakRequest.prototype.hasLastSentPayment=function(){return null!=n.Message.getField(this,3)},proto.squeaknode.GetSentPaymentsForSqueakReply.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSentPaymentsForSqueakReply.prototype.toObject=function(e){return proto.squeaknode.GetSentPaymentsForSqueakReply.toObject(e,this)},proto.squeaknode.GetSentPaymentsForSqueakReply.toObject=function(e,t){var r={sentPaymentsList:n.Message.toObjectList(t.getSentPaymentsList(),proto.squeaknode.SentPayment.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetSentPaymentsForSqueakReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSentPaymentsForSqueakReply;return proto.squeaknode.GetSentPaymentsForSqueakReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSentPaymentsForSqueakReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.SentPayment;t.readMessage(r,proto.squeaknode.SentPayment.deserializeBinaryFromReader),e.addSentPayments(r)}else t.skipField()}return e},proto.squeaknode.GetSentPaymentsForSqueakReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSentPaymentsForSqueakReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSentPaymentsForSqueakReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getSentPaymentsList()).length>0&&t.writeRepeatedMessage(1,r,proto.squeaknode.SentPayment.serializeBinaryToWriter)},proto.squeaknode.GetSentPaymentsForSqueakReply.prototype.getSentPaymentsList=function(){return n.Message.getRepeatedWrapperField(this,proto.squeaknode.SentPayment,1)},proto.squeaknode.GetSentPaymentsForSqueakReply.prototype.setSentPaymentsList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.squeaknode.GetSentPaymentsForSqueakReply.prototype.addSentPayments=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.squeaknode.SentPayment,t)},proto.squeaknode.GetSentPaymentsForSqueakReply.prototype.clearSentPaymentsList=function(){return this.setSentPaymentsList([])},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSentPaymentsForPubkeyRequest.prototype.toObject=function(e){return proto.squeaknode.GetSentPaymentsForPubkeyRequest.toObject(e,this)},proto.squeaknode.GetSentPaymentsForPubkeyRequest.toObject=function(e,t){var r,o={pubkey:n.Message.getFieldWithDefault(t,1,""),limit:n.Message.getFieldWithDefault(t,2,0),lastSentPayment:(r=t.getLastSentPayment())&&proto.squeaknode.SentPayment.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.squeaknode.GetSentPaymentsForPubkeyRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSentPaymentsForPubkeyRequest;return proto.squeaknode.GetSentPaymentsForPubkeyRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSentPaymentsForPubkeyRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setPubkey(r);break;case 2:r=t.readInt32();e.setLimit(r);break;case 3:r=new proto.squeaknode.SentPayment;t.readMessage(r,proto.squeaknode.SentPayment.deserializeBinaryFromReader),e.setLastSentPayment(r);break;default:t.skipField()}}return e},proto.squeaknode.GetSentPaymentsForPubkeyRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSentPaymentsForPubkeyRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSentPaymentsForPubkeyRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPubkey()).length>0&&t.writeString(1,r),0!==(r=e.getLimit())&&t.writeInt32(2,r),null!=(r=e.getLastSentPayment())&&t.writeMessage(3,r,proto.squeaknode.SentPayment.serializeBinaryToWriter)},proto.squeaknode.GetSentPaymentsForPubkeyRequest.prototype.getPubkey=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.GetSentPaymentsForPubkeyRequest.prototype.setPubkey=function(e){return n.Message.setProto3StringField(this,1,e)},proto.squeaknode.GetSentPaymentsForPubkeyRequest.prototype.getLimit=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.squeaknode.GetSentPaymentsForPubkeyRequest.prototype.setLimit=function(e){return n.Message.setProto3IntField(this,2,e)},proto.squeaknode.GetSentPaymentsForPubkeyRequest.prototype.getLastSentPayment=function(){return n.Message.getWrapperField(this,proto.squeaknode.SentPayment,3)},proto.squeaknode.GetSentPaymentsForPubkeyRequest.prototype.setLastSentPayment=function(e){return n.Message.setWrapperField(this,3,e)},proto.squeaknode.GetSentPaymentsForPubkeyRequest.prototype.clearLastSentPayment=function(){return this.setLastSentPayment(void 0)},proto.squeaknode.GetSentPaymentsForPubkeyRequest.prototype.hasLastSentPayment=function(){return null!=n.Message.getField(this,3)},proto.squeaknode.GetSentPaymentsForPubkeyReply.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSentPaymentsForPubkeyReply.prototype.toObject=function(e){return proto.squeaknode.GetSentPaymentsForPubkeyReply.toObject(e,this)},proto.squeaknode.GetSentPaymentsForPubkeyReply.toObject=function(e,t){var r={sentPaymentsList:n.Message.toObjectList(t.getSentPaymentsList(),proto.squeaknode.SentPayment.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetSentPaymentsForPubkeyReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSentPaymentsForPubkeyReply;return proto.squeaknode.GetSentPaymentsForPubkeyReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSentPaymentsForPubkeyReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.SentPayment;t.readMessage(r,proto.squeaknode.SentPayment.deserializeBinaryFromReader),e.addSentPayments(r)}else t.skipField()}return e},proto.squeaknode.GetSentPaymentsForPubkeyReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSentPaymentsForPubkeyReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSentPaymentsForPubkeyReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getSentPaymentsList()).length>0&&t.writeRepeatedMessage(1,r,proto.squeaknode.SentPayment.serializeBinaryToWriter)},proto.squeaknode.GetSentPaymentsForPubkeyReply.prototype.getSentPaymentsList=function(){return n.Message.getRepeatedWrapperField(this,proto.squeaknode.SentPayment,1)},proto.squeaknode.GetSentPaymentsForPubkeyReply.prototype.setSentPaymentsList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.squeaknode.GetSentPaymentsForPubkeyReply.prototype.addSentPayments=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.squeaknode.SentPayment,t)},proto.squeaknode.GetSentPaymentsForPubkeyReply.prototype.clearSentPaymentsList=function(){return this.setSentPaymentsList([])},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSentPaymentsForPeerRequest.prototype.toObject=function(e){return proto.squeaknode.GetSentPaymentsForPeerRequest.toObject(e,this)},proto.squeaknode.GetSentPaymentsForPeerRequest.toObject=function(e,t){var r,o={peerAddress:(r=t.getPeerAddress())&&proto.squeaknode.PeerAddress.toObject(e,r),limit:n.Message.getFieldWithDefault(t,2,0),lastSentPayment:(r=t.getLastSentPayment())&&proto.squeaknode.SentPayment.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.squeaknode.GetSentPaymentsForPeerRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSentPaymentsForPeerRequest;return proto.squeaknode.GetSentPaymentsForPeerRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSentPaymentsForPeerRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.squeaknode.PeerAddress;t.readMessage(r,proto.squeaknode.PeerAddress.deserializeBinaryFromReader),e.setPeerAddress(r);break;case 2:r=t.readInt32();e.setLimit(r);break;case 3:r=new proto.squeaknode.SentPayment;t.readMessage(r,proto.squeaknode.SentPayment.deserializeBinaryFromReader),e.setLastSentPayment(r);break;default:t.skipField()}}return e},proto.squeaknode.GetSentPaymentsForPeerRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSentPaymentsForPeerRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSentPaymentsForPeerRequest.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getPeerAddress())&&t.writeMessage(1,r,proto.squeaknode.PeerAddress.serializeBinaryToWriter),0!==(r=e.getLimit())&&t.writeInt32(2,r),null!=(r=e.getLastSentPayment())&&t.writeMessage(3,r,proto.squeaknode.SentPayment.serializeBinaryToWriter)},proto.squeaknode.GetSentPaymentsForPeerRequest.prototype.getPeerAddress=function(){return n.Message.getWrapperField(this,proto.squeaknode.PeerAddress,1)},proto.squeaknode.GetSentPaymentsForPeerRequest.prototype.setPeerAddress=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.GetSentPaymentsForPeerRequest.prototype.clearPeerAddress=function(){return this.setPeerAddress(void 0)},proto.squeaknode.GetSentPaymentsForPeerRequest.prototype.hasPeerAddress=function(){return null!=n.Message.getField(this,1)},proto.squeaknode.GetSentPaymentsForPeerRequest.prototype.getLimit=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.squeaknode.GetSentPaymentsForPeerRequest.prototype.setLimit=function(e){return n.Message.setProto3IntField(this,2,e)},proto.squeaknode.GetSentPaymentsForPeerRequest.prototype.getLastSentPayment=function(){return n.Message.getWrapperField(this,proto.squeaknode.SentPayment,3)},proto.squeaknode.GetSentPaymentsForPeerRequest.prototype.setLastSentPayment=function(e){return n.Message.setWrapperField(this,3,e)},proto.squeaknode.GetSentPaymentsForPeerRequest.prototype.clearLastSentPayment=function(){return this.setLastSentPayment(void 0)},proto.squeaknode.GetSentPaymentsForPeerRequest.prototype.hasLastSentPayment=function(){return null!=n.Message.getField(this,3)},proto.squeaknode.GetSentPaymentsForPeerReply.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSentPaymentsForPeerReply.prototype.toObject=function(e){return proto.squeaknode.GetSentPaymentsForPeerReply.toObject(e,this)},proto.squeaknode.GetSentPaymentsForPeerReply.toObject=function(e,t){var r={sentPaymentsList:n.Message.toObjectList(t.getSentPaymentsList(),proto.squeaknode.SentPayment.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetSentPaymentsForPeerReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSentPaymentsForPeerReply;return proto.squeaknode.GetSentPaymentsForPeerReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSentPaymentsForPeerReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.SentPayment;t.readMessage(r,proto.squeaknode.SentPayment.deserializeBinaryFromReader),e.addSentPayments(r)}else t.skipField()}return e},proto.squeaknode.GetSentPaymentsForPeerReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSentPaymentsForPeerReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSentPaymentsForPeerReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getSentPaymentsList()).length>0&&t.writeRepeatedMessage(1,r,proto.squeaknode.SentPayment.serializeBinaryToWriter)},proto.squeaknode.GetSentPaymentsForPeerReply.prototype.getSentPaymentsList=function(){return n.Message.getRepeatedWrapperField(this,proto.squeaknode.SentPayment,1)},proto.squeaknode.GetSentPaymentsForPeerReply.prototype.setSentPaymentsList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.squeaknode.GetSentPaymentsForPeerReply.prototype.addSentPayments=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.squeaknode.SentPayment,t)},proto.squeaknode.GetSentPaymentsForPeerReply.prototype.clearSentPaymentsList=function(){return this.setSentPaymentsList([])},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSentPaymentRequest.prototype.toObject=function(e){return proto.squeaknode.GetSentPaymentRequest.toObject(e,this)},proto.squeaknode.GetSentPaymentRequest.toObject=function(e,t){var r={sentPaymentId:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetSentPaymentRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSentPaymentRequest;return proto.squeaknode.GetSentPaymentRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSentPaymentRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readInt32();e.setSentPaymentId(r)}else t.skipField()}return e},proto.squeaknode.GetSentPaymentRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSentPaymentRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSentPaymentRequest.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getSentPaymentId())&&t.writeInt32(1,r)},proto.squeaknode.GetSentPaymentRequest.prototype.getSentPaymentId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.GetSentPaymentRequest.prototype.setSentPaymentId=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSentPaymentReply.prototype.toObject=function(e){return proto.squeaknode.GetSentPaymentReply.toObject(e,this)},proto.squeaknode.GetSentPaymentReply.toObject=function(e,t){var r,n={sentPayment:(r=t.getSentPayment())&&proto.squeaknode.SentPayment.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.GetSentPaymentReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSentPaymentReply;return proto.squeaknode.GetSentPaymentReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSentPaymentReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.SentPayment;t.readMessage(r,proto.squeaknode.SentPayment.deserializeBinaryFromReader),e.setSentPayment(r)}else t.skipField()}return e},proto.squeaknode.GetSentPaymentReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSentPaymentReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSentPaymentReply.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getSentPayment())&&t.writeMessage(1,r,proto.squeaknode.SentPayment.serializeBinaryToWriter)},proto.squeaknode.GetSentPaymentReply.prototype.getSentPayment=function(){return n.Message.getWrapperField(this,proto.squeaknode.SentPayment,1)},proto.squeaknode.GetSentPaymentReply.prototype.setSentPayment=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.GetSentPaymentReply.prototype.clearSentPayment=function(){return this.setSentPayment(void 0)},proto.squeaknode.GetSentPaymentReply.prototype.hasSentPayment=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SentPayment.prototype.toObject=function(e){return proto.squeaknode.SentPayment.toObject(e,this)},proto.squeaknode.SentPayment.toObject=function(e,t){var r,o={sentPaymentId:n.Message.getFieldWithDefault(t,1,0),squeakHash:n.Message.getFieldWithDefault(t,2,""),paymentHash:n.Message.getFieldWithDefault(t,3,""),priceMsat:n.Message.getFieldWithDefault(t,4,0),nodePubkey:n.Message.getFieldWithDefault(t,5,""),valid:n.Message.getBooleanFieldWithDefault(t,6,!1),timeMs:n.Message.getFieldWithDefault(t,7,0),peerAddress:(r=t.getPeerAddress())&&proto.squeaknode.PeerAddress.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.squeaknode.SentPayment.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SentPayment;return proto.squeaknode.SentPayment.deserializeBinaryFromReader(r,t)},proto.squeaknode.SentPayment.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setSentPaymentId(r);break;case 2:r=t.readString();e.setSqueakHash(r);break;case 3:r=t.readString();e.setPaymentHash(r);break;case 4:r=t.readInt64();e.setPriceMsat(r);break;case 5:r=t.readString();e.setNodePubkey(r);break;case 6:r=t.readBool();e.setValid(r);break;case 7:r=t.readInt64();e.setTimeMs(r);break;case 8:r=new proto.squeaknode.PeerAddress;t.readMessage(r,proto.squeaknode.PeerAddress.deserializeBinaryFromReader),e.setPeerAddress(r);break;default:t.skipField()}}return e},proto.squeaknode.SentPayment.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SentPayment.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SentPayment.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getSentPaymentId())&&t.writeInt32(1,r),(r=e.getSqueakHash()).length>0&&t.writeString(2,r),(r=e.getPaymentHash()).length>0&&t.writeString(3,r),0!==(r=e.getPriceMsat())&&t.writeInt64(4,r),(r=e.getNodePubkey()).length>0&&t.writeString(5,r),(r=e.getValid())&&t.writeBool(6,r),0!==(r=e.getTimeMs())&&t.writeInt64(7,r),null!=(r=e.getPeerAddress())&&t.writeMessage(8,r,proto.squeaknode.PeerAddress.serializeBinaryToWriter)},proto.squeaknode.SentPayment.prototype.getSentPaymentId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.SentPayment.prototype.setSentPaymentId=function(e){return n.Message.setProto3IntField(this,1,e)},proto.squeaknode.SentPayment.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.squeaknode.SentPayment.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,2,e)},proto.squeaknode.SentPayment.prototype.getPaymentHash=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.squeaknode.SentPayment.prototype.setPaymentHash=function(e){return n.Message.setProto3StringField(this,3,e)},proto.squeaknode.SentPayment.prototype.getPriceMsat=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.squeaknode.SentPayment.prototype.setPriceMsat=function(e){return n.Message.setProto3IntField(this,4,e)},proto.squeaknode.SentPayment.prototype.getNodePubkey=function(){return n.Message.getFieldWithDefault(this,5,"")},proto.squeaknode.SentPayment.prototype.setNodePubkey=function(e){return n.Message.setProto3StringField(this,5,e)},proto.squeaknode.SentPayment.prototype.getValid=function(){return n.Message.getBooleanFieldWithDefault(this,6,!1)},proto.squeaknode.SentPayment.prototype.setValid=function(e){return n.Message.setProto3BooleanField(this,6,e)},proto.squeaknode.SentPayment.prototype.getTimeMs=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.squeaknode.SentPayment.prototype.setTimeMs=function(e){return n.Message.setProto3IntField(this,7,e)},proto.squeaknode.SentPayment.prototype.getPeerAddress=function(){return n.Message.getWrapperField(this,proto.squeaknode.PeerAddress,8)},proto.squeaknode.SentPayment.prototype.setPeerAddress=function(e){return n.Message.setWrapperField(this,8,e)},proto.squeaknode.SentPayment.prototype.clearPeerAddress=function(){return this.setPeerAddress(void 0)},proto.squeaknode.SentPayment.prototype.hasPeerAddress=function(){return null!=n.Message.getField(this,8)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DownloadSqueakRequest.prototype.toObject=function(e){return proto.squeaknode.DownloadSqueakRequest.toObject(e,this)},proto.squeaknode.DownloadSqueakRequest.toObject=function(e,t){var r={squeakHash:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.DownloadSqueakRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DownloadSqueakRequest;return proto.squeaknode.DownloadSqueakRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.DownloadSqueakRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setSqueakHash(r)}else t.skipField()}return e},proto.squeaknode.DownloadSqueakRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DownloadSqueakRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DownloadSqueakRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakHash()).length>0&&t.writeString(1,r)},proto.squeaknode.DownloadSqueakRequest.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.DownloadSqueakRequest.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DownloadSqueakReply.prototype.toObject=function(e){return proto.squeaknode.DownloadSqueakReply.toObject(e,this)},proto.squeaknode.DownloadSqueakReply.toObject=function(e,t){var r,n={downloadResult:(r=t.getDownloadResult())&&proto.squeaknode.DownloadResult.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.DownloadSqueakReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DownloadSqueakReply;return proto.squeaknode.DownloadSqueakReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.DownloadSqueakReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.DownloadResult;t.readMessage(r,proto.squeaknode.DownloadResult.deserializeBinaryFromReader),e.setDownloadResult(r)}else t.skipField()}return e},proto.squeaknode.DownloadSqueakReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DownloadSqueakReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DownloadSqueakReply.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getDownloadResult())&&t.writeMessage(1,r,proto.squeaknode.DownloadResult.serializeBinaryToWriter)},proto.squeaknode.DownloadSqueakReply.prototype.getDownloadResult=function(){return n.Message.getWrapperField(this,proto.squeaknode.DownloadResult,1)},proto.squeaknode.DownloadSqueakReply.prototype.setDownloadResult=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.DownloadSqueakReply.prototype.clearDownloadResult=function(){return this.setDownloadResult(void 0)},proto.squeaknode.DownloadSqueakReply.prototype.hasDownloadResult=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DownloadSqueakSecretKeyRequest.prototype.toObject=function(e){return proto.squeaknode.DownloadSqueakSecretKeyRequest.toObject(e,this)},proto.squeaknode.DownloadSqueakSecretKeyRequest.toObject=function(e,t){var r={squeakHash:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.DownloadSqueakSecretKeyRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DownloadSqueakSecretKeyRequest;return proto.squeaknode.DownloadSqueakSecretKeyRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.DownloadSqueakSecretKeyRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setSqueakHash(r)}else t.skipField()}return e},proto.squeaknode.DownloadSqueakSecretKeyRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DownloadSqueakSecretKeyRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DownloadSqueakSecretKeyRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakHash()).length>0&&t.writeString(1,r)},proto.squeaknode.DownloadSqueakSecretKeyRequest.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.DownloadSqueakSecretKeyRequest.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DownloadSqueakSecretKeyReply.prototype.toObject=function(e){return proto.squeaknode.DownloadSqueakSecretKeyReply.toObject(e,this)},proto.squeaknode.DownloadSqueakSecretKeyReply.toObject=function(e,t){var r,n={downloadResult:(r=t.getDownloadResult())&&proto.squeaknode.DownloadResult.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.DownloadSqueakSecretKeyReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DownloadSqueakSecretKeyReply;return proto.squeaknode.DownloadSqueakSecretKeyReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.DownloadSqueakSecretKeyReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.DownloadResult;t.readMessage(r,proto.squeaknode.DownloadResult.deserializeBinaryFromReader),e.setDownloadResult(r)}else t.skipField()}return e},proto.squeaknode.DownloadSqueakSecretKeyReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DownloadSqueakSecretKeyReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DownloadSqueakSecretKeyReply.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getDownloadResult())&&t.writeMessage(1,r,proto.squeaknode.DownloadResult.serializeBinaryToWriter)},proto.squeaknode.DownloadSqueakSecretKeyReply.prototype.getDownloadResult=function(){return n.Message.getWrapperField(this,proto.squeaknode.DownloadResult,1)},proto.squeaknode.DownloadSqueakSecretKeyReply.prototype.setDownloadResult=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.DownloadSqueakSecretKeyReply.prototype.clearDownloadResult=function(){return this.setDownloadResult(void 0)},proto.squeaknode.DownloadSqueakSecretKeyReply.prototype.hasDownloadResult=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DownloadOffersRequest.prototype.toObject=function(e){return proto.squeaknode.DownloadOffersRequest.toObject(e,this)},proto.squeaknode.DownloadOffersRequest.toObject=function(e,t){var r={squeakHash:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.DownloadOffersRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DownloadOffersRequest;return proto.squeaknode.DownloadOffersRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.DownloadOffersRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setSqueakHash(r)}else t.skipField()}return e},proto.squeaknode.DownloadOffersRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DownloadOffersRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.squeaknode.DownloadOffersRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakHash()).length>0&&t.writeString(1,r)},proto.squeaknode.DownloadOffersRequest.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.DownloadOffersRequest.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DownloadOffersReply.prototype.toObject=function(e){return proto.squeaknode.DownloadOffersReply.toObject(e,this)},proto.squeaknode.DownloadOffersReply.toObject=function(e,t){var r,n={downloadResult:(r=t.getDownloadResult())&&proto.squeaknode.DownloadResult.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.DownloadOffersReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DownloadOffersReply;return proto.squeaknode.DownloadOffersReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.DownloadOffersReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.DownloadResult;t.readMessage(r,proto.squeaknode.DownloadResult.deserializeBinaryFromReader),e.setDownloadResult(r)}else t.skipField()}return e},proto.squeaknode.DownloadOffersReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DownloadOffersReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DownloadOffersReply.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getDownloadResult())&&t.writeMessage(1,r,proto.squeaknode.DownloadResult.serializeBinaryToWriter)},proto.squeaknode.DownloadOffersReply.prototype.getDownloadResult=function(){return n.Message.getWrapperField(this,proto.squeaknode.DownloadResult,1)},proto.squeaknode.DownloadOffersReply.prototype.setDownloadResult=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.DownloadOffersReply.prototype.clearDownloadResult=function(){return this.setDownloadResult(void 0)},proto.squeaknode.DownloadOffersReply.prototype.hasDownloadResult=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DownloadRepliesRequest.prototype.toObject=function(e){return proto.squeaknode.DownloadRepliesRequest.toObject(e,this)},proto.squeaknode.DownloadRepliesRequest.toObject=function(e,t){var r={squeakHash:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.DownloadRepliesRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DownloadRepliesRequest;return proto.squeaknode.DownloadRepliesRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.DownloadRepliesRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setSqueakHash(r)}else t.skipField()}return e},proto.squeaknode.DownloadRepliesRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DownloadRepliesRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DownloadRepliesRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakHash()).length>0&&t.writeString(1,r)},proto.squeaknode.DownloadRepliesRequest.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.DownloadRepliesRequest.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DownloadRepliesReply.prototype.toObject=function(e){return proto.squeaknode.DownloadRepliesReply.toObject(e,this)},proto.squeaknode.DownloadRepliesReply.toObject=function(e,t){var r,n={downloadResult:(r=t.getDownloadResult())&&proto.squeaknode.DownloadResult.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.DownloadRepliesReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DownloadRepliesReply;return proto.squeaknode.DownloadRepliesReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.DownloadRepliesReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.DownloadResult;t.readMessage(r,proto.squeaknode.DownloadResult.deserializeBinaryFromReader),e.setDownloadResult(r)}else t.skipField()}return e},proto.squeaknode.DownloadRepliesReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DownloadRepliesReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DownloadRepliesReply.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getDownloadResult())&&t.writeMessage(1,r,proto.squeaknode.DownloadResult.serializeBinaryToWriter)},proto.squeaknode.DownloadRepliesReply.prototype.getDownloadResult=function(){return n.Message.getWrapperField(this,proto.squeaknode.DownloadResult,1)},proto.squeaknode.DownloadRepliesReply.prototype.setDownloadResult=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.DownloadRepliesReply.prototype.clearDownloadResult=function(){return this.setDownloadResult(void 0)},proto.squeaknode.DownloadRepliesReply.prototype.hasDownloadResult=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DownloadPubKeySqueaksRequest.prototype.toObject=function(e){return proto.squeaknode.DownloadPubKeySqueaksRequest.toObject(e,this)},proto.squeaknode.DownloadPubKeySqueaksRequest.toObject=function(e,t){var r={pubkey:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.DownloadPubKeySqueaksRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DownloadPubKeySqueaksRequest;return proto.squeaknode.DownloadPubKeySqueaksRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.DownloadPubKeySqueaksRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setPubkey(r)}else t.skipField()}return e},proto.squeaknode.DownloadPubKeySqueaksRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DownloadPubKeySqueaksRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DownloadPubKeySqueaksRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getPubkey()).length>0&&t.writeString(1,r)},proto.squeaknode.DownloadPubKeySqueaksRequest.prototype.getPubkey=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.DownloadPubKeySqueaksRequest.prototype.setPubkey=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DownloadPubKeySqueaksReply.prototype.toObject=function(e){return proto.squeaknode.DownloadPubKeySqueaksReply.toObject(e,this)},proto.squeaknode.DownloadPubKeySqueaksReply.toObject=function(e,t){var r,n={downloadResult:(r=t.getDownloadResult())&&proto.squeaknode.DownloadResult.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.DownloadPubKeySqueaksReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DownloadPubKeySqueaksReply;return proto.squeaknode.DownloadPubKeySqueaksReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.DownloadPubKeySqueaksReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.DownloadResult;t.readMessage(r,proto.squeaknode.DownloadResult.deserializeBinaryFromReader),e.setDownloadResult(r)}else t.skipField()}return e},proto.squeaknode.DownloadPubKeySqueaksReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DownloadPubKeySqueaksReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DownloadPubKeySqueaksReply.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getDownloadResult())&&t.writeMessage(1,r,proto.squeaknode.DownloadResult.serializeBinaryToWriter)},proto.squeaknode.DownloadPubKeySqueaksReply.prototype.getDownloadResult=function(){return n.Message.getWrapperField(this,proto.squeaknode.DownloadResult,1)},proto.squeaknode.DownloadPubKeySqueaksReply.prototype.setDownloadResult=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.DownloadPubKeySqueaksReply.prototype.clearDownloadResult=function(){return this.setDownloadResult(void 0)},proto.squeaknode.DownloadPubKeySqueaksReply.prototype.hasDownloadResult=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSentOffersRequest.prototype.toObject=function(e){return proto.squeaknode.GetSentOffersRequest.toObject(e,this)},proto.squeaknode.GetSentOffersRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetSentOffersRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSentOffersRequest;return proto.squeaknode.GetSentOffersRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSentOffersRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.GetSentOffersRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSentOffersRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSentOffersRequest.serializeBinaryToWriter=function(e,t){},proto.squeaknode.GetSentOffersReply.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSentOffersReply.prototype.toObject=function(e){return proto.squeaknode.GetSentOffersReply.toObject(e,this)},proto.squeaknode.GetSentOffersReply.toObject=function(e,t){var r={sentOffersList:n.Message.toObjectList(t.getSentOffersList(),proto.squeaknode.SentOffer.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetSentOffersReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSentOffersReply;return proto.squeaknode.GetSentOffersReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSentOffersReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.SentOffer;t.readMessage(r,proto.squeaknode.SentOffer.deserializeBinaryFromReader),e.addSentOffers(r)}else t.skipField()}return e},proto.squeaknode.GetSentOffersReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSentOffersReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSentOffersReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getSentOffersList()).length>0&&t.writeRepeatedMessage(1,r,proto.squeaknode.SentOffer.serializeBinaryToWriter)},proto.squeaknode.GetSentOffersReply.prototype.getSentOffersList=function(){return n.Message.getRepeatedWrapperField(this,proto.squeaknode.SentOffer,1)},proto.squeaknode.GetSentOffersReply.prototype.setSentOffersList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.squeaknode.GetSentOffersReply.prototype.addSentOffers=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.squeaknode.SentOffer,t)},proto.squeaknode.GetSentOffersReply.prototype.clearSentOffersList=function(){return this.setSentOffersList([])},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SentOffer.prototype.toObject=function(e){return proto.squeaknode.SentOffer.toObject(e,this)},proto.squeaknode.SentOffer.toObject=function(e,t){var r={sentOfferId:n.Message.getFieldWithDefault(t,1,0),squeakHash:n.Message.getFieldWithDefault(t,2,""),paymentHash:n.Message.getFieldWithDefault(t,3,""),priceMsat:n.Message.getFieldWithDefault(t,4,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.SentOffer.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SentOffer;return proto.squeaknode.SentOffer.deserializeBinaryFromReader(r,t)},proto.squeaknode.SentOffer.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setSentOfferId(r);break;case 2:r=t.readString();e.setSqueakHash(r);break;case 3:r=t.readString();e.setPaymentHash(r);break;case 4:r=t.readInt64();e.setPriceMsat(r);break;default:t.skipField()}}return e},proto.squeaknode.SentOffer.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SentOffer.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SentOffer.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getSentOfferId())&&t.writeInt32(1,r),(r=e.getSqueakHash()).length>0&&t.writeString(2,r),(r=e.getPaymentHash()).length>0&&t.writeString(3,r),0!==(r=e.getPriceMsat())&&t.writeInt64(4,r)},proto.squeaknode.SentOffer.prototype.getSentOfferId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.SentOffer.prototype.setSentOfferId=function(e){return n.Message.setProto3IntField(this,1,e)},proto.squeaknode.SentOffer.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.squeaknode.SentOffer.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,2,e)},proto.squeaknode.SentOffer.prototype.getPaymentHash=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.squeaknode.SentOffer.prototype.setPaymentHash=function(e){return n.Message.setProto3StringField(this,3,e)},proto.squeaknode.SentOffer.prototype.getPriceMsat=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.squeaknode.SentOffer.prototype.setPriceMsat=function(e){return n.Message.setProto3IntField(this,4,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetReceivedPaymentsRequest.prototype.toObject=function(e){return proto.squeaknode.GetReceivedPaymentsRequest.toObject(e,this)},proto.squeaknode.GetReceivedPaymentsRequest.toObject=function(e,t){var r,o={limit:n.Message.getFieldWithDefault(t,1,0),lastReceivedPayment:(r=t.getLastReceivedPayment())&&proto.squeaknode.ReceivedPayment.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.squeaknode.GetReceivedPaymentsRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetReceivedPaymentsRequest;return proto.squeaknode.GetReceivedPaymentsRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetReceivedPaymentsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setLimit(r);break;case 2:r=new proto.squeaknode.ReceivedPayment;t.readMessage(r,proto.squeaknode.ReceivedPayment.deserializeBinaryFromReader),e.setLastReceivedPayment(r);break;default:t.skipField()}}return e},proto.squeaknode.GetReceivedPaymentsRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetReceivedPaymentsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetReceivedPaymentsRequest.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getLimit())&&t.writeInt32(1,r),null!=(r=e.getLastReceivedPayment())&&t.writeMessage(2,r,proto.squeaknode.ReceivedPayment.serializeBinaryToWriter)},proto.squeaknode.GetReceivedPaymentsRequest.prototype.getLimit=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.GetReceivedPaymentsRequest.prototype.setLimit=function(e){return n.Message.setProto3IntField(this,1,e)},proto.squeaknode.GetReceivedPaymentsRequest.prototype.getLastReceivedPayment=function(){return n.Message.getWrapperField(this,proto.squeaknode.ReceivedPayment,2)},proto.squeaknode.GetReceivedPaymentsRequest.prototype.setLastReceivedPayment=function(e){return n.Message.setWrapperField(this,2,e)},proto.squeaknode.GetReceivedPaymentsRequest.prototype.clearLastReceivedPayment=function(){return this.setLastReceivedPayment(void 0)},proto.squeaknode.GetReceivedPaymentsRequest.prototype.hasLastReceivedPayment=function(){return null!=n.Message.getField(this,2)},proto.squeaknode.GetReceivedPaymentsReply.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetReceivedPaymentsReply.prototype.toObject=function(e){return proto.squeaknode.GetReceivedPaymentsReply.toObject(e,this)},proto.squeaknode.GetReceivedPaymentsReply.toObject=function(e,t){var r={receivedPaymentsList:n.Message.toObjectList(t.getReceivedPaymentsList(),proto.squeaknode.ReceivedPayment.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetReceivedPaymentsReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetReceivedPaymentsReply;return proto.squeaknode.GetReceivedPaymentsReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetReceivedPaymentsReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.ReceivedPayment;t.readMessage(r,proto.squeaknode.ReceivedPayment.deserializeBinaryFromReader),e.addReceivedPayments(r)}else t.skipField()}return e},proto.squeaknode.GetReceivedPaymentsReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetReceivedPaymentsReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetReceivedPaymentsReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getReceivedPaymentsList()).length>0&&t.writeRepeatedMessage(1,r,proto.squeaknode.ReceivedPayment.serializeBinaryToWriter)},proto.squeaknode.GetReceivedPaymentsReply.prototype.getReceivedPaymentsList=function(){return n.Message.getRepeatedWrapperField(this,proto.squeaknode.ReceivedPayment,1)},proto.squeaknode.GetReceivedPaymentsReply.prototype.setReceivedPaymentsList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.squeaknode.GetReceivedPaymentsReply.prototype.addReceivedPayments=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.squeaknode.ReceivedPayment,t)},proto.squeaknode.GetReceivedPaymentsReply.prototype.clearReceivedPaymentsList=function(){return this.setReceivedPaymentsList([])},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetReceivedPaymentsForSqueakRequest.prototype.toObject=function(e){return proto.squeaknode.GetReceivedPaymentsForSqueakRequest.toObject(e,this)},proto.squeaknode.GetReceivedPaymentsForSqueakRequest.toObject=function(e,t){var r,o={squeakHash:n.Message.getFieldWithDefault(t,1,""),limit:n.Message.getFieldWithDefault(t,2,0),lastReceivedPayment:(r=t.getLastReceivedPayment())&&proto.squeaknode.ReceivedPayment.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.squeaknode.GetReceivedPaymentsForSqueakRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetReceivedPaymentsForSqueakRequest;return proto.squeaknode.GetReceivedPaymentsForSqueakRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetReceivedPaymentsForSqueakRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setSqueakHash(r);break;case 2:r=t.readInt32();e.setLimit(r);break;case 3:r=new proto.squeaknode.ReceivedPayment;t.readMessage(r,proto.squeaknode.ReceivedPayment.deserializeBinaryFromReader),e.setLastReceivedPayment(r);break;default:t.skipField()}}return e},proto.squeaknode.GetReceivedPaymentsForSqueakRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetReceivedPaymentsForSqueakRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetReceivedPaymentsForSqueakRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSqueakHash()).length>0&&t.writeString(1,r),0!==(r=e.getLimit())&&t.writeInt32(2,r),null!=(r=e.getLastReceivedPayment())&&t.writeMessage(3,r,proto.squeaknode.ReceivedPayment.serializeBinaryToWriter)},proto.squeaknode.GetReceivedPaymentsForSqueakRequest.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.GetReceivedPaymentsForSqueakRequest.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,1,e)},proto.squeaknode.GetReceivedPaymentsForSqueakRequest.prototype.getLimit=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.squeaknode.GetReceivedPaymentsForSqueakRequest.prototype.setLimit=function(e){return n.Message.setProto3IntField(this,2,e)},proto.squeaknode.GetReceivedPaymentsForSqueakRequest.prototype.getLastReceivedPayment=function(){return n.Message.getWrapperField(this,proto.squeaknode.ReceivedPayment,3)},proto.squeaknode.GetReceivedPaymentsForSqueakRequest.prototype.setLastReceivedPayment=function(e){return n.Message.setWrapperField(this,3,e)},proto.squeaknode.GetReceivedPaymentsForSqueakRequest.prototype.clearLastReceivedPayment=function(){return this.setLastReceivedPayment(void 0)},proto.squeaknode.GetReceivedPaymentsForSqueakRequest.prototype.hasLastReceivedPayment=function(){return null!=n.Message.getField(this,3)},proto.squeaknode.GetReceivedPaymentsForSqueakReply.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetReceivedPaymentsForSqueakReply.prototype.toObject=function(e){return proto.squeaknode.GetReceivedPaymentsForSqueakReply.toObject(e,this)},proto.squeaknode.GetReceivedPaymentsForSqueakReply.toObject=function(e,t){var r={receivedPaymentsList:n.Message.toObjectList(t.getReceivedPaymentsList(),proto.squeaknode.ReceivedPayment.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetReceivedPaymentsForSqueakReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetReceivedPaymentsForSqueakReply;return proto.squeaknode.GetReceivedPaymentsForSqueakReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetReceivedPaymentsForSqueakReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.ReceivedPayment;t.readMessage(r,proto.squeaknode.ReceivedPayment.deserializeBinaryFromReader),e.addReceivedPayments(r)}else t.skipField()}return e},proto.squeaknode.GetReceivedPaymentsForSqueakReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetReceivedPaymentsForSqueakReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetReceivedPaymentsForSqueakReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getReceivedPaymentsList()).length>0&&t.writeRepeatedMessage(1,r,proto.squeaknode.ReceivedPayment.serializeBinaryToWriter)},proto.squeaknode.GetReceivedPaymentsForSqueakReply.prototype.getReceivedPaymentsList=function(){return n.Message.getRepeatedWrapperField(this,proto.squeaknode.ReceivedPayment,1)},proto.squeaknode.GetReceivedPaymentsForSqueakReply.prototype.setReceivedPaymentsList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.squeaknode.GetReceivedPaymentsForSqueakReply.prototype.addReceivedPayments=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.squeaknode.ReceivedPayment,t)},proto.squeaknode.GetReceivedPaymentsForSqueakReply.prototype.clearReceivedPaymentsList=function(){return this.setReceivedPaymentsList([])},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetReceivedPaymentsForPubkeyRequest.prototype.toObject=function(e){return proto.squeaknode.GetReceivedPaymentsForPubkeyRequest.toObject(e,this)},proto.squeaknode.GetReceivedPaymentsForPubkeyRequest.toObject=function(e,t){var r,o={pubkey:n.Message.getFieldWithDefault(t,1,""),limit:n.Message.getFieldWithDefault(t,2,0),lastReceivedPayment:(r=t.getLastReceivedPayment())&&proto.squeaknode.ReceivedPayment.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.squeaknode.GetReceivedPaymentsForPubkeyRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetReceivedPaymentsForPubkeyRequest;return proto.squeaknode.GetReceivedPaymentsForPubkeyRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetReceivedPaymentsForPubkeyRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setPubkey(r);break;case 2:r=t.readInt32();e.setLimit(r);break;case 3:r=new proto.squeaknode.ReceivedPayment;t.readMessage(r,proto.squeaknode.ReceivedPayment.deserializeBinaryFromReader),e.setLastReceivedPayment(r);break;default:t.skipField()}}return e},proto.squeaknode.GetReceivedPaymentsForPubkeyRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetReceivedPaymentsForPubkeyRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetReceivedPaymentsForPubkeyRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPubkey()).length>0&&t.writeString(1,r),0!==(r=e.getLimit())&&t.writeInt32(2,r),null!=(r=e.getLastReceivedPayment())&&t.writeMessage(3,r,proto.squeaknode.ReceivedPayment.serializeBinaryToWriter)},proto.squeaknode.GetReceivedPaymentsForPubkeyRequest.prototype.getPubkey=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.GetReceivedPaymentsForPubkeyRequest.prototype.setPubkey=function(e){return n.Message.setProto3StringField(this,1,e)},proto.squeaknode.GetReceivedPaymentsForPubkeyRequest.prototype.getLimit=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.squeaknode.GetReceivedPaymentsForPubkeyRequest.prototype.setLimit=function(e){return n.Message.setProto3IntField(this,2,e)},proto.squeaknode.GetReceivedPaymentsForPubkeyRequest.prototype.getLastReceivedPayment=function(){return n.Message.getWrapperField(this,proto.squeaknode.ReceivedPayment,3)},proto.squeaknode.GetReceivedPaymentsForPubkeyRequest.prototype.setLastReceivedPayment=function(e){return n.Message.setWrapperField(this,3,e)},proto.squeaknode.GetReceivedPaymentsForPubkeyRequest.prototype.clearLastReceivedPayment=function(){return this.setLastReceivedPayment(void 0)},proto.squeaknode.GetReceivedPaymentsForPubkeyRequest.prototype.hasLastReceivedPayment=function(){return null!=n.Message.getField(this,3)},proto.squeaknode.GetReceivedPaymentsForPubkeyReply.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetReceivedPaymentsForPubkeyReply.prototype.toObject=function(e){return proto.squeaknode.GetReceivedPaymentsForPubkeyReply.toObject(e,this)},proto.squeaknode.GetReceivedPaymentsForPubkeyReply.toObject=function(e,t){var r={receivedPaymentsList:n.Message.toObjectList(t.getReceivedPaymentsList(),proto.squeaknode.ReceivedPayment.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetReceivedPaymentsForPubkeyReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetReceivedPaymentsForPubkeyReply;return proto.squeaknode.GetReceivedPaymentsForPubkeyReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetReceivedPaymentsForPubkeyReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.ReceivedPayment;t.readMessage(r,proto.squeaknode.ReceivedPayment.deserializeBinaryFromReader),e.addReceivedPayments(r)}else t.skipField()}return e},proto.squeaknode.GetReceivedPaymentsForPubkeyReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetReceivedPaymentsForPubkeyReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetReceivedPaymentsForPubkeyReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getReceivedPaymentsList()).length>0&&t.writeRepeatedMessage(1,r,proto.squeaknode.ReceivedPayment.serializeBinaryToWriter)},proto.squeaknode.GetReceivedPaymentsForPubkeyReply.prototype.getReceivedPaymentsList=function(){return n.Message.getRepeatedWrapperField(this,proto.squeaknode.ReceivedPayment,1)},proto.squeaknode.GetReceivedPaymentsForPubkeyReply.prototype.setReceivedPaymentsList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.squeaknode.GetReceivedPaymentsForPubkeyReply.prototype.addReceivedPayments=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.squeaknode.ReceivedPayment,t)},proto.squeaknode.GetReceivedPaymentsForPubkeyReply.prototype.clearReceivedPaymentsList=function(){return this.setReceivedPaymentsList([])},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetReceivedPaymentsForPeerRequest.prototype.toObject=function(e){return proto.squeaknode.GetReceivedPaymentsForPeerRequest.toObject(e,this)},proto.squeaknode.GetReceivedPaymentsForPeerRequest.toObject=function(e,t){var r,o={peerAddress:(r=t.getPeerAddress())&&proto.squeaknode.PeerAddress.toObject(e,r),limit:n.Message.getFieldWithDefault(t,2,0),lastReceivedPayment:(r=t.getLastReceivedPayment())&&proto.squeaknode.ReceivedPayment.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.squeaknode.GetReceivedPaymentsForPeerRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetReceivedPaymentsForPeerRequest;return proto.squeaknode.GetReceivedPaymentsForPeerRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetReceivedPaymentsForPeerRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.squeaknode.PeerAddress;t.readMessage(r,proto.squeaknode.PeerAddress.deserializeBinaryFromReader),e.setPeerAddress(r);break;case 2:r=t.readInt32();e.setLimit(r);break;case 3:r=new proto.squeaknode.ReceivedPayment;t.readMessage(r,proto.squeaknode.ReceivedPayment.deserializeBinaryFromReader),e.setLastReceivedPayment(r);break;default:t.skipField()}}return e},proto.squeaknode.GetReceivedPaymentsForPeerRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetReceivedPaymentsForPeerRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetReceivedPaymentsForPeerRequest.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getPeerAddress())&&t.writeMessage(1,r,proto.squeaknode.PeerAddress.serializeBinaryToWriter),0!==(r=e.getLimit())&&t.writeInt32(2,r),null!=(r=e.getLastReceivedPayment())&&t.writeMessage(3,r,proto.squeaknode.ReceivedPayment.serializeBinaryToWriter)},proto.squeaknode.GetReceivedPaymentsForPeerRequest.prototype.getPeerAddress=function(){return n.Message.getWrapperField(this,proto.squeaknode.PeerAddress,1)},proto.squeaknode.GetReceivedPaymentsForPeerRequest.prototype.setPeerAddress=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.GetReceivedPaymentsForPeerRequest.prototype.clearPeerAddress=function(){return this.setPeerAddress(void 0)},proto.squeaknode.GetReceivedPaymentsForPeerRequest.prototype.hasPeerAddress=function(){return null!=n.Message.getField(this,1)},proto.squeaknode.GetReceivedPaymentsForPeerRequest.prototype.getLimit=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.squeaknode.GetReceivedPaymentsForPeerRequest.prototype.setLimit=function(e){return n.Message.setProto3IntField(this,2,e)},proto.squeaknode.GetReceivedPaymentsForPeerRequest.prototype.getLastReceivedPayment=function(){return n.Message.getWrapperField(this,proto.squeaknode.ReceivedPayment,3)},proto.squeaknode.GetReceivedPaymentsForPeerRequest.prototype.setLastReceivedPayment=function(e){return n.Message.setWrapperField(this,3,e)},proto.squeaknode.GetReceivedPaymentsForPeerRequest.prototype.clearLastReceivedPayment=function(){return this.setLastReceivedPayment(void 0)},proto.squeaknode.GetReceivedPaymentsForPeerRequest.prototype.hasLastReceivedPayment=function(){return null!=n.Message.getField(this,3)},proto.squeaknode.GetReceivedPaymentsForPeerReply.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetReceivedPaymentsForPeerReply.prototype.toObject=function(e){return proto.squeaknode.GetReceivedPaymentsForPeerReply.toObject(e,this)},proto.squeaknode.GetReceivedPaymentsForPeerReply.toObject=function(e,t){var r={receivedPaymentsList:n.Message.toObjectList(t.getReceivedPaymentsList(),proto.squeaknode.ReceivedPayment.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetReceivedPaymentsForPeerReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetReceivedPaymentsForPeerReply;return proto.squeaknode.GetReceivedPaymentsForPeerReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetReceivedPaymentsForPeerReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.ReceivedPayment;t.readMessage(r,proto.squeaknode.ReceivedPayment.deserializeBinaryFromReader),e.addReceivedPayments(r)}else t.skipField()}return e},proto.squeaknode.GetReceivedPaymentsForPeerReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetReceivedPaymentsForPeerReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetReceivedPaymentsForPeerReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getReceivedPaymentsList()).length>0&&t.writeRepeatedMessage(1,r,proto.squeaknode.ReceivedPayment.serializeBinaryToWriter)},proto.squeaknode.GetReceivedPaymentsForPeerReply.prototype.getReceivedPaymentsList=function(){return n.Message.getRepeatedWrapperField(this,proto.squeaknode.ReceivedPayment,1)},proto.squeaknode.GetReceivedPaymentsForPeerReply.prototype.setReceivedPaymentsList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.squeaknode.GetReceivedPaymentsForPeerReply.prototype.addReceivedPayments=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.squeaknode.ReceivedPayment,t)},proto.squeaknode.GetReceivedPaymentsForPeerReply.prototype.clearReceivedPaymentsList=function(){return this.setReceivedPaymentsList([])},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.ReceivedPayment.prototype.toObject=function(e){return proto.squeaknode.ReceivedPayment.toObject(e,this)},proto.squeaknode.ReceivedPayment.toObject=function(e,t){var r,o={receivedPaymentId:n.Message.getFieldWithDefault(t,1,0),squeakHash:n.Message.getFieldWithDefault(t,2,""),paymentHash:n.Message.getFieldWithDefault(t,3,""),priceMsat:n.Message.getFieldWithDefault(t,4,0),timeMs:n.Message.getFieldWithDefault(t,5,0),peerAddress:(r=t.getPeerAddress())&&proto.squeaknode.PeerAddress.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.squeaknode.ReceivedPayment.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.ReceivedPayment;return proto.squeaknode.ReceivedPayment.deserializeBinaryFromReader(r,t)},proto.squeaknode.ReceivedPayment.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setReceivedPaymentId(r);break;case 2:r=t.readString();e.setSqueakHash(r);break;case 3:r=t.readString();e.setPaymentHash(r);break;case 4:r=t.readInt64();e.setPriceMsat(r);break;case 5:r=t.readInt64();e.setTimeMs(r);break;case 6:r=new proto.squeaknode.PeerAddress;t.readMessage(r,proto.squeaknode.PeerAddress.deserializeBinaryFromReader),e.setPeerAddress(r);break;default:t.skipField()}}return e},proto.squeaknode.ReceivedPayment.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.ReceivedPayment.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.ReceivedPayment.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getReceivedPaymentId())&&t.writeInt32(1,r),(r=e.getSqueakHash()).length>0&&t.writeString(2,r),(r=e.getPaymentHash()).length>0&&t.writeString(3,r),0!==(r=e.getPriceMsat())&&t.writeInt64(4,r),0!==(r=e.getTimeMs())&&t.writeInt64(5,r),null!=(r=e.getPeerAddress())&&t.writeMessage(6,r,proto.squeaknode.PeerAddress.serializeBinaryToWriter)},proto.squeaknode.ReceivedPayment.prototype.getReceivedPaymentId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.ReceivedPayment.prototype.setReceivedPaymentId=function(e){return n.Message.setProto3IntField(this,1,e)},proto.squeaknode.ReceivedPayment.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.squeaknode.ReceivedPayment.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,2,e)},proto.squeaknode.ReceivedPayment.prototype.getPaymentHash=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.squeaknode.ReceivedPayment.prototype.setPaymentHash=function(e){return n.Message.setProto3StringField(this,3,e)},proto.squeaknode.ReceivedPayment.prototype.getPriceMsat=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.squeaknode.ReceivedPayment.prototype.setPriceMsat=function(e){return n.Message.setProto3IntField(this,4,e)},proto.squeaknode.ReceivedPayment.prototype.getTimeMs=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.squeaknode.ReceivedPayment.prototype.setTimeMs=function(e){return n.Message.setProto3IntField(this,5,e)},proto.squeaknode.ReceivedPayment.prototype.getPeerAddress=function(){return n.Message.getWrapperField(this,proto.squeaknode.PeerAddress,6)},proto.squeaknode.ReceivedPayment.prototype.setPeerAddress=function(e){return n.Message.setWrapperField(this,6,e)},proto.squeaknode.ReceivedPayment.prototype.clearPeerAddress=function(){return this.setPeerAddress(void 0)},proto.squeaknode.ReceivedPayment.prototype.hasPeerAddress=function(){return null!=n.Message.getField(this,6)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SubscribeReceivedPaymentsRequest.prototype.toObject=function(e){return proto.squeaknode.SubscribeReceivedPaymentsRequest.toObject(e,this)},proto.squeaknode.SubscribeReceivedPaymentsRequest.toObject=function(e,t){var r={paymentIndex:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.SubscribeReceivedPaymentsRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SubscribeReceivedPaymentsRequest;return proto.squeaknode.SubscribeReceivedPaymentsRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.SubscribeReceivedPaymentsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readInt64();e.setPaymentIndex(r)}else t.skipField()}return e},proto.squeaknode.SubscribeReceivedPaymentsRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SubscribeReceivedPaymentsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SubscribeReceivedPaymentsRequest.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getPaymentIndex())&&t.writeInt64(1,r)},proto.squeaknode.SubscribeReceivedPaymentsRequest.prototype.getPaymentIndex=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.SubscribeReceivedPaymentsRequest.prototype.setPaymentIndex=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetNetworkRequest.prototype.toObject=function(e){return proto.squeaknode.GetNetworkRequest.toObject(e,this)},proto.squeaknode.GetNetworkRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetNetworkRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetNetworkRequest;return proto.squeaknode.GetNetworkRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetNetworkRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.GetNetworkRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetNetworkRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetNetworkRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetNetworkReply.prototype.toObject=function(e){return proto.squeaknode.GetNetworkReply.toObject(e,this)},proto.squeaknode.GetNetworkReply.toObject=function(e,t){var r={network:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetNetworkReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetNetworkReply;return proto.squeaknode.GetNetworkReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetNetworkReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setNetwork(r)}else t.skipField()}return e},proto.squeaknode.GetNetworkReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetNetworkReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetNetworkReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getNetwork()).length>0&&t.writeString(1,r)},proto.squeaknode.GetNetworkReply.prototype.getNetwork=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.GetNetworkReply.prototype.setNetwork=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetPaymentSummaryRequest.prototype.toObject=function(e){return proto.squeaknode.GetPaymentSummaryRequest.toObject(e,this)},proto.squeaknode.GetPaymentSummaryRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetPaymentSummaryRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetPaymentSummaryRequest;return proto.squeaknode.GetPaymentSummaryRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetPaymentSummaryRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.GetPaymentSummaryRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetPaymentSummaryRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetPaymentSummaryRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetPaymentSummaryReply.prototype.toObject=function(e){return proto.squeaknode.GetPaymentSummaryReply.toObject(e,this)},proto.squeaknode.GetPaymentSummaryReply.toObject=function(e,t){var r,n={paymentSummary:(r=t.getPaymentSummary())&&proto.squeaknode.PaymentSummary.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.GetPaymentSummaryReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetPaymentSummaryReply;return proto.squeaknode.GetPaymentSummaryReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetPaymentSummaryReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.PaymentSummary;t.readMessage(r,proto.squeaknode.PaymentSummary.deserializeBinaryFromReader),e.setPaymentSummary(r)}else t.skipField()}return e},proto.squeaknode.GetPaymentSummaryReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetPaymentSummaryReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetPaymentSummaryReply.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getPaymentSummary())&&t.writeMessage(1,r,proto.squeaknode.PaymentSummary.serializeBinaryToWriter)},proto.squeaknode.GetPaymentSummaryReply.prototype.getPaymentSummary=function(){return n.Message.getWrapperField(this,proto.squeaknode.PaymentSummary,1)},proto.squeaknode.GetPaymentSummaryReply.prototype.setPaymentSummary=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.GetPaymentSummaryReply.prototype.clearPaymentSummary=function(){return this.setPaymentSummary(void 0)},proto.squeaknode.GetPaymentSummaryReply.prototype.hasPaymentSummary=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetPaymentSummaryForSqueakRequest.prototype.toObject=function(e){return proto.squeaknode.GetPaymentSummaryForSqueakRequest.toObject(e,this)},proto.squeaknode.GetPaymentSummaryForSqueakRequest.toObject=function(e,t){var r={squeakHash:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetPaymentSummaryForSqueakRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetPaymentSummaryForSqueakRequest;return proto.squeaknode.GetPaymentSummaryForSqueakRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetPaymentSummaryForSqueakRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setSqueakHash(r)}else t.skipField()}return e},proto.squeaknode.GetPaymentSummaryForSqueakRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetPaymentSummaryForSqueakRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetPaymentSummaryForSqueakRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakHash()).length>0&&t.writeString(1,r)},proto.squeaknode.GetPaymentSummaryForSqueakRequest.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.GetPaymentSummaryForSqueakRequest.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetPaymentSummaryForSqueakReply.prototype.toObject=function(e){return proto.squeaknode.GetPaymentSummaryForSqueakReply.toObject(e,this)},proto.squeaknode.GetPaymentSummaryForSqueakReply.toObject=function(e,t){var r,n={paymentSummary:(r=t.getPaymentSummary())&&proto.squeaknode.PaymentSummary.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.GetPaymentSummaryForSqueakReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetPaymentSummaryForSqueakReply;return proto.squeaknode.GetPaymentSummaryForSqueakReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetPaymentSummaryForSqueakReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.PaymentSummary;t.readMessage(r,proto.squeaknode.PaymentSummary.deserializeBinaryFromReader),e.setPaymentSummary(r)}else t.skipField()}return e},proto.squeaknode.GetPaymentSummaryForSqueakReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetPaymentSummaryForSqueakReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetPaymentSummaryForSqueakReply.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getPaymentSummary())&&t.writeMessage(1,r,proto.squeaknode.PaymentSummary.serializeBinaryToWriter)},proto.squeaknode.GetPaymentSummaryForSqueakReply.prototype.getPaymentSummary=function(){return n.Message.getWrapperField(this,proto.squeaknode.PaymentSummary,1)},proto.squeaknode.GetPaymentSummaryForSqueakReply.prototype.setPaymentSummary=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.GetPaymentSummaryForSqueakReply.prototype.clearPaymentSummary=function(){return this.setPaymentSummary(void 0)},proto.squeaknode.GetPaymentSummaryForSqueakReply.prototype.hasPaymentSummary=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetPaymentSummaryForPubkeyRequest.prototype.toObject=function(e){return proto.squeaknode.GetPaymentSummaryForPubkeyRequest.toObject(e,this)},proto.squeaknode.GetPaymentSummaryForPubkeyRequest.toObject=function(e,t){var r={pubkey:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetPaymentSummaryForPubkeyRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetPaymentSummaryForPubkeyRequest;return proto.squeaknode.GetPaymentSummaryForPubkeyRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetPaymentSummaryForPubkeyRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setPubkey(r)}else t.skipField()}return e},proto.squeaknode.GetPaymentSummaryForPubkeyRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetPaymentSummaryForPubkeyRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetPaymentSummaryForPubkeyRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getPubkey()).length>0&&t.writeString(1,r)},proto.squeaknode.GetPaymentSummaryForPubkeyRequest.prototype.getPubkey=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.GetPaymentSummaryForPubkeyRequest.prototype.setPubkey=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetPaymentSummaryForPubkeyReply.prototype.toObject=function(e){return proto.squeaknode.GetPaymentSummaryForPubkeyReply.toObject(e,this)},proto.squeaknode.GetPaymentSummaryForPubkeyReply.toObject=function(e,t){var r,n={paymentSummary:(r=t.getPaymentSummary())&&proto.squeaknode.PaymentSummary.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.GetPaymentSummaryForPubkeyReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetPaymentSummaryForPubkeyReply;return proto.squeaknode.GetPaymentSummaryForPubkeyReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetPaymentSummaryForPubkeyReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.PaymentSummary;t.readMessage(r,proto.squeaknode.PaymentSummary.deserializeBinaryFromReader),e.setPaymentSummary(r)}else t.skipField()}return e},proto.squeaknode.GetPaymentSummaryForPubkeyReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetPaymentSummaryForPubkeyReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetPaymentSummaryForPubkeyReply.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getPaymentSummary())&&t.writeMessage(1,r,proto.squeaknode.PaymentSummary.serializeBinaryToWriter)},proto.squeaknode.GetPaymentSummaryForPubkeyReply.prototype.getPaymentSummary=function(){return n.Message.getWrapperField(this,proto.squeaknode.PaymentSummary,1)},proto.squeaknode.GetPaymentSummaryForPubkeyReply.prototype.setPaymentSummary=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.GetPaymentSummaryForPubkeyReply.prototype.clearPaymentSummary=function(){return this.setPaymentSummary(void 0)},proto.squeaknode.GetPaymentSummaryForPubkeyReply.prototype.hasPaymentSummary=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetPaymentSummaryForPeerRequest.prototype.toObject=function(e){return proto.squeaknode.GetPaymentSummaryForPeerRequest.toObject(e,this)},proto.squeaknode.GetPaymentSummaryForPeerRequest.toObject=function(e,t){var r,n={peerAddress:(r=t.getPeerAddress())&&proto.squeaknode.PeerAddress.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.GetPaymentSummaryForPeerRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetPaymentSummaryForPeerRequest;return proto.squeaknode.GetPaymentSummaryForPeerRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetPaymentSummaryForPeerRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.PeerAddress;t.readMessage(r,proto.squeaknode.PeerAddress.deserializeBinaryFromReader),e.setPeerAddress(r)}else t.skipField()}return e},proto.squeaknode.GetPaymentSummaryForPeerRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetPaymentSummaryForPeerRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetPaymentSummaryForPeerRequest.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getPeerAddress())&&t.writeMessage(1,r,proto.squeaknode.PeerAddress.serializeBinaryToWriter)},proto.squeaknode.GetPaymentSummaryForPeerRequest.prototype.getPeerAddress=function(){return n.Message.getWrapperField(this,proto.squeaknode.PeerAddress,1)},proto.squeaknode.GetPaymentSummaryForPeerRequest.prototype.setPeerAddress=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.GetPaymentSummaryForPeerRequest.prototype.clearPeerAddress=function(){return this.setPeerAddress(void 0)},proto.squeaknode.GetPaymentSummaryForPeerRequest.prototype.hasPeerAddress=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetPaymentSummaryForPeerReply.prototype.toObject=function(e){return proto.squeaknode.GetPaymentSummaryForPeerReply.toObject(e,this)},proto.squeaknode.GetPaymentSummaryForPeerReply.toObject=function(e,t){var r,n={paymentSummary:(r=t.getPaymentSummary())&&proto.squeaknode.PaymentSummary.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.GetPaymentSummaryForPeerReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetPaymentSummaryForPeerReply;return proto.squeaknode.GetPaymentSummaryForPeerReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetPaymentSummaryForPeerReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.PaymentSummary;t.readMessage(r,proto.squeaknode.PaymentSummary.deserializeBinaryFromReader),e.setPaymentSummary(r)}else t.skipField()}return e},proto.squeaknode.GetPaymentSummaryForPeerReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetPaymentSummaryForPeerReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetPaymentSummaryForPeerReply.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getPaymentSummary())&&t.writeMessage(1,r,proto.squeaknode.PaymentSummary.serializeBinaryToWriter)},proto.squeaknode.GetPaymentSummaryForPeerReply.prototype.getPaymentSummary=function(){return n.Message.getWrapperField(this,proto.squeaknode.PaymentSummary,1)},proto.squeaknode.GetPaymentSummaryForPeerReply.prototype.setPaymentSummary=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.GetPaymentSummaryForPeerReply.prototype.clearPaymentSummary=function(){return this.setPaymentSummary(void 0)},proto.squeaknode.GetPaymentSummaryForPeerReply.prototype.hasPaymentSummary=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.PaymentSummary.prototype.toObject=function(e){return proto.squeaknode.PaymentSummary.toObject(e,this)},proto.squeaknode.PaymentSummary.toObject=function(e,t){var r={numReceivedPayments:n.Message.getFieldWithDefault(t,1,0),numSentPayments:n.Message.getFieldWithDefault(t,2,0),amountEarnedMsat:n.Message.getFieldWithDefault(t,3,0),amountSpentMsat:n.Message.getFieldWithDefault(t,4,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.PaymentSummary.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.PaymentSummary;return proto.squeaknode.PaymentSummary.deserializeBinaryFromReader(r,t)},proto.squeaknode.PaymentSummary.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setNumReceivedPayments(r);break;case 2:r=t.readInt32();e.setNumSentPayments(r);break;case 3:r=t.readInt64();e.setAmountEarnedMsat(r);break;case 4:r=t.readInt64();e.setAmountSpentMsat(r);break;default:t.skipField()}}return e},proto.squeaknode.PaymentSummary.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.PaymentSummary.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.PaymentSummary.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getNumReceivedPayments())&&t.writeInt32(1,r),0!==(r=e.getNumSentPayments())&&t.writeInt32(2,r),0!==(r=e.getAmountEarnedMsat())&&t.writeInt64(3,r),0!==(r=e.getAmountSpentMsat())&&t.writeInt64(4,r)},proto.squeaknode.PaymentSummary.prototype.getNumReceivedPayments=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.PaymentSummary.prototype.setNumReceivedPayments=function(e){return n.Message.setProto3IntField(this,1,e)},proto.squeaknode.PaymentSummary.prototype.getNumSentPayments=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.squeaknode.PaymentSummary.prototype.setNumSentPayments=function(e){return n.Message.setProto3IntField(this,2,e)},proto.squeaknode.PaymentSummary.prototype.getAmountEarnedMsat=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.squeaknode.PaymentSummary.prototype.setAmountEarnedMsat=function(e){return n.Message.setProto3IntField(this,3,e)},proto.squeaknode.PaymentSummary.prototype.getAmountSpentMsat=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.squeaknode.PaymentSummary.prototype.setAmountSpentMsat=function(e){return n.Message.setProto3IntField(this,4,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.ReprocessReceivedPaymentsRequest.prototype.toObject=function(e){return proto.squeaknode.ReprocessReceivedPaymentsRequest.toObject(e,this)},proto.squeaknode.ReprocessReceivedPaymentsRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.ReprocessReceivedPaymentsRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.ReprocessReceivedPaymentsRequest;return proto.squeaknode.ReprocessReceivedPaymentsRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.ReprocessReceivedPaymentsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.ReprocessReceivedPaymentsRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.ReprocessReceivedPaymentsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.ReprocessReceivedPaymentsRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.ReprocessReceivedPaymentsReply.prototype.toObject=function(e){return proto.squeaknode.ReprocessReceivedPaymentsReply.toObject(e,this)},proto.squeaknode.ReprocessReceivedPaymentsReply.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.ReprocessReceivedPaymentsReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.ReprocessReceivedPaymentsReply;return proto.squeaknode.ReprocessReceivedPaymentsReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.ReprocessReceivedPaymentsReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.ReprocessReceivedPaymentsReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.ReprocessReceivedPaymentsReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.ReprocessReceivedPaymentsReply.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.LikeSqueakRequest.prototype.toObject=function(e){return proto.squeaknode.LikeSqueakRequest.toObject(e,this)},proto.squeaknode.LikeSqueakRequest.toObject=function(e,t){var r={squeakHash:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.LikeSqueakRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.LikeSqueakRequest;return proto.squeaknode.LikeSqueakRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.LikeSqueakRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setSqueakHash(r)}else t.skipField()}return e},proto.squeaknode.LikeSqueakRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.LikeSqueakRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.LikeSqueakRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakHash()).length>0&&t.writeString(1,r)},proto.squeaknode.LikeSqueakRequest.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.LikeSqueakRequest.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.LikeSqueakReply.prototype.toObject=function(e){return proto.squeaknode.LikeSqueakReply.toObject(e,this)},proto.squeaknode.LikeSqueakReply.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.LikeSqueakReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.LikeSqueakReply;return proto.squeaknode.LikeSqueakReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.LikeSqueakReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.LikeSqueakReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.LikeSqueakReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.LikeSqueakReply.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.UnlikeSqueakRequest.prototype.toObject=function(e){return proto.squeaknode.UnlikeSqueakRequest.toObject(e,this)},proto.squeaknode.UnlikeSqueakRequest.toObject=function(e,t){var r={squeakHash:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.UnlikeSqueakRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.UnlikeSqueakRequest;return proto.squeaknode.UnlikeSqueakRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.UnlikeSqueakRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setSqueakHash(r)}else t.skipField()}return e},proto.squeaknode.UnlikeSqueakRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.UnlikeSqueakRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.UnlikeSqueakRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakHash()).length>0&&t.writeString(1,r)},proto.squeaknode.UnlikeSqueakRequest.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.UnlikeSqueakRequest.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.UnlikeSqueakReply.prototype.toObject=function(e){return proto.squeaknode.UnlikeSqueakReply.toObject(e,this)},proto.squeaknode.UnlikeSqueakReply.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.UnlikeSqueakReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.UnlikeSqueakReply;return proto.squeaknode.UnlikeSqueakReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.UnlikeSqueakReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.UnlikeSqueakReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.UnlikeSqueakReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.UnlikeSqueakReply.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetLikedSqueakDisplaysRequest.prototype.toObject=function(e){return proto.squeaknode.GetLikedSqueakDisplaysRequest.toObject(e,this)},proto.squeaknode.GetLikedSqueakDisplaysRequest.toObject=function(e,t){var r,o={limit:n.Message.getFieldWithDefault(t,1,0),lastEntry:(r=t.getLastEntry())&&proto.squeaknode.SqueakDisplayEntry.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.squeaknode.GetLikedSqueakDisplaysRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetLikedSqueakDisplaysRequest;return proto.squeaknode.GetLikedSqueakDisplaysRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetLikedSqueakDisplaysRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setLimit(r);break;case 2:r=new proto.squeaknode.SqueakDisplayEntry;t.readMessage(r,proto.squeaknode.SqueakDisplayEntry.deserializeBinaryFromReader),e.setLastEntry(r);break;default:t.skipField()}}return e},proto.squeaknode.GetLikedSqueakDisplaysRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetLikedSqueakDisplaysRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetLikedSqueakDisplaysRequest.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getLimit())&&t.writeInt32(1,r),null!=(r=e.getLastEntry())&&t.writeMessage(2,r,proto.squeaknode.SqueakDisplayEntry.serializeBinaryToWriter)},proto.squeaknode.GetLikedSqueakDisplaysRequest.prototype.getLimit=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.GetLikedSqueakDisplaysRequest.prototype.setLimit=function(e){return n.Message.setProto3IntField(this,1,e)},proto.squeaknode.GetLikedSqueakDisplaysRequest.prototype.getLastEntry=function(){return n.Message.getWrapperField(this,proto.squeaknode.SqueakDisplayEntry,2)},proto.squeaknode.GetLikedSqueakDisplaysRequest.prototype.setLastEntry=function(e){return n.Message.setWrapperField(this,2,e)},proto.squeaknode.GetLikedSqueakDisplaysRequest.prototype.clearLastEntry=function(){return this.setLastEntry(void 0)},proto.squeaknode.GetLikedSqueakDisplaysRequest.prototype.hasLastEntry=function(){return null!=n.Message.getField(this,2)},proto.squeaknode.GetLikedSqueakDisplaysReply.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetLikedSqueakDisplaysReply.prototype.toObject=function(e){return proto.squeaknode.GetLikedSqueakDisplaysReply.toObject(e,this)},proto.squeaknode.GetLikedSqueakDisplaysReply.toObject=function(e,t){var r={squeakDisplayEntriesList:n.Message.toObjectList(t.getSqueakDisplayEntriesList(),proto.squeaknode.SqueakDisplayEntry.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetLikedSqueakDisplaysReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetLikedSqueakDisplaysReply;return proto.squeaknode.GetLikedSqueakDisplaysReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetLikedSqueakDisplaysReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.SqueakDisplayEntry;t.readMessage(r,proto.squeaknode.SqueakDisplayEntry.deserializeBinaryFromReader),e.addSqueakDisplayEntries(r)}else t.skipField()}return e},proto.squeaknode.GetLikedSqueakDisplaysReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetLikedSqueakDisplaysReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetLikedSqueakDisplaysReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakDisplayEntriesList()).length>0&&t.writeRepeatedMessage(1,r,proto.squeaknode.SqueakDisplayEntry.serializeBinaryToWriter)},proto.squeaknode.GetLikedSqueakDisplaysReply.prototype.getSqueakDisplayEntriesList=function(){return n.Message.getRepeatedWrapperField(this,proto.squeaknode.SqueakDisplayEntry,1)},proto.squeaknode.GetLikedSqueakDisplaysReply.prototype.setSqueakDisplayEntriesList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.squeaknode.GetLikedSqueakDisplaysReply.prototype.addSqueakDisplayEntries=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.squeaknode.SqueakDisplayEntry,t)},proto.squeaknode.GetLikedSqueakDisplaysReply.prototype.clearSqueakDisplayEntriesList=function(){return this.setSqueakDisplayEntriesList([])},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.ConnectPeerRequest.prototype.toObject=function(e){return proto.squeaknode.ConnectPeerRequest.toObject(e,this)},proto.squeaknode.ConnectPeerRequest.toObject=function(e,t){var r,n={peerAddress:(r=t.getPeerAddress())&&proto.squeaknode.PeerAddress.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.ConnectPeerRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.ConnectPeerRequest;return proto.squeaknode.ConnectPeerRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.ConnectPeerRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.PeerAddress;t.readMessage(r,proto.squeaknode.PeerAddress.deserializeBinaryFromReader),e.setPeerAddress(r)}else t.skipField()}return e},proto.squeaknode.ConnectPeerRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.ConnectPeerRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.ConnectPeerRequest.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getPeerAddress())&&t.writeMessage(1,r,proto.squeaknode.PeerAddress.serializeBinaryToWriter)},proto.squeaknode.ConnectPeerRequest.prototype.getPeerAddress=function(){return n.Message.getWrapperField(this,proto.squeaknode.PeerAddress,1)},proto.squeaknode.ConnectPeerRequest.prototype.setPeerAddress=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.ConnectPeerRequest.prototype.clearPeerAddress=function(){return this.setPeerAddress(void 0)},proto.squeaknode.ConnectPeerRequest.prototype.hasPeerAddress=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.ConnectPeerReply.prototype.toObject=function(e){return proto.squeaknode.ConnectPeerReply.toObject(e,this)},proto.squeaknode.ConnectPeerReply.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.ConnectPeerReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.ConnectPeerReply;return proto.squeaknode.ConnectPeerReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.ConnectPeerReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.ConnectPeerReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.ConnectPeerReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.ConnectPeerReply.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.ConnectedPeer.prototype.toObject=function(e){return proto.squeaknode.ConnectedPeer.toObject(e,this)},proto.squeaknode.ConnectedPeer.toObject=function(e,t){var r,o={peerAddress:(r=t.getPeerAddress())&&proto.squeaknode.PeerAddress.toObject(e,r),connectTimeS:n.Message.getFieldWithDefault(t,2,0),lastMessageReceivedTimeS:n.Message.getFieldWithDefault(t,3,0),numberMessagesReceived:n.Message.getFieldWithDefault(t,4,0),numberBytesReceived:n.Message.getFieldWithDefault(t,5,0),numberMessagesSent:n.Message.getFieldWithDefault(t,6,0),numberBytesSent:n.Message.getFieldWithDefault(t,7,0),isPeerSaved:n.Message.getBooleanFieldWithDefault(t,8,!1),savedPeer:(r=t.getSavedPeer())&&proto.squeaknode.SqueakPeer.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.squeaknode.ConnectedPeer.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.ConnectedPeer;return proto.squeaknode.ConnectedPeer.deserializeBinaryFromReader(r,t)},proto.squeaknode.ConnectedPeer.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.squeaknode.PeerAddress;t.readMessage(r,proto.squeaknode.PeerAddress.deserializeBinaryFromReader),e.setPeerAddress(r);break;case 2:r=t.readInt64();e.setConnectTimeS(r);break;case 3:r=t.readInt64();e.setLastMessageReceivedTimeS(r);break;case 4:r=t.readInt64();e.setNumberMessagesReceived(r);break;case 5:r=t.readInt64();e.setNumberBytesReceived(r);break;case 6:r=t.readInt64();e.setNumberMessagesSent(r);break;case 7:r=t.readInt64();e.setNumberBytesSent(r);break;case 8:r=t.readBool();e.setIsPeerSaved(r);break;case 9:r=new proto.squeaknode.SqueakPeer;t.readMessage(r,proto.squeaknode.SqueakPeer.deserializeBinaryFromReader),e.setSavedPeer(r);break;default:t.skipField()}}return e},proto.squeaknode.ConnectedPeer.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.ConnectedPeer.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.ConnectedPeer.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getPeerAddress())&&t.writeMessage(1,r,proto.squeaknode.PeerAddress.serializeBinaryToWriter),0!==(r=e.getConnectTimeS())&&t.writeInt64(2,r),0!==(r=e.getLastMessageReceivedTimeS())&&t.writeInt64(3,r),0!==(r=e.getNumberMessagesReceived())&&t.writeInt64(4,r),0!==(r=e.getNumberBytesReceived())&&t.writeInt64(5,r),0!==(r=e.getNumberMessagesSent())&&t.writeInt64(6,r),0!==(r=e.getNumberBytesSent())&&t.writeInt64(7,r),(r=e.getIsPeerSaved())&&t.writeBool(8,r),null!=(r=e.getSavedPeer())&&t.writeMessage(9,r,proto.squeaknode.SqueakPeer.serializeBinaryToWriter)},proto.squeaknode.ConnectedPeer.prototype.getPeerAddress=function(){return n.Message.getWrapperField(this,proto.squeaknode.PeerAddress,1)},proto.squeaknode.ConnectedPeer.prototype.setPeerAddress=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.ConnectedPeer.prototype.clearPeerAddress=function(){return this.setPeerAddress(void 0)},proto.squeaknode.ConnectedPeer.prototype.hasPeerAddress=function(){return null!=n.Message.getField(this,1)},proto.squeaknode.ConnectedPeer.prototype.getConnectTimeS=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.squeaknode.ConnectedPeer.prototype.setConnectTimeS=function(e){return n.Message.setProto3IntField(this,2,e)},proto.squeaknode.ConnectedPeer.prototype.getLastMessageReceivedTimeS=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.squeaknode.ConnectedPeer.prototype.setLastMessageReceivedTimeS=function(e){return n.Message.setProto3IntField(this,3,e)},proto.squeaknode.ConnectedPeer.prototype.getNumberMessagesReceived=function(){return n.Message.getFieldWithDefault(this,4,0)},proto.squeaknode.ConnectedPeer.prototype.setNumberMessagesReceived=function(e){return n.Message.setProto3IntField(this,4,e)},proto.squeaknode.ConnectedPeer.prototype.getNumberBytesReceived=function(){return n.Message.getFieldWithDefault(this,5,0)},proto.squeaknode.ConnectedPeer.prototype.setNumberBytesReceived=function(e){return n.Message.setProto3IntField(this,5,e)},proto.squeaknode.ConnectedPeer.prototype.getNumberMessagesSent=function(){return n.Message.getFieldWithDefault(this,6,0)},proto.squeaknode.ConnectedPeer.prototype.setNumberMessagesSent=function(e){return n.Message.setProto3IntField(this,6,e)},proto.squeaknode.ConnectedPeer.prototype.getNumberBytesSent=function(){return n.Message.getFieldWithDefault(this,7,0)},proto.squeaknode.ConnectedPeer.prototype.setNumberBytesSent=function(e){return n.Message.setProto3IntField(this,7,e)},proto.squeaknode.ConnectedPeer.prototype.getIsPeerSaved=function(){return n.Message.getBooleanFieldWithDefault(this,8,!1)},proto.squeaknode.ConnectedPeer.prototype.setIsPeerSaved=function(e){return n.Message.setProto3BooleanField(this,8,e)},proto.squeaknode.ConnectedPeer.prototype.getSavedPeer=function(){return n.Message.getWrapperField(this,proto.squeaknode.SqueakPeer,9)},proto.squeaknode.ConnectedPeer.prototype.setSavedPeer=function(e){return n.Message.setWrapperField(this,9,e)},proto.squeaknode.ConnectedPeer.prototype.clearSavedPeer=function(){return this.setSavedPeer(void 0)},proto.squeaknode.ConnectedPeer.prototype.hasSavedPeer=function(){return null!=n.Message.getField(this,9)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetConnectedPeersRequest.prototype.toObject=function(e){return proto.squeaknode.GetConnectedPeersRequest.toObject(e,this)},proto.squeaknode.GetConnectedPeersRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetConnectedPeersRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetConnectedPeersRequest;return proto.squeaknode.GetConnectedPeersRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetConnectedPeersRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.GetConnectedPeersRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetConnectedPeersRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetConnectedPeersRequest.serializeBinaryToWriter=function(e,t){},proto.squeaknode.GetConnectedPeersReply.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetConnectedPeersReply.prototype.toObject=function(e){return proto.squeaknode.GetConnectedPeersReply.toObject(e,this)},proto.squeaknode.GetConnectedPeersReply.toObject=function(e,t){var r={connectedPeersList:n.Message.toObjectList(t.getConnectedPeersList(),proto.squeaknode.ConnectedPeer.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetConnectedPeersReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetConnectedPeersReply;return proto.squeaknode.GetConnectedPeersReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetConnectedPeersReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.ConnectedPeer;t.readMessage(r,proto.squeaknode.ConnectedPeer.deserializeBinaryFromReader),e.addConnectedPeers(r)}else t.skipField()}return e},proto.squeaknode.GetConnectedPeersReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetConnectedPeersReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetConnectedPeersReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getConnectedPeersList()).length>0&&t.writeRepeatedMessage(1,r,proto.squeaknode.ConnectedPeer.serializeBinaryToWriter)},proto.squeaknode.GetConnectedPeersReply.prototype.getConnectedPeersList=function(){return n.Message.getRepeatedWrapperField(this,proto.squeaknode.ConnectedPeer,1)},proto.squeaknode.GetConnectedPeersReply.prototype.setConnectedPeersList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.squeaknode.GetConnectedPeersReply.prototype.addConnectedPeers=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.squeaknode.ConnectedPeer,t)},proto.squeaknode.GetConnectedPeersReply.prototype.clearConnectedPeersList=function(){return this.setConnectedPeersList([])},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetConnectedPeerRequest.prototype.toObject=function(e){return proto.squeaknode.GetConnectedPeerRequest.toObject(e,this)},proto.squeaknode.GetConnectedPeerRequest.toObject=function(e,t){var r,n={peerAddress:(r=t.getPeerAddress())&&proto.squeaknode.PeerAddress.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.GetConnectedPeerRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetConnectedPeerRequest;return proto.squeaknode.GetConnectedPeerRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetConnectedPeerRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.PeerAddress;t.readMessage(r,proto.squeaknode.PeerAddress.deserializeBinaryFromReader),e.setPeerAddress(r)}else t.skipField()}return e},proto.squeaknode.GetConnectedPeerRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetConnectedPeerRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetConnectedPeerRequest.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getPeerAddress())&&t.writeMessage(1,r,proto.squeaknode.PeerAddress.serializeBinaryToWriter)},proto.squeaknode.GetConnectedPeerRequest.prototype.getPeerAddress=function(){return n.Message.getWrapperField(this,proto.squeaknode.PeerAddress,1)},proto.squeaknode.GetConnectedPeerRequest.prototype.setPeerAddress=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.GetConnectedPeerRequest.prototype.clearPeerAddress=function(){return this.setPeerAddress(void 0)},proto.squeaknode.GetConnectedPeerRequest.prototype.hasPeerAddress=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetConnectedPeerReply.prototype.toObject=function(e){return proto.squeaknode.GetConnectedPeerReply.toObject(e,this)},proto.squeaknode.GetConnectedPeerReply.toObject=function(e,t){var r,n={connectedPeer:(r=t.getConnectedPeer())&&proto.squeaknode.ConnectedPeer.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.GetConnectedPeerReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetConnectedPeerReply;return proto.squeaknode.GetConnectedPeerReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetConnectedPeerReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.ConnectedPeer;t.readMessage(r,proto.squeaknode.ConnectedPeer.deserializeBinaryFromReader),e.setConnectedPeer(r)}else t.skipField()}return e},proto.squeaknode.GetConnectedPeerReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetConnectedPeerReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetConnectedPeerReply.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getConnectedPeer())&&t.writeMessage(1,r,proto.squeaknode.ConnectedPeer.serializeBinaryToWriter)},proto.squeaknode.GetConnectedPeerReply.prototype.getConnectedPeer=function(){return n.Message.getWrapperField(this,proto.squeaknode.ConnectedPeer,1)},proto.squeaknode.GetConnectedPeerReply.prototype.setConnectedPeer=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.GetConnectedPeerReply.prototype.clearConnectedPeer=function(){return this.setConnectedPeer(void 0)},proto.squeaknode.GetConnectedPeerReply.prototype.hasConnectedPeer=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DisconnectPeerRequest.prototype.toObject=function(e){return proto.squeaknode.DisconnectPeerRequest.toObject(e,this)},proto.squeaknode.DisconnectPeerRequest.toObject=function(e,t){var r,n={peerAddress:(r=t.getPeerAddress())&&proto.squeaknode.PeerAddress.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.DisconnectPeerRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DisconnectPeerRequest;return proto.squeaknode.DisconnectPeerRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.DisconnectPeerRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.PeerAddress;t.readMessage(r,proto.squeaknode.PeerAddress.deserializeBinaryFromReader),e.setPeerAddress(r)}else t.skipField()}return e},proto.squeaknode.DisconnectPeerRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DisconnectPeerRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DisconnectPeerRequest.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getPeerAddress())&&t.writeMessage(1,r,proto.squeaknode.PeerAddress.serializeBinaryToWriter)},proto.squeaknode.DisconnectPeerRequest.prototype.getPeerAddress=function(){return n.Message.getWrapperField(this,proto.squeaknode.PeerAddress,1)},proto.squeaknode.DisconnectPeerRequest.prototype.setPeerAddress=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.DisconnectPeerRequest.prototype.clearPeerAddress=function(){return this.setPeerAddress(void 0)},proto.squeaknode.DisconnectPeerRequest.prototype.hasPeerAddress=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DisconnectPeerReply.prototype.toObject=function(e){return proto.squeaknode.DisconnectPeerReply.toObject(e,this)},proto.squeaknode.DisconnectPeerReply.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.DisconnectPeerReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DisconnectPeerReply;return proto.squeaknode.DisconnectPeerReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.DisconnectPeerReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.DisconnectPeerReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DisconnectPeerReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DisconnectPeerReply.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SubscribeConnectedPeersRequest.prototype.toObject=function(e){return proto.squeaknode.SubscribeConnectedPeersRequest.toObject(e,this)},proto.squeaknode.SubscribeConnectedPeersRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.SubscribeConnectedPeersRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SubscribeConnectedPeersRequest;return proto.squeaknode.SubscribeConnectedPeersRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.SubscribeConnectedPeersRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.SubscribeConnectedPeersRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SubscribeConnectedPeersRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SubscribeConnectedPeersRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SubscribeConnectedPeerRequest.prototype.toObject=function(e){return proto.squeaknode.SubscribeConnectedPeerRequest.toObject(e,this)},proto.squeaknode.SubscribeConnectedPeerRequest.toObject=function(e,t){var r,n={peerAddress:(r=t.getPeerAddress())&&proto.squeaknode.PeerAddress.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.SubscribeConnectedPeerRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SubscribeConnectedPeerRequest;return proto.squeaknode.SubscribeConnectedPeerRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.SubscribeConnectedPeerRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.PeerAddress;t.readMessage(r,proto.squeaknode.PeerAddress.deserializeBinaryFromReader),e.setPeerAddress(r)}else t.skipField()}return e},proto.squeaknode.SubscribeConnectedPeerRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SubscribeConnectedPeerRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SubscribeConnectedPeerRequest.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getPeerAddress())&&t.writeMessage(1,r,proto.squeaknode.PeerAddress.serializeBinaryToWriter)},proto.squeaknode.SubscribeConnectedPeerRequest.prototype.getPeerAddress=function(){return n.Message.getWrapperField(this,proto.squeaknode.PeerAddress,1)},proto.squeaknode.SubscribeConnectedPeerRequest.prototype.setPeerAddress=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.SubscribeConnectedPeerRequest.prototype.clearPeerAddress=function(){return this.setPeerAddress(void 0)},proto.squeaknode.SubscribeConnectedPeerRequest.prototype.hasPeerAddress=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.PeerAddress.prototype.toObject=function(e){return proto.squeaknode.PeerAddress.toObject(e,this)},proto.squeaknode.PeerAddress.toObject=function(e,t){var r={network:n.Message.getFieldWithDefault(t,1,""),host:n.Message.getFieldWithDefault(t,2,""),port:n.Message.getFieldWithDefault(t,3,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.PeerAddress.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.PeerAddress;return proto.squeaknode.PeerAddress.deserializeBinaryFromReader(r,t)},proto.squeaknode.PeerAddress.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setNetwork(r);break;case 2:r=t.readString();e.setHost(r);break;case 3:r=t.readInt32();e.setPort(r);break;default:t.skipField()}}return e},proto.squeaknode.PeerAddress.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.PeerAddress.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.PeerAddress.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getNetwork()).length>0&&t.writeString(1,r),(r=e.getHost()).length>0&&t.writeString(2,r),0!==(r=e.getPort())&&t.writeInt32(3,r)},proto.squeaknode.PeerAddress.prototype.getNetwork=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.PeerAddress.prototype.setNetwork=function(e){return n.Message.setProto3StringField(this,1,e)},proto.squeaknode.PeerAddress.prototype.getHost=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.squeaknode.PeerAddress.prototype.setHost=function(e){return n.Message.setProto3StringField(this,2,e)},proto.squeaknode.PeerAddress.prototype.getPort=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.squeaknode.PeerAddress.prototype.setPort=function(e){return n.Message.setProto3IntField(this,3,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SubscribeBuyOffersRequest.prototype.toObject=function(e){return proto.squeaknode.SubscribeBuyOffersRequest.toObject(e,this)},proto.squeaknode.SubscribeBuyOffersRequest.toObject=function(e,t){var r={squeakHash:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.SubscribeBuyOffersRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SubscribeBuyOffersRequest;return proto.squeaknode.SubscribeBuyOffersRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.SubscribeBuyOffersRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setSqueakHash(r)}else t.skipField()}return e},proto.squeaknode.SubscribeBuyOffersRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SubscribeBuyOffersRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SubscribeBuyOffersRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakHash()).length>0&&t.writeString(1,r)},proto.squeaknode.SubscribeBuyOffersRequest.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.SubscribeBuyOffersRequest.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SubscribeSqueakDisplayRequest.prototype.toObject=function(e){return proto.squeaknode.SubscribeSqueakDisplayRequest.toObject(e,this)},proto.squeaknode.SubscribeSqueakDisplayRequest.toObject=function(e,t){var r={squeakHash:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.SubscribeSqueakDisplayRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SubscribeSqueakDisplayRequest;return proto.squeaknode.SubscribeSqueakDisplayRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.SubscribeSqueakDisplayRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setSqueakHash(r)}else t.skipField()}return e},proto.squeaknode.SubscribeSqueakDisplayRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SubscribeSqueakDisplayRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SubscribeSqueakDisplayRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakHash()).length>0&&t.writeString(1,r)},proto.squeaknode.SubscribeSqueakDisplayRequest.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.SubscribeSqueakDisplayRequest.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SubscribeReplySqueakDisplaysRequest.prototype.toObject=function(e){return proto.squeaknode.SubscribeReplySqueakDisplaysRequest.toObject(e,this)},proto.squeaknode.SubscribeReplySqueakDisplaysRequest.toObject=function(e,t){var r={squeakHash:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.SubscribeReplySqueakDisplaysRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SubscribeReplySqueakDisplaysRequest;return proto.squeaknode.SubscribeReplySqueakDisplaysRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.SubscribeReplySqueakDisplaysRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setSqueakHash(r)}else t.skipField()}return e},proto.squeaknode.SubscribeReplySqueakDisplaysRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SubscribeReplySqueakDisplaysRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SubscribeReplySqueakDisplaysRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakHash()).length>0&&t.writeString(1,r)},proto.squeaknode.SubscribeReplySqueakDisplaysRequest.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.SubscribeReplySqueakDisplaysRequest.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SubscribePubKeySqueakDisplaysRequest.prototype.toObject=function(e){return proto.squeaknode.SubscribePubKeySqueakDisplaysRequest.toObject(e,this)},proto.squeaknode.SubscribePubKeySqueakDisplaysRequest.toObject=function(e,t){var r={pubkey:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.SubscribePubKeySqueakDisplaysRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SubscribePubKeySqueakDisplaysRequest;return proto.squeaknode.SubscribePubKeySqueakDisplaysRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.SubscribePubKeySqueakDisplaysRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setPubkey(r)}else t.skipField()}return e},proto.squeaknode.SubscribePubKeySqueakDisplaysRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SubscribePubKeySqueakDisplaysRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SubscribePubKeySqueakDisplaysRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getPubkey()).length>0&&t.writeString(1,r)},proto.squeaknode.SubscribePubKeySqueakDisplaysRequest.prototype.getPubkey=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.SubscribePubKeySqueakDisplaysRequest.prototype.setPubkey=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SubscribeAncestorSqueakDisplaysRequest.prototype.toObject=function(e){return proto.squeaknode.SubscribeAncestorSqueakDisplaysRequest.toObject(e,this)},proto.squeaknode.SubscribeAncestorSqueakDisplaysRequest.toObject=function(e,t){var r={squeakHash:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.SubscribeAncestorSqueakDisplaysRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SubscribeAncestorSqueakDisplaysRequest;return proto.squeaknode.SubscribeAncestorSqueakDisplaysRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.SubscribeAncestorSqueakDisplaysRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readString();e.setSqueakHash(r)}else t.skipField()}return e},proto.squeaknode.SubscribeAncestorSqueakDisplaysRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SubscribeAncestorSqueakDisplaysRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SubscribeAncestorSqueakDisplaysRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getSqueakHash()).length>0&&t.writeString(1,r)},proto.squeaknode.SubscribeAncestorSqueakDisplaysRequest.prototype.getSqueakHash=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.SubscribeAncestorSqueakDisplaysRequest.prototype.setSqueakHash=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SubscribeSqueakDisplaysRequest.prototype.toObject=function(e){return proto.squeaknode.SubscribeSqueakDisplaysRequest.toObject(e,this)},proto.squeaknode.SubscribeSqueakDisplaysRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.SubscribeSqueakDisplaysRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SubscribeSqueakDisplaysRequest;return proto.squeaknode.SubscribeSqueakDisplaysRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.SubscribeSqueakDisplaysRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.SubscribeSqueakDisplaysRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SubscribeSqueakDisplaysRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SubscribeSqueakDisplaysRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SubscribeTimelineSqueakDisplaysRequest.prototype.toObject=function(e){return proto.squeaknode.SubscribeTimelineSqueakDisplaysRequest.toObject(e,this)},proto.squeaknode.SubscribeTimelineSqueakDisplaysRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.SubscribeTimelineSqueakDisplaysRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SubscribeTimelineSqueakDisplaysRequest;return proto.squeaknode.SubscribeTimelineSqueakDisplaysRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.SubscribeTimelineSqueakDisplaysRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.SubscribeTimelineSqueakDisplaysRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SubscribeTimelineSqueakDisplaysRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SubscribeTimelineSqueakDisplaysRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetExternalAddressRequest.prototype.toObject=function(e){return proto.squeaknode.GetExternalAddressRequest.toObject(e,this)},proto.squeaknode.GetExternalAddressRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetExternalAddressRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetExternalAddressRequest;return proto.squeaknode.GetExternalAddressRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetExternalAddressRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.GetExternalAddressRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetExternalAddressRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetExternalAddressRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetExternalAddressReply.prototype.toObject=function(e){return proto.squeaknode.GetExternalAddressReply.toObject(e,this)},proto.squeaknode.GetExternalAddressReply.toObject=function(e,t){var r,n={peerAddress:(r=t.getPeerAddress())&&proto.squeaknode.PeerAddress.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.squeaknode.GetExternalAddressReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetExternalAddressReply;return proto.squeaknode.GetExternalAddressReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetExternalAddressReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.PeerAddress;t.readMessage(r,proto.squeaknode.PeerAddress.deserializeBinaryFromReader),e.setPeerAddress(r)}else t.skipField()}return e},proto.squeaknode.GetExternalAddressReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetExternalAddressReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetExternalAddressReply.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getPeerAddress())&&t.writeMessage(1,r,proto.squeaknode.PeerAddress.serializeBinaryToWriter)},proto.squeaknode.GetExternalAddressReply.prototype.getPeerAddress=function(){return n.Message.getWrapperField(this,proto.squeaknode.PeerAddress,1)},proto.squeaknode.GetExternalAddressReply.prototype.setPeerAddress=function(e){return n.Message.setWrapperField(this,1,e)},proto.squeaknode.GetExternalAddressReply.prototype.clearPeerAddress=function(){return this.setPeerAddress(void 0)},proto.squeaknode.GetExternalAddressReply.prototype.hasPeerAddress=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetDefaultPeerPortRequest.prototype.toObject=function(e){return proto.squeaknode.GetDefaultPeerPortRequest.toObject(e,this)},proto.squeaknode.GetDefaultPeerPortRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetDefaultPeerPortRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetDefaultPeerPortRequest;return proto.squeaknode.GetDefaultPeerPortRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetDefaultPeerPortRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.GetDefaultPeerPortRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetDefaultPeerPortRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetDefaultPeerPortRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetDefaultPeerPortReply.prototype.toObject=function(e){return proto.squeaknode.GetDefaultPeerPortReply.toObject(e,this)},proto.squeaknode.GetDefaultPeerPortReply.toObject=function(e,t){var r={port:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetDefaultPeerPortReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetDefaultPeerPortReply;return proto.squeaknode.GetDefaultPeerPortReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetDefaultPeerPortReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readInt32();e.setPort(r)}else t.skipField()}return e},proto.squeaknode.GetDefaultPeerPortReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetDefaultPeerPortReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetDefaultPeerPortReply.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getPort())&&t.writeInt32(1,r)},proto.squeaknode.GetDefaultPeerPortReply.prototype.getPort=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.GetDefaultPeerPortReply.prototype.setPort=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SetSellPriceRequest.prototype.toObject=function(e){return proto.squeaknode.SetSellPriceRequest.toObject(e,this)},proto.squeaknode.SetSellPriceRequest.toObject=function(e,t){var r={priceMsat:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.SetSellPriceRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SetSellPriceRequest;return proto.squeaknode.SetSellPriceRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.SetSellPriceRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readInt64();e.setPriceMsat(r)}else t.skipField()}return e},proto.squeaknode.SetSellPriceRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SetSellPriceRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SetSellPriceRequest.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getPriceMsat())&&t.writeInt64(1,r)},proto.squeaknode.SetSellPriceRequest.prototype.getPriceMsat=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.SetSellPriceRequest.prototype.setPriceMsat=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.SetSellPriceReply.prototype.toObject=function(e){return proto.squeaknode.SetSellPriceReply.toObject(e,this)},proto.squeaknode.SetSellPriceReply.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.SetSellPriceReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.SetSellPriceReply;return proto.squeaknode.SetSellPriceReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.SetSellPriceReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.SetSellPriceReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.SetSellPriceReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.SetSellPriceReply.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.ClearSellPriceRequest.prototype.toObject=function(e){return proto.squeaknode.ClearSellPriceRequest.toObject(e,this)},proto.squeaknode.ClearSellPriceRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.ClearSellPriceRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.ClearSellPriceRequest;return proto.squeaknode.ClearSellPriceRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.ClearSellPriceRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.ClearSellPriceRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.ClearSellPriceRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.ClearSellPriceRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.ClearSellPriceReply.prototype.toObject=function(e){return proto.squeaknode.ClearSellPriceReply.toObject(e,this)},proto.squeaknode.ClearSellPriceReply.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.ClearSellPriceReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.ClearSellPriceReply;return proto.squeaknode.ClearSellPriceReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.ClearSellPriceReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.ClearSellPriceReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.ClearSellPriceReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.ClearSellPriceReply.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSellPriceRequest.prototype.toObject=function(e){return proto.squeaknode.GetSellPriceRequest.toObject(e,this)},proto.squeaknode.GetSellPriceRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetSellPriceRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSellPriceRequest;return proto.squeaknode.GetSellPriceRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSellPriceRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.GetSellPriceRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSellPriceRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSellPriceRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetSellPriceReply.prototype.toObject=function(e){return proto.squeaknode.GetSellPriceReply.toObject(e,this)},proto.squeaknode.GetSellPriceReply.toObject=function(e,t){var r={priceMsat:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetSellPriceReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetSellPriceReply;return proto.squeaknode.GetSellPriceReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetSellPriceReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readInt64();e.setPriceMsat(r)}else t.skipField()}return e},proto.squeaknode.GetSellPriceReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetSellPriceReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetSellPriceReply.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getPriceMsat())&&t.writeInt64(1,r)},proto.squeaknode.GetSellPriceReply.prototype.getPriceMsat=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.GetSellPriceReply.prototype.setPriceMsat=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.TwitterAccount.prototype.toObject=function(e){return proto.squeaknode.TwitterAccount.toObject(e,this)},proto.squeaknode.TwitterAccount.toObject=function(e,t){var r,o={twitterAccountId:n.Message.getFieldWithDefault(t,1,0),handle:n.Message.getFieldWithDefault(t,2,""),profileId:n.Message.getFieldWithDefault(t,3,0),isProfileKnown:n.Message.getBooleanFieldWithDefault(t,4,!1),profile:(r=t.getProfile())&&proto.squeaknode.SqueakProfile.toObject(e,r),isForwarding:n.Message.getBooleanFieldWithDefault(t,6,!1)};return e&&(o.$jspbMessageInstance=t),o}),proto.squeaknode.TwitterAccount.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.TwitterAccount;return proto.squeaknode.TwitterAccount.deserializeBinaryFromReader(r,t)},proto.squeaknode.TwitterAccount.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setTwitterAccountId(r);break;case 2:r=t.readString();e.setHandle(r);break;case 3:r=t.readInt32();e.setProfileId(r);break;case 4:r=t.readBool();e.setIsProfileKnown(r);break;case 5:r=new proto.squeaknode.SqueakProfile;t.readMessage(r,proto.squeaknode.SqueakProfile.deserializeBinaryFromReader),e.setProfile(r);break;case 6:r=t.readBool();e.setIsForwarding(r);break;default:t.skipField()}}return e},proto.squeaknode.TwitterAccount.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.TwitterAccount.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.TwitterAccount.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getTwitterAccountId())&&t.writeInt32(1,r),(r=e.getHandle()).length>0&&t.writeString(2,r),0!==(r=e.getProfileId())&&t.writeInt32(3,r),(r=e.getIsProfileKnown())&&t.writeBool(4,r),null!=(r=e.getProfile())&&t.writeMessage(5,r,proto.squeaknode.SqueakProfile.serializeBinaryToWriter),(r=e.getIsForwarding())&&t.writeBool(6,r)},proto.squeaknode.TwitterAccount.prototype.getTwitterAccountId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.TwitterAccount.prototype.setTwitterAccountId=function(e){return n.Message.setProto3IntField(this,1,e)},proto.squeaknode.TwitterAccount.prototype.getHandle=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.squeaknode.TwitterAccount.prototype.setHandle=function(e){return n.Message.setProto3StringField(this,2,e)},proto.squeaknode.TwitterAccount.prototype.getProfileId=function(){return n.Message.getFieldWithDefault(this,3,0)},proto.squeaknode.TwitterAccount.prototype.setProfileId=function(e){return n.Message.setProto3IntField(this,3,e)},proto.squeaknode.TwitterAccount.prototype.getIsProfileKnown=function(){return n.Message.getBooleanFieldWithDefault(this,4,!1)},proto.squeaknode.TwitterAccount.prototype.setIsProfileKnown=function(e){return n.Message.setProto3BooleanField(this,4,e)},proto.squeaknode.TwitterAccount.prototype.getProfile=function(){return n.Message.getWrapperField(this,proto.squeaknode.SqueakProfile,5)},proto.squeaknode.TwitterAccount.prototype.setProfile=function(e){return n.Message.setWrapperField(this,5,e)},proto.squeaknode.TwitterAccount.prototype.clearProfile=function(){return this.setProfile(void 0)},proto.squeaknode.TwitterAccount.prototype.hasProfile=function(){return null!=n.Message.getField(this,5)},proto.squeaknode.TwitterAccount.prototype.getIsForwarding=function(){return n.Message.getBooleanFieldWithDefault(this,6,!1)},proto.squeaknode.TwitterAccount.prototype.setIsForwarding=function(e){return n.Message.setProto3BooleanField(this,6,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.AddTwitterAccountRequest.prototype.toObject=function(e){return proto.squeaknode.AddTwitterAccountRequest.toObject(e,this)},proto.squeaknode.AddTwitterAccountRequest.toObject=function(e,t){var r={handle:n.Message.getFieldWithDefault(t,1,""),profileId:n.Message.getFieldWithDefault(t,2,0),bearerToken:n.Message.getFieldWithDefault(t,3,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.AddTwitterAccountRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.AddTwitterAccountRequest;return proto.squeaknode.AddTwitterAccountRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.AddTwitterAccountRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setHandle(r);break;case 2:r=t.readInt32();e.setProfileId(r);break;case 3:r=t.readString();e.setBearerToken(r);break;default:t.skipField()}}return e},proto.squeaknode.AddTwitterAccountRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.AddTwitterAccountRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.AddTwitterAccountRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getHandle()).length>0&&t.writeString(1,r),0!==(r=e.getProfileId())&&t.writeInt32(2,r),(r=e.getBearerToken()).length>0&&t.writeString(3,r)},proto.squeaknode.AddTwitterAccountRequest.prototype.getHandle=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.squeaknode.AddTwitterAccountRequest.prototype.setHandle=function(e){return n.Message.setProto3StringField(this,1,e)},proto.squeaknode.AddTwitterAccountRequest.prototype.getProfileId=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.squeaknode.AddTwitterAccountRequest.prototype.setProfileId=function(e){return n.Message.setProto3IntField(this,2,e)},proto.squeaknode.AddTwitterAccountRequest.prototype.getBearerToken=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.squeaknode.AddTwitterAccountRequest.prototype.setBearerToken=function(e){return n.Message.setProto3StringField(this,3,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.AddTwitterAccountReply.prototype.toObject=function(e){return proto.squeaknode.AddTwitterAccountReply.toObject(e,this)},proto.squeaknode.AddTwitterAccountReply.toObject=function(e,t){var r={twitterAccountId:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.AddTwitterAccountReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.AddTwitterAccountReply;return proto.squeaknode.AddTwitterAccountReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.AddTwitterAccountReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readInt32();e.setTwitterAccountId(r)}else t.skipField()}return e},proto.squeaknode.AddTwitterAccountReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.AddTwitterAccountReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.AddTwitterAccountReply.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getTwitterAccountId())&&t.writeInt32(1,r)},proto.squeaknode.AddTwitterAccountReply.prototype.getTwitterAccountId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.AddTwitterAccountReply.prototype.setTwitterAccountId=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetTwitterAccountsRequest.prototype.toObject=function(e){return proto.squeaknode.GetTwitterAccountsRequest.toObject(e,this)},proto.squeaknode.GetTwitterAccountsRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetTwitterAccountsRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetTwitterAccountsRequest;return proto.squeaknode.GetTwitterAccountsRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetTwitterAccountsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.GetTwitterAccountsRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetTwitterAccountsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetTwitterAccountsRequest.serializeBinaryToWriter=function(e,t){},proto.squeaknode.GetTwitterAccountsReply.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.GetTwitterAccountsReply.prototype.toObject=function(e){return proto.squeaknode.GetTwitterAccountsReply.toObject(e,this)},proto.squeaknode.GetTwitterAccountsReply.toObject=function(e,t){var r={twitterAccountsList:n.Message.toObjectList(t.getTwitterAccountsList(),proto.squeaknode.TwitterAccount.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.GetTwitterAccountsReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.GetTwitterAccountsReply;return proto.squeaknode.GetTwitterAccountsReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.GetTwitterAccountsReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=new proto.squeaknode.TwitterAccount;t.readMessage(r,proto.squeaknode.TwitterAccount.deserializeBinaryFromReader),e.addTwitterAccounts(r)}else t.skipField()}return e},proto.squeaknode.GetTwitterAccountsReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.GetTwitterAccountsReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.GetTwitterAccountsReply.serializeBinaryToWriter=function(e,t){var r;(r=e.getTwitterAccountsList()).length>0&&t.writeRepeatedMessage(1,r,proto.squeaknode.TwitterAccount.serializeBinaryToWriter)},proto.squeaknode.GetTwitterAccountsReply.prototype.getTwitterAccountsList=function(){return n.Message.getRepeatedWrapperField(this,proto.squeaknode.TwitterAccount,1)},proto.squeaknode.GetTwitterAccountsReply.prototype.setTwitterAccountsList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.squeaknode.GetTwitterAccountsReply.prototype.addTwitterAccounts=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.squeaknode.TwitterAccount,t)},proto.squeaknode.GetTwitterAccountsReply.prototype.clearTwitterAccountsList=function(){return this.setTwitterAccountsList([])},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DeleteTwitterAccountRequest.prototype.toObject=function(e){return proto.squeaknode.DeleteTwitterAccountRequest.toObject(e,this)},proto.squeaknode.DeleteTwitterAccountRequest.toObject=function(e,t){var r={twitterAccountId:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.DeleteTwitterAccountRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DeleteTwitterAccountRequest;return proto.squeaknode.DeleteTwitterAccountRequest.deserializeBinaryFromReader(r,t)},proto.squeaknode.DeleteTwitterAccountRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var r=t.readInt32();e.setTwitterAccountId(r)}else t.skipField()}return e},proto.squeaknode.DeleteTwitterAccountRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DeleteTwitterAccountRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DeleteTwitterAccountRequest.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getTwitterAccountId())&&t.writeInt32(1,r)},proto.squeaknode.DeleteTwitterAccountRequest.prototype.getTwitterAccountId=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.squeaknode.DeleteTwitterAccountRequest.prototype.setTwitterAccountId=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.squeaknode.DeleteTwitterAccountReply.prototype.toObject=function(e){return proto.squeaknode.DeleteTwitterAccountReply.toObject(e,this)},proto.squeaknode.DeleteTwitterAccountReply.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.squeaknode.DeleteTwitterAccountReply.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.squeaknode.DeleteTwitterAccountReply;return proto.squeaknode.DeleteTwitterAccountReply.deserializeBinaryFromReader(r,t)},proto.squeaknode.DeleteTwitterAccountReply.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.squeaknode.DeleteTwitterAccountReply.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.squeaknode.DeleteTwitterAccountReply.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.squeaknode.DeleteTwitterAccountReply.serializeBinaryToWriter=function(e,t){},o.object.extend(t,proto.squeaknode)},3652:function(e,t,r){"use strict";function n(e){var t=e.getProfileImage();return"data:image/jpeg;base64,".concat(t)}r.d(t,{d:function(){return n}})},8026:function(e,t,r){"use strict";var n=r(8785),o=r(9781),a=r(6515),i=r(9899),s=r(9435),l=r(6619),u=r(6682),p=r(1950),c=r(7663),d=r(3532),g=(0,n.xC)({reducer:{network:o.ZP,squeaks:a.ZP,profiles:i.ZP,peers:s.ZP,externalAddress:l.ZP,payments:u.ZP,sellPrice:p.ZP,account:c.ZP,twitterAccounts:d.ZP}});t.Z=g},8785:function(e,t,r){"use strict";function n(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n 3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:g(e)?3:0}function l(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){return 2===s(e)?e.get(t):e[t]}function p(e,t,r){var n=s(e);2===n?e.set(t,r):3===n?(e.delete(t),e.add(r)):e[t]=r}function c(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return j&&e instanceof Map}function g(e){return G&&e instanceof Set}function f(e){return e.o||e.t}function y(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Z(e);delete t[K];for(var r=Y(t),n=0;n 1&&(e.set=e.add=e.clear=e.delete=m),Object.freeze(e),t&&i(e,(function(e,t){return h(t,!0)}),!0)),e}function m(){n(2)}function R(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function b(e){var t=J[e];return t||n(18,e),t}function k(e,t){J[e]||(J[e]=t)}function S(){return x}function v(e,t){t&&(b("Patches"),e.u=[],e.s=[],e.v=t)}function P(e){q(e),e.p.forEach(E),e.p=null}function q(e){e===x&&(x=e.l)}function M(e){return x={p:[],l:x,h:e,m:!0,_:0}}function E(e){var t=e[K];0===t.i||1===t.i?t.j():t.O=!0}function F(e,t){t._=t.p.length;var r=t.p[0],o=void 0!==e&&e!==r;return t.h.g||b("ES5").S(t,e,o),o?(r[K].P&&(P(t),n(4)),a(e)&&(e=C(t,e),t.l||w(t,e)),t.u&&b("Patches").M(r[K].t,e,t.u,t.s)):e=C(t,r,[]),P(t),t.u&&t.v(t.u,t.s),e!==H?e:void 0}function C(e,t,r){if(R(t))return t;var n=t[K];if(!n)return i(t,(function(o,a){return B(e,n,t,o,a,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return w(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=y(n.k):n.o;i(3===n.i?new Set(o):o,(function(t,a){return B(e,n,o,t,a,r)})),w(e,o,!1),r&&e.u&&b("Patches").R(n,r,e.u,e.s)}return n.o}function B(e,t,r,n,i,s){if(o(i)){var u=C(e,i,s&&t&&3!==t.i&&!l(t.D,n)?s.concat(n):void 0);if(p(r,n,u),!o(u))return;e.m=!1}if(a(i)&&!R(i)){if(!e.h.F&&e._<1)return;C(e,i),t&&t.A.l||w(e,i)}}function w(e,t,r){void 0===r&&(r=!1),e.h.F&&e.m&&h(t,r)}function T(e,t){var r=e[K];return(r?f(r):e)[t]}function O(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function _(e){e.P||(e.P=!0,e.l&&_(e.l))}function D(e){e.o||(e.o=y(e.t))}function I(e,t,r){var n=d(t)?b("MapSet").N(t,r):g(t)?b("MapSet").T(t,r):e.g?function(e,t){var r=Array.isArray(e),n={i:r?1:0,A:t?t.A:S(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=n,a=Q;r&&(o=[n],a=X);var i=Proxy.revocable(o,a),s=i.revoke,l=i.proxy;return n.k=l,n.j=s,l}(t,r):b("ES5").J(t,r);return(r?r.A:S()).p.push(n),n}function A(e){return o(e)||n(22,e),function e(t){if(!a(t))return t;var r,n=t[K],o=s(t);if(n){if(!n.P&&(n.i<4||!b("ES5").K(n)))return n.t;n.I=!0,r=N(t,o),n.I=!1}else r=N(t,o);return i(r,(function(t,o){n&&u(n.t,t)===o||p(r,t,e(o))})),3===o?new Set(r):r}(e)}function N(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return y(e)}function W(){function e(e,t){var r=a[e];return r?r.enumerable=t:a[e]=r={configurable:!0,enumerable:t,get:function(){var t=this[K];return Q.get(t,e)},set:function(t){var r=this[K];Q.set(r,e,t)}},r}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][K];if(!o.P)switch(o.i){case 5:n(o)&&_(o);break;case 4:r(o)&&_(o)}}}function r(e){for(var t=e.t,r=e.k,n=Y(r),o=n.length-1;o>=0;o--){var a=n[o];if(a!==K){var i=t[a];if(void 0===i&&!l(t,a))return!0;var s=r[a],u=s&&s[K];if(u?u.t!==i:!c(s,i))return!0}}var p=!!t[K];return n.length!==Y(t).length+(p?0:1)}function n(e){var t=e.k;if(t.length!==e.t.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);if(r&&!r.get)return!0;for(var n=0;n 1?n-1:0),a=1;a 1?n-1:0),a=1;a =0;r--){var n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));var a=b("Patches").$;return o(e)?a(e,t):this.produce(e,(function(e){return a(e,t)}))},e}(),te=new ee,re=te.produce,ne=(te.produceWithPatches.bind(te),te.setAutoFreeze.bind(te),te.setUseProxies.bind(te),te.applyPatches.bind(te),te.createDraft.bind(te),te.finishDraft.bind(te),re),oe=r(9050);function ae(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(o){return"function"===typeof o?o(r,n,e):t(o)}}}}var ie=ae();ie.withExtraArgument=ae;var se=ie,le=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ue=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1] =200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){l.headers[e]=n.merge(i)})),e.exports=l},4049:function(e){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n =0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([r]):i[t]?i[t]+", "+r:r}})),i):i}},8089:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},7835:function(e,t,r){"use strict";var n=r(8593),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var a={},i=n.version.split(".");function s(e,t){for(var r=t?t.split("."):i,n=e.split("."),o=0;o<3;o++){if(r[o]>n[o])return!0;if(r[o] 0;){var a=n[o],i=t[a];if(i){var s=e[a],l=void 0===s||i(s,a,e);if(!0!==l)throw new TypeError("option "+a+" must be "+l)}else if(!0!==r)throw Error("Unknown option "+a)}},validators:o}},3589:function(e,t,r){"use strict";var n=r(4049),o=Object.prototype.toString;function a(e){return"[object Array]"===o.call(e)}function i(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function l(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function p(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),a(e))for(var r=0,n=e.length;r 0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1] =e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function a(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function i(){for(var e=[],t=0;t Promise ))`.","See if using `DarkReader.setFetchMethod(window.fetch)`","before `DarkReader.enable()` works."].join(" ")))]}))}))},y=f;function h(e){y=e||f}function m(e){return r(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,y(e)];case 1:return[2,t.sent()]}}))}))}window.chrome||(window.chrome={}),chrome.runtime||(chrome.runtime={});var R=new Set;function b(){for(var e=[],t=0;t 0;)n.splice(r-1,2);return n}function T(e,t){if(t.match(/^.*?\/\//)||t.match(/^data\:/))return t.startsWith("//")?t.includes("..")?""+location.protocol+w(e,t).join("/"):""+location.protocol+t:t;var r=B(e);if(t.startsWith("/"))return B(r.protocol+"//"+r.host+t).href;var n=r.pathname.split("/");return n[n.length-1].match(/\.[a-z]+$/i)&&n.pop(),n=w(e,t),B(r.protocol+"//"+r.host+"/"+n.join("/")).href}function O(){for(var e=[],t=0;t =n){if(u-l se)return!0;for(var t=0,r=0;r se)return!0;return!1}function ue(e){var t=new Set,r=new Set,n=new Set;e.forEach((function(e){E(e.addedNodes,(function(e){e instanceof Element&&e.isConnected&&t.add(e)})),E(e.removedNodes,(function(e){e instanceof Element&&(e.isConnected?n.add(e):r.add(e))}))})),n.forEach((function(e){return t.delete(e)}));var o=[],a=[];return t.forEach((function(e){t.has(e.parentElement)&&o.push(e)})),r.forEach((function(e){r.has(e.parentElement)&&a.push(e)})),o.forEach((function(e){return t.delete(e)})),a.forEach((function(e){return r.delete(e)})),{additions:t,moves:n,deletions:r}}var pe=new Map,ce=new WeakMap;function de(e,t){var r,n,o;if(pe.has(e))r=pe.get(e),n=ce.get(r);else{var a=!1,i=!1;(r=new MutationObserver((function(t){if(le(t))!a||re()?n.forEach((function(t){return(0,t.onHugeMutations)(e)})):i||(oe(o=function(){return n.forEach((function(t){return(0,t.onHugeMutations)(e)}))}),i=!0),a=!0;else{var r=ue(t);n.forEach((function(e){return(0,e.onMinorMutations)(r)}))}}))).observe(e,{childList:!0,subtree:!0}),pe.set(e,r),n=new Set,ce.set(r,n)}return n.add(t),{disconnect:function(){n.delete(t),o&&ae(o),0===n.size&&(r.disconnect(),ce.delete(r),pe.delete(e))}}}function ge(e){var t=e.h,r=e.s,n=e.l,o=e.a,i=void 0===o?1:o;if(0===r){var s=a([n,n,n].map((function(e){return Math.round(255*e)})),3),l=s[0],u=s[1];return{r:l,g:s[2],b:u,a:i}}var p=(1-Math.abs(2*n-1))*r,c=p*(1-Math.abs(t/60%2-1)),d=n-p/2,g=a((t<60?[p,c,0]:t<120?[c,p,0]:t<180?[0,p,c]:t<240?[0,c,p]:t<300?[c,0,p]:[p,0,c]).map((function(e){return Math.round(255*(e+d))})),3);return{r:g[0],g:g[1],b:g[2],a:i}}function fe(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=void 0===o?1:o,i=t/255,s=r/255,l=n/255,u=Math.max(i,s,l),p=Math.min(i,s,l),c=u-p,d=(u+p)/2;if(0===c)return{h:0,s:0,l:d,a:a};var g=60*(u===i?(s-l)/c%6:u===s?(l-i)/c+2:(i-s)/c+4);return g<0&&(g+=360),{h:g,s:c/(1-Math.abs(2*d-1)),l:d,a:a}}function ye(e,t){void 0===t&&(t=0);var r=e.toFixed(t);if(0===t)return r;var n=r.indexOf(".");if(n>=0){var o=r.match(/0+$/);if(o)return o.index===n+1?r.substring(0,n):r.substring(0,o.index)}return r}function he(e){var t=e.r,r=e.g,n=e.b,o=e.a;return null!=o&&o<1?"rgba("+ye(t)+", "+ye(r)+", "+ye(n)+", "+ye(o,2)+")":"rgb("+ye(t)+", "+ye(r)+", "+ye(n)+")"}function me(e){var t=e.r,r=e.g,n=e.b,o=e.a;return"#"+(null!=o&&o<1?[t,r,n,Math.round(255*o)]:[t,r,n]).map((function(e){return(e<16?"0":"")+e.toString(16)})).join("")}function Re(e){var t=e.h,r=e.s,n=e.l,o=e.a;return null!=o&&o<1?"hsla("+ye(t)+", "+ye(100*r)+"%, "+ye(100*n)+"%, "+ye(o,2)+")":"hsl("+ye(t)+", "+ye(100*r)+"%, "+ye(100*n)+"%)"}var be=/^rgba?\([^\(\)]+\)$/,ke=/^hsla?\([^\(\)]+\)$/,Se=/^#[0-9a-f]+$/i;function ve(e){var t=e.trim().toLowerCase();if(t.match(be))return Fe(t);if(t.match(ke))return Te(t);if(t.match(Se))return Oe(t);if(Ie.has(t))return _e(t);if(Ae.has(t))return De(t);if("transparent"===e)return{r:0,g:0,b:0,a:0};throw new Error("Unable to parse "+e)}function Pe(e,t,r,n){var o=e.split(t).filter((function(e){return e})),i=Object.entries(n);return o.map((function(e){return e.trim()})).map((function(e,t){var n,o=i.find((function(t){var r=a(t,1)[0];return e.endsWith(r)}));return n=o?parseFloat(e.substring(0,e.length-o[0].length))/o[1]*r[t]:parseFloat(e),r[t]>1?Math.round(n):n}))}var qe=/rgba?|\(|\)|\/|,|\s/gi,Me=[255,255,255,1],Ee={"%":100};function Fe(e){var t=a(Pe(e,qe,Me,Ee),4),r=t[0],n=t[1],o=t[2],i=t[3];return{r:r,g:n,b:o,a:void 0===i?1:i}}var Ce=/hsla?|\(|\)|\/|,|\s/gi,Be=[360,1,1,1],we={"%":100,deg:360,rad:2*Math.PI,turn:1};function Te(e){var t=a(Pe(e,Ce,Be,we),4),r=t[0],n=t[1],o=t[2],i=t[3];return ge({h:r,s:n,l:o,a:void 0===i?1:i})}function Oe(e){var t=e.substring(1);switch(t.length){case 3:case 4:var r=a([0,1,2].map((function(e){return parseInt(""+t[e]+t[e],16)})),3);return{r:r[0],g:r[1],b:r[2],a:3===t.length?1:parseInt(""+t[3]+t[3],16)/255};case 6:case 8:var n=a([0,2,4].map((function(e){return parseInt(t.substring(e,e+2),16)})),3);return{r:n[0],g:n[1],b:n[2],a:6===t.length?1:parseInt(t.substring(6,8),16)/255}}throw new Error("Unable to parse "+e)}function _e(e){var t=Ie.get(e);return{r:t>>16&255,g:t>>8&255,b:t>>0&255,a:1}}function De(e){var t=Ae.get(e);return{r:t>>16&255,g:t>>8&255,b:t>>0&255,a:1}}var Ie=new Map(Object.entries({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgrey:11119017,darkgreen:25600,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,grey:8421504,green:32768,greenyellow:11403055,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgrey:13882323,lightgreen:9498256,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074})),Ae=new Map(Object.entries({ActiveBorder:3906044,ActiveCaption:0,AppWorkspace:11184810,Background:6513614,ButtonFace:16777215,ButtonHighlight:15329769,ButtonShadow:10461343,ButtonText:0,CaptionText:0,GrayText:8355711,Highlight:11720703,HighlightText:0,InactiveBorder:16777215,InactiveCaption:16777215,InactiveCaptionText:0,InfoBackground:16514245,InfoText:0,Menu:16185078,MenuText:16777215,Scrollbar:11184810,ThreeDDarkShadow:0,ThreeDFace:12632256,ThreeDHighlight:16777215,ThreeDLightShadow:16777215,ThreeDShadow:0,Window:15527148,WindowFrame:11184810,WindowText:0,"-webkit-focus-ring-color":15046400}).map((function(e){var t=a(e,2),r=t[0],n=t[1];return[r.toLowerCase(),n]})));function Ne(e,t,r,n,o){return(e-t)*(o-n)/(r-t)+n}function We(e,t,r){return Math.min(r,Math.max(t,e))}function Le(e,t){for(var r=[],n=0;n =0}))).map((function(e){var t=a(e,2);return t[0]+":"+t[1]})).join(";");if(n.has(o))return n.get(o);var i=ge(r(fe(e))),s=i.r,l=i.g,u=i.b,p=i.a,c=a(je([s,l,u],ze(t)),3),d=c[0],g=c[1],f=c[2],y=1===p?me({r:d,g:g,b:f}):he({r:d,g:g,b:f,a:p});return n.set(o,y),y}function $e(e){return e}function Ye(e,t){return Ke(e,t,$e)}function Ze(e){var t=e.h,r=e.s,n=e.l,o=e.a,a=.4,i=.36,s=.2,l=.8,u=.16,p=205,c=40,d=Ne(n,0,1,0,.9),g=t,f=r;return(n l||r=s&&t>p&&td&&t<=g,h=Ne(r,0,1,y?Ne(t,d,g,i,.7):i,s),m=n<.5?Ne(n,0,.5,a,h):n 0&&(t.push(" -webkit-text-stroke: "+e.textStroke+"px !important;"),t.push(" text-stroke: "+e.textStroke+"px !important;")),t.push("}"),t.join("\n")}function st(e){var t=[];return e.mode===Ge.dark&&t.push("invert(100%) hue-rotate(180deg)"),100!==e.brightness&&t.push("brightness("+e.brightness+"%)"),100!==e.contrast&&t.push("contrast("+e.contrast+"%)"),0!==e.grayscale&&t.push("grayscale("+e.grayscale+"%)"),0!==e.sepia&&t.push("sepia("+e.sepia+"%)"),0===t.length?null:t.join(" ")}function lt(e){return e.slice(0,4).map((function(e){return e.map((function(e){return e.toFixed(3)})).join(" ")})).join(" ")}function ut(e){return lt(ze(e))}!function(e){e[e.light=0]="light",e[e.dark=1]="dark"}(Ge||(Ge={}));var pt=0,ct=new Map,dt=new Map;function gt(e){return new Promise((function(t,r){var n=++pt;ct.set(n,t),dt.set(n,r),chrome.runtime.sendMessage({type:"fetch",data:e,id:n})}))}function ft(e){return r(this,void 0,void 0,(function(){var r,o,a;return n(this,(function(n){switch(n.label){case 0:return e.startsWith("data:")?(r=e,[3,3]):[3,1];case 1:return[4,yt(e)];case 2:r=n.sent(),n.label=3;case 3:return[4,ht(r)];case 4:return o=n.sent(),a=vt(o),[2,t({src:e,dataURL:r,width:o.naturalWidth,height:o.naturalHeight},a)]}}))}))}function yt(e){return r(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return at(e)!==location.host?[3,2]:[4,d(e)];case 1:case 3:return[2,t.sent()];case 2:return[4,gt({url:e,responseType:"data-url"})]}}))}))}function ht(e){return r(this,void 0,void 0,(function(){return n(this,(function(t){return[2,new Promise((function(t,r){var n=new Image;n.onload=function(){return t(n)},n.onerror=function(){return r("Unable to load image "+e)},n.src=e}))]}))}))}chrome.runtime.onMessage.addListener((function(e){var t=e.type,r=e.data,n=e.error,o=e.id;if("fetch-response"===t){var a=ct.get(o),i=dt.get(o);ct.delete(o),dt.delete(o),n?i&&i(n):a&&a(r)}}));var mt,Rt,bt=1024;function kt(){var e=bt,t=bt;(mt=document.createElement("canvas")).width=e,mt.height=t,(Rt=mt.getContext("2d")).imageSmoothingEnabled=!1}function St(){mt=null,Rt=null}function vt(e){mt||kt();var t=e.naturalWidth,r=e.naturalHeight,n=t*r,o=Math.min(1,Math.sqrt(bt/n)),a=Math.ceil(t*o),i=Math.ceil(r*o);Rt.clearRect(0,0,a,i),Rt.drawImage(e,0,0,t,r,0,0,a,i);var s,l,u,p,c,d,g,f=Rt.getImageData(0,0,a,i).data,y=.05,h=.4,m=.7,R=0,b=0,k=0;for(u=0;um&&k++);var S=a*i,v=S-R;return{isDark:b/v>=.7,isLight:k/v>=.7,isTransparent:R/S>=.1,isLarge:n>=48e4}}var Pt=new Set;function qt(e,t){for(var r=e.dataURL,n=e.width,o=e.height,a=['"].join(""),i=new Uint8Array(a.length),s=0;s =0&&"-webkit-print-color-adjust"!==e||"fill"===e||"stroke"===e){if(i=It(e,t))return{property:e,value:i,important:o,sourceValue:a}}else if("background-image"===e||"list-style-image"===e){if(i=Lt(e,t,r,n))return{property:e,value:i,important:o,sourceValue:a}}else if(e.indexOf("shadow")>=0){var i;if(i=xt(e,t))return{property:e,value:i,important:o,sourceValue:a}}return null}function Ft(e,t){var r=[];return t||(r.push("html {"),r.push(" background-color: "+Qe({r:255,g:255,b:255},e)+" !important;"),r.push("}")),r.push((t?"":"html, body, ")+"input, textarea, select, button {"),r.push(" background-color: "+Qe({r:255,g:255,b:255},e)+";"),r.push("}"),r.push("html, body, input, textarea, select, button {"),r.push(" border-color: "+rt({r:76,g:76,b:76},e)+";"),r.push(" color: "+et({r:0,g:0,b:0},e)+";"),r.push("}"),r.push("a {"),r.push(" color: "+et({r:0,g:64,b:255},e)+";"),r.push("}"),r.push("table {"),r.push(" border-color: "+rt({r:128,g:128,b:128},e)+";"),r.push("}"),r.push("::placeholder {"),r.push(" color: "+et({r:169,g:169,b:169},e)+";"),r.push("}"),r.push("input:-webkit-autofill,"),r.push("textarea:-webkit-autofill,"),r.push("select:-webkit-autofill {"),r.push(" background-color: "+Qe({r:250,g:255,b:189},e)+" !important;"),r.push(" color: "+et({r:0,g:0,b:0},e)+" !important;"),r.push("}"),e.scrollbarColor&&r.push(Bt(e)),e.selectionColor&&r.push(Ct(e)),r.join("\n")}function Ct(e){var t,r,n=[];if("auto"===e.selectionColor)t=Qe({r:0,g:96,b:212},e),r=et({r:255,g:255,b:255},e);else{var o=fe(ve(e.selectionColor));t=e.selectionColor,r=o.l<.5?"#FFF":"#000"}return["::selection","::-moz-selection"].forEach((function(e){n.push(e+" {"),n.push(" background-color: "+t+" !important;"),n.push(" color: "+r+" !important;"),n.push("}")})),n.join("\n")}function Bt(e){var r,n,o,a,i,s,l=[];if("auto"===e.scrollbarColor)r=Qe({r:241,g:241,b:241},e),n=et({r:96,g:96,b:96},e),o=Qe({r:176,g:176,b:176},e),a=Qe({r:144,g:144,b:144},e),i=Qe({r:96,g:96,b:96},e),s=Qe({r:255,g:255,b:255},e);else{var u=fe(ve(e.scrollbarColor)),p=u.l>.5,c=function(e){return t(t({},u),{l:We(u.l+e,0,1)})},d=function(e){return t(t({},u),{l:We(u.l-e,0,1)})};r=Re(d(.4)),n=Re(p?d(.4):c(.4)),o=Re(u),a=Re(c(.1)),i=Re(c(.2))}return l.push("::-webkit-scrollbar {"),l.push(" background-color: "+r+";"),l.push(" color: "+n+";"),l.push("}"),l.push("::-webkit-scrollbar-thumb {"),l.push(" background-color: "+o+";"),l.push("}"),l.push("::-webkit-scrollbar-thumb:hover {"),l.push(" background-color: "+a+";"),l.push("}"),l.push("::-webkit-scrollbar-thumb:active {"),l.push(" background-color: "+i+";"),l.push("}"),l.push("::-webkit-scrollbar-corner {"),l.push(" background-color: "+s+";"),l.push("}"),l.push("* {"),l.push(" scrollbar-color: "+r+" "+o+";"),l.push("}"),l.join("\n")}function wt(e,t){var r=t.strict,n=[];return n.push("html, body, "+(r?"body :not(iframe)":"body > :not(iframe)")+" {"),n.push(" background-color: "+Qe({r:255,g:255,b:255},e)+" !important;"),n.push(" border-color: "+rt({r:64,g:64,b:64},e)+" !important;"),n.push(" color: "+et({r:0,g:0,b:0},e)+" !important;"),n.push("}"),n.join("\n")}var Tt=new Set(["inherit","transparent","initial","currentcolor","none","unset"]),Ot=new Map;function _t(e){if(e=e.trim(),Ot.has(e))return Ot.get(e);var t=ve(e);return Ot.set(e,t),t}function Dt(e){try{return _t(e)}catch(t){return null}}function It(e,t){if(Tt.has(t.toLowerCase()))return t;try{var r=_t(t);return e.indexOf("background")>=0?function(e){return Qe(r,e)}:e.indexOf("border")>=0||e.indexOf("outline")>=0?function(e){return rt(r,e)}:function(e){return et(r,e)}}catch(n){return _("Color parse error",n),null}}var At=/[\-a-z]+gradient\(([^\(\)]*(\(([^\(\)]*(\(.*?\)))*[^\(\)]*\))){0,15}[^\(\)]*\)/g,Nt=new Map,Wt=new Map;function Lt(e,o,a,i){var s=this;try{var l=xe(At,o),u=xe(L,o);if(0===u.length&&0===l.length)return o;var p=function(e){var t=0;return e.map((function(e){var r=o.indexOf(e,t);return t=r+e.length,{match:e,index:r}}))},c=p(u).map((function(e){return t({type:"url"},e)})).concat(p(l).map((function(e){return t({type:"gradient"},e)}))).sort((function(e,t){return e.index-t.index})),d=function(e){var t=e.match(/^(.*-gradient)\((.*)\)$/),r=t[1],n=t[2],o=/^(from|color-stop|to)\(([^\(\)]*?,\s*)?(.*?)\)$/,a=xe(/([^\(\),]+(\([^\(\)]*(\([^\(\)]*\)*[^\(\)]*)?\))?[^\(\),]*),?/g,n,1).map((function(e){var t=Dt(e=e.trim());if(t)return function(e){return ot(t,e)};var r=e.lastIndexOf(" ");if(t=Dt(e.substring(0,r)))return function(n){return ot(t,n)+" "+e.substring(r+1)};var n=e.match(o);return n&&(t=Dt(n[3]))?function(e){return n[1]+"("+(n[2]?n[2]+", ":"")+ot(t,e)+")"}:function(){return e}}));return function(e){return r+"("+a.map((function(t){return t(e)})).join(", ")+")"}},g=function(e){var t=z(e);if(a.parentStyleSheet.href){var o=j(a.parentStyleSheet.href);t=T(o,t)}else t=a.parentStyleSheet.ownerNode&&a.parentStyleSheet.ownerNode.baseURI?T(a.parentStyleSheet.ownerNode.baseURI,t):T(location.origin,t);var l='url("'+t+'")';return function(e){return r(s,void 0,void 0,(function(){var r,o;return n(this,(function(n){switch(n.label){case 0:return Nt.has(t)?(r=Nt.get(t),[3,7]):[3,1];case 1:return n.trys.push([1,6,,7]),Wt.has(t)?(o=Wt.get(t),[4,new Promise((function(e){return o.push(e)}))]):[3,3];case 2:return(r=n.sent())?[3,5]:[2,null];case 3:return Wt.set(t,[]),[4,ft(t)];case 4:r=n.sent(),Nt.set(t,r),Wt.get(t).forEach((function(e){return e(r)})),Wt.delete(t),n.label=5;case 5:return i()?[2,null]:[3,7];case 6:return _(n.sent()),Wt.has(t)&&(Wt.get(t).forEach((function(e){return e(null)})),Wt.delete(t)),[2,l];case 7:return[2,f(r,e)||l]}}))}))}},f=function(e,r){var n,o=e.isDark,a=e.isLight,i=e.isTransparent,s=e.isLarge,l=e.width;return o&&i&&1===r.mode&&!s&&l>2?(O("Inverting dark image "+e.src),n='url("'+qt(e,t(t({},r),{sepia:We(r.sepia+10,0,100)}))+'")'):a&&!i&&1===r.mode?s?n="none":(O("Dimming light image "+e.src),n='url("'+qt(e,r)+'")'):0===r.mode&&a&&!s?(O("Applying filter to image "+e.src),n='url("'+qt(e,t(t({},r),{brightness:We(r.brightness-10,5,200),sepia:We(r.sepia+10,0,100)}))+'")'):n=null,n},y=[],h=0;return c.forEach((function(e,t){var r=e.match,n=e.type,a=e.index,i=h,s=a+r.length;h=s,y.push((function(){return o.substring(i,a)})),y.push("url"===n?g(r):d(r)),t===c.length-1&&y.push((function(){return o.substring(s)}))})),function(e){var t=y.map((function(t){return t(e)}));return t.some((function(e){return e instanceof Promise}))?Promise.all(t).then((function(e){return e.join("")})):t.join("")}}catch(m){return _("Unable to parse gradient "+o,m),null}}function xt(e,t){try{var r=0,n=xe(/(^|\s)([a-z]+\(.+?\)|#[0-9a-f]+|[a-z]+)(.*?(inset|outset)?($|,))/gi,t,2),o=n.map((function(e,o){var a=r,i=t.indexOf(e,r),s=i+e.length;r=s;var l=Dt(e);return l?function(e){return""+t.substring(a,i)+nt(l,e)+(o===n.length-1?t.substring(s):"")}:function(){return t.substring(a,s)}}));return function(e){return o.map((function(t){return t(e)})).join("")}}catch(a){return _("Unable to parse shadow "+t,a),null}}function zt(){Ot.clear(),Ve(),Nt.clear(),Mt(),Wt.clear()}var jt={"background-color":{customProp:"--darkreader-inline-bgcolor",cssProp:"background-color",dataAttr:"data-darkreader-inline-bgcolor",store:new WeakSet},"background-image":{customProp:"--darkreader-inline-bgimage",cssProp:"background-image",dataAttr:"data-darkreader-inline-bgimage",store:new WeakSet},"border-color":{customProp:"--darkreader-inline-border",cssProp:"border-color",dataAttr:"data-darkreader-inline-border",store:new WeakSet},"border-bottom-color":{customProp:"--darkreader-inline-border-bottom",cssProp:"border-bottom-color",dataAttr:"data-darkreader-inline-border-bottom",store:new WeakSet},"border-left-color":{customProp:"--darkreader-inline-border-left",cssProp:"border-left-color",dataAttr:"data-darkreader-inline-border-left",store:new WeakSet},"border-right-color":{customProp:"--darkreader-inline-border-right",cssProp:"border-right-color",dataAttr:"data-darkreader-inline-border-right",store:new WeakSet},"border-top-color":{customProp:"--darkreader-inline-border-top",cssProp:"border-top-color",dataAttr:"data-darkreader-inline-border-top",store:new WeakSet},"box-shadow":{customProp:"--darkreader-inline-boxshadow",cssProp:"box-shadow",dataAttr:"data-darkreader-inline-boxshadow",store:new WeakSet},color:{customProp:"--darkreader-inline-color",cssProp:"color",dataAttr:"data-darkreader-inline-color",store:new WeakSet},fill:{customProp:"--darkreader-inline-fill",cssProp:"fill",dataAttr:"data-darkreader-inline-fill",store:new WeakSet},stroke:{customProp:"--darkreader-inline-stroke",cssProp:"stroke",dataAttr:"data-darkreader-inline-stroke",store:new WeakSet},"outline-color":{customProp:"--darkreader-inline-outline",cssProp:"outline-color",dataAttr:"data-darkreader-inline-outline",store:new WeakSet}},Gt=Object.values(jt),Ut=["style","fill","stroke","bgcolor","color"],Ht=Ut.map((function(e){return"["+e+"]"})).join(", ");function Vt(){return Gt.map((function(e){var t=e.dataAttr,r=e.customProp;return["["+t+"] {"," "+e.cssProp+": var("+r+") !important;","}"].join("\n")})).join("\n")}function Kt(e){var t=[];return e instanceof Element&&e.matches(Ht)&&t.push(e),(e instanceof Element||e instanceof ShadowRoot||e instanceof Document)&&F(t,e.querySelectorAll(Ht)),t}var $t=new Map,Yt=new Map;function Zt(e,t){Jt(document,e,t),te(document.documentElement,(function(r){Jt(r.shadowRoot,e,t)}))}function Jt(e,t,r){$t.has(e)&&($t.get(e).disconnect(),Yt.get(e).disconnect());var n=new WeakSet;function o(e){Kt(e).forEach((function(e){n.has(e)||(n.add(e),t(e))})),te(e,(function(o){n.has(e)||(n.add(e),r(o.shadowRoot),Jt(o.shadowRoot,t,r))}))}var a=de(e,{onMinorMutations:function(e){e.additions.forEach((function(e){return o(e)}))},onHugeMutations:function(){o(e)}});$t.set(e,a);var i=new MutationObserver((function(e){e.forEach((function(e){Ut.includes(e.attributeName)&&t(e.target),Gt.filter((function(t){var r=t.store,n=t.dataAttr;return r.has(e.target)&&!e.target.hasAttribute(n)})).forEach((function(t){var r=t.dataAttr;return e.target.setAttribute(r,"")}))}))}));i.observe(e,{attributes:!0,attributeFilter:Ut.concat(Gt.map((function(e){return e.dataAttr}))),subtree:!0}),Yt.set(e,i)}function Qt(){$t.forEach((function(e){return e.disconnect()})),Yt.forEach((function(e){return e.disconnect()})),$t.clear(),Yt.clear()}var Xt=new WeakMap,er=["brightness","contrast","grayscale","sepia","mode"];function tr(e,t){return Ut.map((function(t){return t+'="'+e.getAttribute(t)+'"'})).concat(er.map((function(e){return e+'="'+t[e]+'"'}))).join(" ")}function rr(e,t){for(var r=0;r 0&&rr(e,r))n.forEach((function(t){var r=jt[t],n=r.store,o=r.dataAttr;n.delete(e),e.removeAttribute(o)}));else{if(e.hasAttribute("bgcolor")&&(((a=e.getAttribute("bgcolor")).match(/^[0-9a-f]{3}$/i)||a.match(/^[0-9a-f]{6}$/i))&&(a="#"+a),p("background-color","background-color",a)),e.hasAttribute("color")&&(((a=e.getAttribute("color")).match(/^[0-9a-f]{3}$/i)||a.match(/^[0-9a-f]{6}$/i))&&(a="#"+a),p("color","color",a)),e.hasAttribute("fill")&&e instanceof SVGElement){var o=32,a=e.getAttribute("fill"),i=!1;if(!(e instanceof SVGTextElement)){var s=e.getBoundingClientRect(),l=s.width,u=s.height;i=l>o||u>o}p("fill",i?"background-color":"color",a)}e.hasAttribute("stroke")&&(a=e.getAttribute("stroke"),p("stroke",e instanceof SVGLineElement||e instanceof SVGTextElement?"border-color":"color",a)),e.style&&I(e.style,(function(e,t){"background-image"===e&&t.indexOf("url")>=0||jt.hasOwnProperty(e)&&p(e,e,t)})),e.style&&e instanceof SVGTextElement&&e.style.fill&&p("fill","color",e.style.getPropertyValue("fill")),E(n,(function(t){var r=jt[t],n=r.store,o=r.dataAttr;n.delete(e),e.removeAttribute(o)})),Xt.set(e,tr(e,t))}}function p(r,o,a){var i=jt[r],s=i.customProp,l=i.dataAttr,u=Et(o,a,null,null);if(u){var p=u.value;"function"===typeof p&&(p=p(t)),e.style.setProperty(s,p),e.hasAttribute(l)||e.setAttribute(l,""),n.delete(r)}}}var or="theme-color",ar='meta[name="'+or+'"]',ir=null,sr=null;function lr(e,t){ir=ir||e.content;try{var r=ve(ir);e.content=Qe(r,t)}catch(n){_(n)}}function ur(e){var t=document.querySelector(ar);t?lr(t,e):(sr&&sr.disconnect(),(sr=new MutationObserver((function(t){e:for(var r=0;r 0||n.includes("var(")){var p=Y(n,r);C.get(n)!==p&&(C.set(n,p),i=!0,(s=document.createElement("style")).classList.add("darkreader"),s.classList.add("darkreader--vars"),s.media="screen",s.textContent=p,e.parentNode.insertBefore(s,e.nextSibling),u=s.sheet.cssRules[0])}if(i){o=!0;var c=[],d=u||t;d&&d.style&&I(d.style,(function(e,r){var n=Et(e,r,t,y);n&&c.push(n)}));var g=null;c.length>0&&(g={selector:t.selectorText,declarations:c},t.parentRule instanceof CSSMediaRule&&(g.media=t.parentRule.media.mediaText),l.push(g)),B.set(n,g),X(s)}else l.push(B.get(n))})),a.forEach((function(e){C.delete(e),B.delete(e)})),w=i,T||o||s){F++,T=!1;var u=[],p=new Map,d=0;l.filter((function(e){return e})).forEach((function(e){var r=e.selector,n=e.declarations,o=e.media;n.forEach((function(e){var n=e.property,a=e.value,i=e.important,s=e.sourceValue;if("function"===typeof a){var l=a(t);if(l instanceof Promise){var p=u.length,c=d++;u.push({media:o,selector:r,property:n,value:null,important:i,asyncKey:c,sourceValue:s});var g=F;l.then((function(e){e&&!f&&g===F&&(u[p].value=e,fr.add((function(){f||g!==F||R(c)})))}))}else u.push({media:o,selector:r,property:n,value:l,important:i,sourceValue:s})}else u.push({media:o,selector:r,property:n,value:a,important:i,sourceValue:s})}))})),m()}}function h(e,t,r){var n=r[0].selector;e.insertRule(n+" {}",t);var o=e.cssRules.item(t).style;r.forEach((function(e){var t=e.property,r=e.value,n=e.important,a=e.sourceValue;o.setProperty(t,null==r?a:r,n?"important":"")}))}function m(){var e=[];u.forEach((function(t,r){var n,o,a=0===r?null:u[r-1],i=a&&a.media===t.media,s=a&&i&&a.selector===t.selector;i?n=e[e.length-1]:(n=[],e.push(n)),s?o=n[n.length-1]:(o=[],n.push(o)),o.push(t)})),c||S(),g&&g.stop(),k(),null==c.sheet&&(c.textContent="");for(var t=c.sheet,r=t.cssRules.length-1;r>=0;r--)t.deleteRule(r);e.forEach((function(e){var r,n=e[0][0].media;n?(t.insertRule("@media "+n+" {}",t.cssRules.length),r=t.cssRules[t.cssRules.length-1]):r=t,e.forEach((function(e){var t=e.filter((function(e){return null==e.value}));t.length>0&&t.forEach((function(t){var n=t.asyncKey;return p.set(n,{declarations:e,target:r,index:r.cssRules.length})})),h(r,r.cssRules.length,e)}))})),g?g.run():g=ee(c,"prev-sibling",m)}function R(e){var t=p.get(e),r=t.declarations,n=t.target,o=t.index;n.deleteRule(o),h(n,o,r),p.delete(e)}}var A=null,W=null;function L(){try{return null==e.sheet?[null,null]:[e.sheet.cssRules,null]}catch(t){return[null,t]}}function z(e){return e&&e.message&&e.message.includes("loading")}function G(){var e=a(L(),2),t=e[0],r=e[1];return r?(_(r),null):t}function U(){var e=G();e&&(A=e.length)}function H(){var e=G();return e&&e.length!==A}function V(){U(),K(),function e(){H()&&(U(),o()),W=requestAnimationFrame(e)}()}function K(){cancelAnimationFrame(W)}function $(){h.disconnect(),f=!0,d&&d.stop(),g&&g.stop(),K()}function Z(){$(),X(p),X(c)}function J(){h.observe(e,m),e instanceof HTMLStyleElement&&V()}var Q=10,te=0;function re(){if(c)if(++te>Q)_("Style sheet was moved multiple times",e);else{_("Restore style",c,e);var t=null==c.sheet||c.sheet.cssRules.length>0;k(),t&&(T=!0,U(),o())}}return{details:M,render:O,pause:$,destroy:Z,watch:J,restore:re}}function hr(e){return new Promise((function(t,r){var n=function(){e.removeEventListener("load",o),e.removeEventListener("error",a)},o=function(){n(),t()},a=function(){n(),r("Link loading failed "+e.href)};e.addEventListener("load",o),e.addEventListener("error",a)}))}function mr(e){return z(e.substring(8).replace(/;$/,""))}function Rr(e){return r(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return e.startsWith("data:")?[4,fetch(e)]:[3,3];case 1:return[4,t.sent().text()];case 2:case 4:return[2,t.sent()];case 3:return[4,gt({url:e,responseType:"text",mimeType:"text/css"})]}}))}))}function br(e,t){return r(this,void 0,void 0,(function(){var r,a,i,s,l,u,p,c,d,g;return n(this,(function(n){switch(n.label){case 0:e=G(e=K(e=H(e)),t),r=xe(x,e),n.label=1;case 1:n.trys.push([1,10,11,12]),a=o(r),i=a.next(),n.label=2;case 2:if(i.done)return[3,9];s=i.value,l=mr(s),u=T(t,l),p=void 0,n.label=3;case 3:return n.trys.push([3,6,,7]),[4,Rr(u)];case 4:return[4,br(p=n.sent(),j(u))];case 5:return p=n.sent(),[3,7];case 6:return _(n.sent()),p="",[3,7];case 7:e=e.split(s).join(p),n.label=8;case 8:return i=a.next(),[3,2];case 9:return[3,12];case 10:return c=n.sent(),d={error:c},[3,12];case 11:try{i&&!i.done&&(g=a.return)&&g.call(a)}finally{if(d)throw d.error}return[7];case 12:return[2,e=e.trim()]}}))}))}function kr(e,t){if(!t)return null;var r=document.createElement("style");return r.classList.add("darkreader"),r.classList.add("darkreader--cors"),r.media="screen",r.textContent=t,e.parentNode.insertBefore(r,e.nextSibling),r.sheet.disabled=!0,r}var Sr,vr,Pr=[],qr=new Map;function Mr(e){p()&&E(e.querySelectorAll(":not(:defined)"),(function(e){var t=e.tagName.toLowerCase();qr.has(t)||(qr.set(t,new Set),Er(t).then((function(){if(vr){var e=qr.get(t);qr.delete(t),vr(Array.from(e))}}))),qr.get(t).add(e)}))}function Er(e){return new Promise((function(t){if(window.customElements&&"function"===typeof window.customElements.whenDefined)customElements.whenDefined(e).then(t);else{var r=function r(){var n=qr.get(e);n&&n.size>0&&(n.values().next().value.matches(":defined")?t():requestAnimationFrame(r))};requestAnimationFrame(r)}}))}function Fr(e){vr=e}function Cr(){vr=null,qr.clear()}function Br(e,t){Tr();var r=new Set(e),n=new WeakMap,o=new WeakMap;function a(e){n.set(e,e.previousElementSibling),o.set(e,e.nextElementSibling)}function i(e){n.delete(e),o.delete(e)}function s(e){return e.previousElementSibling!==n.get(e)||e.nextElementSibling!==o.get(e)}function l(e){var n=e.createdStyles,o=e.removedStyles,s=e.movedStyles;n.forEach((function(e){return a(e)})),s.forEach((function(e){return a(e)})),o.forEach((function(e){return i(e)})),n.forEach((function(e){return r.add(e)})),o.forEach((function(e){return r.delete(e)})),n.size+o.size+s.size>0&&t({created:Array.from(n),removed:Array.from(o),moved:Array.from(s),updated:[]})}function u(e){var t=e.additions,r=e.moves,n=e.deletions,o=new Set,a=new Set,i=new Set;t.forEach((function(e){return gr(e).forEach((function(e){return o.add(e)}))})),n.forEach((function(e){return gr(e).forEach((function(e){return a.add(e)}))})),r.forEach((function(e){return gr(e).forEach((function(e){return i.add(e)}))})),l({createdStyles:o,removedStyles:a,movedStyles:i}),t.forEach((function(e){te(e,g),Mr(e)}))}function p(e){var t=new Set(gr(e)),n=new Set,o=new Set,a=new Set;t.forEach((function(e){r.has(e)||n.add(e)})),r.forEach((function(e){t.has(e)||o.add(e)})),t.forEach((function(e){n.has(e)||o.has(e)||!s(e)||a.add(e)})),l({createdStyles:n,removedStyles:o,movedStyles:a}),te(e,g),Mr(e)}function c(e){var r=new Set;e.forEach((function(e){dr(e.target)&&e.target.isConnected&&r.add(e.target)})),r.size>0&&t({updated:Array.from(r),created:[],removed:[],moved:[]})}function d(e){var t=de(e,{onMinorMutations:u,onHugeMutations:p}),r=new MutationObserver(c);r.observe(e,{attributes:!0,attributeFilter:["rel","disabled"],subtree:!0}),Pr.push(t,r),Sr.add(e)}function g(e){null==e.shadowRoot||Sr.has(e.shadowRoot)||d(e.shadowRoot)}e.forEach(a),d(document),te(document.documentElement,g),Fr((function(e){var r=[];e.forEach((function(e){return F(r,gr(e.shadowRoot))})),t({created:r,updated:[],removed:[],moved:[]}),e.forEach((function(e){return g(e)}))})),Mr(document)}function wr(){Pr.forEach((function(e){return e.disconnect()})),Pr.splice(0,Pr.length),Sr=new WeakSet}function Tr(){wr(),Cr()}var Or=new Map,_r=new Map,Dr=null,Ir=null,Ar=null;function Nr(e,t){void 0===t&&(t=document.head||document);var r=t.querySelector("."+e);return r||((r=document.createElement("style")).classList.add("darkreader"),r.classList.add(e),r.media="screen"),r}var Wr=new Map;function Lr(e,t){Wr.has(t)&&Wr.get(t).stop(),Wr.set(t,ee(e,"parent"))}function xr(){E(Wr.values(),(function(e){return e.stop()})),Wr.clear()}function zr(){var e=Nr("darkreader--fallback");e.textContent=wt(Dr,{strict:!0}),document.head.insertBefore(e,document.head.firstChild),Lr(e,"fallback");var r=Nr("darkreader--user-agent");r.textContent=Ft(Dr,Ar),document.head.insertBefore(r,e.nextSibling),Lr(r,"user-agent");var n=Nr("darkreader--text");Dr.useFont||Dr.textStroke>0?n.textContent=it(Dr):n.textContent="",document.head.insertBefore(n,e.nextSibling),Lr(n,"text");var o=Nr("darkreader--invert");Ir&&Array.isArray(Ir.invert)&&Ir.invert.length>0?o.textContent=[Ir.invert.join(", ")+" {"," filter: "+st(t(t({},Dr),{contrast:0===Dr.mode?Dr.contrast:We(Dr.contrast-10,0,100)}))+" !important;","}"].join("\n"):o.textContent="",document.head.insertBefore(o,n.nextSibling),Lr(o,"invert");var a=Nr("darkreader--inline");a.textContent=Vt(),document.head.insertBefore(a,o.nextSibling),Lr(a,"inline");var i=Nr("darkreader--override");i.textContent=Ir&&Ir.css?Ur(Ir.css):"",document.head.appendChild(i),Lr(i,"override")}var jr=new Set;function Gr(e){var t=Nr("darkreader--inline",e);t.textContent=Vt(),e.insertBefore(t,e.firstChild),jr.add(e)}function Ur(e){return e.replace(/\${(.+?)}/g,(function(e,t){try{return Ye(_t(t),Dr)}catch(r){return _(r),t}}))}function Hr(){var e=document.head.querySelector(".darkreader--fallback");e&&(e.textContent="")}function Vr(){Xr(),Zr(W(document.documentElement));var e=gr(document).filter((function(e){return!Or.has(e)})).map((function(e){return Yr(e)})),t=e.map((function(e){return e.details()})).filter((function(e){return e&&e.variables.size>0})).map((function(e){return e.variables}));0===t.length?(Or.forEach((function(e){return e.render(Dr,_r)})),0===$r.size&&Hr()):(t.forEach((function(e){return Zr(e)})),Qr((function(){0===$r.size&&Hr()}))),e.forEach((function(e){return e.watch()}));var r=C(document.querySelectorAll(Ht));te(document.documentElement,(function(e){var t=e.shadowRoot.querySelectorAll(Ht);t.length>0&&(Gr(e.shadowRoot),F(r,t))}));var n=Ir&&Array.isArray(Ir.ignoreInlineStyle)?Ir.ignoreInlineStyle:[];r.forEach((function(e){return nr(e,Dr,n)}))}var Kr=0,$r=new Set;function Yr(e){if(!Or.has(e)){var t=++Kr,r=yr(e,{update:a,loadingStart:n,loadingEnd:o});return Or.set(e,r),r}function n(){if(!re()||!rn){$r.add(t);var e=document.querySelector(".darkreader--fallback");e.textContent||(e.textContent=wt(Dr,{strict:!1}))}}function o(){$r.delete(t),0===$r.size&&re()&&Hr()}function a(){var e=r.details();e&&(0===e.variables.size?r.render(Dr,_r):(Zr(e.variables),Qr()))}}function Zr(e){0!==e.size&&(e.forEach((function(e,t){return _r.set(t,e)})),_r.forEach((function(e,t){return _r.set(t,Y(e,_r))})))}function Jr(e){var t=Or.get(e);t&&(t.destroy(),Or.delete(e))}var Qr=Z((function(e){Or.forEach((function(e){return e.render(Dr,_r)})),e&&e()})),Xr=function(){Qr.cancel()};function en(){0===$r.size&&Hr()}var tn=null,rn=!document.hidden;function nn(e){var t=Boolean(tn);tn=function(){document.hidden||(on(),e(),rn=!0)},t||document.addEventListener("visibilitychange",tn)}function on(){document.removeEventListener("visibilitychange",tn),tn=null}function an(){function e(){Vr(),sn()}zr(),document.hidden?nn(e):e(),ur(Dr)}function sn(){Br(Array.from(Or.keys()),(function(e){var t=e.created,r=e.updated,n=e.removed,o=e.moved,a=n,i=t.concat(r).concat(o).filter((function(e){return!Or.has(e)})),s=o.filter((function(e){return Or.has(e)}));a.forEach((function(e){return Jr(e)}));var l=i.map((function(e){return Yr(e)})),u=l.map((function(e){return e.details()})).filter((function(e){return e&&e.variables.size>0})).map((function(e){return e.variables}));0===u.length?l.forEach((function(e){return e.render(Dr,_r)})):(u.forEach((function(e){return Zr(e)})),Qr()),l.forEach((function(e){return e.watch()})),s.forEach((function(e){return Or.get(e).restore()}))}));var e=Ir&&Array.isArray(Ir.ignoreInlineStyle)?Ir.ignoreInlineStyle:[];Zt((function(t){if(nr(t,Dr,e),t===document.documentElement){var r=W(document.documentElement);r.size>0&&(Zr(r),Qr())}}),(function(t){var r=t.querySelectorAll(Ht);r.length>0&&(Gr(t),E(r,(function(t){return nr(t,Dr,e)})))})),oe(en)}function ln(){Or.forEach((function(e){return e.pause()})),xr(),Tr(),Qt(),ae(en)}function un(e,t,r){if(Dr=e,Ir=t,Ar=r,document.head)an();else{if(!s()){var n=Nr("darkreader--fallback");document.documentElement.appendChild(n),n.textContent=wt(Dr,{strict:!0})}var o=new MutationObserver((function(){document.head&&(o.disconnect(),an())}));o.observe(document,{childList:!0,subtree:!0})}}function pn(){cn(),X(document.querySelector(".darkreader--fallback")),document.head&&(pr(),X(document.head.querySelector(".darkreader--user-agent")),X(document.head.querySelector(".darkreader--text")),X(document.head.querySelector(".darkreader--invert")),X(document.head.querySelector(".darkreader--inline")),X(document.head.querySelector(".darkreader--override"))),jr.forEach((function(e){X(e.querySelector(".darkreader--inline"))})),jr.clear(),E(Or.keys(),(function(e){return Jr(e)})),E(document.querySelectorAll(".darkreader"),X)}function cn(){on(),Xr(),ln(),zt()}var dn=function(){try{return window.self!==window.top}catch(e){return console.warn(e),!0}}();function gn(e,r){void 0===e&&(e={}),void 0===r&&(r=null);var n=t(t({},q),e);if(n.engine!==P.dynamicTheme)throw new Error("Theme engine is not supported");un(n,r,dn)}function fn(){pn()}var yn=matchMedia("(prefers-color-scheme: dark)"),hn={themeOptions:null,fixes:null};function mn(){yn.matches?gn(hn.themeOptions,hn.fixes):fn()}function Rn(e,t){void 0===e&&(e={}),void 0===t&&(t=null),e?(hn={themeOptions:e,fixes:t},mn(),yn.addListener(mn)):(yn.removeListener(mn),fn())}var bn=h;e.auto=Rn,e.disable=fn,e.enable=gn,e.setFetchMethod=bn,Object.defineProperty(e,"__esModule",{value:!0})}(t)},9393:function(__unused_webpack_module,exports,__webpack_require__){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(e,t,r){e instanceof String&&(e=String(e));for(var n=e.length,o=0;o =n}}),"es6","es3"),$jscomp.polyfill("Array.prototype.find",(function(e){return e||function(e,t){return $jscomp.findInternal(this,e,t).v}}),"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",(function(e){return e||function(e,t){var r=$jscomp.checkStringArgs(this,e,"startsWith");e+="";var n=r.length,o=e.length;t=Math.max(0,Math.min(0|t,r.length));for(var a=0;a =o}}),"es6","es3"),$jscomp.polyfill("String.prototype.repeat",(function(e){return e||function(e){var t=$jscomp.checkStringArgs(this,null,"repeat");if(0>e||1342177279 >>=1)&&(t+=t);return r}}),"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=this||self,goog.isDef=function(e){return void 0!==e},goog.isString=function(e){return"string"==typeof e},goog.isBoolean=function(e){return"boolean"==typeof e},goog.isNumber=function(e){return"number"==typeof e},goog.exportPath_=function(e,t,r){e=e.split("."),r=r||goog.global,e[0]in r||"undefined"==typeof r.execScript||r.execScript("var "+e[0]);for(var n;e.length&&(n=e.shift());)!e.length&&goog.isDef(t)?r[n]=t:r=r[n]&&r[n]!==Object.prototype[n]?r[n]:r[n]={}},goog.define=function(e,t){if(!COMPILED){var r=goog.global.CLOSURE_UNCOMPILED_DEFINES,n=goog.global.CLOSURE_DEFINES;r&&void 0===r.nodeType&&Object.prototype.hasOwnProperty.call(r,e)?t=r[e]:n&&void 0===n.nodeType&&Object.prototype.hasOwnProperty.call(n,e)&&(t=n[e])}return t},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.STRICT_MODE_COMPATIBLE=!1,goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(e){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");if(!COMPILED&&goog.isProvided_(e))throw Error('Namespace "'+e+'" already declared.');goog.constructNamespace_(e)},goog.constructNamespace_=function(e,t){if(!COMPILED){delete goog.implicitNamespaces_[e];for(var r=e;(r=r.substring(0,r.lastIndexOf(".")))&&!goog.getObjectByName(r);)goog.implicitNamespaces_[r]=!0}goog.exportPath_(e,t)},goog.getScriptNonce=function(e){return e&&e!=goog.global?goog.getScriptNonce_(e.document):(null===goog.cspNonce_&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(e){return(e=e.querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(e)?e:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(e){if(!goog.isString(e)||!e||-1==e.search(goog.VALID_MODULE_RE_))throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+e+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");if(goog.moduleLoaderState_.moduleName=e,!COMPILED){if(goog.isProvided_(e))throw Error('Namespace "'+e+'" already declared.');delete goog.implicitNamespaces_[e]}},goog.module.get=function(e){return goog.module.getInternal_(e)},goog.module.getInternal_=function(e){if(!COMPILED){if(e in goog.loadedModules_)return goog.loadedModules_[e].exports;if(!goog.implicitNamespaces_[e])return null!=(e=goog.getObjectByName(e))?e:null}return null},goog.ModuleType={ES6:"es6",GOOG:"goog"},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var e=goog.global.$jscomp;return!!e&&("function"==typeof e.getCurrentModulePath&&!!e.getCurrentModulePath())},goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInGoogModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(e){if(!COMPILED){if(!goog.isInEs6ModuleLoader_())throw Error("goog.declareModuleId may only be called from within an ES6 module");if(goog.moduleLoaderState_&&goog.moduleLoaderState_.moduleName)throw Error("goog.declareModuleId may only be called once per module.");if(e in goog.loadedModules_)throw Error('Module with namespace "'+e+'" already exists.')}if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=e;else{var t=goog.global.$jscomp;if(!t||"function"!=typeof t.getCurrentModulePath)throw Error('Module with namespace "'+e+'" has been loaded incorrectly.');t=t.require(t.getCurrentModulePath()),goog.loadedModules_[e]={exports:t,type:goog.ModuleType.ES6,moduleId:e}}},goog.setTestOnly=function(e){if(goog.DISALLOW_TEST_ONLY_CODE)throw e=e||"",Error("Importing test-only code into non-debug environment"+(e?": "+e:"."))},goog.forwardDeclare=function(e){},COMPILED||(goog.isProvided_=function(e){return e in goog.loadedModules_||!goog.implicitNamespaces_[e]&&goog.isDefAndNotNull(goog.getObjectByName(e))},goog.implicitNamespaces_={"goog.module":!0}),goog.getObjectByName=function(e,t){e=e.split("."),t=t||goog.global;for(var r=0;r >>0),goog.uidCounter_=0,goog.getHashCode=goog.getUid,goog.removeHashCode=goog.removeUid,goog.cloneObject=function(e){var t=goog.typeOf(e);if("object"==t||"array"==t){if("function"===typeof e.clone)return e.clone();for(var r in t="array"==t?[]:{},e)t[r]=goog.cloneObject(e[r]);return t}return e},goog.bindNative_=function(e,t,r){return e.call.apply(e.bind,arguments)},goog.bindJs_=function(e,t,r){if(!e)throw Error();if(2 {"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')})),a("es7",(function(){return b("2 ** 2 == 4")})),a("es8",(function(){return b("async () => 1, true")})),a("es9",(function(){return b("({...rest} = {}), true")})),a("es_next",(function(){return!1})),{target:c,map:d}},goog.Transpiler.prototype.needsTranspile=function(e,t){if("always"==goog.TRANSPILE)return!0;if("never"==goog.TRANSPILE)return!1;if(!this.requiresTranspilation_){var r=this.createRequiresTranspilation_();this.requiresTranspilation_=r.map,this.transpilationTarget_=this.transpilationTarget_||r.target}if(e in this.requiresTranspilation_)return!!this.requiresTranspilation_[e]||!(!goog.inHtmlDocument_()||"es6"!=t||"noModule"in goog.global.document.createElement("script"));throw Error("Unknown language mode: "+e)},goog.Transpiler.prototype.transpile=function(e,t){return goog.transpile_(e,t,this.transpilationTarget_)},goog.transpiler_=new goog.Transpiler,goog.protectScriptTag_=function(e){return e.replace(/<\/(SCRIPT)/gi,"\\x3c/$1")},goog.DebugLoader_=function(){this.dependencies_={},this.idToPath_={},this.written_={},this.loadingDeps_=[],this.depsToLoad_=[],this.paused_=!1,this.factory_=new goog.DependencyFactory(goog.transpiler_),this.deferredCallbacks_={},this.deferredQueue_=[]},goog.DebugLoader_.prototype.bootstrap=function(e,t){function r(){n&&(goog.global.setTimeout(n,0),n=null)}var n=t;if(e.length){t=[];for(var o=0;o <\/script>",t.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(n):n)}else{var o=t.createElement("script");o.defer=goog.Dependency.defer_,o.async=!1,o.type="text/javascript",(n=goog.getScriptNonce())&&o.setAttribute("nonce",n),goog.DebugLoader_.IS_OLD_IE_?(e.pause(),o.onreadystatechange=function(){"loaded"!=o.readyState&&"complete"!=o.readyState||(e.loaded(),e.resume())}):o.onload=function(){o.onload=null,e.loaded()},o.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(this.path):this.path,t.head.appendChild(o)}}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),"deps.js"==this.relativePath?(goog.logToConsole_("Consider setting CLOSURE_IMPORT_SCRIPT before loading base.js, or setting CLOSURE_NO_DEPS to true."),e.loaded()):e.pause()},goog.Es6ModuleDependency=function(e,t,r,n,o){goog.Dependency.call(this,e,t,r,n,o)},goog.inherits(goog.Es6ModuleDependency,goog.Dependency),goog.Es6ModuleDependency.prototype.load=function(e){if(goog.global.CLOSURE_IMPORT_SCRIPT)goog.global.CLOSURE_IMPORT_SCRIPT(this.path)?e.loaded():e.pause();else if(goog.inHtmlDocument_()){var t=goog.global.document,r=this;if(goog.isDocumentLoading_()){var n=function(e,r){e=r?'