@dcl-regenesislabs/sdk-commands 7.33.1-45406357614.commit-195d2ef → 7.33.1-45408786018.commit-9fc71e8

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.
@@ -0,0 +1,1175 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AboutResponse_BffInfo = exports.AboutResponse_CommsInfo = exports.AboutResponse_LambdasInfo = exports.AboutResponse_ContentInfo = exports.AboutResponse_AboutConfiguration = exports.AboutResponse_SkyboxConfiguration = exports.AboutResponse_MapConfiguration_ParcelView = exports.AboutResponse_MapConfiguration_ImageViewWithZoomLevel = exports.AboutResponse_MapConfiguration = exports.AboutResponse_MinimapConfiguration = exports.AboutResponse = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
+ const border_rect_gen_1 = require("../common/border_rect.gen");
10
+ const vectors_gen_1 = require("../common/vectors.gen");
11
+ exports.protobufPackage = "decentraland.realm";
12
+ function createBaseAboutResponse() {
13
+ return {
14
+ healthy: false,
15
+ configurations: undefined,
16
+ content: undefined,
17
+ comms: undefined,
18
+ lambdas: undefined,
19
+ bff: undefined,
20
+ acceptingUsers: false,
21
+ };
22
+ }
23
+ var AboutResponse;
24
+ (function (AboutResponse) {
25
+ function encode(message, writer = minimal_1.default.Writer.create()) {
26
+ if (message.healthy === true) {
27
+ writer.uint32(8).bool(message.healthy);
28
+ }
29
+ if (message.configurations !== undefined) {
30
+ AboutResponse_AboutConfiguration.encode(message.configurations, writer.uint32(18).fork()).ldelim();
31
+ }
32
+ if (message.content !== undefined) {
33
+ AboutResponse_ContentInfo.encode(message.content, writer.uint32(26).fork()).ldelim();
34
+ }
35
+ if (message.comms !== undefined) {
36
+ AboutResponse_CommsInfo.encode(message.comms, writer.uint32(34).fork()).ldelim();
37
+ }
38
+ if (message.lambdas !== undefined) {
39
+ AboutResponse_LambdasInfo.encode(message.lambdas, writer.uint32(42).fork()).ldelim();
40
+ }
41
+ if (message.bff !== undefined) {
42
+ AboutResponse_BffInfo.encode(message.bff, writer.uint32(50).fork()).ldelim();
43
+ }
44
+ if (message.acceptingUsers === true) {
45
+ writer.uint32(56).bool(message.acceptingUsers);
46
+ }
47
+ return writer;
48
+ }
49
+ AboutResponse.encode = encode;
50
+ function decode(input, length) {
51
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
52
+ let end = length === undefined ? reader.len : reader.pos + length;
53
+ const message = createBaseAboutResponse();
54
+ while (reader.pos < end) {
55
+ const tag = reader.uint32();
56
+ switch (tag >>> 3) {
57
+ case 1:
58
+ if (tag !== 8) {
59
+ break;
60
+ }
61
+ message.healthy = reader.bool();
62
+ continue;
63
+ case 2:
64
+ if (tag !== 18) {
65
+ break;
66
+ }
67
+ message.configurations = AboutResponse_AboutConfiguration.decode(reader, reader.uint32());
68
+ continue;
69
+ case 3:
70
+ if (tag !== 26) {
71
+ break;
72
+ }
73
+ message.content = AboutResponse_ContentInfo.decode(reader, reader.uint32());
74
+ continue;
75
+ case 4:
76
+ if (tag !== 34) {
77
+ break;
78
+ }
79
+ message.comms = AboutResponse_CommsInfo.decode(reader, reader.uint32());
80
+ continue;
81
+ case 5:
82
+ if (tag !== 42) {
83
+ break;
84
+ }
85
+ message.lambdas = AboutResponse_LambdasInfo.decode(reader, reader.uint32());
86
+ continue;
87
+ case 6:
88
+ if (tag !== 50) {
89
+ break;
90
+ }
91
+ message.bff = AboutResponse_BffInfo.decode(reader, reader.uint32());
92
+ continue;
93
+ case 7:
94
+ if (tag !== 56) {
95
+ break;
96
+ }
97
+ message.acceptingUsers = reader.bool();
98
+ continue;
99
+ }
100
+ if ((tag & 7) === 4 || tag === 0) {
101
+ break;
102
+ }
103
+ reader.skipType(tag & 7);
104
+ }
105
+ return message;
106
+ }
107
+ AboutResponse.decode = decode;
108
+ function fromJSON(object) {
109
+ return {
110
+ healthy: isSet(object.healthy) ? Boolean(object.healthy) : false,
111
+ configurations: isSet(object.configurations)
112
+ ? AboutResponse_AboutConfiguration.fromJSON(object.configurations)
113
+ : undefined,
114
+ content: isSet(object.content) ? AboutResponse_ContentInfo.fromJSON(object.content) : undefined,
115
+ comms: isSet(object.comms) ? AboutResponse_CommsInfo.fromJSON(object.comms) : undefined,
116
+ lambdas: isSet(object.lambdas) ? AboutResponse_LambdasInfo.fromJSON(object.lambdas) : undefined,
117
+ bff: isSet(object.bff) ? AboutResponse_BffInfo.fromJSON(object.bff) : undefined,
118
+ acceptingUsers: isSet(object.acceptingUsers) ? Boolean(object.acceptingUsers) : false,
119
+ };
120
+ }
121
+ AboutResponse.fromJSON = fromJSON;
122
+ function toJSON(message) {
123
+ const obj = {};
124
+ message.healthy !== undefined && (obj.healthy = message.healthy);
125
+ message.configurations !== undefined &&
126
+ (obj.configurations = message.configurations
127
+ ? AboutResponse_AboutConfiguration.toJSON(message.configurations)
128
+ : undefined);
129
+ message.content !== undefined &&
130
+ (obj.content = message.content ? AboutResponse_ContentInfo.toJSON(message.content) : undefined);
131
+ message.comms !== undefined &&
132
+ (obj.comms = message.comms ? AboutResponse_CommsInfo.toJSON(message.comms) : undefined);
133
+ message.lambdas !== undefined &&
134
+ (obj.lambdas = message.lambdas ? AboutResponse_LambdasInfo.toJSON(message.lambdas) : undefined);
135
+ message.bff !== undefined && (obj.bff = message.bff ? AboutResponse_BffInfo.toJSON(message.bff) : undefined);
136
+ message.acceptingUsers !== undefined && (obj.acceptingUsers = message.acceptingUsers);
137
+ return obj;
138
+ }
139
+ AboutResponse.toJSON = toJSON;
140
+ function create(base) {
141
+ return AboutResponse.fromPartial(base ?? {});
142
+ }
143
+ AboutResponse.create = create;
144
+ function fromPartial(object) {
145
+ const message = createBaseAboutResponse();
146
+ message.healthy = object.healthy ?? false;
147
+ message.configurations = (object.configurations !== undefined && object.configurations !== null)
148
+ ? AboutResponse_AboutConfiguration.fromPartial(object.configurations)
149
+ : undefined;
150
+ message.content = (object.content !== undefined && object.content !== null)
151
+ ? AboutResponse_ContentInfo.fromPartial(object.content)
152
+ : undefined;
153
+ message.comms = (object.comms !== undefined && object.comms !== null)
154
+ ? AboutResponse_CommsInfo.fromPartial(object.comms)
155
+ : undefined;
156
+ message.lambdas = (object.lambdas !== undefined && object.lambdas !== null)
157
+ ? AboutResponse_LambdasInfo.fromPartial(object.lambdas)
158
+ : undefined;
159
+ message.bff = (object.bff !== undefined && object.bff !== null)
160
+ ? AboutResponse_BffInfo.fromPartial(object.bff)
161
+ : undefined;
162
+ message.acceptingUsers = object.acceptingUsers ?? false;
163
+ return message;
164
+ }
165
+ AboutResponse.fromPartial = fromPartial;
166
+ })(AboutResponse || (exports.AboutResponse = AboutResponse = {}));
167
+ function createBaseAboutResponse_MinimapConfiguration() {
168
+ return {};
169
+ }
170
+ var AboutResponse_MinimapConfiguration;
171
+ (function (AboutResponse_MinimapConfiguration) {
172
+ function encode(_, writer = minimal_1.default.Writer.create()) {
173
+ return writer;
174
+ }
175
+ AboutResponse_MinimapConfiguration.encode = encode;
176
+ function decode(input, length) {
177
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
178
+ let end = length === undefined ? reader.len : reader.pos + length;
179
+ const message = createBaseAboutResponse_MinimapConfiguration();
180
+ while (reader.pos < end) {
181
+ const tag = reader.uint32();
182
+ switch (tag >>> 3) {
183
+ }
184
+ if ((tag & 7) === 4 || tag === 0) {
185
+ break;
186
+ }
187
+ reader.skipType(tag & 7);
188
+ }
189
+ return message;
190
+ }
191
+ AboutResponse_MinimapConfiguration.decode = decode;
192
+ function fromJSON(_) {
193
+ return {};
194
+ }
195
+ AboutResponse_MinimapConfiguration.fromJSON = fromJSON;
196
+ function toJSON(_) {
197
+ const obj = {};
198
+ return obj;
199
+ }
200
+ AboutResponse_MinimapConfiguration.toJSON = toJSON;
201
+ function create(base) {
202
+ return AboutResponse_MinimapConfiguration.fromPartial(base ?? {});
203
+ }
204
+ AboutResponse_MinimapConfiguration.create = create;
205
+ function fromPartial(_) {
206
+ const message = createBaseAboutResponse_MinimapConfiguration();
207
+ return message;
208
+ }
209
+ AboutResponse_MinimapConfiguration.fromPartial = fromPartial;
210
+ })(AboutResponse_MinimapConfiguration || (exports.AboutResponse_MinimapConfiguration = AboutResponse_MinimapConfiguration = {}));
211
+ function createBaseAboutResponse_MapConfiguration() {
212
+ return {
213
+ minimapEnabled: false,
214
+ sizes: [],
215
+ satelliteView: undefined,
216
+ parcelView: undefined,
217
+ thumbnailView: undefined,
218
+ };
219
+ }
220
+ var AboutResponse_MapConfiguration;
221
+ (function (AboutResponse_MapConfiguration) {
222
+ function encode(message, writer = minimal_1.default.Writer.create()) {
223
+ if (message.minimapEnabled === true) {
224
+ writer.uint32(8).bool(message.minimapEnabled);
225
+ }
226
+ for (const v of message.sizes) {
227
+ border_rect_gen_1.BorderRect.encode(v, writer.uint32(18).fork()).ldelim();
228
+ }
229
+ if (message.satelliteView !== undefined) {
230
+ AboutResponse_MapConfiguration_ImageViewWithZoomLevel.encode(message.satelliteView, writer.uint32(42).fork())
231
+ .ldelim();
232
+ }
233
+ if (message.parcelView !== undefined) {
234
+ AboutResponse_MapConfiguration_ParcelView.encode(message.parcelView, writer.uint32(50).fork()).ldelim();
235
+ }
236
+ if (message.thumbnailView !== undefined) {
237
+ AboutResponse_MapConfiguration_ImageViewWithZoomLevel.encode(message.thumbnailView, writer.uint32(58).fork())
238
+ .ldelim();
239
+ }
240
+ return writer;
241
+ }
242
+ AboutResponse_MapConfiguration.encode = encode;
243
+ function decode(input, length) {
244
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
245
+ let end = length === undefined ? reader.len : reader.pos + length;
246
+ const message = createBaseAboutResponse_MapConfiguration();
247
+ while (reader.pos < end) {
248
+ const tag = reader.uint32();
249
+ switch (tag >>> 3) {
250
+ case 1:
251
+ if (tag !== 8) {
252
+ break;
253
+ }
254
+ message.minimapEnabled = reader.bool();
255
+ continue;
256
+ case 2:
257
+ if (tag !== 18) {
258
+ break;
259
+ }
260
+ message.sizes.push(border_rect_gen_1.BorderRect.decode(reader, reader.uint32()));
261
+ continue;
262
+ case 5:
263
+ if (tag !== 42) {
264
+ break;
265
+ }
266
+ message.satelliteView = AboutResponse_MapConfiguration_ImageViewWithZoomLevel.decode(reader, reader.uint32());
267
+ continue;
268
+ case 6:
269
+ if (tag !== 50) {
270
+ break;
271
+ }
272
+ message.parcelView = AboutResponse_MapConfiguration_ParcelView.decode(reader, reader.uint32());
273
+ continue;
274
+ case 7:
275
+ if (tag !== 58) {
276
+ break;
277
+ }
278
+ message.thumbnailView = AboutResponse_MapConfiguration_ImageViewWithZoomLevel.decode(reader, reader.uint32());
279
+ continue;
280
+ }
281
+ if ((tag & 7) === 4 || tag === 0) {
282
+ break;
283
+ }
284
+ reader.skipType(tag & 7);
285
+ }
286
+ return message;
287
+ }
288
+ AboutResponse_MapConfiguration.decode = decode;
289
+ function fromJSON(object) {
290
+ return {
291
+ minimapEnabled: isSet(object.minimapEnabled) ? Boolean(object.minimapEnabled) : false,
292
+ sizes: Array.isArray(object?.sizes) ? object.sizes.map((e) => border_rect_gen_1.BorderRect.fromJSON(e)) : [],
293
+ satelliteView: isSet(object.satelliteView)
294
+ ? AboutResponse_MapConfiguration_ImageViewWithZoomLevel.fromJSON(object.satelliteView)
295
+ : undefined,
296
+ parcelView: isSet(object.parcelView)
297
+ ? AboutResponse_MapConfiguration_ParcelView.fromJSON(object.parcelView)
298
+ : undefined,
299
+ thumbnailView: isSet(object.thumbnailView)
300
+ ? AboutResponse_MapConfiguration_ImageViewWithZoomLevel.fromJSON(object.thumbnailView)
301
+ : undefined,
302
+ };
303
+ }
304
+ AboutResponse_MapConfiguration.fromJSON = fromJSON;
305
+ function toJSON(message) {
306
+ const obj = {};
307
+ message.minimapEnabled !== undefined && (obj.minimapEnabled = message.minimapEnabled);
308
+ if (message.sizes) {
309
+ obj.sizes = message.sizes.map((e) => e ? border_rect_gen_1.BorderRect.toJSON(e) : undefined);
310
+ }
311
+ else {
312
+ obj.sizes = [];
313
+ }
314
+ message.satelliteView !== undefined &&
315
+ (obj.satelliteView = message.satelliteView
316
+ ? AboutResponse_MapConfiguration_ImageViewWithZoomLevel.toJSON(message.satelliteView)
317
+ : undefined);
318
+ message.parcelView !== undefined &&
319
+ (obj.parcelView = message.parcelView
320
+ ? AboutResponse_MapConfiguration_ParcelView.toJSON(message.parcelView)
321
+ : undefined);
322
+ message.thumbnailView !== undefined &&
323
+ (obj.thumbnailView = message.thumbnailView
324
+ ? AboutResponse_MapConfiguration_ImageViewWithZoomLevel.toJSON(message.thumbnailView)
325
+ : undefined);
326
+ return obj;
327
+ }
328
+ AboutResponse_MapConfiguration.toJSON = toJSON;
329
+ function create(base) {
330
+ return AboutResponse_MapConfiguration.fromPartial(base ?? {});
331
+ }
332
+ AboutResponse_MapConfiguration.create = create;
333
+ function fromPartial(object) {
334
+ const message = createBaseAboutResponse_MapConfiguration();
335
+ message.minimapEnabled = object.minimapEnabled ?? false;
336
+ message.sizes = object.sizes?.map((e) => border_rect_gen_1.BorderRect.fromPartial(e)) || [];
337
+ message.satelliteView = (object.satelliteView !== undefined && object.satelliteView !== null)
338
+ ? AboutResponse_MapConfiguration_ImageViewWithZoomLevel.fromPartial(object.satelliteView)
339
+ : undefined;
340
+ message.parcelView = (object.parcelView !== undefined && object.parcelView !== null)
341
+ ? AboutResponse_MapConfiguration_ParcelView.fromPartial(object.parcelView)
342
+ : undefined;
343
+ message.thumbnailView = (object.thumbnailView !== undefined && object.thumbnailView !== null)
344
+ ? AboutResponse_MapConfiguration_ImageViewWithZoomLevel.fromPartial(object.thumbnailView)
345
+ : undefined;
346
+ return message;
347
+ }
348
+ AboutResponse_MapConfiguration.fromPartial = fromPartial;
349
+ })(AboutResponse_MapConfiguration || (exports.AboutResponse_MapConfiguration = AboutResponse_MapConfiguration = {}));
350
+ function createBaseAboutResponse_MapConfiguration_ImageViewWithZoomLevel() {
351
+ return { version: "", baseUrl: undefined, suffixUrl: undefined, topLeftOffset: undefined };
352
+ }
353
+ var AboutResponse_MapConfiguration_ImageViewWithZoomLevel;
354
+ (function (AboutResponse_MapConfiguration_ImageViewWithZoomLevel) {
355
+ function encode(message, writer = minimal_1.default.Writer.create()) {
356
+ if (message.version !== "") {
357
+ writer.uint32(10).string(message.version);
358
+ }
359
+ if (message.baseUrl !== undefined) {
360
+ writer.uint32(18).string(message.baseUrl);
361
+ }
362
+ if (message.suffixUrl !== undefined) {
363
+ writer.uint32(26).string(message.suffixUrl);
364
+ }
365
+ if (message.topLeftOffset !== undefined) {
366
+ vectors_gen_1.Vector2.encode(message.topLeftOffset, writer.uint32(34).fork()).ldelim();
367
+ }
368
+ return writer;
369
+ }
370
+ AboutResponse_MapConfiguration_ImageViewWithZoomLevel.encode = encode;
371
+ function decode(input, length) {
372
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
373
+ let end = length === undefined ? reader.len : reader.pos + length;
374
+ const message = createBaseAboutResponse_MapConfiguration_ImageViewWithZoomLevel();
375
+ while (reader.pos < end) {
376
+ const tag = reader.uint32();
377
+ switch (tag >>> 3) {
378
+ case 1:
379
+ if (tag !== 10) {
380
+ break;
381
+ }
382
+ message.version = reader.string();
383
+ continue;
384
+ case 2:
385
+ if (tag !== 18) {
386
+ break;
387
+ }
388
+ message.baseUrl = reader.string();
389
+ continue;
390
+ case 3:
391
+ if (tag !== 26) {
392
+ break;
393
+ }
394
+ message.suffixUrl = reader.string();
395
+ continue;
396
+ case 4:
397
+ if (tag !== 34) {
398
+ break;
399
+ }
400
+ message.topLeftOffset = vectors_gen_1.Vector2.decode(reader, reader.uint32());
401
+ continue;
402
+ }
403
+ if ((tag & 7) === 4 || tag === 0) {
404
+ break;
405
+ }
406
+ reader.skipType(tag & 7);
407
+ }
408
+ return message;
409
+ }
410
+ AboutResponse_MapConfiguration_ImageViewWithZoomLevel.decode = decode;
411
+ function fromJSON(object) {
412
+ return {
413
+ version: isSet(object.version) ? String(object.version) : "",
414
+ baseUrl: isSet(object.baseUrl) ? String(object.baseUrl) : undefined,
415
+ suffixUrl: isSet(object.suffixUrl) ? String(object.suffixUrl) : undefined,
416
+ topLeftOffset: isSet(object.topLeftOffset) ? vectors_gen_1.Vector2.fromJSON(object.topLeftOffset) : undefined,
417
+ };
418
+ }
419
+ AboutResponse_MapConfiguration_ImageViewWithZoomLevel.fromJSON = fromJSON;
420
+ function toJSON(message) {
421
+ const obj = {};
422
+ message.version !== undefined && (obj.version = message.version);
423
+ message.baseUrl !== undefined && (obj.baseUrl = message.baseUrl);
424
+ message.suffixUrl !== undefined && (obj.suffixUrl = message.suffixUrl);
425
+ message.topLeftOffset !== undefined &&
426
+ (obj.topLeftOffset = message.topLeftOffset ? vectors_gen_1.Vector2.toJSON(message.topLeftOffset) : undefined);
427
+ return obj;
428
+ }
429
+ AboutResponse_MapConfiguration_ImageViewWithZoomLevel.toJSON = toJSON;
430
+ function create(base) {
431
+ return AboutResponse_MapConfiguration_ImageViewWithZoomLevel.fromPartial(base ?? {});
432
+ }
433
+ AboutResponse_MapConfiguration_ImageViewWithZoomLevel.create = create;
434
+ function fromPartial(object) {
435
+ const message = createBaseAboutResponse_MapConfiguration_ImageViewWithZoomLevel();
436
+ message.version = object.version ?? "";
437
+ message.baseUrl = object.baseUrl ?? undefined;
438
+ message.suffixUrl = object.suffixUrl ?? undefined;
439
+ message.topLeftOffset = (object.topLeftOffset !== undefined && object.topLeftOffset !== null)
440
+ ? vectors_gen_1.Vector2.fromPartial(object.topLeftOffset)
441
+ : undefined;
442
+ return message;
443
+ }
444
+ AboutResponse_MapConfiguration_ImageViewWithZoomLevel.fromPartial = fromPartial;
445
+ })(AboutResponse_MapConfiguration_ImageViewWithZoomLevel || (exports.AboutResponse_MapConfiguration_ImageViewWithZoomLevel = AboutResponse_MapConfiguration_ImageViewWithZoomLevel = {}));
446
+ function createBaseAboutResponse_MapConfiguration_ParcelView() {
447
+ return { version: "", imageUrl: undefined };
448
+ }
449
+ var AboutResponse_MapConfiguration_ParcelView;
450
+ (function (AboutResponse_MapConfiguration_ParcelView) {
451
+ function encode(message, writer = minimal_1.default.Writer.create()) {
452
+ if (message.version !== "") {
453
+ writer.uint32(10).string(message.version);
454
+ }
455
+ if (message.imageUrl !== undefined) {
456
+ writer.uint32(18).string(message.imageUrl);
457
+ }
458
+ return writer;
459
+ }
460
+ AboutResponse_MapConfiguration_ParcelView.encode = encode;
461
+ function decode(input, length) {
462
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
463
+ let end = length === undefined ? reader.len : reader.pos + length;
464
+ const message = createBaseAboutResponse_MapConfiguration_ParcelView();
465
+ while (reader.pos < end) {
466
+ const tag = reader.uint32();
467
+ switch (tag >>> 3) {
468
+ case 1:
469
+ if (tag !== 10) {
470
+ break;
471
+ }
472
+ message.version = reader.string();
473
+ continue;
474
+ case 2:
475
+ if (tag !== 18) {
476
+ break;
477
+ }
478
+ message.imageUrl = reader.string();
479
+ continue;
480
+ }
481
+ if ((tag & 7) === 4 || tag === 0) {
482
+ break;
483
+ }
484
+ reader.skipType(tag & 7);
485
+ }
486
+ return message;
487
+ }
488
+ AboutResponse_MapConfiguration_ParcelView.decode = decode;
489
+ function fromJSON(object) {
490
+ return {
491
+ version: isSet(object.version) ? String(object.version) : "",
492
+ imageUrl: isSet(object.imageUrl) ? String(object.imageUrl) : undefined,
493
+ };
494
+ }
495
+ AboutResponse_MapConfiguration_ParcelView.fromJSON = fromJSON;
496
+ function toJSON(message) {
497
+ const obj = {};
498
+ message.version !== undefined && (obj.version = message.version);
499
+ message.imageUrl !== undefined && (obj.imageUrl = message.imageUrl);
500
+ return obj;
501
+ }
502
+ AboutResponse_MapConfiguration_ParcelView.toJSON = toJSON;
503
+ function create(base) {
504
+ return AboutResponse_MapConfiguration_ParcelView.fromPartial(base ?? {});
505
+ }
506
+ AboutResponse_MapConfiguration_ParcelView.create = create;
507
+ function fromPartial(object) {
508
+ const message = createBaseAboutResponse_MapConfiguration_ParcelView();
509
+ message.version = object.version ?? "";
510
+ message.imageUrl = object.imageUrl ?? undefined;
511
+ return message;
512
+ }
513
+ AboutResponse_MapConfiguration_ParcelView.fromPartial = fromPartial;
514
+ })(AboutResponse_MapConfiguration_ParcelView || (exports.AboutResponse_MapConfiguration_ParcelView = AboutResponse_MapConfiguration_ParcelView = {}));
515
+ function createBaseAboutResponse_SkyboxConfiguration() {
516
+ return { fixedHour: undefined };
517
+ }
518
+ var AboutResponse_SkyboxConfiguration;
519
+ (function (AboutResponse_SkyboxConfiguration) {
520
+ function encode(message, writer = minimal_1.default.Writer.create()) {
521
+ if (message.fixedHour !== undefined) {
522
+ writer.uint32(13).float(message.fixedHour);
523
+ }
524
+ return writer;
525
+ }
526
+ AboutResponse_SkyboxConfiguration.encode = encode;
527
+ function decode(input, length) {
528
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
529
+ let end = length === undefined ? reader.len : reader.pos + length;
530
+ const message = createBaseAboutResponse_SkyboxConfiguration();
531
+ while (reader.pos < end) {
532
+ const tag = reader.uint32();
533
+ switch (tag >>> 3) {
534
+ case 1:
535
+ if (tag !== 13) {
536
+ break;
537
+ }
538
+ message.fixedHour = reader.float();
539
+ continue;
540
+ }
541
+ if ((tag & 7) === 4 || tag === 0) {
542
+ break;
543
+ }
544
+ reader.skipType(tag & 7);
545
+ }
546
+ return message;
547
+ }
548
+ AboutResponse_SkyboxConfiguration.decode = decode;
549
+ function fromJSON(object) {
550
+ return { fixedHour: isSet(object.fixedHour) ? Number(object.fixedHour) : undefined };
551
+ }
552
+ AboutResponse_SkyboxConfiguration.fromJSON = fromJSON;
553
+ function toJSON(message) {
554
+ const obj = {};
555
+ message.fixedHour !== undefined && (obj.fixedHour = message.fixedHour);
556
+ return obj;
557
+ }
558
+ AboutResponse_SkyboxConfiguration.toJSON = toJSON;
559
+ function create(base) {
560
+ return AboutResponse_SkyboxConfiguration.fromPartial(base ?? {});
561
+ }
562
+ AboutResponse_SkyboxConfiguration.create = create;
563
+ function fromPartial(object) {
564
+ const message = createBaseAboutResponse_SkyboxConfiguration();
565
+ message.fixedHour = object.fixedHour ?? undefined;
566
+ return message;
567
+ }
568
+ AboutResponse_SkyboxConfiguration.fromPartial = fromPartial;
569
+ })(AboutResponse_SkyboxConfiguration || (exports.AboutResponse_SkyboxConfiguration = AboutResponse_SkyboxConfiguration = {}));
570
+ function createBaseAboutResponse_AboutConfiguration() {
571
+ return {
572
+ realmName: undefined,
573
+ networkId: 0,
574
+ globalScenesUrn: [],
575
+ scenesUrn: [],
576
+ skybox: undefined,
577
+ cityLoaderContentServer: undefined,
578
+ map: undefined,
579
+ };
580
+ }
581
+ var AboutResponse_AboutConfiguration;
582
+ (function (AboutResponse_AboutConfiguration) {
583
+ function encode(message, writer = minimal_1.default.Writer.create()) {
584
+ if (message.realmName !== undefined) {
585
+ writer.uint32(10).string(message.realmName);
586
+ }
587
+ if (message.networkId !== 0) {
588
+ writer.uint32(16).uint32(message.networkId);
589
+ }
590
+ for (const v of message.globalScenesUrn) {
591
+ writer.uint32(26).string(v);
592
+ }
593
+ for (const v of message.scenesUrn) {
594
+ writer.uint32(34).string(v);
595
+ }
596
+ if (message.skybox !== undefined) {
597
+ AboutResponse_SkyboxConfiguration.encode(message.skybox, writer.uint32(50).fork()).ldelim();
598
+ }
599
+ if (message.cityLoaderContentServer !== undefined) {
600
+ writer.uint32(58).string(message.cityLoaderContentServer);
601
+ }
602
+ if (message.map !== undefined) {
603
+ AboutResponse_MapConfiguration.encode(message.map, writer.uint32(66).fork()).ldelim();
604
+ }
605
+ return writer;
606
+ }
607
+ AboutResponse_AboutConfiguration.encode = encode;
608
+ function decode(input, length) {
609
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
610
+ let end = length === undefined ? reader.len : reader.pos + length;
611
+ const message = createBaseAboutResponse_AboutConfiguration();
612
+ while (reader.pos < end) {
613
+ const tag = reader.uint32();
614
+ switch (tag >>> 3) {
615
+ case 1:
616
+ if (tag !== 10) {
617
+ break;
618
+ }
619
+ message.realmName = reader.string();
620
+ continue;
621
+ case 2:
622
+ if (tag !== 16) {
623
+ break;
624
+ }
625
+ message.networkId = reader.uint32();
626
+ continue;
627
+ case 3:
628
+ if (tag !== 26) {
629
+ break;
630
+ }
631
+ message.globalScenesUrn.push(reader.string());
632
+ continue;
633
+ case 4:
634
+ if (tag !== 34) {
635
+ break;
636
+ }
637
+ message.scenesUrn.push(reader.string());
638
+ continue;
639
+ case 6:
640
+ if (tag !== 50) {
641
+ break;
642
+ }
643
+ message.skybox = AboutResponse_SkyboxConfiguration.decode(reader, reader.uint32());
644
+ continue;
645
+ case 7:
646
+ if (tag !== 58) {
647
+ break;
648
+ }
649
+ message.cityLoaderContentServer = reader.string();
650
+ continue;
651
+ case 8:
652
+ if (tag !== 66) {
653
+ break;
654
+ }
655
+ message.map = AboutResponse_MapConfiguration.decode(reader, reader.uint32());
656
+ continue;
657
+ }
658
+ if ((tag & 7) === 4 || tag === 0) {
659
+ break;
660
+ }
661
+ reader.skipType(tag & 7);
662
+ }
663
+ return message;
664
+ }
665
+ AboutResponse_AboutConfiguration.decode = decode;
666
+ function fromJSON(object) {
667
+ return {
668
+ realmName: isSet(object.realmName) ? String(object.realmName) : undefined,
669
+ networkId: isSet(object.networkId) ? Number(object.networkId) : 0,
670
+ globalScenesUrn: Array.isArray(object?.globalScenesUrn) ? object.globalScenesUrn.map((e) => String(e)) : [],
671
+ scenesUrn: Array.isArray(object?.scenesUrn) ? object.scenesUrn.map((e) => String(e)) : [],
672
+ skybox: isSet(object.skybox) ? AboutResponse_SkyboxConfiguration.fromJSON(object.skybox) : undefined,
673
+ cityLoaderContentServer: isSet(object.cityLoaderContentServer)
674
+ ? String(object.cityLoaderContentServer)
675
+ : undefined,
676
+ map: isSet(object.map) ? AboutResponse_MapConfiguration.fromJSON(object.map) : undefined,
677
+ };
678
+ }
679
+ AboutResponse_AboutConfiguration.fromJSON = fromJSON;
680
+ function toJSON(message) {
681
+ const obj = {};
682
+ message.realmName !== undefined && (obj.realmName = message.realmName);
683
+ message.networkId !== undefined && (obj.networkId = Math.round(message.networkId));
684
+ if (message.globalScenesUrn) {
685
+ obj.globalScenesUrn = message.globalScenesUrn.map((e) => e);
686
+ }
687
+ else {
688
+ obj.globalScenesUrn = [];
689
+ }
690
+ if (message.scenesUrn) {
691
+ obj.scenesUrn = message.scenesUrn.map((e) => e);
692
+ }
693
+ else {
694
+ obj.scenesUrn = [];
695
+ }
696
+ message.skybox !== undefined &&
697
+ (obj.skybox = message.skybox ? AboutResponse_SkyboxConfiguration.toJSON(message.skybox) : undefined);
698
+ message.cityLoaderContentServer !== undefined && (obj.cityLoaderContentServer = message.cityLoaderContentServer);
699
+ message.map !== undefined &&
700
+ (obj.map = message.map ? AboutResponse_MapConfiguration.toJSON(message.map) : undefined);
701
+ return obj;
702
+ }
703
+ AboutResponse_AboutConfiguration.toJSON = toJSON;
704
+ function create(base) {
705
+ return AboutResponse_AboutConfiguration.fromPartial(base ?? {});
706
+ }
707
+ AboutResponse_AboutConfiguration.create = create;
708
+ function fromPartial(object) {
709
+ const message = createBaseAboutResponse_AboutConfiguration();
710
+ message.realmName = object.realmName ?? undefined;
711
+ message.networkId = object.networkId ?? 0;
712
+ message.globalScenesUrn = object.globalScenesUrn?.map((e) => e) || [];
713
+ message.scenesUrn = object.scenesUrn?.map((e) => e) || [];
714
+ message.skybox = (object.skybox !== undefined && object.skybox !== null)
715
+ ? AboutResponse_SkyboxConfiguration.fromPartial(object.skybox)
716
+ : undefined;
717
+ message.cityLoaderContentServer = object.cityLoaderContentServer ?? undefined;
718
+ message.map = (object.map !== undefined && object.map !== null)
719
+ ? AboutResponse_MapConfiguration.fromPartial(object.map)
720
+ : undefined;
721
+ return message;
722
+ }
723
+ AboutResponse_AboutConfiguration.fromPartial = fromPartial;
724
+ })(AboutResponse_AboutConfiguration || (exports.AboutResponse_AboutConfiguration = AboutResponse_AboutConfiguration = {}));
725
+ function createBaseAboutResponse_ContentInfo() {
726
+ return { healthy: false, version: undefined, commitHash: undefined, publicUrl: "" };
727
+ }
728
+ var AboutResponse_ContentInfo;
729
+ (function (AboutResponse_ContentInfo) {
730
+ function encode(message, writer = minimal_1.default.Writer.create()) {
731
+ if (message.healthy === true) {
732
+ writer.uint32(8).bool(message.healthy);
733
+ }
734
+ if (message.version !== undefined) {
735
+ writer.uint32(18).string(message.version);
736
+ }
737
+ if (message.commitHash !== undefined) {
738
+ writer.uint32(26).string(message.commitHash);
739
+ }
740
+ if (message.publicUrl !== "") {
741
+ writer.uint32(34).string(message.publicUrl);
742
+ }
743
+ return writer;
744
+ }
745
+ AboutResponse_ContentInfo.encode = encode;
746
+ function decode(input, length) {
747
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
748
+ let end = length === undefined ? reader.len : reader.pos + length;
749
+ const message = createBaseAboutResponse_ContentInfo();
750
+ while (reader.pos < end) {
751
+ const tag = reader.uint32();
752
+ switch (tag >>> 3) {
753
+ case 1:
754
+ if (tag !== 8) {
755
+ break;
756
+ }
757
+ message.healthy = reader.bool();
758
+ continue;
759
+ case 2:
760
+ if (tag !== 18) {
761
+ break;
762
+ }
763
+ message.version = reader.string();
764
+ continue;
765
+ case 3:
766
+ if (tag !== 26) {
767
+ break;
768
+ }
769
+ message.commitHash = reader.string();
770
+ continue;
771
+ case 4:
772
+ if (tag !== 34) {
773
+ break;
774
+ }
775
+ message.publicUrl = reader.string();
776
+ continue;
777
+ }
778
+ if ((tag & 7) === 4 || tag === 0) {
779
+ break;
780
+ }
781
+ reader.skipType(tag & 7);
782
+ }
783
+ return message;
784
+ }
785
+ AboutResponse_ContentInfo.decode = decode;
786
+ function fromJSON(object) {
787
+ return {
788
+ healthy: isSet(object.healthy) ? Boolean(object.healthy) : false,
789
+ version: isSet(object.version) ? String(object.version) : undefined,
790
+ commitHash: isSet(object.commitHash) ? String(object.commitHash) : undefined,
791
+ publicUrl: isSet(object.publicUrl) ? String(object.publicUrl) : "",
792
+ };
793
+ }
794
+ AboutResponse_ContentInfo.fromJSON = fromJSON;
795
+ function toJSON(message) {
796
+ const obj = {};
797
+ message.healthy !== undefined && (obj.healthy = message.healthy);
798
+ message.version !== undefined && (obj.version = message.version);
799
+ message.commitHash !== undefined && (obj.commitHash = message.commitHash);
800
+ message.publicUrl !== undefined && (obj.publicUrl = message.publicUrl);
801
+ return obj;
802
+ }
803
+ AboutResponse_ContentInfo.toJSON = toJSON;
804
+ function create(base) {
805
+ return AboutResponse_ContentInfo.fromPartial(base ?? {});
806
+ }
807
+ AboutResponse_ContentInfo.create = create;
808
+ function fromPartial(object) {
809
+ const message = createBaseAboutResponse_ContentInfo();
810
+ message.healthy = object.healthy ?? false;
811
+ message.version = object.version ?? undefined;
812
+ message.commitHash = object.commitHash ?? undefined;
813
+ message.publicUrl = object.publicUrl ?? "";
814
+ return message;
815
+ }
816
+ AboutResponse_ContentInfo.fromPartial = fromPartial;
817
+ })(AboutResponse_ContentInfo || (exports.AboutResponse_ContentInfo = AboutResponse_ContentInfo = {}));
818
+ function createBaseAboutResponse_LambdasInfo() {
819
+ return { healthy: false, version: undefined, commitHash: undefined, publicUrl: "" };
820
+ }
821
+ var AboutResponse_LambdasInfo;
822
+ (function (AboutResponse_LambdasInfo) {
823
+ function encode(message, writer = minimal_1.default.Writer.create()) {
824
+ if (message.healthy === true) {
825
+ writer.uint32(8).bool(message.healthy);
826
+ }
827
+ if (message.version !== undefined) {
828
+ writer.uint32(18).string(message.version);
829
+ }
830
+ if (message.commitHash !== undefined) {
831
+ writer.uint32(26).string(message.commitHash);
832
+ }
833
+ if (message.publicUrl !== "") {
834
+ writer.uint32(34).string(message.publicUrl);
835
+ }
836
+ return writer;
837
+ }
838
+ AboutResponse_LambdasInfo.encode = encode;
839
+ function decode(input, length) {
840
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
841
+ let end = length === undefined ? reader.len : reader.pos + length;
842
+ const message = createBaseAboutResponse_LambdasInfo();
843
+ while (reader.pos < end) {
844
+ const tag = reader.uint32();
845
+ switch (tag >>> 3) {
846
+ case 1:
847
+ if (tag !== 8) {
848
+ break;
849
+ }
850
+ message.healthy = reader.bool();
851
+ continue;
852
+ case 2:
853
+ if (tag !== 18) {
854
+ break;
855
+ }
856
+ message.version = reader.string();
857
+ continue;
858
+ case 3:
859
+ if (tag !== 26) {
860
+ break;
861
+ }
862
+ message.commitHash = reader.string();
863
+ continue;
864
+ case 4:
865
+ if (tag !== 34) {
866
+ break;
867
+ }
868
+ message.publicUrl = reader.string();
869
+ continue;
870
+ }
871
+ if ((tag & 7) === 4 || tag === 0) {
872
+ break;
873
+ }
874
+ reader.skipType(tag & 7);
875
+ }
876
+ return message;
877
+ }
878
+ AboutResponse_LambdasInfo.decode = decode;
879
+ function fromJSON(object) {
880
+ return {
881
+ healthy: isSet(object.healthy) ? Boolean(object.healthy) : false,
882
+ version: isSet(object.version) ? String(object.version) : undefined,
883
+ commitHash: isSet(object.commitHash) ? String(object.commitHash) : undefined,
884
+ publicUrl: isSet(object.publicUrl) ? String(object.publicUrl) : "",
885
+ };
886
+ }
887
+ AboutResponse_LambdasInfo.fromJSON = fromJSON;
888
+ function toJSON(message) {
889
+ const obj = {};
890
+ message.healthy !== undefined && (obj.healthy = message.healthy);
891
+ message.version !== undefined && (obj.version = message.version);
892
+ message.commitHash !== undefined && (obj.commitHash = message.commitHash);
893
+ message.publicUrl !== undefined && (obj.publicUrl = message.publicUrl);
894
+ return obj;
895
+ }
896
+ AboutResponse_LambdasInfo.toJSON = toJSON;
897
+ function create(base) {
898
+ return AboutResponse_LambdasInfo.fromPartial(base ?? {});
899
+ }
900
+ AboutResponse_LambdasInfo.create = create;
901
+ function fromPartial(object) {
902
+ const message = createBaseAboutResponse_LambdasInfo();
903
+ message.healthy = object.healthy ?? false;
904
+ message.version = object.version ?? undefined;
905
+ message.commitHash = object.commitHash ?? undefined;
906
+ message.publicUrl = object.publicUrl ?? "";
907
+ return message;
908
+ }
909
+ AboutResponse_LambdasInfo.fromPartial = fromPartial;
910
+ })(AboutResponse_LambdasInfo || (exports.AboutResponse_LambdasInfo = AboutResponse_LambdasInfo = {}));
911
+ function createBaseAboutResponse_CommsInfo() {
912
+ return {
913
+ healthy: false,
914
+ version: undefined,
915
+ commitHash: undefined,
916
+ publicUrl: undefined,
917
+ protocol: "",
918
+ usersCount: undefined,
919
+ fixedAdapter: undefined,
920
+ };
921
+ }
922
+ var AboutResponse_CommsInfo;
923
+ (function (AboutResponse_CommsInfo) {
924
+ function encode(message, writer = minimal_1.default.Writer.create()) {
925
+ if (message.healthy === true) {
926
+ writer.uint32(8).bool(message.healthy);
927
+ }
928
+ if (message.version !== undefined) {
929
+ writer.uint32(18).string(message.version);
930
+ }
931
+ if (message.commitHash !== undefined) {
932
+ writer.uint32(26).string(message.commitHash);
933
+ }
934
+ if (message.publicUrl !== undefined) {
935
+ writer.uint32(34).string(message.publicUrl);
936
+ }
937
+ if (message.protocol !== "") {
938
+ writer.uint32(402).string(message.protocol);
939
+ }
940
+ if (message.usersCount !== undefined) {
941
+ writer.uint32(408).int32(message.usersCount);
942
+ }
943
+ if (message.fixedAdapter !== undefined) {
944
+ writer.uint32(418).string(message.fixedAdapter);
945
+ }
946
+ return writer;
947
+ }
948
+ AboutResponse_CommsInfo.encode = encode;
949
+ function decode(input, length) {
950
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
951
+ let end = length === undefined ? reader.len : reader.pos + length;
952
+ const message = createBaseAboutResponse_CommsInfo();
953
+ while (reader.pos < end) {
954
+ const tag = reader.uint32();
955
+ switch (tag >>> 3) {
956
+ case 1:
957
+ if (tag !== 8) {
958
+ break;
959
+ }
960
+ message.healthy = reader.bool();
961
+ continue;
962
+ case 2:
963
+ if (tag !== 18) {
964
+ break;
965
+ }
966
+ message.version = reader.string();
967
+ continue;
968
+ case 3:
969
+ if (tag !== 26) {
970
+ break;
971
+ }
972
+ message.commitHash = reader.string();
973
+ continue;
974
+ case 4:
975
+ if (tag !== 34) {
976
+ break;
977
+ }
978
+ message.publicUrl = reader.string();
979
+ continue;
980
+ case 50:
981
+ if (tag !== 402) {
982
+ break;
983
+ }
984
+ message.protocol = reader.string();
985
+ continue;
986
+ case 51:
987
+ if (tag !== 408) {
988
+ break;
989
+ }
990
+ message.usersCount = reader.int32();
991
+ continue;
992
+ case 52:
993
+ if (tag !== 418) {
994
+ break;
995
+ }
996
+ message.fixedAdapter = reader.string();
997
+ continue;
998
+ }
999
+ if ((tag & 7) === 4 || tag === 0) {
1000
+ break;
1001
+ }
1002
+ reader.skipType(tag & 7);
1003
+ }
1004
+ return message;
1005
+ }
1006
+ AboutResponse_CommsInfo.decode = decode;
1007
+ function fromJSON(object) {
1008
+ return {
1009
+ healthy: isSet(object.healthy) ? Boolean(object.healthy) : false,
1010
+ version: isSet(object.version) ? String(object.version) : undefined,
1011
+ commitHash: isSet(object.commitHash) ? String(object.commitHash) : undefined,
1012
+ publicUrl: isSet(object.publicUrl) ? String(object.publicUrl) : undefined,
1013
+ protocol: isSet(object.protocol) ? String(object.protocol) : "",
1014
+ usersCount: isSet(object.usersCount) ? Number(object.usersCount) : undefined,
1015
+ fixedAdapter: isSet(object.fixedAdapter) ? String(object.fixedAdapter) : undefined,
1016
+ };
1017
+ }
1018
+ AboutResponse_CommsInfo.fromJSON = fromJSON;
1019
+ function toJSON(message) {
1020
+ const obj = {};
1021
+ message.healthy !== undefined && (obj.healthy = message.healthy);
1022
+ message.version !== undefined && (obj.version = message.version);
1023
+ message.commitHash !== undefined && (obj.commitHash = message.commitHash);
1024
+ message.publicUrl !== undefined && (obj.publicUrl = message.publicUrl);
1025
+ message.protocol !== undefined && (obj.protocol = message.protocol);
1026
+ message.usersCount !== undefined && (obj.usersCount = Math.round(message.usersCount));
1027
+ message.fixedAdapter !== undefined && (obj.fixedAdapter = message.fixedAdapter);
1028
+ return obj;
1029
+ }
1030
+ AboutResponse_CommsInfo.toJSON = toJSON;
1031
+ function create(base) {
1032
+ return AboutResponse_CommsInfo.fromPartial(base ?? {});
1033
+ }
1034
+ AboutResponse_CommsInfo.create = create;
1035
+ function fromPartial(object) {
1036
+ const message = createBaseAboutResponse_CommsInfo();
1037
+ message.healthy = object.healthy ?? false;
1038
+ message.version = object.version ?? undefined;
1039
+ message.commitHash = object.commitHash ?? undefined;
1040
+ message.publicUrl = object.publicUrl ?? undefined;
1041
+ message.protocol = object.protocol ?? "";
1042
+ message.usersCount = object.usersCount ?? undefined;
1043
+ message.fixedAdapter = object.fixedAdapter ?? undefined;
1044
+ return message;
1045
+ }
1046
+ AboutResponse_CommsInfo.fromPartial = fromPartial;
1047
+ })(AboutResponse_CommsInfo || (exports.AboutResponse_CommsInfo = AboutResponse_CommsInfo = {}));
1048
+ function createBaseAboutResponse_BffInfo() {
1049
+ return {
1050
+ healthy: false,
1051
+ version: undefined,
1052
+ commitHash: undefined,
1053
+ publicUrl: "",
1054
+ userCount: undefined,
1055
+ protocolVersion: undefined,
1056
+ };
1057
+ }
1058
+ var AboutResponse_BffInfo;
1059
+ (function (AboutResponse_BffInfo) {
1060
+ function encode(message, writer = minimal_1.default.Writer.create()) {
1061
+ if (message.healthy === true) {
1062
+ writer.uint32(8).bool(message.healthy);
1063
+ }
1064
+ if (message.version !== undefined) {
1065
+ writer.uint32(18).string(message.version);
1066
+ }
1067
+ if (message.commitHash !== undefined) {
1068
+ writer.uint32(26).string(message.commitHash);
1069
+ }
1070
+ if (message.publicUrl !== "") {
1071
+ writer.uint32(34).string(message.publicUrl);
1072
+ }
1073
+ if (message.userCount !== undefined) {
1074
+ writer.uint32(408).int32(message.userCount);
1075
+ }
1076
+ if (message.protocolVersion !== undefined) {
1077
+ writer.uint32(418).string(message.protocolVersion);
1078
+ }
1079
+ return writer;
1080
+ }
1081
+ AboutResponse_BffInfo.encode = encode;
1082
+ function decode(input, length) {
1083
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
1084
+ let end = length === undefined ? reader.len : reader.pos + length;
1085
+ const message = createBaseAboutResponse_BffInfo();
1086
+ while (reader.pos < end) {
1087
+ const tag = reader.uint32();
1088
+ switch (tag >>> 3) {
1089
+ case 1:
1090
+ if (tag !== 8) {
1091
+ break;
1092
+ }
1093
+ message.healthy = reader.bool();
1094
+ continue;
1095
+ case 2:
1096
+ if (tag !== 18) {
1097
+ break;
1098
+ }
1099
+ message.version = reader.string();
1100
+ continue;
1101
+ case 3:
1102
+ if (tag !== 26) {
1103
+ break;
1104
+ }
1105
+ message.commitHash = reader.string();
1106
+ continue;
1107
+ case 4:
1108
+ if (tag !== 34) {
1109
+ break;
1110
+ }
1111
+ message.publicUrl = reader.string();
1112
+ continue;
1113
+ case 51:
1114
+ if (tag !== 408) {
1115
+ break;
1116
+ }
1117
+ message.userCount = reader.int32();
1118
+ continue;
1119
+ case 52:
1120
+ if (tag !== 418) {
1121
+ break;
1122
+ }
1123
+ message.protocolVersion = reader.string();
1124
+ continue;
1125
+ }
1126
+ if ((tag & 7) === 4 || tag === 0) {
1127
+ break;
1128
+ }
1129
+ reader.skipType(tag & 7);
1130
+ }
1131
+ return message;
1132
+ }
1133
+ AboutResponse_BffInfo.decode = decode;
1134
+ function fromJSON(object) {
1135
+ return {
1136
+ healthy: isSet(object.healthy) ? Boolean(object.healthy) : false,
1137
+ version: isSet(object.version) ? String(object.version) : undefined,
1138
+ commitHash: isSet(object.commitHash) ? String(object.commitHash) : undefined,
1139
+ publicUrl: isSet(object.publicUrl) ? String(object.publicUrl) : "",
1140
+ userCount: isSet(object.userCount) ? Number(object.userCount) : undefined,
1141
+ protocolVersion: isSet(object.protocolVersion) ? String(object.protocolVersion) : undefined,
1142
+ };
1143
+ }
1144
+ AboutResponse_BffInfo.fromJSON = fromJSON;
1145
+ function toJSON(message) {
1146
+ const obj = {};
1147
+ message.healthy !== undefined && (obj.healthy = message.healthy);
1148
+ message.version !== undefined && (obj.version = message.version);
1149
+ message.commitHash !== undefined && (obj.commitHash = message.commitHash);
1150
+ message.publicUrl !== undefined && (obj.publicUrl = message.publicUrl);
1151
+ message.userCount !== undefined && (obj.userCount = Math.round(message.userCount));
1152
+ message.protocolVersion !== undefined && (obj.protocolVersion = message.protocolVersion);
1153
+ return obj;
1154
+ }
1155
+ AboutResponse_BffInfo.toJSON = toJSON;
1156
+ function create(base) {
1157
+ return AboutResponse_BffInfo.fromPartial(base ?? {});
1158
+ }
1159
+ AboutResponse_BffInfo.create = create;
1160
+ function fromPartial(object) {
1161
+ const message = createBaseAboutResponse_BffInfo();
1162
+ message.healthy = object.healthy ?? false;
1163
+ message.version = object.version ?? undefined;
1164
+ message.commitHash = object.commitHash ?? undefined;
1165
+ message.publicUrl = object.publicUrl ?? "";
1166
+ message.userCount = object.userCount ?? undefined;
1167
+ message.protocolVersion = object.protocolVersion ?? undefined;
1168
+ return message;
1169
+ }
1170
+ AboutResponse_BffInfo.fromPartial = fromPartial;
1171
+ })(AboutResponse_BffInfo || (exports.AboutResponse_BffInfo = AboutResponse_BffInfo = {}));
1172
+ function isSet(value) {
1173
+ return value !== null && value !== undefined;
1174
+ }
1175
+ //# sourceMappingURL=about.gen.js.map