@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.umd.js CHANGED
@@ -1,280 +1,4473 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('mirador-gateway-parallax-web/proto/gateway/parallax/v1/Parallax_gatewayServiceClientPb'), require('rxjs'), require('mirador-gateway-parallax-web/proto/gateway/parallax/v1/parallax_gateway_pb')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'mirador-gateway-parallax-web/proto/gateway/parallax/v1/Parallax_gatewayServiceClientPb', 'rxjs', 'mirador-gateway-parallax-web/proto/gateway/parallax/v1/parallax_gateway_pb'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ParallaxWeb = {}, global.Parallax_gatewayServiceClientPb, global.rxjs, global.parallax_gateway_pb));
5
- })(this, (function (exports, Parallax_gatewayServiceClientPb, rxjs, parallax_gateway_pb) { 'use strict';
6
-
7
- const GRPC_GATEWAY_API_URL = "https://gateway-parallax-dev.platform.svc.cluster.local:50053";
8
- const debugIssue = (trace, error) => {
9
- // Handle our own debugging / logging here
10
- console.error(`[ParallaxClient][${trace}] Error:`, error);
11
- };
12
- class ParallaxClient {
13
- constructor(apiKey, apiUrl) {
14
- Object.defineProperty(this, "apiKey", {
15
- enumerable: true,
16
- configurable: true,
17
- writable: true,
18
- value: apiKey
19
- });
20
- Object.defineProperty(this, "apiUrl", {
21
- enumerable: true,
22
- configurable: true,
23
- writable: true,
24
- value: GRPC_GATEWAY_API_URL
25
- });
26
- Object.defineProperty(this, "client", {
27
- enumerable: true,
28
- configurable: true,
29
- writable: true,
30
- value: void 0
31
- });
32
- if (apiUrl) {
33
- this.apiUrl = apiUrl;
34
- }
35
- // Create credentials object with API key if provided
36
- const credentials = apiKey ? { 'x-api-key': apiKey } : undefined;
37
- // Initialize the gRPC-Web client
38
- this.client = new Parallax_gatewayServiceClientPb.ParallaxGatewayServiceClient(this.apiUrl, credentials);
39
- }
40
- /**
41
- * Create a new trace
42
- * @param params Parameters to create a new trace
43
- * @returns Response from the create trace operation
44
- */
45
- async createTrace(params) {
46
- try {
47
- return await this.client.createTrace(params, null);
48
- }
49
- catch (_error) {
50
- debugIssue("createTrace", new Error('Error creating trace'));
51
- throw _error;
52
- }
53
- }
54
- /**
55
- * Start a new span within a trace
56
- * @param params Parameters to start a new span
57
- */
58
- async startSpan(params) {
59
- try {
60
- return await this.client.startSpan(params, null);
61
- }
62
- catch (_error) {
63
- debugIssue("startSpan", new Error('Error starting span'));
64
- throw _error;
65
- }
66
- }
67
- /**
68
- * Finish a span within a trace
69
- * @param params Parameters to finish a span
70
- */
71
- async finishSpan(params) {
72
- try {
73
- return await this.client.finishSpan(params, null);
74
- }
75
- catch (_error) {
76
- debugIssue("finishSpan", new Error('Error finishing span'));
77
- throw _error;
78
- }
79
- }
80
- /**
81
- * Add an event to a span
82
- * @param params Parameters to add an event to a span
83
- */
84
- async addSpanEvent(params) {
85
- try {
86
- return await this.client.addSpanEvent(params, null);
87
- }
88
- catch (_error) {
89
- debugIssue("addSpanEvent", new Error('Error adding span event'));
90
- throw _error;
91
- }
92
- }
93
- /**
94
- * Add an error to a span
95
- * @param params Parameters to add an error to a span
96
- */
97
- async addSpanError(params) {
98
- try {
99
- return await this.client.addSpanError(params, null);
100
- }
101
- catch (_error) {
102
- debugIssue("addSpanError", new Error('Error adding span error'));
103
- throw _error;
104
- }
105
- }
106
- /**
107
- * Add a hint to a span
108
- * @param params Parameters to add a hint to a span
109
- */
110
- async addSpanHint(params) {
111
- try {
112
- return await this.client.addSpanHint(params, null);
113
- }
114
- catch (_error) {
115
- debugIssue("addSpanHint", new Error('Error adding span hint'));
116
- throw _error;
117
- }
118
- }
119
- }
120
-
121
- class GrpcWebRpc {
122
- constructor(url, apiKey) {
123
- Object.defineProperty(this, "url", {
124
- enumerable: true,
125
- configurable: true,
126
- writable: true,
127
- value: void 0
128
- });
129
- Object.defineProperty(this, "apiKey", {
130
- enumerable: true,
131
- configurable: true,
132
- writable: true,
133
- value: void 0
134
- });
135
- this.url = url;
136
- this.apiKey = apiKey;
137
- }
138
- async request(service, method, data, metadata) {
139
- console.log(`[gRPC-Web] Making request to ${this.url}/${service}/${method}`);
140
- const headers = {
141
- 'Content-Type': 'application/grpc-web+proto',
142
- 'X-Grpc-Web': '1',
143
- };
144
- // Add API key to headers if provided
145
- if (this.apiKey) {
146
- headers['x-api-key'] = this.apiKey;
147
- }
148
- // Add custom metadata
149
- if (metadata) {
150
- Object.entries(metadata).forEach(([key, value]) => {
151
- headers[key] = value;
152
- });
153
- }
154
- try {
155
- const response = await fetch(`${this.url}/${service}/${method}`, {
156
- method: 'POST',
157
- headers,
158
- body: data.buffer,
159
- });
160
- if (!response.ok) {
161
- const errorText = await response.text();
162
- throw new Error(`gRPC-Web error: ${response.status} ${response.statusText} - ${errorText}`);
163
- }
164
- const arrayBuffer = await response.arrayBuffer();
165
- console.log(`[gRPC-Web] Success from ${this.url}/${service}/${method}`);
166
- return new Uint8Array(arrayBuffer);
167
- }
168
- catch (error) {
169
- console.error(`[gRPC-Web] Error from ${this.url}/${service}/${method}:`, error instanceof Error ? error.message : String(error));
170
- throw error;
171
- }
172
- }
173
- clientStreamingRequest() {
174
- throw new Error("Client streaming not yet implemented for gRPC-Web");
175
- }
176
- serverStreamingRequest(service, method, data) {
177
- return new rxjs.Observable((subscriber) => {
178
- const headers = {
179
- 'Content-Type': 'application/grpc-web+proto',
180
- 'X-Grpc-Web': '1',
181
- };
182
- // Add API key to headers if provided
183
- if (this.apiKey) {
184
- headers['x-api-key'] = this.apiKey;
185
- }
186
- fetch(`${this.url}/${service}/${method}`, {
187
- method: 'POST',
188
- headers,
189
- body: data.buffer,
190
- })
191
- .then(async (response) => {
192
- if (!response.ok) {
193
- throw new Error(`gRPC-Web error: ${response.status} ${response.statusText}`);
194
- }
195
- if (!response.body) {
196
- throw new Error('Response body is null');
197
- }
198
- const reader = response.body.getReader();
199
- try {
200
- while (true) {
201
- const { done, value } = await reader.read();
202
- if (done) {
203
- subscriber.complete();
204
- break;
205
- }
206
- if (value) {
207
- subscriber.next(value);
208
- }
209
- }
210
- }
211
- catch (error) {
212
- subscriber.error(error);
213
- }
214
- })
215
- .catch((error) => {
216
- subscriber.error(error);
217
- });
218
- return () => {
219
- // Cleanup logic if needed
220
- };
221
- });
222
- }
223
- bidirectionalStreamingRequest() {
224
- throw new Error("Bidirectional streaming not yet implemented for gRPC-Web");
225
- }
226
- }
227
-
228
- Object.defineProperty(exports, "AddSpanErrorRequest", {
229
- enumerable: true,
230
- get: function () { return parallax_gateway_pb.AddSpanErrorRequest; }
231
- });
232
- Object.defineProperty(exports, "AddSpanErrorResponse", {
233
- enumerable: true,
234
- get: function () { return parallax_gateway_pb.AddSpanErrorResponse; }
235
- });
236
- Object.defineProperty(exports, "AddSpanEventRequest", {
237
- enumerable: true,
238
- get: function () { return parallax_gateway_pb.AddSpanEventRequest; }
239
- });
240
- Object.defineProperty(exports, "AddSpanEventResponse", {
241
- enumerable: true,
242
- get: function () { return parallax_gateway_pb.AddSpanEventResponse; }
243
- });
244
- Object.defineProperty(exports, "AddSpanHintRequest", {
245
- enumerable: true,
246
- get: function () { return parallax_gateway_pb.AddSpanHintRequest; }
247
- });
248
- Object.defineProperty(exports, "AddSpanHintResponse", {
249
- enumerable: true,
250
- get: function () { return parallax_gateway_pb.AddSpanHintResponse; }
251
- });
252
- Object.defineProperty(exports, "CreateTraceRequest", {
253
- enumerable: true,
254
- get: function () { return parallax_gateway_pb.CreateTraceRequest; }
255
- });
256
- Object.defineProperty(exports, "CreateTraceResponse", {
257
- enumerable: true,
258
- get: function () { return parallax_gateway_pb.CreateTraceResponse; }
259
- });
260
- Object.defineProperty(exports, "FinishSpanRequest", {
261
- enumerable: true,
262
- get: function () { return parallax_gateway_pb.FinishSpanRequest; }
263
- });
264
- Object.defineProperty(exports, "FinishSpanResponse", {
265
- enumerable: true,
266
- get: function () { return parallax_gateway_pb.FinishSpanResponse; }
267
- });
268
- Object.defineProperty(exports, "StartSpanRequest", {
269
- enumerable: true,
270
- get: function () { return parallax_gateway_pb.StartSpanRequest; }
271
- });
272
- Object.defineProperty(exports, "StartSpanResponse", {
273
- enumerable: true,
274
- get: function () { return parallax_gateway_pb.StartSpanResponse; }
275
- });
276
- exports.GrpcWebRpc = GrpcWebRpc;
277
- exports.ParallaxClient = ParallaxClient;
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'rxjs'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ParallaxWeb = {}, global.rxjs));
5
+ })(this, (function (exports, rxjs) { 'use strict';
6
+
7
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
8
+
9
+ var grpcWeb = {};
10
+
11
+ /*
12
+
13
+ Copyright The Closure Library Authors.
14
+ SPDX-License-Identifier: Apache-2.0
15
+ */
16
+
17
+ var hasRequiredGrpcWeb;
18
+
19
+ function requireGrpcWeb () {
20
+ if (hasRequiredGrpcWeb) return grpcWeb;
21
+ hasRequiredGrpcWeb = 1;
22
+ 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)}
23
+ 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)}
24
+ 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]);
25
+ 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}}
26
+ 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";
27
+ 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"});
28
+ 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||
29
+ 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);};
30
+ 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--));}}
31
+ 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);}
32
+ 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.");}}
33
+ 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));}
34
+ 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}
35
+ 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);};
36
+ 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;}
37
+ 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;}
38
+ 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}
39
+ 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"];
40
+ 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
41
+ 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: "+
42
+ 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"));}
43
+ 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);};
44
+ 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,
45
+ -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);}}}
46
+ 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}};
47
+ 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}}
48
+ 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}
49
+ 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));}}
50
+ 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);}
51
+ 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",
52
+ 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]);
53
+ 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)||
54
+ (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,
55
+ 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)}
56
+ 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);});}
57
+ 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")),
58
+ 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+
59
+ 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++]=
60
+ 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}
61
+ 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())}
62
+ 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);
63
+ 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"};
64
+ rb=typeof globalThis!=="undefined"&&globalThis||self;
65
+ return grpcWeb;
66
+ }
67
+
68
+ var grpcWebExports = requireGrpcWeb();
69
+
70
+ var parallax_gateway_pb = {};
71
+
72
+ var googleProtobuf = {};
73
+
74
+ /*
75
+
76
+ Copyright The Closure Library Authors.
77
+ SPDX-License-Identifier: Apache-2.0
78
+ */
79
+
80
+ var hasRequiredGoogleProtobuf;
81
+
82
+ function requireGoogleProtobuf () {
83
+ if (hasRequiredGoogleProtobuf) return googleProtobuf;
84
+ hasRequiredGoogleProtobuf = 1;
85
+ (function (exports$1) {
86
+ 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});}}
87
+ 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}();
88
+ 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}
89
+ 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;
90
+ 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;}
91
+ 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";
92
+ 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};
93
+ 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);}
94
+ 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);}
95
+ 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);
96
+ 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;
97
+ 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}};
98
+ "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;
99
+ 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)};
100
+ 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;
101
+ 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;
102
+ 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);};
103
+ 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)}
104
+ 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));}}
105
+ 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);
106
+ 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);
107
+ 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);
108
+ 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);
109
+ 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);
110
+ 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);
111
+ 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);
112
+ 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);
113
+ 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);
114
+ 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);
115
+ 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}
116
+ 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);
117
+ 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)}
118
+ 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);
119
+ 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);
120
+ 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}
121
+ 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);
122
+ 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);
123
+ 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);
124
+ 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);
125
+ 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;
126
+ 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;
127
+ 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;
128
+ 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;
129
+ 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;
130
+ 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<=
131
+ 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)};
132
+ 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)};
133
+ 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;
134
+ 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;
135
+ 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;
136
+ 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;
137
+ I.prototype.ra=function(){return this.da()};I.prototype.readEnum=I.prototype.ra;
138
+ 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};
139
+ 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;
140
+ 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);};
141
+ 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};
142
+ 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;
143
+ 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;
144
+ 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;
145
+ 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)};
146
+ 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)};
147
+ 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;
148
+ 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()};
149
+ 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()};
150
+ 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()};
151
+ 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;
152
+ 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;
153
+ 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;
154
+ 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)};
155
+ 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)};
156
+ 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)};
157
+ 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)};
158
+ 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)};
159
+ 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};
160
+ N.prototype.getJsPbMessageId=N.prototype.Ib;
161
+ 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]);};
162
+ 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;}}};
163
+ 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);}};
164
+ 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)};
165
+ 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};
166
+ 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)};
167
+ 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;
168
+ 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,"")};
169
+ 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)}
170
+ 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;}}
171
+ 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)};
172
+ 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};
173
+ 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;
174
+ 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)};
175
+ 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;
176
+ 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==
177
+ 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()))}
178
+ 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}
179
+ 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);
180
+ 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"!=
181
+ 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;
182
+ 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);}};
183
+ 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;
184
+ 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;
185
+ 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;
186
+ 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;
187
+ 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;
188
+ 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);};
189
+ 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;
190
+ 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-
191
+ 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;
192
+ 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;
193
+ 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;
194
+ 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;
195
+ 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;
196
+ 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;
197
+ 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;
198
+ 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};
199
+ 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);}
200
+ 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;
201
+ 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;
202
+ 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;
203
+ 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));};
204
+ 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;
205
+ 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;
206
+ 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));};
207
+ 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));};
208
+ 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;
209
+ 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;
210
+ 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]);};
211
+ 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]));};
212
+ 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;
213
+ 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;
214
+ 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;
215
+ 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;
216
+ 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]);};
217
+ 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;
218
+ 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);}};
219
+ 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;
220
+ 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;
221
+ 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);}};
222
+ 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;
223
+ 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);}};
224
+ 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);}};
225
+ 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]);};
226
+ 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;
227
+ 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;
228
+ 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;
229
+ 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);
230
+ } (googleProtobuf));
231
+ return googleProtobuf;
232
+ }
233
+
234
+ var timestamp_pb = {};
235
+
236
+ var hasRequiredTimestamp_pb;
237
+
238
+ function requireTimestamp_pb () {
239
+ if (hasRequiredTimestamp_pb) return timestamp_pb;
240
+ hasRequiredTimestamp_pb = 1;
241
+ (function (exports$1) {
242
+ // source: google/protobuf/timestamp.proto
243
+ /**
244
+ * @fileoverview
245
+ * @enhanceable
246
+ * @suppress {missingRequire} reports error on implicit type usages.
247
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
248
+ * field starts with 'MSG_' and isn't a translatable message.
249
+ * @public
250
+ */
251
+ // GENERATED CODE -- DO NOT EDIT!
252
+ /* eslint-disable */
253
+ // @ts-nocheck
254
+
255
+ var jspb = requireGoogleProtobuf();
256
+ var goog = jspb;
257
+ var global =
258
+ (typeof globalThis !== 'undefined' && globalThis) ||
259
+ (typeof window !== 'undefined' && window) ||
260
+ (typeof global !== 'undefined' && global) ||
261
+ (typeof self !== 'undefined' && self) ||
262
+ (function () { return this; }).call(null) ||
263
+ Function('return this')();
264
+
265
+ goog.exportSymbol('proto.google.protobuf.Timestamp', null, global);
266
+ /**
267
+ * Generated by JsPbCodeGenerator.
268
+ * @param {Array=} opt_data Optional initial data array, typically from a
269
+ * server response, or constructed directly in Javascript. The array is used
270
+ * in place and becomes part of the constructed object. It is not cloned.
271
+ * If no data is provided, the constructed object will be empty, but still
272
+ * valid.
273
+ * @extends {jspb.Message}
274
+ * @constructor
275
+ */
276
+ proto.google.protobuf.Timestamp = function(opt_data) {
277
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
278
+ };
279
+ goog.inherits(proto.google.protobuf.Timestamp, jspb.Message);
280
+ if (goog.DEBUG && !COMPILED) {
281
+ /**
282
+ * @public
283
+ * @override
284
+ */
285
+ proto.google.protobuf.Timestamp.displayName = 'proto.google.protobuf.Timestamp';
286
+ }
287
+
288
+
289
+
290
+ if (jspb.Message.GENERATE_TO_OBJECT) {
291
+ /**
292
+ * Creates an object representation of this proto.
293
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
294
+ * Optional fields that are not set will be set to undefined.
295
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
296
+ * For the list of reserved names please see:
297
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
298
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
299
+ * JSPB instance for transitional soy proto support:
300
+ * http://goto/soy-param-migration
301
+ * @return {!Object}
302
+ */
303
+ proto.google.protobuf.Timestamp.prototype.toObject = function(opt_includeInstance) {
304
+ return proto.google.protobuf.Timestamp.toObject(opt_includeInstance, this);
305
+ };
306
+
307
+
308
+ /**
309
+ * Static version of the {@see toObject} method.
310
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
311
+ * the JSPB instance for transitional soy proto support:
312
+ * http://goto/soy-param-migration
313
+ * @param {!proto.google.protobuf.Timestamp} msg The msg instance to transform.
314
+ * @return {!Object}
315
+ * @suppress {unusedLocalVariables} f is only used for nested messages
316
+ */
317
+ proto.google.protobuf.Timestamp.toObject = function(includeInstance, msg) {
318
+ var obj = {
319
+ seconds: jspb.Message.getFieldWithDefault(msg, 1, 0),
320
+ nanos: jspb.Message.getFieldWithDefault(msg, 2, 0)
321
+ };
322
+
323
+ if (includeInstance) {
324
+ obj.$jspbMessageInstance = msg;
325
+ }
326
+ return obj;
327
+ };
328
+ }
329
+
330
+
331
+ /**
332
+ * Deserializes binary data (in protobuf wire format).
333
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
334
+ * @return {!proto.google.protobuf.Timestamp}
335
+ */
336
+ proto.google.protobuf.Timestamp.deserializeBinary = function(bytes) {
337
+ var reader = new jspb.BinaryReader(bytes);
338
+ var msg = new proto.google.protobuf.Timestamp;
339
+ return proto.google.protobuf.Timestamp.deserializeBinaryFromReader(msg, reader);
340
+ };
341
+
342
+
343
+ /**
344
+ * Deserializes binary data (in protobuf wire format) from the
345
+ * given reader into the given message object.
346
+ * @param {!proto.google.protobuf.Timestamp} msg The message object to deserialize into.
347
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
348
+ * @return {!proto.google.protobuf.Timestamp}
349
+ */
350
+ proto.google.protobuf.Timestamp.deserializeBinaryFromReader = function(msg, reader) {
351
+ while (reader.nextField()) {
352
+ if (reader.isEndGroup()) {
353
+ break;
354
+ }
355
+ var field = reader.getFieldNumber();
356
+ switch (field) {
357
+ case 1:
358
+ var value = /** @type {number} */ (reader.readInt64());
359
+ msg.setSeconds(value);
360
+ break;
361
+ case 2:
362
+ var value = /** @type {number} */ (reader.readInt32());
363
+ msg.setNanos(value);
364
+ break;
365
+ default:
366
+ reader.skipField();
367
+ break;
368
+ }
369
+ }
370
+ return msg;
371
+ };
372
+
373
+
374
+ /**
375
+ * Serializes the message to binary data (in protobuf wire format).
376
+ * @return {!Uint8Array}
377
+ */
378
+ proto.google.protobuf.Timestamp.prototype.serializeBinary = function() {
379
+ var writer = new jspb.BinaryWriter();
380
+ proto.google.protobuf.Timestamp.serializeBinaryToWriter(this, writer);
381
+ return writer.getResultBuffer();
382
+ };
383
+
384
+
385
+ /**
386
+ * Serializes the given message to binary data (in protobuf wire
387
+ * format), writing to the given BinaryWriter.
388
+ * @param {!proto.google.protobuf.Timestamp} message
389
+ * @param {!jspb.BinaryWriter} writer
390
+ * @suppress {unusedLocalVariables} f is only used for nested messages
391
+ */
392
+ proto.google.protobuf.Timestamp.serializeBinaryToWriter = function(message, writer) {
393
+ var f = undefined;
394
+ f = message.getSeconds();
395
+ if (f !== 0) {
396
+ writer.writeInt64(
397
+ 1,
398
+ f
399
+ );
400
+ }
401
+ f = message.getNanos();
402
+ if (f !== 0) {
403
+ writer.writeInt32(
404
+ 2,
405
+ f
406
+ );
407
+ }
408
+ };
409
+
410
+
411
+ /**
412
+ * optional int64 seconds = 1;
413
+ * @return {number}
414
+ */
415
+ proto.google.protobuf.Timestamp.prototype.getSeconds = function() {
416
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
417
+ };
418
+
419
+
420
+ /**
421
+ * @param {number} value
422
+ * @return {!proto.google.protobuf.Timestamp} returns this
423
+ */
424
+ proto.google.protobuf.Timestamp.prototype.setSeconds = function(value) {
425
+ return jspb.Message.setProto3IntField(this, 1, value);
426
+ };
427
+
428
+
429
+ /**
430
+ * optional int32 nanos = 2;
431
+ * @return {number}
432
+ */
433
+ proto.google.protobuf.Timestamp.prototype.getNanos = function() {
434
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
435
+ };
436
+
437
+
438
+ /**
439
+ * @param {number} value
440
+ * @return {!proto.google.protobuf.Timestamp} returns this
441
+ */
442
+ proto.google.protobuf.Timestamp.prototype.setNanos = function(value) {
443
+ return jspb.Message.setProto3IntField(this, 2, value);
444
+ };
445
+
446
+
447
+ goog.object.extend(exports$1, proto.google.protobuf);
448
+ /* This code will be inserted into generated code for
449
+ * google/protobuf/timestamp.proto. */
450
+
451
+ /**
452
+ * Returns a JavaScript 'Date' object corresponding to this Timestamp.
453
+ * @return {!Date}
454
+ */
455
+ proto.google.protobuf.Timestamp.prototype.toDate = function() {
456
+ var seconds = this.getSeconds();
457
+ var nanos = this.getNanos();
458
+
459
+ return new Date((seconds * 1000) + (nanos / 1000000));
460
+ };
461
+
462
+
463
+ /**
464
+ * Sets the value of this Timestamp object to be the given Date.
465
+ * @param {!Date} value The value to set.
466
+ */
467
+ proto.google.protobuf.Timestamp.prototype.fromDate = function(value) {
468
+ this.setSeconds(Math.floor(value.getTime() / 1000));
469
+ this.setNanos(value.getMilliseconds() * 1000000);
470
+ };
471
+
472
+
473
+ /**
474
+ * Factory method that returns a Timestamp object with value equal to
475
+ * the given Date.
476
+ * @param {!Date} value The value to set.
477
+ * @return {!proto.google.protobuf.Timestamp}
478
+ */
479
+ proto.google.protobuf.Timestamp.fromDate = function(value) {
480
+ var timestamp = new proto.google.protobuf.Timestamp();
481
+ timestamp.fromDate(value);
482
+ return timestamp;
483
+ };
484
+ } (timestamp_pb));
485
+ return timestamp_pb;
486
+ }
487
+
488
+ var status_pb = {};
489
+
490
+ var hasRequiredStatus_pb;
491
+
492
+ function requireStatus_pb () {
493
+ if (hasRequiredStatus_pb) return status_pb;
494
+ hasRequiredStatus_pb = 1;
495
+ (function (exports$1) {
496
+ // source: proto/common/v1/status.proto
497
+ /**
498
+ * @fileoverview
499
+ * @enhanceable
500
+ * @suppress {missingRequire} reports error on implicit type usages.
501
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
502
+ * field starts with 'MSG_' and isn't a translatable message.
503
+ * @public
504
+ */
505
+ // GENERATED CODE -- DO NOT EDIT!
506
+ /* eslint-disable */
507
+ // @ts-nocheck
508
+
509
+ var jspb = requireGoogleProtobuf();
510
+ var goog = jspb;
511
+ var global =
512
+ (typeof globalThis !== 'undefined' && globalThis) ||
513
+ (typeof window !== 'undefined' && window) ||
514
+ (typeof global !== 'undefined' && global) ||
515
+ (typeof self !== 'undefined' && self) ||
516
+ (function () { return this; }).call(null) ||
517
+ Function('return this')();
518
+
519
+ goog.exportSymbol('proto.common.v1.ResponseStatus', null, global);
520
+ goog.exportSymbol('proto.common.v1.ResponseStatus.StatusCode', null, global);
521
+ /**
522
+ * Generated by JsPbCodeGenerator.
523
+ * @param {Array=} opt_data Optional initial data array, typically from a
524
+ * server response, or constructed directly in Javascript. The array is used
525
+ * in place and becomes part of the constructed object. It is not cloned.
526
+ * If no data is provided, the constructed object will be empty, but still
527
+ * valid.
528
+ * @extends {jspb.Message}
529
+ * @constructor
530
+ */
531
+ proto.common.v1.ResponseStatus = function(opt_data) {
532
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
533
+ };
534
+ goog.inherits(proto.common.v1.ResponseStatus, jspb.Message);
535
+ if (goog.DEBUG && !COMPILED) {
536
+ /**
537
+ * @public
538
+ * @override
539
+ */
540
+ proto.common.v1.ResponseStatus.displayName = 'proto.common.v1.ResponseStatus';
541
+ }
542
+
543
+
544
+
545
+ if (jspb.Message.GENERATE_TO_OBJECT) {
546
+ /**
547
+ * Creates an object representation of this proto.
548
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
549
+ * Optional fields that are not set will be set to undefined.
550
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
551
+ * For the list of reserved names please see:
552
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
553
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
554
+ * JSPB instance for transitional soy proto support:
555
+ * http://goto/soy-param-migration
556
+ * @return {!Object}
557
+ */
558
+ proto.common.v1.ResponseStatus.prototype.toObject = function(opt_includeInstance) {
559
+ return proto.common.v1.ResponseStatus.toObject(opt_includeInstance, this);
560
+ };
561
+
562
+
563
+ /**
564
+ * Static version of the {@see toObject} method.
565
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
566
+ * the JSPB instance for transitional soy proto support:
567
+ * http://goto/soy-param-migration
568
+ * @param {!proto.common.v1.ResponseStatus} msg The msg instance to transform.
569
+ * @return {!Object}
570
+ * @suppress {unusedLocalVariables} f is only used for nested messages
571
+ */
572
+ proto.common.v1.ResponseStatus.toObject = function(includeInstance, msg) {
573
+ var f, obj = {
574
+ code: jspb.Message.getFieldWithDefault(msg, 1, 0),
575
+ errorMessage: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
576
+ };
577
+
578
+ if (includeInstance) {
579
+ obj.$jspbMessageInstance = msg;
580
+ }
581
+ return obj;
582
+ };
583
+ }
584
+
585
+
586
+ /**
587
+ * Deserializes binary data (in protobuf wire format).
588
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
589
+ * @return {!proto.common.v1.ResponseStatus}
590
+ */
591
+ proto.common.v1.ResponseStatus.deserializeBinary = function(bytes) {
592
+ var reader = new jspb.BinaryReader(bytes);
593
+ var msg = new proto.common.v1.ResponseStatus;
594
+ return proto.common.v1.ResponseStatus.deserializeBinaryFromReader(msg, reader);
595
+ };
596
+
597
+
598
+ /**
599
+ * Deserializes binary data (in protobuf wire format) from the
600
+ * given reader into the given message object.
601
+ * @param {!proto.common.v1.ResponseStatus} msg The message object to deserialize into.
602
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
603
+ * @return {!proto.common.v1.ResponseStatus}
604
+ */
605
+ proto.common.v1.ResponseStatus.deserializeBinaryFromReader = function(msg, reader) {
606
+ while (reader.nextField()) {
607
+ if (reader.isEndGroup()) {
608
+ break;
609
+ }
610
+ var field = reader.getFieldNumber();
611
+ switch (field) {
612
+ case 1:
613
+ var value = /** @type {!proto.common.v1.ResponseStatus.StatusCode} */ (reader.readEnum());
614
+ msg.setCode(value);
615
+ break;
616
+ case 2:
617
+ var value = /** @type {string} */ (reader.readString());
618
+ msg.setErrorMessage(value);
619
+ break;
620
+ default:
621
+ reader.skipField();
622
+ break;
623
+ }
624
+ }
625
+ return msg;
626
+ };
627
+
628
+
629
+ /**
630
+ * Serializes the message to binary data (in protobuf wire format).
631
+ * @return {!Uint8Array}
632
+ */
633
+ proto.common.v1.ResponseStatus.prototype.serializeBinary = function() {
634
+ var writer = new jspb.BinaryWriter();
635
+ proto.common.v1.ResponseStatus.serializeBinaryToWriter(this, writer);
636
+ return writer.getResultBuffer();
637
+ };
638
+
639
+
640
+ /**
641
+ * Serializes the given message to binary data (in protobuf wire
642
+ * format), writing to the given BinaryWriter.
643
+ * @param {!proto.common.v1.ResponseStatus} message
644
+ * @param {!jspb.BinaryWriter} writer
645
+ * @suppress {unusedLocalVariables} f is only used for nested messages
646
+ */
647
+ proto.common.v1.ResponseStatus.serializeBinaryToWriter = function(message, writer) {
648
+ var f = undefined;
649
+ f = message.getCode();
650
+ if (f !== 0.0) {
651
+ writer.writeEnum(
652
+ 1,
653
+ f
654
+ );
655
+ }
656
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
657
+ if (f != null) {
658
+ writer.writeString(
659
+ 2,
660
+ f
661
+ );
662
+ }
663
+ };
664
+
665
+
666
+ /**
667
+ * @enum {number}
668
+ */
669
+ proto.common.v1.ResponseStatus.StatusCode = {
670
+ STATUS_CODE_UNSPECIFIED: 0,
671
+ STATUS_CODE_SUCCESS: 1,
672
+ STATUS_CODE_NOT_FOUND: 2,
673
+ STATUS_CODE_VALIDATION_ERROR: 3,
674
+ STATUS_CODE_INTERNAL_ERROR: 4,
675
+ STATUS_CODE_UNAUTHENTICATED: 5
676
+ };
677
+
678
+ /**
679
+ * optional StatusCode code = 1;
680
+ * @return {!proto.common.v1.ResponseStatus.StatusCode}
681
+ */
682
+ proto.common.v1.ResponseStatus.prototype.getCode = function() {
683
+ return /** @type {!proto.common.v1.ResponseStatus.StatusCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
684
+ };
685
+
686
+
687
+ /**
688
+ * @param {!proto.common.v1.ResponseStatus.StatusCode} value
689
+ * @return {!proto.common.v1.ResponseStatus} returns this
690
+ */
691
+ proto.common.v1.ResponseStatus.prototype.setCode = function(value) {
692
+ return jspb.Message.setProto3EnumField(this, 1, value);
693
+ };
694
+
695
+
696
+ /**
697
+ * optional string error_message = 2;
698
+ * @return {string}
699
+ */
700
+ proto.common.v1.ResponseStatus.prototype.getErrorMessage = function() {
701
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
702
+ };
703
+
704
+
705
+ /**
706
+ * @param {string} value
707
+ * @return {!proto.common.v1.ResponseStatus} returns this
708
+ */
709
+ proto.common.v1.ResponseStatus.prototype.setErrorMessage = function(value) {
710
+ return jspb.Message.setField(this, 2, value);
711
+ };
712
+
713
+
714
+ /**
715
+ * Clears the field making it undefined.
716
+ * @return {!proto.common.v1.ResponseStatus} returns this
717
+ */
718
+ proto.common.v1.ResponseStatus.prototype.clearErrorMessage = function() {
719
+ return jspb.Message.setField(this, 2, undefined);
720
+ };
721
+
722
+
723
+ /**
724
+ * Returns whether this field is set.
725
+ * @return {boolean}
726
+ */
727
+ proto.common.v1.ResponseStatus.prototype.hasErrorMessage = function() {
728
+ return jspb.Message.getField(this, 2) != null;
729
+ };
730
+
731
+
732
+ goog.object.extend(exports$1, proto.common.v1);
733
+ } (status_pb));
734
+ return status_pb;
735
+ }
736
+
737
+ var hasRequiredParallax_gateway_pb;
738
+
739
+ function requireParallax_gateway_pb () {
740
+ if (hasRequiredParallax_gateway_pb) return parallax_gateway_pb;
741
+ hasRequiredParallax_gateway_pb = 1;
742
+ (function (exports$1) {
743
+ // source: proto/gateway/parallax/v1/parallax_gateway.proto
744
+ /**
745
+ * @fileoverview
746
+ * @enhanceable
747
+ * @suppress {missingRequire} reports error on implicit type usages.
748
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
749
+ * field starts with 'MSG_' and isn't a translatable message.
750
+ * @public
751
+ */
752
+ // GENERATED CODE -- DO NOT EDIT!
753
+ /* eslint-disable */
754
+ // @ts-nocheck
755
+
756
+ var jspb = requireGoogleProtobuf();
757
+ var goog = jspb;
758
+ var global =
759
+ (typeof globalThis !== 'undefined' && globalThis) ||
760
+ (typeof window !== 'undefined' && window) ||
761
+ (typeof global !== 'undefined' && global) ||
762
+ (typeof self !== 'undefined' && self) ||
763
+ (function () { return this; }).call(null) ||
764
+ Function('return this')();
765
+
766
+ var google_protobuf_timestamp_pb = requireTimestamp_pb();
767
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
768
+ var proto_common_v1_status_pb = requireStatus_pb();
769
+ goog.object.extend(proto, proto_common_v1_status_pb);
770
+ goog.exportSymbol('proto.gateway.parallax.v1.AddSpanErrorRequest', null, global);
771
+ goog.exportSymbol('proto.gateway.parallax.v1.AddSpanErrorResponse', null, global);
772
+ goog.exportSymbol('proto.gateway.parallax.v1.AddSpanEventRequest', null, global);
773
+ goog.exportSymbol('proto.gateway.parallax.v1.AddSpanEventResponse', null, global);
774
+ goog.exportSymbol('proto.gateway.parallax.v1.AddSpanHintRequest', null, global);
775
+ goog.exportSymbol('proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction', null, global);
776
+ goog.exportSymbol('proto.gateway.parallax.v1.AddSpanHintRequest.HintTypeCase', null, global);
777
+ goog.exportSymbol('proto.gateway.parallax.v1.AddSpanHintResponse', null, global);
778
+ goog.exportSymbol('proto.gateway.parallax.v1.CreateTraceRequest', null, global);
779
+ goog.exportSymbol('proto.gateway.parallax.v1.CreateTraceResponse', null, global);
780
+ goog.exportSymbol('proto.gateway.parallax.v1.FinishSpanRequest', null, global);
781
+ goog.exportSymbol('proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus', null, global);
782
+ goog.exportSymbol('proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.StatusCode', null, global);
783
+ goog.exportSymbol('proto.gateway.parallax.v1.FinishSpanResponse', null, global);
784
+ goog.exportSymbol('proto.gateway.parallax.v1.StartSpanRequest', null, global);
785
+ goog.exportSymbol('proto.gateway.parallax.v1.StartSpanResponse', null, global);
786
+ /**
787
+ * Generated by JsPbCodeGenerator.
788
+ * @param {Array=} opt_data Optional initial data array, typically from a
789
+ * server response, or constructed directly in Javascript. The array is used
790
+ * in place and becomes part of the constructed object. It is not cloned.
791
+ * If no data is provided, the constructed object will be empty, but still
792
+ * valid.
793
+ * @extends {jspb.Message}
794
+ * @constructor
795
+ */
796
+ proto.gateway.parallax.v1.CreateTraceRequest = function(opt_data) {
797
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.parallax.v1.CreateTraceRequest.repeatedFields_, null);
798
+ };
799
+ goog.inherits(proto.gateway.parallax.v1.CreateTraceRequest, jspb.Message);
800
+ if (goog.DEBUG && !COMPILED) {
801
+ /**
802
+ * @public
803
+ * @override
804
+ */
805
+ proto.gateway.parallax.v1.CreateTraceRequest.displayName = 'proto.gateway.parallax.v1.CreateTraceRequest';
806
+ }
807
+ /**
808
+ * Generated by JsPbCodeGenerator.
809
+ * @param {Array=} opt_data Optional initial data array, typically from a
810
+ * server response, or constructed directly in Javascript. The array is used
811
+ * in place and becomes part of the constructed object. It is not cloned.
812
+ * If no data is provided, the constructed object will be empty, but still
813
+ * valid.
814
+ * @extends {jspb.Message}
815
+ * @constructor
816
+ */
817
+ proto.gateway.parallax.v1.CreateTraceResponse = function(opt_data) {
818
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
819
+ };
820
+ goog.inherits(proto.gateway.parallax.v1.CreateTraceResponse, jspb.Message);
821
+ if (goog.DEBUG && !COMPILED) {
822
+ /**
823
+ * @public
824
+ * @override
825
+ */
826
+ proto.gateway.parallax.v1.CreateTraceResponse.displayName = 'proto.gateway.parallax.v1.CreateTraceResponse';
827
+ }
828
+ /**
829
+ * Generated by JsPbCodeGenerator.
830
+ * @param {Array=} opt_data Optional initial data array, typically from a
831
+ * server response, or constructed directly in Javascript. The array is used
832
+ * in place and becomes part of the constructed object. It is not cloned.
833
+ * If no data is provided, the constructed object will be empty, but still
834
+ * valid.
835
+ * @extends {jspb.Message}
836
+ * @constructor
837
+ */
838
+ proto.gateway.parallax.v1.StartSpanRequest = function(opt_data) {
839
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
840
+ };
841
+ goog.inherits(proto.gateway.parallax.v1.StartSpanRequest, jspb.Message);
842
+ if (goog.DEBUG && !COMPILED) {
843
+ /**
844
+ * @public
845
+ * @override
846
+ */
847
+ proto.gateway.parallax.v1.StartSpanRequest.displayName = 'proto.gateway.parallax.v1.StartSpanRequest';
848
+ }
849
+ /**
850
+ * Generated by JsPbCodeGenerator.
851
+ * @param {Array=} opt_data Optional initial data array, typically from a
852
+ * server response, or constructed directly in Javascript. The array is used
853
+ * in place and becomes part of the constructed object. It is not cloned.
854
+ * If no data is provided, the constructed object will be empty, but still
855
+ * valid.
856
+ * @extends {jspb.Message}
857
+ * @constructor
858
+ */
859
+ proto.gateway.parallax.v1.StartSpanResponse = function(opt_data) {
860
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
861
+ };
862
+ goog.inherits(proto.gateway.parallax.v1.StartSpanResponse, jspb.Message);
863
+ if (goog.DEBUG && !COMPILED) {
864
+ /**
865
+ * @public
866
+ * @override
867
+ */
868
+ proto.gateway.parallax.v1.StartSpanResponse.displayName = 'proto.gateway.parallax.v1.StartSpanResponse';
869
+ }
870
+ /**
871
+ * Generated by JsPbCodeGenerator.
872
+ * @param {Array=} opt_data Optional initial data array, typically from a
873
+ * server response, or constructed directly in Javascript. The array is used
874
+ * in place and becomes part of the constructed object. It is not cloned.
875
+ * If no data is provided, the constructed object will be empty, but still
876
+ * valid.
877
+ * @extends {jspb.Message}
878
+ * @constructor
879
+ */
880
+ proto.gateway.parallax.v1.FinishSpanRequest = function(opt_data) {
881
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
882
+ };
883
+ goog.inherits(proto.gateway.parallax.v1.FinishSpanRequest, jspb.Message);
884
+ if (goog.DEBUG && !COMPILED) {
885
+ /**
886
+ * @public
887
+ * @override
888
+ */
889
+ proto.gateway.parallax.v1.FinishSpanRequest.displayName = 'proto.gateway.parallax.v1.FinishSpanRequest';
890
+ }
891
+ /**
892
+ * Generated by JsPbCodeGenerator.
893
+ * @param {Array=} opt_data Optional initial data array, typically from a
894
+ * server response, or constructed directly in Javascript. The array is used
895
+ * in place and becomes part of the constructed object. It is not cloned.
896
+ * If no data is provided, the constructed object will be empty, but still
897
+ * valid.
898
+ * @extends {jspb.Message}
899
+ * @constructor
900
+ */
901
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus = function(opt_data) {
902
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
903
+ };
904
+ goog.inherits(proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus, jspb.Message);
905
+ if (goog.DEBUG && !COMPILED) {
906
+ /**
907
+ * @public
908
+ * @override
909
+ */
910
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.displayName = 'proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus';
911
+ }
912
+ /**
913
+ * Generated by JsPbCodeGenerator.
914
+ * @param {Array=} opt_data Optional initial data array, typically from a
915
+ * server response, or constructed directly in Javascript. The array is used
916
+ * in place and becomes part of the constructed object. It is not cloned.
917
+ * If no data is provided, the constructed object will be empty, but still
918
+ * valid.
919
+ * @extends {jspb.Message}
920
+ * @constructor
921
+ */
922
+ proto.gateway.parallax.v1.FinishSpanResponse = function(opt_data) {
923
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
924
+ };
925
+ goog.inherits(proto.gateway.parallax.v1.FinishSpanResponse, jspb.Message);
926
+ if (goog.DEBUG && !COMPILED) {
927
+ /**
928
+ * @public
929
+ * @override
930
+ */
931
+ proto.gateway.parallax.v1.FinishSpanResponse.displayName = 'proto.gateway.parallax.v1.FinishSpanResponse';
932
+ }
933
+ /**
934
+ * Generated by JsPbCodeGenerator.
935
+ * @param {Array=} opt_data Optional initial data array, typically from a
936
+ * server response, or constructed directly in Javascript. The array is used
937
+ * in place and becomes part of the constructed object. It is not cloned.
938
+ * If no data is provided, the constructed object will be empty, but still
939
+ * valid.
940
+ * @extends {jspb.Message}
941
+ * @constructor
942
+ */
943
+ proto.gateway.parallax.v1.AddSpanEventRequest = function(opt_data) {
944
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
945
+ };
946
+ goog.inherits(proto.gateway.parallax.v1.AddSpanEventRequest, jspb.Message);
947
+ if (goog.DEBUG && !COMPILED) {
948
+ /**
949
+ * @public
950
+ * @override
951
+ */
952
+ proto.gateway.parallax.v1.AddSpanEventRequest.displayName = 'proto.gateway.parallax.v1.AddSpanEventRequest';
953
+ }
954
+ /**
955
+ * Generated by JsPbCodeGenerator.
956
+ * @param {Array=} opt_data Optional initial data array, typically from a
957
+ * server response, or constructed directly in Javascript. The array is used
958
+ * in place and becomes part of the constructed object. It is not cloned.
959
+ * If no data is provided, the constructed object will be empty, but still
960
+ * valid.
961
+ * @extends {jspb.Message}
962
+ * @constructor
963
+ */
964
+ proto.gateway.parallax.v1.AddSpanEventResponse = function(opt_data) {
965
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
966
+ };
967
+ goog.inherits(proto.gateway.parallax.v1.AddSpanEventResponse, jspb.Message);
968
+ if (goog.DEBUG && !COMPILED) {
969
+ /**
970
+ * @public
971
+ * @override
972
+ */
973
+ proto.gateway.parallax.v1.AddSpanEventResponse.displayName = 'proto.gateway.parallax.v1.AddSpanEventResponse';
974
+ }
975
+ /**
976
+ * Generated by JsPbCodeGenerator.
977
+ * @param {Array=} opt_data Optional initial data array, typically from a
978
+ * server response, or constructed directly in Javascript. The array is used
979
+ * in place and becomes part of the constructed object. It is not cloned.
980
+ * If no data is provided, the constructed object will be empty, but still
981
+ * valid.
982
+ * @extends {jspb.Message}
983
+ * @constructor
984
+ */
985
+ proto.gateway.parallax.v1.AddSpanErrorRequest = function(opt_data) {
986
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
987
+ };
988
+ goog.inherits(proto.gateway.parallax.v1.AddSpanErrorRequest, jspb.Message);
989
+ if (goog.DEBUG && !COMPILED) {
990
+ /**
991
+ * @public
992
+ * @override
993
+ */
994
+ proto.gateway.parallax.v1.AddSpanErrorRequest.displayName = 'proto.gateway.parallax.v1.AddSpanErrorRequest';
995
+ }
996
+ /**
997
+ * Generated by JsPbCodeGenerator.
998
+ * @param {Array=} opt_data Optional initial data array, typically from a
999
+ * server response, or constructed directly in Javascript. The array is used
1000
+ * in place and becomes part of the constructed object. It is not cloned.
1001
+ * If no data is provided, the constructed object will be empty, but still
1002
+ * valid.
1003
+ * @extends {jspb.Message}
1004
+ * @constructor
1005
+ */
1006
+ proto.gateway.parallax.v1.AddSpanErrorResponse = function(opt_data) {
1007
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1008
+ };
1009
+ goog.inherits(proto.gateway.parallax.v1.AddSpanErrorResponse, jspb.Message);
1010
+ if (goog.DEBUG && !COMPILED) {
1011
+ /**
1012
+ * @public
1013
+ * @override
1014
+ */
1015
+ proto.gateway.parallax.v1.AddSpanErrorResponse.displayName = 'proto.gateway.parallax.v1.AddSpanErrorResponse';
1016
+ }
1017
+ /**
1018
+ * Generated by JsPbCodeGenerator.
1019
+ * @param {Array=} opt_data Optional initial data array, typically from a
1020
+ * server response, or constructed directly in Javascript. The array is used
1021
+ * in place and becomes part of the constructed object. It is not cloned.
1022
+ * If no data is provided, the constructed object will be empty, but still
1023
+ * valid.
1024
+ * @extends {jspb.Message}
1025
+ * @constructor
1026
+ */
1027
+ proto.gateway.parallax.v1.AddSpanHintRequest = function(opt_data) {
1028
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gateway.parallax.v1.AddSpanHintRequest.oneofGroups_);
1029
+ };
1030
+ goog.inherits(proto.gateway.parallax.v1.AddSpanHintRequest, jspb.Message);
1031
+ if (goog.DEBUG && !COMPILED) {
1032
+ /**
1033
+ * @public
1034
+ * @override
1035
+ */
1036
+ proto.gateway.parallax.v1.AddSpanHintRequest.displayName = 'proto.gateway.parallax.v1.AddSpanHintRequest';
1037
+ }
1038
+ /**
1039
+ * Generated by JsPbCodeGenerator.
1040
+ * @param {Array=} opt_data Optional initial data array, typically from a
1041
+ * server response, or constructed directly in Javascript. The array is used
1042
+ * in place and becomes part of the constructed object. It is not cloned.
1043
+ * If no data is provided, the constructed object will be empty, but still
1044
+ * valid.
1045
+ * @extends {jspb.Message}
1046
+ * @constructor
1047
+ */
1048
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction = function(opt_data) {
1049
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1050
+ };
1051
+ goog.inherits(proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction, jspb.Message);
1052
+ if (goog.DEBUG && !COMPILED) {
1053
+ /**
1054
+ * @public
1055
+ * @override
1056
+ */
1057
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.displayName = 'proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction';
1058
+ }
1059
+ /**
1060
+ * Generated by JsPbCodeGenerator.
1061
+ * @param {Array=} opt_data Optional initial data array, typically from a
1062
+ * server response, or constructed directly in Javascript. The array is used
1063
+ * in place and becomes part of the constructed object. It is not cloned.
1064
+ * If no data is provided, the constructed object will be empty, but still
1065
+ * valid.
1066
+ * @extends {jspb.Message}
1067
+ * @constructor
1068
+ */
1069
+ proto.gateway.parallax.v1.AddSpanHintResponse = function(opt_data) {
1070
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1071
+ };
1072
+ goog.inherits(proto.gateway.parallax.v1.AddSpanHintResponse, jspb.Message);
1073
+ if (goog.DEBUG && !COMPILED) {
1074
+ /**
1075
+ * @public
1076
+ * @override
1077
+ */
1078
+ proto.gateway.parallax.v1.AddSpanHintResponse.displayName = 'proto.gateway.parallax.v1.AddSpanHintResponse';
1079
+ }
1080
+
1081
+ /**
1082
+ * List of repeated fields within this message type.
1083
+ * @private {!Array<number>}
1084
+ * @const
1085
+ */
1086
+ proto.gateway.parallax.v1.CreateTraceRequest.repeatedFields_ = [3];
1087
+
1088
+
1089
+
1090
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1091
+ /**
1092
+ * Creates an object representation of this proto.
1093
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1094
+ * Optional fields that are not set will be set to undefined.
1095
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1096
+ * For the list of reserved names please see:
1097
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1098
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1099
+ * JSPB instance for transitional soy proto support:
1100
+ * http://goto/soy-param-migration
1101
+ * @return {!Object}
1102
+ */
1103
+ proto.gateway.parallax.v1.CreateTraceRequest.prototype.toObject = function(opt_includeInstance) {
1104
+ return proto.gateway.parallax.v1.CreateTraceRequest.toObject(opt_includeInstance, this);
1105
+ };
1106
+
1107
+
1108
+ /**
1109
+ * Static version of the {@see toObject} method.
1110
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1111
+ * the JSPB instance for transitional soy proto support:
1112
+ * http://goto/soy-param-migration
1113
+ * @param {!proto.gateway.parallax.v1.CreateTraceRequest} msg The msg instance to transform.
1114
+ * @return {!Object}
1115
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1116
+ */
1117
+ proto.gateway.parallax.v1.CreateTraceRequest.toObject = function(includeInstance, msg) {
1118
+ var f, obj = {
1119
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1120
+ attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : [],
1121
+ tagsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
1122
+ };
1123
+
1124
+ if (includeInstance) {
1125
+ obj.$jspbMessageInstance = msg;
1126
+ }
1127
+ return obj;
1128
+ };
1129
+ }
1130
+
1131
+
1132
+ /**
1133
+ * Deserializes binary data (in protobuf wire format).
1134
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1135
+ * @return {!proto.gateway.parallax.v1.CreateTraceRequest}
1136
+ */
1137
+ proto.gateway.parallax.v1.CreateTraceRequest.deserializeBinary = function(bytes) {
1138
+ var reader = new jspb.BinaryReader(bytes);
1139
+ var msg = new proto.gateway.parallax.v1.CreateTraceRequest;
1140
+ return proto.gateway.parallax.v1.CreateTraceRequest.deserializeBinaryFromReader(msg, reader);
1141
+ };
1142
+
1143
+
1144
+ /**
1145
+ * Deserializes binary data (in protobuf wire format) from the
1146
+ * given reader into the given message object.
1147
+ * @param {!proto.gateway.parallax.v1.CreateTraceRequest} msg The message object to deserialize into.
1148
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1149
+ * @return {!proto.gateway.parallax.v1.CreateTraceRequest}
1150
+ */
1151
+ proto.gateway.parallax.v1.CreateTraceRequest.deserializeBinaryFromReader = function(msg, reader) {
1152
+ while (reader.nextField()) {
1153
+ if (reader.isEndGroup()) {
1154
+ break;
1155
+ }
1156
+ var field = reader.getFieldNumber();
1157
+ switch (field) {
1158
+ case 1:
1159
+ var value = /** @type {string} */ (reader.readString());
1160
+ msg.setName(value);
1161
+ break;
1162
+ case 2:
1163
+ var value = msg.getAttributesMap();
1164
+ reader.readMessage(value, function(message, reader) {
1165
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
1166
+ });
1167
+ break;
1168
+ case 3:
1169
+ var value = /** @type {string} */ (reader.readString());
1170
+ msg.addTags(value);
1171
+ break;
1172
+ default:
1173
+ reader.skipField();
1174
+ break;
1175
+ }
1176
+ }
1177
+ return msg;
1178
+ };
1179
+
1180
+
1181
+ /**
1182
+ * Serializes the message to binary data (in protobuf wire format).
1183
+ * @return {!Uint8Array}
1184
+ */
1185
+ proto.gateway.parallax.v1.CreateTraceRequest.prototype.serializeBinary = function() {
1186
+ var writer = new jspb.BinaryWriter();
1187
+ proto.gateway.parallax.v1.CreateTraceRequest.serializeBinaryToWriter(this, writer);
1188
+ return writer.getResultBuffer();
1189
+ };
1190
+
1191
+
1192
+ /**
1193
+ * Serializes the given message to binary data (in protobuf wire
1194
+ * format), writing to the given BinaryWriter.
1195
+ * @param {!proto.gateway.parallax.v1.CreateTraceRequest} message
1196
+ * @param {!jspb.BinaryWriter} writer
1197
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1198
+ */
1199
+ proto.gateway.parallax.v1.CreateTraceRequest.serializeBinaryToWriter = function(message, writer) {
1200
+ var f = undefined;
1201
+ f = message.getName();
1202
+ if (f.length > 0) {
1203
+ writer.writeString(
1204
+ 1,
1205
+ f
1206
+ );
1207
+ }
1208
+ f = message.getAttributesMap(true);
1209
+ if (f && f.getLength() > 0) {
1210
+ f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
1211
+ }
1212
+ f = message.getTagsList();
1213
+ if (f.length > 0) {
1214
+ writer.writeRepeatedString(
1215
+ 3,
1216
+ f
1217
+ );
1218
+ }
1219
+ };
1220
+
1221
+
1222
+ /**
1223
+ * optional string name = 1;
1224
+ * @return {string}
1225
+ */
1226
+ proto.gateway.parallax.v1.CreateTraceRequest.prototype.getName = function() {
1227
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1228
+ };
1229
+
1230
+
1231
+ /**
1232
+ * @param {string} value
1233
+ * @return {!proto.gateway.parallax.v1.CreateTraceRequest} returns this
1234
+ */
1235
+ proto.gateway.parallax.v1.CreateTraceRequest.prototype.setName = function(value) {
1236
+ return jspb.Message.setProto3StringField(this, 1, value);
1237
+ };
1238
+
1239
+
1240
+ /**
1241
+ * map<string, string> attributes = 2;
1242
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
1243
+ * empty, instead returning `undefined`
1244
+ * @return {!jspb.Map<string,string>}
1245
+ */
1246
+ proto.gateway.parallax.v1.CreateTraceRequest.prototype.getAttributesMap = function(opt_noLazyCreate) {
1247
+ return /** @type {!jspb.Map<string,string>} */ (
1248
+ jspb.Message.getMapField(this, 2, opt_noLazyCreate,
1249
+ null));
1250
+ };
1251
+
1252
+
1253
+ /**
1254
+ * Clears values from the map. The map will be non-null.
1255
+ * @return {!proto.gateway.parallax.v1.CreateTraceRequest} returns this
1256
+ */
1257
+ proto.gateway.parallax.v1.CreateTraceRequest.prototype.clearAttributesMap = function() {
1258
+ this.getAttributesMap().clear();
1259
+ return this;
1260
+ };
1261
+
1262
+
1263
+ /**
1264
+ * repeated string tags = 3;
1265
+ * @return {!Array<string>}
1266
+ */
1267
+ proto.gateway.parallax.v1.CreateTraceRequest.prototype.getTagsList = function() {
1268
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
1269
+ };
1270
+
1271
+
1272
+ /**
1273
+ * @param {!Array<string>} value
1274
+ * @return {!proto.gateway.parallax.v1.CreateTraceRequest} returns this
1275
+ */
1276
+ proto.gateway.parallax.v1.CreateTraceRequest.prototype.setTagsList = function(value) {
1277
+ return jspb.Message.setField(this, 3, value || []);
1278
+ };
1279
+
1280
+
1281
+ /**
1282
+ * @param {string} value
1283
+ * @param {number=} opt_index
1284
+ * @return {!proto.gateway.parallax.v1.CreateTraceRequest} returns this
1285
+ */
1286
+ proto.gateway.parallax.v1.CreateTraceRequest.prototype.addTags = function(value, opt_index) {
1287
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
1288
+ };
1289
+
1290
+
1291
+ /**
1292
+ * Clears the list making it empty but non-null.
1293
+ * @return {!proto.gateway.parallax.v1.CreateTraceRequest} returns this
1294
+ */
1295
+ proto.gateway.parallax.v1.CreateTraceRequest.prototype.clearTagsList = function() {
1296
+ return this.setTagsList([]);
1297
+ };
1298
+
1299
+
1300
+
1301
+
1302
+
1303
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1304
+ /**
1305
+ * Creates an object representation of this proto.
1306
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1307
+ * Optional fields that are not set will be set to undefined.
1308
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1309
+ * For the list of reserved names please see:
1310
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1311
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1312
+ * JSPB instance for transitional soy proto support:
1313
+ * http://goto/soy-param-migration
1314
+ * @return {!Object}
1315
+ */
1316
+ proto.gateway.parallax.v1.CreateTraceResponse.prototype.toObject = function(opt_includeInstance) {
1317
+ return proto.gateway.parallax.v1.CreateTraceResponse.toObject(opt_includeInstance, this);
1318
+ };
1319
+
1320
+
1321
+ /**
1322
+ * Static version of the {@see toObject} method.
1323
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1324
+ * the JSPB instance for transitional soy proto support:
1325
+ * http://goto/soy-param-migration
1326
+ * @param {!proto.gateway.parallax.v1.CreateTraceResponse} msg The msg instance to transform.
1327
+ * @return {!Object}
1328
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1329
+ */
1330
+ proto.gateway.parallax.v1.CreateTraceResponse.toObject = function(includeInstance, msg) {
1331
+ var f, obj = {
1332
+ status: (f = msg.getStatus()) && proto_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
1333
+ traceId: jspb.Message.getFieldWithDefault(msg, 2, "")
1334
+ };
1335
+
1336
+ if (includeInstance) {
1337
+ obj.$jspbMessageInstance = msg;
1338
+ }
1339
+ return obj;
1340
+ };
1341
+ }
1342
+
1343
+
1344
+ /**
1345
+ * Deserializes binary data (in protobuf wire format).
1346
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1347
+ * @return {!proto.gateway.parallax.v1.CreateTraceResponse}
1348
+ */
1349
+ proto.gateway.parallax.v1.CreateTraceResponse.deserializeBinary = function(bytes) {
1350
+ var reader = new jspb.BinaryReader(bytes);
1351
+ var msg = new proto.gateway.parallax.v1.CreateTraceResponse;
1352
+ return proto.gateway.parallax.v1.CreateTraceResponse.deserializeBinaryFromReader(msg, reader);
1353
+ };
1354
+
1355
+
1356
+ /**
1357
+ * Deserializes binary data (in protobuf wire format) from the
1358
+ * given reader into the given message object.
1359
+ * @param {!proto.gateway.parallax.v1.CreateTraceResponse} msg The message object to deserialize into.
1360
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1361
+ * @return {!proto.gateway.parallax.v1.CreateTraceResponse}
1362
+ */
1363
+ proto.gateway.parallax.v1.CreateTraceResponse.deserializeBinaryFromReader = function(msg, reader) {
1364
+ while (reader.nextField()) {
1365
+ if (reader.isEndGroup()) {
1366
+ break;
1367
+ }
1368
+ var field = reader.getFieldNumber();
1369
+ switch (field) {
1370
+ case 1:
1371
+ var value = new proto_common_v1_status_pb.ResponseStatus;
1372
+ reader.readMessage(value,proto_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
1373
+ msg.setStatus(value);
1374
+ break;
1375
+ case 2:
1376
+ var value = /** @type {string} */ (reader.readString());
1377
+ msg.setTraceId(value);
1378
+ break;
1379
+ default:
1380
+ reader.skipField();
1381
+ break;
1382
+ }
1383
+ }
1384
+ return msg;
1385
+ };
1386
+
1387
+
1388
+ /**
1389
+ * Serializes the message to binary data (in protobuf wire format).
1390
+ * @return {!Uint8Array}
1391
+ */
1392
+ proto.gateway.parallax.v1.CreateTraceResponse.prototype.serializeBinary = function() {
1393
+ var writer = new jspb.BinaryWriter();
1394
+ proto.gateway.parallax.v1.CreateTraceResponse.serializeBinaryToWriter(this, writer);
1395
+ return writer.getResultBuffer();
1396
+ };
1397
+
1398
+
1399
+ /**
1400
+ * Serializes the given message to binary data (in protobuf wire
1401
+ * format), writing to the given BinaryWriter.
1402
+ * @param {!proto.gateway.parallax.v1.CreateTraceResponse} message
1403
+ * @param {!jspb.BinaryWriter} writer
1404
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1405
+ */
1406
+ proto.gateway.parallax.v1.CreateTraceResponse.serializeBinaryToWriter = function(message, writer) {
1407
+ var f = undefined;
1408
+ f = message.getStatus();
1409
+ if (f != null) {
1410
+ writer.writeMessage(
1411
+ 1,
1412
+ f,
1413
+ proto_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
1414
+ );
1415
+ }
1416
+ f = message.getTraceId();
1417
+ if (f.length > 0) {
1418
+ writer.writeString(
1419
+ 2,
1420
+ f
1421
+ );
1422
+ }
1423
+ };
1424
+
1425
+
1426
+ /**
1427
+ * optional common.v1.ResponseStatus status = 1;
1428
+ * @return {?proto.common.v1.ResponseStatus}
1429
+ */
1430
+ proto.gateway.parallax.v1.CreateTraceResponse.prototype.getStatus = function() {
1431
+ return /** @type{?proto.common.v1.ResponseStatus} */ (
1432
+ jspb.Message.getWrapperField(this, proto_common_v1_status_pb.ResponseStatus, 1));
1433
+ };
1434
+
1435
+
1436
+ /**
1437
+ * @param {?proto.common.v1.ResponseStatus|undefined} value
1438
+ * @return {!proto.gateway.parallax.v1.CreateTraceResponse} returns this
1439
+ */
1440
+ proto.gateway.parallax.v1.CreateTraceResponse.prototype.setStatus = function(value) {
1441
+ return jspb.Message.setWrapperField(this, 1, value);
1442
+ };
1443
+
1444
+
1445
+ /**
1446
+ * Clears the message field making it undefined.
1447
+ * @return {!proto.gateway.parallax.v1.CreateTraceResponse} returns this
1448
+ */
1449
+ proto.gateway.parallax.v1.CreateTraceResponse.prototype.clearStatus = function() {
1450
+ return this.setStatus(undefined);
1451
+ };
1452
+
1453
+
1454
+ /**
1455
+ * Returns whether this field is set.
1456
+ * @return {boolean}
1457
+ */
1458
+ proto.gateway.parallax.v1.CreateTraceResponse.prototype.hasStatus = function() {
1459
+ return jspb.Message.getField(this, 1) != null;
1460
+ };
1461
+
1462
+
1463
+ /**
1464
+ * optional string trace_id = 2;
1465
+ * @return {string}
1466
+ */
1467
+ proto.gateway.parallax.v1.CreateTraceResponse.prototype.getTraceId = function() {
1468
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1469
+ };
1470
+
1471
+
1472
+ /**
1473
+ * @param {string} value
1474
+ * @return {!proto.gateway.parallax.v1.CreateTraceResponse} returns this
1475
+ */
1476
+ proto.gateway.parallax.v1.CreateTraceResponse.prototype.setTraceId = function(value) {
1477
+ return jspb.Message.setProto3StringField(this, 2, value);
1478
+ };
1479
+
1480
+
1481
+
1482
+
1483
+
1484
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1485
+ /**
1486
+ * Creates an object representation of this proto.
1487
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1488
+ * Optional fields that are not set will be set to undefined.
1489
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1490
+ * For the list of reserved names please see:
1491
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1492
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1493
+ * JSPB instance for transitional soy proto support:
1494
+ * http://goto/soy-param-migration
1495
+ * @return {!Object}
1496
+ */
1497
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.toObject = function(opt_includeInstance) {
1498
+ return proto.gateway.parallax.v1.StartSpanRequest.toObject(opt_includeInstance, this);
1499
+ };
1500
+
1501
+
1502
+ /**
1503
+ * Static version of the {@see toObject} method.
1504
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1505
+ * the JSPB instance for transitional soy proto support:
1506
+ * http://goto/soy-param-migration
1507
+ * @param {!proto.gateway.parallax.v1.StartSpanRequest} msg The msg instance to transform.
1508
+ * @return {!Object}
1509
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1510
+ */
1511
+ proto.gateway.parallax.v1.StartSpanRequest.toObject = function(includeInstance, msg) {
1512
+ var f, obj = {
1513
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1514
+ traceId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1515
+ parentSpanId: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
1516
+ attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : [],
1517
+ startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1518
+ };
1519
+
1520
+ if (includeInstance) {
1521
+ obj.$jspbMessageInstance = msg;
1522
+ }
1523
+ return obj;
1524
+ };
1525
+ }
1526
+
1527
+
1528
+ /**
1529
+ * Deserializes binary data (in protobuf wire format).
1530
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1531
+ * @return {!proto.gateway.parallax.v1.StartSpanRequest}
1532
+ */
1533
+ proto.gateway.parallax.v1.StartSpanRequest.deserializeBinary = function(bytes) {
1534
+ var reader = new jspb.BinaryReader(bytes);
1535
+ var msg = new proto.gateway.parallax.v1.StartSpanRequest;
1536
+ return proto.gateway.parallax.v1.StartSpanRequest.deserializeBinaryFromReader(msg, reader);
1537
+ };
1538
+
1539
+
1540
+ /**
1541
+ * Deserializes binary data (in protobuf wire format) from the
1542
+ * given reader into the given message object.
1543
+ * @param {!proto.gateway.parallax.v1.StartSpanRequest} msg The message object to deserialize into.
1544
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1545
+ * @return {!proto.gateway.parallax.v1.StartSpanRequest}
1546
+ */
1547
+ proto.gateway.parallax.v1.StartSpanRequest.deserializeBinaryFromReader = function(msg, reader) {
1548
+ while (reader.nextField()) {
1549
+ if (reader.isEndGroup()) {
1550
+ break;
1551
+ }
1552
+ var field = reader.getFieldNumber();
1553
+ switch (field) {
1554
+ case 1:
1555
+ var value = /** @type {string} */ (reader.readString());
1556
+ msg.setName(value);
1557
+ break;
1558
+ case 2:
1559
+ var value = /** @type {string} */ (reader.readString());
1560
+ msg.setTraceId(value);
1561
+ break;
1562
+ case 3:
1563
+ var value = /** @type {string} */ (reader.readString());
1564
+ msg.setParentSpanId(value);
1565
+ break;
1566
+ case 4:
1567
+ var value = msg.getAttributesMap();
1568
+ reader.readMessage(value, function(message, reader) {
1569
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
1570
+ });
1571
+ break;
1572
+ case 5:
1573
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1574
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1575
+ msg.setStartTime(value);
1576
+ break;
1577
+ default:
1578
+ reader.skipField();
1579
+ break;
1580
+ }
1581
+ }
1582
+ return msg;
1583
+ };
1584
+
1585
+
1586
+ /**
1587
+ * Serializes the message to binary data (in protobuf wire format).
1588
+ * @return {!Uint8Array}
1589
+ */
1590
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.serializeBinary = function() {
1591
+ var writer = new jspb.BinaryWriter();
1592
+ proto.gateway.parallax.v1.StartSpanRequest.serializeBinaryToWriter(this, writer);
1593
+ return writer.getResultBuffer();
1594
+ };
1595
+
1596
+
1597
+ /**
1598
+ * Serializes the given message to binary data (in protobuf wire
1599
+ * format), writing to the given BinaryWriter.
1600
+ * @param {!proto.gateway.parallax.v1.StartSpanRequest} message
1601
+ * @param {!jspb.BinaryWriter} writer
1602
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1603
+ */
1604
+ proto.gateway.parallax.v1.StartSpanRequest.serializeBinaryToWriter = function(message, writer) {
1605
+ var f = undefined;
1606
+ f = message.getName();
1607
+ if (f.length > 0) {
1608
+ writer.writeString(
1609
+ 1,
1610
+ f
1611
+ );
1612
+ }
1613
+ f = message.getTraceId();
1614
+ if (f.length > 0) {
1615
+ writer.writeString(
1616
+ 2,
1617
+ f
1618
+ );
1619
+ }
1620
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
1621
+ if (f != null) {
1622
+ writer.writeString(
1623
+ 3,
1624
+ f
1625
+ );
1626
+ }
1627
+ f = message.getAttributesMap(true);
1628
+ if (f && f.getLength() > 0) {
1629
+ f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
1630
+ }
1631
+ f = message.getStartTime();
1632
+ if (f != null) {
1633
+ writer.writeMessage(
1634
+ 5,
1635
+ f,
1636
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1637
+ );
1638
+ }
1639
+ };
1640
+
1641
+
1642
+ /**
1643
+ * optional string name = 1;
1644
+ * @return {string}
1645
+ */
1646
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.getName = function() {
1647
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1648
+ };
1649
+
1650
+
1651
+ /**
1652
+ * @param {string} value
1653
+ * @return {!proto.gateway.parallax.v1.StartSpanRequest} returns this
1654
+ */
1655
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.setName = function(value) {
1656
+ return jspb.Message.setProto3StringField(this, 1, value);
1657
+ };
1658
+
1659
+
1660
+ /**
1661
+ * optional string trace_id = 2;
1662
+ * @return {string}
1663
+ */
1664
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.getTraceId = function() {
1665
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1666
+ };
1667
+
1668
+
1669
+ /**
1670
+ * @param {string} value
1671
+ * @return {!proto.gateway.parallax.v1.StartSpanRequest} returns this
1672
+ */
1673
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.setTraceId = function(value) {
1674
+ return jspb.Message.setProto3StringField(this, 2, value);
1675
+ };
1676
+
1677
+
1678
+ /**
1679
+ * optional string parent_span_id = 3;
1680
+ * @return {string}
1681
+ */
1682
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.getParentSpanId = function() {
1683
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1684
+ };
1685
+
1686
+
1687
+ /**
1688
+ * @param {string} value
1689
+ * @return {!proto.gateway.parallax.v1.StartSpanRequest} returns this
1690
+ */
1691
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.setParentSpanId = function(value) {
1692
+ return jspb.Message.setField(this, 3, value);
1693
+ };
1694
+
1695
+
1696
+ /**
1697
+ * Clears the field making it undefined.
1698
+ * @return {!proto.gateway.parallax.v1.StartSpanRequest} returns this
1699
+ */
1700
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.clearParentSpanId = function() {
1701
+ return jspb.Message.setField(this, 3, undefined);
1702
+ };
1703
+
1704
+
1705
+ /**
1706
+ * Returns whether this field is set.
1707
+ * @return {boolean}
1708
+ */
1709
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.hasParentSpanId = function() {
1710
+ return jspb.Message.getField(this, 3) != null;
1711
+ };
1712
+
1713
+
1714
+ /**
1715
+ * map<string, string> attributes = 4;
1716
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
1717
+ * empty, instead returning `undefined`
1718
+ * @return {!jspb.Map<string,string>}
1719
+ */
1720
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.getAttributesMap = function(opt_noLazyCreate) {
1721
+ return /** @type {!jspb.Map<string,string>} */ (
1722
+ jspb.Message.getMapField(this, 4, opt_noLazyCreate,
1723
+ null));
1724
+ };
1725
+
1726
+
1727
+ /**
1728
+ * Clears values from the map. The map will be non-null.
1729
+ * @return {!proto.gateway.parallax.v1.StartSpanRequest} returns this
1730
+ */
1731
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.clearAttributesMap = function() {
1732
+ this.getAttributesMap().clear();
1733
+ return this;
1734
+ };
1735
+
1736
+
1737
+ /**
1738
+ * optional google.protobuf.Timestamp start_time = 5;
1739
+ * @return {?proto.google.protobuf.Timestamp}
1740
+ */
1741
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.getStartTime = function() {
1742
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1743
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
1744
+ };
1745
+
1746
+
1747
+ /**
1748
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1749
+ * @return {!proto.gateway.parallax.v1.StartSpanRequest} returns this
1750
+ */
1751
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.setStartTime = function(value) {
1752
+ return jspb.Message.setWrapperField(this, 5, value);
1753
+ };
1754
+
1755
+
1756
+ /**
1757
+ * Clears the message field making it undefined.
1758
+ * @return {!proto.gateway.parallax.v1.StartSpanRequest} returns this
1759
+ */
1760
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.clearStartTime = function() {
1761
+ return this.setStartTime(undefined);
1762
+ };
1763
+
1764
+
1765
+ /**
1766
+ * Returns whether this field is set.
1767
+ * @return {boolean}
1768
+ */
1769
+ proto.gateway.parallax.v1.StartSpanRequest.prototype.hasStartTime = function() {
1770
+ return jspb.Message.getField(this, 5) != null;
1771
+ };
1772
+
1773
+
1774
+
1775
+
1776
+
1777
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1778
+ /**
1779
+ * Creates an object representation of this proto.
1780
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1781
+ * Optional fields that are not set will be set to undefined.
1782
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1783
+ * For the list of reserved names please see:
1784
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1785
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1786
+ * JSPB instance for transitional soy proto support:
1787
+ * http://goto/soy-param-migration
1788
+ * @return {!Object}
1789
+ */
1790
+ proto.gateway.parallax.v1.StartSpanResponse.prototype.toObject = function(opt_includeInstance) {
1791
+ return proto.gateway.parallax.v1.StartSpanResponse.toObject(opt_includeInstance, this);
1792
+ };
1793
+
1794
+
1795
+ /**
1796
+ * Static version of the {@see toObject} method.
1797
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1798
+ * the JSPB instance for transitional soy proto support:
1799
+ * http://goto/soy-param-migration
1800
+ * @param {!proto.gateway.parallax.v1.StartSpanResponse} msg The msg instance to transform.
1801
+ * @return {!Object}
1802
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1803
+ */
1804
+ proto.gateway.parallax.v1.StartSpanResponse.toObject = function(includeInstance, msg) {
1805
+ var f, obj = {
1806
+ status: (f = msg.getStatus()) && proto_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
1807
+ spanId: jspb.Message.getFieldWithDefault(msg, 2, "")
1808
+ };
1809
+
1810
+ if (includeInstance) {
1811
+ obj.$jspbMessageInstance = msg;
1812
+ }
1813
+ return obj;
1814
+ };
1815
+ }
1816
+
1817
+
1818
+ /**
1819
+ * Deserializes binary data (in protobuf wire format).
1820
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1821
+ * @return {!proto.gateway.parallax.v1.StartSpanResponse}
1822
+ */
1823
+ proto.gateway.parallax.v1.StartSpanResponse.deserializeBinary = function(bytes) {
1824
+ var reader = new jspb.BinaryReader(bytes);
1825
+ var msg = new proto.gateway.parallax.v1.StartSpanResponse;
1826
+ return proto.gateway.parallax.v1.StartSpanResponse.deserializeBinaryFromReader(msg, reader);
1827
+ };
1828
+
1829
+
1830
+ /**
1831
+ * Deserializes binary data (in protobuf wire format) from the
1832
+ * given reader into the given message object.
1833
+ * @param {!proto.gateway.parallax.v1.StartSpanResponse} msg The message object to deserialize into.
1834
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1835
+ * @return {!proto.gateway.parallax.v1.StartSpanResponse}
1836
+ */
1837
+ proto.gateway.parallax.v1.StartSpanResponse.deserializeBinaryFromReader = function(msg, reader) {
1838
+ while (reader.nextField()) {
1839
+ if (reader.isEndGroup()) {
1840
+ break;
1841
+ }
1842
+ var field = reader.getFieldNumber();
1843
+ switch (field) {
1844
+ case 1:
1845
+ var value = new proto_common_v1_status_pb.ResponseStatus;
1846
+ reader.readMessage(value,proto_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
1847
+ msg.setStatus(value);
1848
+ break;
1849
+ case 2:
1850
+ var value = /** @type {string} */ (reader.readString());
1851
+ msg.setSpanId(value);
1852
+ break;
1853
+ default:
1854
+ reader.skipField();
1855
+ break;
1856
+ }
1857
+ }
1858
+ return msg;
1859
+ };
1860
+
1861
+
1862
+ /**
1863
+ * Serializes the message to binary data (in protobuf wire format).
1864
+ * @return {!Uint8Array}
1865
+ */
1866
+ proto.gateway.parallax.v1.StartSpanResponse.prototype.serializeBinary = function() {
1867
+ var writer = new jspb.BinaryWriter();
1868
+ proto.gateway.parallax.v1.StartSpanResponse.serializeBinaryToWriter(this, writer);
1869
+ return writer.getResultBuffer();
1870
+ };
1871
+
1872
+
1873
+ /**
1874
+ * Serializes the given message to binary data (in protobuf wire
1875
+ * format), writing to the given BinaryWriter.
1876
+ * @param {!proto.gateway.parallax.v1.StartSpanResponse} message
1877
+ * @param {!jspb.BinaryWriter} writer
1878
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1879
+ */
1880
+ proto.gateway.parallax.v1.StartSpanResponse.serializeBinaryToWriter = function(message, writer) {
1881
+ var f = undefined;
1882
+ f = message.getStatus();
1883
+ if (f != null) {
1884
+ writer.writeMessage(
1885
+ 1,
1886
+ f,
1887
+ proto_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
1888
+ );
1889
+ }
1890
+ f = message.getSpanId();
1891
+ if (f.length > 0) {
1892
+ writer.writeString(
1893
+ 2,
1894
+ f
1895
+ );
1896
+ }
1897
+ };
1898
+
1899
+
1900
+ /**
1901
+ * optional common.v1.ResponseStatus status = 1;
1902
+ * @return {?proto.common.v1.ResponseStatus}
1903
+ */
1904
+ proto.gateway.parallax.v1.StartSpanResponse.prototype.getStatus = function() {
1905
+ return /** @type{?proto.common.v1.ResponseStatus} */ (
1906
+ jspb.Message.getWrapperField(this, proto_common_v1_status_pb.ResponseStatus, 1));
1907
+ };
1908
+
1909
+
1910
+ /**
1911
+ * @param {?proto.common.v1.ResponseStatus|undefined} value
1912
+ * @return {!proto.gateway.parallax.v1.StartSpanResponse} returns this
1913
+ */
1914
+ proto.gateway.parallax.v1.StartSpanResponse.prototype.setStatus = function(value) {
1915
+ return jspb.Message.setWrapperField(this, 1, value);
1916
+ };
1917
+
1918
+
1919
+ /**
1920
+ * Clears the message field making it undefined.
1921
+ * @return {!proto.gateway.parallax.v1.StartSpanResponse} returns this
1922
+ */
1923
+ proto.gateway.parallax.v1.StartSpanResponse.prototype.clearStatus = function() {
1924
+ return this.setStatus(undefined);
1925
+ };
1926
+
1927
+
1928
+ /**
1929
+ * Returns whether this field is set.
1930
+ * @return {boolean}
1931
+ */
1932
+ proto.gateway.parallax.v1.StartSpanResponse.prototype.hasStatus = function() {
1933
+ return jspb.Message.getField(this, 1) != null;
1934
+ };
1935
+
1936
+
1937
+ /**
1938
+ * optional string span_id = 2;
1939
+ * @return {string}
1940
+ */
1941
+ proto.gateway.parallax.v1.StartSpanResponse.prototype.getSpanId = function() {
1942
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1943
+ };
1944
+
1945
+
1946
+ /**
1947
+ * @param {string} value
1948
+ * @return {!proto.gateway.parallax.v1.StartSpanResponse} returns this
1949
+ */
1950
+ proto.gateway.parallax.v1.StartSpanResponse.prototype.setSpanId = function(value) {
1951
+ return jspb.Message.setProto3StringField(this, 2, value);
1952
+ };
1953
+
1954
+
1955
+
1956
+
1957
+
1958
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1959
+ /**
1960
+ * Creates an object representation of this proto.
1961
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1962
+ * Optional fields that are not set will be set to undefined.
1963
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1964
+ * For the list of reserved names please see:
1965
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1966
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1967
+ * JSPB instance for transitional soy proto support:
1968
+ * http://goto/soy-param-migration
1969
+ * @return {!Object}
1970
+ */
1971
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.toObject = function(opt_includeInstance) {
1972
+ return proto.gateway.parallax.v1.FinishSpanRequest.toObject(opt_includeInstance, this);
1973
+ };
1974
+
1975
+
1976
+ /**
1977
+ * Static version of the {@see toObject} method.
1978
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1979
+ * the JSPB instance for transitional soy proto support:
1980
+ * http://goto/soy-param-migration
1981
+ * @param {!proto.gateway.parallax.v1.FinishSpanRequest} msg The msg instance to transform.
1982
+ * @return {!Object}
1983
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1984
+ */
1985
+ proto.gateway.parallax.v1.FinishSpanRequest.toObject = function(includeInstance, msg) {
1986
+ var f, obj = {
1987
+ traceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1988
+ spanId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1989
+ endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1990
+ status: (f = msg.getStatus()) && proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.toObject(includeInstance, f)
1991
+ };
1992
+
1993
+ if (includeInstance) {
1994
+ obj.$jspbMessageInstance = msg;
1995
+ }
1996
+ return obj;
1997
+ };
1998
+ }
1999
+
2000
+
2001
+ /**
2002
+ * Deserializes binary data (in protobuf wire format).
2003
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2004
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest}
2005
+ */
2006
+ proto.gateway.parallax.v1.FinishSpanRequest.deserializeBinary = function(bytes) {
2007
+ var reader = new jspb.BinaryReader(bytes);
2008
+ var msg = new proto.gateway.parallax.v1.FinishSpanRequest;
2009
+ return proto.gateway.parallax.v1.FinishSpanRequest.deserializeBinaryFromReader(msg, reader);
2010
+ };
2011
+
2012
+
2013
+ /**
2014
+ * Deserializes binary data (in protobuf wire format) from the
2015
+ * given reader into the given message object.
2016
+ * @param {!proto.gateway.parallax.v1.FinishSpanRequest} msg The message object to deserialize into.
2017
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2018
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest}
2019
+ */
2020
+ proto.gateway.parallax.v1.FinishSpanRequest.deserializeBinaryFromReader = function(msg, reader) {
2021
+ while (reader.nextField()) {
2022
+ if (reader.isEndGroup()) {
2023
+ break;
2024
+ }
2025
+ var field = reader.getFieldNumber();
2026
+ switch (field) {
2027
+ case 1:
2028
+ var value = /** @type {string} */ (reader.readString());
2029
+ msg.setTraceId(value);
2030
+ break;
2031
+ case 2:
2032
+ var value = /** @type {string} */ (reader.readString());
2033
+ msg.setSpanId(value);
2034
+ break;
2035
+ case 3:
2036
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2037
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2038
+ msg.setEndTime(value);
2039
+ break;
2040
+ case 4:
2041
+ var value = new proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus;
2042
+ reader.readMessage(value,proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.deserializeBinaryFromReader);
2043
+ msg.setStatus(value);
2044
+ break;
2045
+ default:
2046
+ reader.skipField();
2047
+ break;
2048
+ }
2049
+ }
2050
+ return msg;
2051
+ };
2052
+
2053
+
2054
+ /**
2055
+ * Serializes the message to binary data (in protobuf wire format).
2056
+ * @return {!Uint8Array}
2057
+ */
2058
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.serializeBinary = function() {
2059
+ var writer = new jspb.BinaryWriter();
2060
+ proto.gateway.parallax.v1.FinishSpanRequest.serializeBinaryToWriter(this, writer);
2061
+ return writer.getResultBuffer();
2062
+ };
2063
+
2064
+
2065
+ /**
2066
+ * Serializes the given message to binary data (in protobuf wire
2067
+ * format), writing to the given BinaryWriter.
2068
+ * @param {!proto.gateway.parallax.v1.FinishSpanRequest} message
2069
+ * @param {!jspb.BinaryWriter} writer
2070
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2071
+ */
2072
+ proto.gateway.parallax.v1.FinishSpanRequest.serializeBinaryToWriter = function(message, writer) {
2073
+ var f = undefined;
2074
+ f = message.getTraceId();
2075
+ if (f.length > 0) {
2076
+ writer.writeString(
2077
+ 1,
2078
+ f
2079
+ );
2080
+ }
2081
+ f = message.getSpanId();
2082
+ if (f.length > 0) {
2083
+ writer.writeString(
2084
+ 2,
2085
+ f
2086
+ );
2087
+ }
2088
+ f = message.getEndTime();
2089
+ if (f != null) {
2090
+ writer.writeMessage(
2091
+ 3,
2092
+ f,
2093
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2094
+ );
2095
+ }
2096
+ f = message.getStatus();
2097
+ if (f != null) {
2098
+ writer.writeMessage(
2099
+ 4,
2100
+ f,
2101
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.serializeBinaryToWriter
2102
+ );
2103
+ }
2104
+ };
2105
+
2106
+
2107
+
2108
+
2109
+
2110
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2111
+ /**
2112
+ * Creates an object representation of this proto.
2113
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2114
+ * Optional fields that are not set will be set to undefined.
2115
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2116
+ * For the list of reserved names please see:
2117
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2118
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2119
+ * JSPB instance for transitional soy proto support:
2120
+ * http://goto/soy-param-migration
2121
+ * @return {!Object}
2122
+ */
2123
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.toObject = function(opt_includeInstance) {
2124
+ return proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.toObject(opt_includeInstance, this);
2125
+ };
2126
+
2127
+
2128
+ /**
2129
+ * Static version of the {@see toObject} method.
2130
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2131
+ * the JSPB instance for transitional soy proto support:
2132
+ * http://goto/soy-param-migration
2133
+ * @param {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus} msg The msg instance to transform.
2134
+ * @return {!Object}
2135
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2136
+ */
2137
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.toObject = function(includeInstance, msg) {
2138
+ var f, obj = {
2139
+ code: jspb.Message.getFieldWithDefault(msg, 1, 0),
2140
+ message: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
2141
+ };
2142
+
2143
+ if (includeInstance) {
2144
+ obj.$jspbMessageInstance = msg;
2145
+ }
2146
+ return obj;
2147
+ };
2148
+ }
2149
+
2150
+
2151
+ /**
2152
+ * Deserializes binary data (in protobuf wire format).
2153
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2154
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus}
2155
+ */
2156
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.deserializeBinary = function(bytes) {
2157
+ var reader = new jspb.BinaryReader(bytes);
2158
+ var msg = new proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus;
2159
+ return proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.deserializeBinaryFromReader(msg, reader);
2160
+ };
2161
+
2162
+
2163
+ /**
2164
+ * Deserializes binary data (in protobuf wire format) from the
2165
+ * given reader into the given message object.
2166
+ * @param {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus} msg The message object to deserialize into.
2167
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2168
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus}
2169
+ */
2170
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.deserializeBinaryFromReader = function(msg, reader) {
2171
+ while (reader.nextField()) {
2172
+ if (reader.isEndGroup()) {
2173
+ break;
2174
+ }
2175
+ var field = reader.getFieldNumber();
2176
+ switch (field) {
2177
+ case 1:
2178
+ var value = /** @type {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.StatusCode} */ (reader.readEnum());
2179
+ msg.setCode(value);
2180
+ break;
2181
+ case 2:
2182
+ var value = /** @type {string} */ (reader.readString());
2183
+ msg.setMessage(value);
2184
+ break;
2185
+ default:
2186
+ reader.skipField();
2187
+ break;
2188
+ }
2189
+ }
2190
+ return msg;
2191
+ };
2192
+
2193
+
2194
+ /**
2195
+ * Serializes the message to binary data (in protobuf wire format).
2196
+ * @return {!Uint8Array}
2197
+ */
2198
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.serializeBinary = function() {
2199
+ var writer = new jspb.BinaryWriter();
2200
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.serializeBinaryToWriter(this, writer);
2201
+ return writer.getResultBuffer();
2202
+ };
2203
+
2204
+
2205
+ /**
2206
+ * Serializes the given message to binary data (in protobuf wire
2207
+ * format), writing to the given BinaryWriter.
2208
+ * @param {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus} message
2209
+ * @param {!jspb.BinaryWriter} writer
2210
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2211
+ */
2212
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.serializeBinaryToWriter = function(message, writer) {
2213
+ var f = undefined;
2214
+ f = message.getCode();
2215
+ if (f !== 0.0) {
2216
+ writer.writeEnum(
2217
+ 1,
2218
+ f
2219
+ );
2220
+ }
2221
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
2222
+ if (f != null) {
2223
+ writer.writeString(
2224
+ 2,
2225
+ f
2226
+ );
2227
+ }
2228
+ };
2229
+
2230
+
2231
+ /**
2232
+ * @enum {number}
2233
+ */
2234
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.StatusCode = {
2235
+ STATUS_CODE_UNSPECIFIED: 0,
2236
+ STATUS_CODE_OK: 1,
2237
+ STATUS_CODE_ERROR: 2
2238
+ };
2239
+
2240
+ /**
2241
+ * optional StatusCode code = 1;
2242
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.StatusCode}
2243
+ */
2244
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.getCode = function() {
2245
+ return /** @type {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.StatusCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2246
+ };
2247
+
2248
+
2249
+ /**
2250
+ * @param {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.StatusCode} value
2251
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus} returns this
2252
+ */
2253
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.setCode = function(value) {
2254
+ return jspb.Message.setProto3EnumField(this, 1, value);
2255
+ };
2256
+
2257
+
2258
+ /**
2259
+ * optional string message = 2;
2260
+ * @return {string}
2261
+ */
2262
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.getMessage = function() {
2263
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2264
+ };
2265
+
2266
+
2267
+ /**
2268
+ * @param {string} value
2269
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus} returns this
2270
+ */
2271
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.setMessage = function(value) {
2272
+ return jspb.Message.setField(this, 2, value);
2273
+ };
2274
+
2275
+
2276
+ /**
2277
+ * Clears the field making it undefined.
2278
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus} returns this
2279
+ */
2280
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.clearMessage = function() {
2281
+ return jspb.Message.setField(this, 2, undefined);
2282
+ };
2283
+
2284
+
2285
+ /**
2286
+ * Returns whether this field is set.
2287
+ * @return {boolean}
2288
+ */
2289
+ proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.hasMessage = function() {
2290
+ return jspb.Message.getField(this, 2) != null;
2291
+ };
2292
+
2293
+
2294
+ /**
2295
+ * optional string trace_id = 1;
2296
+ * @return {string}
2297
+ */
2298
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.getTraceId = function() {
2299
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2300
+ };
2301
+
2302
+
2303
+ /**
2304
+ * @param {string} value
2305
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest} returns this
2306
+ */
2307
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.setTraceId = function(value) {
2308
+ return jspb.Message.setProto3StringField(this, 1, value);
2309
+ };
2310
+
2311
+
2312
+ /**
2313
+ * optional string span_id = 2;
2314
+ * @return {string}
2315
+ */
2316
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.getSpanId = function() {
2317
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2318
+ };
2319
+
2320
+
2321
+ /**
2322
+ * @param {string} value
2323
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest} returns this
2324
+ */
2325
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.setSpanId = function(value) {
2326
+ return jspb.Message.setProto3StringField(this, 2, value);
2327
+ };
2328
+
2329
+
2330
+ /**
2331
+ * optional google.protobuf.Timestamp end_time = 3;
2332
+ * @return {?proto.google.protobuf.Timestamp}
2333
+ */
2334
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.getEndTime = function() {
2335
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2336
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
2337
+ };
2338
+
2339
+
2340
+ /**
2341
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2342
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest} returns this
2343
+ */
2344
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.setEndTime = function(value) {
2345
+ return jspb.Message.setWrapperField(this, 3, value);
2346
+ };
2347
+
2348
+
2349
+ /**
2350
+ * Clears the message field making it undefined.
2351
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest} returns this
2352
+ */
2353
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.clearEndTime = function() {
2354
+ return this.setEndTime(undefined);
2355
+ };
2356
+
2357
+
2358
+ /**
2359
+ * Returns whether this field is set.
2360
+ * @return {boolean}
2361
+ */
2362
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.hasEndTime = function() {
2363
+ return jspb.Message.getField(this, 3) != null;
2364
+ };
2365
+
2366
+
2367
+ /**
2368
+ * optional SpanStatus status = 4;
2369
+ * @return {?proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus}
2370
+ */
2371
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.getStatus = function() {
2372
+ return /** @type{?proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus} */ (
2373
+ jspb.Message.getWrapperField(this, proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus, 4));
2374
+ };
2375
+
2376
+
2377
+ /**
2378
+ * @param {?proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus|undefined} value
2379
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest} returns this
2380
+ */
2381
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.setStatus = function(value) {
2382
+ return jspb.Message.setWrapperField(this, 4, value);
2383
+ };
2384
+
2385
+
2386
+ /**
2387
+ * Clears the message field making it undefined.
2388
+ * @return {!proto.gateway.parallax.v1.FinishSpanRequest} returns this
2389
+ */
2390
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.clearStatus = function() {
2391
+ return this.setStatus(undefined);
2392
+ };
2393
+
2394
+
2395
+ /**
2396
+ * Returns whether this field is set.
2397
+ * @return {boolean}
2398
+ */
2399
+ proto.gateway.parallax.v1.FinishSpanRequest.prototype.hasStatus = function() {
2400
+ return jspb.Message.getField(this, 4) != null;
2401
+ };
2402
+
2403
+
2404
+
2405
+
2406
+
2407
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2408
+ /**
2409
+ * Creates an object representation of this proto.
2410
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2411
+ * Optional fields that are not set will be set to undefined.
2412
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2413
+ * For the list of reserved names please see:
2414
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2415
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2416
+ * JSPB instance for transitional soy proto support:
2417
+ * http://goto/soy-param-migration
2418
+ * @return {!Object}
2419
+ */
2420
+ proto.gateway.parallax.v1.FinishSpanResponse.prototype.toObject = function(opt_includeInstance) {
2421
+ return proto.gateway.parallax.v1.FinishSpanResponse.toObject(opt_includeInstance, this);
2422
+ };
2423
+
2424
+
2425
+ /**
2426
+ * Static version of the {@see toObject} method.
2427
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2428
+ * the JSPB instance for transitional soy proto support:
2429
+ * http://goto/soy-param-migration
2430
+ * @param {!proto.gateway.parallax.v1.FinishSpanResponse} msg The msg instance to transform.
2431
+ * @return {!Object}
2432
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2433
+ */
2434
+ proto.gateway.parallax.v1.FinishSpanResponse.toObject = function(includeInstance, msg) {
2435
+ var f, obj = {
2436
+ status: (f = msg.getStatus()) && proto_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f)
2437
+ };
2438
+
2439
+ if (includeInstance) {
2440
+ obj.$jspbMessageInstance = msg;
2441
+ }
2442
+ return obj;
2443
+ };
2444
+ }
2445
+
2446
+
2447
+ /**
2448
+ * Deserializes binary data (in protobuf wire format).
2449
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2450
+ * @return {!proto.gateway.parallax.v1.FinishSpanResponse}
2451
+ */
2452
+ proto.gateway.parallax.v1.FinishSpanResponse.deserializeBinary = function(bytes) {
2453
+ var reader = new jspb.BinaryReader(bytes);
2454
+ var msg = new proto.gateway.parallax.v1.FinishSpanResponse;
2455
+ return proto.gateway.parallax.v1.FinishSpanResponse.deserializeBinaryFromReader(msg, reader);
2456
+ };
2457
+
2458
+
2459
+ /**
2460
+ * Deserializes binary data (in protobuf wire format) from the
2461
+ * given reader into the given message object.
2462
+ * @param {!proto.gateway.parallax.v1.FinishSpanResponse} msg The message object to deserialize into.
2463
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2464
+ * @return {!proto.gateway.parallax.v1.FinishSpanResponse}
2465
+ */
2466
+ proto.gateway.parallax.v1.FinishSpanResponse.deserializeBinaryFromReader = function(msg, reader) {
2467
+ while (reader.nextField()) {
2468
+ if (reader.isEndGroup()) {
2469
+ break;
2470
+ }
2471
+ var field = reader.getFieldNumber();
2472
+ switch (field) {
2473
+ case 1:
2474
+ var value = new proto_common_v1_status_pb.ResponseStatus;
2475
+ reader.readMessage(value,proto_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
2476
+ msg.setStatus(value);
2477
+ break;
2478
+ default:
2479
+ reader.skipField();
2480
+ break;
2481
+ }
2482
+ }
2483
+ return msg;
2484
+ };
2485
+
2486
+
2487
+ /**
2488
+ * Serializes the message to binary data (in protobuf wire format).
2489
+ * @return {!Uint8Array}
2490
+ */
2491
+ proto.gateway.parallax.v1.FinishSpanResponse.prototype.serializeBinary = function() {
2492
+ var writer = new jspb.BinaryWriter();
2493
+ proto.gateway.parallax.v1.FinishSpanResponse.serializeBinaryToWriter(this, writer);
2494
+ return writer.getResultBuffer();
2495
+ };
2496
+
2497
+
2498
+ /**
2499
+ * Serializes the given message to binary data (in protobuf wire
2500
+ * format), writing to the given BinaryWriter.
2501
+ * @param {!proto.gateway.parallax.v1.FinishSpanResponse} message
2502
+ * @param {!jspb.BinaryWriter} writer
2503
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2504
+ */
2505
+ proto.gateway.parallax.v1.FinishSpanResponse.serializeBinaryToWriter = function(message, writer) {
2506
+ var f = undefined;
2507
+ f = message.getStatus();
2508
+ if (f != null) {
2509
+ writer.writeMessage(
2510
+ 1,
2511
+ f,
2512
+ proto_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
2513
+ );
2514
+ }
2515
+ };
2516
+
2517
+
2518
+ /**
2519
+ * optional common.v1.ResponseStatus status = 1;
2520
+ * @return {?proto.common.v1.ResponseStatus}
2521
+ */
2522
+ proto.gateway.parallax.v1.FinishSpanResponse.prototype.getStatus = function() {
2523
+ return /** @type{?proto.common.v1.ResponseStatus} */ (
2524
+ jspb.Message.getWrapperField(this, proto_common_v1_status_pb.ResponseStatus, 1));
2525
+ };
2526
+
2527
+
2528
+ /**
2529
+ * @param {?proto.common.v1.ResponseStatus|undefined} value
2530
+ * @return {!proto.gateway.parallax.v1.FinishSpanResponse} returns this
2531
+ */
2532
+ proto.gateway.parallax.v1.FinishSpanResponse.prototype.setStatus = function(value) {
2533
+ return jspb.Message.setWrapperField(this, 1, value);
2534
+ };
2535
+
2536
+
2537
+ /**
2538
+ * Clears the message field making it undefined.
2539
+ * @return {!proto.gateway.parallax.v1.FinishSpanResponse} returns this
2540
+ */
2541
+ proto.gateway.parallax.v1.FinishSpanResponse.prototype.clearStatus = function() {
2542
+ return this.setStatus(undefined);
2543
+ };
2544
+
2545
+
2546
+ /**
2547
+ * Returns whether this field is set.
2548
+ * @return {boolean}
2549
+ */
2550
+ proto.gateway.parallax.v1.FinishSpanResponse.prototype.hasStatus = function() {
2551
+ return jspb.Message.getField(this, 1) != null;
2552
+ };
2553
+
2554
+
2555
+
2556
+
2557
+
2558
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2559
+ /**
2560
+ * Creates an object representation of this proto.
2561
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2562
+ * Optional fields that are not set will be set to undefined.
2563
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2564
+ * For the list of reserved names please see:
2565
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2566
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2567
+ * JSPB instance for transitional soy proto support:
2568
+ * http://goto/soy-param-migration
2569
+ * @return {!Object}
2570
+ */
2571
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.toObject = function(opt_includeInstance) {
2572
+ return proto.gateway.parallax.v1.AddSpanEventRequest.toObject(opt_includeInstance, this);
2573
+ };
2574
+
2575
+
2576
+ /**
2577
+ * Static version of the {@see toObject} method.
2578
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2579
+ * the JSPB instance for transitional soy proto support:
2580
+ * http://goto/soy-param-migration
2581
+ * @param {!proto.gateway.parallax.v1.AddSpanEventRequest} msg The msg instance to transform.
2582
+ * @return {!Object}
2583
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2584
+ */
2585
+ proto.gateway.parallax.v1.AddSpanEventRequest.toObject = function(includeInstance, msg) {
2586
+ var f, obj = {
2587
+ traceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2588
+ spanId: jspb.Message.getFieldWithDefault(msg, 2, ""),
2589
+ eventName: jspb.Message.getFieldWithDefault(msg, 3, ""),
2590
+ attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : [],
2591
+ timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
2592
+ };
2593
+
2594
+ if (includeInstance) {
2595
+ obj.$jspbMessageInstance = msg;
2596
+ }
2597
+ return obj;
2598
+ };
2599
+ }
2600
+
2601
+
2602
+ /**
2603
+ * Deserializes binary data (in protobuf wire format).
2604
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2605
+ * @return {!proto.gateway.parallax.v1.AddSpanEventRequest}
2606
+ */
2607
+ proto.gateway.parallax.v1.AddSpanEventRequest.deserializeBinary = function(bytes) {
2608
+ var reader = new jspb.BinaryReader(bytes);
2609
+ var msg = new proto.gateway.parallax.v1.AddSpanEventRequest;
2610
+ return proto.gateway.parallax.v1.AddSpanEventRequest.deserializeBinaryFromReader(msg, reader);
2611
+ };
2612
+
2613
+
2614
+ /**
2615
+ * Deserializes binary data (in protobuf wire format) from the
2616
+ * given reader into the given message object.
2617
+ * @param {!proto.gateway.parallax.v1.AddSpanEventRequest} msg The message object to deserialize into.
2618
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2619
+ * @return {!proto.gateway.parallax.v1.AddSpanEventRequest}
2620
+ */
2621
+ proto.gateway.parallax.v1.AddSpanEventRequest.deserializeBinaryFromReader = function(msg, reader) {
2622
+ while (reader.nextField()) {
2623
+ if (reader.isEndGroup()) {
2624
+ break;
2625
+ }
2626
+ var field = reader.getFieldNumber();
2627
+ switch (field) {
2628
+ case 1:
2629
+ var value = /** @type {string} */ (reader.readString());
2630
+ msg.setTraceId(value);
2631
+ break;
2632
+ case 2:
2633
+ var value = /** @type {string} */ (reader.readString());
2634
+ msg.setSpanId(value);
2635
+ break;
2636
+ case 3:
2637
+ var value = /** @type {string} */ (reader.readString());
2638
+ msg.setEventName(value);
2639
+ break;
2640
+ case 4:
2641
+ var value = msg.getAttributesMap();
2642
+ reader.readMessage(value, function(message, reader) {
2643
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
2644
+ });
2645
+ break;
2646
+ case 5:
2647
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2648
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2649
+ msg.setTimestamp(value);
2650
+ break;
2651
+ default:
2652
+ reader.skipField();
2653
+ break;
2654
+ }
2655
+ }
2656
+ return msg;
2657
+ };
2658
+
2659
+
2660
+ /**
2661
+ * Serializes the message to binary data (in protobuf wire format).
2662
+ * @return {!Uint8Array}
2663
+ */
2664
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.serializeBinary = function() {
2665
+ var writer = new jspb.BinaryWriter();
2666
+ proto.gateway.parallax.v1.AddSpanEventRequest.serializeBinaryToWriter(this, writer);
2667
+ return writer.getResultBuffer();
2668
+ };
2669
+
2670
+
2671
+ /**
2672
+ * Serializes the given message to binary data (in protobuf wire
2673
+ * format), writing to the given BinaryWriter.
2674
+ * @param {!proto.gateway.parallax.v1.AddSpanEventRequest} message
2675
+ * @param {!jspb.BinaryWriter} writer
2676
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2677
+ */
2678
+ proto.gateway.parallax.v1.AddSpanEventRequest.serializeBinaryToWriter = function(message, writer) {
2679
+ var f = undefined;
2680
+ f = message.getTraceId();
2681
+ if (f.length > 0) {
2682
+ writer.writeString(
2683
+ 1,
2684
+ f
2685
+ );
2686
+ }
2687
+ f = message.getSpanId();
2688
+ if (f.length > 0) {
2689
+ writer.writeString(
2690
+ 2,
2691
+ f
2692
+ );
2693
+ }
2694
+ f = message.getEventName();
2695
+ if (f.length > 0) {
2696
+ writer.writeString(
2697
+ 3,
2698
+ f
2699
+ );
2700
+ }
2701
+ f = message.getAttributesMap(true);
2702
+ if (f && f.getLength() > 0) {
2703
+ f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
2704
+ }
2705
+ f = message.getTimestamp();
2706
+ if (f != null) {
2707
+ writer.writeMessage(
2708
+ 5,
2709
+ f,
2710
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2711
+ );
2712
+ }
2713
+ };
2714
+
2715
+
2716
+ /**
2717
+ * optional string trace_id = 1;
2718
+ * @return {string}
2719
+ */
2720
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.getTraceId = function() {
2721
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2722
+ };
2723
+
2724
+
2725
+ /**
2726
+ * @param {string} value
2727
+ * @return {!proto.gateway.parallax.v1.AddSpanEventRequest} returns this
2728
+ */
2729
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.setTraceId = function(value) {
2730
+ return jspb.Message.setProto3StringField(this, 1, value);
2731
+ };
2732
+
2733
+
2734
+ /**
2735
+ * optional string span_id = 2;
2736
+ * @return {string}
2737
+ */
2738
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.getSpanId = function() {
2739
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2740
+ };
2741
+
2742
+
2743
+ /**
2744
+ * @param {string} value
2745
+ * @return {!proto.gateway.parallax.v1.AddSpanEventRequest} returns this
2746
+ */
2747
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.setSpanId = function(value) {
2748
+ return jspb.Message.setProto3StringField(this, 2, value);
2749
+ };
2750
+
2751
+
2752
+ /**
2753
+ * optional string event_name = 3;
2754
+ * @return {string}
2755
+ */
2756
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.getEventName = function() {
2757
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2758
+ };
2759
+
2760
+
2761
+ /**
2762
+ * @param {string} value
2763
+ * @return {!proto.gateway.parallax.v1.AddSpanEventRequest} returns this
2764
+ */
2765
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.setEventName = function(value) {
2766
+ return jspb.Message.setProto3StringField(this, 3, value);
2767
+ };
2768
+
2769
+
2770
+ /**
2771
+ * map<string, string> attributes = 4;
2772
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
2773
+ * empty, instead returning `undefined`
2774
+ * @return {!jspb.Map<string,string>}
2775
+ */
2776
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.getAttributesMap = function(opt_noLazyCreate) {
2777
+ return /** @type {!jspb.Map<string,string>} */ (
2778
+ jspb.Message.getMapField(this, 4, opt_noLazyCreate,
2779
+ null));
2780
+ };
2781
+
2782
+
2783
+ /**
2784
+ * Clears values from the map. The map will be non-null.
2785
+ * @return {!proto.gateway.parallax.v1.AddSpanEventRequest} returns this
2786
+ */
2787
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.clearAttributesMap = function() {
2788
+ this.getAttributesMap().clear();
2789
+ return this;
2790
+ };
2791
+
2792
+
2793
+ /**
2794
+ * optional google.protobuf.Timestamp timestamp = 5;
2795
+ * @return {?proto.google.protobuf.Timestamp}
2796
+ */
2797
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.getTimestamp = function() {
2798
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2799
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
2800
+ };
2801
+
2802
+
2803
+ /**
2804
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2805
+ * @return {!proto.gateway.parallax.v1.AddSpanEventRequest} returns this
2806
+ */
2807
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.setTimestamp = function(value) {
2808
+ return jspb.Message.setWrapperField(this, 5, value);
2809
+ };
2810
+
2811
+
2812
+ /**
2813
+ * Clears the message field making it undefined.
2814
+ * @return {!proto.gateway.parallax.v1.AddSpanEventRequest} returns this
2815
+ */
2816
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.clearTimestamp = function() {
2817
+ return this.setTimestamp(undefined);
2818
+ };
2819
+
2820
+
2821
+ /**
2822
+ * Returns whether this field is set.
2823
+ * @return {boolean}
2824
+ */
2825
+ proto.gateway.parallax.v1.AddSpanEventRequest.prototype.hasTimestamp = function() {
2826
+ return jspb.Message.getField(this, 5) != null;
2827
+ };
2828
+
2829
+
2830
+
2831
+
2832
+
2833
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2834
+ /**
2835
+ * Creates an object representation of this proto.
2836
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2837
+ * Optional fields that are not set will be set to undefined.
2838
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2839
+ * For the list of reserved names please see:
2840
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2841
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2842
+ * JSPB instance for transitional soy proto support:
2843
+ * http://goto/soy-param-migration
2844
+ * @return {!Object}
2845
+ */
2846
+ proto.gateway.parallax.v1.AddSpanEventResponse.prototype.toObject = function(opt_includeInstance) {
2847
+ return proto.gateway.parallax.v1.AddSpanEventResponse.toObject(opt_includeInstance, this);
2848
+ };
2849
+
2850
+
2851
+ /**
2852
+ * Static version of the {@see toObject} method.
2853
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2854
+ * the JSPB instance for transitional soy proto support:
2855
+ * http://goto/soy-param-migration
2856
+ * @param {!proto.gateway.parallax.v1.AddSpanEventResponse} msg The msg instance to transform.
2857
+ * @return {!Object}
2858
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2859
+ */
2860
+ proto.gateway.parallax.v1.AddSpanEventResponse.toObject = function(includeInstance, msg) {
2861
+ var f, obj = {
2862
+ status: (f = msg.getStatus()) && proto_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f)
2863
+ };
2864
+
2865
+ if (includeInstance) {
2866
+ obj.$jspbMessageInstance = msg;
2867
+ }
2868
+ return obj;
2869
+ };
2870
+ }
2871
+
2872
+
2873
+ /**
2874
+ * Deserializes binary data (in protobuf wire format).
2875
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2876
+ * @return {!proto.gateway.parallax.v1.AddSpanEventResponse}
2877
+ */
2878
+ proto.gateway.parallax.v1.AddSpanEventResponse.deserializeBinary = function(bytes) {
2879
+ var reader = new jspb.BinaryReader(bytes);
2880
+ var msg = new proto.gateway.parallax.v1.AddSpanEventResponse;
2881
+ return proto.gateway.parallax.v1.AddSpanEventResponse.deserializeBinaryFromReader(msg, reader);
2882
+ };
2883
+
2884
+
2885
+ /**
2886
+ * Deserializes binary data (in protobuf wire format) from the
2887
+ * given reader into the given message object.
2888
+ * @param {!proto.gateway.parallax.v1.AddSpanEventResponse} msg The message object to deserialize into.
2889
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2890
+ * @return {!proto.gateway.parallax.v1.AddSpanEventResponse}
2891
+ */
2892
+ proto.gateway.parallax.v1.AddSpanEventResponse.deserializeBinaryFromReader = function(msg, reader) {
2893
+ while (reader.nextField()) {
2894
+ if (reader.isEndGroup()) {
2895
+ break;
2896
+ }
2897
+ var field = reader.getFieldNumber();
2898
+ switch (field) {
2899
+ case 1:
2900
+ var value = new proto_common_v1_status_pb.ResponseStatus;
2901
+ reader.readMessage(value,proto_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
2902
+ msg.setStatus(value);
2903
+ break;
2904
+ default:
2905
+ reader.skipField();
2906
+ break;
2907
+ }
2908
+ }
2909
+ return msg;
2910
+ };
2911
+
2912
+
2913
+ /**
2914
+ * Serializes the message to binary data (in protobuf wire format).
2915
+ * @return {!Uint8Array}
2916
+ */
2917
+ proto.gateway.parallax.v1.AddSpanEventResponse.prototype.serializeBinary = function() {
2918
+ var writer = new jspb.BinaryWriter();
2919
+ proto.gateway.parallax.v1.AddSpanEventResponse.serializeBinaryToWriter(this, writer);
2920
+ return writer.getResultBuffer();
2921
+ };
2922
+
2923
+
2924
+ /**
2925
+ * Serializes the given message to binary data (in protobuf wire
2926
+ * format), writing to the given BinaryWriter.
2927
+ * @param {!proto.gateway.parallax.v1.AddSpanEventResponse} message
2928
+ * @param {!jspb.BinaryWriter} writer
2929
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2930
+ */
2931
+ proto.gateway.parallax.v1.AddSpanEventResponse.serializeBinaryToWriter = function(message, writer) {
2932
+ var f = undefined;
2933
+ f = message.getStatus();
2934
+ if (f != null) {
2935
+ writer.writeMessage(
2936
+ 1,
2937
+ f,
2938
+ proto_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
2939
+ );
2940
+ }
2941
+ };
2942
+
2943
+
2944
+ /**
2945
+ * optional common.v1.ResponseStatus status = 1;
2946
+ * @return {?proto.common.v1.ResponseStatus}
2947
+ */
2948
+ proto.gateway.parallax.v1.AddSpanEventResponse.prototype.getStatus = function() {
2949
+ return /** @type{?proto.common.v1.ResponseStatus} */ (
2950
+ jspb.Message.getWrapperField(this, proto_common_v1_status_pb.ResponseStatus, 1));
2951
+ };
2952
+
2953
+
2954
+ /**
2955
+ * @param {?proto.common.v1.ResponseStatus|undefined} value
2956
+ * @return {!proto.gateway.parallax.v1.AddSpanEventResponse} returns this
2957
+ */
2958
+ proto.gateway.parallax.v1.AddSpanEventResponse.prototype.setStatus = function(value) {
2959
+ return jspb.Message.setWrapperField(this, 1, value);
2960
+ };
2961
+
2962
+
2963
+ /**
2964
+ * Clears the message field making it undefined.
2965
+ * @return {!proto.gateway.parallax.v1.AddSpanEventResponse} returns this
2966
+ */
2967
+ proto.gateway.parallax.v1.AddSpanEventResponse.prototype.clearStatus = function() {
2968
+ return this.setStatus(undefined);
2969
+ };
2970
+
2971
+
2972
+ /**
2973
+ * Returns whether this field is set.
2974
+ * @return {boolean}
2975
+ */
2976
+ proto.gateway.parallax.v1.AddSpanEventResponse.prototype.hasStatus = function() {
2977
+ return jspb.Message.getField(this, 1) != null;
2978
+ };
2979
+
2980
+
2981
+
2982
+
2983
+
2984
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2985
+ /**
2986
+ * Creates an object representation of this proto.
2987
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2988
+ * Optional fields that are not set will be set to undefined.
2989
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2990
+ * For the list of reserved names please see:
2991
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2992
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2993
+ * JSPB instance for transitional soy proto support:
2994
+ * http://goto/soy-param-migration
2995
+ * @return {!Object}
2996
+ */
2997
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.toObject = function(opt_includeInstance) {
2998
+ return proto.gateway.parallax.v1.AddSpanErrorRequest.toObject(opt_includeInstance, this);
2999
+ };
3000
+
3001
+
3002
+ /**
3003
+ * Static version of the {@see toObject} method.
3004
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3005
+ * the JSPB instance for transitional soy proto support:
3006
+ * http://goto/soy-param-migration
3007
+ * @param {!proto.gateway.parallax.v1.AddSpanErrorRequest} msg The msg instance to transform.
3008
+ * @return {!Object}
3009
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3010
+ */
3011
+ proto.gateway.parallax.v1.AddSpanErrorRequest.toObject = function(includeInstance, msg) {
3012
+ var f, obj = {
3013
+ traceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3014
+ spanId: jspb.Message.getFieldWithDefault(msg, 2, ""),
3015
+ errorType: jspb.Message.getFieldWithDefault(msg, 3, ""),
3016
+ message: jspb.Message.getFieldWithDefault(msg, 4, ""),
3017
+ stackTrace: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
3018
+ attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : [],
3019
+ timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
3020
+ };
3021
+
3022
+ if (includeInstance) {
3023
+ obj.$jspbMessageInstance = msg;
3024
+ }
3025
+ return obj;
3026
+ };
3027
+ }
3028
+
3029
+
3030
+ /**
3031
+ * Deserializes binary data (in protobuf wire format).
3032
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3033
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorRequest}
3034
+ */
3035
+ proto.gateway.parallax.v1.AddSpanErrorRequest.deserializeBinary = function(bytes) {
3036
+ var reader = new jspb.BinaryReader(bytes);
3037
+ var msg = new proto.gateway.parallax.v1.AddSpanErrorRequest;
3038
+ return proto.gateway.parallax.v1.AddSpanErrorRequest.deserializeBinaryFromReader(msg, reader);
3039
+ };
3040
+
3041
+
3042
+ /**
3043
+ * Deserializes binary data (in protobuf wire format) from the
3044
+ * given reader into the given message object.
3045
+ * @param {!proto.gateway.parallax.v1.AddSpanErrorRequest} msg The message object to deserialize into.
3046
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3047
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorRequest}
3048
+ */
3049
+ proto.gateway.parallax.v1.AddSpanErrorRequest.deserializeBinaryFromReader = function(msg, reader) {
3050
+ while (reader.nextField()) {
3051
+ if (reader.isEndGroup()) {
3052
+ break;
3053
+ }
3054
+ var field = reader.getFieldNumber();
3055
+ switch (field) {
3056
+ case 1:
3057
+ var value = /** @type {string} */ (reader.readString());
3058
+ msg.setTraceId(value);
3059
+ break;
3060
+ case 2:
3061
+ var value = /** @type {string} */ (reader.readString());
3062
+ msg.setSpanId(value);
3063
+ break;
3064
+ case 3:
3065
+ var value = /** @type {string} */ (reader.readString());
3066
+ msg.setErrorType(value);
3067
+ break;
3068
+ case 4:
3069
+ var value = /** @type {string} */ (reader.readString());
3070
+ msg.setMessage(value);
3071
+ break;
3072
+ case 5:
3073
+ var value = /** @type {string} */ (reader.readString());
3074
+ msg.setStackTrace(value);
3075
+ break;
3076
+ case 6:
3077
+ var value = msg.getAttributesMap();
3078
+ reader.readMessage(value, function(message, reader) {
3079
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
3080
+ });
3081
+ break;
3082
+ case 7:
3083
+ var value = new google_protobuf_timestamp_pb.Timestamp;
3084
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
3085
+ msg.setTimestamp(value);
3086
+ break;
3087
+ default:
3088
+ reader.skipField();
3089
+ break;
3090
+ }
3091
+ }
3092
+ return msg;
3093
+ };
3094
+
3095
+
3096
+ /**
3097
+ * Serializes the message to binary data (in protobuf wire format).
3098
+ * @return {!Uint8Array}
3099
+ */
3100
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.serializeBinary = function() {
3101
+ var writer = new jspb.BinaryWriter();
3102
+ proto.gateway.parallax.v1.AddSpanErrorRequest.serializeBinaryToWriter(this, writer);
3103
+ return writer.getResultBuffer();
3104
+ };
3105
+
3106
+
3107
+ /**
3108
+ * Serializes the given message to binary data (in protobuf wire
3109
+ * format), writing to the given BinaryWriter.
3110
+ * @param {!proto.gateway.parallax.v1.AddSpanErrorRequest} message
3111
+ * @param {!jspb.BinaryWriter} writer
3112
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3113
+ */
3114
+ proto.gateway.parallax.v1.AddSpanErrorRequest.serializeBinaryToWriter = function(message, writer) {
3115
+ var f = undefined;
3116
+ f = message.getTraceId();
3117
+ if (f.length > 0) {
3118
+ writer.writeString(
3119
+ 1,
3120
+ f
3121
+ );
3122
+ }
3123
+ f = message.getSpanId();
3124
+ if (f.length > 0) {
3125
+ writer.writeString(
3126
+ 2,
3127
+ f
3128
+ );
3129
+ }
3130
+ f = message.getErrorType();
3131
+ if (f.length > 0) {
3132
+ writer.writeString(
3133
+ 3,
3134
+ f
3135
+ );
3136
+ }
3137
+ f = message.getMessage();
3138
+ if (f.length > 0) {
3139
+ writer.writeString(
3140
+ 4,
3141
+ f
3142
+ );
3143
+ }
3144
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
3145
+ if (f != null) {
3146
+ writer.writeString(
3147
+ 5,
3148
+ f
3149
+ );
3150
+ }
3151
+ f = message.getAttributesMap(true);
3152
+ if (f && f.getLength() > 0) {
3153
+ f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
3154
+ }
3155
+ f = message.getTimestamp();
3156
+ if (f != null) {
3157
+ writer.writeMessage(
3158
+ 7,
3159
+ f,
3160
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
3161
+ );
3162
+ }
3163
+ };
3164
+
3165
+
3166
+ /**
3167
+ * optional string trace_id = 1;
3168
+ * @return {string}
3169
+ */
3170
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.getTraceId = function() {
3171
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3172
+ };
3173
+
3174
+
3175
+ /**
3176
+ * @param {string} value
3177
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
3178
+ */
3179
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.setTraceId = function(value) {
3180
+ return jspb.Message.setProto3StringField(this, 1, value);
3181
+ };
3182
+
3183
+
3184
+ /**
3185
+ * optional string span_id = 2;
3186
+ * @return {string}
3187
+ */
3188
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.getSpanId = function() {
3189
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3190
+ };
3191
+
3192
+
3193
+ /**
3194
+ * @param {string} value
3195
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
3196
+ */
3197
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.setSpanId = function(value) {
3198
+ return jspb.Message.setProto3StringField(this, 2, value);
3199
+ };
3200
+
3201
+
3202
+ /**
3203
+ * optional string error_type = 3;
3204
+ * @return {string}
3205
+ */
3206
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.getErrorType = function() {
3207
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3208
+ };
3209
+
3210
+
3211
+ /**
3212
+ * @param {string} value
3213
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
3214
+ */
3215
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.setErrorType = function(value) {
3216
+ return jspb.Message.setProto3StringField(this, 3, value);
3217
+ };
3218
+
3219
+
3220
+ /**
3221
+ * optional string message = 4;
3222
+ * @return {string}
3223
+ */
3224
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.getMessage = function() {
3225
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3226
+ };
3227
+
3228
+
3229
+ /**
3230
+ * @param {string} value
3231
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
3232
+ */
3233
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.setMessage = function(value) {
3234
+ return jspb.Message.setProto3StringField(this, 4, value);
3235
+ };
3236
+
3237
+
3238
+ /**
3239
+ * optional string stack_trace = 5;
3240
+ * @return {string}
3241
+ */
3242
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.getStackTrace = function() {
3243
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3244
+ };
3245
+
3246
+
3247
+ /**
3248
+ * @param {string} value
3249
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
3250
+ */
3251
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.setStackTrace = function(value) {
3252
+ return jspb.Message.setField(this, 5, value);
3253
+ };
3254
+
3255
+
3256
+ /**
3257
+ * Clears the field making it undefined.
3258
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
3259
+ */
3260
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.clearStackTrace = function() {
3261
+ return jspb.Message.setField(this, 5, undefined);
3262
+ };
3263
+
3264
+
3265
+ /**
3266
+ * Returns whether this field is set.
3267
+ * @return {boolean}
3268
+ */
3269
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.hasStackTrace = function() {
3270
+ return jspb.Message.getField(this, 5) != null;
3271
+ };
3272
+
3273
+
3274
+ /**
3275
+ * map<string, string> attributes = 6;
3276
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
3277
+ * empty, instead returning `undefined`
3278
+ * @return {!jspb.Map<string,string>}
3279
+ */
3280
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.getAttributesMap = function(opt_noLazyCreate) {
3281
+ return /** @type {!jspb.Map<string,string>} */ (
3282
+ jspb.Message.getMapField(this, 6, opt_noLazyCreate,
3283
+ null));
3284
+ };
3285
+
3286
+
3287
+ /**
3288
+ * Clears values from the map. The map will be non-null.
3289
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
3290
+ */
3291
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.clearAttributesMap = function() {
3292
+ this.getAttributesMap().clear();
3293
+ return this;
3294
+ };
3295
+
3296
+
3297
+ /**
3298
+ * optional google.protobuf.Timestamp timestamp = 7;
3299
+ * @return {?proto.google.protobuf.Timestamp}
3300
+ */
3301
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.getTimestamp = function() {
3302
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
3303
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
3304
+ };
3305
+
3306
+
3307
+ /**
3308
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
3309
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
3310
+ */
3311
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.setTimestamp = function(value) {
3312
+ return jspb.Message.setWrapperField(this, 7, value);
3313
+ };
3314
+
3315
+
3316
+ /**
3317
+ * Clears the message field making it undefined.
3318
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
3319
+ */
3320
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.clearTimestamp = function() {
3321
+ return this.setTimestamp(undefined);
3322
+ };
3323
+
3324
+
3325
+ /**
3326
+ * Returns whether this field is set.
3327
+ * @return {boolean}
3328
+ */
3329
+ proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.hasTimestamp = function() {
3330
+ return jspb.Message.getField(this, 7) != null;
3331
+ };
3332
+
3333
+
3334
+
3335
+
3336
+
3337
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3338
+ /**
3339
+ * Creates an object representation of this proto.
3340
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3341
+ * Optional fields that are not set will be set to undefined.
3342
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3343
+ * For the list of reserved names please see:
3344
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3345
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3346
+ * JSPB instance for transitional soy proto support:
3347
+ * http://goto/soy-param-migration
3348
+ * @return {!Object}
3349
+ */
3350
+ proto.gateway.parallax.v1.AddSpanErrorResponse.prototype.toObject = function(opt_includeInstance) {
3351
+ return proto.gateway.parallax.v1.AddSpanErrorResponse.toObject(opt_includeInstance, this);
3352
+ };
3353
+
3354
+
3355
+ /**
3356
+ * Static version of the {@see toObject} method.
3357
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3358
+ * the JSPB instance for transitional soy proto support:
3359
+ * http://goto/soy-param-migration
3360
+ * @param {!proto.gateway.parallax.v1.AddSpanErrorResponse} msg The msg instance to transform.
3361
+ * @return {!Object}
3362
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3363
+ */
3364
+ proto.gateway.parallax.v1.AddSpanErrorResponse.toObject = function(includeInstance, msg) {
3365
+ var f, obj = {
3366
+ status: (f = msg.getStatus()) && proto_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f)
3367
+ };
3368
+
3369
+ if (includeInstance) {
3370
+ obj.$jspbMessageInstance = msg;
3371
+ }
3372
+ return obj;
3373
+ };
3374
+ }
3375
+
3376
+
3377
+ /**
3378
+ * Deserializes binary data (in protobuf wire format).
3379
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3380
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorResponse}
3381
+ */
3382
+ proto.gateway.parallax.v1.AddSpanErrorResponse.deserializeBinary = function(bytes) {
3383
+ var reader = new jspb.BinaryReader(bytes);
3384
+ var msg = new proto.gateway.parallax.v1.AddSpanErrorResponse;
3385
+ return proto.gateway.parallax.v1.AddSpanErrorResponse.deserializeBinaryFromReader(msg, reader);
3386
+ };
3387
+
3388
+
3389
+ /**
3390
+ * Deserializes binary data (in protobuf wire format) from the
3391
+ * given reader into the given message object.
3392
+ * @param {!proto.gateway.parallax.v1.AddSpanErrorResponse} msg The message object to deserialize into.
3393
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3394
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorResponse}
3395
+ */
3396
+ proto.gateway.parallax.v1.AddSpanErrorResponse.deserializeBinaryFromReader = function(msg, reader) {
3397
+ while (reader.nextField()) {
3398
+ if (reader.isEndGroup()) {
3399
+ break;
3400
+ }
3401
+ var field = reader.getFieldNumber();
3402
+ switch (field) {
3403
+ case 1:
3404
+ var value = new proto_common_v1_status_pb.ResponseStatus;
3405
+ reader.readMessage(value,proto_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
3406
+ msg.setStatus(value);
3407
+ break;
3408
+ default:
3409
+ reader.skipField();
3410
+ break;
3411
+ }
3412
+ }
3413
+ return msg;
3414
+ };
3415
+
3416
+
3417
+ /**
3418
+ * Serializes the message to binary data (in protobuf wire format).
3419
+ * @return {!Uint8Array}
3420
+ */
3421
+ proto.gateway.parallax.v1.AddSpanErrorResponse.prototype.serializeBinary = function() {
3422
+ var writer = new jspb.BinaryWriter();
3423
+ proto.gateway.parallax.v1.AddSpanErrorResponse.serializeBinaryToWriter(this, writer);
3424
+ return writer.getResultBuffer();
3425
+ };
3426
+
3427
+
3428
+ /**
3429
+ * Serializes the given message to binary data (in protobuf wire
3430
+ * format), writing to the given BinaryWriter.
3431
+ * @param {!proto.gateway.parallax.v1.AddSpanErrorResponse} message
3432
+ * @param {!jspb.BinaryWriter} writer
3433
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3434
+ */
3435
+ proto.gateway.parallax.v1.AddSpanErrorResponse.serializeBinaryToWriter = function(message, writer) {
3436
+ var f = undefined;
3437
+ f = message.getStatus();
3438
+ if (f != null) {
3439
+ writer.writeMessage(
3440
+ 1,
3441
+ f,
3442
+ proto_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
3443
+ );
3444
+ }
3445
+ };
3446
+
3447
+
3448
+ /**
3449
+ * optional common.v1.ResponseStatus status = 1;
3450
+ * @return {?proto.common.v1.ResponseStatus}
3451
+ */
3452
+ proto.gateway.parallax.v1.AddSpanErrorResponse.prototype.getStatus = function() {
3453
+ return /** @type{?proto.common.v1.ResponseStatus} */ (
3454
+ jspb.Message.getWrapperField(this, proto_common_v1_status_pb.ResponseStatus, 1));
3455
+ };
3456
+
3457
+
3458
+ /**
3459
+ * @param {?proto.common.v1.ResponseStatus|undefined} value
3460
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorResponse} returns this
3461
+ */
3462
+ proto.gateway.parallax.v1.AddSpanErrorResponse.prototype.setStatus = function(value) {
3463
+ return jspb.Message.setWrapperField(this, 1, value);
3464
+ };
3465
+
3466
+
3467
+ /**
3468
+ * Clears the message field making it undefined.
3469
+ * @return {!proto.gateway.parallax.v1.AddSpanErrorResponse} returns this
3470
+ */
3471
+ proto.gateway.parallax.v1.AddSpanErrorResponse.prototype.clearStatus = function() {
3472
+ return this.setStatus(undefined);
3473
+ };
3474
+
3475
+
3476
+ /**
3477
+ * Returns whether this field is set.
3478
+ * @return {boolean}
3479
+ */
3480
+ proto.gateway.parallax.v1.AddSpanErrorResponse.prototype.hasStatus = function() {
3481
+ return jspb.Message.getField(this, 1) != null;
3482
+ };
3483
+
3484
+
3485
+
3486
+ /**
3487
+ * Oneof group definitions for this message. Each group defines the field
3488
+ * numbers belonging to that group. When of these fields' value is set, all
3489
+ * other fields in the group are cleared. During deserialization, if multiple
3490
+ * fields are encountered for a group, only the last value seen will be kept.
3491
+ * @private {!Array<!Array<number>>}
3492
+ * @const
3493
+ */
3494
+ proto.gateway.parallax.v1.AddSpanHintRequest.oneofGroups_ = [[10]];
3495
+
3496
+ /**
3497
+ * @enum {number}
3498
+ */
3499
+ proto.gateway.parallax.v1.AddSpanHintRequest.HintTypeCase = {
3500
+ HINT_TYPE_NOT_SET: 0,
3501
+ CHAIN_TRANSACTION: 10
3502
+ };
3503
+
3504
+ /**
3505
+ * @return {proto.gateway.parallax.v1.AddSpanHintRequest.HintTypeCase}
3506
+ */
3507
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.getHintTypeCase = function() {
3508
+ return /** @type {proto.gateway.parallax.v1.AddSpanHintRequest.HintTypeCase} */(jspb.Message.computeOneofCase(this, proto.gateway.parallax.v1.AddSpanHintRequest.oneofGroups_[0]));
3509
+ };
3510
+
3511
+
3512
+
3513
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3514
+ /**
3515
+ * Creates an object representation of this proto.
3516
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3517
+ * Optional fields that are not set will be set to undefined.
3518
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3519
+ * For the list of reserved names please see:
3520
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3521
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3522
+ * JSPB instance for transitional soy proto support:
3523
+ * http://goto/soy-param-migration
3524
+ * @return {!Object}
3525
+ */
3526
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.toObject = function(opt_includeInstance) {
3527
+ return proto.gateway.parallax.v1.AddSpanHintRequest.toObject(opt_includeInstance, this);
3528
+ };
3529
+
3530
+
3531
+ /**
3532
+ * Static version of the {@see toObject} method.
3533
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3534
+ * the JSPB instance for transitional soy proto support:
3535
+ * http://goto/soy-param-migration
3536
+ * @param {!proto.gateway.parallax.v1.AddSpanHintRequest} msg The msg instance to transform.
3537
+ * @return {!Object}
3538
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3539
+ */
3540
+ proto.gateway.parallax.v1.AddSpanHintRequest.toObject = function(includeInstance, msg) {
3541
+ var f, obj = {
3542
+ traceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3543
+ parentSpanId: jspb.Message.getFieldWithDefault(msg, 2, ""),
3544
+ timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
3545
+ chainTransaction: (f = msg.getChainTransaction()) && proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.toObject(includeInstance, f)
3546
+ };
3547
+
3548
+ if (includeInstance) {
3549
+ obj.$jspbMessageInstance = msg;
3550
+ }
3551
+ return obj;
3552
+ };
3553
+ }
3554
+
3555
+
3556
+ /**
3557
+ * Deserializes binary data (in protobuf wire format).
3558
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3559
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest}
3560
+ */
3561
+ proto.gateway.parallax.v1.AddSpanHintRequest.deserializeBinary = function(bytes) {
3562
+ var reader = new jspb.BinaryReader(bytes);
3563
+ var msg = new proto.gateway.parallax.v1.AddSpanHintRequest;
3564
+ return proto.gateway.parallax.v1.AddSpanHintRequest.deserializeBinaryFromReader(msg, reader);
3565
+ };
3566
+
3567
+
3568
+ /**
3569
+ * Deserializes binary data (in protobuf wire format) from the
3570
+ * given reader into the given message object.
3571
+ * @param {!proto.gateway.parallax.v1.AddSpanHintRequest} msg The message object to deserialize into.
3572
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3573
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest}
3574
+ */
3575
+ proto.gateway.parallax.v1.AddSpanHintRequest.deserializeBinaryFromReader = function(msg, reader) {
3576
+ while (reader.nextField()) {
3577
+ if (reader.isEndGroup()) {
3578
+ break;
3579
+ }
3580
+ var field = reader.getFieldNumber();
3581
+ switch (field) {
3582
+ case 1:
3583
+ var value = /** @type {string} */ (reader.readString());
3584
+ msg.setTraceId(value);
3585
+ break;
3586
+ case 2:
3587
+ var value = /** @type {string} */ (reader.readString());
3588
+ msg.setParentSpanId(value);
3589
+ break;
3590
+ case 3:
3591
+ var value = new google_protobuf_timestamp_pb.Timestamp;
3592
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
3593
+ msg.setTimestamp(value);
3594
+ break;
3595
+ case 10:
3596
+ var value = new proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction;
3597
+ reader.readMessage(value,proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.deserializeBinaryFromReader);
3598
+ msg.setChainTransaction(value);
3599
+ break;
3600
+ default:
3601
+ reader.skipField();
3602
+ break;
3603
+ }
3604
+ }
3605
+ return msg;
3606
+ };
3607
+
3608
+
3609
+ /**
3610
+ * Serializes the message to binary data (in protobuf wire format).
3611
+ * @return {!Uint8Array}
3612
+ */
3613
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.serializeBinary = function() {
3614
+ var writer = new jspb.BinaryWriter();
3615
+ proto.gateway.parallax.v1.AddSpanHintRequest.serializeBinaryToWriter(this, writer);
3616
+ return writer.getResultBuffer();
3617
+ };
3618
+
3619
+
3620
+ /**
3621
+ * Serializes the given message to binary data (in protobuf wire
3622
+ * format), writing to the given BinaryWriter.
3623
+ * @param {!proto.gateway.parallax.v1.AddSpanHintRequest} message
3624
+ * @param {!jspb.BinaryWriter} writer
3625
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3626
+ */
3627
+ proto.gateway.parallax.v1.AddSpanHintRequest.serializeBinaryToWriter = function(message, writer) {
3628
+ var f = undefined;
3629
+ f = message.getTraceId();
3630
+ if (f.length > 0) {
3631
+ writer.writeString(
3632
+ 1,
3633
+ f
3634
+ );
3635
+ }
3636
+ f = message.getParentSpanId();
3637
+ if (f.length > 0) {
3638
+ writer.writeString(
3639
+ 2,
3640
+ f
3641
+ );
3642
+ }
3643
+ f = message.getTimestamp();
3644
+ if (f != null) {
3645
+ writer.writeMessage(
3646
+ 3,
3647
+ f,
3648
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
3649
+ );
3650
+ }
3651
+ f = message.getChainTransaction();
3652
+ if (f != null) {
3653
+ writer.writeMessage(
3654
+ 10,
3655
+ f,
3656
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.serializeBinaryToWriter
3657
+ );
3658
+ }
3659
+ };
3660
+
3661
+
3662
+
3663
+
3664
+
3665
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3666
+ /**
3667
+ * Creates an object representation of this proto.
3668
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3669
+ * Optional fields that are not set will be set to undefined.
3670
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3671
+ * For the list of reserved names please see:
3672
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3673
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3674
+ * JSPB instance for transitional soy proto support:
3675
+ * http://goto/soy-param-migration
3676
+ * @return {!Object}
3677
+ */
3678
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.prototype.toObject = function(opt_includeInstance) {
3679
+ return proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.toObject(opt_includeInstance, this);
3680
+ };
3681
+
3682
+
3683
+ /**
3684
+ * Static version of the {@see toObject} method.
3685
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3686
+ * the JSPB instance for transitional soy proto support:
3687
+ * http://goto/soy-param-migration
3688
+ * @param {!proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction} msg The msg instance to transform.
3689
+ * @return {!Object}
3690
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3691
+ */
3692
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.toObject = function(includeInstance, msg) {
3693
+ var obj = {
3694
+ txHash: jspb.Message.getFieldWithDefault(msg, 1, ""),
3695
+ chainId: jspb.Message.getFieldWithDefault(msg, 2, 0)
3696
+ };
3697
+
3698
+ if (includeInstance) {
3699
+ obj.$jspbMessageInstance = msg;
3700
+ }
3701
+ return obj;
3702
+ };
3703
+ }
3704
+
3705
+
3706
+ /**
3707
+ * Deserializes binary data (in protobuf wire format).
3708
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3709
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction}
3710
+ */
3711
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.deserializeBinary = function(bytes) {
3712
+ var reader = new jspb.BinaryReader(bytes);
3713
+ var msg = new proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction;
3714
+ return proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.deserializeBinaryFromReader(msg, reader);
3715
+ };
3716
+
3717
+
3718
+ /**
3719
+ * Deserializes binary data (in protobuf wire format) from the
3720
+ * given reader into the given message object.
3721
+ * @param {!proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction} msg The message object to deserialize into.
3722
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3723
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction}
3724
+ */
3725
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.deserializeBinaryFromReader = function(msg, reader) {
3726
+ while (reader.nextField()) {
3727
+ if (reader.isEndGroup()) {
3728
+ break;
3729
+ }
3730
+ var field = reader.getFieldNumber();
3731
+ switch (field) {
3732
+ case 1:
3733
+ var value = /** @type {string} */ (reader.readString());
3734
+ msg.setTxHash(value);
3735
+ break;
3736
+ case 2:
3737
+ var value = /** @type {number} */ (reader.readUint64());
3738
+ msg.setChainId(value);
3739
+ break;
3740
+ default:
3741
+ reader.skipField();
3742
+ break;
3743
+ }
3744
+ }
3745
+ return msg;
3746
+ };
3747
+
3748
+
3749
+ /**
3750
+ * Serializes the message to binary data (in protobuf wire format).
3751
+ * @return {!Uint8Array}
3752
+ */
3753
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.prototype.serializeBinary = function() {
3754
+ var writer = new jspb.BinaryWriter();
3755
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.serializeBinaryToWriter(this, writer);
3756
+ return writer.getResultBuffer();
3757
+ };
3758
+
3759
+
3760
+ /**
3761
+ * Serializes the given message to binary data (in protobuf wire
3762
+ * format), writing to the given BinaryWriter.
3763
+ * @param {!proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction} message
3764
+ * @param {!jspb.BinaryWriter} writer
3765
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3766
+ */
3767
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.serializeBinaryToWriter = function(message, writer) {
3768
+ var f = undefined;
3769
+ f = message.getTxHash();
3770
+ if (f.length > 0) {
3771
+ writer.writeString(
3772
+ 1,
3773
+ f
3774
+ );
3775
+ }
3776
+ f = message.getChainId();
3777
+ if (f !== 0) {
3778
+ writer.writeUint64(
3779
+ 2,
3780
+ f
3781
+ );
3782
+ }
3783
+ };
3784
+
3785
+
3786
+ /**
3787
+ * optional string tx_hash = 1;
3788
+ * @return {string}
3789
+ */
3790
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.prototype.getTxHash = function() {
3791
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3792
+ };
3793
+
3794
+
3795
+ /**
3796
+ * @param {string} value
3797
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction} returns this
3798
+ */
3799
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.prototype.setTxHash = function(value) {
3800
+ return jspb.Message.setProto3StringField(this, 1, value);
3801
+ };
3802
+
3803
+
3804
+ /**
3805
+ * optional uint64 chain_id = 2;
3806
+ * @return {number}
3807
+ */
3808
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.prototype.getChainId = function() {
3809
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3810
+ };
3811
+
3812
+
3813
+ /**
3814
+ * @param {number} value
3815
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction} returns this
3816
+ */
3817
+ proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.prototype.setChainId = function(value) {
3818
+ return jspb.Message.setProto3IntField(this, 2, value);
3819
+ };
3820
+
3821
+
3822
+ /**
3823
+ * optional string trace_id = 1;
3824
+ * @return {string}
3825
+ */
3826
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.getTraceId = function() {
3827
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3828
+ };
3829
+
3830
+
3831
+ /**
3832
+ * @param {string} value
3833
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest} returns this
3834
+ */
3835
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.setTraceId = function(value) {
3836
+ return jspb.Message.setProto3StringField(this, 1, value);
3837
+ };
3838
+
3839
+
3840
+ /**
3841
+ * optional string parent_span_id = 2;
3842
+ * @return {string}
3843
+ */
3844
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.getParentSpanId = function() {
3845
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3846
+ };
3847
+
3848
+
3849
+ /**
3850
+ * @param {string} value
3851
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest} returns this
3852
+ */
3853
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.setParentSpanId = function(value) {
3854
+ return jspb.Message.setProto3StringField(this, 2, value);
3855
+ };
3856
+
3857
+
3858
+ /**
3859
+ * optional google.protobuf.Timestamp timestamp = 3;
3860
+ * @return {?proto.google.protobuf.Timestamp}
3861
+ */
3862
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.getTimestamp = function() {
3863
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
3864
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
3865
+ };
3866
+
3867
+
3868
+ /**
3869
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
3870
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest} returns this
3871
+ */
3872
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.setTimestamp = function(value) {
3873
+ return jspb.Message.setWrapperField(this, 3, value);
3874
+ };
3875
+
3876
+
3877
+ /**
3878
+ * Clears the message field making it undefined.
3879
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest} returns this
3880
+ */
3881
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.clearTimestamp = function() {
3882
+ return this.setTimestamp(undefined);
3883
+ };
3884
+
3885
+
3886
+ /**
3887
+ * Returns whether this field is set.
3888
+ * @return {boolean}
3889
+ */
3890
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.hasTimestamp = function() {
3891
+ return jspb.Message.getField(this, 3) != null;
3892
+ };
3893
+
3894
+
3895
+ /**
3896
+ * optional ChainTransaction chain_transaction = 10;
3897
+ * @return {?proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction}
3898
+ */
3899
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.getChainTransaction = function() {
3900
+ return /** @type{?proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction} */ (
3901
+ jspb.Message.getWrapperField(this, proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction, 10));
3902
+ };
3903
+
3904
+
3905
+ /**
3906
+ * @param {?proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction|undefined} value
3907
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest} returns this
3908
+ */
3909
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.setChainTransaction = function(value) {
3910
+ return jspb.Message.setOneofWrapperField(this, 10, proto.gateway.parallax.v1.AddSpanHintRequest.oneofGroups_[0], value);
3911
+ };
3912
+
3913
+
3914
+ /**
3915
+ * Clears the message field making it undefined.
3916
+ * @return {!proto.gateway.parallax.v1.AddSpanHintRequest} returns this
3917
+ */
3918
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.clearChainTransaction = function() {
3919
+ return this.setChainTransaction(undefined);
3920
+ };
3921
+
3922
+
3923
+ /**
3924
+ * Returns whether this field is set.
3925
+ * @return {boolean}
3926
+ */
3927
+ proto.gateway.parallax.v1.AddSpanHintRequest.prototype.hasChainTransaction = function() {
3928
+ return jspb.Message.getField(this, 10) != null;
3929
+ };
3930
+
3931
+
3932
+
3933
+
3934
+
3935
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3936
+ /**
3937
+ * Creates an object representation of this proto.
3938
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3939
+ * Optional fields that are not set will be set to undefined.
3940
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3941
+ * For the list of reserved names please see:
3942
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3943
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3944
+ * JSPB instance for transitional soy proto support:
3945
+ * http://goto/soy-param-migration
3946
+ * @return {!Object}
3947
+ */
3948
+ proto.gateway.parallax.v1.AddSpanHintResponse.prototype.toObject = function(opt_includeInstance) {
3949
+ return proto.gateway.parallax.v1.AddSpanHintResponse.toObject(opt_includeInstance, this);
3950
+ };
3951
+
3952
+
3953
+ /**
3954
+ * Static version of the {@see toObject} method.
3955
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3956
+ * the JSPB instance for transitional soy proto support:
3957
+ * http://goto/soy-param-migration
3958
+ * @param {!proto.gateway.parallax.v1.AddSpanHintResponse} msg The msg instance to transform.
3959
+ * @return {!Object}
3960
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3961
+ */
3962
+ proto.gateway.parallax.v1.AddSpanHintResponse.toObject = function(includeInstance, msg) {
3963
+ var f, obj = {
3964
+ status: (f = msg.getStatus()) && proto_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f)
3965
+ };
3966
+
3967
+ if (includeInstance) {
3968
+ obj.$jspbMessageInstance = msg;
3969
+ }
3970
+ return obj;
3971
+ };
3972
+ }
3973
+
3974
+
3975
+ /**
3976
+ * Deserializes binary data (in protobuf wire format).
3977
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3978
+ * @return {!proto.gateway.parallax.v1.AddSpanHintResponse}
3979
+ */
3980
+ proto.gateway.parallax.v1.AddSpanHintResponse.deserializeBinary = function(bytes) {
3981
+ var reader = new jspb.BinaryReader(bytes);
3982
+ var msg = new proto.gateway.parallax.v1.AddSpanHintResponse;
3983
+ return proto.gateway.parallax.v1.AddSpanHintResponse.deserializeBinaryFromReader(msg, reader);
3984
+ };
3985
+
3986
+
3987
+ /**
3988
+ * Deserializes binary data (in protobuf wire format) from the
3989
+ * given reader into the given message object.
3990
+ * @param {!proto.gateway.parallax.v1.AddSpanHintResponse} msg The message object to deserialize into.
3991
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3992
+ * @return {!proto.gateway.parallax.v1.AddSpanHintResponse}
3993
+ */
3994
+ proto.gateway.parallax.v1.AddSpanHintResponse.deserializeBinaryFromReader = function(msg, reader) {
3995
+ while (reader.nextField()) {
3996
+ if (reader.isEndGroup()) {
3997
+ break;
3998
+ }
3999
+ var field = reader.getFieldNumber();
4000
+ switch (field) {
4001
+ case 1:
4002
+ var value = new proto_common_v1_status_pb.ResponseStatus;
4003
+ reader.readMessage(value,proto_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
4004
+ msg.setStatus(value);
4005
+ break;
4006
+ default:
4007
+ reader.skipField();
4008
+ break;
4009
+ }
4010
+ }
4011
+ return msg;
4012
+ };
4013
+
4014
+
4015
+ /**
4016
+ * Serializes the message to binary data (in protobuf wire format).
4017
+ * @return {!Uint8Array}
4018
+ */
4019
+ proto.gateway.parallax.v1.AddSpanHintResponse.prototype.serializeBinary = function() {
4020
+ var writer = new jspb.BinaryWriter();
4021
+ proto.gateway.parallax.v1.AddSpanHintResponse.serializeBinaryToWriter(this, writer);
4022
+ return writer.getResultBuffer();
4023
+ };
4024
+
4025
+
4026
+ /**
4027
+ * Serializes the given message to binary data (in protobuf wire
4028
+ * format), writing to the given BinaryWriter.
4029
+ * @param {!proto.gateway.parallax.v1.AddSpanHintResponse} message
4030
+ * @param {!jspb.BinaryWriter} writer
4031
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4032
+ */
4033
+ proto.gateway.parallax.v1.AddSpanHintResponse.serializeBinaryToWriter = function(message, writer) {
4034
+ var f = undefined;
4035
+ f = message.getStatus();
4036
+ if (f != null) {
4037
+ writer.writeMessage(
4038
+ 1,
4039
+ f,
4040
+ proto_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
4041
+ );
4042
+ }
4043
+ };
4044
+
4045
+
4046
+ /**
4047
+ * optional common.v1.ResponseStatus status = 1;
4048
+ * @return {?proto.common.v1.ResponseStatus}
4049
+ */
4050
+ proto.gateway.parallax.v1.AddSpanHintResponse.prototype.getStatus = function() {
4051
+ return /** @type{?proto.common.v1.ResponseStatus} */ (
4052
+ jspb.Message.getWrapperField(this, proto_common_v1_status_pb.ResponseStatus, 1));
4053
+ };
4054
+
4055
+
4056
+ /**
4057
+ * @param {?proto.common.v1.ResponseStatus|undefined} value
4058
+ * @return {!proto.gateway.parallax.v1.AddSpanHintResponse} returns this
4059
+ */
4060
+ proto.gateway.parallax.v1.AddSpanHintResponse.prototype.setStatus = function(value) {
4061
+ return jspb.Message.setWrapperField(this, 1, value);
4062
+ };
4063
+
4064
+
4065
+ /**
4066
+ * Clears the message field making it undefined.
4067
+ * @return {!proto.gateway.parallax.v1.AddSpanHintResponse} returns this
4068
+ */
4069
+ proto.gateway.parallax.v1.AddSpanHintResponse.prototype.clearStatus = function() {
4070
+ return this.setStatus(undefined);
4071
+ };
4072
+
4073
+
4074
+ /**
4075
+ * Returns whether this field is set.
4076
+ * @return {boolean}
4077
+ */
4078
+ proto.gateway.parallax.v1.AddSpanHintResponse.prototype.hasStatus = function() {
4079
+ return jspb.Message.getField(this, 1) != null;
4080
+ };
4081
+
4082
+
4083
+ goog.object.extend(exports$1, proto.gateway.parallax.v1);
4084
+ } (parallax_gateway_pb));
4085
+ return parallax_gateway_pb;
4086
+ }
4087
+
4088
+ var parallax_gateway_pbExports = requireParallax_gateway_pb();
4089
+
4090
+ /**
4091
+ * @fileoverview gRPC-Web generated client stub for gateway.parallax.v1
4092
+ * @enhanceable
4093
+ * @public
4094
+ */
4095
+ // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
4096
+ // versions:
4097
+ // protoc-gen-grpc-web v1.5.0
4098
+ // protoc v3.21.12
4099
+ // source: proto/gateway/parallax/v1/parallax_gateway.proto
4100
+ /* eslint-disable */
4101
+ // @ts-nocheck
4102
+ class ParallaxGatewayServiceClient {
4103
+ constructor(hostname, credentials, options) {
4104
+ Object.defineProperty(this, "client_", {
4105
+ enumerable: true,
4106
+ configurable: true,
4107
+ writable: true,
4108
+ value: void 0
4109
+ });
4110
+ Object.defineProperty(this, "hostname_", {
4111
+ enumerable: true,
4112
+ configurable: true,
4113
+ writable: true,
4114
+ value: void 0
4115
+ });
4116
+ Object.defineProperty(this, "credentials_", {
4117
+ enumerable: true,
4118
+ configurable: true,
4119
+ writable: true,
4120
+ value: void 0
4121
+ });
4122
+ Object.defineProperty(this, "options_", {
4123
+ enumerable: true,
4124
+ configurable: true,
4125
+ writable: true,
4126
+ value: void 0
4127
+ });
4128
+ Object.defineProperty(this, "methodDescriptorCreateTrace", {
4129
+ enumerable: true,
4130
+ configurable: true,
4131
+ writable: true,
4132
+ value: new grpcWebExports.MethodDescriptor('/gateway.parallax.v1.ParallaxGatewayService/CreateTrace', grpcWebExports.MethodType.UNARY, parallax_gateway_pbExports.CreateTraceRequest, parallax_gateway_pbExports.CreateTraceResponse, (request) => {
4133
+ return request.serializeBinary();
4134
+ }, parallax_gateway_pbExports.CreateTraceResponse.deserializeBinary)
4135
+ });
4136
+ Object.defineProperty(this, "methodDescriptorStartSpan", {
4137
+ enumerable: true,
4138
+ configurable: true,
4139
+ writable: true,
4140
+ value: new grpcWebExports.MethodDescriptor('/gateway.parallax.v1.ParallaxGatewayService/StartSpan', grpcWebExports.MethodType.UNARY, parallax_gateway_pbExports.StartSpanRequest, parallax_gateway_pbExports.StartSpanResponse, (request) => {
4141
+ return request.serializeBinary();
4142
+ }, parallax_gateway_pbExports.StartSpanResponse.deserializeBinary)
4143
+ });
4144
+ Object.defineProperty(this, "methodDescriptorFinishSpan", {
4145
+ enumerable: true,
4146
+ configurable: true,
4147
+ writable: true,
4148
+ value: new grpcWebExports.MethodDescriptor('/gateway.parallax.v1.ParallaxGatewayService/FinishSpan', grpcWebExports.MethodType.UNARY, parallax_gateway_pbExports.FinishSpanRequest, parallax_gateway_pbExports.FinishSpanResponse, (request) => {
4149
+ return request.serializeBinary();
4150
+ }, parallax_gateway_pbExports.FinishSpanResponse.deserializeBinary)
4151
+ });
4152
+ Object.defineProperty(this, "methodDescriptorAddSpanEvent", {
4153
+ enumerable: true,
4154
+ configurable: true,
4155
+ writable: true,
4156
+ value: new grpcWebExports.MethodDescriptor('/gateway.parallax.v1.ParallaxGatewayService/AddSpanEvent', grpcWebExports.MethodType.UNARY, parallax_gateway_pbExports.AddSpanEventRequest, parallax_gateway_pbExports.AddSpanEventResponse, (request) => {
4157
+ return request.serializeBinary();
4158
+ }, parallax_gateway_pbExports.AddSpanEventResponse.deserializeBinary)
4159
+ });
4160
+ Object.defineProperty(this, "methodDescriptorAddSpanError", {
4161
+ enumerable: true,
4162
+ configurable: true,
4163
+ writable: true,
4164
+ value: new grpcWebExports.MethodDescriptor('/gateway.parallax.v1.ParallaxGatewayService/AddSpanError', grpcWebExports.MethodType.UNARY, parallax_gateway_pbExports.AddSpanErrorRequest, parallax_gateway_pbExports.AddSpanErrorResponse, (request) => {
4165
+ return request.serializeBinary();
4166
+ }, parallax_gateway_pbExports.AddSpanErrorResponse.deserializeBinary)
4167
+ });
4168
+ Object.defineProperty(this, "methodDescriptorAddSpanHint", {
4169
+ enumerable: true,
4170
+ configurable: true,
4171
+ writable: true,
4172
+ value: new grpcWebExports.MethodDescriptor('/gateway.parallax.v1.ParallaxGatewayService/AddSpanHint', grpcWebExports.MethodType.UNARY, parallax_gateway_pbExports.AddSpanHintRequest, parallax_gateway_pbExports.AddSpanHintResponse, (request) => {
4173
+ return request.serializeBinary();
4174
+ }, parallax_gateway_pbExports.AddSpanHintResponse.deserializeBinary)
4175
+ });
4176
+ if (!options)
4177
+ options = {};
4178
+ if (!credentials)
4179
+ credentials = {};
4180
+ options['format'] = 'text';
4181
+ this.client_ = new grpcWebExports.GrpcWebClientBase(options);
4182
+ this.hostname_ = hostname.replace(/\/+$/, '');
4183
+ this.credentials_ = credentials;
4184
+ this.options_ = options;
4185
+ }
4186
+ createTrace(request, metadata, callback) {
4187
+ if (callback !== undefined) {
4188
+ return this.client_.rpcCall(this.hostname_ +
4189
+ '/gateway.parallax.v1.ParallaxGatewayService/CreateTrace', request, metadata || {}, this.methodDescriptorCreateTrace, callback);
4190
+ }
4191
+ return this.client_.unaryCall(this.hostname_ +
4192
+ '/gateway.parallax.v1.ParallaxGatewayService/CreateTrace', request, metadata || {}, this.methodDescriptorCreateTrace);
4193
+ }
4194
+ startSpan(request, metadata, callback) {
4195
+ if (callback !== undefined) {
4196
+ return this.client_.rpcCall(this.hostname_ +
4197
+ '/gateway.parallax.v1.ParallaxGatewayService/StartSpan', request, metadata || {}, this.methodDescriptorStartSpan, callback);
4198
+ }
4199
+ return this.client_.unaryCall(this.hostname_ +
4200
+ '/gateway.parallax.v1.ParallaxGatewayService/StartSpan', request, metadata || {}, this.methodDescriptorStartSpan);
4201
+ }
4202
+ finishSpan(request, metadata, callback) {
4203
+ if (callback !== undefined) {
4204
+ return this.client_.rpcCall(this.hostname_ +
4205
+ '/gateway.parallax.v1.ParallaxGatewayService/FinishSpan', request, metadata || {}, this.methodDescriptorFinishSpan, callback);
4206
+ }
4207
+ return this.client_.unaryCall(this.hostname_ +
4208
+ '/gateway.parallax.v1.ParallaxGatewayService/FinishSpan', request, metadata || {}, this.methodDescriptorFinishSpan);
4209
+ }
4210
+ addSpanEvent(request, metadata, callback) {
4211
+ if (callback !== undefined) {
4212
+ return this.client_.rpcCall(this.hostname_ +
4213
+ '/gateway.parallax.v1.ParallaxGatewayService/AddSpanEvent', request, metadata || {}, this.methodDescriptorAddSpanEvent, callback);
4214
+ }
4215
+ return this.client_.unaryCall(this.hostname_ +
4216
+ '/gateway.parallax.v1.ParallaxGatewayService/AddSpanEvent', request, metadata || {}, this.methodDescriptorAddSpanEvent);
4217
+ }
4218
+ addSpanError(request, metadata, callback) {
4219
+ if (callback !== undefined) {
4220
+ return this.client_.rpcCall(this.hostname_ +
4221
+ '/gateway.parallax.v1.ParallaxGatewayService/AddSpanError', request, metadata || {}, this.methodDescriptorAddSpanError, callback);
4222
+ }
4223
+ return this.client_.unaryCall(this.hostname_ +
4224
+ '/gateway.parallax.v1.ParallaxGatewayService/AddSpanError', request, metadata || {}, this.methodDescriptorAddSpanError);
4225
+ }
4226
+ addSpanHint(request, metadata, callback) {
4227
+ if (callback !== undefined) {
4228
+ return this.client_.rpcCall(this.hostname_ +
4229
+ '/gateway.parallax.v1.ParallaxGatewayService/AddSpanHint', request, metadata || {}, this.methodDescriptorAddSpanHint, callback);
4230
+ }
4231
+ return this.client_.unaryCall(this.hostname_ +
4232
+ '/gateway.parallax.v1.ParallaxGatewayService/AddSpanHint', request, metadata || {}, this.methodDescriptorAddSpanHint);
4233
+ }
4234
+ }
4235
+
4236
+ const GRPC_GATEWAY_API_URL = "https://gateway-parallax-dev.platform.svc.cluster.local:50053";
4237
+ const debugIssue = (trace, error) => {
4238
+ // Handle our own debugging / logging here
4239
+ console.error(`[ParallaxClient][${trace}] Error:`, error);
4240
+ };
4241
+ class ParallaxClient {
4242
+ constructor(apiKey, apiUrl) {
4243
+ Object.defineProperty(this, "apiKey", {
4244
+ enumerable: true,
4245
+ configurable: true,
4246
+ writable: true,
4247
+ value: apiKey
4248
+ });
4249
+ Object.defineProperty(this, "apiUrl", {
4250
+ enumerable: true,
4251
+ configurable: true,
4252
+ writable: true,
4253
+ value: GRPC_GATEWAY_API_URL
4254
+ });
4255
+ Object.defineProperty(this, "client", {
4256
+ enumerable: true,
4257
+ configurable: true,
4258
+ writable: true,
4259
+ value: void 0
4260
+ });
4261
+ if (apiUrl) {
4262
+ this.apiUrl = apiUrl;
4263
+ }
4264
+ // Create credentials object with API key if provided
4265
+ const credentials = apiKey ? { 'x-api-key': apiKey } : undefined;
4266
+ // Initialize the gRPC-Web client
4267
+ this.client = new ParallaxGatewayServiceClient(this.apiUrl, credentials);
4268
+ }
4269
+ /**
4270
+ * Create a new trace
4271
+ * @param params Parameters to create a new trace
4272
+ * @returns Response from the create trace operation
4273
+ */
4274
+ async createTrace(params) {
4275
+ try {
4276
+ return await this.client.createTrace(params, null);
4277
+ }
4278
+ catch (_error) {
4279
+ debugIssue("createTrace", new Error('Error creating trace'));
4280
+ throw _error;
4281
+ }
4282
+ }
4283
+ /**
4284
+ * Start a new span within a trace
4285
+ * @param params Parameters to start a new span
4286
+ */
4287
+ async startSpan(params) {
4288
+ try {
4289
+ return await this.client.startSpan(params, null);
4290
+ }
4291
+ catch (_error) {
4292
+ debugIssue("startSpan", new Error('Error starting span'));
4293
+ throw _error;
4294
+ }
4295
+ }
4296
+ /**
4297
+ * Finish a span within a trace
4298
+ * @param params Parameters to finish a span
4299
+ */
4300
+ async finishSpan(params) {
4301
+ try {
4302
+ return await this.client.finishSpan(params, null);
4303
+ }
4304
+ catch (_error) {
4305
+ debugIssue("finishSpan", new Error('Error finishing span'));
4306
+ throw _error;
4307
+ }
4308
+ }
4309
+ /**
4310
+ * Add an event to a span
4311
+ * @param params Parameters to add an event to a span
4312
+ */
4313
+ async addSpanEvent(params) {
4314
+ try {
4315
+ return await this.client.addSpanEvent(params, null);
4316
+ }
4317
+ catch (_error) {
4318
+ debugIssue("addSpanEvent", new Error('Error adding span event'));
4319
+ throw _error;
4320
+ }
4321
+ }
4322
+ /**
4323
+ * Add an error to a span
4324
+ * @param params Parameters to add an error to a span
4325
+ */
4326
+ async addSpanError(params) {
4327
+ try {
4328
+ return await this.client.addSpanError(params, null);
4329
+ }
4330
+ catch (_error) {
4331
+ debugIssue("addSpanError", new Error('Error adding span error'));
4332
+ throw _error;
4333
+ }
4334
+ }
4335
+ /**
4336
+ * Add a hint to a span
4337
+ * @param params Parameters to add a hint to a span
4338
+ */
4339
+ async addSpanHint(params) {
4340
+ try {
4341
+ return await this.client.addSpanHint(params, null);
4342
+ }
4343
+ catch (_error) {
4344
+ debugIssue("addSpanHint", new Error('Error adding span hint'));
4345
+ throw _error;
4346
+ }
4347
+ }
4348
+ }
4349
+
4350
+ class GrpcWebRpc {
4351
+ constructor(url, apiKey) {
4352
+ Object.defineProperty(this, "url", {
4353
+ enumerable: true,
4354
+ configurable: true,
4355
+ writable: true,
4356
+ value: void 0
4357
+ });
4358
+ Object.defineProperty(this, "apiKey", {
4359
+ enumerable: true,
4360
+ configurable: true,
4361
+ writable: true,
4362
+ value: void 0
4363
+ });
4364
+ this.url = url;
4365
+ this.apiKey = apiKey;
4366
+ }
4367
+ async request(service, method, data, metadata) {
4368
+ console.log(`[gRPC-Web] Making request to ${this.url}/${service}/${method}`);
4369
+ const headers = {
4370
+ 'Content-Type': 'application/grpc-web+proto',
4371
+ 'X-Grpc-Web': '1',
4372
+ };
4373
+ // Add API key to headers if provided
4374
+ if (this.apiKey) {
4375
+ headers['x-api-key'] = this.apiKey;
4376
+ }
4377
+ // Add custom metadata
4378
+ if (metadata) {
4379
+ Object.entries(metadata).forEach(([key, value]) => {
4380
+ headers[key] = value;
4381
+ });
4382
+ }
4383
+ try {
4384
+ const response = await fetch(`${this.url}/${service}/${method}`, {
4385
+ method: 'POST',
4386
+ headers,
4387
+ body: data.buffer,
4388
+ });
4389
+ if (!response.ok) {
4390
+ const errorText = await response.text();
4391
+ throw new Error(`gRPC-Web error: ${response.status} ${response.statusText} - ${errorText}`);
4392
+ }
4393
+ const arrayBuffer = await response.arrayBuffer();
4394
+ console.log(`[gRPC-Web] Success from ${this.url}/${service}/${method}`);
4395
+ return new Uint8Array(arrayBuffer);
4396
+ }
4397
+ catch (error) {
4398
+ console.error(`[gRPC-Web] Error from ${this.url}/${service}/${method}:`, error instanceof Error ? error.message : String(error));
4399
+ throw error;
4400
+ }
4401
+ }
4402
+ clientStreamingRequest() {
4403
+ throw new Error("Client streaming not yet implemented for gRPC-Web");
4404
+ }
4405
+ serverStreamingRequest(service, method, data) {
4406
+ return new rxjs.Observable((subscriber) => {
4407
+ const headers = {
4408
+ 'Content-Type': 'application/grpc-web+proto',
4409
+ 'X-Grpc-Web': '1',
4410
+ };
4411
+ // Add API key to headers if provided
4412
+ if (this.apiKey) {
4413
+ headers['x-api-key'] = this.apiKey;
4414
+ }
4415
+ fetch(`${this.url}/${service}/${method}`, {
4416
+ method: 'POST',
4417
+ headers,
4418
+ body: data.buffer,
4419
+ })
4420
+ .then(async (response) => {
4421
+ if (!response.ok) {
4422
+ throw new Error(`gRPC-Web error: ${response.status} ${response.statusText}`);
4423
+ }
4424
+ if (!response.body) {
4425
+ throw new Error('Response body is null');
4426
+ }
4427
+ const reader = response.body.getReader();
4428
+ try {
4429
+ while (true) {
4430
+ const { done, value } = await reader.read();
4431
+ if (done) {
4432
+ subscriber.complete();
4433
+ break;
4434
+ }
4435
+ if (value) {
4436
+ subscriber.next(value);
4437
+ }
4438
+ }
4439
+ }
4440
+ catch (error) {
4441
+ subscriber.error(error);
4442
+ }
4443
+ })
4444
+ .catch((error) => {
4445
+ subscriber.error(error);
4446
+ });
4447
+ return () => {
4448
+ // Cleanup logic if needed
4449
+ };
4450
+ });
4451
+ }
4452
+ bidirectionalStreamingRequest() {
4453
+ throw new Error("Bidirectional streaming not yet implemented for gRPC-Web");
4454
+ }
4455
+ }
4456
+
4457
+ exports.AddSpanErrorRequest = parallax_gateway_pbExports.AddSpanErrorRequest;
4458
+ exports.AddSpanErrorResponse = parallax_gateway_pbExports.AddSpanErrorResponse;
4459
+ exports.AddSpanEventRequest = parallax_gateway_pbExports.AddSpanEventRequest;
4460
+ exports.AddSpanEventResponse = parallax_gateway_pbExports.AddSpanEventResponse;
4461
+ exports.AddSpanHintRequest = parallax_gateway_pbExports.AddSpanHintRequest;
4462
+ exports.AddSpanHintResponse = parallax_gateway_pbExports.AddSpanHintResponse;
4463
+ exports.CreateTraceRequest = parallax_gateway_pbExports.CreateTraceRequest;
4464
+ exports.CreateTraceResponse = parallax_gateway_pbExports.CreateTraceResponse;
4465
+ exports.FinishSpanRequest = parallax_gateway_pbExports.FinishSpanRequest;
4466
+ exports.FinishSpanResponse = parallax_gateway_pbExports.FinishSpanResponse;
4467
+ exports.GrpcWebRpc = GrpcWebRpc;
4468
+ exports.ParallaxClient = ParallaxClient;
4469
+ exports.StartSpanRequest = parallax_gateway_pbExports.StartSpanRequest;
4470
+ exports.StartSpanResponse = parallax_gateway_pbExports.StartSpanResponse;
278
4471
 
279
4472
  }));
280
4473
  //# sourceMappingURL=index.umd.js.map