protobuf-platform 1.0.245 → 1.0.246

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/log/log_pb.js DELETED
@@ -1,1338 +0,0 @@
1
- // source: log.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.log.IssueItem', null, global);
25
- goog.exportSymbol('proto.log.IssueItemsResponse', null, global);
26
- goog.exportSymbol('proto.log.LogSearchRequest', null, global);
27
- goog.exportSymbol('proto.log.PaginationRequest', null, global);
28
- goog.exportSymbol('proto.log.PingRequest', null, global);
29
- goog.exportSymbol('proto.log.PongResponse', null, global);
30
- /**
31
- * Generated by JsPbCodeGenerator.
32
- * @param {Array=} opt_data Optional initial data array, typically from a
33
- * server response, or constructed directly in Javascript. The array is used
34
- * in place and becomes part of the constructed object. It is not cloned.
35
- * If no data is provided, the constructed object will be empty, but still
36
- * valid.
37
- * @extends {jspb.Message}
38
- * @constructor
39
- */
40
- proto.log.PingRequest = function(opt_data) {
41
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
42
- };
43
- goog.inherits(proto.log.PingRequest, jspb.Message);
44
- if (goog.DEBUG && !COMPILED) {
45
- /**
46
- * @public
47
- * @override
48
- */
49
- proto.log.PingRequest.displayName = 'proto.log.PingRequest';
50
- }
51
- /**
52
- * Generated by JsPbCodeGenerator.
53
- * @param {Array=} opt_data Optional initial data array, typically from a
54
- * server response, or constructed directly in Javascript. The array is used
55
- * in place and becomes part of the constructed object. It is not cloned.
56
- * If no data is provided, the constructed object will be empty, but still
57
- * valid.
58
- * @extends {jspb.Message}
59
- * @constructor
60
- */
61
- proto.log.PongResponse = function(opt_data) {
62
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
63
- };
64
- goog.inherits(proto.log.PongResponse, jspb.Message);
65
- if (goog.DEBUG && !COMPILED) {
66
- /**
67
- * @public
68
- * @override
69
- */
70
- proto.log.PongResponse.displayName = 'proto.log.PongResponse';
71
- }
72
- /**
73
- * Generated by JsPbCodeGenerator.
74
- * @param {Array=} opt_data Optional initial data array, typically from a
75
- * server response, or constructed directly in Javascript. The array is used
76
- * in place and becomes part of the constructed object. It is not cloned.
77
- * If no data is provided, the constructed object will be empty, but still
78
- * valid.
79
- * @extends {jspb.Message}
80
- * @constructor
81
- */
82
- proto.log.PaginationRequest = function(opt_data) {
83
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
84
- };
85
- goog.inherits(proto.log.PaginationRequest, jspb.Message);
86
- if (goog.DEBUG && !COMPILED) {
87
- /**
88
- * @public
89
- * @override
90
- */
91
- proto.log.PaginationRequest.displayName = 'proto.log.PaginationRequest';
92
- }
93
- /**
94
- * Generated by JsPbCodeGenerator.
95
- * @param {Array=} opt_data Optional initial data array, typically from a
96
- * server response, or constructed directly in Javascript. The array is used
97
- * in place and becomes part of the constructed object. It is not cloned.
98
- * If no data is provided, the constructed object will be empty, but still
99
- * valid.
100
- * @extends {jspb.Message}
101
- * @constructor
102
- */
103
- proto.log.LogSearchRequest = function(opt_data) {
104
- jspb.Message.initialize(this, opt_data, 0, -1, proto.log.LogSearchRequest.repeatedFields_, null);
105
- };
106
- goog.inherits(proto.log.LogSearchRequest, jspb.Message);
107
- if (goog.DEBUG && !COMPILED) {
108
- /**
109
- * @public
110
- * @override
111
- */
112
- proto.log.LogSearchRequest.displayName = 'proto.log.LogSearchRequest';
113
- }
114
- /**
115
- * Generated by JsPbCodeGenerator.
116
- * @param {Array=} opt_data Optional initial data array, typically from a
117
- * server response, or constructed directly in Javascript. The array is used
118
- * in place and becomes part of the constructed object. It is not cloned.
119
- * If no data is provided, the constructed object will be empty, but still
120
- * valid.
121
- * @extends {jspb.Message}
122
- * @constructor
123
- */
124
- proto.log.IssueItem = function(opt_data) {
125
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
126
- };
127
- goog.inherits(proto.log.IssueItem, jspb.Message);
128
- if (goog.DEBUG && !COMPILED) {
129
- /**
130
- * @public
131
- * @override
132
- */
133
- proto.log.IssueItem.displayName = 'proto.log.IssueItem';
134
- }
135
- /**
136
- * Generated by JsPbCodeGenerator.
137
- * @param {Array=} opt_data Optional initial data array, typically from a
138
- * server response, or constructed directly in Javascript. The array is used
139
- * in place and becomes part of the constructed object. It is not cloned.
140
- * If no data is provided, the constructed object will be empty, but still
141
- * valid.
142
- * @extends {jspb.Message}
143
- * @constructor
144
- */
145
- proto.log.IssueItemsResponse = function(opt_data) {
146
- jspb.Message.initialize(this, opt_data, 0, -1, proto.log.IssueItemsResponse.repeatedFields_, null);
147
- };
148
- goog.inherits(proto.log.IssueItemsResponse, jspb.Message);
149
- if (goog.DEBUG && !COMPILED) {
150
- /**
151
- * @public
152
- * @override
153
- */
154
- proto.log.IssueItemsResponse.displayName = 'proto.log.IssueItemsResponse';
155
- }
156
-
157
-
158
-
159
- if (jspb.Message.GENERATE_TO_OBJECT) {
160
- /**
161
- * Creates an object representation of this proto.
162
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
163
- * Optional fields that are not set will be set to undefined.
164
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
165
- * For the list of reserved names please see:
166
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
167
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
168
- * JSPB instance for transitional soy proto support:
169
- * http://goto/soy-param-migration
170
- * @return {!Object}
171
- */
172
- proto.log.PingRequest.prototype.toObject = function(opt_includeInstance) {
173
- return proto.log.PingRequest.toObject(opt_includeInstance, this);
174
- };
175
-
176
-
177
- /**
178
- * Static version of the {@see toObject} method.
179
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
180
- * the JSPB instance for transitional soy proto support:
181
- * http://goto/soy-param-migration
182
- * @param {!proto.log.PingRequest} msg The msg instance to transform.
183
- * @return {!Object}
184
- * @suppress {unusedLocalVariables} f is only used for nested messages
185
- */
186
- proto.log.PingRequest.toObject = function(includeInstance, msg) {
187
- var f, obj = {
188
- ping: jspb.Message.getFieldWithDefault(msg, 1, "")
189
- };
190
-
191
- if (includeInstance) {
192
- obj.$jspbMessageInstance = msg;
193
- }
194
- return obj;
195
- };
196
- }
197
-
198
-
199
- /**
200
- * Deserializes binary data (in protobuf wire format).
201
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
202
- * @return {!proto.log.PingRequest}
203
- */
204
- proto.log.PingRequest.deserializeBinary = function(bytes) {
205
- var reader = new jspb.BinaryReader(bytes);
206
- var msg = new proto.log.PingRequest;
207
- return proto.log.PingRequest.deserializeBinaryFromReader(msg, reader);
208
- };
209
-
210
-
211
- /**
212
- * Deserializes binary data (in protobuf wire format) from the
213
- * given reader into the given message object.
214
- * @param {!proto.log.PingRequest} msg The message object to deserialize into.
215
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
216
- * @return {!proto.log.PingRequest}
217
- */
218
- proto.log.PingRequest.deserializeBinaryFromReader = function(msg, reader) {
219
- while (reader.nextField()) {
220
- if (reader.isEndGroup()) {
221
- break;
222
- }
223
- var field = reader.getFieldNumber();
224
- switch (field) {
225
- case 1:
226
- var value = /** @type {string} */ (reader.readString());
227
- msg.setPing(value);
228
- break;
229
- default:
230
- reader.skipField();
231
- break;
232
- }
233
- }
234
- return msg;
235
- };
236
-
237
-
238
- /**
239
- * Serializes the message to binary data (in protobuf wire format).
240
- * @return {!Uint8Array}
241
- */
242
- proto.log.PingRequest.prototype.serializeBinary = function() {
243
- var writer = new jspb.BinaryWriter();
244
- proto.log.PingRequest.serializeBinaryToWriter(this, writer);
245
- return writer.getResultBuffer();
246
- };
247
-
248
-
249
- /**
250
- * Serializes the given message to binary data (in protobuf wire
251
- * format), writing to the given BinaryWriter.
252
- * @param {!proto.log.PingRequest} message
253
- * @param {!jspb.BinaryWriter} writer
254
- * @suppress {unusedLocalVariables} f is only used for nested messages
255
- */
256
- proto.log.PingRequest.serializeBinaryToWriter = function(message, writer) {
257
- var f = undefined;
258
- f = message.getPing();
259
- if (f.length > 0) {
260
- writer.writeString(
261
- 1,
262
- f
263
- );
264
- }
265
- };
266
-
267
-
268
- /**
269
- * optional string ping = 1;
270
- * @return {string}
271
- */
272
- proto.log.PingRequest.prototype.getPing = function() {
273
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
274
- };
275
-
276
-
277
- /**
278
- * @param {string} value
279
- * @return {!proto.log.PingRequest} returns this
280
- */
281
- proto.log.PingRequest.prototype.setPing = function(value) {
282
- return jspb.Message.setProto3StringField(this, 1, value);
283
- };
284
-
285
-
286
-
287
-
288
-
289
- if (jspb.Message.GENERATE_TO_OBJECT) {
290
- /**
291
- * Creates an object representation of this proto.
292
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
293
- * Optional fields that are not set will be set to undefined.
294
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
295
- * For the list of reserved names please see:
296
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
297
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
298
- * JSPB instance for transitional soy proto support:
299
- * http://goto/soy-param-migration
300
- * @return {!Object}
301
- */
302
- proto.log.PongResponse.prototype.toObject = function(opt_includeInstance) {
303
- return proto.log.PongResponse.toObject(opt_includeInstance, this);
304
- };
305
-
306
-
307
- /**
308
- * Static version of the {@see toObject} method.
309
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
310
- * the JSPB instance for transitional soy proto support:
311
- * http://goto/soy-param-migration
312
- * @param {!proto.log.PongResponse} msg The msg instance to transform.
313
- * @return {!Object}
314
- * @suppress {unusedLocalVariables} f is only used for nested messages
315
- */
316
- proto.log.PongResponse.toObject = function(includeInstance, msg) {
317
- var f, obj = {
318
- pong: jspb.Message.getFieldWithDefault(msg, 1, "")
319
- };
320
-
321
- if (includeInstance) {
322
- obj.$jspbMessageInstance = msg;
323
- }
324
- return obj;
325
- };
326
- }
327
-
328
-
329
- /**
330
- * Deserializes binary data (in protobuf wire format).
331
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
332
- * @return {!proto.log.PongResponse}
333
- */
334
- proto.log.PongResponse.deserializeBinary = function(bytes) {
335
- var reader = new jspb.BinaryReader(bytes);
336
- var msg = new proto.log.PongResponse;
337
- return proto.log.PongResponse.deserializeBinaryFromReader(msg, reader);
338
- };
339
-
340
-
341
- /**
342
- * Deserializes binary data (in protobuf wire format) from the
343
- * given reader into the given message object.
344
- * @param {!proto.log.PongResponse} msg The message object to deserialize into.
345
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
346
- * @return {!proto.log.PongResponse}
347
- */
348
- proto.log.PongResponse.deserializeBinaryFromReader = function(msg, reader) {
349
- while (reader.nextField()) {
350
- if (reader.isEndGroup()) {
351
- break;
352
- }
353
- var field = reader.getFieldNumber();
354
- switch (field) {
355
- case 1:
356
- var value = /** @type {string} */ (reader.readString());
357
- msg.setPong(value);
358
- break;
359
- default:
360
- reader.skipField();
361
- break;
362
- }
363
- }
364
- return msg;
365
- };
366
-
367
-
368
- /**
369
- * Serializes the message to binary data (in protobuf wire format).
370
- * @return {!Uint8Array}
371
- */
372
- proto.log.PongResponse.prototype.serializeBinary = function() {
373
- var writer = new jspb.BinaryWriter();
374
- proto.log.PongResponse.serializeBinaryToWriter(this, writer);
375
- return writer.getResultBuffer();
376
- };
377
-
378
-
379
- /**
380
- * Serializes the given message to binary data (in protobuf wire
381
- * format), writing to the given BinaryWriter.
382
- * @param {!proto.log.PongResponse} message
383
- * @param {!jspb.BinaryWriter} writer
384
- * @suppress {unusedLocalVariables} f is only used for nested messages
385
- */
386
- proto.log.PongResponse.serializeBinaryToWriter = function(message, writer) {
387
- var f = undefined;
388
- f = message.getPong();
389
- if (f.length > 0) {
390
- writer.writeString(
391
- 1,
392
- f
393
- );
394
- }
395
- };
396
-
397
-
398
- /**
399
- * optional string pong = 1;
400
- * @return {string}
401
- */
402
- proto.log.PongResponse.prototype.getPong = function() {
403
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
404
- };
405
-
406
-
407
- /**
408
- * @param {string} value
409
- * @return {!proto.log.PongResponse} returns this
410
- */
411
- proto.log.PongResponse.prototype.setPong = function(value) {
412
- return jspb.Message.setProto3StringField(this, 1, value);
413
- };
414
-
415
-
416
-
417
-
418
-
419
- if (jspb.Message.GENERATE_TO_OBJECT) {
420
- /**
421
- * Creates an object representation of this proto.
422
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
423
- * Optional fields that are not set will be set to undefined.
424
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
425
- * For the list of reserved names please see:
426
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
427
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
428
- * JSPB instance for transitional soy proto support:
429
- * http://goto/soy-param-migration
430
- * @return {!Object}
431
- */
432
- proto.log.PaginationRequest.prototype.toObject = function(opt_includeInstance) {
433
- return proto.log.PaginationRequest.toObject(opt_includeInstance, this);
434
- };
435
-
436
-
437
- /**
438
- * Static version of the {@see toObject} method.
439
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
440
- * the JSPB instance for transitional soy proto support:
441
- * http://goto/soy-param-migration
442
- * @param {!proto.log.PaginationRequest} msg The msg instance to transform.
443
- * @return {!Object}
444
- * @suppress {unusedLocalVariables} f is only used for nested messages
445
- */
446
- proto.log.PaginationRequest.toObject = function(includeInstance, msg) {
447
- var f, obj = {
448
- limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
449
- offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
450
- logSearchParams: (f = msg.getLogSearchParams()) && proto.log.LogSearchRequest.toObject(includeInstance, f)
451
- };
452
-
453
- if (includeInstance) {
454
- obj.$jspbMessageInstance = msg;
455
- }
456
- return obj;
457
- };
458
- }
459
-
460
-
461
- /**
462
- * Deserializes binary data (in protobuf wire format).
463
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
464
- * @return {!proto.log.PaginationRequest}
465
- */
466
- proto.log.PaginationRequest.deserializeBinary = function(bytes) {
467
- var reader = new jspb.BinaryReader(bytes);
468
- var msg = new proto.log.PaginationRequest;
469
- return proto.log.PaginationRequest.deserializeBinaryFromReader(msg, reader);
470
- };
471
-
472
-
473
- /**
474
- * Deserializes binary data (in protobuf wire format) from the
475
- * given reader into the given message object.
476
- * @param {!proto.log.PaginationRequest} msg The message object to deserialize into.
477
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
478
- * @return {!proto.log.PaginationRequest}
479
- */
480
- proto.log.PaginationRequest.deserializeBinaryFromReader = function(msg, reader) {
481
- while (reader.nextField()) {
482
- if (reader.isEndGroup()) {
483
- break;
484
- }
485
- var field = reader.getFieldNumber();
486
- switch (field) {
487
- case 1:
488
- var value = /** @type {number} */ (reader.readInt32());
489
- msg.setLimit(value);
490
- break;
491
- case 2:
492
- var value = /** @type {number} */ (reader.readInt32());
493
- msg.setOffset(value);
494
- break;
495
- case 3:
496
- var value = new proto.log.LogSearchRequest;
497
- reader.readMessage(value,proto.log.LogSearchRequest.deserializeBinaryFromReader);
498
- msg.setLogSearchParams(value);
499
- break;
500
- default:
501
- reader.skipField();
502
- break;
503
- }
504
- }
505
- return msg;
506
- };
507
-
508
-
509
- /**
510
- * Serializes the message to binary data (in protobuf wire format).
511
- * @return {!Uint8Array}
512
- */
513
- proto.log.PaginationRequest.prototype.serializeBinary = function() {
514
- var writer = new jspb.BinaryWriter();
515
- proto.log.PaginationRequest.serializeBinaryToWriter(this, writer);
516
- return writer.getResultBuffer();
517
- };
518
-
519
-
520
- /**
521
- * Serializes the given message to binary data (in protobuf wire
522
- * format), writing to the given BinaryWriter.
523
- * @param {!proto.log.PaginationRequest} message
524
- * @param {!jspb.BinaryWriter} writer
525
- * @suppress {unusedLocalVariables} f is only used for nested messages
526
- */
527
- proto.log.PaginationRequest.serializeBinaryToWriter = function(message, writer) {
528
- var f = undefined;
529
- f = message.getLimit();
530
- if (f !== 0) {
531
- writer.writeInt32(
532
- 1,
533
- f
534
- );
535
- }
536
- f = message.getOffset();
537
- if (f !== 0) {
538
- writer.writeInt32(
539
- 2,
540
- f
541
- );
542
- }
543
- f = message.getLogSearchParams();
544
- if (f != null) {
545
- writer.writeMessage(
546
- 3,
547
- f,
548
- proto.log.LogSearchRequest.serializeBinaryToWriter
549
- );
550
- }
551
- };
552
-
553
-
554
- /**
555
- * optional int32 limit = 1;
556
- * @return {number}
557
- */
558
- proto.log.PaginationRequest.prototype.getLimit = function() {
559
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
560
- };
561
-
562
-
563
- /**
564
- * @param {number} value
565
- * @return {!proto.log.PaginationRequest} returns this
566
- */
567
- proto.log.PaginationRequest.prototype.setLimit = function(value) {
568
- return jspb.Message.setProto3IntField(this, 1, value);
569
- };
570
-
571
-
572
- /**
573
- * optional int32 offset = 2;
574
- * @return {number}
575
- */
576
- proto.log.PaginationRequest.prototype.getOffset = function() {
577
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
578
- };
579
-
580
-
581
- /**
582
- * @param {number} value
583
- * @return {!proto.log.PaginationRequest} returns this
584
- */
585
- proto.log.PaginationRequest.prototype.setOffset = function(value) {
586
- return jspb.Message.setProto3IntField(this, 2, value);
587
- };
588
-
589
-
590
- /**
591
- * optional LogSearchRequest log_search_params = 3;
592
- * @return {?proto.log.LogSearchRequest}
593
- */
594
- proto.log.PaginationRequest.prototype.getLogSearchParams = function() {
595
- return /** @type{?proto.log.LogSearchRequest} */ (
596
- jspb.Message.getWrapperField(this, proto.log.LogSearchRequest, 3));
597
- };
598
-
599
-
600
- /**
601
- * @param {?proto.log.LogSearchRequest|undefined} value
602
- * @return {!proto.log.PaginationRequest} returns this
603
- */
604
- proto.log.PaginationRequest.prototype.setLogSearchParams = function(value) {
605
- return jspb.Message.setWrapperField(this, 3, value);
606
- };
607
-
608
-
609
- /**
610
- * Clears the message field making it undefined.
611
- * @return {!proto.log.PaginationRequest} returns this
612
- */
613
- proto.log.PaginationRequest.prototype.clearLogSearchParams = function() {
614
- return this.setLogSearchParams(undefined);
615
- };
616
-
617
-
618
- /**
619
- * Returns whether this field is set.
620
- * @return {boolean}
621
- */
622
- proto.log.PaginationRequest.prototype.hasLogSearchParams = function() {
623
- return jspb.Message.getField(this, 3) != null;
624
- };
625
-
626
-
627
-
628
- /**
629
- * List of repeated fields within this message type.
630
- * @private {!Array<number>}
631
- * @const
632
- */
633
- proto.log.LogSearchRequest.repeatedFields_ = [1,2];
634
-
635
-
636
-
637
- if (jspb.Message.GENERATE_TO_OBJECT) {
638
- /**
639
- * Creates an object representation of this proto.
640
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
641
- * Optional fields that are not set will be set to undefined.
642
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
643
- * For the list of reserved names please see:
644
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
645
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
646
- * JSPB instance for transitional soy proto support:
647
- * http://goto/soy-param-migration
648
- * @return {!Object}
649
- */
650
- proto.log.LogSearchRequest.prototype.toObject = function(opt_includeInstance) {
651
- return proto.log.LogSearchRequest.toObject(opt_includeInstance, this);
652
- };
653
-
654
-
655
- /**
656
- * Static version of the {@see toObject} method.
657
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
658
- * the JSPB instance for transitional soy proto support:
659
- * http://goto/soy-param-migration
660
- * @param {!proto.log.LogSearchRequest} msg The msg instance to transform.
661
- * @return {!Object}
662
- * @suppress {unusedLocalVariables} f is only used for nested messages
663
- */
664
- proto.log.LogSearchRequest.toObject = function(includeInstance, msg) {
665
- var f, obj = {
666
- serviceList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
667
- typeList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
668
- };
669
-
670
- if (includeInstance) {
671
- obj.$jspbMessageInstance = msg;
672
- }
673
- return obj;
674
- };
675
- }
676
-
677
-
678
- /**
679
- * Deserializes binary data (in protobuf wire format).
680
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
681
- * @return {!proto.log.LogSearchRequest}
682
- */
683
- proto.log.LogSearchRequest.deserializeBinary = function(bytes) {
684
- var reader = new jspb.BinaryReader(bytes);
685
- var msg = new proto.log.LogSearchRequest;
686
- return proto.log.LogSearchRequest.deserializeBinaryFromReader(msg, reader);
687
- };
688
-
689
-
690
- /**
691
- * Deserializes binary data (in protobuf wire format) from the
692
- * given reader into the given message object.
693
- * @param {!proto.log.LogSearchRequest} msg The message object to deserialize into.
694
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
695
- * @return {!proto.log.LogSearchRequest}
696
- */
697
- proto.log.LogSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
698
- while (reader.nextField()) {
699
- if (reader.isEndGroup()) {
700
- break;
701
- }
702
- var field = reader.getFieldNumber();
703
- switch (field) {
704
- case 1:
705
- var value = /** @type {string} */ (reader.readString());
706
- msg.addService(value);
707
- break;
708
- case 2:
709
- var value = /** @type {string} */ (reader.readString());
710
- msg.addType(value);
711
- break;
712
- default:
713
- reader.skipField();
714
- break;
715
- }
716
- }
717
- return msg;
718
- };
719
-
720
-
721
- /**
722
- * Serializes the message to binary data (in protobuf wire format).
723
- * @return {!Uint8Array}
724
- */
725
- proto.log.LogSearchRequest.prototype.serializeBinary = function() {
726
- var writer = new jspb.BinaryWriter();
727
- proto.log.LogSearchRequest.serializeBinaryToWriter(this, writer);
728
- return writer.getResultBuffer();
729
- };
730
-
731
-
732
- /**
733
- * Serializes the given message to binary data (in protobuf wire
734
- * format), writing to the given BinaryWriter.
735
- * @param {!proto.log.LogSearchRequest} message
736
- * @param {!jspb.BinaryWriter} writer
737
- * @suppress {unusedLocalVariables} f is only used for nested messages
738
- */
739
- proto.log.LogSearchRequest.serializeBinaryToWriter = function(message, writer) {
740
- var f = undefined;
741
- f = message.getServiceList();
742
- if (f.length > 0) {
743
- writer.writeRepeatedString(
744
- 1,
745
- f
746
- );
747
- }
748
- f = message.getTypeList();
749
- if (f.length > 0) {
750
- writer.writeRepeatedString(
751
- 2,
752
- f
753
- );
754
- }
755
- };
756
-
757
-
758
- /**
759
- * repeated string service = 1;
760
- * @return {!Array<string>}
761
- */
762
- proto.log.LogSearchRequest.prototype.getServiceList = function() {
763
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
764
- };
765
-
766
-
767
- /**
768
- * @param {!Array<string>} value
769
- * @return {!proto.log.LogSearchRequest} returns this
770
- */
771
- proto.log.LogSearchRequest.prototype.setServiceList = function(value) {
772
- return jspb.Message.setField(this, 1, value || []);
773
- };
774
-
775
-
776
- /**
777
- * @param {string} value
778
- * @param {number=} opt_index
779
- * @return {!proto.log.LogSearchRequest} returns this
780
- */
781
- proto.log.LogSearchRequest.prototype.addService = function(value, opt_index) {
782
- return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
783
- };
784
-
785
-
786
- /**
787
- * Clears the list making it empty but non-null.
788
- * @return {!proto.log.LogSearchRequest} returns this
789
- */
790
- proto.log.LogSearchRequest.prototype.clearServiceList = function() {
791
- return this.setServiceList([]);
792
- };
793
-
794
-
795
- /**
796
- * repeated string type = 2;
797
- * @return {!Array<string>}
798
- */
799
- proto.log.LogSearchRequest.prototype.getTypeList = function() {
800
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
801
- };
802
-
803
-
804
- /**
805
- * @param {!Array<string>} value
806
- * @return {!proto.log.LogSearchRequest} returns this
807
- */
808
- proto.log.LogSearchRequest.prototype.setTypeList = function(value) {
809
- return jspb.Message.setField(this, 2, value || []);
810
- };
811
-
812
-
813
- /**
814
- * @param {string} value
815
- * @param {number=} opt_index
816
- * @return {!proto.log.LogSearchRequest} returns this
817
- */
818
- proto.log.LogSearchRequest.prototype.addType = function(value, opt_index) {
819
- return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
820
- };
821
-
822
-
823
- /**
824
- * Clears the list making it empty but non-null.
825
- * @return {!proto.log.LogSearchRequest} returns this
826
- */
827
- proto.log.LogSearchRequest.prototype.clearTypeList = function() {
828
- return this.setTypeList([]);
829
- };
830
-
831
-
832
-
833
-
834
-
835
- if (jspb.Message.GENERATE_TO_OBJECT) {
836
- /**
837
- * Creates an object representation of this proto.
838
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
839
- * Optional fields that are not set will be set to undefined.
840
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
841
- * For the list of reserved names please see:
842
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
843
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
844
- * JSPB instance for transitional soy proto support:
845
- * http://goto/soy-param-migration
846
- * @return {!Object}
847
- */
848
- proto.log.IssueItem.prototype.toObject = function(opt_includeInstance) {
849
- return proto.log.IssueItem.toObject(opt_includeInstance, this);
850
- };
851
-
852
-
853
- /**
854
- * Static version of the {@see toObject} method.
855
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
856
- * the JSPB instance for transitional soy proto support:
857
- * http://goto/soy-param-migration
858
- * @param {!proto.log.IssueItem} msg The msg instance to transform.
859
- * @return {!Object}
860
- * @suppress {unusedLocalVariables} f is only used for nested messages
861
- */
862
- proto.log.IssueItem.toObject = function(includeInstance, msg) {
863
- var f, obj = {
864
- hash: jspb.Message.getFieldWithDefault(msg, 1, ""),
865
- type: jspb.Message.getFieldWithDefault(msg, 2, ""),
866
- service: jspb.Message.getFieldWithDefault(msg, 3, ""),
867
- message: jspb.Message.getFieldWithDefault(msg, 4, ""),
868
- created: jspb.Message.getFieldWithDefault(msg, 5, "")
869
- };
870
-
871
- if (includeInstance) {
872
- obj.$jspbMessageInstance = msg;
873
- }
874
- return obj;
875
- };
876
- }
877
-
878
-
879
- /**
880
- * Deserializes binary data (in protobuf wire format).
881
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
882
- * @return {!proto.log.IssueItem}
883
- */
884
- proto.log.IssueItem.deserializeBinary = function(bytes) {
885
- var reader = new jspb.BinaryReader(bytes);
886
- var msg = new proto.log.IssueItem;
887
- return proto.log.IssueItem.deserializeBinaryFromReader(msg, reader);
888
- };
889
-
890
-
891
- /**
892
- * Deserializes binary data (in protobuf wire format) from the
893
- * given reader into the given message object.
894
- * @param {!proto.log.IssueItem} msg The message object to deserialize into.
895
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
896
- * @return {!proto.log.IssueItem}
897
- */
898
- proto.log.IssueItem.deserializeBinaryFromReader = function(msg, reader) {
899
- while (reader.nextField()) {
900
- if (reader.isEndGroup()) {
901
- break;
902
- }
903
- var field = reader.getFieldNumber();
904
- switch (field) {
905
- case 1:
906
- var value = /** @type {string} */ (reader.readString());
907
- msg.setHash(value);
908
- break;
909
- case 2:
910
- var value = /** @type {string} */ (reader.readString());
911
- msg.setType(value);
912
- break;
913
- case 3:
914
- var value = /** @type {string} */ (reader.readString());
915
- msg.setService(value);
916
- break;
917
- case 4:
918
- var value = /** @type {string} */ (reader.readString());
919
- msg.setMessage(value);
920
- break;
921
- case 5:
922
- var value = /** @type {string} */ (reader.readString());
923
- msg.setCreated(value);
924
- break;
925
- default:
926
- reader.skipField();
927
- break;
928
- }
929
- }
930
- return msg;
931
- };
932
-
933
-
934
- /**
935
- * Serializes the message to binary data (in protobuf wire format).
936
- * @return {!Uint8Array}
937
- */
938
- proto.log.IssueItem.prototype.serializeBinary = function() {
939
- var writer = new jspb.BinaryWriter();
940
- proto.log.IssueItem.serializeBinaryToWriter(this, writer);
941
- return writer.getResultBuffer();
942
- };
943
-
944
-
945
- /**
946
- * Serializes the given message to binary data (in protobuf wire
947
- * format), writing to the given BinaryWriter.
948
- * @param {!proto.log.IssueItem} message
949
- * @param {!jspb.BinaryWriter} writer
950
- * @suppress {unusedLocalVariables} f is only used for nested messages
951
- */
952
- proto.log.IssueItem.serializeBinaryToWriter = function(message, writer) {
953
- var f = undefined;
954
- f = message.getHash();
955
- if (f.length > 0) {
956
- writer.writeString(
957
- 1,
958
- f
959
- );
960
- }
961
- f = message.getType();
962
- if (f.length > 0) {
963
- writer.writeString(
964
- 2,
965
- f
966
- );
967
- }
968
- f = message.getService();
969
- if (f.length > 0) {
970
- writer.writeString(
971
- 3,
972
- f
973
- );
974
- }
975
- f = message.getMessage();
976
- if (f.length > 0) {
977
- writer.writeString(
978
- 4,
979
- f
980
- );
981
- }
982
- f = message.getCreated();
983
- if (f.length > 0) {
984
- writer.writeString(
985
- 5,
986
- f
987
- );
988
- }
989
- };
990
-
991
-
992
- /**
993
- * optional string hash = 1;
994
- * @return {string}
995
- */
996
- proto.log.IssueItem.prototype.getHash = function() {
997
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
998
- };
999
-
1000
-
1001
- /**
1002
- * @param {string} value
1003
- * @return {!proto.log.IssueItem} returns this
1004
- */
1005
- proto.log.IssueItem.prototype.setHash = function(value) {
1006
- return jspb.Message.setProto3StringField(this, 1, value);
1007
- };
1008
-
1009
-
1010
- /**
1011
- * optional string type = 2;
1012
- * @return {string}
1013
- */
1014
- proto.log.IssueItem.prototype.getType = function() {
1015
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1016
- };
1017
-
1018
-
1019
- /**
1020
- * @param {string} value
1021
- * @return {!proto.log.IssueItem} returns this
1022
- */
1023
- proto.log.IssueItem.prototype.setType = function(value) {
1024
- return jspb.Message.setProto3StringField(this, 2, value);
1025
- };
1026
-
1027
-
1028
- /**
1029
- * optional string service = 3;
1030
- * @return {string}
1031
- */
1032
- proto.log.IssueItem.prototype.getService = function() {
1033
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1034
- };
1035
-
1036
-
1037
- /**
1038
- * @param {string} value
1039
- * @return {!proto.log.IssueItem} returns this
1040
- */
1041
- proto.log.IssueItem.prototype.setService = function(value) {
1042
- return jspb.Message.setProto3StringField(this, 3, value);
1043
- };
1044
-
1045
-
1046
- /**
1047
- * optional string message = 4;
1048
- * @return {string}
1049
- */
1050
- proto.log.IssueItem.prototype.getMessage = function() {
1051
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1052
- };
1053
-
1054
-
1055
- /**
1056
- * @param {string} value
1057
- * @return {!proto.log.IssueItem} returns this
1058
- */
1059
- proto.log.IssueItem.prototype.setMessage = function(value) {
1060
- return jspb.Message.setProto3StringField(this, 4, value);
1061
- };
1062
-
1063
-
1064
- /**
1065
- * optional string created = 5;
1066
- * @return {string}
1067
- */
1068
- proto.log.IssueItem.prototype.getCreated = function() {
1069
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1070
- };
1071
-
1072
-
1073
- /**
1074
- * @param {string} value
1075
- * @return {!proto.log.IssueItem} returns this
1076
- */
1077
- proto.log.IssueItem.prototype.setCreated = function(value) {
1078
- return jspb.Message.setProto3StringField(this, 5, value);
1079
- };
1080
-
1081
-
1082
-
1083
- /**
1084
- * List of repeated fields within this message type.
1085
- * @private {!Array<number>}
1086
- * @const
1087
- */
1088
- proto.log.IssueItemsResponse.repeatedFields_ = [1];
1089
-
1090
-
1091
-
1092
- if (jspb.Message.GENERATE_TO_OBJECT) {
1093
- /**
1094
- * Creates an object representation of this proto.
1095
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1096
- * Optional fields that are not set will be set to undefined.
1097
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1098
- * For the list of reserved names please see:
1099
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1100
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1101
- * JSPB instance for transitional soy proto support:
1102
- * http://goto/soy-param-migration
1103
- * @return {!Object}
1104
- */
1105
- proto.log.IssueItemsResponse.prototype.toObject = function(opt_includeInstance) {
1106
- return proto.log.IssueItemsResponse.toObject(opt_includeInstance, this);
1107
- };
1108
-
1109
-
1110
- /**
1111
- * Static version of the {@see toObject} method.
1112
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1113
- * the JSPB instance for transitional soy proto support:
1114
- * http://goto/soy-param-migration
1115
- * @param {!proto.log.IssueItemsResponse} msg The msg instance to transform.
1116
- * @return {!Object}
1117
- * @suppress {unusedLocalVariables} f is only used for nested messages
1118
- */
1119
- proto.log.IssueItemsResponse.toObject = function(includeInstance, msg) {
1120
- var f, obj = {
1121
- itemsList: jspb.Message.toObjectList(msg.getItemsList(),
1122
- proto.log.IssueItem.toObject, includeInstance),
1123
- totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
1124
- totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
1125
- };
1126
-
1127
- if (includeInstance) {
1128
- obj.$jspbMessageInstance = msg;
1129
- }
1130
- return obj;
1131
- };
1132
- }
1133
-
1134
-
1135
- /**
1136
- * Deserializes binary data (in protobuf wire format).
1137
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1138
- * @return {!proto.log.IssueItemsResponse}
1139
- */
1140
- proto.log.IssueItemsResponse.deserializeBinary = function(bytes) {
1141
- var reader = new jspb.BinaryReader(bytes);
1142
- var msg = new proto.log.IssueItemsResponse;
1143
- return proto.log.IssueItemsResponse.deserializeBinaryFromReader(msg, reader);
1144
- };
1145
-
1146
-
1147
- /**
1148
- * Deserializes binary data (in protobuf wire format) from the
1149
- * given reader into the given message object.
1150
- * @param {!proto.log.IssueItemsResponse} msg The message object to deserialize into.
1151
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1152
- * @return {!proto.log.IssueItemsResponse}
1153
- */
1154
- proto.log.IssueItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
1155
- while (reader.nextField()) {
1156
- if (reader.isEndGroup()) {
1157
- break;
1158
- }
1159
- var field = reader.getFieldNumber();
1160
- switch (field) {
1161
- case 1:
1162
- var value = new proto.log.IssueItem;
1163
- reader.readMessage(value,proto.log.IssueItem.deserializeBinaryFromReader);
1164
- msg.addItems(value);
1165
- break;
1166
- case 2:
1167
- var value = /** @type {number} */ (reader.readInt32());
1168
- msg.setTotalPages(value);
1169
- break;
1170
- case 3:
1171
- var value = /** @type {number} */ (reader.readInt32());
1172
- msg.setTotalItems(value);
1173
- break;
1174
- default:
1175
- reader.skipField();
1176
- break;
1177
- }
1178
- }
1179
- return msg;
1180
- };
1181
-
1182
-
1183
- /**
1184
- * Serializes the message to binary data (in protobuf wire format).
1185
- * @return {!Uint8Array}
1186
- */
1187
- proto.log.IssueItemsResponse.prototype.serializeBinary = function() {
1188
- var writer = new jspb.BinaryWriter();
1189
- proto.log.IssueItemsResponse.serializeBinaryToWriter(this, writer);
1190
- return writer.getResultBuffer();
1191
- };
1192
-
1193
-
1194
- /**
1195
- * Serializes the given message to binary data (in protobuf wire
1196
- * format), writing to the given BinaryWriter.
1197
- * @param {!proto.log.IssueItemsResponse} message
1198
- * @param {!jspb.BinaryWriter} writer
1199
- * @suppress {unusedLocalVariables} f is only used for nested messages
1200
- */
1201
- proto.log.IssueItemsResponse.serializeBinaryToWriter = function(message, writer) {
1202
- var f = undefined;
1203
- f = message.getItemsList();
1204
- if (f.length > 0) {
1205
- writer.writeRepeatedMessage(
1206
- 1,
1207
- f,
1208
- proto.log.IssueItem.serializeBinaryToWriter
1209
- );
1210
- }
1211
- f = /** @type {number} */ (jspb.Message.getField(message, 2));
1212
- if (f != null) {
1213
- writer.writeInt32(
1214
- 2,
1215
- f
1216
- );
1217
- }
1218
- f = /** @type {number} */ (jspb.Message.getField(message, 3));
1219
- if (f != null) {
1220
- writer.writeInt32(
1221
- 3,
1222
- f
1223
- );
1224
- }
1225
- };
1226
-
1227
-
1228
- /**
1229
- * repeated IssueItem items = 1;
1230
- * @return {!Array<!proto.log.IssueItem>}
1231
- */
1232
- proto.log.IssueItemsResponse.prototype.getItemsList = function() {
1233
- return /** @type{!Array<!proto.log.IssueItem>} */ (
1234
- jspb.Message.getRepeatedWrapperField(this, proto.log.IssueItem, 1));
1235
- };
1236
-
1237
-
1238
- /**
1239
- * @param {!Array<!proto.log.IssueItem>} value
1240
- * @return {!proto.log.IssueItemsResponse} returns this
1241
- */
1242
- proto.log.IssueItemsResponse.prototype.setItemsList = function(value) {
1243
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
1244
- };
1245
-
1246
-
1247
- /**
1248
- * @param {!proto.log.IssueItem=} opt_value
1249
- * @param {number=} opt_index
1250
- * @return {!proto.log.IssueItem}
1251
- */
1252
- proto.log.IssueItemsResponse.prototype.addItems = function(opt_value, opt_index) {
1253
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.log.IssueItem, opt_index);
1254
- };
1255
-
1256
-
1257
- /**
1258
- * Clears the list making it empty but non-null.
1259
- * @return {!proto.log.IssueItemsResponse} returns this
1260
- */
1261
- proto.log.IssueItemsResponse.prototype.clearItemsList = function() {
1262
- return this.setItemsList([]);
1263
- };
1264
-
1265
-
1266
- /**
1267
- * optional int32 total_pages = 2;
1268
- * @return {number}
1269
- */
1270
- proto.log.IssueItemsResponse.prototype.getTotalPages = function() {
1271
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1272
- };
1273
-
1274
-
1275
- /**
1276
- * @param {number} value
1277
- * @return {!proto.log.IssueItemsResponse} returns this
1278
- */
1279
- proto.log.IssueItemsResponse.prototype.setTotalPages = function(value) {
1280
- return jspb.Message.setField(this, 2, value);
1281
- };
1282
-
1283
-
1284
- /**
1285
- * Clears the field making it undefined.
1286
- * @return {!proto.log.IssueItemsResponse} returns this
1287
- */
1288
- proto.log.IssueItemsResponse.prototype.clearTotalPages = function() {
1289
- return jspb.Message.setField(this, 2, undefined);
1290
- };
1291
-
1292
-
1293
- /**
1294
- * Returns whether this field is set.
1295
- * @return {boolean}
1296
- */
1297
- proto.log.IssueItemsResponse.prototype.hasTotalPages = function() {
1298
- return jspb.Message.getField(this, 2) != null;
1299
- };
1300
-
1301
-
1302
- /**
1303
- * optional int32 total_items = 3;
1304
- * @return {number}
1305
- */
1306
- proto.log.IssueItemsResponse.prototype.getTotalItems = function() {
1307
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1308
- };
1309
-
1310
-
1311
- /**
1312
- * @param {number} value
1313
- * @return {!proto.log.IssueItemsResponse} returns this
1314
- */
1315
- proto.log.IssueItemsResponse.prototype.setTotalItems = function(value) {
1316
- return jspb.Message.setField(this, 3, value);
1317
- };
1318
-
1319
-
1320
- /**
1321
- * Clears the field making it undefined.
1322
- * @return {!proto.log.IssueItemsResponse} returns this
1323
- */
1324
- proto.log.IssueItemsResponse.prototype.clearTotalItems = function() {
1325
- return jspb.Message.setField(this, 3, undefined);
1326
- };
1327
-
1328
-
1329
- /**
1330
- * Returns whether this field is set.
1331
- * @return {boolean}
1332
- */
1333
- proto.log.IssueItemsResponse.prototype.hasTotalItems = function() {
1334
- return jspb.Message.getField(this, 3) != null;
1335
- };
1336
-
1337
-
1338
- goog.object.extend(exports, proto.log);