@miradorlabs/parallax-web 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,6 +1,4233 @@
1
- import { ParallaxGatewayServiceClient } from 'mirador-gateway-parallax-web/proto/gateway/parallax/v1/Parallax_gatewayServiceClientPb';
2
1
  import { Observable } from 'rxjs';
3
- export { AddSpanErrorRequest, AddSpanErrorResponse, AddSpanEventRequest, AddSpanEventResponse, AddSpanHintRequest, AddSpanHintResponse, CreateTraceRequest, CreateTraceResponse, FinishSpanRequest, FinishSpanResponse, StartSpanRequest, StartSpanResponse } from 'mirador-gateway-parallax-web/proto/gateway/parallax/v1/parallax_gateway_pb';
2
+
3
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
+
5
+ var grpcWeb = {};
6
+
7
+ /*
8
+
9
+ Copyright The Closure Library Authors.
10
+ SPDX-License-Identifier: Apache-2.0
11
+ */
12
+
13
+ var hasRequiredGrpcWeb;
14
+
15
+ function requireGrpcWeb () {
16
+ if (hasRequiredGrpcWeb) return grpcWeb;
17
+ hasRequiredGrpcWeb = 1;
18
+ var n,p=p||{},q=grpcWeb||self;function r(a,b){a=a.split(".");b=b||q;for(var c=0;c<a.length;c++)if(b=b[a[c]],b==null)return null;return b}function t(a){var b=typeof a;return b=="object"&&a!=null||b=="function"}function ca(a,b,c){return a.call.apply(a.bind,arguments)}
19
+ function da(a,b,c){if(!a)throw Error();if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}function w(a,b,c){w=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?ca:da;return w.apply(null,arguments)}
20
+ function x(a,b){function c(){}c.prototype=b.prototype;a.N=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.aa=function(d,e,g){for(var f=Array(arguments.length-2),h=2;h<arguments.length;h++)f[h-2]=arguments[h];return b.prototype[e].apply(d,f)};}class ea{constructor(a){this.g=a||{};}get(a){return this.g[a]}}class fa{constructor(a,b,c){var d=new ea;this.j=a;this.h=b;this.g=c;this.i=d;}getRequestMessage(){return this.j}getMethodDescriptor(){return this.h}getMetadata(){return this.g}getCallOptions(){return this.i}}class ha{constructor(a,b,c={},d=null){this.i=a;this.g=c;this.h=b;this.j=d;}getResponseMessage(){return this.i}getMetadata(){return this.g}getMethodDescriptor(){return this.h}getStatus(){return this.j}}function ia(a,b,c={}){return new fa(b,a,c)}function ja(a,b,c={},d=null){return new ha(b,a,c,d)}const ka=class{constructor(a,b,c,d,e,g){this.name=a;this.g=e;this.h=g;}getName(){return this.name}};ka.prototype.getName=ka.prototype.getName;class la{constructor(a){this.g=a;}on(a,b){return a=="data"||a=="error"?this:this.g.on(a,b)}removeListener(a,b){return this.g.removeListener(a,b)}cancel(){this.g.cancel();}}function ma(a){switch(a){case 0:return "No Error";case 1:return "Access denied to content document";case 2:return "File not found";case 3:return "Firefox silently errored";case 4:return "Application custom error";case 5:return "An exception occurred";case 6:return "Http response at 400 or 500 level";case 7:return "Request was aborted";case 8:return "Request timed out";case 9:return "The resource is not available offline";default:return "Unrecognized error code"}}function y(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,y);else {const c=Error().stack;c&&(this.stack=c);}a&&(this.message=String(a));b!==void 0&&(this.cause=b);}x(y,Error);y.prototype.name="CustomError";function na(a,b){a=a.split("%s");let c="";const d=a.length-1;for(let e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");y.call(this,c+a[d]);}x(na,y);na.prototype.name="AssertionError";function oa(a,b){throw new na("Failure"+(": "+a),Array.prototype.slice.call(arguments,1));}function pa(a,b){function c(l){l==qa?f.o=l:l==B?f.o=l:ra(f,h,k,"invalid frame byte");f.h=sa;f.g=0;f.l=0;}function d(l){f.l++;f.g=(f.g<<8)+l;f.l==4&&(f.h=ta,f.m=0,typeof Uint8Array!=="undefined"?f.i=new Uint8Array(f.g):f.i=Array(f.g),f.g==0&&g());}function e(l){f.i[f.m++]=l;f.m==f.g&&g();}function g(){var l={};l[f.o]=f.i;f.j.push(l);f.h=ua;}var f=a,h,k=0;for(b instanceof Uint8Array||b instanceof Array?h=b:h=new Uint8Array(b);k<h.length;){switch(f.h){case va:ra(f,h,k,"stream already broken");break;case ua:c(h[k]);
21
+ break;case sa:d(h[k]);break;case ta:e(h[k]);break;default:throw Error("unexpected parser state: "+f.h);}f.v++;k++;}a=f.j;f.j=[];return a.length>0?a:null}class wa{constructor(){this.u=null;this.j=[];this.v=0;this.h=ua;this.l=this.g=this.o=0;this.i=null;this.m=0;}}var ua=0,sa=1,ta=2,va=3,qa=0,B=128;function ra(a,b,c,d){a.h=va;a.u="The stream is broken @"+a.v+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.u);}function xa(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}}
22
+ function ya(a){switch(a){case 0:return "OK";case 1:return "CANCELLED";case 2:return "UNKNOWN";case 3:return "INVALID_ARGUMENT";case 4:return "DEADLINE_EXCEEDED";case 5:return "NOT_FOUND";case 6:return "ALREADY_EXISTS";case 7:return "PERMISSION_DENIED";case 16:return "UNAUTHENTICATED";case 8:return "RESOURCE_EXHAUSTED";case 9:return "FAILED_PRECONDITION";case 10:return "ABORTED";case 11:return "OUT_OF_RANGE";case 12:return "UNIMPLEMENTED";case 13:return "INTERNAL";case 14:return "UNAVAILABLE";case 15:return "DATA_LOSS";
23
+ default:return ""}}class C extends Error{constructor(a,b,c={}){super(b);this.code=a;this.metadata=c;}toString(){let a=`RpcError(${ya(this.code)||String(this.code)})`;this.message&&(a+=": "+this.message);return a}}C.prototype.name="RpcError";const za=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.indexOf(b,0);for(let c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return -1};function Aa(){var a=q.navigator;return a&&(a=a.userAgent)?a:""}function D(a){return Aa().indexOf(a)!=-1}function Ba(a){Ba[" "](a);return a}Ba[" "]=function(){};var Ca=D("Trident")||D("MSIE"),Da=D("Gecko")&&!(Aa().toLowerCase().indexOf("webkit")!=-1&&!D("Edge"))&&!(D("Trident")||D("MSIE"))&&!D("Edge");var Fa=class{constructor(a){if(Ea!==Ea)throw Error("SafeUrl is not meant to be built directly");this.g=a;}toString(){return this.g.toString()}},Ea={};new Fa("about:invalid#zClosurez");new Fa("about:blank");const Ga={};class Ha{constructor(){if(Ga!==Ga)throw Error("SafeStyle is not meant to be built directly");}toString(){return "".toString()}}new Ha;function Ia(a,b){for(const c in a)b.call(void 0,a[c],c,a);}function Ja(a,b){const c={};for(const d in a)c[d]=b.call(void 0,a[d],d,a);return c}const Ka="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function La(a,b){let c,d;for(let e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(let g=0;g<Ka.length;g++)c=Ka[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c]);}}const Ma={};class Na{constructor(){if(Ma!==Ma)throw Error("SafeStyleSheet is not meant to be built directly");}toString(){return "".toString()}}new Na;const Oa={};class Pa{constructor(){var a=q.trustedTypes&&q.trustedTypes.emptyHTML||"";if(Oa!==Oa)throw Error("SafeHtml is not meant to be built directly");this.g=a;}toString(){return this.g.toString()}}new Pa;function Qa(a){var b=1;a=a.split(":");const c=[];for(;b>0&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c}function E(){this.v=this.v;this.o=this.o;}var Ra=0;E.prototype.v=false;E.prototype.dispose=function(){if(!this.v&&(this.v=true,this.C(),0!=Ra));};E.prototype.C=function(){if(this.o)for(;this.o.length;)this.o.shift()();};var Ta=Object.freeze||function(a){return a};function F(a,b){this.type=a;this.g=this.target=b;this.defaultPrevented=false;}F.prototype.h=function(){this.defaultPrevented=true;};var Ua=function(){if(!q.addEventListener||!Object.defineProperty)return false;var a=false,b=Object.defineProperty({},"passive",{get:function(){a=true;}});try{const c=()=>{};q.addEventListener("test",c,b);q.removeEventListener("test",c,b);}catch(c){}return a}();function G(a,b){F.call(this,a?a.type:"");this.relatedTarget=this.g=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=false;this.state=null;this.pointerId=0;this.pointerType="";this.i=null;a&&this.init(a,b);}x(G,F);var Va=Ta({2:"touch",3:"pen",4:"mouse"});
24
+ G.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.g=b;if(b=a.relatedTarget){if(Da){a:{try{Ba(b.nodeName);var e=!0;break a}catch(g){}e=false;}e||(b=null);}}else c=="mouseover"?b=a.fromElement:c=="mouseout"&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||
25
+ 0):(this.clientX=a.clientX!==void 0?a.clientX:a.pageX,this.clientY=a.clientY!==void 0?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.key=a.key||"";this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=typeof a.pointerType==="string"?a.pointerType:Va[a.pointerType]||"";this.state=a.state;this.i=a;a.defaultPrevented&&G.N.h.call(this);};
26
+ G.prototype.h=function(){G.N.h.call(this);var a=this.i;a.preventDefault?a.preventDefault():a.returnValue=false;};var H="closure_listenable_"+(Math.random()*1E6|0);var Wa=0;function Xa(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.M=e;this.key=++Wa;this.D=this.L=false;}function I(a){a.D=true;a.listener=null;a.proxy=null;a.src=null;a.M=null;}function J(a){this.src=a;this.g={};this.h=0;}J.prototype.add=function(a,b,c,d,e){var g=a.toString();a=this.g[g];a||(a=this.g[g]=[],this.h++);var f=Ya(a,b,d,e);f>-1?(b=a[f],c||(b.L=false)):(b=new Xa(b,this.src,g,!!d,e),b.L=c,a.push(b));return b};function Za(a,b){var c=b.type;if(c in a.g){var d=a.g[c],e=za(d,b),g;(g=e>=0)&&Array.prototype.splice.call(d,e,1);g&&(I(b),a.g[c].length==0&&(delete a.g[c],a.h--));}}
27
+ function Ya(a,b,c,d){for(var e=0;e<a.length;++e){var g=a[e];if(!g.D&&g.listener==b&&g.capture==!!c&&g.M==d)return e}return -1}var $a="closure_lm_"+(Math.random()*1E6|0),ab={};function cb(a,b,c,d,e){if(Array.isArray(b))for(var g=0;g<b.length;g++)cb(a,b[g],c,d,e);else c=eb(c),a&&a[H]?a.j.add(String(b),c,false,t(d)?!!d.capture:false,e):fb(a,b,c,false,d,e);}
28
+ function fb(a,b,c,d,e,g){if(!b)throw Error("Invalid event type");var f=t(e)?!!e.capture:!!e,h=gb(a);h||(a[$a]=h=new J(a));c=h.add(b,c,d,f,g);if(!c.proxy){d=hb();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)Ua||(e=f),e===void 0&&(e=false),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(mb(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");}}
29
+ function hb(){function a(c){return b.call(a.src,a.listener,c)}const b=nb;return a} function ob(a,b,c,d,e){if(Array.isArray(b))for(var g=0;g<b.length;g++)ob(a,b[g],c,d,e);else (d=t(d)?!!d.capture:!!d,c=eb(c),a&&a[H])?(a=a.j,b=String(b).toString(),b in a.g&&(g=a.g[b],c=Ya(g,c,d,e),c>-1&&(I(g[c]),Array.prototype.splice.call(g,c,1),g.length==0&&(delete a.g[b],a.h--)))):a&&(a=gb(a))&&(b=a.g[b.toString()],a=-1,b&&(a=Ya(b,c,d,e)),(c=a>-1?b[a]:null)&&pb(c));}
30
+ function pb(a){if(typeof a!=="number"&&a&&!a.D){var b=a.src;if(b&&b[H])Za(b.j,a);else {var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(mb(c),d):b.addListener&&b.removeListener&&b.removeListener(d);(c=gb(b))?(Za(c,a),c.h==0&&(c.src=null,b[$a]=null)):I(a);}}}function mb(a){return a in ab?ab[a]:ab[a]="on"+a}function nb(a,b){if(a.D)a=true;else {b=new G(b,this);var c=a.listener,d=a.M||a.src;a.L&&pb(a);a=c.call(d,b);}return a}
31
+ function gb(a){a=a[$a];return a instanceof J?a:null}var qb="__closure_events_fn_"+(Math.random()*1E9>>>0);function eb(a){if(typeof a==="function")return a;a[qb]||(a[qb]=function(b){return a.handleEvent(b)});return a[qb]}function K(){E.call(this);this.j=new J(this);this.W=this;this.S=null;}x(K,E);K.prototype[H]=true;K.prototype.removeEventListener=function(a,b,c,d){ob(this,a,b,c,d);};
32
+ function L(a,b){var c,d=a.S;if(d)for(c=[];d;d=d.S)c.push(d);a=a.W;d=b.type||b;if(typeof b==="string")b=new F(b,a);else if(b instanceof F)b.target=b.target||a;else {var e=b;b=new F(d,a);La(b,e);}e=true;if(c)for(var g=c.length-1;g>=0;g--){var f=b.g=c[g];e=M(f,d,true,b)&&e;}f=b.g=a;e=M(f,d,true,b)&&e;e=M(f,d,false,b)&&e;if(c)for(g=0;g<c.length;g++)f=b.g=c[g],e=M(f,d,false,b)&&e;}
33
+ K.prototype.C=function(){K.N.C.call(this);if(this.j){var a=this.j,c;for(c in a.g){for(var d=a.g[c],e=0;e<d.length;e++)I(d[e]);delete a.g[c];a.h--;}}this.S=null;};function M(a,b,c,d){b=a.j.g[String(b)];if(!b)return true;b=b.concat();for(var e=true,g=0;g<b.length;++g){var f=b[g];if(f&&!f.D&&f.capture==c){var h=f.listener,k=f.M||f.src;f.L&&Za(a.j,f);e=h.call(k,d)!==false&&e;}}return e&&!d.defaultPrevented}var rb=q;function sb(a,b,c){if(typeof a==="function")c&&(a=w(a,c));else if(a&&typeof a.handleEvent=="function")a=w(a.handleEvent,a);else throw Error("Invalid listener argument");return Number(b)>2147483647?-1:rb.setTimeout(a,b||0)}var N=class{constructor(a,b){this.name=a;this.value=b;}toString(){return this.name}},O=new N("OFF",Infinity),tb=new N("SEVERE",1E3),ub=new N("CONFIG",700),vb=new N("FINE",500),yb=class{constructor(a,b,c){this.reset(a||O,b,c,void 0,void 0);}reset(){}};function zb(a){if(a.g)return a.g;if(a.h)return zb(a.h);oa("Root logger has no level set.");return O}function Ab(a,b){for(;a;)a.j.forEach(c=>{c(b);}),a=a.h;}
34
+ var Bb=class{constructor(a,b=null){this.g=null;this.j=[];this.h=b||null;this.i=[];this.l={getName:()=>a};}};function P(a,b){var c=a.entries[b];if(c)return c;c=P(a,b.slice(0,Math.max(b.lastIndexOf("."),0)));const d=new Bb(b,c);a.entries[b]=d;c.i.push(d);return d}var Cb=class{constructor(){this.entries={};const a=new Bb("");a.g=ub;this.entries[""]=a;}},Db;function Eb(){Db||=new Cb;return Db}
35
+ function Fb(a,b,c){var d;if(d=a)if(d=a&&b){d=b.value;var e=a?zb(P(Eb(),a.getName())):O;d=d>=e.value;}d&&(b=b||O,d=P(Eb(),a.getName()),typeof c==="function"&&(c=c()),a=a.getName(),a=new yb(b,c,a),Ab(d,a));}function Gb(a,b){a&&Fb(a,tb,b);}function Q(a,b){a&&Fb(a,vb,b);}function Hb(){}Hb.prototype.g=null;function Ib(a){var b;(b=a.g)||(b={},Jb(a)&&(b[0]=true,b[1]=true),b=a.g=b);return b}var Kb;function Lb(){}x(Lb,Hb);function Mb(a){return (a=Jb(a))?new ActiveXObject(a):new XMLHttpRequest}function Jb(a){if(!a.h&&typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){const b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];for(let c=0;c<b.length;c++){const d=b[c];try{return new ActiveXObject(d),a.h=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.h}Kb=new Lb;var Nb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function R(a){K.call(this);this.headers=new Map;this.K=a||null;this.i=false;this.J=this.g=null;this.T=this.G="";this.m=0;this.A="";this.l=this.R=this.F=this.P=false;this.u=0;this.H=null;this.B=Ob;this.I=this.O=false;}x(R,K);var Ob="";R.prototype.h=P(Eb(),"goog.net.XhrIo").l;var Pb=/^https?$/i,Qb=["POST","PUT"];
36
+ function Rb(a,b,c){if(a.g)throw Error("[goog.net.XhrIo] Object is active with another request="+a.G+"; newUri="+b);a.G=b;a.A="";a.m=0;a.T="POST";a.P=false;a.i=true;a.g=a.K?Mb(a.K):Mb(Kb);a.J=a.K?Ib(a.K):Ib(Kb);a.g.onreadystatechange=w(a.U,a);try{Q(a.h,S(a,"Opening Xhr")),a.R=!0,a.g.open("POST",String(b),!0),a.R=!1;}catch(g){Q(a.h,S(a,"Error opening Xhr: "+g.message));Sb(a,g);return}b=c||"";c=new Map(a.headers);const d=Array.from(c.keys()).find(g=>"content-type"==g.toLowerCase()),e=q.FormData&&b instanceof
37
+ q.FormData;!(za(Qb,"POST")>=0)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const [g,f]of c)a.g.setRequestHeader(g,f);a.B&&(a.g.responseType=a.B);"withCredentials"in a.g&&a.g.withCredentials!==a.O&&(a.g.withCredentials=a.O);try{Tb(a),a.u>0&&(a.I=Ub(a.g),Q(a.h,S(a,"Will abort after "+a.u+"ms if incomplete, xhr2 "+a.I)),a.I?(a.g.timeout=a.u,a.g.ontimeout=w(a.V,a)):a.H=sb(a.V,a.u,a)),Q(a.h,S(a,"Sending request")),a.F=!0,a.g.send(b),a.F=!1;}catch(g){Q(a.h,S(a,"Send error: "+
38
+ g.message)),Sb(a,g);}}function Ub(a){return Ca&&typeof a.timeout==="number"&&a.ontimeout!==void 0}n=R.prototype;n.V=function(){typeof p!="undefined"&&this.g&&(this.A="Timed out after "+this.u+"ms, aborting",this.m=8,Q(this.h,S(this,this.A)),L(this,"timeout"),this.abort(8));};function Sb(a,b){a.i=false;a.g&&(a.l=true,a.g.abort(),a.l=false);a.A=b;a.m=5;Vb(a);T(a);}function Vb(a){a.P||(a.P=true,L(a,"complete"),L(a,"error"));}
39
+ n.abort=function(a){this.g&&this.i&&(Q(this.h,S(this,"Aborting")),this.i=false,this.l=true,this.g.abort(),this.l=false,this.m=a||7,L(this,"complete"),L(this,"abort"),T(this));};n.C=function(){this.g&&(this.i&&(this.i=false,this.l=true,this.g.abort(),this.l=false),T(this,true));R.N.C.call(this);};n.U=function(){this.v||(this.R||this.F||this.l?Wb(this):this.X());};n.X=function(){Wb(this);};
40
+ function Wb(a){if(a.i&&typeof p!="undefined")if(a.J[1]&&U(a)==4&&a.getStatus()==2)Q(a.h,S(a,"Local request error detected and ignored"));else if(a.F&&U(a)==4)sb(a.U,0,a);else if(L(a,"readystatechange"),U(a)==4){Q(a.h,S(a,"Request complete"));a.i=false;try{const f=a.getStatus();a:switch(f){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var b=!0;break a;default:b=!1;}var c;if(!(c=b)){var d;if(d=f===0){var e=String(a.G).match(Nb)[1]||null;!e&&q.self&&q.self.location&&(e=q.self.location.protocol.slice(0,
41
+ -1));d=!Pb.test(e?e.toLowerCase():"");}c=d;}if(c)L(a,"complete"),L(a,"success");else {a.m=6;try{var g=U(a)>2?a.g.statusText:"";}catch(h){Q(a.h,"Can not get status: "+h.message),g="";}a.A=g+" ["+a.getStatus()+"]";Vb(a);}}finally{T(a);}}}function T(a,b){if(a.g){Tb(a);const c=a.g,d=a.J[0]?()=>{}:null;a.g=null;a.J=null;b||L(a,"ready");try{c.onreadystatechange=d;}catch(e){Gb(a.h,"Problem encountered resetting onreadystatechange: "+e.message);}}}
42
+ function Tb(a){a.g&&a.I&&(a.g.ontimeout=null);a.H&&(rb.clearTimeout(a.H),a.H=null);}n.isActive=function(){return !!this.g};function U(a){return a.g?a.g.readyState:0}n.getStatus=function(){try{return U(this)>2?this.g.status:-1}catch(a){return -1}};
43
+ function Xb(a){try{if(!a.g)return null;if("response"in a.g)return a.g.response;switch(a.B){case Ob:case "text":return a.g.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.g)return a.g.mozResponseArrayBuffer}Gb(a.h,"Response type "+a.B+" is not supported on this browser");return null}catch(b){return Q(a.h,"Can not get response: "+b.message),null}}
44
+ function Yb(a){const b={};a=(a.g&&U(a)>=2?a.g.getAllResponseHeaders()||"":"").split("\r\n");for(let d=0;d<a.length;d++){if(/^[\s\xa0]*$/.test(a[d]))continue;var c=Qa(a[d]);const e=c[0];c=c[1];if(typeof c!=="string")continue;c=c.trim();const g=b[e]||[];b[e]=g;g.push(c);}return Ja(b,function(d){return d.join(", ")})}function S(a,b){return b+" ["+a.T+" "+a.G+" "+a.getStatus()+"]"}var Zb={},V=null;function $b(a){var b=a.length,c=b*3/4;c%3?c=Math.floor(c):"=.".indexOf(a[b-1])!=-1&&(c="=.".indexOf(a[b-2])!=-1?c-2:c-1);var d=new Uint8Array(c),e=0;ac(a,function(g){d[e++]=g;});return e!==c?d.subarray(0,e):d}
45
+ function ac(a,b){function c(k){for(;d<a.length;){var l=a.charAt(d++),m=V[l];if(m!=null)return m;if(!/^[\s\xa0]*$/.test(l))throw Error("Unknown base64 encoding at char: "+l);}return k}bc();for(var d=0;;){var e=c(-1),g=c(0),f=c(64),h=c(64);if(h===64&&e===-1)break;b(e<<2|g>>4);f!=64&&(b(g<<4&240|f>>2),h!=64&&b(f<<6&192|h));}}
46
+ function bc(){if(!V){V={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));Zb[c]=d;for(var e=0;e<d.length;e++){var g=d[e];V[g]===void 0&&(V[g]=e);}}}}const cc=["content-type","grpc-status","grpc-message"];function W(a,b){if(b.code!=0){var c=new C(b.code,decodeURIComponent(b.message||""),b.metadata);for(let d=0;d<a.j.length;d++)a.j[d](c);}b={code:b.code,details:decodeURIComponent(b.message||""),metadata:b.metadata};for(c=0;c<a.m.length;c++)a.m[c](b);}function dc(a,b){for(let c=0;c<a.l.length;c++)a.l[c](b);}function ec(a){for(let b=0;b<a.i.length;b++)a.i[b]();}function X(a,b){b=a.indexOf(b);b>-1&&a.splice(b,1);}
47
+ class Y{constructor(a){this.g=a.$;this.v=null;this.h=[];this.m=[];this.l=[];this.j=[];this.i=[];this.u=false;this.o=0;this.A=new wa;const b=this;cb(this.g,"readystatechange",function(){var c=b.g;if(c=c.g?c.g.getResponseHeader("Content-Type"):null){c=c.toLowerCase();if(c.lastIndexOf("application/grpc-web-text",0)==0){c=b.g;try{var d=c.g?c.g.responseText:"";}catch(h){Q(c.h,"Can not get responseText: "+h.message),d="";}c=d||"";d=c.length-c.length%4;c=c.substr(b.o,d-b.o);if(c.length==0)return;b.o=d;c=$b(c);}else if(c.lastIndexOf("application/grpc",
48
+ 0)==0)c=new Uint8Array(Xb(b.g));else {W(b,new C(2,"Unknown Content-type received."));return}d=null;try{d=pa(b.A,c);}catch(h){W(b,new C(2,"Error in parsing response body"));}if(d)for(c=0;c<d.length;c++){if(qa in d[c]){var e=d[c][qa];if(e){var g=false;let h;try{h=b.v(e),g=!0;}catch(k){W(b,new C(13,`Error when deserializing response data; error: ${k}`+`, response: ${h}`));}if(g){e=b;g=h;for(var f=0;f<e.h.length;f++)e.h[f](g);}}}if(B in d[c]&&d[c][B].length>0){e="";for(g=0;g<d[c][B].length;g++)e+=String.fromCharCode(d[c][B][g]);
49
+ e=e.trim().split("\r\n");g={};for(f=0;f<e.length;f++){const h=e[f].indexOf(":");g[e[f].substring(0,h).trim()]=e[f].substring(h+1).trim();}e=g;g=0;f="";"grpc-status"in e&&(g=Number(e["grpc-status"]),delete e["grpc-status"]);"grpc-message"in e&&(f=e["grpc-message"],delete e["grpc-message"]);W(b,new C(g,f,e));}}}});cb(this.g,"complete",function(){var c=b.g.m,d=2,e="";const g={};d=Yb(b.g);const f={};for(var h in d)d.hasOwnProperty(h)&&(f[h.toLowerCase()]=d[h]);Object.keys(f).forEach(k=>{cc.includes(k)||
50
+ (g[k]=f[k]);});dc(b,g);h=-1;if(c!=0){switch(c){case 7:d=10;break;case 8:d=4;break;case 6:h=b.g.getStatus();d=xa(h);break;default:d=14;}d==10&&b.u||(e=ma(c),h!=-1&&(e+=", http status code: "+h),W(b,new C(d,e)));}else c=false,"grpc-status"in f&&(d=Number(f["grpc-status"]),"grpc-message"in f&&(e=f["grpc-message"]),d!=0&&(W(b,new C(d,e||"",f)),c=true)),c||ec(b);});}on(a,b){a=="data"?this.h.push(b):a=="status"?this.m.push(b):a=="metadata"?this.l.push(b):a=="end"?this.i.push(b):a=="error"&&this.j.push(b);return this}removeListener(a,
51
+ b){a=="data"?X(this.h,b):a=="status"?X(this.m,b):a=="metadata"?X(this.l,b):a=="end"?X(this.i,b):a=="error"&&X(this.j,b);return this}cancel(){this.u=true;this.g.abort();}}Y.prototype.cancel=Y.prototype.cancel;Y.prototype.removeListener=Y.prototype.removeListener;Y.prototype.on=Y.prototype.on;function fc(a){let b="";Ia(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n";});return b}function hc(a,b){return b.reduce((c,d)=>e=>d.intercept(e,c),a)}
52
+ function ic(a,b,c){let d=false,e=null,g=false;a.on("data",function(f){d=true;e=f;});a.on("error",function(f){f.code==0||g||(g=true,b(f,null));});a.on("status",function(f){f.code==0||g?c&&b(null,null,f):(g=true,b({code:f.code,message:f.details,metadata:f.metadata},null));});if(c)a.on("metadata",function(f){b(null,null,null,f);});a.on("end",function(){g||(d?c?b(null,e,null,null,true):b(null,e):b({code:2,message:"Incomplete response"}));c&&b(null,null);});}
53
+ function jc(a,b,c){var d=b.getMethodDescriptor(),e=c+d.getName();c=a.i?a.i:new R;c.O=a.j;const g=new Y({$:c});g.v=d.h;var f=b.getMetadata();for(var h in f)c.headers.set(h,f[h]);a.g=="text"?(c.headers.set("Content-Type","application/grpc-web-text"),c.headers.set("Accept","application/grpc-web-text")):c.headers.set("Content-Type","application/grpc-web+proto");c.headers.set("X-User-Agent","grpc-web-javascript/0.1");c.headers.set("X-Grpc-Web","1");c.headers.has("deadline")&&(h=Number(c.headers.get("deadline")),
54
+ h=Math.ceil(h-(new Date).getTime()),c.headers.delete("deadline"),h===Infinity&&(h=0),h>0&&(c.headers.set("grpc-timeout",h+"m"),c.u=Math.max(0,Math.max(1E3,Math.ceil(h*1.1)))));if(a.l){h=c.headers;f={};for(k of h.keys())f[k]=h.get(k);var k=f;c.headers.clear();b:{for(l in k){var l=false;break b}l=true;}if(!l)if(k=fc(k),typeof e==="string"){if(l=encodeURIComponent("$httpHeaders"),k=k!=null?"="+encodeURIComponent(String(k)):"",l+=k)k=e.indexOf("#"),k<0&&(k=e.length),h=e.indexOf("?"),h<0||h>k?(h=k,f=""):f=e.substring(h+
55
+ 1,k),e=[e.slice(0,h),f,e.slice(k)],k=e[1],e[1]=l?k?k+"&"+l:l:k,e=e[0]+(e[1]?"?"+e[1]:"")+e[2];}else e.g("$httpHeaders",k);}b=(0, d.g)(b.getRequestMessage());d=b.length;l=[0,0,0,0];k=new Uint8Array(5+d);for(h=3;h>=0;h--)l[h]=d%256,d>>>=8;k.set(new Uint8Array(l),1);k.set(b,5);b=k;if(a.g=="text"){a=b;var m;m===void 0&&(m=0);bc();m=Zb[m];b=Array(Math.floor(a.length/3));d=m[64]||"";for(l=k=0;k<a.length-2;k+=3){var z=a[k],A=a[k+1];f=a[k+2];h=m[z>>2];z=m[(z&3)<<4|A>>4];A=m[(A&15)<<2|f>>6];f=m[f&63];b[l++]=
56
+ h+z+A+f;}h=0;f=d;switch(a.length-k){case 2:h=a[k+1],f=m[(h&15)<<2]||d;case 1:a=a[k],b[l]=m[a>>2]+m[(a&3)<<4|h>>4]+f+d;}b=b.join("");}else a.g=="binary"&&(c.B="arraybuffer");Rb(c,e,b);return g}
57
+ function kc(a,b,c,d,e,g={}){const f=b.substr(0,b.length-e.name.length),h=g&&g.signal;return hc(k=>new Promise((l,m)=>{if(h&&h.aborted){const v=new C(1,"Aborted");v.cause=h.reason;m(v);}else {var z=jc(a,k,f),A,ib,jb;ic(z,(v,lc,kb,lb,mc)=>{v?m(v):mc?jb=lc:kb?ib=kb:lb?A=lb:l(ja(k.getMethodDescriptor(),jb,A,ib));},true);h&&h.addEventListener("abort",()=>{z.cancel();const v=new C(1,"Aborted");v.cause=h.reason;m(v);});}}),a.m).call(a,ia(e,c,d)).then(k=>k.getResponseMessage())}
58
+ class Z{constructor(a={},b){this.g=a.format||r("format",a)||"text";this.l=a.ca||r("suppressCorsPreflight",a)||false;this.j=a.withCredentials||r("withCredentials",a)||false;this.h=a.ba||r("streamInterceptors",a)||[];this.m=a.da||r("unaryInterceptors",a)||[];this.i=b||null;}Y(a,b,c,d,e){const g=a.substr(0,a.length-d.name.length);a=hc(f=>jc(this,f,g),this.h).call(this,ia(d,b,c));ic(a,e,false);return new la(a)}unaryCall(a,b,c,d,e={}){return kc(this,a,b,c,d,e)}Z(a,b,c,d){const e=a.substr(0,a.length-d.name.length);
59
+ return hc(g=>jc(this,g,e),this.h).call(this,ia(d,b,c))}}Z.prototype.serverStreaming=Z.prototype.Z;Z.prototype.unaryCall=Z.prototype.unaryCall;Z.prototype.rpcCall=Z.prototype.Y;grpcWeb.CallOptions=ea;grpcWeb.MethodDescriptor=ka;grpcWeb.GrpcWebClientBase=Z;grpcWeb.RpcError=C;grpcWeb.StatusCode={OK:0,CANCELLED:1,UNKNOWN:2,INVALID_ARGUMENT:3,DEADLINE_EXCEEDED:4,NOT_FOUND:5,ALREADY_EXISTS:6,PERMISSION_DENIED:7,UNAUTHENTICATED:16,RESOURCE_EXHAUSTED:8,FAILED_PRECONDITION:9,ABORTED:10,OUT_OF_RANGE:11,UNIMPLEMENTED:12,INTERNAL:13,UNAVAILABLE:14,DATA_LOSS:15};grpcWeb.MethodType={UNARY:"unary",SERVER_STREAMING:"server_streaming",BIDI_STREAMING:"bidi_streaming"};
60
+ rb=typeof globalThis!=="undefined"&&globalThis||self;
61
+ return grpcWeb;
62
+ }
63
+
64
+ var grpcWebExports = requireGrpcWeb();
65
+
66
+ var parallax_gateway_pb = {};
67
+
68
+ var googleProtobuf = {};
69
+
70
+ /*
71
+
72
+ Copyright The Closure Library Authors.
73
+ SPDX-License-Identifier: Apache-2.0
74
+ */
75
+
76
+ var hasRequiredGoogleProtobuf;
77
+
78
+ function requireGoogleProtobuf () {
79
+ if (hasRequiredGoogleProtobuf) return googleProtobuf;
80
+ hasRequiredGoogleProtobuf = 1;
81
+ (function (exports$1) {
82
+ var aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value);},e="undefined"!=typeof window&&window===googleProtobuf?googleProtobuf:"undefined"!=typeof commonjsGlobal&&null!=commonjsGlobal?commonjsGlobal:googleProtobuf;function ba(a,b){if(b){var c=e;a=a.split(".");for(var d=0;d<a.length-1;d++){var f=a[d];f in c||(c[f]={});c=c[f];}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&aa(c,a,{configurable:true,writable:true,value:b});}}
83
+ function ca(a){var b=0;return function(){return b<a.length?{done:false,value:a[b++]}:{done:true}}}function da(){da=function(){};e.Symbol||(e.Symbol=ea);}function fa(a,b){this.a=a;aa(this,"description",{configurable:true,writable:true,value:b});}fa.prototype.toString=function(){return this.a};var ea=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new fa("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
84
+ function ha(){da();var a=e.Symbol.iterator;a||(a=e.Symbol.iterator=e.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&aa(Array.prototype,a,{configurable:true,writable:true,value:function(){return ia(ca(this))}});ha=function(){};}function ia(a){ha();a={next:a};a[e.Symbol.iterator]=function(){return this};return a}
85
+ function ja(a,b){ha();a instanceof String&&(a+="");var c=0,d={next:function(){if(c<a.length){var f=c++;return {value:b(f,a[f]),done:false}}d.next=function(){return {done:true,value:void 0}};return d.next()}};d[Symbol.iterator]=function(){return d};return d}ba("Array.prototype.entries",function(a){return a?a:function(){return ja(this,function(b,c){return [b,c]})}});var ka=googleProtobuf||self;
86
+ function g(a,b,c){a=a.split(".");c=c||ka;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b;}
87
+ function k(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return "array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return "object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return "array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return "function"}else return "null";
88
+ else if("function"==b&&"undefined"==typeof a.call)return "object";return b}function la(a){var b=typeof a;return "object"==b&&null!=a||"function"==b}function ma(a,b,c){g(a,b,c);}function na(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a;}var oa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function pa(a,b){for(var c,d,f=1;f<arguments.length;f++){d=arguments[f];for(c in d)a[c]=d[c];for(var h=0;h<oa.length;h++)c=oa[h],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c]);}}var qa=Array.prototype.forEach?function(a,b){Array.prototype.forEach.call(a,b,void 0);}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,f=0;f<c;f++)f in d&&b.call(void 0,d[f],f,a);},l=Array.prototype.map?function(a,b){return Array.prototype.map.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=Array(c),f="string"===typeof a?a.split(""):a,h=0;h<c;h++)h in f&&(d[h]=b.call(void 0,f[h],h,a));return d};
89
+ function ra(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)}function sa(a,b,c,d){var f="Assertion failed";if(c){f+=": "+c;var h=d;}else a&&(f+=": "+a,h=b);throw Error(f,h||[]);}function n(a,b,c){for(var d=[],f=2;f<arguments.length;++f)d[f-2]=arguments[f];a||sa("",null,b,d);return a}function ta(a,b,c){for(var d=[],f=2;f<arguments.length;++f)d[f-2]=arguments[f];"string"!==typeof a&&sa("Expected string but got %s: %s.",[k(a),a],b,d);}
90
+ function ua(a,b,c){for(var d=[],f=2;f<arguments.length;++f)d[f-2]=arguments[f];Array.isArray(a)||sa("Expected array but got %s: %s.",[k(a),a],b,d);}function p(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];throw Error("Failure"+(a?": "+a:""),c);}function q(a,b,c,d){for(var f=[],h=3;h<arguments.length;++h)f[h-3]=arguments[h];a instanceof b||sa("Expected instanceof %s but got %s.",[va(b),va(a)],c,f);}
91
+ function va(a){return a instanceof Function?a.displayName||a.name||"unknown type name":a instanceof Object?a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a):null===a?"null":typeof a}function r(a,b){this.c=a;this.b=b;this.a={};this.arrClean=true;if(0<this.c.length){for(a=0;a<this.c.length;a++){b=this.c[a];var c=b[0];this.a[c.toString()]=new wa(c,b[1]);}this.arrClean=true;}}g("jspb.Map",r,void 0);
92
+ r.prototype.g=function(){if(this.arrClean){if(this.b){var a=this.a,b;for(b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b].a;c&&c.g();}}}else {this.c.length=0;a=u(this);a.sort();for(b=0;b<a.length;b++){var d=this.a[a[b]];(c=d.a)&&c.g();this.c.push([d.key,d.value]);}this.arrClean=true;}return this.c};r.prototype.toArray=r.prototype.g;
93
+ r.prototype.Mc=function(a,b){for(var c=this.g(),d=[],f=0;f<c.length;f++){var h=this.a[c[f][0].toString()];v(this,h);var m=h.a;m?(n(b),d.push([h.key,b(a,m)])):d.push([h.key,h.value]);}return d};r.prototype.toObject=r.prototype.Mc;r.fromObject=function(a,b,c){b=new r([],b);for(var d=0;d<a.length;d++){var f=a[d][0],h=c(a[d][1]);b.set(f,h);}return b};function w(a){this.a=0;this.b=a;}w.prototype.next=function(){return this.a<this.b.length?{done:false,value:this.b[this.a++]}:{done:true,value:void 0}};
94
+ "undefined"!=typeof Symbol&&(w.prototype[Symbol.iterator]=function(){return this});r.prototype.Jb=function(){return u(this).length};r.prototype.getLength=r.prototype.Jb;r.prototype.clear=function(){this.a={};this.arrClean=false;};r.prototype.clear=r.prototype.clear;r.prototype.Cb=function(a){a=a.toString();var b=this.a.hasOwnProperty(a);delete this.a[a];this.arrClean=false;return b};r.prototype.del=r.prototype.Cb;
95
+ r.prototype.Eb=function(){var a=[],b=u(this);b.sort();for(var c=0;c<b.length;c++){var d=this.a[b[c]];a.push([d.key,d.value]);}return a};r.prototype.getEntryList=r.prototype.Eb;r.prototype.entries=function(){var a=[],b=u(this);b.sort();for(var c=0;c<b.length;c++){var d=this.a[b[c]];a.push([d.key,v(this,d)]);}return new w(a)};r.prototype.entries=r.prototype.entries;r.prototype.keys=function(){var a=[],b=u(this);b.sort();for(var c=0;c<b.length;c++)a.push(this.a[b[c]].key);return new w(a)};
96
+ r.prototype.keys=r.prototype.keys;r.prototype.values=function(){var a=[],b=u(this);b.sort();for(var c=0;c<b.length;c++)a.push(v(this,this.a[b[c]]));return new w(a)};r.prototype.values=r.prototype.values;r.prototype.forEach=function(a,b){var c=u(this);c.sort();for(var d=0;d<c.length;d++){var f=this.a[c[d]];a.call(b,v(this,f),f.key,this);}};r.prototype.forEach=r.prototype.forEach;
97
+ r.prototype.set=function(a,b){var c=new wa(a);this.b?(c.a=b,c.value=b.g()):c.value=b;this.a[a.toString()]=c;this.arrClean=false;return this};r.prototype.set=r.prototype.set;function v(a,b){return a.b?(b.a||(b.a=new a.b(b.value)),b.a):b.value}r.prototype.get=function(a){if(a=this.a[a.toString()])return v(this,a)};r.prototype.get=r.prototype.get;r.prototype.has=function(a){return a.toString()in this.a};r.prototype.has=r.prototype.has;
98
+ r.prototype.Jc=function(a,b,c,d,f){var h=u(this);h.sort();for(var m=0;m<h.length;m++){var t=this.a[h[m]];b.Va(a);c.call(b,1,t.key);this.b?d.call(b,2,v(this,t),f):d.call(b,2,t.value);b.Ya();}};r.prototype.serializeBinary=r.prototype.Jc;r.deserializeBinary=function(a,b,c,d,f,h,m){for(;b.oa()&&!b.bb();){var t=b.c;1==t?h=c.call(b):2==t&&(a.b?(n(f),m||(m=new a.b),d.call(b,m,f)):m=d.call(b));}n(void 0!=h);n(void 0!=m);a.set(h,m);};
99
+ function u(a){a=a.a;var b=[],c;for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c);return b}function wa(a,b){this.key=a;this.value=b;this.a=void 0;}function xa(a){if(8192>=a.length)return String.fromCharCode.apply(null,a);for(var b="",c=0;c<a.length;c+=8192)b+=String.fromCharCode.apply(null,ra(a,c,c+8192));return b}var ya={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},za={"'":"\\'"};var Aa={},x=null;function Ba(a,b){ void 0===b&&(b=0);Ca();b=Aa[b];for(var c=[],d=0;d<a.length;d+=3){var f=a[d],h=d+1<a.length,m=h?a[d+1]:0,t=d+2<a.length,B=t?a[d+2]:0,M=f>>2;f=(f&3)<<4|m>>4;m=(m&15)<<2|B>>6;B&=63;t||(B=64,h||(m=64));c.push(b[M],b[f],b[m]||"",b[B]||"");}return c.join("")}function Da(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):-1!="=.".indexOf(a[b-1])&&(c=-1!="=.".indexOf(a[b-2])?c-2:c-1);var d=new Uint8Array(c),f=0;Ea(a,function(h){d[f++]=h;});return d.subarray(0,f)}
100
+ function Ea(a,b){function c(B){for(;d<a.length;){var M=a.charAt(d++),La=x[M];if(null!=La)return La;if(!/^[\s\xa0]*$/.test(M))throw Error("Unknown base64 encoding at char: "+M);}return B}Ca();for(var d=0;;){var f=c(-1),h=c(0),m=c(64),t=c(64);if(64===t&&-1===f)break;b(f<<2|h>>4);64!=m&&(b(h<<4&240|m>>2),64!=t&&b(m<<6&192|t));}}
101
+ function Ca(){if(!x){x={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Aa[c]=d;for(var f=0;f<d.length;f++){var h=d[f];void 0===x[h]&&(x[h]=f);}}}}g("jspb.ConstBinaryMessage",function(){},void 0);g("jspb.BinaryMessage",function(){},void 0);g("jspb.BinaryConstants.FieldType",{yb:-1,ee:1,FLOAT:2,ke:3,te:4,je:5,xb:6,wb:7,BOOL:8,re:9,ie:10,le:11,ce:12,se:13,ge:14,me:15,ne:16,oe:17,pe:18,he:30,ve:31},void 0);g("jspb.BinaryConstants.WireType",{yb:-1,ue:0,xb:1,de:2,qe:3,fe:4,wb:5},void 0);
102
+ g("jspb.BinaryConstants.FieldTypeToWireType",function(a){switch(a){case 5:case 3:case 13:case 4:case 17:case 18:case 8:case 14:case 31:return 0;case 1:case 6:case 16:case 30:return 1;case 9:case 11:case 12:return 2;case 2:case 7:case 15:return 5;default:return -1}},void 0);g("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1,void 0);g("jspb.BinaryConstants.FLOAT32_EPS",1.401298464324817E-45,void 0);g("jspb.BinaryConstants.FLOAT32_MIN",1.1754943508222875E-38,void 0);
103
+ g("jspb.BinaryConstants.FLOAT32_MAX",3.4028234663852886E38,void 0);g("jspb.BinaryConstants.FLOAT64_EPS",4.9E-324,void 0);g("jspb.BinaryConstants.FLOAT64_MIN",2.2250738585072014E-308,void 0);g("jspb.BinaryConstants.FLOAT64_MAX",1.7976931348623157E308,void 0);g("jspb.BinaryConstants.TWO_TO_20",1048576,void 0);g("jspb.BinaryConstants.TWO_TO_23",8388608,void 0);g("jspb.BinaryConstants.TWO_TO_31",2147483648,void 0);g("jspb.BinaryConstants.TWO_TO_32",4294967296,void 0);
104
+ g("jspb.BinaryConstants.TWO_TO_52",4503599627370496,void 0);g("jspb.BinaryConstants.TWO_TO_63",0x7fffffffffffffff,void 0);g("jspb.BinaryConstants.TWO_TO_64",1.8446744073709552E19,void 0);g("jspb.BinaryConstants.ZERO_HASH","\x00\x00\x00\x00\x00\x00\x00\x00",void 0);var y=0,z=0;g("jspb.utils.getSplit64Low",function(){return y},void 0);g("jspb.utils.getSplit64High",function(){return z},void 0);function Fa(a){var b=a>>>0;a=Math.floor((a-b)/4294967296)>>>0;y=b;z=a;}g("jspb.utils.splitUint64",Fa,void 0);function A(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);a>>>=0;b&&(a=~a>>>0,c=(~c>>>0)+1,4294967295<c&&(c=0,a++,4294967295<a&&(a=0)));y=c;z=a;}g("jspb.utils.splitInt64",A,void 0);
105
+ function Ga(a){var b=0>a;a=2*Math.abs(a);Fa(a);a=y;var c=z;b&&(0==a?0==c?c=a=4294967295:(c--,a=4294967295):a--);y=a;z=c;}g("jspb.utils.splitZigzag64",Ga,void 0);
106
+ function Ha(a){var b=0>a?1:0;a=b?-a:a;if(0===a)0<1/a?y=z=0:(z=0,y=2147483648);else if(isNaN(a))z=0,y=2147483647;else if(3.4028234663852886E38<a)z=0,y=(b<<31|2139095040)>>>0;else if(1.1754943508222875E-38>a)a=Math.round(a/Math.pow(2,-149)),z=0,y=(b<<31|a)>>>0;else {var c=Math.floor(Math.log(a)/Math.LN2);a*=Math.pow(2,-c);a=Math.round(8388608*a);16777216<=a&&++c;z=0;y=(b<<31|c+127<<23|a&8388607)>>>0;}}g("jspb.utils.splitFloat32",Ha,void 0);
107
+ function Ia(a){var b=0>a?1:0;a=b?-a:a;if(0===a)z=0<1/a?0:2147483648,y=0;else if(isNaN(a))z=2147483647,y=4294967295;else if(1.7976931348623157E308<a)z=(b<<31|2146435072)>>>0,y=0;else if(2.2250738585072014E-308>a)a/=Math.pow(2,-1074),z=(b<<31|a/4294967296)>>>0,y=a>>>0;else {var c=a,d=0;if(2<=c)for(;2<=c&&1023>d;)d++,c/=2;else for(;1>c&&-1022<d;)c*=2,d--;a*=Math.pow(2,-d);z=(b<<31|d+1023<<20|1048576*a&1048575)>>>0;y=4503599627370496*a>>>0;}}g("jspb.utils.splitFloat64",Ia,void 0);
108
+ function C(a){var b=a.charCodeAt(4),c=a.charCodeAt(5),d=a.charCodeAt(6),f=a.charCodeAt(7);y=a.charCodeAt(0)+(a.charCodeAt(1)<<8)+(a.charCodeAt(2)<<16)+(a.charCodeAt(3)<<24)>>>0;z=b+(c<<8)+(d<<16)+(f<<24)>>>0;}g("jspb.utils.splitHash64",C,void 0);function D(a,b){return 4294967296*b+(a>>>0)}g("jspb.utils.joinUint64",D,void 0);function E(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0));a=D(a,b);return c?-a:a}g("jspb.utils.joinInt64",E,void 0);
109
+ function Ja(a,b,c){var d=b>>31;return c(a<<1^d,(b<<1|a>>>31)^d)}g("jspb.utils.toZigzag64",Ja,void 0);function Ka(a,b){return Ma(a,b,E)}g("jspb.utils.joinZigzag64",Ka,void 0);function Ma(a,b,c){var d=-(a&1);return c((a>>>1|b<<31)^d,b>>>1^d)}g("jspb.utils.fromZigzag64",Ma,void 0);function Na(a){var b=2*(a>>31)+1,c=a>>>23&255;a&=8388607;return 255==c?a?NaN:Infinity*b:0==c?b*Math.pow(2,-149)*a:b*Math.pow(2,c-150)*(a+Math.pow(2,23))}g("jspb.utils.joinFloat32",Na,void 0);
110
+ function Oa(a,b){var c=2*(b>>31)+1,d=b>>>20&2047;a=4294967296*(b&1048575)+a;return 2047==d?a?NaN:Infinity*c:0==d?c*Math.pow(2,-1074)*a:c*Math.pow(2,d-1075)*(a+4503599627370496)}g("jspb.utils.joinFloat64",Oa,void 0);function Pa(a,b){return String.fromCharCode(a>>>0&255,a>>>8&255,a>>>16&255,a>>>24&255,b>>>0&255,b>>>8&255,b>>>16&255,b>>>24&255)}g("jspb.utils.joinHash64",Pa,void 0);g("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0);
111
+ function F(a,b){function c(f,h){f=f?String(f):"";return h?"0000000".slice(f.length)+f:f}if(2097151>=b)return ""+D(a,b);var d=(a>>>24|b<<8)>>>0&16777215;b=b>>16&65535;a=(a&16777215)+6777216*d+6710656*b;d+=8147497*b;b*=2;1E7<=a&&(d+=Math.floor(a/1E7),a%=1E7);1E7<=d&&(b+=Math.floor(d/1E7),d%=1E7);return c(b,0)+c(d,b)+c(a,1)}g("jspb.utils.joinUnsignedDecimalString",F,void 0);function G(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b+(0==a?1:0)>>>0);a=F(a,b);return c?"-"+a:a}
112
+ g("jspb.utils.joinSignedDecimalString",G,void 0);function Qa(a,b){C(a);a=y;var c=z;return b?G(a,c):F(a,c)}g("jspb.utils.hash64ToDecimalString",Qa,void 0);g("jspb.utils.hash64ArrayToDecimalStrings",function(a,b){for(var c=Array(a.length),d=0;d<a.length;d++)c[d]=Qa(a[d],b);return c},void 0);
113
+ function H(a){function b(m,t){for(var B=0;8>B&&(1!==m||0<t);B++)t=m*f[B]+t,f[B]=t&255,t>>>=8;}function c(){for(var m=0;8>m;m++)f[m]=~f[m]&255;}n(0<a.length);var d=false;"-"===a[0]&&(d=true,a=a.slice(1));for(var f=[0,0,0,0,0,0,0,0],h=0;h<a.length;h++)b(10,a.charCodeAt(h)-48);d&&(c(),b(1,1));return xa(f)}g("jspb.utils.decimalStringToHash64",H,void 0);g("jspb.utils.splitDecimalString",function(a){C(H(a));},void 0);function Ra(a){return String.fromCharCode(10>a?48+a:87+a)}
114
+ function Sa(a){return 97<=a?a-97+10:a-48}g("jspb.utils.hash64ToHexString",function(a){var b=Array(18);b[0]="0";b[1]="x";for(var c=0;8>c;c++){var d=a.charCodeAt(7-c);b[2*c+2]=Ra(d>>4);b[2*c+3]=Ra(d&15);}return b.join("")},void 0);g("jspb.utils.hexStringToHash64",function(a){a=a.toLowerCase();n(18==a.length);n("0"==a[0]);n("x"==a[1]);for(var b="",c=0;8>c;c++)b=String.fromCharCode(16*Sa(a.charCodeAt(2*c+2))+Sa(a.charCodeAt(2*c+3)))+b;return b},void 0);
115
+ g("jspb.utils.hash64ToNumber",function(a,b){C(a);a=y;var c=z;return b?E(a,c):D(a,c)},void 0);g("jspb.utils.numberToHash64",function(a){A(a);return Pa(y,z)},void 0);g("jspb.utils.countVarints",function(a,b,c){for(var d=0,f=b;f<c;f++)d+=a[f]>>7;return c-b-d},void 0);
116
+ g("jspb.utils.countVarintFields",function(a,b,c,d){var f=0;d*=8;if(128>d)for(;b<c&&a[b++]==d;)for(f++;;){var h=a[b++];if(0==(h&128))break}else for(;b<c;){for(h=d;128<h;){if(a[b]!=(h&127|128))return f;b++;h>>=7;}if(a[b++]!=h)break;for(f++;h=a[b++],0!=(h&128););}return f},void 0);function Ta(a,b,c,d,f){var h=0;if(128>d)for(;b<c&&a[b++]==d;)h++,b+=f;else for(;b<c;){for(var m=d;128<m;){if(a[b++]!=(m&127|128))return h;m>>=7;}if(a[b++]!=m)break;h++;b+=f;}return h}
117
+ g("jspb.utils.countFixed32Fields",function(a,b,c,d){return Ta(a,b,c,8*d+5,4)},void 0);g("jspb.utils.countFixed64Fields",function(a,b,c,d){return Ta(a,b,c,8*d+1,8)},void 0);g("jspb.utils.countDelimitedFields",function(a,b,c,d){var f=0;for(d=8*d+2;b<c;){for(var h=d;128<h;){if(a[b++]!=(h&127|128))return f;h>>=7;}if(a[b++]!=h)break;f++;for(var m=0,t=1;h=a[b++],m+=(h&127)*t,t*=128,0!=(h&128););b+=m;}return f},void 0);
118
+ g("jspb.utils.debugBytesToTextFormat",function(a){var b='"';if(a){a=Ua(a);for(var c=0;c<a.length;c++)b+="\\x",16>a[c]&&(b+="0"),b+=a[c].toString(16);}return b+'"'},void 0);
119
+ g("jspb.utils.debugScalarToTextFormat",function(a){if("string"===typeof a){a=String(a);for(var b=['"'],c=0;c<a.length;c++){var d=a.charAt(c),f=d.charCodeAt(0),h=c+1,m;if(!(m=ya[d])){if(!(31<f&&127>f))if(f=d,f in za)d=za[f];else if(f in ya)d=za[f]=ya[f];else {m=f.charCodeAt(0);if(31<m&&127>m)d=f;else {if(256>m){if(d="\\x",16>m||256<m)d+="0";}else d="\\u",4096>m&&(d+="0");d+=m.toString(16).toUpperCase();}d=za[f]=d;}m=d;}b[h]=m;}b.push('"');a=b.join("");}else a=a.toString();return a},void 0);
120
+ g("jspb.utils.stringToByteArray",function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++){var d=a.charCodeAt(c);if(255<d)throw Error("Conversion error: string contains codepoint outside of byte range");b[c]=d;}return b},void 0);
121
+ function Ua(a){if(a.constructor===Uint8Array)return a;if(a.constructor===ArrayBuffer)return new Uint8Array(a);if(a.constructor===Array)return new Uint8Array(a);if(a.constructor===String)return Da(a);if(a instanceof Uint8Array)return new Uint8Array(a.buffer,a.byteOffset,a.byteLength);p("Type not convertible to Uint8Array.");return new Uint8Array(0)}g("jspb.utils.byteSourceToUint8Array",Ua,void 0);function I(a,b,c){this.b=null;this.a=this.c=this.h=0;this.v=false;a&&this.H(a,b,c);}g("jspb.BinaryDecoder",I,void 0);var Va=[];I.getInstanceCacheLength=function(){return Va.length};function Wa(a,b,c){if(Va.length){var d=Va.pop();a&&d.H(a,b,c);return d}return new I(a,b,c)}I.alloc=Wa;I.prototype.Ca=function(){this.clear();100>Va.length&&Va.push(this);};I.prototype.free=I.prototype.Ca;I.prototype.clone=function(){return Wa(this.b,this.h,this.c-this.h)};I.prototype.clone=I.prototype.clone;
122
+ I.prototype.clear=function(){this.b=null;this.a=this.c=this.h=0;this.v=false;};I.prototype.clear=I.prototype.clear;I.prototype.Y=function(){return this.b};I.prototype.getBuffer=I.prototype.Y;I.prototype.H=function(a,b,c){this.b=Ua(a);this.h=void 0!==b?b:0;this.c=void 0!==c?this.h+c:this.b.length;this.a=this.h;};I.prototype.setBlock=I.prototype.H;I.prototype.Db=function(){return this.c};I.prototype.getEnd=I.prototype.Db;I.prototype.setEnd=function(a){this.c=a;};I.prototype.setEnd=I.prototype.setEnd;
123
+ I.prototype.reset=function(){this.a=this.h;};I.prototype.reset=I.prototype.reset;I.prototype.B=function(){return this.a};I.prototype.getCursor=I.prototype.B;I.prototype.Ma=function(a){this.a=a;};I.prototype.setCursor=I.prototype.Ma;I.prototype.advance=function(a){this.a+=a;n(this.a<=this.c);};I.prototype.advance=I.prototype.advance;I.prototype.ya=function(){return this.a==this.c};I.prototype.atEnd=I.prototype.ya;I.prototype.Qb=function(){return this.a>this.c};I.prototype.pastEnd=I.prototype.Qb;
124
+ I.prototype.getError=function(){return this.v||0>this.a||this.a>this.c};I.prototype.getError=I.prototype.getError;I.prototype.w=function(a){for(var b=128,c=0,d=0,f=0;4>f&&128<=b;f++)b=this.b[this.a++],c|=(b&127)<<7*f;128<=b&&(b=this.b[this.a++],c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(f=0;5>f&&128<=b;f++)b=this.b[this.a++],d|=(b&127)<<7*f+3;if(128>b)return a(c>>>0,d>>>0);p("Failed to read varint, encoding is invalid.");this.v=true;};I.prototype.readSplitVarint64=I.prototype.w;
125
+ I.prototype.ea=function(a){return this.w(function(b,c){return Ma(b,c,a)})};I.prototype.readSplitZigzagVarint64=I.prototype.ea;I.prototype.ta=function(a){var b=this.b,c=this.a;this.a+=8;for(var d=0,f=0,h=c+7;h>=c;h--)d=d<<8|b[h],f=f<<8|b[h+4];return a(d,f)};I.prototype.readSplitFixed64=I.prototype.ta;I.prototype.kb=function(){for(;this.b[this.a]&128;)this.a++;this.a++;};I.prototype.skipVarint=I.prototype.kb;I.prototype.mb=function(a){for(;128<a;)this.a--,a>>>=7;this.a--;};I.prototype.unskipVarint=I.prototype.mb;
126
+ I.prototype.o=function(){var a=this.b;var b=a[this.a];var c=b&127;if(128>b)return this.a+=1,n(this.a<=this.c),c;b=a[this.a+1];c|=(b&127)<<7;if(128>b)return this.a+=2,n(this.a<=this.c),c;b=a[this.a+2];c|=(b&127)<<14;if(128>b)return this.a+=3,n(this.a<=this.c),c;b=a[this.a+3];c|=(b&127)<<21;if(128>b)return this.a+=4,n(this.a<=this.c),c;b=a[this.a+4];c|=(b&15)<<28;if(128>b)return this.a+=5,n(this.a<=this.c),c>>>0;this.a+=5;128<=a[this.a++]&&128<=a[this.a++]&&128<=a[this.a++]&&128<=a[this.a++]&&128<=
127
+ a[this.a++]&&n(false);n(this.a<=this.c);return c};I.prototype.readUnsignedVarint32=I.prototype.o;I.prototype.da=function(){return ~~this.o()};I.prototype.readSignedVarint32=I.prototype.da;I.prototype.O=function(){return this.o().toString()};I.prototype.Ea=function(){return this.da().toString()};I.prototype.readSignedVarint32String=I.prototype.Ea;I.prototype.Ia=function(){var a=this.o();return a>>>1^-(a&1)};I.prototype.readZigzagVarint32=I.prototype.Ia;I.prototype.Ga=function(){return this.w(D)};
128
+ I.prototype.readUnsignedVarint64=I.prototype.Ga;I.prototype.Ha=function(){return this.w(F)};I.prototype.readUnsignedVarint64String=I.prototype.Ha;I.prototype.sa=function(){return this.w(E)};I.prototype.readSignedVarint64=I.prototype.sa;I.prototype.Fa=function(){return this.w(G)};I.prototype.readSignedVarint64String=I.prototype.Fa;I.prototype.Ja=function(){return this.w(Ka)};I.prototype.readZigzagVarint64=I.prototype.Ja;I.prototype.fb=function(){return this.ea(Pa)};
129
+ I.prototype.readZigzagVarintHash64=I.prototype.fb;I.prototype.Ka=function(){return this.ea(G)};I.prototype.readZigzagVarint64String=I.prototype.Ka;I.prototype.Gc=function(){var a=this.b[this.a];this.a+=1;n(this.a<=this.c);return a};I.prototype.readUint8=I.prototype.Gc;I.prototype.Ec=function(){var a=this.b[this.a],b=this.b[this.a+1];this.a+=2;n(this.a<=this.c);return a<<0|b<<8};I.prototype.readUint16=I.prototype.Ec;
130
+ I.prototype.m=function(){var a=this.b[this.a],b=this.b[this.a+1],c=this.b[this.a+2],d=this.b[this.a+3];this.a+=4;n(this.a<=this.c);return (a<<0|b<<8|c<<16|d<<24)>>>0};I.prototype.readUint32=I.prototype.m;I.prototype.ga=function(){var a=this.m(),b=this.m();return D(a,b)};I.prototype.readUint64=I.prototype.ga;I.prototype.ha=function(){var a=this.m(),b=this.m();return F(a,b)};I.prototype.readUint64String=I.prototype.ha;
131
+ I.prototype.Xb=function(){var a=this.b[this.a];this.a+=1;n(this.a<=this.c);return a<<24>>24};I.prototype.readInt8=I.prototype.Xb;I.prototype.Vb=function(){var a=this.b[this.a],b=this.b[this.a+1];this.a+=2;n(this.a<=this.c);return (a<<0|b<<8)<<16>>16};I.prototype.readInt16=I.prototype.Vb;I.prototype.P=function(){var a=this.b[this.a],b=this.b[this.a+1],c=this.b[this.a+2],d=this.b[this.a+3];this.a+=4;n(this.a<=this.c);return a<<0|b<<8|c<<16|d<<24};I.prototype.readInt32=I.prototype.P;
132
+ I.prototype.ba=function(){var a=this.m(),b=this.m();return E(a,b)};I.prototype.readInt64=I.prototype.ba;I.prototype.ca=function(){var a=this.m(),b=this.m();return G(a,b)};I.prototype.readInt64String=I.prototype.ca;I.prototype.aa=function(){var a=this.m();return Na(a)};I.prototype.readFloat=I.prototype.aa;I.prototype.Z=function(){var a=this.m(),b=this.m();return Oa(a,b)};I.prototype.readDouble=I.prototype.Z;I.prototype.pa=function(){return !!this.b[this.a++]};I.prototype.readBool=I.prototype.pa;
133
+ I.prototype.ra=function(){return this.da()};I.prototype.readEnum=I.prototype.ra;
134
+ I.prototype.fa=function(a){var b=this.b,c=this.a;a=c+a;for(var d=[],f="";c<a;){var h=b[c++];if(128>h)d.push(h);else if(192>h)continue;else if(224>h){var m=b[c++];d.push((h&31)<<6|m&63);}else if(240>h){m=b[c++];var t=b[c++];d.push((h&15)<<12|(m&63)<<6|t&63);}else if(248>h){m=b[c++];t=b[c++];var B=b[c++];h=(h&7)<<18|(m&63)<<12|(t&63)<<6|B&63;h-=65536;d.push((h>>10&1023)+55296,(h&1023)+56320);}8192<=d.length&&(f+=String.fromCharCode.apply(null,d),d.length=0);}f+=xa(d);this.a=c;return f};
135
+ I.prototype.readString=I.prototype.fa;I.prototype.Dc=function(){var a=this.o();return this.fa(a)};I.prototype.readStringWithLength=I.prototype.Dc;I.prototype.qa=function(a){if(0>a||this.a+a>this.b.length)return this.v=true,p("Invalid byte length!"),new Uint8Array(0);var b=this.b.subarray(this.a,this.a+a);this.a+=a;n(this.a<=this.c);return b};I.prototype.readBytes=I.prototype.qa;I.prototype.ia=function(){return this.w(Pa)};I.prototype.readVarintHash64=I.prototype.ia;
136
+ I.prototype.$=function(){var a=this.b,b=this.a,c=a[b],d=a[b+1],f=a[b+2],h=a[b+3],m=a[b+4],t=a[b+5],B=a[b+6];a=a[b+7];this.a+=8;return String.fromCharCode(c,d,f,h,m,t,B,a)};I.prototype.readFixedHash64=I.prototype.$;function J(a,b,c){this.a=Wa(a,b,c);this.O=this.a.B();this.b=this.c=-1;this.h=false;this.v=null;}g("jspb.BinaryReader",J,void 0);var K=[];J.clearInstanceCache=function(){K=[];};J.getInstanceCacheLength=function(){return K.length};function Xa(a,b,c){if(K.length){var d=K.pop();a&&d.a.H(a,b,c);return d}return new J(a,b,c)}J.alloc=Xa;J.prototype.zb=Xa;J.prototype.alloc=J.prototype.zb;J.prototype.Ca=function(){this.a.clear();this.b=this.c=-1;this.h=false;this.v=null;100>K.length&&K.push(this);};
137
+ J.prototype.free=J.prototype.Ca;J.prototype.Fb=function(){return this.O};J.prototype.getFieldCursor=J.prototype.Fb;J.prototype.B=function(){return this.a.B()};J.prototype.getCursor=J.prototype.B;J.prototype.Y=function(){return this.a.Y()};J.prototype.getBuffer=J.prototype.Y;J.prototype.Hb=function(){return this.c};J.prototype.getFieldNumber=J.prototype.Hb;J.prototype.Lb=function(){return this.b};J.prototype.getWireType=J.prototype.Lb;J.prototype.Mb=function(){return 2==this.b};
138
+ J.prototype.isDelimited=J.prototype.Mb;J.prototype.bb=function(){return 4==this.b};J.prototype.isEndGroup=J.prototype.bb;J.prototype.getError=function(){return this.h||this.a.getError()};J.prototype.getError=J.prototype.getError;J.prototype.H=function(a,b,c){this.a.H(a,b,c);this.b=this.c=-1;};J.prototype.setBlock=J.prototype.H;J.prototype.reset=function(){this.a.reset();this.b=this.c=-1;};J.prototype.reset=J.prototype.reset;J.prototype.advance=function(a){this.a.advance(a);};J.prototype.advance=J.prototype.advance;
139
+ J.prototype.oa=function(){if(this.a.ya())return false;if(this.getError())return p("Decoder hit an error"),false;this.O=this.a.B();var a=this.a.o(),b=a>>>3;a&=7;if(0!=a&&5!=a&&1!=a&&2!=a&&3!=a&&4!=a)return p("Invalid wire type: %s (at position %s)",a,this.O),this.h=true,false;this.c=b;this.b=a;return true};J.prototype.nextField=J.prototype.oa;J.prototype.Oa=function(){this.a.mb(this.c<<3|this.b);};J.prototype.unskipHeader=J.prototype.Oa;
140
+ J.prototype.Lc=function(){var a=this.c;for(this.Oa();this.oa()&&this.c==a;)this.C();this.a.ya()||this.Oa();};J.prototype.skipMatchingFields=J.prototype.Lc;J.prototype.lb=function(){0!=this.b?(p("Invalid wire type for skipVarintField"),this.C()):this.a.kb();};J.prototype.skipVarintField=J.prototype.lb;J.prototype.gb=function(){if(2!=this.b)p("Invalid wire type for skipDelimitedField"),this.C();else {var a=this.a.o();this.a.advance(a);}};J.prototype.skipDelimitedField=J.prototype.gb;
141
+ J.prototype.hb=function(){5!=this.b?(p("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4);};J.prototype.skipFixed32Field=J.prototype.hb;J.prototype.ib=function(){1!=this.b?(p("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8);};J.prototype.skipFixed64Field=J.prototype.ib;J.prototype.jb=function(){var a=this.c;do{if(!this.oa()){p("Unmatched start-group tag: stream EOF");this.h=true;break}if(4==this.b){this.c!=a&&(p("Unmatched end-group tag"),this.h=true);break}this.C();}while(1)};
142
+ J.prototype.skipGroup=J.prototype.jb;J.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:p("Invalid wire encoding for field.");}};J.prototype.skipField=J.prototype.C;J.prototype.Hc=function(a,b){null===this.v&&(this.v={});n(!this.v[a]);this.v[a]=b;};J.prototype.registerReadCallback=J.prototype.Hc;J.prototype.Ic=function(a){n(null!==this.v);a=this.v[a];n(a);return a(this)};
143
+ J.prototype.runReadCallback=J.prototype.Ic;J.prototype.Yb=function(a,b){n(2==this.b);var c=this.a.c,d=this.a.o();d=this.a.B()+d;this.a.setEnd(d);b(a,this);this.a.Ma(d);this.a.setEnd(c);};J.prototype.readMessage=J.prototype.Yb;J.prototype.Ub=function(a,b,c){n(3==this.b);n(this.c==a);c(b,this);this.h||4==this.b||(p("Group submessage did not end with an END_GROUP tag"),this.h=true);};J.prototype.readGroup=J.prototype.Ub;
144
+ J.prototype.Gb=function(){n(2==this.b);var a=this.a.o(),b=this.a.B(),c=b+a;a=Wa(this.a.Y(),b,a);this.a.Ma(c);return a};J.prototype.getFieldDecoder=J.prototype.Gb;J.prototype.P=function(){n(0==this.b);return this.a.da()};J.prototype.readInt32=J.prototype.P;J.prototype.Wb=function(){n(0==this.b);return this.a.Ea()};J.prototype.readInt32String=J.prototype.Wb;J.prototype.ba=function(){n(0==this.b);return this.a.sa()};J.prototype.readInt64=J.prototype.ba;J.prototype.ca=function(){n(0==this.b);return this.a.Fa()};
145
+ J.prototype.readInt64String=J.prototype.ca;J.prototype.m=function(){n(0==this.b);return this.a.o()};J.prototype.readUint32=J.prototype.m;J.prototype.Fc=function(){n(0==this.b);return this.a.O()};J.prototype.readUint32String=J.prototype.Fc;J.prototype.ga=function(){n(0==this.b);return this.a.Ga()};J.prototype.readUint64=J.prototype.ga;J.prototype.ha=function(){n(0==this.b);return this.a.Ha()};J.prototype.readUint64String=J.prototype.ha;J.prototype.zc=function(){n(0==this.b);return this.a.Ia()};
146
+ J.prototype.readSint32=J.prototype.zc;J.prototype.Ac=function(){n(0==this.b);return this.a.Ja()};J.prototype.readSint64=J.prototype.Ac;J.prototype.Bc=function(){n(0==this.b);return this.a.Ka()};J.prototype.readSint64String=J.prototype.Bc;J.prototype.Rb=function(){n(5==this.b);return this.a.m()};J.prototype.readFixed32=J.prototype.Rb;J.prototype.Sb=function(){n(1==this.b);return this.a.ga()};J.prototype.readFixed64=J.prototype.Sb;J.prototype.Tb=function(){n(1==this.b);return this.a.ha()};
147
+ J.prototype.readFixed64String=J.prototype.Tb;J.prototype.vc=function(){n(5==this.b);return this.a.P()};J.prototype.readSfixed32=J.prototype.vc;J.prototype.wc=function(){n(5==this.b);return this.a.P().toString()};J.prototype.readSfixed32String=J.prototype.wc;J.prototype.xc=function(){n(1==this.b);return this.a.ba()};J.prototype.readSfixed64=J.prototype.xc;J.prototype.yc=function(){n(1==this.b);return this.a.ca()};J.prototype.readSfixed64String=J.prototype.yc;
148
+ J.prototype.aa=function(){n(5==this.b);return this.a.aa()};J.prototype.readFloat=J.prototype.aa;J.prototype.Z=function(){n(1==this.b);return this.a.Z()};J.prototype.readDouble=J.prototype.Z;J.prototype.pa=function(){n(0==this.b);return !!this.a.o()};J.prototype.readBool=J.prototype.pa;J.prototype.ra=function(){n(0==this.b);return this.a.sa()};J.prototype.readEnum=J.prototype.ra;J.prototype.fa=function(){n(2==this.b);var a=this.a.o();return this.a.fa(a)};J.prototype.readString=J.prototype.fa;
149
+ J.prototype.qa=function(){n(2==this.b);var a=this.a.o();return this.a.qa(a)};J.prototype.readBytes=J.prototype.qa;J.prototype.ia=function(){n(0==this.b);return this.a.ia()};J.prototype.readVarintHash64=J.prototype.ia;J.prototype.Cc=function(){n(0==this.b);return this.a.fb()};J.prototype.readSintHash64=J.prototype.Cc;J.prototype.w=function(a){n(0==this.b);return this.a.w(a)};J.prototype.readSplitVarint64=J.prototype.w;
150
+ J.prototype.ea=function(a){n(0==this.b);return this.a.w(function(b,c){return Ma(b,c,a)})};J.prototype.readSplitZigzagVarint64=J.prototype.ea;J.prototype.$=function(){n(1==this.b);return this.a.$()};J.prototype.readFixedHash64=J.prototype.$;J.prototype.ta=function(a){n(1==this.b);return this.a.ta(a)};J.prototype.readSplitFixed64=J.prototype.ta;function L(a,b){n(2==a.b);var c=a.a.o();c=a.a.B()+c;for(var d=[];a.a.B()<c;)d.push(b.call(a.a));return d}J.prototype.gc=function(){return L(this,this.a.da)};
151
+ J.prototype.readPackedInt32=J.prototype.gc;J.prototype.hc=function(){return L(this,this.a.Ea)};J.prototype.readPackedInt32String=J.prototype.hc;J.prototype.ic=function(){return L(this,this.a.sa)};J.prototype.readPackedInt64=J.prototype.ic;J.prototype.jc=function(){return L(this,this.a.Fa)};J.prototype.readPackedInt64String=J.prototype.jc;J.prototype.qc=function(){return L(this,this.a.o)};J.prototype.readPackedUint32=J.prototype.qc;J.prototype.rc=function(){return L(this,this.a.O)};
152
+ J.prototype.readPackedUint32String=J.prototype.rc;J.prototype.sc=function(){return L(this,this.a.Ga)};J.prototype.readPackedUint64=J.prototype.sc;J.prototype.tc=function(){return L(this,this.a.Ha)};J.prototype.readPackedUint64String=J.prototype.tc;J.prototype.nc=function(){return L(this,this.a.Ia)};J.prototype.readPackedSint32=J.prototype.nc;J.prototype.oc=function(){return L(this,this.a.Ja)};J.prototype.readPackedSint64=J.prototype.oc;J.prototype.pc=function(){return L(this,this.a.Ka)};
153
+ J.prototype.readPackedSint64String=J.prototype.pc;J.prototype.bc=function(){return L(this,this.a.m)};J.prototype.readPackedFixed32=J.prototype.bc;J.prototype.cc=function(){return L(this,this.a.ga)};J.prototype.readPackedFixed64=J.prototype.cc;J.prototype.dc=function(){return L(this,this.a.ha)};J.prototype.readPackedFixed64String=J.prototype.dc;J.prototype.kc=function(){return L(this,this.a.P)};J.prototype.readPackedSfixed32=J.prototype.kc;J.prototype.lc=function(){return L(this,this.a.ba)};
154
+ J.prototype.readPackedSfixed64=J.prototype.lc;J.prototype.mc=function(){return L(this,this.a.ca)};J.prototype.readPackedSfixed64String=J.prototype.mc;J.prototype.fc=function(){return L(this,this.a.aa)};J.prototype.readPackedFloat=J.prototype.fc;J.prototype.$b=function(){return L(this,this.a.Z)};J.prototype.readPackedDouble=J.prototype.$b;J.prototype.Zb=function(){return L(this,this.a.pa)};J.prototype.readPackedBool=J.prototype.Zb;J.prototype.ac=function(){return L(this,this.a.ra)};
155
+ J.prototype.readPackedEnum=J.prototype.ac;J.prototype.uc=function(){return L(this,this.a.ia)};J.prototype.readPackedVarintHash64=J.prototype.uc;J.prototype.ec=function(){return L(this,this.a.$)};J.prototype.readPackedFixedHash64=J.prototype.ec;function Ya(a,b,c,d,f){this.ma=a;this.Ba=b;this.la=c;this.Na=d;this.na=f;}g("jspb.ExtensionFieldInfo",Ya,void 0);function Za(a,b,c,d,f,h){this.Za=a;this.za=b;this.Aa=c;this.Wa=d;this.Ab=f;this.Nb=h;}g("jspb.ExtensionFieldBinaryInfo",Za,void 0);Ya.prototype.F=function(){return !!this.la};Ya.prototype.isMessageType=Ya.prototype.F;function N(){}g("jspb.Message",N,void 0);N.GENERATE_TO_OBJECT=true;N.GENERATE_FROM_OBJECT=true;var $a="function"==typeof Uint8Array;N.prototype.Ib=function(){return this.b};
156
+ N.prototype.getJsPbMessageId=N.prototype.Ib;
157
+ N.initialize=function(a,b,c,d,f,h){a.f=null;b||(b=c?[c]:[]);a.b=c?String(c):void 0;a.D=0===c?-1:0;a.u=b;a:{c=a.u.length;b=-1;if(c&&(b=c-1,c=a.u[b],!(null===c||"object"!=typeof c||Array.isArray(c)||$a&&c instanceof Uint8Array))){a.G=b-a.D;a.i=c;break a} -1<d?(a.G=Math.max(d,b+1-a.D),a.i=null):a.G=Number.MAX_VALUE;}a.a={};if(f)for(d=0;d<f.length;d++)b=f[d],b<a.G?(b+=a.D,a.u[b]=a.u[b]||ab):(bb(a),a.i[b]=a.i[b]||ab);if(h&&h.length)for(d=0;d<h.length;d++)cb(a,h[d]);};
158
+ var ab=Object.freeze?Object.freeze([]):[];function bb(a){var b=a.G+a.D;a.u[b]||(a.i=a.u[b]={});}function db(a,b,c){for(var d=[],f=0;f<a.length;f++)d[f]=b.call(a[f],c,a[f]);return d}N.toObjectList=db;N.toObjectExtension=function(a,b,c,d,f){for(var h in c){var m=c[h],t=d.call(a,m);if(null!=t){for(var B in m.Ba)if(m.Ba.hasOwnProperty(B))break;b[B]=m.Na?m.na?db(t,m.Na,f):m.Na(f,t):t;}}};
159
+ N.serializeBinaryExtensions=function(a,b,c,d){for(var f in c){var h=c[f],m=h.Za;if(!h.Aa)throw Error("Message extension present that was generated without binary serialization support");var t=d.call(a,m);if(null!=t)if(m.F())if(h.Wa)h.Aa.call(b,m.ma,t,h.Wa);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");else h.Aa.call(b,m.ma,t);}};
160
+ N.readBinaryExtension=function(a,b,c,d,f){var h=c[b.c];if(h){c=h.Za;if(!h.za)throw Error("Deserializing extension whose generated code does not support binary format");if(c.F()){var m=new c.la;h.za.call(b,m,h.Ab);}else m=h.za.call(b);c.na&&!h.Nb?(b=d.call(a,c))?b.push(m):f.call(a,c,[m]):f.call(a,c,m);}else b.C();};function O(a,b){if(b<a.G){b+=a.D;var c=a.u[b];return c===ab?a.u[b]=[]:c}if(a.i)return c=a.i[b],c===ab?a.i[b]=[]:c}N.getField=O;N.getRepeatedField=function(a,b){return O(a,b)};
161
+ function eb(a,b){a=O(a,b);return null==a?a:+a}N.getOptionalFloatingPointField=eb;function fb(a,b){a=O(a,b);return null==a?a:!!a}N.getBooleanField=fb;N.getRepeatedFloatingPointField=function(a,b){var c=O(a,b);a.a||(a.a={});if(!a.a[b]){for(var d=0;d<c.length;d++)c[d]=+c[d];a.a[b]=true;}return c};N.getRepeatedBooleanField=function(a,b){var c=O(a,b);a.a||(a.a={});if(!a.a[b]){for(var d=0;d<c.length;d++)c[d]=!!c[d];a.a[b]=true;}return c};
162
+ function gb(a){if(null==a||"string"===typeof a)return a;if($a&&a instanceof Uint8Array)return Ba(a);p("Cannot coerce to b64 string: "+k(a));return null}N.bytesAsB64=gb;function hb(a){if(null==a||a instanceof Uint8Array)return a;if("string"===typeof a)return Da(a);p("Cannot coerce to Uint8Array: "+k(a));return null}N.bytesAsU8=hb;N.bytesListAsB64=function(a){ib(a);return a.length&&"string"!==typeof a[0]?l(a,gb):a};N.bytesListAsU8=function(a){ib(a);return !a.length||a[0]instanceof Uint8Array?a:l(a,hb)};
163
+ function ib(a){if(a&&1<a.length){var b=k(a[0]);qa(a,function(c){k(c)!=b&&p("Inconsistent type in JSPB repeated field array. Got "+k(c)+" expected "+b);});}}function jb(a,b,c){a=O(a,b);return null==a?c:a}N.getFieldWithDefault=jb;N.getBooleanFieldWithDefault=function(a,b,c){a=fb(a,b);return null==a?c:a};N.getFloatingPointFieldWithDefault=function(a,b,c){a=eb(a,b);return null==a?c:a};N.getFieldProto3=jb;
164
+ N.getMapField=function(a,b,c,d){a.f||(a.f={});if(b in a.f)return a.f[b];var f=O(a,b);if(!f){if(c)return;f=[];P(a,b,f);}return a.f[b]=new r(f,d)};function P(a,b,c){q(a,N);b<a.G?a.u[b+a.D]=c:(bb(a),a.i[b]=c);return a}N.setField=P;N.setProto3IntField=function(a,b,c){return Q(a,b,c,0)};N.setProto3FloatField=function(a,b,c){return Q(a,b,c,0)};N.setProto3BooleanField=function(a,b,c){return Q(a,b,c,false)};N.setProto3StringField=function(a,b,c){return Q(a,b,c,"")};
165
+ N.setProto3BytesField=function(a,b,c){return Q(a,b,c,"")};N.setProto3EnumField=function(a,b,c){return Q(a,b,c,0)};N.setProto3StringIntField=function(a,b,c){return Q(a,b,c,"0")};function Q(a,b,c,d){q(a,N);c!==d?P(a,b,c):b<a.G?a.u[b+a.D]=null:(bb(a),delete a.i[b]);return a}N.addToRepeatedField=function(a,b,c,d){q(a,N);b=O(a,b);void 0!=d?b.splice(d,0,c):b.push(c);return a};function kb(a,b,c,d){q(a,N);(c=cb(a,c))&&c!==b&&void 0!==d&&(a.f&&c in a.f&&(a.f[c]=void 0),P(a,c,void 0));return P(a,b,d)}
166
+ N.setOneofField=kb;function cb(a,b){for(var c,d,f=0;f<b.length;f++){var h=b[f],m=O(a,h);null!=m&&(c=h,d=m,P(a,h,void 0));}return c?(P(a,c,d),c):0}N.computeOneofCase=cb;N.getWrapperField=function(a,b,c,d){a.f||(a.f={});if(!a.f[c]){var f=O(a,c);if(d||f)a.f[c]=new b(f);}return a.f[c]};N.getRepeatedWrapperField=function(a,b,c){lb(a,b,c);b=a.f[c];b==ab&&(b=a.f[c]=[]);return b};function lb(a,b,c){a.f||(a.f={});if(!a.f[c]){for(var d=O(a,c),f=[],h=0;h<d.length;h++)f[h]=new b(d[h]);a.f[c]=f;}}
167
+ N.setWrapperField=function(a,b,c){q(a,N);a.f||(a.f={});var d=c?c.g():c;a.f[b]=c;return P(a,b,d)};N.setOneofWrapperField=function(a,b,c,d){q(a,N);a.f||(a.f={});var f=d?d.g():d;a.f[b]=d;return kb(a,b,c,f)};N.setRepeatedWrapperField=function(a,b,c){q(a,N);a.f||(a.f={});c=c||[];for(var d=[],f=0;f<c.length;f++)d[f]=c[f].g();a.f[b]=c;return P(a,b,d)};
168
+ N.addToRepeatedWrapperField=function(a,b,c,d,f){lb(a,d,b);var h=a.f[b];h||(h=a.f[b]=[]);c=c?c:new d;a=O(a,b);void 0!=f?(h.splice(f,0,c),a.splice(f,0,c.g())):(h.push(c),a.push(c.g()));return c};N.toMap=function(a,b,c,d){for(var f={},h=0;h<a.length;h++)f[b.call(a[h])]=c?c.call(a[h],d,a[h]):a[h];return f};function mb(a){if(a.f)for(var b in a.f){var c=a.f[b];if(Array.isArray(c))for(var d=0;d<c.length;d++)c[d]&&c[d].g();else c&&c.g();}}N.prototype.g=function(){mb(this);return this.u};
169
+ N.prototype.toArray=N.prototype.g;N.prototype.toString=function(){mb(this);return this.u.toString()};N.prototype.getExtension=function(a){if(this.i){this.f||(this.f={});var b=a.ma;if(a.na){if(a.F())return this.f[b]||(this.f[b]=l(this.i[b]||[],function(c){return new a.la(c)})),this.f[b]}else if(a.F())return !this.f[b]&&this.i[b]&&(this.f[b]=new a.la(this.i[b])),this.f[b];return this.i[b]}};N.prototype.getExtension=N.prototype.getExtension;
170
+ N.prototype.Kc=function(a,b){this.f||(this.f={});bb(this);var c=a.ma;a.na?(b=b||[],a.F()?(this.f[c]=b,this.i[c]=l(b,function(d){return d.g()})):this.i[c]=b):a.F()?(this.f[c]=b,this.i[c]=b?b.g():b):this.i[c]=b;return this};N.prototype.setExtension=N.prototype.Kc;N.difference=function(a,b){if(!(a instanceof b.constructor))throw Error("Messages have different types.");var c=a.g();b=b.g();var d=[],f=0,h=c.length>b.length?c.length:b.length;a.b&&(d[0]=a.b,f=1);for(;f<h;f++)nb(c[f],b[f])||(d[f]=b[f]);return new a.constructor(d)};
171
+ N.equals=function(a,b){return a==b||!(!a||!b)&&a instanceof b.constructor&&nb(a.g(),b.g())};function ob(a,b){a=a||{};b=b||{};var c={},d;for(d in a)c[d]=0;for(d in b)c[d]=0;for(d in c)if(!nb(a[d],b[d]))return false;return true}N.compareExtensions=ob;
172
+ function nb(a,b){if(a==b)return true;if(!la(a)||!la(b))return "number"===typeof a&&isNaN(a)||"number"===typeof b&&isNaN(b)?String(a)==String(b):false;if(a.constructor!=b.constructor)return false;if($a&&a.constructor===Uint8Array){if(a.length!=b.length)return false;for(var c=0;c<a.length;c++)if(a[c]!=b[c])return false;return true}if(a.constructor===Array){var d=void 0,f=void 0,h=Math.max(a.length,b.length);for(c=0;c<h;c++){var m=a[c],t=b[c];m&&m.constructor==Object&&(n(void 0===d),n(c===a.length-1),d=m,m=void 0);t&&t.constructor==
173
+ Object&&(n(void 0===f),n(c===b.length-1),f=t,t=void 0);if(!nb(m,t))return false}return d||f?(d=d||{},f=f||{},ob(d,f)):true}if(a.constructor===Object)return ob(a,b);throw Error("Invalid type in JSPB array");}N.compareFields=nb;N.prototype.Bb=function(){return pb(this)};N.prototype.cloneMessage=N.prototype.Bb;N.prototype.clone=function(){return pb(this)};N.prototype.clone=N.prototype.clone;N.clone=function(a){return pb(a)};function pb(a){return new a.constructor(qb(a.g()))}
174
+ N.copyInto=function(a,b){q(a,N);q(b,N);n(a.constructor==b.constructor,"Copy source and target message should have the same type.");a=pb(a);for(var c=b.g(),d=a.g(),f=c.length=0;f<d.length;f++)c[f]=d[f];b.f=a.f;b.i=a.i;};function qb(a){if(Array.isArray(a)){for(var b=Array(a.length),c=0;c<a.length;c++){var d=a[c];null!=d&&(b[c]="object"==typeof d?qb(n(d)):d);}return b}if($a&&a instanceof Uint8Array)return new Uint8Array(a);b={};for(c in a)d=a[c],null!=d&&(b[c]="object"==typeof d?qb(n(d)):d);return b}
175
+ N.registerMessageType=function(a,b){b.we=a;};var R={dump:function(a){q(a,N,"jspb.Message instance expected");n(a.getExtension,"Only unobfuscated and unoptimized compilation modes supported.");return R.X(a)}};g("jspb.debug.dump",R.dump,void 0);
176
+ R.X=function(a){var b=k(a);if("number"==b||"string"==b||"boolean"==b||"null"==b||"undefined"==b||"undefined"!==typeof Uint8Array&&a instanceof Uint8Array)return a;if("array"==b)return ua(a),l(a,R.X);if(a instanceof r){var c={};a=a.entries();for(var d=a.next();!d.done;d=a.next())c[d.value[0]]=R.X(d.value[1]);return c}q(a,N,"Only messages expected: "+a);b=a.constructor;var f={$name:b.name||b.displayName};for(t in b.prototype){var h=/^get([A-Z]\w*)/.exec(t);if(h&&"getExtension"!=t&&"getJsPbMessageId"!=
177
+ t){var m="has"+h[1];if(!a[m]||a[m]())m=a[t](),f[R.$a(h[1])]=R.X(m);}}if(a.extensionObject_)return f.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",f;for(d in b.extensions)if(/^\d+$/.test(d)){m=b.extensions[d];var t=a.getExtension(m);h=void 0;m=m.Ba;var B=[],M=0;for(h in m)B[M++]=h;h=B[0];null!=t&&(c||(c=f.$extensions={}),c[R.$a(h)]=R.X(t));}return f};R.$a=function(a){return a.replace(/^[A-Z]/,function(b){return b.toLowerCase()})};function S(){this.a=[];}g("jspb.BinaryEncoder",S,void 0);S.prototype.length=function(){return this.a.length};S.prototype.length=S.prototype.length;S.prototype.end=function(){var a=this.a;this.a=[];return a};S.prototype.end=S.prototype.end;S.prototype.l=function(a,b){n(a==Math.floor(a));n(b==Math.floor(b));n(0<=a&&4294967296>a);for(n(0<=b&&4294967296>b);0<b||127<a;)this.a.push(a&127|128),a=(a>>>7|b<<25)>>>0,b>>>=7;this.a.push(a);};S.prototype.writeSplitVarint64=S.prototype.l;
178
+ S.prototype.A=function(a,b){n(a==Math.floor(a));n(b==Math.floor(b));n(0<=a&&4294967296>a);n(0<=b&&4294967296>b);this.s(a);this.s(b);};S.prototype.writeSplitFixed64=S.prototype.A;S.prototype.j=function(a){n(a==Math.floor(a));for(n(0<=a&&4294967296>a);127<a;)this.a.push(a&127|128),a>>>=7;this.a.push(a);};S.prototype.writeUnsignedVarint32=S.prototype.j;S.prototype.M=function(a){n(a==Math.floor(a));n(-2147483648<=a&&2147483648>a);if(0<=a)this.j(a);else {for(var b=0;9>b;b++)this.a.push(a&127|128),a>>=7;this.a.push(1);}};
179
+ S.prototype.writeSignedVarint32=S.prototype.M;S.prototype.va=function(a){n(a==Math.floor(a));n(0<=a&&1.8446744073709552E19>a);A(a);this.l(y,z);};S.prototype.writeUnsignedVarint64=S.prototype.va;S.prototype.ua=function(a){n(a==Math.floor(a));n(-9223372036854776e3<=a&&0x7fffffffffffffff>a);A(a);this.l(y,z);};S.prototype.writeSignedVarint64=S.prototype.ua;S.prototype.wa=function(a){n(a==Math.floor(a));n(-2147483648<=a&&2147483648>a);this.j((a<<1^a>>31)>>>0);};S.prototype.writeZigzagVarint32=S.prototype.wa;
180
+ S.prototype.xa=function(a){n(a==Math.floor(a));n(-9223372036854776e3<=a&&0x7fffffffffffffff>a);Ga(a);this.l(y,z);};S.prototype.writeZigzagVarint64=S.prototype.xa;S.prototype.Ta=function(a){this.W(H(a));};S.prototype.writeZigzagVarint64String=S.prototype.Ta;S.prototype.W=function(a){var b=this;C(a);Ja(y,z,function(c,d){b.l(c>>>0,d>>>0);});};S.prototype.writeZigzagVarintHash64=S.prototype.W;S.prototype.be=function(a){n(a==Math.floor(a));n(0<=a&&256>a);this.a.push(a>>>0&255);};S.prototype.writeUint8=S.prototype.be;
181
+ S.prototype.ae=function(a){n(a==Math.floor(a));n(0<=a&&65536>a);this.a.push(a>>>0&255);this.a.push(a>>>8&255);};S.prototype.writeUint16=S.prototype.ae;S.prototype.s=function(a){n(a==Math.floor(a));n(0<=a&&4294967296>a);this.a.push(a>>>0&255);this.a.push(a>>>8&255);this.a.push(a>>>16&255);this.a.push(a>>>24&255);};S.prototype.writeUint32=S.prototype.s;S.prototype.V=function(a){n(a==Math.floor(a));n(0<=a&&1.8446744073709552E19>a);Fa(a);this.s(y);this.s(z);};S.prototype.writeUint64=S.prototype.V;
182
+ S.prototype.Qc=function(a){n(a==Math.floor(a));n(-128<=a&&128>a);this.a.push(a>>>0&255);};S.prototype.writeInt8=S.prototype.Qc;S.prototype.Pc=function(a){n(a==Math.floor(a));n(-32768<=a&&32768>a);this.a.push(a>>>0&255);this.a.push(a>>>8&255);};S.prototype.writeInt16=S.prototype.Pc;S.prototype.S=function(a){n(a==Math.floor(a));n(-2147483648<=a&&2147483648>a);this.a.push(a>>>0&255);this.a.push(a>>>8&255);this.a.push(a>>>16&255);this.a.push(a>>>24&255);};S.prototype.writeInt32=S.prototype.S;
183
+ S.prototype.T=function(a){n(a==Math.floor(a));n(-9223372036854776e3<=a&&0x7fffffffffffffff>a);A(a);this.A(y,z);};S.prototype.writeInt64=S.prototype.T;S.prototype.ka=function(a){n(a==Math.floor(a));n(-9223372036854776e3<=+a&&0x7fffffffffffffff>+a);C(H(a));this.A(y,z);};S.prototype.writeInt64String=S.prototype.ka;S.prototype.L=function(a){n(Infinity===a||-Infinity===a||isNaN(a)||-34028234663852886e22<=a&&3.4028234663852886E38>=a);Ha(a);this.s(y);};S.prototype.writeFloat=S.prototype.L;
184
+ S.prototype.J=function(a){n(Infinity===a||-Infinity===a||isNaN(a)||-17976931348623157e292<=a&&1.7976931348623157E308>=a);Ia(a);this.s(y);this.s(z);};S.prototype.writeDouble=S.prototype.J;S.prototype.I=function(a){n("boolean"===typeof a||"number"===typeof a);this.a.push(a?1:0);};S.prototype.writeBool=S.prototype.I;S.prototype.R=function(a){n(a==Math.floor(a));n(-2147483648<=a&&2147483648>a);this.M(a);};S.prototype.writeEnum=S.prototype.R;S.prototype.ja=function(a){this.a.push.apply(this.a,a);};
185
+ S.prototype.writeBytes=S.prototype.ja;S.prototype.N=function(a){C(a);this.l(y,z);};S.prototype.writeVarintHash64=S.prototype.N;S.prototype.K=function(a){C(a);this.s(y);this.s(z);};S.prototype.writeFixedHash64=S.prototype.K;
186
+ S.prototype.U=function(a){var b=this.a.length;ta(a);for(var c=0;c<a.length;c++){var d=a.charCodeAt(c);if(128>d)this.a.push(d);else if(2048>d)this.a.push(d>>6|192),this.a.push(d&63|128);else if(65536>d)if(55296<=d&&56319>=d&&c+1<a.length){var f=a.charCodeAt(c+1);56320<=f&&57343>=f&&(d=1024*(d-55296)+f-56320+65536,this.a.push(d>>18|240),this.a.push(d>>12&63|128),this.a.push(d>>6&63|128),this.a.push(d&63|128),c++);}else this.a.push(d>>12|224),this.a.push(d>>6&63|128),this.a.push(d&63|128);}return this.a.length-
187
+ b};S.prototype.writeString=S.prototype.U;function T(a,b){this.lo=a;this.hi=b;}g("jspb.arith.UInt64",T,void 0);T.prototype.cmp=function(a){return this.hi<a.hi||this.hi==a.hi&&this.lo<a.lo?-1:this.hi==a.hi&&this.lo==a.lo?0:1};T.prototype.cmp=T.prototype.cmp;T.prototype.La=function(){return new T((this.lo>>>1|(this.hi&1)<<31)>>>0,this.hi>>>1>>>0)};T.prototype.rightShift=T.prototype.La;T.prototype.Da=function(){return new T(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)};T.prototype.leftShift=T.prototype.Da;
188
+ T.prototype.cb=function(){return !!(this.hi&2147483648)};T.prototype.msb=T.prototype.cb;T.prototype.Ob=function(){return !!(this.lo&1)};T.prototype.lsb=T.prototype.Ob;T.prototype.Ua=function(){return 0==this.lo&&0==this.hi};T.prototype.zero=T.prototype.Ua;T.prototype.add=function(a){return new T((this.lo+a.lo&4294967295)>>>0>>>0,((this.hi+a.hi&4294967295)>>>0)+(4294967296<=this.lo+a.lo?1:0)>>>0)};T.prototype.add=T.prototype.add;
189
+ T.prototype.sub=function(a){return new T((this.lo-a.lo&4294967295)>>>0>>>0,((this.hi-a.hi&4294967295)>>>0)-(0>this.lo-a.lo?1:0)>>>0)};T.prototype.sub=T.prototype.sub;function rb(a,b){var c=a&65535;a>>>=16;var d=b&65535,f=b>>>16;b=c*d+65536*(c*f&65535)+65536*(a*d&65535);for(c=a*f+(c*f>>>16)+(a*d>>>16);4294967296<=b;)b-=4294967296,c+=1;return new T(b>>>0,c>>>0)}T.mul32x32=rb;T.prototype.eb=function(a){var b=rb(this.lo,a);a=rb(this.hi,a);a.hi=a.lo;a.lo=0;return b.add(a)};T.prototype.mul=T.prototype.eb;
190
+ T.prototype.Xa=function(a){if(0==a)return [];var b=new T(0,0),c=new T(this.lo,this.hi);a=new T(a,0);for(var d=new T(1,0);!a.cb();)a=a.Da(),d=d.Da();for(;!d.Ua();)0>=a.cmp(c)&&(b=b.add(d),c=c.sub(a)),a=a.La(),d=d.La();return [b,c]};T.prototype.div=T.prototype.Xa;T.prototype.toString=function(){for(var a="",b=this;!b.Ua();){b=b.Xa(10);var c=b[0];a=b[1].lo+a;b=c;}""==a&&(a="0");return a};T.prototype.toString=T.prototype.toString;
191
+ function U(a){for(var b=new T(0,0),c=new T(0,0),d=0;d<a.length;d++){if("0">a[d]||"9"<a[d])return null;c.lo=parseInt(a[d],10);b=b.eb(10).add(c);}return b}T.fromString=U;T.prototype.clone=function(){return new T(this.lo,this.hi)};T.prototype.clone=T.prototype.clone;function V(a,b){this.lo=a;this.hi=b;}g("jspb.arith.Int64",V,void 0);V.prototype.add=function(a){return new V((this.lo+a.lo&4294967295)>>>0>>>0,((this.hi+a.hi&4294967295)>>>0)+(4294967296<=this.lo+a.lo?1:0)>>>0)};V.prototype.add=V.prototype.add;
192
+ V.prototype.sub=function(a){return new V((this.lo-a.lo&4294967295)>>>0>>>0,((this.hi-a.hi&4294967295)>>>0)-(0>this.lo-a.lo?1:0)>>>0)};V.prototype.sub=V.prototype.sub;V.prototype.clone=function(){return new V(this.lo,this.hi)};V.prototype.clone=V.prototype.clone;V.prototype.toString=function(){var a=0!=(this.hi&2147483648),b=new T(this.lo,this.hi);a&&(b=(new T(0,0)).sub(b));return (a?"-":"")+b.toString()};V.prototype.toString=V.prototype.toString;
193
+ function sb(a){var b=0<a.length&&"-"==a[0];b&&(a=a.substring(1));a=U(a);if(null===a)return null;b&&(a=(new T(0,0)).sub(a));return new V(a.lo,a.hi)}V.fromString=sb;function W(){this.c=[];this.b=0;this.a=new S;this.h=[];}g("jspb.BinaryWriter",W,void 0);function tb(a,b){var c=a.a.end();a.c.push(c);a.c.push(b);a.b+=c.length+b.length;}function X(a,b){Y(a,b,2);b=a.a.end();a.c.push(b);a.b+=b.length;b.push(a.b);return b}function Z(a,b){var c=b.pop();c=a.b+a.a.length()-c;for(n(0<=c);127<c;)b.push(c&127|128),c>>>=7,a.b++;b.push(c);a.b++;}W.prototype.pb=function(a,b,c){tb(this,a.subarray(b,c));};W.prototype.writeSerializedMessage=W.prototype.pb;
194
+ W.prototype.Pb=function(a,b,c){null!=a&&null!=b&&null!=c&&this.pb(a,b,c);};W.prototype.maybeWriteSerializedMessage=W.prototype.Pb;W.prototype.reset=function(){this.c=[];this.a.end();this.b=0;this.h=[];};W.prototype.reset=W.prototype.reset;W.prototype.ab=function(){n(0==this.h.length);for(var a=new Uint8Array(this.b+this.a.length()),b=this.c,c=b.length,d=0,f=0;f<c;f++){var h=b[f];a.set(h,d);d+=h.length;}b=this.a.end();a.set(b,d);d+=b.length;n(d==a.length);this.c=[a];return a};
195
+ W.prototype.getResultBuffer=W.prototype.ab;W.prototype.Kb=function(a){return Ba(this.ab(),a)};W.prototype.getResultBase64String=W.prototype.Kb;W.prototype.Va=function(a){this.h.push(X(this,a));};W.prototype.beginSubMessage=W.prototype.Va;W.prototype.Ya=function(){n(0<=this.h.length);Z(this,this.h.pop());};W.prototype.endSubMessage=W.prototype.Ya;function Y(a,b,c){n(1<=b&&b==Math.floor(b));a.a.j(8*b+c);}
196
+ W.prototype.Nc=function(a,b,c){switch(a){case 1:this.J(b,c);break;case 2:this.L(b,c);break;case 3:this.T(b,c);break;case 4:this.V(b,c);break;case 5:this.S(b,c);break;case 6:this.Qa(b,c);break;case 7:this.Pa(b,c);break;case 8:this.I(b,c);break;case 9:this.U(b,c);break;case 10:p("Group field type not supported in writeAny()");break;case 11:p("Message field type not supported in writeAny()");break;case 12:this.ja(b,c);break;case 13:this.s(b,c);break;case 14:this.R(b,c);break;case 15:this.Ra(b,c);break;
197
+ case 16:this.Sa(b,c);break;case 17:this.rb(b,c);break;case 18:this.sb(b,c);break;case 30:this.K(b,c);break;case 31:this.N(b,c);break;default:p("Invalid field type in writeAny()");}};W.prototype.writeAny=W.prototype.Nc;function ub(a,b,c){null!=c&&(Y(a,b,0),a.a.j(c));}function vb(a,b,c){null!=c&&(Y(a,b,0),a.a.M(c));}W.prototype.S=function(a,b){null!=b&&(n(-2147483648<=b&&2147483648>b),vb(this,a,b));};W.prototype.writeInt32=W.prototype.S;
198
+ W.prototype.ob=function(a,b){null!=b&&(b=parseInt(b,10),n(-2147483648<=b&&2147483648>b),vb(this,a,b));};W.prototype.writeInt32String=W.prototype.ob;W.prototype.T=function(a,b){null!=b&&(n(-9223372036854776e3<=b&&0x7fffffffffffffff>b),null!=b&&(Y(this,a,0),this.a.ua(b)));};W.prototype.writeInt64=W.prototype.T;W.prototype.ka=function(a,b){null!=b&&(b=sb(b),Y(this,a,0),this.a.l(b.lo,b.hi));};W.prototype.writeInt64String=W.prototype.ka;
199
+ W.prototype.s=function(a,b){null!=b&&(n(0<=b&&4294967296>b),ub(this,a,b));};W.prototype.writeUint32=W.prototype.s;W.prototype.ub=function(a,b){null!=b&&(b=parseInt(b,10),n(0<=b&&4294967296>b),ub(this,a,b));};W.prototype.writeUint32String=W.prototype.ub;W.prototype.V=function(a,b){null!=b&&(n(0<=b&&1.8446744073709552E19>b),null!=b&&(Y(this,a,0),this.a.va(b)));};W.prototype.writeUint64=W.prototype.V;W.prototype.vb=function(a,b){null!=b&&(b=U(b),Y(this,a,0),this.a.l(b.lo,b.hi));};
200
+ W.prototype.writeUint64String=W.prototype.vb;W.prototype.rb=function(a,b){null!=b&&(n(-2147483648<=b&&2147483648>b),null!=b&&(Y(this,a,0),this.a.wa(b)));};W.prototype.writeSint32=W.prototype.rb;W.prototype.sb=function(a,b){null!=b&&(n(-9223372036854776e3<=b&&0x7fffffffffffffff>b),null!=b&&(Y(this,a,0),this.a.xa(b)));};W.prototype.writeSint64=W.prototype.sb;W.prototype.$d=function(a,b){null!=b&&null!=b&&(Y(this,a,0),this.a.W(b));};W.prototype.writeSintHash64=W.prototype.$d;
201
+ W.prototype.Zd=function(a,b){null!=b&&null!=b&&(Y(this,a,0),this.a.Ta(b));};W.prototype.writeSint64String=W.prototype.Zd;W.prototype.Pa=function(a,b){null!=b&&(n(0<=b&&4294967296>b),Y(this,a,5),this.a.s(b));};W.prototype.writeFixed32=W.prototype.Pa;W.prototype.Qa=function(a,b){null!=b&&(n(0<=b&&1.8446744073709552E19>b),Y(this,a,1),this.a.V(b));};W.prototype.writeFixed64=W.prototype.Qa;W.prototype.nb=function(a,b){null!=b&&(b=U(b),Y(this,a,1),this.a.A(b.lo,b.hi));};W.prototype.writeFixed64String=W.prototype.nb;
202
+ W.prototype.Ra=function(a,b){null!=b&&(n(-2147483648<=b&&2147483648>b),Y(this,a,5),this.a.S(b));};W.prototype.writeSfixed32=W.prototype.Ra;W.prototype.Sa=function(a,b){null!=b&&(n(-9223372036854776e3<=b&&0x7fffffffffffffff>b),Y(this,a,1),this.a.T(b));};W.prototype.writeSfixed64=W.prototype.Sa;W.prototype.qb=function(a,b){null!=b&&(b=sb(b),Y(this,a,1),this.a.A(b.lo,b.hi));};W.prototype.writeSfixed64String=W.prototype.qb;W.prototype.L=function(a,b){null!=b&&(Y(this,a,5),this.a.L(b));};
203
+ W.prototype.writeFloat=W.prototype.L;W.prototype.J=function(a,b){null!=b&&(Y(this,a,1),this.a.J(b));};W.prototype.writeDouble=W.prototype.J;W.prototype.I=function(a,b){null!=b&&(n("boolean"===typeof b||"number"===typeof b),Y(this,a,0),this.a.I(b));};W.prototype.writeBool=W.prototype.I;W.prototype.R=function(a,b){null!=b&&(n(-2147483648<=b&&2147483648>b),Y(this,a,0),this.a.M(b));};W.prototype.writeEnum=W.prototype.R;W.prototype.U=function(a,b){null!=b&&(a=X(this,a),this.a.U(b),Z(this,a));};
204
+ W.prototype.writeString=W.prototype.U;W.prototype.ja=function(a,b){null!=b&&(b=Ua(b),Y(this,a,2),this.a.j(b.length),tb(this,b));};W.prototype.writeBytes=W.prototype.ja;W.prototype.Rc=function(a,b,c){null!=b&&(a=X(this,a),c(b,this),Z(this,a));};W.prototype.writeMessage=W.prototype.Rc;W.prototype.Sc=function(a,b,c){null!=b&&(Y(this,1,3),Y(this,2,0),this.a.M(a),a=X(this,3),c(b,this),Z(this,a),Y(this,1,4));};W.prototype.writeMessageSet=W.prototype.Sc;
205
+ W.prototype.Oc=function(a,b,c){null!=b&&(Y(this,a,3),c(b,this),Y(this,a,4));};W.prototype.writeGroup=W.prototype.Oc;W.prototype.K=function(a,b){null!=b&&(n(8==b.length),Y(this,a,1),this.a.K(b));};W.prototype.writeFixedHash64=W.prototype.K;W.prototype.N=function(a,b){null!=b&&(n(8==b.length),Y(this,a,0),this.a.N(b));};W.prototype.writeVarintHash64=W.prototype.N;W.prototype.A=function(a,b,c){Y(this,a,1);this.a.A(b,c);};W.prototype.writeSplitFixed64=W.prototype.A;
206
+ W.prototype.l=function(a,b,c){Y(this,a,0);this.a.l(b,c);};W.prototype.writeSplitVarint64=W.prototype.l;W.prototype.tb=function(a,b,c){Y(this,a,0);var d=this.a;Ja(b,c,function(f,h){d.l(f>>>0,h>>>0);});};W.prototype.writeSplitZigzagVarint64=W.prototype.tb;W.prototype.Ed=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)vb(this,a,b[c]);};W.prototype.writeRepeatedInt32=W.prototype.Ed;W.prototype.Fd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.ob(a,b[c]);};
207
+ W.prototype.writeRepeatedInt32String=W.prototype.Fd;W.prototype.Gd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];null!=d&&(Y(this,a,0),this.a.ua(d));}};W.prototype.writeRepeatedInt64=W.prototype.Gd;W.prototype.Qd=function(a,b,c,d){if(null!=b)for(var f=0;f<b.length;f++)this.A(a,c(b[f]),d(b[f]));};W.prototype.writeRepeatedSplitFixed64=W.prototype.Qd;W.prototype.Rd=function(a,b,c,d){if(null!=b)for(var f=0;f<b.length;f++)this.l(a,c(b[f]),d(b[f]));};
208
+ W.prototype.writeRepeatedSplitVarint64=W.prototype.Rd;W.prototype.Sd=function(a,b,c,d){if(null!=b)for(var f=0;f<b.length;f++)this.tb(a,c(b[f]),d(b[f]));};W.prototype.writeRepeatedSplitZigzagVarint64=W.prototype.Sd;W.prototype.Hd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.ka(a,b[c]);};W.prototype.writeRepeatedInt64String=W.prototype.Hd;W.prototype.Ud=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)ub(this,a,b[c]);};W.prototype.writeRepeatedUint32=W.prototype.Ud;
209
+ W.prototype.Vd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.ub(a,b[c]);};W.prototype.writeRepeatedUint32String=W.prototype.Vd;W.prototype.Wd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];null!=d&&(Y(this,a,0),this.a.va(d));}};W.prototype.writeRepeatedUint64=W.prototype.Wd;W.prototype.Xd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.vb(a,b[c]);};W.prototype.writeRepeatedUint64String=W.prototype.Xd;
210
+ W.prototype.Md=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];null!=d&&(Y(this,a,0),this.a.wa(d));}};W.prototype.writeRepeatedSint32=W.prototype.Md;W.prototype.Nd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];null!=d&&(Y(this,a,0),this.a.xa(d));}};W.prototype.writeRepeatedSint64=W.prototype.Nd;W.prototype.Od=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];null!=d&&(Y(this,a,0),this.a.Ta(d));}};W.prototype.writeRepeatedSint64String=W.prototype.Od;
211
+ W.prototype.Pd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];null!=d&&(Y(this,a,0),this.a.W(d));}};W.prototype.writeRepeatedSintHash64=W.prototype.Pd;W.prototype.yd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.Pa(a,b[c]);};W.prototype.writeRepeatedFixed32=W.prototype.yd;W.prototype.zd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.Qa(a,b[c]);};W.prototype.writeRepeatedFixed64=W.prototype.zd;
212
+ W.prototype.Ad=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.nb(a,b[c]);};W.prototype.writeRepeatedFixed64String=W.prototype.Ad;W.prototype.Jd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.Ra(a,b[c]);};W.prototype.writeRepeatedSfixed32=W.prototype.Jd;W.prototype.Kd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.Sa(a,b[c]);};W.prototype.writeRepeatedSfixed64=W.prototype.Kd;W.prototype.Ld=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.qb(a,b[c]);};
213
+ W.prototype.writeRepeatedSfixed64String=W.prototype.Ld;W.prototype.Cd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.L(a,b[c]);};W.prototype.writeRepeatedFloat=W.prototype.Cd;W.prototype.wd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.J(a,b[c]);};W.prototype.writeRepeatedDouble=W.prototype.wd;W.prototype.ud=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.I(a,b[c]);};W.prototype.writeRepeatedBool=W.prototype.ud;
214
+ W.prototype.xd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.R(a,b[c]);};W.prototype.writeRepeatedEnum=W.prototype.xd;W.prototype.Td=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.U(a,b[c]);};W.prototype.writeRepeatedString=W.prototype.Td;W.prototype.vd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.ja(a,b[c]);};W.prototype.writeRepeatedBytes=W.prototype.vd;W.prototype.Id=function(a,b,c){if(null!=b)for(var d=0;d<b.length;d++){var f=X(this,a);c(b[d],this);Z(this,f);}};
215
+ W.prototype.writeRepeatedMessage=W.prototype.Id;W.prototype.Dd=function(a,b,c){if(null!=b)for(var d=0;d<b.length;d++)Y(this,a,3),c(b[d],this),Y(this,a,4);};W.prototype.writeRepeatedGroup=W.prototype.Dd;W.prototype.Bd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.K(a,b[c]);};W.prototype.writeRepeatedFixedHash64=W.prototype.Bd;W.prototype.Yd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.N(a,b[c]);};W.prototype.writeRepeatedVarintHash64=W.prototype.Yd;
216
+ W.prototype.ad=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.M(b[c]);Z(this,a);}};W.prototype.writePackedInt32=W.prototype.ad;W.prototype.bd=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.M(parseInt(b[c],10));Z(this,a);}};W.prototype.writePackedInt32String=W.prototype.bd;W.prototype.cd=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.ua(b[c]);Z(this,a);}};W.prototype.writePackedInt64=W.prototype.cd;
217
+ W.prototype.md=function(a,b,c,d){if(null!=b){a=X(this,a);for(var f=0;f<b.length;f++)this.a.A(c(b[f]),d(b[f]));Z(this,a);}};W.prototype.writePackedSplitFixed64=W.prototype.md;W.prototype.nd=function(a,b,c,d){if(null!=b){a=X(this,a);for(var f=0;f<b.length;f++)this.a.l(c(b[f]),d(b[f]));Z(this,a);}};W.prototype.writePackedSplitVarint64=W.prototype.nd;W.prototype.od=function(a,b,c,d){if(null!=b){a=X(this,a);for(var f=this.a,h=0;h<b.length;h++)Ja(c(b[h]),d(b[h]),function(m,t){f.l(m>>>0,t>>>0);});Z(this,a);}};
218
+ W.prototype.writePackedSplitZigzagVarint64=W.prototype.od;W.prototype.dd=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++){var d=sb(b[c]);this.a.l(d.lo,d.hi);}Z(this,a);}};W.prototype.writePackedInt64String=W.prototype.dd;W.prototype.pd=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.j(b[c]);Z(this,a);}};W.prototype.writePackedUint32=W.prototype.pd;
219
+ W.prototype.qd=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.j(parseInt(b[c],10));Z(this,a);}};W.prototype.writePackedUint32String=W.prototype.qd;W.prototype.rd=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.va(b[c]);Z(this,a);}};W.prototype.writePackedUint64=W.prototype.rd;W.prototype.sd=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++){var d=U(b[c]);this.a.l(d.lo,d.hi);}Z(this,a);}};
220
+ W.prototype.writePackedUint64String=W.prototype.sd;W.prototype.hd=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.wa(b[c]);Z(this,a);}};W.prototype.writePackedSint32=W.prototype.hd;W.prototype.jd=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.xa(b[c]);Z(this,a);}};W.prototype.writePackedSint64=W.prototype.jd;W.prototype.kd=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.W(H(b[c]));Z(this,a);}};
221
+ W.prototype.writePackedSint64String=W.prototype.kd;W.prototype.ld=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.W(b[c]);Z(this,a);}};W.prototype.writePackedSintHash64=W.prototype.ld;W.prototype.Wc=function(a,b){if(null!=b&&b.length)for(Y(this,a,2),this.a.j(4*b.length),a=0;a<b.length;a++)this.a.s(b[a]);};W.prototype.writePackedFixed32=W.prototype.Wc;W.prototype.Xc=function(a,b){if(null!=b&&b.length)for(Y(this,a,2),this.a.j(8*b.length),a=0;a<b.length;a++)this.a.V(b[a]);};
222
+ W.prototype.writePackedFixed64=W.prototype.Xc;W.prototype.Yc=function(a,b){if(null!=b&&b.length)for(Y(this,a,2),this.a.j(8*b.length),a=0;a<b.length;a++){var c=U(b[a]);this.a.A(c.lo,c.hi);}};W.prototype.writePackedFixed64String=W.prototype.Yc;W.prototype.ed=function(a,b){if(null!=b&&b.length)for(Y(this,a,2),this.a.j(4*b.length),a=0;a<b.length;a++)this.a.S(b[a]);};W.prototype.writePackedSfixed32=W.prototype.ed;
223
+ W.prototype.fd=function(a,b){if(null!=b&&b.length)for(Y(this,a,2),this.a.j(8*b.length),a=0;a<b.length;a++)this.a.T(b[a]);};W.prototype.writePackedSfixed64=W.prototype.fd;W.prototype.gd=function(a,b){if(null!=b&&b.length)for(Y(this,a,2),this.a.j(8*b.length),a=0;a<b.length;a++)this.a.ka(b[a]);};W.prototype.writePackedSfixed64String=W.prototype.gd;W.prototype.$c=function(a,b){if(null!=b&&b.length)for(Y(this,a,2),this.a.j(4*b.length),a=0;a<b.length;a++)this.a.L(b[a]);};W.prototype.writePackedFloat=W.prototype.$c;
224
+ W.prototype.Uc=function(a,b){if(null!=b&&b.length)for(Y(this,a,2),this.a.j(8*b.length),a=0;a<b.length;a++)this.a.J(b[a]);};W.prototype.writePackedDouble=W.prototype.Uc;W.prototype.Tc=function(a,b){if(null!=b&&b.length)for(Y(this,a,2),this.a.j(b.length),a=0;a<b.length;a++)this.a.I(b[a]);};W.prototype.writePackedBool=W.prototype.Tc;W.prototype.Vc=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.R(b[c]);Z(this,a);}};W.prototype.writePackedEnum=W.prototype.Vc;
225
+ W.prototype.Zc=function(a,b){if(null!=b&&b.length)for(Y(this,a,2),this.a.j(8*b.length),a=0;a<b.length;a++)this.a.K(b[a]);};W.prototype.writePackedFixedHash64=W.prototype.Zc;W.prototype.td=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.N(b[c]);Z(this,a);}};W.prototype.writePackedVarintHash64=W.prototype.td;(exports$1.debug=R,exports$1.Map=r,exports$1.Message=N,exports$1.BinaryReader=J,exports$1.BinaryWriter=W,exports$1.ExtensionFieldInfo=Ya,exports$1.ExtensionFieldBinaryInfo=Za,exports$1.exportSymbol=ma,exports$1.inherits=na,exports$1.object={extend:pa},exports$1.typeOf=k);
226
+ } (googleProtobuf));
227
+ return googleProtobuf;
228
+ }
229
+
230
+ var timestamp_pb = {};
231
+
232
+ var hasRequiredTimestamp_pb;
233
+
234
+ function requireTimestamp_pb () {
235
+ if (hasRequiredTimestamp_pb) return timestamp_pb;
236
+ hasRequiredTimestamp_pb = 1;
237
+ (function (exports$1) {
238
+ // source: google/protobuf/timestamp.proto
239
+ /**
240
+ * @fileoverview
241
+ * @enhanceable
242
+ * @suppress {missingRequire} reports error on implicit type usages.
243
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
244
+ * field starts with 'MSG_' and isn't a translatable message.
245
+ * @public
246
+ */
247
+ // GENERATED CODE -- DO NOT EDIT!
248
+ /* eslint-disable */
249
+ // @ts-nocheck
250
+
251
+ var jspb = requireGoogleProtobuf();
252
+ var goog = jspb;
253
+ var global =
254
+ (typeof globalThis !== 'undefined' && globalThis) ||
255
+ (typeof window !== 'undefined' && window) ||
256
+ (typeof global !== 'undefined' && global) ||
257
+ (typeof self !== 'undefined' && self) ||
258
+ (function () { return this; }).call(null) ||
259
+ Function('return this')();
260
+
261
+ goog.exportSymbol('proto.google.protobuf.Timestamp', null, global);
262
+ /**
263
+ * Generated by JsPbCodeGenerator.
264
+ * @param {Array=} opt_data Optional initial data array, typically from a
265
+ * server response, or constructed directly in Javascript. The array is used
266
+ * in place and becomes part of the constructed object. It is not cloned.
267
+ * If no data is provided, the constructed object will be empty, but still
268
+ * valid.
269
+ * @extends {jspb.Message}
270
+ * @constructor
271
+ */
272
+ proto.google.protobuf.Timestamp = function(opt_data) {
273
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
274
+ };
275
+ goog.inherits(proto.google.protobuf.Timestamp, jspb.Message);
276
+ if (goog.DEBUG && !COMPILED) {
277
+ /**
278
+ * @public
279
+ * @override
280
+ */
281
+ proto.google.protobuf.Timestamp.displayName = 'proto.google.protobuf.Timestamp';
282
+ }
283
+
284
+
285
+
286
+ if (jspb.Message.GENERATE_TO_OBJECT) {
287
+ /**
288
+ * Creates an object representation of this proto.
289
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
290
+ * Optional fields that are not set will be set to undefined.
291
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
292
+ * For the list of reserved names please see:
293
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
294
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
295
+ * JSPB instance for transitional soy proto support:
296
+ * http://goto/soy-param-migration
297
+ * @return {!Object}
298
+ */
299
+ proto.google.protobuf.Timestamp.prototype.toObject = function(opt_includeInstance) {
300
+ return proto.google.protobuf.Timestamp.toObject(opt_includeInstance, this);
301
+ };
302
+
303
+
304
+ /**
305
+ * Static version of the {@see toObject} method.
306
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
307
+ * the JSPB instance for transitional soy proto support:
308
+ * http://goto/soy-param-migration
309
+ * @param {!proto.google.protobuf.Timestamp} msg The msg instance to transform.
310
+ * @return {!Object}
311
+ * @suppress {unusedLocalVariables} f is only used for nested messages
312
+ */
313
+ proto.google.protobuf.Timestamp.toObject = function(includeInstance, msg) {
314
+ var obj = {
315
+ seconds: jspb.Message.getFieldWithDefault(msg, 1, 0),
316
+ nanos: jspb.Message.getFieldWithDefault(msg, 2, 0)
317
+ };
318
+
319
+ if (includeInstance) {
320
+ obj.$jspbMessageInstance = msg;
321
+ }
322
+ return obj;
323
+ };
324
+ }
325
+
326
+
327
+ /**
328
+ * Deserializes binary data (in protobuf wire format).
329
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
330
+ * @return {!proto.google.protobuf.Timestamp}
331
+ */
332
+ proto.google.protobuf.Timestamp.deserializeBinary = function(bytes) {
333
+ var reader = new jspb.BinaryReader(bytes);
334
+ var msg = new proto.google.protobuf.Timestamp;
335
+ return proto.google.protobuf.Timestamp.deserializeBinaryFromReader(msg, reader);
336
+ };
337
+
338
+
339
+ /**
340
+ * Deserializes binary data (in protobuf wire format) from the
341
+ * given reader into the given message object.
342
+ * @param {!proto.google.protobuf.Timestamp} msg The message object to deserialize into.
343
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
344
+ * @return {!proto.google.protobuf.Timestamp}
345
+ */
346
+ proto.google.protobuf.Timestamp.deserializeBinaryFromReader = function(msg, reader) {
347
+ while (reader.nextField()) {
348
+ if (reader.isEndGroup()) {
349
+ break;
350
+ }
351
+ var field = reader.getFieldNumber();
352
+ switch (field) {
353
+ case 1:
354
+ var value = /** @type {number} */ (reader.readInt64());
355
+ msg.setSeconds(value);
356
+ break;
357
+ case 2:
358
+ var value = /** @type {number} */ (reader.readInt32());
359
+ msg.setNanos(value);
360
+ break;
361
+ default:
362
+ reader.skipField();
363
+ break;
364
+ }
365
+ }
366
+ return msg;
367
+ };
368
+
369
+
370
+ /**
371
+ * Serializes the message to binary data (in protobuf wire format).
372
+ * @return {!Uint8Array}
373
+ */
374
+ proto.google.protobuf.Timestamp.prototype.serializeBinary = function() {
375
+ var writer = new jspb.BinaryWriter();
376
+ proto.google.protobuf.Timestamp.serializeBinaryToWriter(this, writer);
377
+ return writer.getResultBuffer();
378
+ };
379
+
380
+
381
+ /**
382
+ * Serializes the given message to binary data (in protobuf wire
383
+ * format), writing to the given BinaryWriter.
384
+ * @param {!proto.google.protobuf.Timestamp} message
385
+ * @param {!jspb.BinaryWriter} writer
386
+ * @suppress {unusedLocalVariables} f is only used for nested messages
387
+ */
388
+ proto.google.protobuf.Timestamp.serializeBinaryToWriter = function(message, writer) {
389
+ var f = undefined;
390
+ f = message.getSeconds();
391
+ if (f !== 0) {
392
+ writer.writeInt64(
393
+ 1,
394
+ f
395
+ );
396
+ }
397
+ f = message.getNanos();
398
+ if (f !== 0) {
399
+ writer.writeInt32(
400
+ 2,
401
+ f
402
+ );
403
+ }
404
+ };
405
+
406
+
407
+ /**
408
+ * optional int64 seconds = 1;
409
+ * @return {number}
410
+ */
411
+ proto.google.protobuf.Timestamp.prototype.getSeconds = function() {
412
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
413
+ };
414
+
415
+
416
+ /**
417
+ * @param {number} value
418
+ * @return {!proto.google.protobuf.Timestamp} returns this
419
+ */
420
+ proto.google.protobuf.Timestamp.prototype.setSeconds = function(value) {
421
+ return jspb.Message.setProto3IntField(this, 1, value);
422
+ };
423
+
424
+
425
+ /**
426
+ * optional int32 nanos = 2;
427
+ * @return {number}
428
+ */
429
+ proto.google.protobuf.Timestamp.prototype.getNanos = function() {
430
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
431
+ };
432
+
433
+
434
+ /**
435
+ * @param {number} value
436
+ * @return {!proto.google.protobuf.Timestamp} returns this
437
+ */
438
+ proto.google.protobuf.Timestamp.prototype.setNanos = function(value) {
439
+ return jspb.Message.setProto3IntField(this, 2, value);
440
+ };
441
+
442
+
443
+ goog.object.extend(exports$1, proto.google.protobuf);
444
+ /* This code will be inserted into generated code for
445
+ * google/protobuf/timestamp.proto. */
446
+
447
+ /**
448
+ * Returns a JavaScript 'Date' object corresponding to this Timestamp.
449
+ * @return {!Date}
450
+ */
451
+ proto.google.protobuf.Timestamp.prototype.toDate = function() {
452
+ var seconds = this.getSeconds();
453
+ var nanos = this.getNanos();
454
+
455
+ return new Date((seconds * 1000) + (nanos / 1000000));
456
+ };
457
+
458
+
459
+ /**
460
+ * Sets the value of this Timestamp object to be the given Date.
461
+ * @param {!Date} value The value to set.
462
+ */
463
+ proto.google.protobuf.Timestamp.prototype.fromDate = function(value) {
464
+ this.setSeconds(Math.floor(value.getTime() / 1000));
465
+ this.setNanos(value.getMilliseconds() * 1000000);
466
+ };
467
+
468
+
469
+ /**
470
+ * Factory method that returns a Timestamp object with value equal to
471
+ * the given Date.
472
+ * @param {!Date} value The value to set.
473
+ * @return {!proto.google.protobuf.Timestamp}
474
+ */
475
+ proto.google.protobuf.Timestamp.fromDate = function(value) {
476
+ var timestamp = new proto.google.protobuf.Timestamp();
477
+ timestamp.fromDate(value);
478
+ return timestamp;
479
+ };
480
+ } (timestamp_pb));
481
+ return timestamp_pb;
482
+ }
483
+
484
+ var status_pb = {};
485
+
486
+ var hasRequiredStatus_pb;
487
+
488
+ function requireStatus_pb () {
489
+ if (hasRequiredStatus_pb) return status_pb;
490
+ hasRequiredStatus_pb = 1;
491
+ (function (exports$1) {
492
+ // source: proto/common/v1/status.proto
493
+ /**
494
+ * @fileoverview
495
+ * @enhanceable
496
+ * @suppress {missingRequire} reports error on implicit type usages.
497
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
498
+ * field starts with 'MSG_' and isn't a translatable message.
499
+ * @public
500
+ */
501
+ // GENERATED CODE -- DO NOT EDIT!
502
+ /* eslint-disable */
503
+ // @ts-nocheck
504
+
505
+ var jspb = requireGoogleProtobuf();
506
+ var goog = jspb;
507
+ var global =
508
+ (typeof globalThis !== 'undefined' && globalThis) ||
509
+ (typeof window !== 'undefined' && window) ||
510
+ (typeof global !== 'undefined' && global) ||
511
+ (typeof self !== 'undefined' && self) ||
512
+ (function () { return this; }).call(null) ||
513
+ Function('return this')();
514
+
515
+ goog.exportSymbol('proto.common.v1.ResponseStatus', null, global);
516
+ goog.exportSymbol('proto.common.v1.ResponseStatus.StatusCode', null, global);
517
+ /**
518
+ * Generated by JsPbCodeGenerator.
519
+ * @param {Array=} opt_data Optional initial data array, typically from a
520
+ * server response, or constructed directly in Javascript. The array is used
521
+ * in place and becomes part of the constructed object. It is not cloned.
522
+ * If no data is provided, the constructed object will be empty, but still
523
+ * valid.
524
+ * @extends {jspb.Message}
525
+ * @constructor
526
+ */
527
+ proto.common.v1.ResponseStatus = function(opt_data) {
528
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
529
+ };
530
+ goog.inherits(proto.common.v1.ResponseStatus, jspb.Message);
531
+ if (goog.DEBUG && !COMPILED) {
532
+ /**
533
+ * @public
534
+ * @override
535
+ */
536
+ proto.common.v1.ResponseStatus.displayName = 'proto.common.v1.ResponseStatus';
537
+ }
538
+
539
+
540
+
541
+ if (jspb.Message.GENERATE_TO_OBJECT) {
542
+ /**
543
+ * Creates an object representation of this proto.
544
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
545
+ * Optional fields that are not set will be set to undefined.
546
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
547
+ * For the list of reserved names please see:
548
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
549
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
550
+ * JSPB instance for transitional soy proto support:
551
+ * http://goto/soy-param-migration
552
+ * @return {!Object}
553
+ */
554
+ proto.common.v1.ResponseStatus.prototype.toObject = function(opt_includeInstance) {
555
+ return proto.common.v1.ResponseStatus.toObject(opt_includeInstance, this);
556
+ };
557
+
558
+
559
+ /**
560
+ * Static version of the {@see toObject} method.
561
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
562
+ * the JSPB instance for transitional soy proto support:
563
+ * http://goto/soy-param-migration
564
+ * @param {!proto.common.v1.ResponseStatus} msg The msg instance to transform.
565
+ * @return {!Object}
566
+ * @suppress {unusedLocalVariables} f is only used for nested messages
567
+ */
568
+ proto.common.v1.ResponseStatus.toObject = function(includeInstance, msg) {
569
+ var f, obj = {
570
+ code: jspb.Message.getFieldWithDefault(msg, 1, 0),
571
+ errorMessage: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
572
+ };
573
+
574
+ if (includeInstance) {
575
+ obj.$jspbMessageInstance = msg;
576
+ }
577
+ return obj;
578
+ };
579
+ }
580
+
581
+
582
+ /**
583
+ * Deserializes binary data (in protobuf wire format).
584
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
585
+ * @return {!proto.common.v1.ResponseStatus}
586
+ */
587
+ proto.common.v1.ResponseStatus.deserializeBinary = function(bytes) {
588
+ var reader = new jspb.BinaryReader(bytes);
589
+ var msg = new proto.common.v1.ResponseStatus;
590
+ return proto.common.v1.ResponseStatus.deserializeBinaryFromReader(msg, reader);
591
+ };
592
+
593
+
594
+ /**
595
+ * Deserializes binary data (in protobuf wire format) from the
596
+ * given reader into the given message object.
597
+ * @param {!proto.common.v1.ResponseStatus} msg The message object to deserialize into.
598
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
599
+ * @return {!proto.common.v1.ResponseStatus}
600
+ */
601
+ proto.common.v1.ResponseStatus.deserializeBinaryFromReader = function(msg, reader) {
602
+ while (reader.nextField()) {
603
+ if (reader.isEndGroup()) {
604
+ break;
605
+ }
606
+ var field = reader.getFieldNumber();
607
+ switch (field) {
608
+ case 1:
609
+ var value = /** @type {!proto.common.v1.ResponseStatus.StatusCode} */ (reader.readEnum());
610
+ msg.setCode(value);
611
+ break;
612
+ case 2:
613
+ var value = /** @type {string} */ (reader.readString());
614
+ msg.setErrorMessage(value);
615
+ break;
616
+ default:
617
+ reader.skipField();
618
+ break;
619
+ }
620
+ }
621
+ return msg;
622
+ };
623
+
624
+
625
+ /**
626
+ * Serializes the message to binary data (in protobuf wire format).
627
+ * @return {!Uint8Array}
628
+ */
629
+ proto.common.v1.ResponseStatus.prototype.serializeBinary = function() {
630
+ var writer = new jspb.BinaryWriter();
631
+ proto.common.v1.ResponseStatus.serializeBinaryToWriter(this, writer);
632
+ return writer.getResultBuffer();
633
+ };
634
+
635
+
636
+ /**
637
+ * Serializes the given message to binary data (in protobuf wire
638
+ * format), writing to the given BinaryWriter.
639
+ * @param {!proto.common.v1.ResponseStatus} message
640
+ * @param {!jspb.BinaryWriter} writer
641
+ * @suppress {unusedLocalVariables} f is only used for nested messages
642
+ */
643
+ proto.common.v1.ResponseStatus.serializeBinaryToWriter = function(message, writer) {
644
+ var f = undefined;
645
+ f = message.getCode();
646
+ if (f !== 0.0) {
647
+ writer.writeEnum(
648
+ 1,
649
+ f
650
+ );
651
+ }
652
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
653
+ if (f != null) {
654
+ writer.writeString(
655
+ 2,
656
+ f
657
+ );
658
+ }
659
+ };
660
+
661
+
662
+ /**
663
+ * @enum {number}
664
+ */
665
+ proto.common.v1.ResponseStatus.StatusCode = {
666
+ STATUS_CODE_UNSPECIFIED: 0,
667
+ STATUS_CODE_SUCCESS: 1,
668
+ STATUS_CODE_NOT_FOUND: 2,
669
+ STATUS_CODE_VALIDATION_ERROR: 3,
670
+ STATUS_CODE_INTERNAL_ERROR: 4,
671
+ STATUS_CODE_UNAUTHENTICATED: 5
672
+ };
673
+
674
+ /**
675
+ * optional StatusCode code = 1;
676
+ * @return {!proto.common.v1.ResponseStatus.StatusCode}
677
+ */
678
+ proto.common.v1.ResponseStatus.prototype.getCode = function() {
679
+ return /** @type {!proto.common.v1.ResponseStatus.StatusCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
680
+ };
681
+
682
+
683
+ /**
684
+ * @param {!proto.common.v1.ResponseStatus.StatusCode} value
685
+ * @return {!proto.common.v1.ResponseStatus} returns this
686
+ */
687
+ proto.common.v1.ResponseStatus.prototype.setCode = function(value) {
688
+ return jspb.Message.setProto3EnumField(this, 1, value);
689
+ };
690
+
691
+
692
+ /**
693
+ * optional string error_message = 2;
694
+ * @return {string}
695
+ */
696
+ proto.common.v1.ResponseStatus.prototype.getErrorMessage = function() {
697
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
698
+ };
699
+
700
+
701
+ /**
702
+ * @param {string} value
703
+ * @return {!proto.common.v1.ResponseStatus} returns this
704
+ */
705
+ proto.common.v1.ResponseStatus.prototype.setErrorMessage = function(value) {
706
+ return jspb.Message.setField(this, 2, value);
707
+ };
708
+
709
+
710
+ /**
711
+ * Clears the field making it undefined.
712
+ * @return {!proto.common.v1.ResponseStatus} returns this
713
+ */
714
+ proto.common.v1.ResponseStatus.prototype.clearErrorMessage = function() {
715
+ return jspb.Message.setField(this, 2, undefined);
716
+ };
717
+
718
+
719
+ /**
720
+ * Returns whether this field is set.
721
+ * @return {boolean}
722
+ */
723
+ proto.common.v1.ResponseStatus.prototype.hasErrorMessage = function() {
724
+ return jspb.Message.getField(this, 2) != null;
725
+ };
726
+
727
+
728
+ goog.object.extend(exports$1, proto.common.v1);
729
+ } (status_pb));
730
+ return status_pb;
731
+ }
732
+
733
+ var hasRequiredParallax_gateway_pb;
734
+
735
+ function requireParallax_gateway_pb () {
736
+ if (hasRequiredParallax_gateway_pb) return parallax_gateway_pb;
737
+ hasRequiredParallax_gateway_pb = 1;
738
+ (function (exports$1) {
739
+ // source: proto/gateway/parallax/v1/parallax_gateway.proto
740
+ /**
741
+ * @fileoverview
742
+ * @enhanceable
743
+ * @suppress {missingRequire} reports error on implicit type usages.
744
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
745
+ * field starts with 'MSG_' and isn't a translatable message.
746
+ * @public
747
+ */
748
+ // GENERATED CODE -- DO NOT EDIT!
749
+ /* eslint-disable */
750
+ // @ts-nocheck
751
+
752
+ var jspb = requireGoogleProtobuf();
753
+ var goog = jspb;
754
+ var global =
755
+ (typeof globalThis !== 'undefined' && globalThis) ||
756
+ (typeof window !== 'undefined' && window) ||
757
+ (typeof global !== 'undefined' && global) ||
758
+ (typeof self !== 'undefined' && self) ||
759
+ (function () { return this; }).call(null) ||
760
+ Function('return this')();
761
+
762
+ var google_protobuf_timestamp_pb = requireTimestamp_pb();
763
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
764
+ var proto_common_v1_status_pb = requireStatus_pb();
765
+ goog.object.extend(proto, proto_common_v1_status_pb);
766
+ goog.exportSymbol('proto.gateway.parallax.v1.AddSpanErrorRequest', null, global);
767
+ goog.exportSymbol('proto.gateway.parallax.v1.AddSpanErrorResponse', null, global);
768
+ goog.exportSymbol('proto.gateway.parallax.v1.AddSpanEventRequest', null, global);
769
+ goog.exportSymbol('proto.gateway.parallax.v1.AddSpanEventResponse', null, global);
770
+ goog.exportSymbol('proto.gateway.parallax.v1.AddSpanHintRequest', null, global);
771
+ goog.exportSymbol('proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction', null, global);
772
+ goog.exportSymbol('proto.gateway.parallax.v1.AddSpanHintRequest.HintTypeCase', null, global);
773
+ goog.exportSymbol('proto.gateway.parallax.v1.AddSpanHintResponse', null, global);
774
+ goog.exportSymbol('proto.gateway.parallax.v1.CreateTraceRequest', null, global);
775
+ goog.exportSymbol('proto.gateway.parallax.v1.CreateTraceResponse', null, global);
776
+ goog.exportSymbol('proto.gateway.parallax.v1.FinishSpanRequest', null, global);
777
+ goog.exportSymbol('proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus', null, global);
778
+ goog.exportSymbol('proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.StatusCode', null, global);
779
+ goog.exportSymbol('proto.gateway.parallax.v1.FinishSpanResponse', null, global);
780
+ goog.exportSymbol('proto.gateway.parallax.v1.StartSpanRequest', null, global);
781
+ goog.exportSymbol('proto.gateway.parallax.v1.StartSpanResponse', null, global);
782
+ /**
783
+ * Generated by JsPbCodeGenerator.
784
+ * @param {Array=} opt_data Optional initial data array, typically from a
785
+ * server response, or constructed directly in Javascript. The array is used
786
+ * in place and becomes part of the constructed object. It is not cloned.
787
+ * If no data is provided, the constructed object will be empty, but still
788
+ * valid.
789
+ * @extends {jspb.Message}
790
+ * @constructor
791
+ */
792
+ proto.gateway.parallax.v1.CreateTraceRequest = function(opt_data) {
793
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.parallax.v1.CreateTraceRequest.repeatedFields_, null);
794
+ };
795
+ goog.inherits(proto.gateway.parallax.v1.CreateTraceRequest, jspb.Message);
796
+ if (goog.DEBUG && !COMPILED) {
797
+ /**
798
+ * @public
799
+ * @override
800
+ */
801
+ proto.gateway.parallax.v1.CreateTraceRequest.displayName = 'proto.gateway.parallax.v1.CreateTraceRequest';
802
+ }
803
+ /**
804
+ * Generated by JsPbCodeGenerator.
805
+ * @param {Array=} opt_data Optional initial data array, typically from a
806
+ * server response, or constructed directly in Javascript. The array is used
807
+ * in place and becomes part of the constructed object. It is not cloned.
808
+ * If no data is provided, the constructed object will be empty, but still
809
+ * valid.
810
+ * @extends {jspb.Message}
811
+ * @constructor
812
+ */
813
+ proto.gateway.parallax.v1.CreateTraceResponse = function(opt_data) {
814
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
815
+ };
816
+ goog.inherits(proto.gateway.parallax.v1.CreateTraceResponse, jspb.Message);
817
+ if (goog.DEBUG && !COMPILED) {
818
+ /**
819
+ * @public
820
+ * @override
821
+ */
822
+ proto.gateway.parallax.v1.CreateTraceResponse.displayName = 'proto.gateway.parallax.v1.CreateTraceResponse';
823
+ }
824
+ /**
825
+ * Generated by JsPbCodeGenerator.
826
+ * @param {Array=} opt_data Optional initial data array, typically from a
827
+ * server response, or constructed directly in Javascript. The array is used
828
+ * in place and becomes part of the constructed object. It is not cloned.
829
+ * If no data is provided, the constructed object will be empty, but still
830
+ * valid.
831
+ * @extends {jspb.Message}
832
+ * @constructor
833
+ */
834
+ proto.gateway.parallax.v1.StartSpanRequest = function(opt_data) {
835
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
836
+ };
837
+ goog.inherits(proto.gateway.parallax.v1.StartSpanRequest, jspb.Message);
838
+ if (goog.DEBUG && !COMPILED) {
839
+ /**
840
+ * @public
841
+ * @override
842
+ */
843
+ proto.gateway.parallax.v1.StartSpanRequest.displayName = 'proto.gateway.parallax.v1.StartSpanRequest';
844
+ }
845
+ /**
846
+ * Generated by JsPbCodeGenerator.
847
+ * @param {Array=} opt_data Optional initial data array, typically from a
848
+ * server response, or constructed directly in Javascript. The array is used
849
+ * in place and becomes part of the constructed object. It is not cloned.
850
+ * If no data is provided, the constructed object will be empty, but still
851
+ * valid.
852
+ * @extends {jspb.Message}
853
+ * @constructor
854
+ */
855
+ proto.gateway.parallax.v1.StartSpanResponse = function(opt_data) {
856
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
857
+ };
858
+ goog.inherits(proto.gateway.parallax.v1.StartSpanResponse, jspb.Message);
859
+ if (goog.DEBUG && !COMPILED) {
860
+ /**
861
+ * @public
862
+ * @override
863
+ */
864
+ proto.gateway.parallax.v1.StartSpanResponse.displayName = 'proto.gateway.parallax.v1.StartSpanResponse';
865
+ }
866
+ /**
867
+ * Generated by JsPbCodeGenerator.
868
+ * @param {Array=} opt_data Optional initial data array, typically from a
869
+ * server response, or constructed directly in Javascript. The array is used
870
+ * in place and becomes part of the constructed object. It is not cloned.
871
+ * If no data is provided, the constructed object will be empty, but still
872
+ * valid.
873
+ * @extends {jspb.Message}
874
+ * @constructor
875
+ */
876
+ proto.gateway.parallax.v1.FinishSpanRequest = function(opt_data) {
877
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
878
+ };
879
+ goog.inherits(proto.gateway.parallax.v1.FinishSpanRequest, jspb.Message);
880
+ if (goog.DEBUG && !COMPILED) {
881
+ /**
882
+ * @public
883
+ * @override
884
+ */
885
+ proto.gateway.parallax.v1.FinishSpanRequest.displayName = 'proto.gateway.parallax.v1.FinishSpanRequest';
886
+ }
887
+ /**
888
+ * Generated by JsPbCodeGenerator.
889
+ * @param {Array=} opt_data Optional initial data array, typically from a
890
+ * server response, or constructed directly in Javascript. The array is used
891
+ * in place and becomes part of the constructed object. It is not cloned.
892
+ * If no data is provided, the constructed object will be empty, but still
893
+ * valid.
894
+ * @extends {jspb.Message}
895
+ * @constructor
896
+ */
897
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus = function(opt_data) {
898
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
899
+ };
900
+ goog.inherits(proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus, jspb.Message);
901
+ if (goog.DEBUG && !COMPILED) {
902
+ /**
903
+ * @public
904
+ * @override
905
+ */
906
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.displayName = 'proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus';
907
+ }
908
+ /**
909
+ * Generated by JsPbCodeGenerator.
910
+ * @param {Array=} opt_data Optional initial data array, typically from a
911
+ * server response, or constructed directly in Javascript. The array is used
912
+ * in place and becomes part of the constructed object. It is not cloned.
913
+ * If no data is provided, the constructed object will be empty, but still
914
+ * valid.
915
+ * @extends {jspb.Message}
916
+ * @constructor
917
+ */
918
+ proto.gateway.parallax.v1.FinishSpanResponse = function(opt_data) {
919
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
920
+ };
921
+ goog.inherits(proto.gateway.parallax.v1.FinishSpanResponse, jspb.Message);
922
+ if (goog.DEBUG && !COMPILED) {
923
+ /**
924
+ * @public
925
+ * @override
926
+ */
927
+ proto.gateway.parallax.v1.FinishSpanResponse.displayName = 'proto.gateway.parallax.v1.FinishSpanResponse';
928
+ }
929
+ /**
930
+ * Generated by JsPbCodeGenerator.
931
+ * @param {Array=} opt_data Optional initial data array, typically from a
932
+ * server response, or constructed directly in Javascript. The array is used
933
+ * in place and becomes part of the constructed object. It is not cloned.
934
+ * If no data is provided, the constructed object will be empty, but still
935
+ * valid.
936
+ * @extends {jspb.Message}
937
+ * @constructor
938
+ */
939
+ proto.gateway.parallax.v1.AddSpanEventRequest = function(opt_data) {
940
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
941
+ };
942
+ goog.inherits(proto.gateway.parallax.v1.AddSpanEventRequest, jspb.Message);
943
+ if (goog.DEBUG && !COMPILED) {
944
+ /**
945
+ * @public
946
+ * @override
947
+ */
948
+ proto.gateway.parallax.v1.AddSpanEventRequest.displayName = 'proto.gateway.parallax.v1.AddSpanEventRequest';
949
+ }
950
+ /**
951
+ * Generated by JsPbCodeGenerator.
952
+ * @param {Array=} opt_data Optional initial data array, typically from a
953
+ * server response, or constructed directly in Javascript. The array is used
954
+ * in place and becomes part of the constructed object. It is not cloned.
955
+ * If no data is provided, the constructed object will be empty, but still
956
+ * valid.
957
+ * @extends {jspb.Message}
958
+ * @constructor
959
+ */
960
+ proto.gateway.parallax.v1.AddSpanEventResponse = function(opt_data) {
961
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
962
+ };
963
+ goog.inherits(proto.gateway.parallax.v1.AddSpanEventResponse, jspb.Message);
964
+ if (goog.DEBUG && !COMPILED) {
965
+ /**
966
+ * @public
967
+ * @override
968
+ */
969
+ proto.gateway.parallax.v1.AddSpanEventResponse.displayName = 'proto.gateway.parallax.v1.AddSpanEventResponse';
970
+ }
971
+ /**
972
+ * Generated by JsPbCodeGenerator.
973
+ * @param {Array=} opt_data Optional initial data array, typically from a
974
+ * server response, or constructed directly in Javascript. The array is used
975
+ * in place and becomes part of the constructed object. It is not cloned.
976
+ * If no data is provided, the constructed object will be empty, but still
977
+ * valid.
978
+ * @extends {jspb.Message}
979
+ * @constructor
980
+ */
981
+ proto.gateway.parallax.v1.AddSpanErrorRequest = function(opt_data) {
982
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
983
+ };
984
+ goog.inherits(proto.gateway.parallax.v1.AddSpanErrorRequest, jspb.Message);
985
+ if (goog.DEBUG && !COMPILED) {
986
+ /**
987
+ * @public
988
+ * @override
989
+ */
990
+ proto.gateway.parallax.v1.AddSpanErrorRequest.displayName = 'proto.gateway.parallax.v1.AddSpanErrorRequest';
991
+ }
992
+ /**
993
+ * Generated by JsPbCodeGenerator.
994
+ * @param {Array=} opt_data Optional initial data array, typically from a
995
+ * server response, or constructed directly in Javascript. The array is used
996
+ * in place and becomes part of the constructed object. It is not cloned.
997
+ * If no data is provided, the constructed object will be empty, but still
998
+ * valid.
999
+ * @extends {jspb.Message}
1000
+ * @constructor
1001
+ */
1002
+ proto.gateway.parallax.v1.AddSpanErrorResponse = function(opt_data) {
1003
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1004
+ };
1005
+ goog.inherits(proto.gateway.parallax.v1.AddSpanErrorResponse, jspb.Message);
1006
+ if (goog.DEBUG && !COMPILED) {
1007
+ /**
1008
+ * @public
1009
+ * @override
1010
+ */
1011
+ proto.gateway.parallax.v1.AddSpanErrorResponse.displayName = 'proto.gateway.parallax.v1.AddSpanErrorResponse';
1012
+ }
1013
+ /**
1014
+ * Generated by JsPbCodeGenerator.
1015
+ * @param {Array=} opt_data Optional initial data array, typically from a
1016
+ * server response, or constructed directly in Javascript. The array is used
1017
+ * in place and becomes part of the constructed object. It is not cloned.
1018
+ * If no data is provided, the constructed object will be empty, but still
1019
+ * valid.
1020
+ * @extends {jspb.Message}
1021
+ * @constructor
1022
+ */
1023
+ proto.gateway.parallax.v1.AddSpanHintRequest = function(opt_data) {
1024
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gateway.parallax.v1.AddSpanHintRequest.oneofGroups_);
1025
+ };
1026
+ goog.inherits(proto.gateway.parallax.v1.AddSpanHintRequest, jspb.Message);
1027
+ if (goog.DEBUG && !COMPILED) {
1028
+ /**
1029
+ * @public
1030
+ * @override
1031
+ */
1032
+ proto.gateway.parallax.v1.AddSpanHintRequest.displayName = 'proto.gateway.parallax.v1.AddSpanHintRequest';
1033
+ }
1034
+ /**
1035
+ * Generated by JsPbCodeGenerator.
1036
+ * @param {Array=} opt_data Optional initial data array, typically from a
1037
+ * server response, or constructed directly in Javascript. The array is used
1038
+ * in place and becomes part of the constructed object. It is not cloned.
1039
+ * If no data is provided, the constructed object will be empty, but still
1040
+ * valid.
1041
+ * @extends {jspb.Message}
1042
+ * @constructor
1043
+ */
1044
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction = function(opt_data) {
1045
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1046
+ };
1047
+ goog.inherits(proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction, jspb.Message);
1048
+ if (goog.DEBUG && !COMPILED) {
1049
+ /**
1050
+ * @public
1051
+ * @override
1052
+ */
1053
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.displayName = 'proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction';
1054
+ }
1055
+ /**
1056
+ * Generated by JsPbCodeGenerator.
1057
+ * @param {Array=} opt_data Optional initial data array, typically from a
1058
+ * server response, or constructed directly in Javascript. The array is used
1059
+ * in place and becomes part of the constructed object. It is not cloned.
1060
+ * If no data is provided, the constructed object will be empty, but still
1061
+ * valid.
1062
+ * @extends {jspb.Message}
1063
+ * @constructor
1064
+ */
1065
+ proto.gateway.parallax.v1.AddSpanHintResponse = function(opt_data) {
1066
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1067
+ };
1068
+ goog.inherits(proto.gateway.parallax.v1.AddSpanHintResponse, jspb.Message);
1069
+ if (goog.DEBUG && !COMPILED) {
1070
+ /**
1071
+ * @public
1072
+ * @override
1073
+ */
1074
+ proto.gateway.parallax.v1.AddSpanHintResponse.displayName = 'proto.gateway.parallax.v1.AddSpanHintResponse';
1075
+ }
1076
+
1077
+ /**
1078
+ * List of repeated fields within this message type.
1079
+ * @private {!Array<number>}
1080
+ * @const
1081
+ */
1082
+ proto.gateway.parallax.v1.CreateTraceRequest.repeatedFields_ = [3];
1083
+
1084
+
1085
+
1086
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1087
+ /**
1088
+ * Creates an object representation of this proto.
1089
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1090
+ * Optional fields that are not set will be set to undefined.
1091
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1092
+ * For the list of reserved names please see:
1093
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1094
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1095
+ * JSPB instance for transitional soy proto support:
1096
+ * http://goto/soy-param-migration
1097
+ * @return {!Object}
1098
+ */
1099
+ proto.gateway.parallax.v1.CreateTraceRequest.prototype.toObject = function(opt_includeInstance) {
1100
+ return proto.gateway.parallax.v1.CreateTraceRequest.toObject(opt_includeInstance, this);
1101
+ };
1102
+
1103
+
1104
+ /**
1105
+ * Static version of the {@see toObject} method.
1106
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1107
+ * the JSPB instance for transitional soy proto support:
1108
+ * http://goto/soy-param-migration
1109
+ * @param {!proto.gateway.parallax.v1.CreateTraceRequest} msg The msg instance to transform.
1110
+ * @return {!Object}
1111
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1112
+ */
1113
+ proto.gateway.parallax.v1.CreateTraceRequest.toObject = function(includeInstance, msg) {
1114
+ var f, obj = {
1115
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1116
+ attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : [],
1117
+ tagsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
1118
+ };
1119
+
1120
+ if (includeInstance) {
1121
+ obj.$jspbMessageInstance = msg;
1122
+ }
1123
+ return obj;
1124
+ };
1125
+ }
1126
+
1127
+
1128
+ /**
1129
+ * Deserializes binary data (in protobuf wire format).
1130
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1131
+ * @return {!proto.gateway.parallax.v1.CreateTraceRequest}
1132
+ */
1133
+ proto.gateway.parallax.v1.CreateTraceRequest.deserializeBinary = function(bytes) {
1134
+ var reader = new jspb.BinaryReader(bytes);
1135
+ var msg = new proto.gateway.parallax.v1.CreateTraceRequest;
1136
+ return proto.gateway.parallax.v1.CreateTraceRequest.deserializeBinaryFromReader(msg, reader);
1137
+ };
1138
+
1139
+
1140
+ /**
1141
+ * Deserializes binary data (in protobuf wire format) from the
1142
+ * given reader into the given message object.
1143
+ * @param {!proto.gateway.parallax.v1.CreateTraceRequest} msg The message object to deserialize into.
1144
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1145
+ * @return {!proto.gateway.parallax.v1.CreateTraceRequest}
1146
+ */
1147
+ proto.gateway.parallax.v1.CreateTraceRequest.deserializeBinaryFromReader = function(msg, reader) {
1148
+ while (reader.nextField()) {
1149
+ if (reader.isEndGroup()) {
1150
+ break;
1151
+ }
1152
+ var field = reader.getFieldNumber();
1153
+ switch (field) {
1154
+ case 1:
1155
+ var value = /** @type {string} */ (reader.readString());
1156
+ msg.setName(value);
1157
+ break;
1158
+ case 2:
1159
+ var value = msg.getAttributesMap();
1160
+ reader.readMessage(value, function(message, reader) {
1161
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
1162
+ });
1163
+ break;
1164
+ case 3:
1165
+ var value = /** @type {string} */ (reader.readString());
1166
+ msg.addTags(value);
1167
+ break;
1168
+ default:
1169
+ reader.skipField();
1170
+ break;
1171
+ }
1172
+ }
1173
+ return msg;
1174
+ };
1175
+
1176
+
1177
+ /**
1178
+ * Serializes the message to binary data (in protobuf wire format).
1179
+ * @return {!Uint8Array}
1180
+ */
1181
+ proto.gateway.parallax.v1.CreateTraceRequest.prototype.serializeBinary = function() {
1182
+ var writer = new jspb.BinaryWriter();
1183
+ proto.gateway.parallax.v1.CreateTraceRequest.serializeBinaryToWriter(this, writer);
1184
+ return writer.getResultBuffer();
1185
+ };
1186
+
1187
+
1188
+ /**
1189
+ * Serializes the given message to binary data (in protobuf wire
1190
+ * format), writing to the given BinaryWriter.
1191
+ * @param {!proto.gateway.parallax.v1.CreateTraceRequest} message
1192
+ * @param {!jspb.BinaryWriter} writer
1193
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1194
+ */
1195
+ proto.gateway.parallax.v1.CreateTraceRequest.serializeBinaryToWriter = function(message, writer) {
1196
+ var f = undefined;
1197
+ f = message.getName();
1198
+ if (f.length > 0) {
1199
+ writer.writeString(
1200
+ 1,
1201
+ f
1202
+ );
1203
+ }
1204
+ f = message.getAttributesMap(true);
1205
+ if (f && f.getLength() > 0) {
1206
+ f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
1207
+ }
1208
+ f = message.getTagsList();
1209
+ if (f.length > 0) {
1210
+ writer.writeRepeatedString(
1211
+ 3,
1212
+ f
1213
+ );
1214
+ }
1215
+ };
1216
+
1217
+
1218
+ /**
1219
+ * optional string name = 1;
1220
+ * @return {string}
1221
+ */
1222
+ proto.gateway.parallax.v1.CreateTraceRequest.prototype.getName = function() {
1223
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1224
+ };
1225
+
1226
+
1227
+ /**
1228
+ * @param {string} value
1229
+ * @return {!proto.gateway.parallax.v1.CreateTraceRequest} returns this
1230
+ */
1231
+ proto.gateway.parallax.v1.CreateTraceRequest.prototype.setName = function(value) {
1232
+ return jspb.Message.setProto3StringField(this, 1, value);
1233
+ };
1234
+
1235
+
1236
+ /**
1237
+ * map<string, string> attributes = 2;
1238
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
1239
+ * empty, instead returning `undefined`
1240
+ * @return {!jspb.Map<string,string>}
1241
+ */
1242
+ proto.gateway.parallax.v1.CreateTraceRequest.prototype.getAttributesMap = function(opt_noLazyCreate) {
1243
+ return /** @type {!jspb.Map<string,string>} */ (
1244
+ jspb.Message.getMapField(this, 2, opt_noLazyCreate,
1245
+ null));
1246
+ };
1247
+
1248
+
1249
+ /**
1250
+ * Clears values from the map. The map will be non-null.
1251
+ * @return {!proto.gateway.parallax.v1.CreateTraceRequest} returns this
1252
+ */
1253
+ proto.gateway.parallax.v1.CreateTraceRequest.prototype.clearAttributesMap = function() {
1254
+ this.getAttributesMap().clear();
1255
+ return this;
1256
+ };
1257
+
1258
+
1259
+ /**
1260
+ * repeated string tags = 3;
1261
+ * @return {!Array<string>}
1262
+ */
1263
+ proto.gateway.parallax.v1.CreateTraceRequest.prototype.getTagsList = function() {
1264
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
1265
+ };
1266
+
1267
+
1268
+ /**
1269
+ * @param {!Array<string>} value
1270
+ * @return {!proto.gateway.parallax.v1.CreateTraceRequest} returns this
1271
+ */
1272
+ proto.gateway.parallax.v1.CreateTraceRequest.prototype.setTagsList = function(value) {
1273
+ return jspb.Message.setField(this, 3, value || []);
1274
+ };
1275
+
1276
+
1277
+ /**
1278
+ * @param {string} value
1279
+ * @param {number=} opt_index
1280
+ * @return {!proto.gateway.parallax.v1.CreateTraceRequest} returns this
1281
+ */
1282
+ proto.gateway.parallax.v1.CreateTraceRequest.prototype.addTags = function(value, opt_index) {
1283
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
1284
+ };
1285
+
1286
+
1287
+ /**
1288
+ * Clears the list making it empty but non-null.
1289
+ * @return {!proto.gateway.parallax.v1.CreateTraceRequest} returns this
1290
+ */
1291
+ proto.gateway.parallax.v1.CreateTraceRequest.prototype.clearTagsList = function() {
1292
+ return this.setTagsList([]);
1293
+ };
1294
+
1295
+
1296
+
1297
+
1298
+
1299
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1300
+ /**
1301
+ * Creates an object representation of this proto.
1302
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1303
+ * Optional fields that are not set will be set to undefined.
1304
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1305
+ * For the list of reserved names please see:
1306
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1307
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1308
+ * JSPB instance for transitional soy proto support:
1309
+ * http://goto/soy-param-migration
1310
+ * @return {!Object}
1311
+ */
1312
+ proto.gateway.parallax.v1.CreateTraceResponse.prototype.toObject = function(opt_includeInstance) {
1313
+ return proto.gateway.parallax.v1.CreateTraceResponse.toObject(opt_includeInstance, this);
1314
+ };
1315
+
1316
+
1317
+ /**
1318
+ * Static version of the {@see toObject} method.
1319
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1320
+ * the JSPB instance for transitional soy proto support:
1321
+ * http://goto/soy-param-migration
1322
+ * @param {!proto.gateway.parallax.v1.CreateTraceResponse} msg The msg instance to transform.
1323
+ * @return {!Object}
1324
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1325
+ */
1326
+ proto.gateway.parallax.v1.CreateTraceResponse.toObject = function(includeInstance, msg) {
1327
+ var f, obj = {
1328
+ status: (f = msg.getStatus()) && proto_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
1329
+ traceId: jspb.Message.getFieldWithDefault(msg, 2, "")
1330
+ };
1331
+
1332
+ if (includeInstance) {
1333
+ obj.$jspbMessageInstance = msg;
1334
+ }
1335
+ return obj;
1336
+ };
1337
+ }
1338
+
1339
+
1340
+ /**
1341
+ * Deserializes binary data (in protobuf wire format).
1342
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1343
+ * @return {!proto.gateway.parallax.v1.CreateTraceResponse}
1344
+ */
1345
+ proto.gateway.parallax.v1.CreateTraceResponse.deserializeBinary = function(bytes) {
1346
+ var reader = new jspb.BinaryReader(bytes);
1347
+ var msg = new proto.gateway.parallax.v1.CreateTraceResponse;
1348
+ return proto.gateway.parallax.v1.CreateTraceResponse.deserializeBinaryFromReader(msg, reader);
1349
+ };
1350
+
1351
+
1352
+ /**
1353
+ * Deserializes binary data (in protobuf wire format) from the
1354
+ * given reader into the given message object.
1355
+ * @param {!proto.gateway.parallax.v1.CreateTraceResponse} msg The message object to deserialize into.
1356
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1357
+ * @return {!proto.gateway.parallax.v1.CreateTraceResponse}
1358
+ */
1359
+ proto.gateway.parallax.v1.CreateTraceResponse.deserializeBinaryFromReader = function(msg, reader) {
1360
+ while (reader.nextField()) {
1361
+ if (reader.isEndGroup()) {
1362
+ break;
1363
+ }
1364
+ var field = reader.getFieldNumber();
1365
+ switch (field) {
1366
+ case 1:
1367
+ var value = new proto_common_v1_status_pb.ResponseStatus;
1368
+ reader.readMessage(value,proto_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
1369
+ msg.setStatus(value);
1370
+ break;
1371
+ case 2:
1372
+ var value = /** @type {string} */ (reader.readString());
1373
+ msg.setTraceId(value);
1374
+ break;
1375
+ default:
1376
+ reader.skipField();
1377
+ break;
1378
+ }
1379
+ }
1380
+ return msg;
1381
+ };
1382
+
1383
+
1384
+ /**
1385
+ * Serializes the message to binary data (in protobuf wire format).
1386
+ * @return {!Uint8Array}
1387
+ */
1388
+ proto.gateway.parallax.v1.CreateTraceResponse.prototype.serializeBinary = function() {
1389
+ var writer = new jspb.BinaryWriter();
1390
+ proto.gateway.parallax.v1.CreateTraceResponse.serializeBinaryToWriter(this, writer);
1391
+ return writer.getResultBuffer();
1392
+ };
1393
+
1394
+
1395
+ /**
1396
+ * Serializes the given message to binary data (in protobuf wire
1397
+ * format), writing to the given BinaryWriter.
1398
+ * @param {!proto.gateway.parallax.v1.CreateTraceResponse} message
1399
+ * @param {!jspb.BinaryWriter} writer
1400
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1401
+ */
1402
+ proto.gateway.parallax.v1.CreateTraceResponse.serializeBinaryToWriter = function(message, writer) {
1403
+ var f = undefined;
1404
+ f = message.getStatus();
1405
+ if (f != null) {
1406
+ writer.writeMessage(
1407
+ 1,
1408
+ f,
1409
+ proto_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
1410
+ );
1411
+ }
1412
+ f = message.getTraceId();
1413
+ if (f.length > 0) {
1414
+ writer.writeString(
1415
+ 2,
1416
+ f
1417
+ );
1418
+ }
1419
+ };
1420
+
1421
+
1422
+ /**
1423
+ * optional common.v1.ResponseStatus status = 1;
1424
+ * @return {?proto.common.v1.ResponseStatus}
1425
+ */
1426
+ proto.gateway.parallax.v1.CreateTraceResponse.prototype.getStatus = function() {
1427
+ return /** @type{?proto.common.v1.ResponseStatus} */ (
1428
+ jspb.Message.getWrapperField(this, proto_common_v1_status_pb.ResponseStatus, 1));
1429
+ };
1430
+
1431
+
1432
+ /**
1433
+ * @param {?proto.common.v1.ResponseStatus|undefined} value
1434
+ * @return {!proto.gateway.parallax.v1.CreateTraceResponse} returns this
1435
+ */
1436
+ proto.gateway.parallax.v1.CreateTraceResponse.prototype.setStatus = function(value) {
1437
+ return jspb.Message.setWrapperField(this, 1, value);
1438
+ };
1439
+
1440
+
1441
+ /**
1442
+ * Clears the message field making it undefined.
1443
+ * @return {!proto.gateway.parallax.v1.CreateTraceResponse} returns this
1444
+ */
1445
+ proto.gateway.parallax.v1.CreateTraceResponse.prototype.clearStatus = function() {
1446
+ return this.setStatus(undefined);
1447
+ };
1448
+
1449
+
1450
+ /**
1451
+ * Returns whether this field is set.
1452
+ * @return {boolean}
1453
+ */
1454
+ proto.gateway.parallax.v1.CreateTraceResponse.prototype.hasStatus = function() {
1455
+ return jspb.Message.getField(this, 1) != null;
1456
+ };
1457
+
1458
+
1459
+ /**
1460
+ * optional string trace_id = 2;
1461
+ * @return {string}
1462
+ */
1463
+ proto.gateway.parallax.v1.CreateTraceResponse.prototype.getTraceId = function() {
1464
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1465
+ };
1466
+
1467
+
1468
+ /**
1469
+ * @param {string} value
1470
+ * @return {!proto.gateway.parallax.v1.CreateTraceResponse} returns this
1471
+ */
1472
+ proto.gateway.parallax.v1.CreateTraceResponse.prototype.setTraceId = function(value) {
1473
+ return jspb.Message.setProto3StringField(this, 2, value);
1474
+ };
1475
+
1476
+
1477
+
1478
+
1479
+
1480
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1481
+ /**
1482
+ * Creates an object representation of this proto.
1483
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1484
+ * Optional fields that are not set will be set to undefined.
1485
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1486
+ * For the list of reserved names please see:
1487
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1488
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1489
+ * JSPB instance for transitional soy proto support:
1490
+ * http://goto/soy-param-migration
1491
+ * @return {!Object}
1492
+ */
1493
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.toObject = function(opt_includeInstance) {
1494
+ return proto.gateway.parallax.v1.StartSpanRequest.toObject(opt_includeInstance, this);
1495
+ };
1496
+
1497
+
1498
+ /**
1499
+ * Static version of the {@see toObject} method.
1500
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1501
+ * the JSPB instance for transitional soy proto support:
1502
+ * http://goto/soy-param-migration
1503
+ * @param {!proto.gateway.parallax.v1.StartSpanRequest} msg The msg instance to transform.
1504
+ * @return {!Object}
1505
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1506
+ */
1507
+ proto.gateway.parallax.v1.StartSpanRequest.toObject = function(includeInstance, msg) {
1508
+ var f, obj = {
1509
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1510
+ traceId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1511
+ parentSpanId: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
1512
+ attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : [],
1513
+ startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1514
+ };
1515
+
1516
+ if (includeInstance) {
1517
+ obj.$jspbMessageInstance = msg;
1518
+ }
1519
+ return obj;
1520
+ };
1521
+ }
1522
+
1523
+
1524
+ /**
1525
+ * Deserializes binary data (in protobuf wire format).
1526
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1527
+ * @return {!proto.gateway.parallax.v1.StartSpanRequest}
1528
+ */
1529
+ proto.gateway.parallax.v1.StartSpanRequest.deserializeBinary = function(bytes) {
1530
+ var reader = new jspb.BinaryReader(bytes);
1531
+ var msg = new proto.gateway.parallax.v1.StartSpanRequest;
1532
+ return proto.gateway.parallax.v1.StartSpanRequest.deserializeBinaryFromReader(msg, reader);
1533
+ };
1534
+
1535
+
1536
+ /**
1537
+ * Deserializes binary data (in protobuf wire format) from the
1538
+ * given reader into the given message object.
1539
+ * @param {!proto.gateway.parallax.v1.StartSpanRequest} msg The message object to deserialize into.
1540
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1541
+ * @return {!proto.gateway.parallax.v1.StartSpanRequest}
1542
+ */
1543
+ proto.gateway.parallax.v1.StartSpanRequest.deserializeBinaryFromReader = function(msg, reader) {
1544
+ while (reader.nextField()) {
1545
+ if (reader.isEndGroup()) {
1546
+ break;
1547
+ }
1548
+ var field = reader.getFieldNumber();
1549
+ switch (field) {
1550
+ case 1:
1551
+ var value = /** @type {string} */ (reader.readString());
1552
+ msg.setName(value);
1553
+ break;
1554
+ case 2:
1555
+ var value = /** @type {string} */ (reader.readString());
1556
+ msg.setTraceId(value);
1557
+ break;
1558
+ case 3:
1559
+ var value = /** @type {string} */ (reader.readString());
1560
+ msg.setParentSpanId(value);
1561
+ break;
1562
+ case 4:
1563
+ var value = msg.getAttributesMap();
1564
+ reader.readMessage(value, function(message, reader) {
1565
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
1566
+ });
1567
+ break;
1568
+ case 5:
1569
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1570
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1571
+ msg.setStartTime(value);
1572
+ break;
1573
+ default:
1574
+ reader.skipField();
1575
+ break;
1576
+ }
1577
+ }
1578
+ return msg;
1579
+ };
1580
+
1581
+
1582
+ /**
1583
+ * Serializes the message to binary data (in protobuf wire format).
1584
+ * @return {!Uint8Array}
1585
+ */
1586
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.serializeBinary = function() {
1587
+ var writer = new jspb.BinaryWriter();
1588
+ proto.gateway.parallax.v1.StartSpanRequest.serializeBinaryToWriter(this, writer);
1589
+ return writer.getResultBuffer();
1590
+ };
1591
+
1592
+
1593
+ /**
1594
+ * Serializes the given message to binary data (in protobuf wire
1595
+ * format), writing to the given BinaryWriter.
1596
+ * @param {!proto.gateway.parallax.v1.StartSpanRequest} message
1597
+ * @param {!jspb.BinaryWriter} writer
1598
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1599
+ */
1600
+ proto.gateway.parallax.v1.StartSpanRequest.serializeBinaryToWriter = function(message, writer) {
1601
+ var f = undefined;
1602
+ f = message.getName();
1603
+ if (f.length > 0) {
1604
+ writer.writeString(
1605
+ 1,
1606
+ f
1607
+ );
1608
+ }
1609
+ f = message.getTraceId();
1610
+ if (f.length > 0) {
1611
+ writer.writeString(
1612
+ 2,
1613
+ f
1614
+ );
1615
+ }
1616
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
1617
+ if (f != null) {
1618
+ writer.writeString(
1619
+ 3,
1620
+ f
1621
+ );
1622
+ }
1623
+ f = message.getAttributesMap(true);
1624
+ if (f && f.getLength() > 0) {
1625
+ f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
1626
+ }
1627
+ f = message.getStartTime();
1628
+ if (f != null) {
1629
+ writer.writeMessage(
1630
+ 5,
1631
+ f,
1632
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1633
+ );
1634
+ }
1635
+ };
1636
+
1637
+
1638
+ /**
1639
+ * optional string name = 1;
1640
+ * @return {string}
1641
+ */
1642
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.getName = function() {
1643
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1644
+ };
1645
+
1646
+
1647
+ /**
1648
+ * @param {string} value
1649
+ * @return {!proto.gateway.parallax.v1.StartSpanRequest} returns this
1650
+ */
1651
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.setName = function(value) {
1652
+ return jspb.Message.setProto3StringField(this, 1, value);
1653
+ };
1654
+
1655
+
1656
+ /**
1657
+ * optional string trace_id = 2;
1658
+ * @return {string}
1659
+ */
1660
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.getTraceId = function() {
1661
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1662
+ };
1663
+
1664
+
1665
+ /**
1666
+ * @param {string} value
1667
+ * @return {!proto.gateway.parallax.v1.StartSpanRequest} returns this
1668
+ */
1669
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.setTraceId = function(value) {
1670
+ return jspb.Message.setProto3StringField(this, 2, value);
1671
+ };
1672
+
1673
+
1674
+ /**
1675
+ * optional string parent_span_id = 3;
1676
+ * @return {string}
1677
+ */
1678
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.getParentSpanId = function() {
1679
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1680
+ };
1681
+
1682
+
1683
+ /**
1684
+ * @param {string} value
1685
+ * @return {!proto.gateway.parallax.v1.StartSpanRequest} returns this
1686
+ */
1687
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.setParentSpanId = function(value) {
1688
+ return jspb.Message.setField(this, 3, value);
1689
+ };
1690
+
1691
+
1692
+ /**
1693
+ * Clears the field making it undefined.
1694
+ * @return {!proto.gateway.parallax.v1.StartSpanRequest} returns this
1695
+ */
1696
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.clearParentSpanId = function() {
1697
+ return jspb.Message.setField(this, 3, undefined);
1698
+ };
1699
+
1700
+
1701
+ /**
1702
+ * Returns whether this field is set.
1703
+ * @return {boolean}
1704
+ */
1705
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.hasParentSpanId = function() {
1706
+ return jspb.Message.getField(this, 3) != null;
1707
+ };
1708
+
1709
+
1710
+ /**
1711
+ * map<string, string> attributes = 4;
1712
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
1713
+ * empty, instead returning `undefined`
1714
+ * @return {!jspb.Map<string,string>}
1715
+ */
1716
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.getAttributesMap = function(opt_noLazyCreate) {
1717
+ return /** @type {!jspb.Map<string,string>} */ (
1718
+ jspb.Message.getMapField(this, 4, opt_noLazyCreate,
1719
+ null));
1720
+ };
1721
+
1722
+
1723
+ /**
1724
+ * Clears values from the map. The map will be non-null.
1725
+ * @return {!proto.gateway.parallax.v1.StartSpanRequest} returns this
1726
+ */
1727
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.clearAttributesMap = function() {
1728
+ this.getAttributesMap().clear();
1729
+ return this;
1730
+ };
1731
+
1732
+
1733
+ /**
1734
+ * optional google.protobuf.Timestamp start_time = 5;
1735
+ * @return {?proto.google.protobuf.Timestamp}
1736
+ */
1737
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.getStartTime = function() {
1738
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1739
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
1740
+ };
1741
+
1742
+
1743
+ /**
1744
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1745
+ * @return {!proto.gateway.parallax.v1.StartSpanRequest} returns this
1746
+ */
1747
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.setStartTime = function(value) {
1748
+ return jspb.Message.setWrapperField(this, 5, value);
1749
+ };
1750
+
1751
+
1752
+ /**
1753
+ * Clears the message field making it undefined.
1754
+ * @return {!proto.gateway.parallax.v1.StartSpanRequest} returns this
1755
+ */
1756
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.clearStartTime = function() {
1757
+ return this.setStartTime(undefined);
1758
+ };
1759
+
1760
+
1761
+ /**
1762
+ * Returns whether this field is set.
1763
+ * @return {boolean}
1764
+ */
1765
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.hasStartTime = function() {
1766
+ return jspb.Message.getField(this, 5) != null;
1767
+ };
1768
+
1769
+
1770
+
1771
+
1772
+
1773
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1774
+ /**
1775
+ * Creates an object representation of this proto.
1776
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1777
+ * Optional fields that are not set will be set to undefined.
1778
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1779
+ * For the list of reserved names please see:
1780
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1781
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1782
+ * JSPB instance for transitional soy proto support:
1783
+ * http://goto/soy-param-migration
1784
+ * @return {!Object}
1785
+ */
1786
+ proto.gateway.parallax.v1.StartSpanResponse.prototype.toObject = function(opt_includeInstance) {
1787
+ return proto.gateway.parallax.v1.StartSpanResponse.toObject(opt_includeInstance, this);
1788
+ };
1789
+
1790
+
1791
+ /**
1792
+ * Static version of the {@see toObject} method.
1793
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1794
+ * the JSPB instance for transitional soy proto support:
1795
+ * http://goto/soy-param-migration
1796
+ * @param {!proto.gateway.parallax.v1.StartSpanResponse} msg The msg instance to transform.
1797
+ * @return {!Object}
1798
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1799
+ */
1800
+ proto.gateway.parallax.v1.StartSpanResponse.toObject = function(includeInstance, msg) {
1801
+ var f, obj = {
1802
+ status: (f = msg.getStatus()) && proto_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
1803
+ spanId: jspb.Message.getFieldWithDefault(msg, 2, "")
1804
+ };
1805
+
1806
+ if (includeInstance) {
1807
+ obj.$jspbMessageInstance = msg;
1808
+ }
1809
+ return obj;
1810
+ };
1811
+ }
1812
+
1813
+
1814
+ /**
1815
+ * Deserializes binary data (in protobuf wire format).
1816
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1817
+ * @return {!proto.gateway.parallax.v1.StartSpanResponse}
1818
+ */
1819
+ proto.gateway.parallax.v1.StartSpanResponse.deserializeBinary = function(bytes) {
1820
+ var reader = new jspb.BinaryReader(bytes);
1821
+ var msg = new proto.gateway.parallax.v1.StartSpanResponse;
1822
+ return proto.gateway.parallax.v1.StartSpanResponse.deserializeBinaryFromReader(msg, reader);
1823
+ };
1824
+
1825
+
1826
+ /**
1827
+ * Deserializes binary data (in protobuf wire format) from the
1828
+ * given reader into the given message object.
1829
+ * @param {!proto.gateway.parallax.v1.StartSpanResponse} msg The message object to deserialize into.
1830
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1831
+ * @return {!proto.gateway.parallax.v1.StartSpanResponse}
1832
+ */
1833
+ proto.gateway.parallax.v1.StartSpanResponse.deserializeBinaryFromReader = function(msg, reader) {
1834
+ while (reader.nextField()) {
1835
+ if (reader.isEndGroup()) {
1836
+ break;
1837
+ }
1838
+ var field = reader.getFieldNumber();
1839
+ switch (field) {
1840
+ case 1:
1841
+ var value = new proto_common_v1_status_pb.ResponseStatus;
1842
+ reader.readMessage(value,proto_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
1843
+ msg.setStatus(value);
1844
+ break;
1845
+ case 2:
1846
+ var value = /** @type {string} */ (reader.readString());
1847
+ msg.setSpanId(value);
1848
+ break;
1849
+ default:
1850
+ reader.skipField();
1851
+ break;
1852
+ }
1853
+ }
1854
+ return msg;
1855
+ };
1856
+
1857
+
1858
+ /**
1859
+ * Serializes the message to binary data (in protobuf wire format).
1860
+ * @return {!Uint8Array}
1861
+ */
1862
+ proto.gateway.parallax.v1.StartSpanResponse.prototype.serializeBinary = function() {
1863
+ var writer = new jspb.BinaryWriter();
1864
+ proto.gateway.parallax.v1.StartSpanResponse.serializeBinaryToWriter(this, writer);
1865
+ return writer.getResultBuffer();
1866
+ };
1867
+
1868
+
1869
+ /**
1870
+ * Serializes the given message to binary data (in protobuf wire
1871
+ * format), writing to the given BinaryWriter.
1872
+ * @param {!proto.gateway.parallax.v1.StartSpanResponse} message
1873
+ * @param {!jspb.BinaryWriter} writer
1874
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1875
+ */
1876
+ proto.gateway.parallax.v1.StartSpanResponse.serializeBinaryToWriter = function(message, writer) {
1877
+ var f = undefined;
1878
+ f = message.getStatus();
1879
+ if (f != null) {
1880
+ writer.writeMessage(
1881
+ 1,
1882
+ f,
1883
+ proto_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
1884
+ );
1885
+ }
1886
+ f = message.getSpanId();
1887
+ if (f.length > 0) {
1888
+ writer.writeString(
1889
+ 2,
1890
+ f
1891
+ );
1892
+ }
1893
+ };
1894
+
1895
+
1896
+ /**
1897
+ * optional common.v1.ResponseStatus status = 1;
1898
+ * @return {?proto.common.v1.ResponseStatus}
1899
+ */
1900
+ proto.gateway.parallax.v1.StartSpanResponse.prototype.getStatus = function() {
1901
+ return /** @type{?proto.common.v1.ResponseStatus} */ (
1902
+ jspb.Message.getWrapperField(this, proto_common_v1_status_pb.ResponseStatus, 1));
1903
+ };
1904
+
1905
+
1906
+ /**
1907
+ * @param {?proto.common.v1.ResponseStatus|undefined} value
1908
+ * @return {!proto.gateway.parallax.v1.StartSpanResponse} returns this
1909
+ */
1910
+ proto.gateway.parallax.v1.StartSpanResponse.prototype.setStatus = function(value) {
1911
+ return jspb.Message.setWrapperField(this, 1, value);
1912
+ };
1913
+
1914
+
1915
+ /**
1916
+ * Clears the message field making it undefined.
1917
+ * @return {!proto.gateway.parallax.v1.StartSpanResponse} returns this
1918
+ */
1919
+ proto.gateway.parallax.v1.StartSpanResponse.prototype.clearStatus = function() {
1920
+ return this.setStatus(undefined);
1921
+ };
1922
+
1923
+
1924
+ /**
1925
+ * Returns whether this field is set.
1926
+ * @return {boolean}
1927
+ */
1928
+ proto.gateway.parallax.v1.StartSpanResponse.prototype.hasStatus = function() {
1929
+ return jspb.Message.getField(this, 1) != null;
1930
+ };
1931
+
1932
+
1933
+ /**
1934
+ * optional string span_id = 2;
1935
+ * @return {string}
1936
+ */
1937
+ proto.gateway.parallax.v1.StartSpanResponse.prototype.getSpanId = function() {
1938
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1939
+ };
1940
+
1941
+
1942
+ /**
1943
+ * @param {string} value
1944
+ * @return {!proto.gateway.parallax.v1.StartSpanResponse} returns this
1945
+ */
1946
+ proto.gateway.parallax.v1.StartSpanResponse.prototype.setSpanId = function(value) {
1947
+ return jspb.Message.setProto3StringField(this, 2, value);
1948
+ };
1949
+
1950
+
1951
+
1952
+
1953
+
1954
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1955
+ /**
1956
+ * Creates an object representation of this proto.
1957
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1958
+ * Optional fields that are not set will be set to undefined.
1959
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1960
+ * For the list of reserved names please see:
1961
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1962
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1963
+ * JSPB instance for transitional soy proto support:
1964
+ * http://goto/soy-param-migration
1965
+ * @return {!Object}
1966
+ */
1967
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.toObject = function(opt_includeInstance) {
1968
+ return proto.gateway.parallax.v1.FinishSpanRequest.toObject(opt_includeInstance, this);
1969
+ };
1970
+
1971
+
1972
+ /**
1973
+ * Static version of the {@see toObject} method.
1974
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1975
+ * the JSPB instance for transitional soy proto support:
1976
+ * http://goto/soy-param-migration
1977
+ * @param {!proto.gateway.parallax.v1.FinishSpanRequest} msg The msg instance to transform.
1978
+ * @return {!Object}
1979
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1980
+ */
1981
+ proto.gateway.parallax.v1.FinishSpanRequest.toObject = function(includeInstance, msg) {
1982
+ var f, obj = {
1983
+ traceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1984
+ spanId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1985
+ endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1986
+ status: (f = msg.getStatus()) && proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.toObject(includeInstance, f)
1987
+ };
1988
+
1989
+ if (includeInstance) {
1990
+ obj.$jspbMessageInstance = msg;
1991
+ }
1992
+ return obj;
1993
+ };
1994
+ }
1995
+
1996
+
1997
+ /**
1998
+ * Deserializes binary data (in protobuf wire format).
1999
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2000
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest}
2001
+ */
2002
+ proto.gateway.parallax.v1.FinishSpanRequest.deserializeBinary = function(bytes) {
2003
+ var reader = new jspb.BinaryReader(bytes);
2004
+ var msg = new proto.gateway.parallax.v1.FinishSpanRequest;
2005
+ return proto.gateway.parallax.v1.FinishSpanRequest.deserializeBinaryFromReader(msg, reader);
2006
+ };
2007
+
2008
+
2009
+ /**
2010
+ * Deserializes binary data (in protobuf wire format) from the
2011
+ * given reader into the given message object.
2012
+ * @param {!proto.gateway.parallax.v1.FinishSpanRequest} msg The message object to deserialize into.
2013
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2014
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest}
2015
+ */
2016
+ proto.gateway.parallax.v1.FinishSpanRequest.deserializeBinaryFromReader = function(msg, reader) {
2017
+ while (reader.nextField()) {
2018
+ if (reader.isEndGroup()) {
2019
+ break;
2020
+ }
2021
+ var field = reader.getFieldNumber();
2022
+ switch (field) {
2023
+ case 1:
2024
+ var value = /** @type {string} */ (reader.readString());
2025
+ msg.setTraceId(value);
2026
+ break;
2027
+ case 2:
2028
+ var value = /** @type {string} */ (reader.readString());
2029
+ msg.setSpanId(value);
2030
+ break;
2031
+ case 3:
2032
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2033
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2034
+ msg.setEndTime(value);
2035
+ break;
2036
+ case 4:
2037
+ var value = new proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus;
2038
+ reader.readMessage(value,proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.deserializeBinaryFromReader);
2039
+ msg.setStatus(value);
2040
+ break;
2041
+ default:
2042
+ reader.skipField();
2043
+ break;
2044
+ }
2045
+ }
2046
+ return msg;
2047
+ };
2048
+
2049
+
2050
+ /**
2051
+ * Serializes the message to binary data (in protobuf wire format).
2052
+ * @return {!Uint8Array}
2053
+ */
2054
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.serializeBinary = function() {
2055
+ var writer = new jspb.BinaryWriter();
2056
+ proto.gateway.parallax.v1.FinishSpanRequest.serializeBinaryToWriter(this, writer);
2057
+ return writer.getResultBuffer();
2058
+ };
2059
+
2060
+
2061
+ /**
2062
+ * Serializes the given message to binary data (in protobuf wire
2063
+ * format), writing to the given BinaryWriter.
2064
+ * @param {!proto.gateway.parallax.v1.FinishSpanRequest} message
2065
+ * @param {!jspb.BinaryWriter} writer
2066
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2067
+ */
2068
+ proto.gateway.parallax.v1.FinishSpanRequest.serializeBinaryToWriter = function(message, writer) {
2069
+ var f = undefined;
2070
+ f = message.getTraceId();
2071
+ if (f.length > 0) {
2072
+ writer.writeString(
2073
+ 1,
2074
+ f
2075
+ );
2076
+ }
2077
+ f = message.getSpanId();
2078
+ if (f.length > 0) {
2079
+ writer.writeString(
2080
+ 2,
2081
+ f
2082
+ );
2083
+ }
2084
+ f = message.getEndTime();
2085
+ if (f != null) {
2086
+ writer.writeMessage(
2087
+ 3,
2088
+ f,
2089
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2090
+ );
2091
+ }
2092
+ f = message.getStatus();
2093
+ if (f != null) {
2094
+ writer.writeMessage(
2095
+ 4,
2096
+ f,
2097
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.serializeBinaryToWriter
2098
+ );
2099
+ }
2100
+ };
2101
+
2102
+
2103
+
2104
+
2105
+
2106
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2107
+ /**
2108
+ * Creates an object representation of this proto.
2109
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2110
+ * Optional fields that are not set will be set to undefined.
2111
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2112
+ * For the list of reserved names please see:
2113
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2114
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2115
+ * JSPB instance for transitional soy proto support:
2116
+ * http://goto/soy-param-migration
2117
+ * @return {!Object}
2118
+ */
2119
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.toObject = function(opt_includeInstance) {
2120
+ return proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.toObject(opt_includeInstance, this);
2121
+ };
2122
+
2123
+
2124
+ /**
2125
+ * Static version of the {@see toObject} method.
2126
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2127
+ * the JSPB instance for transitional soy proto support:
2128
+ * http://goto/soy-param-migration
2129
+ * @param {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus} msg The msg instance to transform.
2130
+ * @return {!Object}
2131
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2132
+ */
2133
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.toObject = function(includeInstance, msg) {
2134
+ var f, obj = {
2135
+ code: jspb.Message.getFieldWithDefault(msg, 1, 0),
2136
+ message: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
2137
+ };
2138
+
2139
+ if (includeInstance) {
2140
+ obj.$jspbMessageInstance = msg;
2141
+ }
2142
+ return obj;
2143
+ };
2144
+ }
2145
+
2146
+
2147
+ /**
2148
+ * Deserializes binary data (in protobuf wire format).
2149
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2150
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus}
2151
+ */
2152
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.deserializeBinary = function(bytes) {
2153
+ var reader = new jspb.BinaryReader(bytes);
2154
+ var msg = new proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus;
2155
+ return proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.deserializeBinaryFromReader(msg, reader);
2156
+ };
2157
+
2158
+
2159
+ /**
2160
+ * Deserializes binary data (in protobuf wire format) from the
2161
+ * given reader into the given message object.
2162
+ * @param {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus} msg The message object to deserialize into.
2163
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2164
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus}
2165
+ */
2166
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.deserializeBinaryFromReader = function(msg, reader) {
2167
+ while (reader.nextField()) {
2168
+ if (reader.isEndGroup()) {
2169
+ break;
2170
+ }
2171
+ var field = reader.getFieldNumber();
2172
+ switch (field) {
2173
+ case 1:
2174
+ var value = /** @type {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.StatusCode} */ (reader.readEnum());
2175
+ msg.setCode(value);
2176
+ break;
2177
+ case 2:
2178
+ var value = /** @type {string} */ (reader.readString());
2179
+ msg.setMessage(value);
2180
+ break;
2181
+ default:
2182
+ reader.skipField();
2183
+ break;
2184
+ }
2185
+ }
2186
+ return msg;
2187
+ };
2188
+
2189
+
2190
+ /**
2191
+ * Serializes the message to binary data (in protobuf wire format).
2192
+ * @return {!Uint8Array}
2193
+ */
2194
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.serializeBinary = function() {
2195
+ var writer = new jspb.BinaryWriter();
2196
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.serializeBinaryToWriter(this, writer);
2197
+ return writer.getResultBuffer();
2198
+ };
2199
+
2200
+
2201
+ /**
2202
+ * Serializes the given message to binary data (in protobuf wire
2203
+ * format), writing to the given BinaryWriter.
2204
+ * @param {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus} message
2205
+ * @param {!jspb.BinaryWriter} writer
2206
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2207
+ */
2208
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.serializeBinaryToWriter = function(message, writer) {
2209
+ var f = undefined;
2210
+ f = message.getCode();
2211
+ if (f !== 0.0) {
2212
+ writer.writeEnum(
2213
+ 1,
2214
+ f
2215
+ );
2216
+ }
2217
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
2218
+ if (f != null) {
2219
+ writer.writeString(
2220
+ 2,
2221
+ f
2222
+ );
2223
+ }
2224
+ };
2225
+
2226
+
2227
+ /**
2228
+ * @enum {number}
2229
+ */
2230
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.StatusCode = {
2231
+ STATUS_CODE_UNSPECIFIED: 0,
2232
+ STATUS_CODE_OK: 1,
2233
+ STATUS_CODE_ERROR: 2
2234
+ };
2235
+
2236
+ /**
2237
+ * optional StatusCode code = 1;
2238
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.StatusCode}
2239
+ */
2240
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.getCode = function() {
2241
+ return /** @type {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.StatusCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2242
+ };
2243
+
2244
+
2245
+ /**
2246
+ * @param {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.StatusCode} value
2247
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus} returns this
2248
+ */
2249
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.setCode = function(value) {
2250
+ return jspb.Message.setProto3EnumField(this, 1, value);
2251
+ };
2252
+
2253
+
2254
+ /**
2255
+ * optional string message = 2;
2256
+ * @return {string}
2257
+ */
2258
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.getMessage = function() {
2259
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2260
+ };
2261
+
2262
+
2263
+ /**
2264
+ * @param {string} value
2265
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus} returns this
2266
+ */
2267
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.setMessage = function(value) {
2268
+ return jspb.Message.setField(this, 2, value);
2269
+ };
2270
+
2271
+
2272
+ /**
2273
+ * Clears the field making it undefined.
2274
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus} returns this
2275
+ */
2276
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.clearMessage = function() {
2277
+ return jspb.Message.setField(this, 2, undefined);
2278
+ };
2279
+
2280
+
2281
+ /**
2282
+ * Returns whether this field is set.
2283
+ * @return {boolean}
2284
+ */
2285
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.hasMessage = function() {
2286
+ return jspb.Message.getField(this, 2) != null;
2287
+ };
2288
+
2289
+
2290
+ /**
2291
+ * optional string trace_id = 1;
2292
+ * @return {string}
2293
+ */
2294
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.getTraceId = function() {
2295
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2296
+ };
2297
+
2298
+
2299
+ /**
2300
+ * @param {string} value
2301
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest} returns this
2302
+ */
2303
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.setTraceId = function(value) {
2304
+ return jspb.Message.setProto3StringField(this, 1, value);
2305
+ };
2306
+
2307
+
2308
+ /**
2309
+ * optional string span_id = 2;
2310
+ * @return {string}
2311
+ */
2312
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.getSpanId = function() {
2313
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2314
+ };
2315
+
2316
+
2317
+ /**
2318
+ * @param {string} value
2319
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest} returns this
2320
+ */
2321
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.setSpanId = function(value) {
2322
+ return jspb.Message.setProto3StringField(this, 2, value);
2323
+ };
2324
+
2325
+
2326
+ /**
2327
+ * optional google.protobuf.Timestamp end_time = 3;
2328
+ * @return {?proto.google.protobuf.Timestamp}
2329
+ */
2330
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.getEndTime = function() {
2331
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2332
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
2333
+ };
2334
+
2335
+
2336
+ /**
2337
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2338
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest} returns this
2339
+ */
2340
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.setEndTime = function(value) {
2341
+ return jspb.Message.setWrapperField(this, 3, value);
2342
+ };
2343
+
2344
+
2345
+ /**
2346
+ * Clears the message field making it undefined.
2347
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest} returns this
2348
+ */
2349
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.clearEndTime = function() {
2350
+ return this.setEndTime(undefined);
2351
+ };
2352
+
2353
+
2354
+ /**
2355
+ * Returns whether this field is set.
2356
+ * @return {boolean}
2357
+ */
2358
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.hasEndTime = function() {
2359
+ return jspb.Message.getField(this, 3) != null;
2360
+ };
2361
+
2362
+
2363
+ /**
2364
+ * optional SpanStatus status = 4;
2365
+ * @return {?proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus}
2366
+ */
2367
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.getStatus = function() {
2368
+ return /** @type{?proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus} */ (
2369
+ jspb.Message.getWrapperField(this, proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus, 4));
2370
+ };
2371
+
2372
+
2373
+ /**
2374
+ * @param {?proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus|undefined} value
2375
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest} returns this
2376
+ */
2377
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.setStatus = function(value) {
2378
+ return jspb.Message.setWrapperField(this, 4, value);
2379
+ };
2380
+
2381
+
2382
+ /**
2383
+ * Clears the message field making it undefined.
2384
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest} returns this
2385
+ */
2386
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.clearStatus = function() {
2387
+ return this.setStatus(undefined);
2388
+ };
2389
+
2390
+
2391
+ /**
2392
+ * Returns whether this field is set.
2393
+ * @return {boolean}
2394
+ */
2395
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.hasStatus = function() {
2396
+ return jspb.Message.getField(this, 4) != null;
2397
+ };
2398
+
2399
+
2400
+
2401
+
2402
+
2403
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2404
+ /**
2405
+ * Creates an object representation of this proto.
2406
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2407
+ * Optional fields that are not set will be set to undefined.
2408
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2409
+ * For the list of reserved names please see:
2410
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2411
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2412
+ * JSPB instance for transitional soy proto support:
2413
+ * http://goto/soy-param-migration
2414
+ * @return {!Object}
2415
+ */
2416
+ proto.gateway.parallax.v1.FinishSpanResponse.prototype.toObject = function(opt_includeInstance) {
2417
+ return proto.gateway.parallax.v1.FinishSpanResponse.toObject(opt_includeInstance, this);
2418
+ };
2419
+
2420
+
2421
+ /**
2422
+ * Static version of the {@see toObject} method.
2423
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2424
+ * the JSPB instance for transitional soy proto support:
2425
+ * http://goto/soy-param-migration
2426
+ * @param {!proto.gateway.parallax.v1.FinishSpanResponse} msg The msg instance to transform.
2427
+ * @return {!Object}
2428
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2429
+ */
2430
+ proto.gateway.parallax.v1.FinishSpanResponse.toObject = function(includeInstance, msg) {
2431
+ var f, obj = {
2432
+ status: (f = msg.getStatus()) && proto_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f)
2433
+ };
2434
+
2435
+ if (includeInstance) {
2436
+ obj.$jspbMessageInstance = msg;
2437
+ }
2438
+ return obj;
2439
+ };
2440
+ }
2441
+
2442
+
2443
+ /**
2444
+ * Deserializes binary data (in protobuf wire format).
2445
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2446
+ * @return {!proto.gateway.parallax.v1.FinishSpanResponse}
2447
+ */
2448
+ proto.gateway.parallax.v1.FinishSpanResponse.deserializeBinary = function(bytes) {
2449
+ var reader = new jspb.BinaryReader(bytes);
2450
+ var msg = new proto.gateway.parallax.v1.FinishSpanResponse;
2451
+ return proto.gateway.parallax.v1.FinishSpanResponse.deserializeBinaryFromReader(msg, reader);
2452
+ };
2453
+
2454
+
2455
+ /**
2456
+ * Deserializes binary data (in protobuf wire format) from the
2457
+ * given reader into the given message object.
2458
+ * @param {!proto.gateway.parallax.v1.FinishSpanResponse} msg The message object to deserialize into.
2459
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2460
+ * @return {!proto.gateway.parallax.v1.FinishSpanResponse}
2461
+ */
2462
+ proto.gateway.parallax.v1.FinishSpanResponse.deserializeBinaryFromReader = function(msg, reader) {
2463
+ while (reader.nextField()) {
2464
+ if (reader.isEndGroup()) {
2465
+ break;
2466
+ }
2467
+ var field = reader.getFieldNumber();
2468
+ switch (field) {
2469
+ case 1:
2470
+ var value = new proto_common_v1_status_pb.ResponseStatus;
2471
+ reader.readMessage(value,proto_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
2472
+ msg.setStatus(value);
2473
+ break;
2474
+ default:
2475
+ reader.skipField();
2476
+ break;
2477
+ }
2478
+ }
2479
+ return msg;
2480
+ };
2481
+
2482
+
2483
+ /**
2484
+ * Serializes the message to binary data (in protobuf wire format).
2485
+ * @return {!Uint8Array}
2486
+ */
2487
+ proto.gateway.parallax.v1.FinishSpanResponse.prototype.serializeBinary = function() {
2488
+ var writer = new jspb.BinaryWriter();
2489
+ proto.gateway.parallax.v1.FinishSpanResponse.serializeBinaryToWriter(this, writer);
2490
+ return writer.getResultBuffer();
2491
+ };
2492
+
2493
+
2494
+ /**
2495
+ * Serializes the given message to binary data (in protobuf wire
2496
+ * format), writing to the given BinaryWriter.
2497
+ * @param {!proto.gateway.parallax.v1.FinishSpanResponse} message
2498
+ * @param {!jspb.BinaryWriter} writer
2499
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2500
+ */
2501
+ proto.gateway.parallax.v1.FinishSpanResponse.serializeBinaryToWriter = function(message, writer) {
2502
+ var f = undefined;
2503
+ f = message.getStatus();
2504
+ if (f != null) {
2505
+ writer.writeMessage(
2506
+ 1,
2507
+ f,
2508
+ proto_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
2509
+ );
2510
+ }
2511
+ };
2512
+
2513
+
2514
+ /**
2515
+ * optional common.v1.ResponseStatus status = 1;
2516
+ * @return {?proto.common.v1.ResponseStatus}
2517
+ */
2518
+ proto.gateway.parallax.v1.FinishSpanResponse.prototype.getStatus = function() {
2519
+ return /** @type{?proto.common.v1.ResponseStatus} */ (
2520
+ jspb.Message.getWrapperField(this, proto_common_v1_status_pb.ResponseStatus, 1));
2521
+ };
2522
+
2523
+
2524
+ /**
2525
+ * @param {?proto.common.v1.ResponseStatus|undefined} value
2526
+ * @return {!proto.gateway.parallax.v1.FinishSpanResponse} returns this
2527
+ */
2528
+ proto.gateway.parallax.v1.FinishSpanResponse.prototype.setStatus = function(value) {
2529
+ return jspb.Message.setWrapperField(this, 1, value);
2530
+ };
2531
+
2532
+
2533
+ /**
2534
+ * Clears the message field making it undefined.
2535
+ * @return {!proto.gateway.parallax.v1.FinishSpanResponse} returns this
2536
+ */
2537
+ proto.gateway.parallax.v1.FinishSpanResponse.prototype.clearStatus = function() {
2538
+ return this.setStatus(undefined);
2539
+ };
2540
+
2541
+
2542
+ /**
2543
+ * Returns whether this field is set.
2544
+ * @return {boolean}
2545
+ */
2546
+ proto.gateway.parallax.v1.FinishSpanResponse.prototype.hasStatus = function() {
2547
+ return jspb.Message.getField(this, 1) != null;
2548
+ };
2549
+
2550
+
2551
+
2552
+
2553
+
2554
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2555
+ /**
2556
+ * Creates an object representation of this proto.
2557
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2558
+ * Optional fields that are not set will be set to undefined.
2559
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2560
+ * For the list of reserved names please see:
2561
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2562
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2563
+ * JSPB instance for transitional soy proto support:
2564
+ * http://goto/soy-param-migration
2565
+ * @return {!Object}
2566
+ */
2567
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.toObject = function(opt_includeInstance) {
2568
+ return proto.gateway.parallax.v1.AddSpanEventRequest.toObject(opt_includeInstance, this);
2569
+ };
2570
+
2571
+
2572
+ /**
2573
+ * Static version of the {@see toObject} method.
2574
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2575
+ * the JSPB instance for transitional soy proto support:
2576
+ * http://goto/soy-param-migration
2577
+ * @param {!proto.gateway.parallax.v1.AddSpanEventRequest} msg The msg instance to transform.
2578
+ * @return {!Object}
2579
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2580
+ */
2581
+ proto.gateway.parallax.v1.AddSpanEventRequest.toObject = function(includeInstance, msg) {
2582
+ var f, obj = {
2583
+ traceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2584
+ spanId: jspb.Message.getFieldWithDefault(msg, 2, ""),
2585
+ eventName: jspb.Message.getFieldWithDefault(msg, 3, ""),
2586
+ attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : [],
2587
+ timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
2588
+ };
2589
+
2590
+ if (includeInstance) {
2591
+ obj.$jspbMessageInstance = msg;
2592
+ }
2593
+ return obj;
2594
+ };
2595
+ }
2596
+
2597
+
2598
+ /**
2599
+ * Deserializes binary data (in protobuf wire format).
2600
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2601
+ * @return {!proto.gateway.parallax.v1.AddSpanEventRequest}
2602
+ */
2603
+ proto.gateway.parallax.v1.AddSpanEventRequest.deserializeBinary = function(bytes) {
2604
+ var reader = new jspb.BinaryReader(bytes);
2605
+ var msg = new proto.gateway.parallax.v1.AddSpanEventRequest;
2606
+ return proto.gateway.parallax.v1.AddSpanEventRequest.deserializeBinaryFromReader(msg, reader);
2607
+ };
2608
+
2609
+
2610
+ /**
2611
+ * Deserializes binary data (in protobuf wire format) from the
2612
+ * given reader into the given message object.
2613
+ * @param {!proto.gateway.parallax.v1.AddSpanEventRequest} msg The message object to deserialize into.
2614
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2615
+ * @return {!proto.gateway.parallax.v1.AddSpanEventRequest}
2616
+ */
2617
+ proto.gateway.parallax.v1.AddSpanEventRequest.deserializeBinaryFromReader = function(msg, reader) {
2618
+ while (reader.nextField()) {
2619
+ if (reader.isEndGroup()) {
2620
+ break;
2621
+ }
2622
+ var field = reader.getFieldNumber();
2623
+ switch (field) {
2624
+ case 1:
2625
+ var value = /** @type {string} */ (reader.readString());
2626
+ msg.setTraceId(value);
2627
+ break;
2628
+ case 2:
2629
+ var value = /** @type {string} */ (reader.readString());
2630
+ msg.setSpanId(value);
2631
+ break;
2632
+ case 3:
2633
+ var value = /** @type {string} */ (reader.readString());
2634
+ msg.setEventName(value);
2635
+ break;
2636
+ case 4:
2637
+ var value = msg.getAttributesMap();
2638
+ reader.readMessage(value, function(message, reader) {
2639
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
2640
+ });
2641
+ break;
2642
+ case 5:
2643
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2644
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2645
+ msg.setTimestamp(value);
2646
+ break;
2647
+ default:
2648
+ reader.skipField();
2649
+ break;
2650
+ }
2651
+ }
2652
+ return msg;
2653
+ };
2654
+
2655
+
2656
+ /**
2657
+ * Serializes the message to binary data (in protobuf wire format).
2658
+ * @return {!Uint8Array}
2659
+ */
2660
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.serializeBinary = function() {
2661
+ var writer = new jspb.BinaryWriter();
2662
+ proto.gateway.parallax.v1.AddSpanEventRequest.serializeBinaryToWriter(this, writer);
2663
+ return writer.getResultBuffer();
2664
+ };
2665
+
2666
+
2667
+ /**
2668
+ * Serializes the given message to binary data (in protobuf wire
2669
+ * format), writing to the given BinaryWriter.
2670
+ * @param {!proto.gateway.parallax.v1.AddSpanEventRequest} message
2671
+ * @param {!jspb.BinaryWriter} writer
2672
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2673
+ */
2674
+ proto.gateway.parallax.v1.AddSpanEventRequest.serializeBinaryToWriter = function(message, writer) {
2675
+ var f = undefined;
2676
+ f = message.getTraceId();
2677
+ if (f.length > 0) {
2678
+ writer.writeString(
2679
+ 1,
2680
+ f
2681
+ );
2682
+ }
2683
+ f = message.getSpanId();
2684
+ if (f.length > 0) {
2685
+ writer.writeString(
2686
+ 2,
2687
+ f
2688
+ );
2689
+ }
2690
+ f = message.getEventName();
2691
+ if (f.length > 0) {
2692
+ writer.writeString(
2693
+ 3,
2694
+ f
2695
+ );
2696
+ }
2697
+ f = message.getAttributesMap(true);
2698
+ if (f && f.getLength() > 0) {
2699
+ f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
2700
+ }
2701
+ f = message.getTimestamp();
2702
+ if (f != null) {
2703
+ writer.writeMessage(
2704
+ 5,
2705
+ f,
2706
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2707
+ );
2708
+ }
2709
+ };
2710
+
2711
+
2712
+ /**
2713
+ * optional string trace_id = 1;
2714
+ * @return {string}
2715
+ */
2716
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.getTraceId = function() {
2717
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2718
+ };
2719
+
2720
+
2721
+ /**
2722
+ * @param {string} value
2723
+ * @return {!proto.gateway.parallax.v1.AddSpanEventRequest} returns this
2724
+ */
2725
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.setTraceId = function(value) {
2726
+ return jspb.Message.setProto3StringField(this, 1, value);
2727
+ };
2728
+
2729
+
2730
+ /**
2731
+ * optional string span_id = 2;
2732
+ * @return {string}
2733
+ */
2734
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.getSpanId = function() {
2735
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2736
+ };
2737
+
2738
+
2739
+ /**
2740
+ * @param {string} value
2741
+ * @return {!proto.gateway.parallax.v1.AddSpanEventRequest} returns this
2742
+ */
2743
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.setSpanId = function(value) {
2744
+ return jspb.Message.setProto3StringField(this, 2, value);
2745
+ };
2746
+
2747
+
2748
+ /**
2749
+ * optional string event_name = 3;
2750
+ * @return {string}
2751
+ */
2752
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.getEventName = function() {
2753
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2754
+ };
2755
+
2756
+
2757
+ /**
2758
+ * @param {string} value
2759
+ * @return {!proto.gateway.parallax.v1.AddSpanEventRequest} returns this
2760
+ */
2761
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.setEventName = function(value) {
2762
+ return jspb.Message.setProto3StringField(this, 3, value);
2763
+ };
2764
+
2765
+
2766
+ /**
2767
+ * map<string, string> attributes = 4;
2768
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
2769
+ * empty, instead returning `undefined`
2770
+ * @return {!jspb.Map<string,string>}
2771
+ */
2772
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.getAttributesMap = function(opt_noLazyCreate) {
2773
+ return /** @type {!jspb.Map<string,string>} */ (
2774
+ jspb.Message.getMapField(this, 4, opt_noLazyCreate,
2775
+ null));
2776
+ };
2777
+
2778
+
2779
+ /**
2780
+ * Clears values from the map. The map will be non-null.
2781
+ * @return {!proto.gateway.parallax.v1.AddSpanEventRequest} returns this
2782
+ */
2783
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.clearAttributesMap = function() {
2784
+ this.getAttributesMap().clear();
2785
+ return this;
2786
+ };
2787
+
2788
+
2789
+ /**
2790
+ * optional google.protobuf.Timestamp timestamp = 5;
2791
+ * @return {?proto.google.protobuf.Timestamp}
2792
+ */
2793
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.getTimestamp = function() {
2794
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2795
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
2796
+ };
2797
+
2798
+
2799
+ /**
2800
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2801
+ * @return {!proto.gateway.parallax.v1.AddSpanEventRequest} returns this
2802
+ */
2803
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.setTimestamp = function(value) {
2804
+ return jspb.Message.setWrapperField(this, 5, value);
2805
+ };
2806
+
2807
+
2808
+ /**
2809
+ * Clears the message field making it undefined.
2810
+ * @return {!proto.gateway.parallax.v1.AddSpanEventRequest} returns this
2811
+ */
2812
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.clearTimestamp = function() {
2813
+ return this.setTimestamp(undefined);
2814
+ };
2815
+
2816
+
2817
+ /**
2818
+ * Returns whether this field is set.
2819
+ * @return {boolean}
2820
+ */
2821
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.hasTimestamp = function() {
2822
+ return jspb.Message.getField(this, 5) != null;
2823
+ };
2824
+
2825
+
2826
+
2827
+
2828
+
2829
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2830
+ /**
2831
+ * Creates an object representation of this proto.
2832
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2833
+ * Optional fields that are not set will be set to undefined.
2834
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2835
+ * For the list of reserved names please see:
2836
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2837
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2838
+ * JSPB instance for transitional soy proto support:
2839
+ * http://goto/soy-param-migration
2840
+ * @return {!Object}
2841
+ */
2842
+ proto.gateway.parallax.v1.AddSpanEventResponse.prototype.toObject = function(opt_includeInstance) {
2843
+ return proto.gateway.parallax.v1.AddSpanEventResponse.toObject(opt_includeInstance, this);
2844
+ };
2845
+
2846
+
2847
+ /**
2848
+ * Static version of the {@see toObject} method.
2849
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2850
+ * the JSPB instance for transitional soy proto support:
2851
+ * http://goto/soy-param-migration
2852
+ * @param {!proto.gateway.parallax.v1.AddSpanEventResponse} msg The msg instance to transform.
2853
+ * @return {!Object}
2854
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2855
+ */
2856
+ proto.gateway.parallax.v1.AddSpanEventResponse.toObject = function(includeInstance, msg) {
2857
+ var f, obj = {
2858
+ status: (f = msg.getStatus()) && proto_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f)
2859
+ };
2860
+
2861
+ if (includeInstance) {
2862
+ obj.$jspbMessageInstance = msg;
2863
+ }
2864
+ return obj;
2865
+ };
2866
+ }
2867
+
2868
+
2869
+ /**
2870
+ * Deserializes binary data (in protobuf wire format).
2871
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2872
+ * @return {!proto.gateway.parallax.v1.AddSpanEventResponse}
2873
+ */
2874
+ proto.gateway.parallax.v1.AddSpanEventResponse.deserializeBinary = function(bytes) {
2875
+ var reader = new jspb.BinaryReader(bytes);
2876
+ var msg = new proto.gateway.parallax.v1.AddSpanEventResponse;
2877
+ return proto.gateway.parallax.v1.AddSpanEventResponse.deserializeBinaryFromReader(msg, reader);
2878
+ };
2879
+
2880
+
2881
+ /**
2882
+ * Deserializes binary data (in protobuf wire format) from the
2883
+ * given reader into the given message object.
2884
+ * @param {!proto.gateway.parallax.v1.AddSpanEventResponse} msg The message object to deserialize into.
2885
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2886
+ * @return {!proto.gateway.parallax.v1.AddSpanEventResponse}
2887
+ */
2888
+ proto.gateway.parallax.v1.AddSpanEventResponse.deserializeBinaryFromReader = function(msg, reader) {
2889
+ while (reader.nextField()) {
2890
+ if (reader.isEndGroup()) {
2891
+ break;
2892
+ }
2893
+ var field = reader.getFieldNumber();
2894
+ switch (field) {
2895
+ case 1:
2896
+ var value = new proto_common_v1_status_pb.ResponseStatus;
2897
+ reader.readMessage(value,proto_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
2898
+ msg.setStatus(value);
2899
+ break;
2900
+ default:
2901
+ reader.skipField();
2902
+ break;
2903
+ }
2904
+ }
2905
+ return msg;
2906
+ };
2907
+
2908
+
2909
+ /**
2910
+ * Serializes the message to binary data (in protobuf wire format).
2911
+ * @return {!Uint8Array}
2912
+ */
2913
+ proto.gateway.parallax.v1.AddSpanEventResponse.prototype.serializeBinary = function() {
2914
+ var writer = new jspb.BinaryWriter();
2915
+ proto.gateway.parallax.v1.AddSpanEventResponse.serializeBinaryToWriter(this, writer);
2916
+ return writer.getResultBuffer();
2917
+ };
2918
+
2919
+
2920
+ /**
2921
+ * Serializes the given message to binary data (in protobuf wire
2922
+ * format), writing to the given BinaryWriter.
2923
+ * @param {!proto.gateway.parallax.v1.AddSpanEventResponse} message
2924
+ * @param {!jspb.BinaryWriter} writer
2925
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2926
+ */
2927
+ proto.gateway.parallax.v1.AddSpanEventResponse.serializeBinaryToWriter = function(message, writer) {
2928
+ var f = undefined;
2929
+ f = message.getStatus();
2930
+ if (f != null) {
2931
+ writer.writeMessage(
2932
+ 1,
2933
+ f,
2934
+ proto_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
2935
+ );
2936
+ }
2937
+ };
2938
+
2939
+
2940
+ /**
2941
+ * optional common.v1.ResponseStatus status = 1;
2942
+ * @return {?proto.common.v1.ResponseStatus}
2943
+ */
2944
+ proto.gateway.parallax.v1.AddSpanEventResponse.prototype.getStatus = function() {
2945
+ return /** @type{?proto.common.v1.ResponseStatus} */ (
2946
+ jspb.Message.getWrapperField(this, proto_common_v1_status_pb.ResponseStatus, 1));
2947
+ };
2948
+
2949
+
2950
+ /**
2951
+ * @param {?proto.common.v1.ResponseStatus|undefined} value
2952
+ * @return {!proto.gateway.parallax.v1.AddSpanEventResponse} returns this
2953
+ */
2954
+ proto.gateway.parallax.v1.AddSpanEventResponse.prototype.setStatus = function(value) {
2955
+ return jspb.Message.setWrapperField(this, 1, value);
2956
+ };
2957
+
2958
+
2959
+ /**
2960
+ * Clears the message field making it undefined.
2961
+ * @return {!proto.gateway.parallax.v1.AddSpanEventResponse} returns this
2962
+ */
2963
+ proto.gateway.parallax.v1.AddSpanEventResponse.prototype.clearStatus = function() {
2964
+ return this.setStatus(undefined);
2965
+ };
2966
+
2967
+
2968
+ /**
2969
+ * Returns whether this field is set.
2970
+ * @return {boolean}
2971
+ */
2972
+ proto.gateway.parallax.v1.AddSpanEventResponse.prototype.hasStatus = function() {
2973
+ return jspb.Message.getField(this, 1) != null;
2974
+ };
2975
+
2976
+
2977
+
2978
+
2979
+
2980
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2981
+ /**
2982
+ * Creates an object representation of this proto.
2983
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2984
+ * Optional fields that are not set will be set to undefined.
2985
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2986
+ * For the list of reserved names please see:
2987
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2988
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2989
+ * JSPB instance for transitional soy proto support:
2990
+ * http://goto/soy-param-migration
2991
+ * @return {!Object}
2992
+ */
2993
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.toObject = function(opt_includeInstance) {
2994
+ return proto.gateway.parallax.v1.AddSpanErrorRequest.toObject(opt_includeInstance, this);
2995
+ };
2996
+
2997
+
2998
+ /**
2999
+ * Static version of the {@see toObject} method.
3000
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3001
+ * the JSPB instance for transitional soy proto support:
3002
+ * http://goto/soy-param-migration
3003
+ * @param {!proto.gateway.parallax.v1.AddSpanErrorRequest} msg The msg instance to transform.
3004
+ * @return {!Object}
3005
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3006
+ */
3007
+ proto.gateway.parallax.v1.AddSpanErrorRequest.toObject = function(includeInstance, msg) {
3008
+ var f, obj = {
3009
+ traceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3010
+ spanId: jspb.Message.getFieldWithDefault(msg, 2, ""),
3011
+ errorType: jspb.Message.getFieldWithDefault(msg, 3, ""),
3012
+ message: jspb.Message.getFieldWithDefault(msg, 4, ""),
3013
+ stackTrace: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
3014
+ attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : [],
3015
+ timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
3016
+ };
3017
+
3018
+ if (includeInstance) {
3019
+ obj.$jspbMessageInstance = msg;
3020
+ }
3021
+ return obj;
3022
+ };
3023
+ }
3024
+
3025
+
3026
+ /**
3027
+ * Deserializes binary data (in protobuf wire format).
3028
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3029
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorRequest}
3030
+ */
3031
+ proto.gateway.parallax.v1.AddSpanErrorRequest.deserializeBinary = function(bytes) {
3032
+ var reader = new jspb.BinaryReader(bytes);
3033
+ var msg = new proto.gateway.parallax.v1.AddSpanErrorRequest;
3034
+ return proto.gateway.parallax.v1.AddSpanErrorRequest.deserializeBinaryFromReader(msg, reader);
3035
+ };
3036
+
3037
+
3038
+ /**
3039
+ * Deserializes binary data (in protobuf wire format) from the
3040
+ * given reader into the given message object.
3041
+ * @param {!proto.gateway.parallax.v1.AddSpanErrorRequest} msg The message object to deserialize into.
3042
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3043
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorRequest}
3044
+ */
3045
+ proto.gateway.parallax.v1.AddSpanErrorRequest.deserializeBinaryFromReader = function(msg, reader) {
3046
+ while (reader.nextField()) {
3047
+ if (reader.isEndGroup()) {
3048
+ break;
3049
+ }
3050
+ var field = reader.getFieldNumber();
3051
+ switch (field) {
3052
+ case 1:
3053
+ var value = /** @type {string} */ (reader.readString());
3054
+ msg.setTraceId(value);
3055
+ break;
3056
+ case 2:
3057
+ var value = /** @type {string} */ (reader.readString());
3058
+ msg.setSpanId(value);
3059
+ break;
3060
+ case 3:
3061
+ var value = /** @type {string} */ (reader.readString());
3062
+ msg.setErrorType(value);
3063
+ break;
3064
+ case 4:
3065
+ var value = /** @type {string} */ (reader.readString());
3066
+ msg.setMessage(value);
3067
+ break;
3068
+ case 5:
3069
+ var value = /** @type {string} */ (reader.readString());
3070
+ msg.setStackTrace(value);
3071
+ break;
3072
+ case 6:
3073
+ var value = msg.getAttributesMap();
3074
+ reader.readMessage(value, function(message, reader) {
3075
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
3076
+ });
3077
+ break;
3078
+ case 7:
3079
+ var value = new google_protobuf_timestamp_pb.Timestamp;
3080
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
3081
+ msg.setTimestamp(value);
3082
+ break;
3083
+ default:
3084
+ reader.skipField();
3085
+ break;
3086
+ }
3087
+ }
3088
+ return msg;
3089
+ };
3090
+
3091
+
3092
+ /**
3093
+ * Serializes the message to binary data (in protobuf wire format).
3094
+ * @return {!Uint8Array}
3095
+ */
3096
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.serializeBinary = function() {
3097
+ var writer = new jspb.BinaryWriter();
3098
+ proto.gateway.parallax.v1.AddSpanErrorRequest.serializeBinaryToWriter(this, writer);
3099
+ return writer.getResultBuffer();
3100
+ };
3101
+
3102
+
3103
+ /**
3104
+ * Serializes the given message to binary data (in protobuf wire
3105
+ * format), writing to the given BinaryWriter.
3106
+ * @param {!proto.gateway.parallax.v1.AddSpanErrorRequest} message
3107
+ * @param {!jspb.BinaryWriter} writer
3108
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3109
+ */
3110
+ proto.gateway.parallax.v1.AddSpanErrorRequest.serializeBinaryToWriter = function(message, writer) {
3111
+ var f = undefined;
3112
+ f = message.getTraceId();
3113
+ if (f.length > 0) {
3114
+ writer.writeString(
3115
+ 1,
3116
+ f
3117
+ );
3118
+ }
3119
+ f = message.getSpanId();
3120
+ if (f.length > 0) {
3121
+ writer.writeString(
3122
+ 2,
3123
+ f
3124
+ );
3125
+ }
3126
+ f = message.getErrorType();
3127
+ if (f.length > 0) {
3128
+ writer.writeString(
3129
+ 3,
3130
+ f
3131
+ );
3132
+ }
3133
+ f = message.getMessage();
3134
+ if (f.length > 0) {
3135
+ writer.writeString(
3136
+ 4,
3137
+ f
3138
+ );
3139
+ }
3140
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
3141
+ if (f != null) {
3142
+ writer.writeString(
3143
+ 5,
3144
+ f
3145
+ );
3146
+ }
3147
+ f = message.getAttributesMap(true);
3148
+ if (f && f.getLength() > 0) {
3149
+ f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
3150
+ }
3151
+ f = message.getTimestamp();
3152
+ if (f != null) {
3153
+ writer.writeMessage(
3154
+ 7,
3155
+ f,
3156
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
3157
+ );
3158
+ }
3159
+ };
3160
+
3161
+
3162
+ /**
3163
+ * optional string trace_id = 1;
3164
+ * @return {string}
3165
+ */
3166
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.getTraceId = function() {
3167
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3168
+ };
3169
+
3170
+
3171
+ /**
3172
+ * @param {string} value
3173
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
3174
+ */
3175
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.setTraceId = function(value) {
3176
+ return jspb.Message.setProto3StringField(this, 1, value);
3177
+ };
3178
+
3179
+
3180
+ /**
3181
+ * optional string span_id = 2;
3182
+ * @return {string}
3183
+ */
3184
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.getSpanId = function() {
3185
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3186
+ };
3187
+
3188
+
3189
+ /**
3190
+ * @param {string} value
3191
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
3192
+ */
3193
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.setSpanId = function(value) {
3194
+ return jspb.Message.setProto3StringField(this, 2, value);
3195
+ };
3196
+
3197
+
3198
+ /**
3199
+ * optional string error_type = 3;
3200
+ * @return {string}
3201
+ */
3202
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.getErrorType = function() {
3203
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3204
+ };
3205
+
3206
+
3207
+ /**
3208
+ * @param {string} value
3209
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
3210
+ */
3211
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.setErrorType = function(value) {
3212
+ return jspb.Message.setProto3StringField(this, 3, value);
3213
+ };
3214
+
3215
+
3216
+ /**
3217
+ * optional string message = 4;
3218
+ * @return {string}
3219
+ */
3220
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.getMessage = function() {
3221
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3222
+ };
3223
+
3224
+
3225
+ /**
3226
+ * @param {string} value
3227
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
3228
+ */
3229
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.setMessage = function(value) {
3230
+ return jspb.Message.setProto3StringField(this, 4, value);
3231
+ };
3232
+
3233
+
3234
+ /**
3235
+ * optional string stack_trace = 5;
3236
+ * @return {string}
3237
+ */
3238
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.getStackTrace = function() {
3239
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3240
+ };
3241
+
3242
+
3243
+ /**
3244
+ * @param {string} value
3245
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
3246
+ */
3247
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.setStackTrace = function(value) {
3248
+ return jspb.Message.setField(this, 5, value);
3249
+ };
3250
+
3251
+
3252
+ /**
3253
+ * Clears the field making it undefined.
3254
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
3255
+ */
3256
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.clearStackTrace = function() {
3257
+ return jspb.Message.setField(this, 5, undefined);
3258
+ };
3259
+
3260
+
3261
+ /**
3262
+ * Returns whether this field is set.
3263
+ * @return {boolean}
3264
+ */
3265
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.hasStackTrace = function() {
3266
+ return jspb.Message.getField(this, 5) != null;
3267
+ };
3268
+
3269
+
3270
+ /**
3271
+ * map<string, string> attributes = 6;
3272
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
3273
+ * empty, instead returning `undefined`
3274
+ * @return {!jspb.Map<string,string>}
3275
+ */
3276
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.getAttributesMap = function(opt_noLazyCreate) {
3277
+ return /** @type {!jspb.Map<string,string>} */ (
3278
+ jspb.Message.getMapField(this, 6, opt_noLazyCreate,
3279
+ null));
3280
+ };
3281
+
3282
+
3283
+ /**
3284
+ * Clears values from the map. The map will be non-null.
3285
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
3286
+ */
3287
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.clearAttributesMap = function() {
3288
+ this.getAttributesMap().clear();
3289
+ return this;
3290
+ };
3291
+
3292
+
3293
+ /**
3294
+ * optional google.protobuf.Timestamp timestamp = 7;
3295
+ * @return {?proto.google.protobuf.Timestamp}
3296
+ */
3297
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.getTimestamp = function() {
3298
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
3299
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
3300
+ };
3301
+
3302
+
3303
+ /**
3304
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
3305
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
3306
+ */
3307
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.setTimestamp = function(value) {
3308
+ return jspb.Message.setWrapperField(this, 7, value);
3309
+ };
3310
+
3311
+
3312
+ /**
3313
+ * Clears the message field making it undefined.
3314
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
3315
+ */
3316
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.clearTimestamp = function() {
3317
+ return this.setTimestamp(undefined);
3318
+ };
3319
+
3320
+
3321
+ /**
3322
+ * Returns whether this field is set.
3323
+ * @return {boolean}
3324
+ */
3325
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.hasTimestamp = function() {
3326
+ return jspb.Message.getField(this, 7) != null;
3327
+ };
3328
+
3329
+
3330
+
3331
+
3332
+
3333
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3334
+ /**
3335
+ * Creates an object representation of this proto.
3336
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3337
+ * Optional fields that are not set will be set to undefined.
3338
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3339
+ * For the list of reserved names please see:
3340
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3341
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3342
+ * JSPB instance for transitional soy proto support:
3343
+ * http://goto/soy-param-migration
3344
+ * @return {!Object}
3345
+ */
3346
+ proto.gateway.parallax.v1.AddSpanErrorResponse.prototype.toObject = function(opt_includeInstance) {
3347
+ return proto.gateway.parallax.v1.AddSpanErrorResponse.toObject(opt_includeInstance, this);
3348
+ };
3349
+
3350
+
3351
+ /**
3352
+ * Static version of the {@see toObject} method.
3353
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3354
+ * the JSPB instance for transitional soy proto support:
3355
+ * http://goto/soy-param-migration
3356
+ * @param {!proto.gateway.parallax.v1.AddSpanErrorResponse} msg The msg instance to transform.
3357
+ * @return {!Object}
3358
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3359
+ */
3360
+ proto.gateway.parallax.v1.AddSpanErrorResponse.toObject = function(includeInstance, msg) {
3361
+ var f, obj = {
3362
+ status: (f = msg.getStatus()) && proto_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f)
3363
+ };
3364
+
3365
+ if (includeInstance) {
3366
+ obj.$jspbMessageInstance = msg;
3367
+ }
3368
+ return obj;
3369
+ };
3370
+ }
3371
+
3372
+
3373
+ /**
3374
+ * Deserializes binary data (in protobuf wire format).
3375
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3376
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorResponse}
3377
+ */
3378
+ proto.gateway.parallax.v1.AddSpanErrorResponse.deserializeBinary = function(bytes) {
3379
+ var reader = new jspb.BinaryReader(bytes);
3380
+ var msg = new proto.gateway.parallax.v1.AddSpanErrorResponse;
3381
+ return proto.gateway.parallax.v1.AddSpanErrorResponse.deserializeBinaryFromReader(msg, reader);
3382
+ };
3383
+
3384
+
3385
+ /**
3386
+ * Deserializes binary data (in protobuf wire format) from the
3387
+ * given reader into the given message object.
3388
+ * @param {!proto.gateway.parallax.v1.AddSpanErrorResponse} msg The message object to deserialize into.
3389
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3390
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorResponse}
3391
+ */
3392
+ proto.gateway.parallax.v1.AddSpanErrorResponse.deserializeBinaryFromReader = function(msg, reader) {
3393
+ while (reader.nextField()) {
3394
+ if (reader.isEndGroup()) {
3395
+ break;
3396
+ }
3397
+ var field = reader.getFieldNumber();
3398
+ switch (field) {
3399
+ case 1:
3400
+ var value = new proto_common_v1_status_pb.ResponseStatus;
3401
+ reader.readMessage(value,proto_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
3402
+ msg.setStatus(value);
3403
+ break;
3404
+ default:
3405
+ reader.skipField();
3406
+ break;
3407
+ }
3408
+ }
3409
+ return msg;
3410
+ };
3411
+
3412
+
3413
+ /**
3414
+ * Serializes the message to binary data (in protobuf wire format).
3415
+ * @return {!Uint8Array}
3416
+ */
3417
+ proto.gateway.parallax.v1.AddSpanErrorResponse.prototype.serializeBinary = function() {
3418
+ var writer = new jspb.BinaryWriter();
3419
+ proto.gateway.parallax.v1.AddSpanErrorResponse.serializeBinaryToWriter(this, writer);
3420
+ return writer.getResultBuffer();
3421
+ };
3422
+
3423
+
3424
+ /**
3425
+ * Serializes the given message to binary data (in protobuf wire
3426
+ * format), writing to the given BinaryWriter.
3427
+ * @param {!proto.gateway.parallax.v1.AddSpanErrorResponse} message
3428
+ * @param {!jspb.BinaryWriter} writer
3429
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3430
+ */
3431
+ proto.gateway.parallax.v1.AddSpanErrorResponse.serializeBinaryToWriter = function(message, writer) {
3432
+ var f = undefined;
3433
+ f = message.getStatus();
3434
+ if (f != null) {
3435
+ writer.writeMessage(
3436
+ 1,
3437
+ f,
3438
+ proto_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
3439
+ );
3440
+ }
3441
+ };
3442
+
3443
+
3444
+ /**
3445
+ * optional common.v1.ResponseStatus status = 1;
3446
+ * @return {?proto.common.v1.ResponseStatus}
3447
+ */
3448
+ proto.gateway.parallax.v1.AddSpanErrorResponse.prototype.getStatus = function() {
3449
+ return /** @type{?proto.common.v1.ResponseStatus} */ (
3450
+ jspb.Message.getWrapperField(this, proto_common_v1_status_pb.ResponseStatus, 1));
3451
+ };
3452
+
3453
+
3454
+ /**
3455
+ * @param {?proto.common.v1.ResponseStatus|undefined} value
3456
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorResponse} returns this
3457
+ */
3458
+ proto.gateway.parallax.v1.AddSpanErrorResponse.prototype.setStatus = function(value) {
3459
+ return jspb.Message.setWrapperField(this, 1, value);
3460
+ };
3461
+
3462
+
3463
+ /**
3464
+ * Clears the message field making it undefined.
3465
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorResponse} returns this
3466
+ */
3467
+ proto.gateway.parallax.v1.AddSpanErrorResponse.prototype.clearStatus = function() {
3468
+ return this.setStatus(undefined);
3469
+ };
3470
+
3471
+
3472
+ /**
3473
+ * Returns whether this field is set.
3474
+ * @return {boolean}
3475
+ */
3476
+ proto.gateway.parallax.v1.AddSpanErrorResponse.prototype.hasStatus = function() {
3477
+ return jspb.Message.getField(this, 1) != null;
3478
+ };
3479
+
3480
+
3481
+
3482
+ /**
3483
+ * Oneof group definitions for this message. Each group defines the field
3484
+ * numbers belonging to that group. When of these fields' value is set, all
3485
+ * other fields in the group are cleared. During deserialization, if multiple
3486
+ * fields are encountered for a group, only the last value seen will be kept.
3487
+ * @private {!Array<!Array<number>>}
3488
+ * @const
3489
+ */
3490
+ proto.gateway.parallax.v1.AddSpanHintRequest.oneofGroups_ = [[10]];
3491
+
3492
+ /**
3493
+ * @enum {number}
3494
+ */
3495
+ proto.gateway.parallax.v1.AddSpanHintRequest.HintTypeCase = {
3496
+ HINT_TYPE_NOT_SET: 0,
3497
+ CHAIN_TRANSACTION: 10
3498
+ };
3499
+
3500
+ /**
3501
+ * @return {proto.gateway.parallax.v1.AddSpanHintRequest.HintTypeCase}
3502
+ */
3503
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.getHintTypeCase = function() {
3504
+ return /** @type {proto.gateway.parallax.v1.AddSpanHintRequest.HintTypeCase} */(jspb.Message.computeOneofCase(this, proto.gateway.parallax.v1.AddSpanHintRequest.oneofGroups_[0]));
3505
+ };
3506
+
3507
+
3508
+
3509
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3510
+ /**
3511
+ * Creates an object representation of this proto.
3512
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3513
+ * Optional fields that are not set will be set to undefined.
3514
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3515
+ * For the list of reserved names please see:
3516
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3517
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3518
+ * JSPB instance for transitional soy proto support:
3519
+ * http://goto/soy-param-migration
3520
+ * @return {!Object}
3521
+ */
3522
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.toObject = function(opt_includeInstance) {
3523
+ return proto.gateway.parallax.v1.AddSpanHintRequest.toObject(opt_includeInstance, this);
3524
+ };
3525
+
3526
+
3527
+ /**
3528
+ * Static version of the {@see toObject} method.
3529
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3530
+ * the JSPB instance for transitional soy proto support:
3531
+ * http://goto/soy-param-migration
3532
+ * @param {!proto.gateway.parallax.v1.AddSpanHintRequest} msg The msg instance to transform.
3533
+ * @return {!Object}
3534
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3535
+ */
3536
+ proto.gateway.parallax.v1.AddSpanHintRequest.toObject = function(includeInstance, msg) {
3537
+ var f, obj = {
3538
+ traceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3539
+ parentSpanId: jspb.Message.getFieldWithDefault(msg, 2, ""),
3540
+ timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
3541
+ chainTransaction: (f = msg.getChainTransaction()) && proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.toObject(includeInstance, f)
3542
+ };
3543
+
3544
+ if (includeInstance) {
3545
+ obj.$jspbMessageInstance = msg;
3546
+ }
3547
+ return obj;
3548
+ };
3549
+ }
3550
+
3551
+
3552
+ /**
3553
+ * Deserializes binary data (in protobuf wire format).
3554
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3555
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest}
3556
+ */
3557
+ proto.gateway.parallax.v1.AddSpanHintRequest.deserializeBinary = function(bytes) {
3558
+ var reader = new jspb.BinaryReader(bytes);
3559
+ var msg = new proto.gateway.parallax.v1.AddSpanHintRequest;
3560
+ return proto.gateway.parallax.v1.AddSpanHintRequest.deserializeBinaryFromReader(msg, reader);
3561
+ };
3562
+
3563
+
3564
+ /**
3565
+ * Deserializes binary data (in protobuf wire format) from the
3566
+ * given reader into the given message object.
3567
+ * @param {!proto.gateway.parallax.v1.AddSpanHintRequest} msg The message object to deserialize into.
3568
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3569
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest}
3570
+ */
3571
+ proto.gateway.parallax.v1.AddSpanHintRequest.deserializeBinaryFromReader = function(msg, reader) {
3572
+ while (reader.nextField()) {
3573
+ if (reader.isEndGroup()) {
3574
+ break;
3575
+ }
3576
+ var field = reader.getFieldNumber();
3577
+ switch (field) {
3578
+ case 1:
3579
+ var value = /** @type {string} */ (reader.readString());
3580
+ msg.setTraceId(value);
3581
+ break;
3582
+ case 2:
3583
+ var value = /** @type {string} */ (reader.readString());
3584
+ msg.setParentSpanId(value);
3585
+ break;
3586
+ case 3:
3587
+ var value = new google_protobuf_timestamp_pb.Timestamp;
3588
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
3589
+ msg.setTimestamp(value);
3590
+ break;
3591
+ case 10:
3592
+ var value = new proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction;
3593
+ reader.readMessage(value,proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.deserializeBinaryFromReader);
3594
+ msg.setChainTransaction(value);
3595
+ break;
3596
+ default:
3597
+ reader.skipField();
3598
+ break;
3599
+ }
3600
+ }
3601
+ return msg;
3602
+ };
3603
+
3604
+
3605
+ /**
3606
+ * Serializes the message to binary data (in protobuf wire format).
3607
+ * @return {!Uint8Array}
3608
+ */
3609
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.serializeBinary = function() {
3610
+ var writer = new jspb.BinaryWriter();
3611
+ proto.gateway.parallax.v1.AddSpanHintRequest.serializeBinaryToWriter(this, writer);
3612
+ return writer.getResultBuffer();
3613
+ };
3614
+
3615
+
3616
+ /**
3617
+ * Serializes the given message to binary data (in protobuf wire
3618
+ * format), writing to the given BinaryWriter.
3619
+ * @param {!proto.gateway.parallax.v1.AddSpanHintRequest} message
3620
+ * @param {!jspb.BinaryWriter} writer
3621
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3622
+ */
3623
+ proto.gateway.parallax.v1.AddSpanHintRequest.serializeBinaryToWriter = function(message, writer) {
3624
+ var f = undefined;
3625
+ f = message.getTraceId();
3626
+ if (f.length > 0) {
3627
+ writer.writeString(
3628
+ 1,
3629
+ f
3630
+ );
3631
+ }
3632
+ f = message.getParentSpanId();
3633
+ if (f.length > 0) {
3634
+ writer.writeString(
3635
+ 2,
3636
+ f
3637
+ );
3638
+ }
3639
+ f = message.getTimestamp();
3640
+ if (f != null) {
3641
+ writer.writeMessage(
3642
+ 3,
3643
+ f,
3644
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
3645
+ );
3646
+ }
3647
+ f = message.getChainTransaction();
3648
+ if (f != null) {
3649
+ writer.writeMessage(
3650
+ 10,
3651
+ f,
3652
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.serializeBinaryToWriter
3653
+ );
3654
+ }
3655
+ };
3656
+
3657
+
3658
+
3659
+
3660
+
3661
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3662
+ /**
3663
+ * Creates an object representation of this proto.
3664
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3665
+ * Optional fields that are not set will be set to undefined.
3666
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3667
+ * For the list of reserved names please see:
3668
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3669
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3670
+ * JSPB instance for transitional soy proto support:
3671
+ * http://goto/soy-param-migration
3672
+ * @return {!Object}
3673
+ */
3674
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.prototype.toObject = function(opt_includeInstance) {
3675
+ return proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.toObject(opt_includeInstance, this);
3676
+ };
3677
+
3678
+
3679
+ /**
3680
+ * Static version of the {@see toObject} method.
3681
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3682
+ * the JSPB instance for transitional soy proto support:
3683
+ * http://goto/soy-param-migration
3684
+ * @param {!proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction} msg The msg instance to transform.
3685
+ * @return {!Object}
3686
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3687
+ */
3688
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.toObject = function(includeInstance, msg) {
3689
+ var obj = {
3690
+ txHash: jspb.Message.getFieldWithDefault(msg, 1, ""),
3691
+ chainId: jspb.Message.getFieldWithDefault(msg, 2, 0)
3692
+ };
3693
+
3694
+ if (includeInstance) {
3695
+ obj.$jspbMessageInstance = msg;
3696
+ }
3697
+ return obj;
3698
+ };
3699
+ }
3700
+
3701
+
3702
+ /**
3703
+ * Deserializes binary data (in protobuf wire format).
3704
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3705
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction}
3706
+ */
3707
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.deserializeBinary = function(bytes) {
3708
+ var reader = new jspb.BinaryReader(bytes);
3709
+ var msg = new proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction;
3710
+ return proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.deserializeBinaryFromReader(msg, reader);
3711
+ };
3712
+
3713
+
3714
+ /**
3715
+ * Deserializes binary data (in protobuf wire format) from the
3716
+ * given reader into the given message object.
3717
+ * @param {!proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction} msg The message object to deserialize into.
3718
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3719
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction}
3720
+ */
3721
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.deserializeBinaryFromReader = function(msg, reader) {
3722
+ while (reader.nextField()) {
3723
+ if (reader.isEndGroup()) {
3724
+ break;
3725
+ }
3726
+ var field = reader.getFieldNumber();
3727
+ switch (field) {
3728
+ case 1:
3729
+ var value = /** @type {string} */ (reader.readString());
3730
+ msg.setTxHash(value);
3731
+ break;
3732
+ case 2:
3733
+ var value = /** @type {number} */ (reader.readUint64());
3734
+ msg.setChainId(value);
3735
+ break;
3736
+ default:
3737
+ reader.skipField();
3738
+ break;
3739
+ }
3740
+ }
3741
+ return msg;
3742
+ };
3743
+
3744
+
3745
+ /**
3746
+ * Serializes the message to binary data (in protobuf wire format).
3747
+ * @return {!Uint8Array}
3748
+ */
3749
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.prototype.serializeBinary = function() {
3750
+ var writer = new jspb.BinaryWriter();
3751
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.serializeBinaryToWriter(this, writer);
3752
+ return writer.getResultBuffer();
3753
+ };
3754
+
3755
+
3756
+ /**
3757
+ * Serializes the given message to binary data (in protobuf wire
3758
+ * format), writing to the given BinaryWriter.
3759
+ * @param {!proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction} message
3760
+ * @param {!jspb.BinaryWriter} writer
3761
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3762
+ */
3763
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.serializeBinaryToWriter = function(message, writer) {
3764
+ var f = undefined;
3765
+ f = message.getTxHash();
3766
+ if (f.length > 0) {
3767
+ writer.writeString(
3768
+ 1,
3769
+ f
3770
+ );
3771
+ }
3772
+ f = message.getChainId();
3773
+ if (f !== 0) {
3774
+ writer.writeUint64(
3775
+ 2,
3776
+ f
3777
+ );
3778
+ }
3779
+ };
3780
+
3781
+
3782
+ /**
3783
+ * optional string tx_hash = 1;
3784
+ * @return {string}
3785
+ */
3786
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.prototype.getTxHash = function() {
3787
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3788
+ };
3789
+
3790
+
3791
+ /**
3792
+ * @param {string} value
3793
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction} returns this
3794
+ */
3795
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.prototype.setTxHash = function(value) {
3796
+ return jspb.Message.setProto3StringField(this, 1, value);
3797
+ };
3798
+
3799
+
3800
+ /**
3801
+ * optional uint64 chain_id = 2;
3802
+ * @return {number}
3803
+ */
3804
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.prototype.getChainId = function() {
3805
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3806
+ };
3807
+
3808
+
3809
+ /**
3810
+ * @param {number} value
3811
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction} returns this
3812
+ */
3813
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.prototype.setChainId = function(value) {
3814
+ return jspb.Message.setProto3IntField(this, 2, value);
3815
+ };
3816
+
3817
+
3818
+ /**
3819
+ * optional string trace_id = 1;
3820
+ * @return {string}
3821
+ */
3822
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.getTraceId = function() {
3823
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3824
+ };
3825
+
3826
+
3827
+ /**
3828
+ * @param {string} value
3829
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest} returns this
3830
+ */
3831
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.setTraceId = function(value) {
3832
+ return jspb.Message.setProto3StringField(this, 1, value);
3833
+ };
3834
+
3835
+
3836
+ /**
3837
+ * optional string parent_span_id = 2;
3838
+ * @return {string}
3839
+ */
3840
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.getParentSpanId = function() {
3841
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3842
+ };
3843
+
3844
+
3845
+ /**
3846
+ * @param {string} value
3847
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest} returns this
3848
+ */
3849
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.setParentSpanId = function(value) {
3850
+ return jspb.Message.setProto3StringField(this, 2, value);
3851
+ };
3852
+
3853
+
3854
+ /**
3855
+ * optional google.protobuf.Timestamp timestamp = 3;
3856
+ * @return {?proto.google.protobuf.Timestamp}
3857
+ */
3858
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.getTimestamp = function() {
3859
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
3860
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
3861
+ };
3862
+
3863
+
3864
+ /**
3865
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
3866
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest} returns this
3867
+ */
3868
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.setTimestamp = function(value) {
3869
+ return jspb.Message.setWrapperField(this, 3, value);
3870
+ };
3871
+
3872
+
3873
+ /**
3874
+ * Clears the message field making it undefined.
3875
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest} returns this
3876
+ */
3877
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.clearTimestamp = function() {
3878
+ return this.setTimestamp(undefined);
3879
+ };
3880
+
3881
+
3882
+ /**
3883
+ * Returns whether this field is set.
3884
+ * @return {boolean}
3885
+ */
3886
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.hasTimestamp = function() {
3887
+ return jspb.Message.getField(this, 3) != null;
3888
+ };
3889
+
3890
+
3891
+ /**
3892
+ * optional ChainTransaction chain_transaction = 10;
3893
+ * @return {?proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction}
3894
+ */
3895
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.getChainTransaction = function() {
3896
+ return /** @type{?proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction} */ (
3897
+ jspb.Message.getWrapperField(this, proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction, 10));
3898
+ };
3899
+
3900
+
3901
+ /**
3902
+ * @param {?proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction|undefined} value
3903
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest} returns this
3904
+ */
3905
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.setChainTransaction = function(value) {
3906
+ return jspb.Message.setOneofWrapperField(this, 10, proto.gateway.parallax.v1.AddSpanHintRequest.oneofGroups_[0], value);
3907
+ };
3908
+
3909
+
3910
+ /**
3911
+ * Clears the message field making it undefined.
3912
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest} returns this
3913
+ */
3914
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.clearChainTransaction = function() {
3915
+ return this.setChainTransaction(undefined);
3916
+ };
3917
+
3918
+
3919
+ /**
3920
+ * Returns whether this field is set.
3921
+ * @return {boolean}
3922
+ */
3923
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.hasChainTransaction = function() {
3924
+ return jspb.Message.getField(this, 10) != null;
3925
+ };
3926
+
3927
+
3928
+
3929
+
3930
+
3931
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3932
+ /**
3933
+ * Creates an object representation of this proto.
3934
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3935
+ * Optional fields that are not set will be set to undefined.
3936
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3937
+ * For the list of reserved names please see:
3938
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3939
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3940
+ * JSPB instance for transitional soy proto support:
3941
+ * http://goto/soy-param-migration
3942
+ * @return {!Object}
3943
+ */
3944
+ proto.gateway.parallax.v1.AddSpanHintResponse.prototype.toObject = function(opt_includeInstance) {
3945
+ return proto.gateway.parallax.v1.AddSpanHintResponse.toObject(opt_includeInstance, this);
3946
+ };
3947
+
3948
+
3949
+ /**
3950
+ * Static version of the {@see toObject} method.
3951
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3952
+ * the JSPB instance for transitional soy proto support:
3953
+ * http://goto/soy-param-migration
3954
+ * @param {!proto.gateway.parallax.v1.AddSpanHintResponse} msg The msg instance to transform.
3955
+ * @return {!Object}
3956
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3957
+ */
3958
+ proto.gateway.parallax.v1.AddSpanHintResponse.toObject = function(includeInstance, msg) {
3959
+ var f, obj = {
3960
+ status: (f = msg.getStatus()) && proto_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f)
3961
+ };
3962
+
3963
+ if (includeInstance) {
3964
+ obj.$jspbMessageInstance = msg;
3965
+ }
3966
+ return obj;
3967
+ };
3968
+ }
3969
+
3970
+
3971
+ /**
3972
+ * Deserializes binary data (in protobuf wire format).
3973
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3974
+ * @return {!proto.gateway.parallax.v1.AddSpanHintResponse}
3975
+ */
3976
+ proto.gateway.parallax.v1.AddSpanHintResponse.deserializeBinary = function(bytes) {
3977
+ var reader = new jspb.BinaryReader(bytes);
3978
+ var msg = new proto.gateway.parallax.v1.AddSpanHintResponse;
3979
+ return proto.gateway.parallax.v1.AddSpanHintResponse.deserializeBinaryFromReader(msg, reader);
3980
+ };
3981
+
3982
+
3983
+ /**
3984
+ * Deserializes binary data (in protobuf wire format) from the
3985
+ * given reader into the given message object.
3986
+ * @param {!proto.gateway.parallax.v1.AddSpanHintResponse} msg The message object to deserialize into.
3987
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3988
+ * @return {!proto.gateway.parallax.v1.AddSpanHintResponse}
3989
+ */
3990
+ proto.gateway.parallax.v1.AddSpanHintResponse.deserializeBinaryFromReader = function(msg, reader) {
3991
+ while (reader.nextField()) {
3992
+ if (reader.isEndGroup()) {
3993
+ break;
3994
+ }
3995
+ var field = reader.getFieldNumber();
3996
+ switch (field) {
3997
+ case 1:
3998
+ var value = new proto_common_v1_status_pb.ResponseStatus;
3999
+ reader.readMessage(value,proto_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
4000
+ msg.setStatus(value);
4001
+ break;
4002
+ default:
4003
+ reader.skipField();
4004
+ break;
4005
+ }
4006
+ }
4007
+ return msg;
4008
+ };
4009
+
4010
+
4011
+ /**
4012
+ * Serializes the message to binary data (in protobuf wire format).
4013
+ * @return {!Uint8Array}
4014
+ */
4015
+ proto.gateway.parallax.v1.AddSpanHintResponse.prototype.serializeBinary = function() {
4016
+ var writer = new jspb.BinaryWriter();
4017
+ proto.gateway.parallax.v1.AddSpanHintResponse.serializeBinaryToWriter(this, writer);
4018
+ return writer.getResultBuffer();
4019
+ };
4020
+
4021
+
4022
+ /**
4023
+ * Serializes the given message to binary data (in protobuf wire
4024
+ * format), writing to the given BinaryWriter.
4025
+ * @param {!proto.gateway.parallax.v1.AddSpanHintResponse} message
4026
+ * @param {!jspb.BinaryWriter} writer
4027
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4028
+ */
4029
+ proto.gateway.parallax.v1.AddSpanHintResponse.serializeBinaryToWriter = function(message, writer) {
4030
+ var f = undefined;
4031
+ f = message.getStatus();
4032
+ if (f != null) {
4033
+ writer.writeMessage(
4034
+ 1,
4035
+ f,
4036
+ proto_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
4037
+ );
4038
+ }
4039
+ };
4040
+
4041
+
4042
+ /**
4043
+ * optional common.v1.ResponseStatus status = 1;
4044
+ * @return {?proto.common.v1.ResponseStatus}
4045
+ */
4046
+ proto.gateway.parallax.v1.AddSpanHintResponse.prototype.getStatus = function() {
4047
+ return /** @type{?proto.common.v1.ResponseStatus} */ (
4048
+ jspb.Message.getWrapperField(this, proto_common_v1_status_pb.ResponseStatus, 1));
4049
+ };
4050
+
4051
+
4052
+ /**
4053
+ * @param {?proto.common.v1.ResponseStatus|undefined} value
4054
+ * @return {!proto.gateway.parallax.v1.AddSpanHintResponse} returns this
4055
+ */
4056
+ proto.gateway.parallax.v1.AddSpanHintResponse.prototype.setStatus = function(value) {
4057
+ return jspb.Message.setWrapperField(this, 1, value);
4058
+ };
4059
+
4060
+
4061
+ /**
4062
+ * Clears the message field making it undefined.
4063
+ * @return {!proto.gateway.parallax.v1.AddSpanHintResponse} returns this
4064
+ */
4065
+ proto.gateway.parallax.v1.AddSpanHintResponse.prototype.clearStatus = function() {
4066
+ return this.setStatus(undefined);
4067
+ };
4068
+
4069
+
4070
+ /**
4071
+ * Returns whether this field is set.
4072
+ * @return {boolean}
4073
+ */
4074
+ proto.gateway.parallax.v1.AddSpanHintResponse.prototype.hasStatus = function() {
4075
+ return jspb.Message.getField(this, 1) != null;
4076
+ };
4077
+
4078
+
4079
+ goog.object.extend(exports$1, proto.gateway.parallax.v1);
4080
+ } (parallax_gateway_pb));
4081
+ return parallax_gateway_pb;
4082
+ }
4083
+
4084
+ var parallax_gateway_pbExports = requireParallax_gateway_pb();
4085
+
4086
+ /**
4087
+ * @fileoverview gRPC-Web generated client stub for gateway.parallax.v1
4088
+ * @enhanceable
4089
+ * @public
4090
+ */
4091
+ // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
4092
+ // versions:
4093
+ // protoc-gen-grpc-web v1.5.0
4094
+ // protoc v3.21.12
4095
+ // source: proto/gateway/parallax/v1/parallax_gateway.proto
4096
+ /* eslint-disable */
4097
+ // @ts-nocheck
4098
+ class ParallaxGatewayServiceClient {
4099
+ constructor(hostname, credentials, options) {
4100
+ Object.defineProperty(this, "client_", {
4101
+ enumerable: true,
4102
+ configurable: true,
4103
+ writable: true,
4104
+ value: void 0
4105
+ });
4106
+ Object.defineProperty(this, "hostname_", {
4107
+ enumerable: true,
4108
+ configurable: true,
4109
+ writable: true,
4110
+ value: void 0
4111
+ });
4112
+ Object.defineProperty(this, "credentials_", {
4113
+ enumerable: true,
4114
+ configurable: true,
4115
+ writable: true,
4116
+ value: void 0
4117
+ });
4118
+ Object.defineProperty(this, "options_", {
4119
+ enumerable: true,
4120
+ configurable: true,
4121
+ writable: true,
4122
+ value: void 0
4123
+ });
4124
+ Object.defineProperty(this, "methodDescriptorCreateTrace", {
4125
+ enumerable: true,
4126
+ configurable: true,
4127
+ writable: true,
4128
+ value: new grpcWebExports.MethodDescriptor('/gateway.parallax.v1.ParallaxGatewayService/CreateTrace', grpcWebExports.MethodType.UNARY, parallax_gateway_pbExports.CreateTraceRequest, parallax_gateway_pbExports.CreateTraceResponse, (request) => {
4129
+ return request.serializeBinary();
4130
+ }, parallax_gateway_pbExports.CreateTraceResponse.deserializeBinary)
4131
+ });
4132
+ Object.defineProperty(this, "methodDescriptorStartSpan", {
4133
+ enumerable: true,
4134
+ configurable: true,
4135
+ writable: true,
4136
+ value: new grpcWebExports.MethodDescriptor('/gateway.parallax.v1.ParallaxGatewayService/StartSpan', grpcWebExports.MethodType.UNARY, parallax_gateway_pbExports.StartSpanRequest, parallax_gateway_pbExports.StartSpanResponse, (request) => {
4137
+ return request.serializeBinary();
4138
+ }, parallax_gateway_pbExports.StartSpanResponse.deserializeBinary)
4139
+ });
4140
+ Object.defineProperty(this, "methodDescriptorFinishSpan", {
4141
+ enumerable: true,
4142
+ configurable: true,
4143
+ writable: true,
4144
+ value: new grpcWebExports.MethodDescriptor('/gateway.parallax.v1.ParallaxGatewayService/FinishSpan', grpcWebExports.MethodType.UNARY, parallax_gateway_pbExports.FinishSpanRequest, parallax_gateway_pbExports.FinishSpanResponse, (request) => {
4145
+ return request.serializeBinary();
4146
+ }, parallax_gateway_pbExports.FinishSpanResponse.deserializeBinary)
4147
+ });
4148
+ Object.defineProperty(this, "methodDescriptorAddSpanEvent", {
4149
+ enumerable: true,
4150
+ configurable: true,
4151
+ writable: true,
4152
+ value: new grpcWebExports.MethodDescriptor('/gateway.parallax.v1.ParallaxGatewayService/AddSpanEvent', grpcWebExports.MethodType.UNARY, parallax_gateway_pbExports.AddSpanEventRequest, parallax_gateway_pbExports.AddSpanEventResponse, (request) => {
4153
+ return request.serializeBinary();
4154
+ }, parallax_gateway_pbExports.AddSpanEventResponse.deserializeBinary)
4155
+ });
4156
+ Object.defineProperty(this, "methodDescriptorAddSpanError", {
4157
+ enumerable: true,
4158
+ configurable: true,
4159
+ writable: true,
4160
+ value: new grpcWebExports.MethodDescriptor('/gateway.parallax.v1.ParallaxGatewayService/AddSpanError', grpcWebExports.MethodType.UNARY, parallax_gateway_pbExports.AddSpanErrorRequest, parallax_gateway_pbExports.AddSpanErrorResponse, (request) => {
4161
+ return request.serializeBinary();
4162
+ }, parallax_gateway_pbExports.AddSpanErrorResponse.deserializeBinary)
4163
+ });
4164
+ Object.defineProperty(this, "methodDescriptorAddSpanHint", {
4165
+ enumerable: true,
4166
+ configurable: true,
4167
+ writable: true,
4168
+ value: new grpcWebExports.MethodDescriptor('/gateway.parallax.v1.ParallaxGatewayService/AddSpanHint', grpcWebExports.MethodType.UNARY, parallax_gateway_pbExports.AddSpanHintRequest, parallax_gateway_pbExports.AddSpanHintResponse, (request) => {
4169
+ return request.serializeBinary();
4170
+ }, parallax_gateway_pbExports.AddSpanHintResponse.deserializeBinary)
4171
+ });
4172
+ if (!options)
4173
+ options = {};
4174
+ if (!credentials)
4175
+ credentials = {};
4176
+ options['format'] = 'text';
4177
+ this.client_ = new grpcWebExports.GrpcWebClientBase(options);
4178
+ this.hostname_ = hostname.replace(/\/+$/, '');
4179
+ this.credentials_ = credentials;
4180
+ this.options_ = options;
4181
+ }
4182
+ createTrace(request, metadata, callback) {
4183
+ if (callback !== undefined) {
4184
+ return this.client_.rpcCall(this.hostname_ +
4185
+ '/gateway.parallax.v1.ParallaxGatewayService/CreateTrace', request, metadata || {}, this.methodDescriptorCreateTrace, callback);
4186
+ }
4187
+ return this.client_.unaryCall(this.hostname_ +
4188
+ '/gateway.parallax.v1.ParallaxGatewayService/CreateTrace', request, metadata || {}, this.methodDescriptorCreateTrace);
4189
+ }
4190
+ startSpan(request, metadata, callback) {
4191
+ if (callback !== undefined) {
4192
+ return this.client_.rpcCall(this.hostname_ +
4193
+ '/gateway.parallax.v1.ParallaxGatewayService/StartSpan', request, metadata || {}, this.methodDescriptorStartSpan, callback);
4194
+ }
4195
+ return this.client_.unaryCall(this.hostname_ +
4196
+ '/gateway.parallax.v1.ParallaxGatewayService/StartSpan', request, metadata || {}, this.methodDescriptorStartSpan);
4197
+ }
4198
+ finishSpan(request, metadata, callback) {
4199
+ if (callback !== undefined) {
4200
+ return this.client_.rpcCall(this.hostname_ +
4201
+ '/gateway.parallax.v1.ParallaxGatewayService/FinishSpan', request, metadata || {}, this.methodDescriptorFinishSpan, callback);
4202
+ }
4203
+ return this.client_.unaryCall(this.hostname_ +
4204
+ '/gateway.parallax.v1.ParallaxGatewayService/FinishSpan', request, metadata || {}, this.methodDescriptorFinishSpan);
4205
+ }
4206
+ addSpanEvent(request, metadata, callback) {
4207
+ if (callback !== undefined) {
4208
+ return this.client_.rpcCall(this.hostname_ +
4209
+ '/gateway.parallax.v1.ParallaxGatewayService/AddSpanEvent', request, metadata || {}, this.methodDescriptorAddSpanEvent, callback);
4210
+ }
4211
+ return this.client_.unaryCall(this.hostname_ +
4212
+ '/gateway.parallax.v1.ParallaxGatewayService/AddSpanEvent', request, metadata || {}, this.methodDescriptorAddSpanEvent);
4213
+ }
4214
+ addSpanError(request, metadata, callback) {
4215
+ if (callback !== undefined) {
4216
+ return this.client_.rpcCall(this.hostname_ +
4217
+ '/gateway.parallax.v1.ParallaxGatewayService/AddSpanError', request, metadata || {}, this.methodDescriptorAddSpanError, callback);
4218
+ }
4219
+ return this.client_.unaryCall(this.hostname_ +
4220
+ '/gateway.parallax.v1.ParallaxGatewayService/AddSpanError', request, metadata || {}, this.methodDescriptorAddSpanError);
4221
+ }
4222
+ addSpanHint(request, metadata, callback) {
4223
+ if (callback !== undefined) {
4224
+ return this.client_.rpcCall(this.hostname_ +
4225
+ '/gateway.parallax.v1.ParallaxGatewayService/AddSpanHint', request, metadata || {}, this.methodDescriptorAddSpanHint, callback);
4226
+ }
4227
+ return this.client_.unaryCall(this.hostname_ +
4228
+ '/gateway.parallax.v1.ParallaxGatewayService/AddSpanHint', request, metadata || {}, this.methodDescriptorAddSpanHint);
4229
+ }
4230
+ }
4
4231
 
5
4232
  const GRPC_GATEWAY_API_URL = "https://gateway-parallax-dev.platform.svc.cluster.local:50053";
6
4233
  const debugIssue = (trace, error) => {
@@ -223,5 +4450,17 @@ class GrpcWebRpc {
223
4450
  }
224
4451
  }
225
4452
 
226
- export { GrpcWebRpc, ParallaxClient };
4453
+ var AddSpanErrorRequest = parallax_gateway_pbExports.AddSpanErrorRequest;
4454
+ var AddSpanErrorResponse = parallax_gateway_pbExports.AddSpanErrorResponse;
4455
+ var AddSpanEventRequest = parallax_gateway_pbExports.AddSpanEventRequest;
4456
+ var AddSpanEventResponse = parallax_gateway_pbExports.AddSpanEventResponse;
4457
+ var AddSpanHintRequest = parallax_gateway_pbExports.AddSpanHintRequest;
4458
+ var AddSpanHintResponse = parallax_gateway_pbExports.AddSpanHintResponse;
4459
+ var CreateTraceRequest = parallax_gateway_pbExports.CreateTraceRequest;
4460
+ var CreateTraceResponse = parallax_gateway_pbExports.CreateTraceResponse;
4461
+ var FinishSpanRequest = parallax_gateway_pbExports.FinishSpanRequest;
4462
+ var FinishSpanResponse = parallax_gateway_pbExports.FinishSpanResponse;
4463
+ var StartSpanRequest = parallax_gateway_pbExports.StartSpanRequest;
4464
+ var StartSpanResponse = parallax_gateway_pbExports.StartSpanResponse;
4465
+ export { AddSpanErrorRequest, AddSpanErrorResponse, AddSpanEventRequest, AddSpanEventResponse, AddSpanHintRequest, AddSpanHintResponse, CreateTraceRequest, CreateTraceResponse, FinishSpanRequest, FinishSpanResponse, GrpcWebRpc, ParallaxClient, StartSpanRequest, StartSpanResponse };
227
4466
  //# sourceMappingURL=index.esm.js.map