protobuf-platform 1.0.244 → 1.0.245

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,16 @@
1
+ syntax = "proto3";
2
+
3
+ package analytic;
4
+
5
+ service Analytic {
6
+ rpc checkConnection(PingRequest) returns (PongResponse);
7
+ }
8
+ //Technical
9
+ message PingRequest { string ping = 1; }
10
+ message PongResponse { string pong = 1; }
11
+ //Common
12
+ message PaginationRequest { int32 limit = 1; int32 offset = 2; optional GlobalSearchRequest global_search_params = 3; }
13
+ message GlobalSearchRequest {
14
+ optional string start_at = 1;
15
+ optional string end_at = 2;
16
+ }
@@ -0,0 +1,44 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('@grpc/grpc-js');
5
+ var analytic_pb = require('./analytic_pb.js');
6
+
7
+ function serialize_analytic_PingRequest(arg) {
8
+ if (!(arg instanceof analytic_pb.PingRequest)) {
9
+ throw new Error('Expected argument of type analytic.PingRequest');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_analytic_PingRequest(buffer_arg) {
15
+ return analytic_pb.PingRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
18
+ function serialize_analytic_PongResponse(arg) {
19
+ if (!(arg instanceof analytic_pb.PongResponse)) {
20
+ throw new Error('Expected argument of type analytic.PongResponse');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_analytic_PongResponse(buffer_arg) {
26
+ return analytic_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
29
+
30
+ var AnalyticService = exports.AnalyticService = {
31
+ checkConnection: {
32
+ path: '/analytic.Analytic/checkConnection',
33
+ requestStream: false,
34
+ responseStream: false,
35
+ requestType: analytic_pb.PingRequest,
36
+ responseType: analytic_pb.PongResponse,
37
+ requestSerialize: serialize_analytic_PingRequest,
38
+ requestDeserialize: deserialize_analytic_PingRequest,
39
+ responseSerialize: serialize_analytic_PongResponse,
40
+ responseDeserialize: deserialize_analytic_PongResponse,
41
+ },
42
+ };
43
+
44
+ exports.AnalyticClient = grpc.makeGenericClientConstructor(AnalyticService);
@@ -0,0 +1,779 @@
1
+ // source: analytic.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
23
+
24
+ goog.exportSymbol('proto.analytic.GlobalSearchRequest', null, global);
25
+ goog.exportSymbol('proto.analytic.PaginationRequest', null, global);
26
+ goog.exportSymbol('proto.analytic.PingRequest', null, global);
27
+ goog.exportSymbol('proto.analytic.PongResponse', null, global);
28
+ /**
29
+ * Generated by JsPbCodeGenerator.
30
+ * @param {Array=} opt_data Optional initial data array, typically from a
31
+ * server response, or constructed directly in Javascript. The array is used
32
+ * in place and becomes part of the constructed object. It is not cloned.
33
+ * If no data is provided, the constructed object will be empty, but still
34
+ * valid.
35
+ * @extends {jspb.Message}
36
+ * @constructor
37
+ */
38
+ proto.analytic.PingRequest = function(opt_data) {
39
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
40
+ };
41
+ goog.inherits(proto.analytic.PingRequest, jspb.Message);
42
+ if (goog.DEBUG && !COMPILED) {
43
+ /**
44
+ * @public
45
+ * @override
46
+ */
47
+ proto.analytic.PingRequest.displayName = 'proto.analytic.PingRequest';
48
+ }
49
+ /**
50
+ * Generated by JsPbCodeGenerator.
51
+ * @param {Array=} opt_data Optional initial data array, typically from a
52
+ * server response, or constructed directly in Javascript. The array is used
53
+ * in place and becomes part of the constructed object. It is not cloned.
54
+ * If no data is provided, the constructed object will be empty, but still
55
+ * valid.
56
+ * @extends {jspb.Message}
57
+ * @constructor
58
+ */
59
+ proto.analytic.PongResponse = function(opt_data) {
60
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
61
+ };
62
+ goog.inherits(proto.analytic.PongResponse, jspb.Message);
63
+ if (goog.DEBUG && !COMPILED) {
64
+ /**
65
+ * @public
66
+ * @override
67
+ */
68
+ proto.analytic.PongResponse.displayName = 'proto.analytic.PongResponse';
69
+ }
70
+ /**
71
+ * Generated by JsPbCodeGenerator.
72
+ * @param {Array=} opt_data Optional initial data array, typically from a
73
+ * server response, or constructed directly in Javascript. The array is used
74
+ * in place and becomes part of the constructed object. It is not cloned.
75
+ * If no data is provided, the constructed object will be empty, but still
76
+ * valid.
77
+ * @extends {jspb.Message}
78
+ * @constructor
79
+ */
80
+ proto.analytic.PaginationRequest = function(opt_data) {
81
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
82
+ };
83
+ goog.inherits(proto.analytic.PaginationRequest, jspb.Message);
84
+ if (goog.DEBUG && !COMPILED) {
85
+ /**
86
+ * @public
87
+ * @override
88
+ */
89
+ proto.analytic.PaginationRequest.displayName = 'proto.analytic.PaginationRequest';
90
+ }
91
+ /**
92
+ * Generated by JsPbCodeGenerator.
93
+ * @param {Array=} opt_data Optional initial data array, typically from a
94
+ * server response, or constructed directly in Javascript. The array is used
95
+ * in place and becomes part of the constructed object. It is not cloned.
96
+ * If no data is provided, the constructed object will be empty, but still
97
+ * valid.
98
+ * @extends {jspb.Message}
99
+ * @constructor
100
+ */
101
+ proto.analytic.GlobalSearchRequest = function(opt_data) {
102
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
103
+ };
104
+ goog.inherits(proto.analytic.GlobalSearchRequest, jspb.Message);
105
+ if (goog.DEBUG && !COMPILED) {
106
+ /**
107
+ * @public
108
+ * @override
109
+ */
110
+ proto.analytic.GlobalSearchRequest.displayName = 'proto.analytic.GlobalSearchRequest';
111
+ }
112
+
113
+
114
+
115
+ if (jspb.Message.GENERATE_TO_OBJECT) {
116
+ /**
117
+ * Creates an object representation of this proto.
118
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
119
+ * Optional fields that are not set will be set to undefined.
120
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
121
+ * For the list of reserved names please see:
122
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
123
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
124
+ * JSPB instance for transitional soy proto support:
125
+ * http://goto/soy-param-migration
126
+ * @return {!Object}
127
+ */
128
+ proto.analytic.PingRequest.prototype.toObject = function(opt_includeInstance) {
129
+ return proto.analytic.PingRequest.toObject(opt_includeInstance, this);
130
+ };
131
+
132
+
133
+ /**
134
+ * Static version of the {@see toObject} method.
135
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
136
+ * the JSPB instance for transitional soy proto support:
137
+ * http://goto/soy-param-migration
138
+ * @param {!proto.analytic.PingRequest} msg The msg instance to transform.
139
+ * @return {!Object}
140
+ * @suppress {unusedLocalVariables} f is only used for nested messages
141
+ */
142
+ proto.analytic.PingRequest.toObject = function(includeInstance, msg) {
143
+ var f, obj = {
144
+ ping: jspb.Message.getFieldWithDefault(msg, 1, "")
145
+ };
146
+
147
+ if (includeInstance) {
148
+ obj.$jspbMessageInstance = msg;
149
+ }
150
+ return obj;
151
+ };
152
+ }
153
+
154
+
155
+ /**
156
+ * Deserializes binary data (in protobuf wire format).
157
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
158
+ * @return {!proto.analytic.PingRequest}
159
+ */
160
+ proto.analytic.PingRequest.deserializeBinary = function(bytes) {
161
+ var reader = new jspb.BinaryReader(bytes);
162
+ var msg = new proto.analytic.PingRequest;
163
+ return proto.analytic.PingRequest.deserializeBinaryFromReader(msg, reader);
164
+ };
165
+
166
+
167
+ /**
168
+ * Deserializes binary data (in protobuf wire format) from the
169
+ * given reader into the given message object.
170
+ * @param {!proto.analytic.PingRequest} msg The message object to deserialize into.
171
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
172
+ * @return {!proto.analytic.PingRequest}
173
+ */
174
+ proto.analytic.PingRequest.deserializeBinaryFromReader = function(msg, reader) {
175
+ while (reader.nextField()) {
176
+ if (reader.isEndGroup()) {
177
+ break;
178
+ }
179
+ var field = reader.getFieldNumber();
180
+ switch (field) {
181
+ case 1:
182
+ var value = /** @type {string} */ (reader.readString());
183
+ msg.setPing(value);
184
+ break;
185
+ default:
186
+ reader.skipField();
187
+ break;
188
+ }
189
+ }
190
+ return msg;
191
+ };
192
+
193
+
194
+ /**
195
+ * Serializes the message to binary data (in protobuf wire format).
196
+ * @return {!Uint8Array}
197
+ */
198
+ proto.analytic.PingRequest.prototype.serializeBinary = function() {
199
+ var writer = new jspb.BinaryWriter();
200
+ proto.analytic.PingRequest.serializeBinaryToWriter(this, writer);
201
+ return writer.getResultBuffer();
202
+ };
203
+
204
+
205
+ /**
206
+ * Serializes the given message to binary data (in protobuf wire
207
+ * format), writing to the given BinaryWriter.
208
+ * @param {!proto.analytic.PingRequest} message
209
+ * @param {!jspb.BinaryWriter} writer
210
+ * @suppress {unusedLocalVariables} f is only used for nested messages
211
+ */
212
+ proto.analytic.PingRequest.serializeBinaryToWriter = function(message, writer) {
213
+ var f = undefined;
214
+ f = message.getPing();
215
+ if (f.length > 0) {
216
+ writer.writeString(
217
+ 1,
218
+ f
219
+ );
220
+ }
221
+ };
222
+
223
+
224
+ /**
225
+ * optional string ping = 1;
226
+ * @return {string}
227
+ */
228
+ proto.analytic.PingRequest.prototype.getPing = function() {
229
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
230
+ };
231
+
232
+
233
+ /**
234
+ * @param {string} value
235
+ * @return {!proto.analytic.PingRequest} returns this
236
+ */
237
+ proto.analytic.PingRequest.prototype.setPing = function(value) {
238
+ return jspb.Message.setProto3StringField(this, 1, value);
239
+ };
240
+
241
+
242
+
243
+
244
+
245
+ if (jspb.Message.GENERATE_TO_OBJECT) {
246
+ /**
247
+ * Creates an object representation of this proto.
248
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
249
+ * Optional fields that are not set will be set to undefined.
250
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
251
+ * For the list of reserved names please see:
252
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
253
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
254
+ * JSPB instance for transitional soy proto support:
255
+ * http://goto/soy-param-migration
256
+ * @return {!Object}
257
+ */
258
+ proto.analytic.PongResponse.prototype.toObject = function(opt_includeInstance) {
259
+ return proto.analytic.PongResponse.toObject(opt_includeInstance, this);
260
+ };
261
+
262
+
263
+ /**
264
+ * Static version of the {@see toObject} method.
265
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
266
+ * the JSPB instance for transitional soy proto support:
267
+ * http://goto/soy-param-migration
268
+ * @param {!proto.analytic.PongResponse} msg The msg instance to transform.
269
+ * @return {!Object}
270
+ * @suppress {unusedLocalVariables} f is only used for nested messages
271
+ */
272
+ proto.analytic.PongResponse.toObject = function(includeInstance, msg) {
273
+ var f, obj = {
274
+ pong: jspb.Message.getFieldWithDefault(msg, 1, "")
275
+ };
276
+
277
+ if (includeInstance) {
278
+ obj.$jspbMessageInstance = msg;
279
+ }
280
+ return obj;
281
+ };
282
+ }
283
+
284
+
285
+ /**
286
+ * Deserializes binary data (in protobuf wire format).
287
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
288
+ * @return {!proto.analytic.PongResponse}
289
+ */
290
+ proto.analytic.PongResponse.deserializeBinary = function(bytes) {
291
+ var reader = new jspb.BinaryReader(bytes);
292
+ var msg = new proto.analytic.PongResponse;
293
+ return proto.analytic.PongResponse.deserializeBinaryFromReader(msg, reader);
294
+ };
295
+
296
+
297
+ /**
298
+ * Deserializes binary data (in protobuf wire format) from the
299
+ * given reader into the given message object.
300
+ * @param {!proto.analytic.PongResponse} msg The message object to deserialize into.
301
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
302
+ * @return {!proto.analytic.PongResponse}
303
+ */
304
+ proto.analytic.PongResponse.deserializeBinaryFromReader = function(msg, reader) {
305
+ while (reader.nextField()) {
306
+ if (reader.isEndGroup()) {
307
+ break;
308
+ }
309
+ var field = reader.getFieldNumber();
310
+ switch (field) {
311
+ case 1:
312
+ var value = /** @type {string} */ (reader.readString());
313
+ msg.setPong(value);
314
+ break;
315
+ default:
316
+ reader.skipField();
317
+ break;
318
+ }
319
+ }
320
+ return msg;
321
+ };
322
+
323
+
324
+ /**
325
+ * Serializes the message to binary data (in protobuf wire format).
326
+ * @return {!Uint8Array}
327
+ */
328
+ proto.analytic.PongResponse.prototype.serializeBinary = function() {
329
+ var writer = new jspb.BinaryWriter();
330
+ proto.analytic.PongResponse.serializeBinaryToWriter(this, writer);
331
+ return writer.getResultBuffer();
332
+ };
333
+
334
+
335
+ /**
336
+ * Serializes the given message to binary data (in protobuf wire
337
+ * format), writing to the given BinaryWriter.
338
+ * @param {!proto.analytic.PongResponse} message
339
+ * @param {!jspb.BinaryWriter} writer
340
+ * @suppress {unusedLocalVariables} f is only used for nested messages
341
+ */
342
+ proto.analytic.PongResponse.serializeBinaryToWriter = function(message, writer) {
343
+ var f = undefined;
344
+ f = message.getPong();
345
+ if (f.length > 0) {
346
+ writer.writeString(
347
+ 1,
348
+ f
349
+ );
350
+ }
351
+ };
352
+
353
+
354
+ /**
355
+ * optional string pong = 1;
356
+ * @return {string}
357
+ */
358
+ proto.analytic.PongResponse.prototype.getPong = function() {
359
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
360
+ };
361
+
362
+
363
+ /**
364
+ * @param {string} value
365
+ * @return {!proto.analytic.PongResponse} returns this
366
+ */
367
+ proto.analytic.PongResponse.prototype.setPong = function(value) {
368
+ return jspb.Message.setProto3StringField(this, 1, value);
369
+ };
370
+
371
+
372
+
373
+
374
+
375
+ if (jspb.Message.GENERATE_TO_OBJECT) {
376
+ /**
377
+ * Creates an object representation of this proto.
378
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
379
+ * Optional fields that are not set will be set to undefined.
380
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
381
+ * For the list of reserved names please see:
382
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
383
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
384
+ * JSPB instance for transitional soy proto support:
385
+ * http://goto/soy-param-migration
386
+ * @return {!Object}
387
+ */
388
+ proto.analytic.PaginationRequest.prototype.toObject = function(opt_includeInstance) {
389
+ return proto.analytic.PaginationRequest.toObject(opt_includeInstance, this);
390
+ };
391
+
392
+
393
+ /**
394
+ * Static version of the {@see toObject} method.
395
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
396
+ * the JSPB instance for transitional soy proto support:
397
+ * http://goto/soy-param-migration
398
+ * @param {!proto.analytic.PaginationRequest} msg The msg instance to transform.
399
+ * @return {!Object}
400
+ * @suppress {unusedLocalVariables} f is only used for nested messages
401
+ */
402
+ proto.analytic.PaginationRequest.toObject = function(includeInstance, msg) {
403
+ var f, obj = {
404
+ limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
405
+ offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
406
+ globalSearchParams: (f = msg.getGlobalSearchParams()) && proto.analytic.GlobalSearchRequest.toObject(includeInstance, f)
407
+ };
408
+
409
+ if (includeInstance) {
410
+ obj.$jspbMessageInstance = msg;
411
+ }
412
+ return obj;
413
+ };
414
+ }
415
+
416
+
417
+ /**
418
+ * Deserializes binary data (in protobuf wire format).
419
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
420
+ * @return {!proto.analytic.PaginationRequest}
421
+ */
422
+ proto.analytic.PaginationRequest.deserializeBinary = function(bytes) {
423
+ var reader = new jspb.BinaryReader(bytes);
424
+ var msg = new proto.analytic.PaginationRequest;
425
+ return proto.analytic.PaginationRequest.deserializeBinaryFromReader(msg, reader);
426
+ };
427
+
428
+
429
+ /**
430
+ * Deserializes binary data (in protobuf wire format) from the
431
+ * given reader into the given message object.
432
+ * @param {!proto.analytic.PaginationRequest} msg The message object to deserialize into.
433
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
434
+ * @return {!proto.analytic.PaginationRequest}
435
+ */
436
+ proto.analytic.PaginationRequest.deserializeBinaryFromReader = function(msg, reader) {
437
+ while (reader.nextField()) {
438
+ if (reader.isEndGroup()) {
439
+ break;
440
+ }
441
+ var field = reader.getFieldNumber();
442
+ switch (field) {
443
+ case 1:
444
+ var value = /** @type {number} */ (reader.readInt32());
445
+ msg.setLimit(value);
446
+ break;
447
+ case 2:
448
+ var value = /** @type {number} */ (reader.readInt32());
449
+ msg.setOffset(value);
450
+ break;
451
+ case 3:
452
+ var value = new proto.analytic.GlobalSearchRequest;
453
+ reader.readMessage(value,proto.analytic.GlobalSearchRequest.deserializeBinaryFromReader);
454
+ msg.setGlobalSearchParams(value);
455
+ break;
456
+ default:
457
+ reader.skipField();
458
+ break;
459
+ }
460
+ }
461
+ return msg;
462
+ };
463
+
464
+
465
+ /**
466
+ * Serializes the message to binary data (in protobuf wire format).
467
+ * @return {!Uint8Array}
468
+ */
469
+ proto.analytic.PaginationRequest.prototype.serializeBinary = function() {
470
+ var writer = new jspb.BinaryWriter();
471
+ proto.analytic.PaginationRequest.serializeBinaryToWriter(this, writer);
472
+ return writer.getResultBuffer();
473
+ };
474
+
475
+
476
+ /**
477
+ * Serializes the given message to binary data (in protobuf wire
478
+ * format), writing to the given BinaryWriter.
479
+ * @param {!proto.analytic.PaginationRequest} message
480
+ * @param {!jspb.BinaryWriter} writer
481
+ * @suppress {unusedLocalVariables} f is only used for nested messages
482
+ */
483
+ proto.analytic.PaginationRequest.serializeBinaryToWriter = function(message, writer) {
484
+ var f = undefined;
485
+ f = message.getLimit();
486
+ if (f !== 0) {
487
+ writer.writeInt32(
488
+ 1,
489
+ f
490
+ );
491
+ }
492
+ f = message.getOffset();
493
+ if (f !== 0) {
494
+ writer.writeInt32(
495
+ 2,
496
+ f
497
+ );
498
+ }
499
+ f = message.getGlobalSearchParams();
500
+ if (f != null) {
501
+ writer.writeMessage(
502
+ 3,
503
+ f,
504
+ proto.analytic.GlobalSearchRequest.serializeBinaryToWriter
505
+ );
506
+ }
507
+ };
508
+
509
+
510
+ /**
511
+ * optional int32 limit = 1;
512
+ * @return {number}
513
+ */
514
+ proto.analytic.PaginationRequest.prototype.getLimit = function() {
515
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
516
+ };
517
+
518
+
519
+ /**
520
+ * @param {number} value
521
+ * @return {!proto.analytic.PaginationRequest} returns this
522
+ */
523
+ proto.analytic.PaginationRequest.prototype.setLimit = function(value) {
524
+ return jspb.Message.setProto3IntField(this, 1, value);
525
+ };
526
+
527
+
528
+ /**
529
+ * optional int32 offset = 2;
530
+ * @return {number}
531
+ */
532
+ proto.analytic.PaginationRequest.prototype.getOffset = function() {
533
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
534
+ };
535
+
536
+
537
+ /**
538
+ * @param {number} value
539
+ * @return {!proto.analytic.PaginationRequest} returns this
540
+ */
541
+ proto.analytic.PaginationRequest.prototype.setOffset = function(value) {
542
+ return jspb.Message.setProto3IntField(this, 2, value);
543
+ };
544
+
545
+
546
+ /**
547
+ * optional GlobalSearchRequest global_search_params = 3;
548
+ * @return {?proto.analytic.GlobalSearchRequest}
549
+ */
550
+ proto.analytic.PaginationRequest.prototype.getGlobalSearchParams = function() {
551
+ return /** @type{?proto.analytic.GlobalSearchRequest} */ (
552
+ jspb.Message.getWrapperField(this, proto.analytic.GlobalSearchRequest, 3));
553
+ };
554
+
555
+
556
+ /**
557
+ * @param {?proto.analytic.GlobalSearchRequest|undefined} value
558
+ * @return {!proto.analytic.PaginationRequest} returns this
559
+ */
560
+ proto.analytic.PaginationRequest.prototype.setGlobalSearchParams = function(value) {
561
+ return jspb.Message.setWrapperField(this, 3, value);
562
+ };
563
+
564
+
565
+ /**
566
+ * Clears the message field making it undefined.
567
+ * @return {!proto.analytic.PaginationRequest} returns this
568
+ */
569
+ proto.analytic.PaginationRequest.prototype.clearGlobalSearchParams = function() {
570
+ return this.setGlobalSearchParams(undefined);
571
+ };
572
+
573
+
574
+ /**
575
+ * Returns whether this field is set.
576
+ * @return {boolean}
577
+ */
578
+ proto.analytic.PaginationRequest.prototype.hasGlobalSearchParams = function() {
579
+ return jspb.Message.getField(this, 3) != null;
580
+ };
581
+
582
+
583
+
584
+
585
+
586
+ if (jspb.Message.GENERATE_TO_OBJECT) {
587
+ /**
588
+ * Creates an object representation of this proto.
589
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
590
+ * Optional fields that are not set will be set to undefined.
591
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
592
+ * For the list of reserved names please see:
593
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
594
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
595
+ * JSPB instance for transitional soy proto support:
596
+ * http://goto/soy-param-migration
597
+ * @return {!Object}
598
+ */
599
+ proto.analytic.GlobalSearchRequest.prototype.toObject = function(opt_includeInstance) {
600
+ return proto.analytic.GlobalSearchRequest.toObject(opt_includeInstance, this);
601
+ };
602
+
603
+
604
+ /**
605
+ * Static version of the {@see toObject} method.
606
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
607
+ * the JSPB instance for transitional soy proto support:
608
+ * http://goto/soy-param-migration
609
+ * @param {!proto.analytic.GlobalSearchRequest} msg The msg instance to transform.
610
+ * @return {!Object}
611
+ * @suppress {unusedLocalVariables} f is only used for nested messages
612
+ */
613
+ proto.analytic.GlobalSearchRequest.toObject = function(includeInstance, msg) {
614
+ var f, obj = {
615
+ startAt: jspb.Message.getFieldWithDefault(msg, 1, ""),
616
+ endAt: jspb.Message.getFieldWithDefault(msg, 2, "")
617
+ };
618
+
619
+ if (includeInstance) {
620
+ obj.$jspbMessageInstance = msg;
621
+ }
622
+ return obj;
623
+ };
624
+ }
625
+
626
+
627
+ /**
628
+ * Deserializes binary data (in protobuf wire format).
629
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
630
+ * @return {!proto.analytic.GlobalSearchRequest}
631
+ */
632
+ proto.analytic.GlobalSearchRequest.deserializeBinary = function(bytes) {
633
+ var reader = new jspb.BinaryReader(bytes);
634
+ var msg = new proto.analytic.GlobalSearchRequest;
635
+ return proto.analytic.GlobalSearchRequest.deserializeBinaryFromReader(msg, reader);
636
+ };
637
+
638
+
639
+ /**
640
+ * Deserializes binary data (in protobuf wire format) from the
641
+ * given reader into the given message object.
642
+ * @param {!proto.analytic.GlobalSearchRequest} msg The message object to deserialize into.
643
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
644
+ * @return {!proto.analytic.GlobalSearchRequest}
645
+ */
646
+ proto.analytic.GlobalSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
647
+ while (reader.nextField()) {
648
+ if (reader.isEndGroup()) {
649
+ break;
650
+ }
651
+ var field = reader.getFieldNumber();
652
+ switch (field) {
653
+ case 1:
654
+ var value = /** @type {string} */ (reader.readString());
655
+ msg.setStartAt(value);
656
+ break;
657
+ case 2:
658
+ var value = /** @type {string} */ (reader.readString());
659
+ msg.setEndAt(value);
660
+ break;
661
+ default:
662
+ reader.skipField();
663
+ break;
664
+ }
665
+ }
666
+ return msg;
667
+ };
668
+
669
+
670
+ /**
671
+ * Serializes the message to binary data (in protobuf wire format).
672
+ * @return {!Uint8Array}
673
+ */
674
+ proto.analytic.GlobalSearchRequest.prototype.serializeBinary = function() {
675
+ var writer = new jspb.BinaryWriter();
676
+ proto.analytic.GlobalSearchRequest.serializeBinaryToWriter(this, writer);
677
+ return writer.getResultBuffer();
678
+ };
679
+
680
+
681
+ /**
682
+ * Serializes the given message to binary data (in protobuf wire
683
+ * format), writing to the given BinaryWriter.
684
+ * @param {!proto.analytic.GlobalSearchRequest} message
685
+ * @param {!jspb.BinaryWriter} writer
686
+ * @suppress {unusedLocalVariables} f is only used for nested messages
687
+ */
688
+ proto.analytic.GlobalSearchRequest.serializeBinaryToWriter = function(message, writer) {
689
+ var f = undefined;
690
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
691
+ if (f != null) {
692
+ writer.writeString(
693
+ 1,
694
+ f
695
+ );
696
+ }
697
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
698
+ if (f != null) {
699
+ writer.writeString(
700
+ 2,
701
+ f
702
+ );
703
+ }
704
+ };
705
+
706
+
707
+ /**
708
+ * optional string start_at = 1;
709
+ * @return {string}
710
+ */
711
+ proto.analytic.GlobalSearchRequest.prototype.getStartAt = function() {
712
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
713
+ };
714
+
715
+
716
+ /**
717
+ * @param {string} value
718
+ * @return {!proto.analytic.GlobalSearchRequest} returns this
719
+ */
720
+ proto.analytic.GlobalSearchRequest.prototype.setStartAt = function(value) {
721
+ return jspb.Message.setField(this, 1, value);
722
+ };
723
+
724
+
725
+ /**
726
+ * Clears the field making it undefined.
727
+ * @return {!proto.analytic.GlobalSearchRequest} returns this
728
+ */
729
+ proto.analytic.GlobalSearchRequest.prototype.clearStartAt = function() {
730
+ return jspb.Message.setField(this, 1, undefined);
731
+ };
732
+
733
+
734
+ /**
735
+ * Returns whether this field is set.
736
+ * @return {boolean}
737
+ */
738
+ proto.analytic.GlobalSearchRequest.prototype.hasStartAt = function() {
739
+ return jspb.Message.getField(this, 1) != null;
740
+ };
741
+
742
+
743
+ /**
744
+ * optional string end_at = 2;
745
+ * @return {string}
746
+ */
747
+ proto.analytic.GlobalSearchRequest.prototype.getEndAt = function() {
748
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
749
+ };
750
+
751
+
752
+ /**
753
+ * @param {string} value
754
+ * @return {!proto.analytic.GlobalSearchRequest} returns this
755
+ */
756
+ proto.analytic.GlobalSearchRequest.prototype.setEndAt = function(value) {
757
+ return jspb.Message.setField(this, 2, value);
758
+ };
759
+
760
+
761
+ /**
762
+ * Clears the field making it undefined.
763
+ * @return {!proto.analytic.GlobalSearchRequest} returns this
764
+ */
765
+ proto.analytic.GlobalSearchRequest.prototype.clearEndAt = function() {
766
+ return jspb.Message.setField(this, 2, undefined);
767
+ };
768
+
769
+
770
+ /**
771
+ * Returns whether this field is set.
772
+ * @return {boolean}
773
+ */
774
+ proto.analytic.GlobalSearchRequest.prototype.hasEndAt = function() {
775
+ return jspb.Message.getField(this, 2) != null;
776
+ };
777
+
778
+
779
+ goog.object.extend(exports, proto.analytic);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.244",
3
+ "version": "1.0.245",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -13,4 +13,5 @@ grpc_tools_node_protoc --js_out=import_style=commonjs,binary:notification --grpc
13
13
  grpc_tools_node_protoc --js_out=import_style=commonjs,binary:payment --grpc_out=grpc_js:payment --proto_path=./payment ./payment/*.proto &&
14
14
  grpc_tools_node_protoc --js_out=import_style=commonjs,binary:cashback --grpc_out=grpc_js:cashback --proto_path=./cashback ./cashback/*.proto &&
15
15
  grpc_tools_node_protoc --js_out=import_style=commonjs,binary:promocode --grpc_out=grpc_js:promocode --proto_path=./promocode ./promocode/*.proto &&
16
- grpc_tools_node_protoc --js_out=import_style=commonjs,binary:tournament --grpc_out=grpc_js:tournament --proto_path=./tournament ./tournament/*.proto
16
+ grpc_tools_node_protoc --js_out=import_style=commonjs,binary:tournament --grpc_out=grpc_js:tournament --proto_path=./tournament ./tournament/*.proto &&
17
+ grpc_tools_node_protoc --js_out=import_style=commonjs,binary:analytic --grpc_out=grpc_js:analytic --proto_path=./analytic ./analytic/*.proto