@miradorlabs/web-grpc 2.2.0 → 2.4.0

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,3261 @@
1
+ // source: proto/gateway/web/v1/log_gateway.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 =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
25
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
26
+ var proto_gateway_web_v1_metric_gateway_pb = require('../../../../proto/gateway/web/v1/metric_gateway_pb.js');
27
+ goog.object.extend(proto, proto_gateway_web_v1_metric_gateway_pb);
28
+ var proto_gateway_web_v1_trace_gateway_pb = require('../../../../proto/gateway/web/v1/trace_gateway_pb.js');
29
+ goog.object.extend(proto, proto_gateway_web_v1_trace_gateway_pb);
30
+ goog.exportSymbol('proto.gateway.web.v1.LogAttribute', null, global);
31
+ goog.exportSymbol('proto.gateway.web.v1.LogAttributeEnvelope', null, global);
32
+ goog.exportSymbol('proto.gateway.web.v1.LogAttributeEnvelope.EventCase', null, global);
33
+ goog.exportSymbol('proto.gateway.web.v1.LogAttributeSnapshot', null, global);
34
+ goog.exportSymbol('proto.gateway.web.v1.LogDataEnvelope', null, global);
35
+ goog.exportSymbol('proto.gateway.web.v1.LogDataEnvelope.EventCase', null, global);
36
+ goog.exportSymbol('proto.gateway.web.v1.LogEntry', null, global);
37
+ goog.exportSymbol('proto.gateway.web.v1.LogHistogramBucket', null, global);
38
+ goog.exportSymbol('proto.gateway.web.v1.LogHistogramEnvelope', null, global);
39
+ goog.exportSymbol('proto.gateway.web.v1.LogHistogramEnvelope.EventCase', null, global);
40
+ goog.exportSymbol('proto.gateway.web.v1.LogHistogramSnapshot', null, global);
41
+ goog.exportSymbol('proto.gateway.web.v1.LogSnapshot', null, global);
42
+ goog.exportSymbol('proto.gateway.web.v1.StreamLogAttributesRequest', null, global);
43
+ goog.exportSymbol('proto.gateway.web.v1.StreamLogHistogramRequest', null, global);
44
+ goog.exportSymbol('proto.gateway.web.v1.StreamLogsRequest', null, global);
45
+ /**
46
+ * Generated by JsPbCodeGenerator.
47
+ * @param {Array=} opt_data Optional initial data array, typically from a
48
+ * server response, or constructed directly in Javascript. The array is used
49
+ * in place and becomes part of the constructed object. It is not cloned.
50
+ * If no data is provided, the constructed object will be empty, but still
51
+ * valid.
52
+ * @extends {jspb.Message}
53
+ * @constructor
54
+ */
55
+ proto.gateway.web.v1.StreamLogsRequest = function(opt_data) {
56
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
57
+ };
58
+ goog.inherits(proto.gateway.web.v1.StreamLogsRequest, jspb.Message);
59
+ if (goog.DEBUG && !COMPILED) {
60
+ /**
61
+ * @public
62
+ * @override
63
+ */
64
+ proto.gateway.web.v1.StreamLogsRequest.displayName = 'proto.gateway.web.v1.StreamLogsRequest';
65
+ }
66
+ /**
67
+ * Generated by JsPbCodeGenerator.
68
+ * @param {Array=} opt_data Optional initial data array, typically from a
69
+ * server response, or constructed directly in Javascript. The array is used
70
+ * in place and becomes part of the constructed object. It is not cloned.
71
+ * If no data is provided, the constructed object will be empty, but still
72
+ * valid.
73
+ * @extends {jspb.Message}
74
+ * @constructor
75
+ */
76
+ proto.gateway.web.v1.LogDataEnvelope = function(opt_data) {
77
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gateway.web.v1.LogDataEnvelope.oneofGroups_);
78
+ };
79
+ goog.inherits(proto.gateway.web.v1.LogDataEnvelope, jspb.Message);
80
+ if (goog.DEBUG && !COMPILED) {
81
+ /**
82
+ * @public
83
+ * @override
84
+ */
85
+ proto.gateway.web.v1.LogDataEnvelope.displayName = 'proto.gateway.web.v1.LogDataEnvelope';
86
+ }
87
+ /**
88
+ * Generated by JsPbCodeGenerator.
89
+ * @param {Array=} opt_data Optional initial data array, typically from a
90
+ * server response, or constructed directly in Javascript. The array is used
91
+ * in place and becomes part of the constructed object. It is not cloned.
92
+ * If no data is provided, the constructed object will be empty, but still
93
+ * valid.
94
+ * @extends {jspb.Message}
95
+ * @constructor
96
+ */
97
+ proto.gateway.web.v1.LogSnapshot = function(opt_data) {
98
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.LogSnapshot.repeatedFields_, null);
99
+ };
100
+ goog.inherits(proto.gateway.web.v1.LogSnapshot, jspb.Message);
101
+ if (goog.DEBUG && !COMPILED) {
102
+ /**
103
+ * @public
104
+ * @override
105
+ */
106
+ proto.gateway.web.v1.LogSnapshot.displayName = 'proto.gateway.web.v1.LogSnapshot';
107
+ }
108
+ /**
109
+ * Generated by JsPbCodeGenerator.
110
+ * @param {Array=} opt_data Optional initial data array, typically from a
111
+ * server response, or constructed directly in Javascript. The array is used
112
+ * in place and becomes part of the constructed object. It is not cloned.
113
+ * If no data is provided, the constructed object will be empty, but still
114
+ * valid.
115
+ * @extends {jspb.Message}
116
+ * @constructor
117
+ */
118
+ proto.gateway.web.v1.LogEntry = function(opt_data) {
119
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
120
+ };
121
+ goog.inherits(proto.gateway.web.v1.LogEntry, jspb.Message);
122
+ if (goog.DEBUG && !COMPILED) {
123
+ /**
124
+ * @public
125
+ * @override
126
+ */
127
+ proto.gateway.web.v1.LogEntry.displayName = 'proto.gateway.web.v1.LogEntry';
128
+ }
129
+ /**
130
+ * Generated by JsPbCodeGenerator.
131
+ * @param {Array=} opt_data Optional initial data array, typically from a
132
+ * server response, or constructed directly in Javascript. The array is used
133
+ * in place and becomes part of the constructed object. It is not cloned.
134
+ * If no data is provided, the constructed object will be empty, but still
135
+ * valid.
136
+ * @extends {jspb.Message}
137
+ * @constructor
138
+ */
139
+ proto.gateway.web.v1.StreamLogHistogramRequest = function(opt_data) {
140
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
141
+ };
142
+ goog.inherits(proto.gateway.web.v1.StreamLogHistogramRequest, jspb.Message);
143
+ if (goog.DEBUG && !COMPILED) {
144
+ /**
145
+ * @public
146
+ * @override
147
+ */
148
+ proto.gateway.web.v1.StreamLogHistogramRequest.displayName = 'proto.gateway.web.v1.StreamLogHistogramRequest';
149
+ }
150
+ /**
151
+ * Generated by JsPbCodeGenerator.
152
+ * @param {Array=} opt_data Optional initial data array, typically from a
153
+ * server response, or constructed directly in Javascript. The array is used
154
+ * in place and becomes part of the constructed object. It is not cloned.
155
+ * If no data is provided, the constructed object will be empty, but still
156
+ * valid.
157
+ * @extends {jspb.Message}
158
+ * @constructor
159
+ */
160
+ proto.gateway.web.v1.LogHistogramEnvelope = function(opt_data) {
161
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gateway.web.v1.LogHistogramEnvelope.oneofGroups_);
162
+ };
163
+ goog.inherits(proto.gateway.web.v1.LogHistogramEnvelope, jspb.Message);
164
+ if (goog.DEBUG && !COMPILED) {
165
+ /**
166
+ * @public
167
+ * @override
168
+ */
169
+ proto.gateway.web.v1.LogHistogramEnvelope.displayName = 'proto.gateway.web.v1.LogHistogramEnvelope';
170
+ }
171
+ /**
172
+ * Generated by JsPbCodeGenerator.
173
+ * @param {Array=} opt_data Optional initial data array, typically from a
174
+ * server response, or constructed directly in Javascript. The array is used
175
+ * in place and becomes part of the constructed object. It is not cloned.
176
+ * If no data is provided, the constructed object will be empty, but still
177
+ * valid.
178
+ * @extends {jspb.Message}
179
+ * @constructor
180
+ */
181
+ proto.gateway.web.v1.LogHistogramSnapshot = function(opt_data) {
182
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.LogHistogramSnapshot.repeatedFields_, null);
183
+ };
184
+ goog.inherits(proto.gateway.web.v1.LogHistogramSnapshot, jspb.Message);
185
+ if (goog.DEBUG && !COMPILED) {
186
+ /**
187
+ * @public
188
+ * @override
189
+ */
190
+ proto.gateway.web.v1.LogHistogramSnapshot.displayName = 'proto.gateway.web.v1.LogHistogramSnapshot';
191
+ }
192
+ /**
193
+ * Generated by JsPbCodeGenerator.
194
+ * @param {Array=} opt_data Optional initial data array, typically from a
195
+ * server response, or constructed directly in Javascript. The array is used
196
+ * in place and becomes part of the constructed object. It is not cloned.
197
+ * If no data is provided, the constructed object will be empty, but still
198
+ * valid.
199
+ * @extends {jspb.Message}
200
+ * @constructor
201
+ */
202
+ proto.gateway.web.v1.LogHistogramBucket = function(opt_data) {
203
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
204
+ };
205
+ goog.inherits(proto.gateway.web.v1.LogHistogramBucket, jspb.Message);
206
+ if (goog.DEBUG && !COMPILED) {
207
+ /**
208
+ * @public
209
+ * @override
210
+ */
211
+ proto.gateway.web.v1.LogHistogramBucket.displayName = 'proto.gateway.web.v1.LogHistogramBucket';
212
+ }
213
+ /**
214
+ * Generated by JsPbCodeGenerator.
215
+ * @param {Array=} opt_data Optional initial data array, typically from a
216
+ * server response, or constructed directly in Javascript. The array is used
217
+ * in place and becomes part of the constructed object. It is not cloned.
218
+ * If no data is provided, the constructed object will be empty, but still
219
+ * valid.
220
+ * @extends {jspb.Message}
221
+ * @constructor
222
+ */
223
+ proto.gateway.web.v1.StreamLogAttributesRequest = function(opt_data) {
224
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
225
+ };
226
+ goog.inherits(proto.gateway.web.v1.StreamLogAttributesRequest, jspb.Message);
227
+ if (goog.DEBUG && !COMPILED) {
228
+ /**
229
+ * @public
230
+ * @override
231
+ */
232
+ proto.gateway.web.v1.StreamLogAttributesRequest.displayName = 'proto.gateway.web.v1.StreamLogAttributesRequest';
233
+ }
234
+ /**
235
+ * Generated by JsPbCodeGenerator.
236
+ * @param {Array=} opt_data Optional initial data array, typically from a
237
+ * server response, or constructed directly in Javascript. The array is used
238
+ * in place and becomes part of the constructed object. It is not cloned.
239
+ * If no data is provided, the constructed object will be empty, but still
240
+ * valid.
241
+ * @extends {jspb.Message}
242
+ * @constructor
243
+ */
244
+ proto.gateway.web.v1.LogAttributeEnvelope = function(opt_data) {
245
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gateway.web.v1.LogAttributeEnvelope.oneofGroups_);
246
+ };
247
+ goog.inherits(proto.gateway.web.v1.LogAttributeEnvelope, jspb.Message);
248
+ if (goog.DEBUG && !COMPILED) {
249
+ /**
250
+ * @public
251
+ * @override
252
+ */
253
+ proto.gateway.web.v1.LogAttributeEnvelope.displayName = 'proto.gateway.web.v1.LogAttributeEnvelope';
254
+ }
255
+ /**
256
+ * Generated by JsPbCodeGenerator.
257
+ * @param {Array=} opt_data Optional initial data array, typically from a
258
+ * server response, or constructed directly in Javascript. The array is used
259
+ * in place and becomes part of the constructed object. It is not cloned.
260
+ * If no data is provided, the constructed object will be empty, but still
261
+ * valid.
262
+ * @extends {jspb.Message}
263
+ * @constructor
264
+ */
265
+ proto.gateway.web.v1.LogAttributeSnapshot = function(opt_data) {
266
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.LogAttributeSnapshot.repeatedFields_, null);
267
+ };
268
+ goog.inherits(proto.gateway.web.v1.LogAttributeSnapshot, jspb.Message);
269
+ if (goog.DEBUG && !COMPILED) {
270
+ /**
271
+ * @public
272
+ * @override
273
+ */
274
+ proto.gateway.web.v1.LogAttributeSnapshot.displayName = 'proto.gateway.web.v1.LogAttributeSnapshot';
275
+ }
276
+ /**
277
+ * Generated by JsPbCodeGenerator.
278
+ * @param {Array=} opt_data Optional initial data array, typically from a
279
+ * server response, or constructed directly in Javascript. The array is used
280
+ * in place and becomes part of the constructed object. It is not cloned.
281
+ * If no data is provided, the constructed object will be empty, but still
282
+ * valid.
283
+ * @extends {jspb.Message}
284
+ * @constructor
285
+ */
286
+ proto.gateway.web.v1.LogAttribute = function(opt_data) {
287
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.LogAttribute.repeatedFields_, null);
288
+ };
289
+ goog.inherits(proto.gateway.web.v1.LogAttribute, jspb.Message);
290
+ if (goog.DEBUG && !COMPILED) {
291
+ /**
292
+ * @public
293
+ * @override
294
+ */
295
+ proto.gateway.web.v1.LogAttribute.displayName = 'proto.gateway.web.v1.LogAttribute';
296
+ }
297
+
298
+
299
+
300
+ if (jspb.Message.GENERATE_TO_OBJECT) {
301
+ /**
302
+ * Creates an object representation of this proto.
303
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
304
+ * Optional fields that are not set will be set to undefined.
305
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
306
+ * For the list of reserved names please see:
307
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
308
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
309
+ * JSPB instance for transitional soy proto support:
310
+ * http://goto/soy-param-migration
311
+ * @return {!Object}
312
+ */
313
+ proto.gateway.web.v1.StreamLogsRequest.prototype.toObject = function(opt_includeInstance) {
314
+ return proto.gateway.web.v1.StreamLogsRequest.toObject(opt_includeInstance, this);
315
+ };
316
+
317
+
318
+ /**
319
+ * Static version of the {@see toObject} method.
320
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
321
+ * the JSPB instance for transitional soy proto support:
322
+ * http://goto/soy-param-migration
323
+ * @param {!proto.gateway.web.v1.StreamLogsRequest} msg The msg instance to transform.
324
+ * @return {!Object}
325
+ * @suppress {unusedLocalVariables} f is only used for nested messages
326
+ */
327
+ proto.gateway.web.v1.StreamLogsRequest.toObject = function(includeInstance, msg) {
328
+ var f, obj = {
329
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
330
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
331
+ filter: jspb.Message.getFieldWithDefault(msg, 3, ""),
332
+ timeRange: (f = msg.getTimeRange()) && proto_gateway_web_v1_metric_gateway_pb.TimeRange.toObject(includeInstance, f),
333
+ limit: jspb.Message.getFieldWithDefault(msg, 5, 0)
334
+ };
335
+
336
+ if (includeInstance) {
337
+ obj.$jspbMessageInstance = msg;
338
+ }
339
+ return obj;
340
+ };
341
+ }
342
+
343
+
344
+ /**
345
+ * Deserializes binary data (in protobuf wire format).
346
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
347
+ * @return {!proto.gateway.web.v1.StreamLogsRequest}
348
+ */
349
+ proto.gateway.web.v1.StreamLogsRequest.deserializeBinary = function(bytes) {
350
+ var reader = new jspb.BinaryReader(bytes);
351
+ var msg = new proto.gateway.web.v1.StreamLogsRequest;
352
+ return proto.gateway.web.v1.StreamLogsRequest.deserializeBinaryFromReader(msg, reader);
353
+ };
354
+
355
+
356
+ /**
357
+ * Deserializes binary data (in protobuf wire format) from the
358
+ * given reader into the given message object.
359
+ * @param {!proto.gateway.web.v1.StreamLogsRequest} msg The message object to deserialize into.
360
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
361
+ * @return {!proto.gateway.web.v1.StreamLogsRequest}
362
+ */
363
+ proto.gateway.web.v1.StreamLogsRequest.deserializeBinaryFromReader = function(msg, reader) {
364
+ while (reader.nextField()) {
365
+ if (reader.isEndGroup()) {
366
+ break;
367
+ }
368
+ var field = reader.getFieldNumber();
369
+ switch (field) {
370
+ case 1:
371
+ var value = /** @type {string} */ (reader.readString());
372
+ msg.setOrganizationId(value);
373
+ break;
374
+ case 2:
375
+ var value = /** @type {string} */ (reader.readString());
376
+ msg.setProjectId(value);
377
+ break;
378
+ case 3:
379
+ var value = /** @type {string} */ (reader.readString());
380
+ msg.setFilter(value);
381
+ break;
382
+ case 4:
383
+ var value = new proto_gateway_web_v1_metric_gateway_pb.TimeRange;
384
+ reader.readMessage(value,proto_gateway_web_v1_metric_gateway_pb.TimeRange.deserializeBinaryFromReader);
385
+ msg.setTimeRange(value);
386
+ break;
387
+ case 5:
388
+ var value = /** @type {number} */ (reader.readInt32());
389
+ msg.setLimit(value);
390
+ break;
391
+ default:
392
+ reader.skipField();
393
+ break;
394
+ }
395
+ }
396
+ return msg;
397
+ };
398
+
399
+
400
+ /**
401
+ * Serializes the message to binary data (in protobuf wire format).
402
+ * @return {!Uint8Array}
403
+ */
404
+ proto.gateway.web.v1.StreamLogsRequest.prototype.serializeBinary = function() {
405
+ var writer = new jspb.BinaryWriter();
406
+ proto.gateway.web.v1.StreamLogsRequest.serializeBinaryToWriter(this, writer);
407
+ return writer.getResultBuffer();
408
+ };
409
+
410
+
411
+ /**
412
+ * Serializes the given message to binary data (in protobuf wire
413
+ * format), writing to the given BinaryWriter.
414
+ * @param {!proto.gateway.web.v1.StreamLogsRequest} message
415
+ * @param {!jspb.BinaryWriter} writer
416
+ * @suppress {unusedLocalVariables} f is only used for nested messages
417
+ */
418
+ proto.gateway.web.v1.StreamLogsRequest.serializeBinaryToWriter = function(message, writer) {
419
+ var f = undefined;
420
+ f = message.getOrganizationId();
421
+ if (f.length > 0) {
422
+ writer.writeString(
423
+ 1,
424
+ f
425
+ );
426
+ }
427
+ f = message.getProjectId();
428
+ if (f.length > 0) {
429
+ writer.writeString(
430
+ 2,
431
+ f
432
+ );
433
+ }
434
+ f = message.getFilter();
435
+ if (f.length > 0) {
436
+ writer.writeString(
437
+ 3,
438
+ f
439
+ );
440
+ }
441
+ f = message.getTimeRange();
442
+ if (f != null) {
443
+ writer.writeMessage(
444
+ 4,
445
+ f,
446
+ proto_gateway_web_v1_metric_gateway_pb.TimeRange.serializeBinaryToWriter
447
+ );
448
+ }
449
+ f = message.getLimit();
450
+ if (f !== 0) {
451
+ writer.writeInt32(
452
+ 5,
453
+ f
454
+ );
455
+ }
456
+ };
457
+
458
+
459
+ /**
460
+ * optional string organization_id = 1;
461
+ * @return {string}
462
+ */
463
+ proto.gateway.web.v1.StreamLogsRequest.prototype.getOrganizationId = function() {
464
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
465
+ };
466
+
467
+
468
+ /**
469
+ * @param {string} value
470
+ * @return {!proto.gateway.web.v1.StreamLogsRequest} returns this
471
+ */
472
+ proto.gateway.web.v1.StreamLogsRequest.prototype.setOrganizationId = function(value) {
473
+ return jspb.Message.setProto3StringField(this, 1, value);
474
+ };
475
+
476
+
477
+ /**
478
+ * optional string project_id = 2;
479
+ * @return {string}
480
+ */
481
+ proto.gateway.web.v1.StreamLogsRequest.prototype.getProjectId = function() {
482
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
483
+ };
484
+
485
+
486
+ /**
487
+ * @param {string} value
488
+ * @return {!proto.gateway.web.v1.StreamLogsRequest} returns this
489
+ */
490
+ proto.gateway.web.v1.StreamLogsRequest.prototype.setProjectId = function(value) {
491
+ return jspb.Message.setProto3StringField(this, 2, value);
492
+ };
493
+
494
+
495
+ /**
496
+ * optional string filter = 3;
497
+ * @return {string}
498
+ */
499
+ proto.gateway.web.v1.StreamLogsRequest.prototype.getFilter = function() {
500
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
501
+ };
502
+
503
+
504
+ /**
505
+ * @param {string} value
506
+ * @return {!proto.gateway.web.v1.StreamLogsRequest} returns this
507
+ */
508
+ proto.gateway.web.v1.StreamLogsRequest.prototype.setFilter = function(value) {
509
+ return jspb.Message.setProto3StringField(this, 3, value);
510
+ };
511
+
512
+
513
+ /**
514
+ * optional TimeRange time_range = 4;
515
+ * @return {?proto.gateway.web.v1.TimeRange}
516
+ */
517
+ proto.gateway.web.v1.StreamLogsRequest.prototype.getTimeRange = function() {
518
+ return /** @type{?proto.gateway.web.v1.TimeRange} */ (
519
+ jspb.Message.getWrapperField(this, proto_gateway_web_v1_metric_gateway_pb.TimeRange, 4));
520
+ };
521
+
522
+
523
+ /**
524
+ * @param {?proto.gateway.web.v1.TimeRange|undefined} value
525
+ * @return {!proto.gateway.web.v1.StreamLogsRequest} returns this
526
+ */
527
+ proto.gateway.web.v1.StreamLogsRequest.prototype.setTimeRange = function(value) {
528
+ return jspb.Message.setWrapperField(this, 4, value);
529
+ };
530
+
531
+
532
+ /**
533
+ * Clears the message field making it undefined.
534
+ * @return {!proto.gateway.web.v1.StreamLogsRequest} returns this
535
+ */
536
+ proto.gateway.web.v1.StreamLogsRequest.prototype.clearTimeRange = function() {
537
+ return this.setTimeRange(undefined);
538
+ };
539
+
540
+
541
+ /**
542
+ * Returns whether this field is set.
543
+ * @return {boolean}
544
+ */
545
+ proto.gateway.web.v1.StreamLogsRequest.prototype.hasTimeRange = function() {
546
+ return jspb.Message.getField(this, 4) != null;
547
+ };
548
+
549
+
550
+ /**
551
+ * optional int32 limit = 5;
552
+ * @return {number}
553
+ */
554
+ proto.gateway.web.v1.StreamLogsRequest.prototype.getLimit = function() {
555
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
556
+ };
557
+
558
+
559
+ /**
560
+ * @param {number} value
561
+ * @return {!proto.gateway.web.v1.StreamLogsRequest} returns this
562
+ */
563
+ proto.gateway.web.v1.StreamLogsRequest.prototype.setLimit = function(value) {
564
+ return jspb.Message.setProto3IntField(this, 5, value);
565
+ };
566
+
567
+
568
+
569
+ /**
570
+ * Oneof group definitions for this message. Each group defines the field
571
+ * numbers belonging to that group. When of these fields' value is set, all
572
+ * other fields in the group are cleared. During deserialization, if multiple
573
+ * fields are encountered for a group, only the last value seen will be kept.
574
+ * @private {!Array<!Array<number>>}
575
+ * @const
576
+ */
577
+ proto.gateway.web.v1.LogDataEnvelope.oneofGroups_ = [[1,2]];
578
+
579
+ /**
580
+ * @enum {number}
581
+ */
582
+ proto.gateway.web.v1.LogDataEnvelope.EventCase = {
583
+ EVENT_NOT_SET: 0,
584
+ SNAPSHOT: 1,
585
+ APPENDED: 2
586
+ };
587
+
588
+ /**
589
+ * @return {proto.gateway.web.v1.LogDataEnvelope.EventCase}
590
+ */
591
+ proto.gateway.web.v1.LogDataEnvelope.prototype.getEventCase = function() {
592
+ return /** @type {proto.gateway.web.v1.LogDataEnvelope.EventCase} */(jspb.Message.computeOneofCase(this, proto.gateway.web.v1.LogDataEnvelope.oneofGroups_[0]));
593
+ };
594
+
595
+
596
+
597
+ if (jspb.Message.GENERATE_TO_OBJECT) {
598
+ /**
599
+ * Creates an object representation of this proto.
600
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
601
+ * Optional fields that are not set will be set to undefined.
602
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
603
+ * For the list of reserved names please see:
604
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
605
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
606
+ * JSPB instance for transitional soy proto support:
607
+ * http://goto/soy-param-migration
608
+ * @return {!Object}
609
+ */
610
+ proto.gateway.web.v1.LogDataEnvelope.prototype.toObject = function(opt_includeInstance) {
611
+ return proto.gateway.web.v1.LogDataEnvelope.toObject(opt_includeInstance, this);
612
+ };
613
+
614
+
615
+ /**
616
+ * Static version of the {@see toObject} method.
617
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
618
+ * the JSPB instance for transitional soy proto support:
619
+ * http://goto/soy-param-migration
620
+ * @param {!proto.gateway.web.v1.LogDataEnvelope} msg The msg instance to transform.
621
+ * @return {!Object}
622
+ * @suppress {unusedLocalVariables} f is only used for nested messages
623
+ */
624
+ proto.gateway.web.v1.LogDataEnvelope.toObject = function(includeInstance, msg) {
625
+ var f, obj = {
626
+ snapshot: (f = msg.getSnapshot()) && proto.gateway.web.v1.LogSnapshot.toObject(includeInstance, f),
627
+ appended: (f = msg.getAppended()) && proto.gateway.web.v1.LogEntry.toObject(includeInstance, f)
628
+ };
629
+
630
+ if (includeInstance) {
631
+ obj.$jspbMessageInstance = msg;
632
+ }
633
+ return obj;
634
+ };
635
+ }
636
+
637
+
638
+ /**
639
+ * Deserializes binary data (in protobuf wire format).
640
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
641
+ * @return {!proto.gateway.web.v1.LogDataEnvelope}
642
+ */
643
+ proto.gateway.web.v1.LogDataEnvelope.deserializeBinary = function(bytes) {
644
+ var reader = new jspb.BinaryReader(bytes);
645
+ var msg = new proto.gateway.web.v1.LogDataEnvelope;
646
+ return proto.gateway.web.v1.LogDataEnvelope.deserializeBinaryFromReader(msg, reader);
647
+ };
648
+
649
+
650
+ /**
651
+ * Deserializes binary data (in protobuf wire format) from the
652
+ * given reader into the given message object.
653
+ * @param {!proto.gateway.web.v1.LogDataEnvelope} msg The message object to deserialize into.
654
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
655
+ * @return {!proto.gateway.web.v1.LogDataEnvelope}
656
+ */
657
+ proto.gateway.web.v1.LogDataEnvelope.deserializeBinaryFromReader = function(msg, reader) {
658
+ while (reader.nextField()) {
659
+ if (reader.isEndGroup()) {
660
+ break;
661
+ }
662
+ var field = reader.getFieldNumber();
663
+ switch (field) {
664
+ case 1:
665
+ var value = new proto.gateway.web.v1.LogSnapshot;
666
+ reader.readMessage(value,proto.gateway.web.v1.LogSnapshot.deserializeBinaryFromReader);
667
+ msg.setSnapshot(value);
668
+ break;
669
+ case 2:
670
+ var value = new proto.gateway.web.v1.LogEntry;
671
+ reader.readMessage(value,proto.gateway.web.v1.LogEntry.deserializeBinaryFromReader);
672
+ msg.setAppended(value);
673
+ break;
674
+ default:
675
+ reader.skipField();
676
+ break;
677
+ }
678
+ }
679
+ return msg;
680
+ };
681
+
682
+
683
+ /**
684
+ * Serializes the message to binary data (in protobuf wire format).
685
+ * @return {!Uint8Array}
686
+ */
687
+ proto.gateway.web.v1.LogDataEnvelope.prototype.serializeBinary = function() {
688
+ var writer = new jspb.BinaryWriter();
689
+ proto.gateway.web.v1.LogDataEnvelope.serializeBinaryToWriter(this, writer);
690
+ return writer.getResultBuffer();
691
+ };
692
+
693
+
694
+ /**
695
+ * Serializes the given message to binary data (in protobuf wire
696
+ * format), writing to the given BinaryWriter.
697
+ * @param {!proto.gateway.web.v1.LogDataEnvelope} message
698
+ * @param {!jspb.BinaryWriter} writer
699
+ * @suppress {unusedLocalVariables} f is only used for nested messages
700
+ */
701
+ proto.gateway.web.v1.LogDataEnvelope.serializeBinaryToWriter = function(message, writer) {
702
+ var f = undefined;
703
+ f = message.getSnapshot();
704
+ if (f != null) {
705
+ writer.writeMessage(
706
+ 1,
707
+ f,
708
+ proto.gateway.web.v1.LogSnapshot.serializeBinaryToWriter
709
+ );
710
+ }
711
+ f = message.getAppended();
712
+ if (f != null) {
713
+ writer.writeMessage(
714
+ 2,
715
+ f,
716
+ proto.gateway.web.v1.LogEntry.serializeBinaryToWriter
717
+ );
718
+ }
719
+ };
720
+
721
+
722
+ /**
723
+ * optional LogSnapshot snapshot = 1;
724
+ * @return {?proto.gateway.web.v1.LogSnapshot}
725
+ */
726
+ proto.gateway.web.v1.LogDataEnvelope.prototype.getSnapshot = function() {
727
+ return /** @type{?proto.gateway.web.v1.LogSnapshot} */ (
728
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.LogSnapshot, 1));
729
+ };
730
+
731
+
732
+ /**
733
+ * @param {?proto.gateway.web.v1.LogSnapshot|undefined} value
734
+ * @return {!proto.gateway.web.v1.LogDataEnvelope} returns this
735
+ */
736
+ proto.gateway.web.v1.LogDataEnvelope.prototype.setSnapshot = function(value) {
737
+ return jspb.Message.setOneofWrapperField(this, 1, proto.gateway.web.v1.LogDataEnvelope.oneofGroups_[0], value);
738
+ };
739
+
740
+
741
+ /**
742
+ * Clears the message field making it undefined.
743
+ * @return {!proto.gateway.web.v1.LogDataEnvelope} returns this
744
+ */
745
+ proto.gateway.web.v1.LogDataEnvelope.prototype.clearSnapshot = function() {
746
+ return this.setSnapshot(undefined);
747
+ };
748
+
749
+
750
+ /**
751
+ * Returns whether this field is set.
752
+ * @return {boolean}
753
+ */
754
+ proto.gateway.web.v1.LogDataEnvelope.prototype.hasSnapshot = function() {
755
+ return jspb.Message.getField(this, 1) != null;
756
+ };
757
+
758
+
759
+ /**
760
+ * optional LogEntry appended = 2;
761
+ * @return {?proto.gateway.web.v1.LogEntry}
762
+ */
763
+ proto.gateway.web.v1.LogDataEnvelope.prototype.getAppended = function() {
764
+ return /** @type{?proto.gateway.web.v1.LogEntry} */ (
765
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.LogEntry, 2));
766
+ };
767
+
768
+
769
+ /**
770
+ * @param {?proto.gateway.web.v1.LogEntry|undefined} value
771
+ * @return {!proto.gateway.web.v1.LogDataEnvelope} returns this
772
+ */
773
+ proto.gateway.web.v1.LogDataEnvelope.prototype.setAppended = function(value) {
774
+ return jspb.Message.setOneofWrapperField(this, 2, proto.gateway.web.v1.LogDataEnvelope.oneofGroups_[0], value);
775
+ };
776
+
777
+
778
+ /**
779
+ * Clears the message field making it undefined.
780
+ * @return {!proto.gateway.web.v1.LogDataEnvelope} returns this
781
+ */
782
+ proto.gateway.web.v1.LogDataEnvelope.prototype.clearAppended = function() {
783
+ return this.setAppended(undefined);
784
+ };
785
+
786
+
787
+ /**
788
+ * Returns whether this field is set.
789
+ * @return {boolean}
790
+ */
791
+ proto.gateway.web.v1.LogDataEnvelope.prototype.hasAppended = function() {
792
+ return jspb.Message.getField(this, 2) != null;
793
+ };
794
+
795
+
796
+
797
+ /**
798
+ * List of repeated fields within this message type.
799
+ * @private {!Array<number>}
800
+ * @const
801
+ */
802
+ proto.gateway.web.v1.LogSnapshot.repeatedFields_ = [1];
803
+
804
+
805
+
806
+ if (jspb.Message.GENERATE_TO_OBJECT) {
807
+ /**
808
+ * Creates an object representation of this proto.
809
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
810
+ * Optional fields that are not set will be set to undefined.
811
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
812
+ * For the list of reserved names please see:
813
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
814
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
815
+ * JSPB instance for transitional soy proto support:
816
+ * http://goto/soy-param-migration
817
+ * @return {!Object}
818
+ */
819
+ proto.gateway.web.v1.LogSnapshot.prototype.toObject = function(opt_includeInstance) {
820
+ return proto.gateway.web.v1.LogSnapshot.toObject(opt_includeInstance, this);
821
+ };
822
+
823
+
824
+ /**
825
+ * Static version of the {@see toObject} method.
826
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
827
+ * the JSPB instance for transitional soy proto support:
828
+ * http://goto/soy-param-migration
829
+ * @param {!proto.gateway.web.v1.LogSnapshot} msg The msg instance to transform.
830
+ * @return {!Object}
831
+ * @suppress {unusedLocalVariables} f is only used for nested messages
832
+ */
833
+ proto.gateway.web.v1.LogSnapshot.toObject = function(includeInstance, msg) {
834
+ var f, obj = {
835
+ recordsList: jspb.Message.toObjectList(msg.getRecordsList(),
836
+ proto.gateway.web.v1.LogEntry.toObject, includeInstance),
837
+ rangeStart: (f = msg.getRangeStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
838
+ rangeEnd: (f = msg.getRangeEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
839
+ };
840
+
841
+ if (includeInstance) {
842
+ obj.$jspbMessageInstance = msg;
843
+ }
844
+ return obj;
845
+ };
846
+ }
847
+
848
+
849
+ /**
850
+ * Deserializes binary data (in protobuf wire format).
851
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
852
+ * @return {!proto.gateway.web.v1.LogSnapshot}
853
+ */
854
+ proto.gateway.web.v1.LogSnapshot.deserializeBinary = function(bytes) {
855
+ var reader = new jspb.BinaryReader(bytes);
856
+ var msg = new proto.gateway.web.v1.LogSnapshot;
857
+ return proto.gateway.web.v1.LogSnapshot.deserializeBinaryFromReader(msg, reader);
858
+ };
859
+
860
+
861
+ /**
862
+ * Deserializes binary data (in protobuf wire format) from the
863
+ * given reader into the given message object.
864
+ * @param {!proto.gateway.web.v1.LogSnapshot} msg The message object to deserialize into.
865
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
866
+ * @return {!proto.gateway.web.v1.LogSnapshot}
867
+ */
868
+ proto.gateway.web.v1.LogSnapshot.deserializeBinaryFromReader = function(msg, reader) {
869
+ while (reader.nextField()) {
870
+ if (reader.isEndGroup()) {
871
+ break;
872
+ }
873
+ var field = reader.getFieldNumber();
874
+ switch (field) {
875
+ case 1:
876
+ var value = new proto.gateway.web.v1.LogEntry;
877
+ reader.readMessage(value,proto.gateway.web.v1.LogEntry.deserializeBinaryFromReader);
878
+ msg.addRecords(value);
879
+ break;
880
+ case 2:
881
+ var value = new google_protobuf_timestamp_pb.Timestamp;
882
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
883
+ msg.setRangeStart(value);
884
+ break;
885
+ case 3:
886
+ var value = new google_protobuf_timestamp_pb.Timestamp;
887
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
888
+ msg.setRangeEnd(value);
889
+ break;
890
+ default:
891
+ reader.skipField();
892
+ break;
893
+ }
894
+ }
895
+ return msg;
896
+ };
897
+
898
+
899
+ /**
900
+ * Serializes the message to binary data (in protobuf wire format).
901
+ * @return {!Uint8Array}
902
+ */
903
+ proto.gateway.web.v1.LogSnapshot.prototype.serializeBinary = function() {
904
+ var writer = new jspb.BinaryWriter();
905
+ proto.gateway.web.v1.LogSnapshot.serializeBinaryToWriter(this, writer);
906
+ return writer.getResultBuffer();
907
+ };
908
+
909
+
910
+ /**
911
+ * Serializes the given message to binary data (in protobuf wire
912
+ * format), writing to the given BinaryWriter.
913
+ * @param {!proto.gateway.web.v1.LogSnapshot} message
914
+ * @param {!jspb.BinaryWriter} writer
915
+ * @suppress {unusedLocalVariables} f is only used for nested messages
916
+ */
917
+ proto.gateway.web.v1.LogSnapshot.serializeBinaryToWriter = function(message, writer) {
918
+ var f = undefined;
919
+ f = message.getRecordsList();
920
+ if (f.length > 0) {
921
+ writer.writeRepeatedMessage(
922
+ 1,
923
+ f,
924
+ proto.gateway.web.v1.LogEntry.serializeBinaryToWriter
925
+ );
926
+ }
927
+ f = message.getRangeStart();
928
+ if (f != null) {
929
+ writer.writeMessage(
930
+ 2,
931
+ f,
932
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
933
+ );
934
+ }
935
+ f = message.getRangeEnd();
936
+ if (f != null) {
937
+ writer.writeMessage(
938
+ 3,
939
+ f,
940
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
941
+ );
942
+ }
943
+ };
944
+
945
+
946
+ /**
947
+ * repeated LogEntry records = 1;
948
+ * @return {!Array<!proto.gateway.web.v1.LogEntry>}
949
+ */
950
+ proto.gateway.web.v1.LogSnapshot.prototype.getRecordsList = function() {
951
+ return /** @type{!Array<!proto.gateway.web.v1.LogEntry>} */ (
952
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.LogEntry, 1));
953
+ };
954
+
955
+
956
+ /**
957
+ * @param {!Array<!proto.gateway.web.v1.LogEntry>} value
958
+ * @return {!proto.gateway.web.v1.LogSnapshot} returns this
959
+ */
960
+ proto.gateway.web.v1.LogSnapshot.prototype.setRecordsList = function(value) {
961
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
962
+ };
963
+
964
+
965
+ /**
966
+ * @param {!proto.gateway.web.v1.LogEntry=} opt_value
967
+ * @param {number=} opt_index
968
+ * @return {!proto.gateway.web.v1.LogEntry}
969
+ */
970
+ proto.gateway.web.v1.LogSnapshot.prototype.addRecords = function(opt_value, opt_index) {
971
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gateway.web.v1.LogEntry, opt_index);
972
+ };
973
+
974
+
975
+ /**
976
+ * Clears the list making it empty but non-null.
977
+ * @return {!proto.gateway.web.v1.LogSnapshot} returns this
978
+ */
979
+ proto.gateway.web.v1.LogSnapshot.prototype.clearRecordsList = function() {
980
+ return this.setRecordsList([]);
981
+ };
982
+
983
+
984
+ /**
985
+ * optional google.protobuf.Timestamp range_start = 2;
986
+ * @return {?proto.google.protobuf.Timestamp}
987
+ */
988
+ proto.gateway.web.v1.LogSnapshot.prototype.getRangeStart = function() {
989
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
990
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
991
+ };
992
+
993
+
994
+ /**
995
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
996
+ * @return {!proto.gateway.web.v1.LogSnapshot} returns this
997
+ */
998
+ proto.gateway.web.v1.LogSnapshot.prototype.setRangeStart = function(value) {
999
+ return jspb.Message.setWrapperField(this, 2, value);
1000
+ };
1001
+
1002
+
1003
+ /**
1004
+ * Clears the message field making it undefined.
1005
+ * @return {!proto.gateway.web.v1.LogSnapshot} returns this
1006
+ */
1007
+ proto.gateway.web.v1.LogSnapshot.prototype.clearRangeStart = function() {
1008
+ return this.setRangeStart(undefined);
1009
+ };
1010
+
1011
+
1012
+ /**
1013
+ * Returns whether this field is set.
1014
+ * @return {boolean}
1015
+ */
1016
+ proto.gateway.web.v1.LogSnapshot.prototype.hasRangeStart = function() {
1017
+ return jspb.Message.getField(this, 2) != null;
1018
+ };
1019
+
1020
+
1021
+ /**
1022
+ * optional google.protobuf.Timestamp range_end = 3;
1023
+ * @return {?proto.google.protobuf.Timestamp}
1024
+ */
1025
+ proto.gateway.web.v1.LogSnapshot.prototype.getRangeEnd = function() {
1026
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1027
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
1028
+ };
1029
+
1030
+
1031
+ /**
1032
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1033
+ * @return {!proto.gateway.web.v1.LogSnapshot} returns this
1034
+ */
1035
+ proto.gateway.web.v1.LogSnapshot.prototype.setRangeEnd = function(value) {
1036
+ return jspb.Message.setWrapperField(this, 3, value);
1037
+ };
1038
+
1039
+
1040
+ /**
1041
+ * Clears the message field making it undefined.
1042
+ * @return {!proto.gateway.web.v1.LogSnapshot} returns this
1043
+ */
1044
+ proto.gateway.web.v1.LogSnapshot.prototype.clearRangeEnd = function() {
1045
+ return this.setRangeEnd(undefined);
1046
+ };
1047
+
1048
+
1049
+ /**
1050
+ * Returns whether this field is set.
1051
+ * @return {boolean}
1052
+ */
1053
+ proto.gateway.web.v1.LogSnapshot.prototype.hasRangeEnd = function() {
1054
+ return jspb.Message.getField(this, 3) != null;
1055
+ };
1056
+
1057
+
1058
+
1059
+
1060
+
1061
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1062
+ /**
1063
+ * Creates an object representation of this proto.
1064
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1065
+ * Optional fields that are not set will be set to undefined.
1066
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1067
+ * For the list of reserved names please see:
1068
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1069
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1070
+ * JSPB instance for transitional soy proto support:
1071
+ * http://goto/soy-param-migration
1072
+ * @return {!Object}
1073
+ */
1074
+ proto.gateway.web.v1.LogEntry.prototype.toObject = function(opt_includeInstance) {
1075
+ return proto.gateway.web.v1.LogEntry.toObject(opt_includeInstance, this);
1076
+ };
1077
+
1078
+
1079
+ /**
1080
+ * Static version of the {@see toObject} method.
1081
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1082
+ * the JSPB instance for transitional soy proto support:
1083
+ * http://goto/soy-param-migration
1084
+ * @param {!proto.gateway.web.v1.LogEntry} msg The msg instance to transform.
1085
+ * @return {!Object}
1086
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1087
+ */
1088
+ proto.gateway.web.v1.LogEntry.toObject = function(includeInstance, msg) {
1089
+ var f, obj = {
1090
+ time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1091
+ severityNumber: jspb.Message.getFieldWithDefault(msg, 2, 0),
1092
+ severityText: jspb.Message.getFieldWithDefault(msg, 3, ""),
1093
+ serviceName: jspb.Message.getFieldWithDefault(msg, 4, ""),
1094
+ body: jspb.Message.getFieldWithDefault(msg, 5, ""),
1095
+ attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : [],
1096
+ resourceAttributesMap: (f = msg.getResourceAttributesMap()) ? f.toObject(includeInstance, undefined) : [],
1097
+ traceId: jspb.Message.getFieldWithDefault(msg, 8, ""),
1098
+ spanId: jspb.Message.getFieldWithDefault(msg, 9, ""),
1099
+ eventName: jspb.Message.getFieldWithDefault(msg, 10, ""),
1100
+ scopeName: jspb.Message.getFieldWithDefault(msg, 11, ""),
1101
+ scopeVersion: jspb.Message.getFieldWithDefault(msg, 12, "")
1102
+ };
1103
+
1104
+ if (includeInstance) {
1105
+ obj.$jspbMessageInstance = msg;
1106
+ }
1107
+ return obj;
1108
+ };
1109
+ }
1110
+
1111
+
1112
+ /**
1113
+ * Deserializes binary data (in protobuf wire format).
1114
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1115
+ * @return {!proto.gateway.web.v1.LogEntry}
1116
+ */
1117
+ proto.gateway.web.v1.LogEntry.deserializeBinary = function(bytes) {
1118
+ var reader = new jspb.BinaryReader(bytes);
1119
+ var msg = new proto.gateway.web.v1.LogEntry;
1120
+ return proto.gateway.web.v1.LogEntry.deserializeBinaryFromReader(msg, reader);
1121
+ };
1122
+
1123
+
1124
+ /**
1125
+ * Deserializes binary data (in protobuf wire format) from the
1126
+ * given reader into the given message object.
1127
+ * @param {!proto.gateway.web.v1.LogEntry} msg The message object to deserialize into.
1128
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1129
+ * @return {!proto.gateway.web.v1.LogEntry}
1130
+ */
1131
+ proto.gateway.web.v1.LogEntry.deserializeBinaryFromReader = function(msg, reader) {
1132
+ while (reader.nextField()) {
1133
+ if (reader.isEndGroup()) {
1134
+ break;
1135
+ }
1136
+ var field = reader.getFieldNumber();
1137
+ switch (field) {
1138
+ case 1:
1139
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1140
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1141
+ msg.setTime(value);
1142
+ break;
1143
+ case 2:
1144
+ var value = /** @type {number} */ (reader.readUint32());
1145
+ msg.setSeverityNumber(value);
1146
+ break;
1147
+ case 3:
1148
+ var value = /** @type {string} */ (reader.readString());
1149
+ msg.setSeverityText(value);
1150
+ break;
1151
+ case 4:
1152
+ var value = /** @type {string} */ (reader.readString());
1153
+ msg.setServiceName(value);
1154
+ break;
1155
+ case 5:
1156
+ var value = /** @type {string} */ (reader.readString());
1157
+ msg.setBody(value);
1158
+ break;
1159
+ case 6:
1160
+ var value = msg.getAttributesMap();
1161
+ reader.readMessage(value, function(message, reader) {
1162
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
1163
+ });
1164
+ break;
1165
+ case 7:
1166
+ var value = msg.getResourceAttributesMap();
1167
+ reader.readMessage(value, function(message, reader) {
1168
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
1169
+ });
1170
+ break;
1171
+ case 8:
1172
+ var value = /** @type {string} */ (reader.readString());
1173
+ msg.setTraceId(value);
1174
+ break;
1175
+ case 9:
1176
+ var value = /** @type {string} */ (reader.readString());
1177
+ msg.setSpanId(value);
1178
+ break;
1179
+ case 10:
1180
+ var value = /** @type {string} */ (reader.readString());
1181
+ msg.setEventName(value);
1182
+ break;
1183
+ case 11:
1184
+ var value = /** @type {string} */ (reader.readString());
1185
+ msg.setScopeName(value);
1186
+ break;
1187
+ case 12:
1188
+ var value = /** @type {string} */ (reader.readString());
1189
+ msg.setScopeVersion(value);
1190
+ break;
1191
+ default:
1192
+ reader.skipField();
1193
+ break;
1194
+ }
1195
+ }
1196
+ return msg;
1197
+ };
1198
+
1199
+
1200
+ /**
1201
+ * Serializes the message to binary data (in protobuf wire format).
1202
+ * @return {!Uint8Array}
1203
+ */
1204
+ proto.gateway.web.v1.LogEntry.prototype.serializeBinary = function() {
1205
+ var writer = new jspb.BinaryWriter();
1206
+ proto.gateway.web.v1.LogEntry.serializeBinaryToWriter(this, writer);
1207
+ return writer.getResultBuffer();
1208
+ };
1209
+
1210
+
1211
+ /**
1212
+ * Serializes the given message to binary data (in protobuf wire
1213
+ * format), writing to the given BinaryWriter.
1214
+ * @param {!proto.gateway.web.v1.LogEntry} message
1215
+ * @param {!jspb.BinaryWriter} writer
1216
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1217
+ */
1218
+ proto.gateway.web.v1.LogEntry.serializeBinaryToWriter = function(message, writer) {
1219
+ var f = undefined;
1220
+ f = message.getTime();
1221
+ if (f != null) {
1222
+ writer.writeMessage(
1223
+ 1,
1224
+ f,
1225
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1226
+ );
1227
+ }
1228
+ f = message.getSeverityNumber();
1229
+ if (f !== 0) {
1230
+ writer.writeUint32(
1231
+ 2,
1232
+ f
1233
+ );
1234
+ }
1235
+ f = message.getSeverityText();
1236
+ if (f.length > 0) {
1237
+ writer.writeString(
1238
+ 3,
1239
+ f
1240
+ );
1241
+ }
1242
+ f = message.getServiceName();
1243
+ if (f.length > 0) {
1244
+ writer.writeString(
1245
+ 4,
1246
+ f
1247
+ );
1248
+ }
1249
+ f = message.getBody();
1250
+ if (f.length > 0) {
1251
+ writer.writeString(
1252
+ 5,
1253
+ f
1254
+ );
1255
+ }
1256
+ f = message.getAttributesMap(true);
1257
+ if (f && f.getLength() > 0) {
1258
+ f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
1259
+ }
1260
+ f = message.getResourceAttributesMap(true);
1261
+ if (f && f.getLength() > 0) {
1262
+ f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
1263
+ }
1264
+ f = message.getTraceId();
1265
+ if (f.length > 0) {
1266
+ writer.writeString(
1267
+ 8,
1268
+ f
1269
+ );
1270
+ }
1271
+ f = message.getSpanId();
1272
+ if (f.length > 0) {
1273
+ writer.writeString(
1274
+ 9,
1275
+ f
1276
+ );
1277
+ }
1278
+ f = message.getEventName();
1279
+ if (f.length > 0) {
1280
+ writer.writeString(
1281
+ 10,
1282
+ f
1283
+ );
1284
+ }
1285
+ f = message.getScopeName();
1286
+ if (f.length > 0) {
1287
+ writer.writeString(
1288
+ 11,
1289
+ f
1290
+ );
1291
+ }
1292
+ f = message.getScopeVersion();
1293
+ if (f.length > 0) {
1294
+ writer.writeString(
1295
+ 12,
1296
+ f
1297
+ );
1298
+ }
1299
+ };
1300
+
1301
+
1302
+ /**
1303
+ * optional google.protobuf.Timestamp time = 1;
1304
+ * @return {?proto.google.protobuf.Timestamp}
1305
+ */
1306
+ proto.gateway.web.v1.LogEntry.prototype.getTime = function() {
1307
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1308
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
1309
+ };
1310
+
1311
+
1312
+ /**
1313
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1314
+ * @return {!proto.gateway.web.v1.LogEntry} returns this
1315
+ */
1316
+ proto.gateway.web.v1.LogEntry.prototype.setTime = function(value) {
1317
+ return jspb.Message.setWrapperField(this, 1, value);
1318
+ };
1319
+
1320
+
1321
+ /**
1322
+ * Clears the message field making it undefined.
1323
+ * @return {!proto.gateway.web.v1.LogEntry} returns this
1324
+ */
1325
+ proto.gateway.web.v1.LogEntry.prototype.clearTime = function() {
1326
+ return this.setTime(undefined);
1327
+ };
1328
+
1329
+
1330
+ /**
1331
+ * Returns whether this field is set.
1332
+ * @return {boolean}
1333
+ */
1334
+ proto.gateway.web.v1.LogEntry.prototype.hasTime = function() {
1335
+ return jspb.Message.getField(this, 1) != null;
1336
+ };
1337
+
1338
+
1339
+ /**
1340
+ * optional uint32 severity_number = 2;
1341
+ * @return {number}
1342
+ */
1343
+ proto.gateway.web.v1.LogEntry.prototype.getSeverityNumber = function() {
1344
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1345
+ };
1346
+
1347
+
1348
+ /**
1349
+ * @param {number} value
1350
+ * @return {!proto.gateway.web.v1.LogEntry} returns this
1351
+ */
1352
+ proto.gateway.web.v1.LogEntry.prototype.setSeverityNumber = function(value) {
1353
+ return jspb.Message.setProto3IntField(this, 2, value);
1354
+ };
1355
+
1356
+
1357
+ /**
1358
+ * optional string severity_text = 3;
1359
+ * @return {string}
1360
+ */
1361
+ proto.gateway.web.v1.LogEntry.prototype.getSeverityText = function() {
1362
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1363
+ };
1364
+
1365
+
1366
+ /**
1367
+ * @param {string} value
1368
+ * @return {!proto.gateway.web.v1.LogEntry} returns this
1369
+ */
1370
+ proto.gateway.web.v1.LogEntry.prototype.setSeverityText = function(value) {
1371
+ return jspb.Message.setProto3StringField(this, 3, value);
1372
+ };
1373
+
1374
+
1375
+ /**
1376
+ * optional string service_name = 4;
1377
+ * @return {string}
1378
+ */
1379
+ proto.gateway.web.v1.LogEntry.prototype.getServiceName = function() {
1380
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1381
+ };
1382
+
1383
+
1384
+ /**
1385
+ * @param {string} value
1386
+ * @return {!proto.gateway.web.v1.LogEntry} returns this
1387
+ */
1388
+ proto.gateway.web.v1.LogEntry.prototype.setServiceName = function(value) {
1389
+ return jspb.Message.setProto3StringField(this, 4, value);
1390
+ };
1391
+
1392
+
1393
+ /**
1394
+ * optional string body = 5;
1395
+ * @return {string}
1396
+ */
1397
+ proto.gateway.web.v1.LogEntry.prototype.getBody = function() {
1398
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1399
+ };
1400
+
1401
+
1402
+ /**
1403
+ * @param {string} value
1404
+ * @return {!proto.gateway.web.v1.LogEntry} returns this
1405
+ */
1406
+ proto.gateway.web.v1.LogEntry.prototype.setBody = function(value) {
1407
+ return jspb.Message.setProto3StringField(this, 5, value);
1408
+ };
1409
+
1410
+
1411
+ /**
1412
+ * map<string, string> attributes = 6;
1413
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
1414
+ * empty, instead returning `undefined`
1415
+ * @return {!jspb.Map<string,string>}
1416
+ */
1417
+ proto.gateway.web.v1.LogEntry.prototype.getAttributesMap = function(opt_noLazyCreate) {
1418
+ return /** @type {!jspb.Map<string,string>} */ (
1419
+ jspb.Message.getMapField(this, 6, opt_noLazyCreate,
1420
+ null));
1421
+ };
1422
+
1423
+
1424
+ /**
1425
+ * Clears values from the map. The map will be non-null.
1426
+ * @return {!proto.gateway.web.v1.LogEntry} returns this
1427
+ */
1428
+ proto.gateway.web.v1.LogEntry.prototype.clearAttributesMap = function() {
1429
+ this.getAttributesMap().clear();
1430
+ return this;
1431
+ };
1432
+
1433
+
1434
+ /**
1435
+ * map<string, string> resource_attributes = 7;
1436
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
1437
+ * empty, instead returning `undefined`
1438
+ * @return {!jspb.Map<string,string>}
1439
+ */
1440
+ proto.gateway.web.v1.LogEntry.prototype.getResourceAttributesMap = function(opt_noLazyCreate) {
1441
+ return /** @type {!jspb.Map<string,string>} */ (
1442
+ jspb.Message.getMapField(this, 7, opt_noLazyCreate,
1443
+ null));
1444
+ };
1445
+
1446
+
1447
+ /**
1448
+ * Clears values from the map. The map will be non-null.
1449
+ * @return {!proto.gateway.web.v1.LogEntry} returns this
1450
+ */
1451
+ proto.gateway.web.v1.LogEntry.prototype.clearResourceAttributesMap = function() {
1452
+ this.getResourceAttributesMap().clear();
1453
+ return this;
1454
+ };
1455
+
1456
+
1457
+ /**
1458
+ * optional string trace_id = 8;
1459
+ * @return {string}
1460
+ */
1461
+ proto.gateway.web.v1.LogEntry.prototype.getTraceId = function() {
1462
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1463
+ };
1464
+
1465
+
1466
+ /**
1467
+ * @param {string} value
1468
+ * @return {!proto.gateway.web.v1.LogEntry} returns this
1469
+ */
1470
+ proto.gateway.web.v1.LogEntry.prototype.setTraceId = function(value) {
1471
+ return jspb.Message.setProto3StringField(this, 8, value);
1472
+ };
1473
+
1474
+
1475
+ /**
1476
+ * optional string span_id = 9;
1477
+ * @return {string}
1478
+ */
1479
+ proto.gateway.web.v1.LogEntry.prototype.getSpanId = function() {
1480
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1481
+ };
1482
+
1483
+
1484
+ /**
1485
+ * @param {string} value
1486
+ * @return {!proto.gateway.web.v1.LogEntry} returns this
1487
+ */
1488
+ proto.gateway.web.v1.LogEntry.prototype.setSpanId = function(value) {
1489
+ return jspb.Message.setProto3StringField(this, 9, value);
1490
+ };
1491
+
1492
+
1493
+ /**
1494
+ * optional string event_name = 10;
1495
+ * @return {string}
1496
+ */
1497
+ proto.gateway.web.v1.LogEntry.prototype.getEventName = function() {
1498
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1499
+ };
1500
+
1501
+
1502
+ /**
1503
+ * @param {string} value
1504
+ * @return {!proto.gateway.web.v1.LogEntry} returns this
1505
+ */
1506
+ proto.gateway.web.v1.LogEntry.prototype.setEventName = function(value) {
1507
+ return jspb.Message.setProto3StringField(this, 10, value);
1508
+ };
1509
+
1510
+
1511
+ /**
1512
+ * optional string scope_name = 11;
1513
+ * @return {string}
1514
+ */
1515
+ proto.gateway.web.v1.LogEntry.prototype.getScopeName = function() {
1516
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1517
+ };
1518
+
1519
+
1520
+ /**
1521
+ * @param {string} value
1522
+ * @return {!proto.gateway.web.v1.LogEntry} returns this
1523
+ */
1524
+ proto.gateway.web.v1.LogEntry.prototype.setScopeName = function(value) {
1525
+ return jspb.Message.setProto3StringField(this, 11, value);
1526
+ };
1527
+
1528
+
1529
+ /**
1530
+ * optional string scope_version = 12;
1531
+ * @return {string}
1532
+ */
1533
+ proto.gateway.web.v1.LogEntry.prototype.getScopeVersion = function() {
1534
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
1535
+ };
1536
+
1537
+
1538
+ /**
1539
+ * @param {string} value
1540
+ * @return {!proto.gateway.web.v1.LogEntry} returns this
1541
+ */
1542
+ proto.gateway.web.v1.LogEntry.prototype.setScopeVersion = function(value) {
1543
+ return jspb.Message.setProto3StringField(this, 12, value);
1544
+ };
1545
+
1546
+
1547
+
1548
+
1549
+
1550
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1551
+ /**
1552
+ * Creates an object representation of this proto.
1553
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1554
+ * Optional fields that are not set will be set to undefined.
1555
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1556
+ * For the list of reserved names please see:
1557
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1558
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1559
+ * JSPB instance for transitional soy proto support:
1560
+ * http://goto/soy-param-migration
1561
+ * @return {!Object}
1562
+ */
1563
+ proto.gateway.web.v1.StreamLogHistogramRequest.prototype.toObject = function(opt_includeInstance) {
1564
+ return proto.gateway.web.v1.StreamLogHistogramRequest.toObject(opt_includeInstance, this);
1565
+ };
1566
+
1567
+
1568
+ /**
1569
+ * Static version of the {@see toObject} method.
1570
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1571
+ * the JSPB instance for transitional soy proto support:
1572
+ * http://goto/soy-param-migration
1573
+ * @param {!proto.gateway.web.v1.StreamLogHistogramRequest} msg The msg instance to transform.
1574
+ * @return {!Object}
1575
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1576
+ */
1577
+ proto.gateway.web.v1.StreamLogHistogramRequest.toObject = function(includeInstance, msg) {
1578
+ var f, obj = {
1579
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1580
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1581
+ filter: jspb.Message.getFieldWithDefault(msg, 3, ""),
1582
+ timeRange: (f = msg.getTimeRange()) && proto_gateway_web_v1_metric_gateway_pb.TimeRange.toObject(includeInstance, f),
1583
+ timeInterval: jspb.Message.getFieldWithDefault(msg, 5, 0)
1584
+ };
1585
+
1586
+ if (includeInstance) {
1587
+ obj.$jspbMessageInstance = msg;
1588
+ }
1589
+ return obj;
1590
+ };
1591
+ }
1592
+
1593
+
1594
+ /**
1595
+ * Deserializes binary data (in protobuf wire format).
1596
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1597
+ * @return {!proto.gateway.web.v1.StreamLogHistogramRequest}
1598
+ */
1599
+ proto.gateway.web.v1.StreamLogHistogramRequest.deserializeBinary = function(bytes) {
1600
+ var reader = new jspb.BinaryReader(bytes);
1601
+ var msg = new proto.gateway.web.v1.StreamLogHistogramRequest;
1602
+ return proto.gateway.web.v1.StreamLogHistogramRequest.deserializeBinaryFromReader(msg, reader);
1603
+ };
1604
+
1605
+
1606
+ /**
1607
+ * Deserializes binary data (in protobuf wire format) from the
1608
+ * given reader into the given message object.
1609
+ * @param {!proto.gateway.web.v1.StreamLogHistogramRequest} msg The message object to deserialize into.
1610
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1611
+ * @return {!proto.gateway.web.v1.StreamLogHistogramRequest}
1612
+ */
1613
+ proto.gateway.web.v1.StreamLogHistogramRequest.deserializeBinaryFromReader = function(msg, reader) {
1614
+ while (reader.nextField()) {
1615
+ if (reader.isEndGroup()) {
1616
+ break;
1617
+ }
1618
+ var field = reader.getFieldNumber();
1619
+ switch (field) {
1620
+ case 1:
1621
+ var value = /** @type {string} */ (reader.readString());
1622
+ msg.setOrganizationId(value);
1623
+ break;
1624
+ case 2:
1625
+ var value = /** @type {string} */ (reader.readString());
1626
+ msg.setProjectId(value);
1627
+ break;
1628
+ case 3:
1629
+ var value = /** @type {string} */ (reader.readString());
1630
+ msg.setFilter(value);
1631
+ break;
1632
+ case 4:
1633
+ var value = new proto_gateway_web_v1_metric_gateway_pb.TimeRange;
1634
+ reader.readMessage(value,proto_gateway_web_v1_metric_gateway_pb.TimeRange.deserializeBinaryFromReader);
1635
+ msg.setTimeRange(value);
1636
+ break;
1637
+ case 5:
1638
+ var value = /** @type {!proto.gateway.web.v1.AnalyticsTimeInterval} */ (reader.readEnum());
1639
+ msg.setTimeInterval(value);
1640
+ break;
1641
+ default:
1642
+ reader.skipField();
1643
+ break;
1644
+ }
1645
+ }
1646
+ return msg;
1647
+ };
1648
+
1649
+
1650
+ /**
1651
+ * Serializes the message to binary data (in protobuf wire format).
1652
+ * @return {!Uint8Array}
1653
+ */
1654
+ proto.gateway.web.v1.StreamLogHistogramRequest.prototype.serializeBinary = function() {
1655
+ var writer = new jspb.BinaryWriter();
1656
+ proto.gateway.web.v1.StreamLogHistogramRequest.serializeBinaryToWriter(this, writer);
1657
+ return writer.getResultBuffer();
1658
+ };
1659
+
1660
+
1661
+ /**
1662
+ * Serializes the given message to binary data (in protobuf wire
1663
+ * format), writing to the given BinaryWriter.
1664
+ * @param {!proto.gateway.web.v1.StreamLogHistogramRequest} message
1665
+ * @param {!jspb.BinaryWriter} writer
1666
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1667
+ */
1668
+ proto.gateway.web.v1.StreamLogHistogramRequest.serializeBinaryToWriter = function(message, writer) {
1669
+ var f = undefined;
1670
+ f = message.getOrganizationId();
1671
+ if (f.length > 0) {
1672
+ writer.writeString(
1673
+ 1,
1674
+ f
1675
+ );
1676
+ }
1677
+ f = message.getProjectId();
1678
+ if (f.length > 0) {
1679
+ writer.writeString(
1680
+ 2,
1681
+ f
1682
+ );
1683
+ }
1684
+ f = message.getFilter();
1685
+ if (f.length > 0) {
1686
+ writer.writeString(
1687
+ 3,
1688
+ f
1689
+ );
1690
+ }
1691
+ f = message.getTimeRange();
1692
+ if (f != null) {
1693
+ writer.writeMessage(
1694
+ 4,
1695
+ f,
1696
+ proto_gateway_web_v1_metric_gateway_pb.TimeRange.serializeBinaryToWriter
1697
+ );
1698
+ }
1699
+ f = message.getTimeInterval();
1700
+ if (f !== 0.0) {
1701
+ writer.writeEnum(
1702
+ 5,
1703
+ f
1704
+ );
1705
+ }
1706
+ };
1707
+
1708
+
1709
+ /**
1710
+ * optional string organization_id = 1;
1711
+ * @return {string}
1712
+ */
1713
+ proto.gateway.web.v1.StreamLogHistogramRequest.prototype.getOrganizationId = function() {
1714
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1715
+ };
1716
+
1717
+
1718
+ /**
1719
+ * @param {string} value
1720
+ * @return {!proto.gateway.web.v1.StreamLogHistogramRequest} returns this
1721
+ */
1722
+ proto.gateway.web.v1.StreamLogHistogramRequest.prototype.setOrganizationId = function(value) {
1723
+ return jspb.Message.setProto3StringField(this, 1, value);
1724
+ };
1725
+
1726
+
1727
+ /**
1728
+ * optional string project_id = 2;
1729
+ * @return {string}
1730
+ */
1731
+ proto.gateway.web.v1.StreamLogHistogramRequest.prototype.getProjectId = function() {
1732
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1733
+ };
1734
+
1735
+
1736
+ /**
1737
+ * @param {string} value
1738
+ * @return {!proto.gateway.web.v1.StreamLogHistogramRequest} returns this
1739
+ */
1740
+ proto.gateway.web.v1.StreamLogHistogramRequest.prototype.setProjectId = function(value) {
1741
+ return jspb.Message.setProto3StringField(this, 2, value);
1742
+ };
1743
+
1744
+
1745
+ /**
1746
+ * optional string filter = 3;
1747
+ * @return {string}
1748
+ */
1749
+ proto.gateway.web.v1.StreamLogHistogramRequest.prototype.getFilter = function() {
1750
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1751
+ };
1752
+
1753
+
1754
+ /**
1755
+ * @param {string} value
1756
+ * @return {!proto.gateway.web.v1.StreamLogHistogramRequest} returns this
1757
+ */
1758
+ proto.gateway.web.v1.StreamLogHistogramRequest.prototype.setFilter = function(value) {
1759
+ return jspb.Message.setProto3StringField(this, 3, value);
1760
+ };
1761
+
1762
+
1763
+ /**
1764
+ * optional TimeRange time_range = 4;
1765
+ * @return {?proto.gateway.web.v1.TimeRange}
1766
+ */
1767
+ proto.gateway.web.v1.StreamLogHistogramRequest.prototype.getTimeRange = function() {
1768
+ return /** @type{?proto.gateway.web.v1.TimeRange} */ (
1769
+ jspb.Message.getWrapperField(this, proto_gateway_web_v1_metric_gateway_pb.TimeRange, 4));
1770
+ };
1771
+
1772
+
1773
+ /**
1774
+ * @param {?proto.gateway.web.v1.TimeRange|undefined} value
1775
+ * @return {!proto.gateway.web.v1.StreamLogHistogramRequest} returns this
1776
+ */
1777
+ proto.gateway.web.v1.StreamLogHistogramRequest.prototype.setTimeRange = function(value) {
1778
+ return jspb.Message.setWrapperField(this, 4, value);
1779
+ };
1780
+
1781
+
1782
+ /**
1783
+ * Clears the message field making it undefined.
1784
+ * @return {!proto.gateway.web.v1.StreamLogHistogramRequest} returns this
1785
+ */
1786
+ proto.gateway.web.v1.StreamLogHistogramRequest.prototype.clearTimeRange = function() {
1787
+ return this.setTimeRange(undefined);
1788
+ };
1789
+
1790
+
1791
+ /**
1792
+ * Returns whether this field is set.
1793
+ * @return {boolean}
1794
+ */
1795
+ proto.gateway.web.v1.StreamLogHistogramRequest.prototype.hasTimeRange = function() {
1796
+ return jspb.Message.getField(this, 4) != null;
1797
+ };
1798
+
1799
+
1800
+ /**
1801
+ * optional AnalyticsTimeInterval time_interval = 5;
1802
+ * @return {!proto.gateway.web.v1.AnalyticsTimeInterval}
1803
+ */
1804
+ proto.gateway.web.v1.StreamLogHistogramRequest.prototype.getTimeInterval = function() {
1805
+ return /** @type {!proto.gateway.web.v1.AnalyticsTimeInterval} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
1806
+ };
1807
+
1808
+
1809
+ /**
1810
+ * @param {!proto.gateway.web.v1.AnalyticsTimeInterval} value
1811
+ * @return {!proto.gateway.web.v1.StreamLogHistogramRequest} returns this
1812
+ */
1813
+ proto.gateway.web.v1.StreamLogHistogramRequest.prototype.setTimeInterval = function(value) {
1814
+ return jspb.Message.setProto3EnumField(this, 5, value);
1815
+ };
1816
+
1817
+
1818
+
1819
+ /**
1820
+ * Oneof group definitions for this message. Each group defines the field
1821
+ * numbers belonging to that group. When of these fields' value is set, all
1822
+ * other fields in the group are cleared. During deserialization, if multiple
1823
+ * fields are encountered for a group, only the last value seen will be kept.
1824
+ * @private {!Array<!Array<number>>}
1825
+ * @const
1826
+ */
1827
+ proto.gateway.web.v1.LogHistogramEnvelope.oneofGroups_ = [[1]];
1828
+
1829
+ /**
1830
+ * @enum {number}
1831
+ */
1832
+ proto.gateway.web.v1.LogHistogramEnvelope.EventCase = {
1833
+ EVENT_NOT_SET: 0,
1834
+ SNAPSHOT: 1
1835
+ };
1836
+
1837
+ /**
1838
+ * @return {proto.gateway.web.v1.LogHistogramEnvelope.EventCase}
1839
+ */
1840
+ proto.gateway.web.v1.LogHistogramEnvelope.prototype.getEventCase = function() {
1841
+ return /** @type {proto.gateway.web.v1.LogHistogramEnvelope.EventCase} */(jspb.Message.computeOneofCase(this, proto.gateway.web.v1.LogHistogramEnvelope.oneofGroups_[0]));
1842
+ };
1843
+
1844
+
1845
+
1846
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1847
+ /**
1848
+ * Creates an object representation of this proto.
1849
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1850
+ * Optional fields that are not set will be set to undefined.
1851
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1852
+ * For the list of reserved names please see:
1853
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1854
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1855
+ * JSPB instance for transitional soy proto support:
1856
+ * http://goto/soy-param-migration
1857
+ * @return {!Object}
1858
+ */
1859
+ proto.gateway.web.v1.LogHistogramEnvelope.prototype.toObject = function(opt_includeInstance) {
1860
+ return proto.gateway.web.v1.LogHistogramEnvelope.toObject(opt_includeInstance, this);
1861
+ };
1862
+
1863
+
1864
+ /**
1865
+ * Static version of the {@see toObject} method.
1866
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1867
+ * the JSPB instance for transitional soy proto support:
1868
+ * http://goto/soy-param-migration
1869
+ * @param {!proto.gateway.web.v1.LogHistogramEnvelope} msg The msg instance to transform.
1870
+ * @return {!Object}
1871
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1872
+ */
1873
+ proto.gateway.web.v1.LogHistogramEnvelope.toObject = function(includeInstance, msg) {
1874
+ var f, obj = {
1875
+ snapshot: (f = msg.getSnapshot()) && proto.gateway.web.v1.LogHistogramSnapshot.toObject(includeInstance, f)
1876
+ };
1877
+
1878
+ if (includeInstance) {
1879
+ obj.$jspbMessageInstance = msg;
1880
+ }
1881
+ return obj;
1882
+ };
1883
+ }
1884
+
1885
+
1886
+ /**
1887
+ * Deserializes binary data (in protobuf wire format).
1888
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1889
+ * @return {!proto.gateway.web.v1.LogHistogramEnvelope}
1890
+ */
1891
+ proto.gateway.web.v1.LogHistogramEnvelope.deserializeBinary = function(bytes) {
1892
+ var reader = new jspb.BinaryReader(bytes);
1893
+ var msg = new proto.gateway.web.v1.LogHistogramEnvelope;
1894
+ return proto.gateway.web.v1.LogHistogramEnvelope.deserializeBinaryFromReader(msg, reader);
1895
+ };
1896
+
1897
+
1898
+ /**
1899
+ * Deserializes binary data (in protobuf wire format) from the
1900
+ * given reader into the given message object.
1901
+ * @param {!proto.gateway.web.v1.LogHistogramEnvelope} msg The message object to deserialize into.
1902
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1903
+ * @return {!proto.gateway.web.v1.LogHistogramEnvelope}
1904
+ */
1905
+ proto.gateway.web.v1.LogHistogramEnvelope.deserializeBinaryFromReader = function(msg, reader) {
1906
+ while (reader.nextField()) {
1907
+ if (reader.isEndGroup()) {
1908
+ break;
1909
+ }
1910
+ var field = reader.getFieldNumber();
1911
+ switch (field) {
1912
+ case 1:
1913
+ var value = new proto.gateway.web.v1.LogHistogramSnapshot;
1914
+ reader.readMessage(value,proto.gateway.web.v1.LogHistogramSnapshot.deserializeBinaryFromReader);
1915
+ msg.setSnapshot(value);
1916
+ break;
1917
+ default:
1918
+ reader.skipField();
1919
+ break;
1920
+ }
1921
+ }
1922
+ return msg;
1923
+ };
1924
+
1925
+
1926
+ /**
1927
+ * Serializes the message to binary data (in protobuf wire format).
1928
+ * @return {!Uint8Array}
1929
+ */
1930
+ proto.gateway.web.v1.LogHistogramEnvelope.prototype.serializeBinary = function() {
1931
+ var writer = new jspb.BinaryWriter();
1932
+ proto.gateway.web.v1.LogHistogramEnvelope.serializeBinaryToWriter(this, writer);
1933
+ return writer.getResultBuffer();
1934
+ };
1935
+
1936
+
1937
+ /**
1938
+ * Serializes the given message to binary data (in protobuf wire
1939
+ * format), writing to the given BinaryWriter.
1940
+ * @param {!proto.gateway.web.v1.LogHistogramEnvelope} message
1941
+ * @param {!jspb.BinaryWriter} writer
1942
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1943
+ */
1944
+ proto.gateway.web.v1.LogHistogramEnvelope.serializeBinaryToWriter = function(message, writer) {
1945
+ var f = undefined;
1946
+ f = message.getSnapshot();
1947
+ if (f != null) {
1948
+ writer.writeMessage(
1949
+ 1,
1950
+ f,
1951
+ proto.gateway.web.v1.LogHistogramSnapshot.serializeBinaryToWriter
1952
+ );
1953
+ }
1954
+ };
1955
+
1956
+
1957
+ /**
1958
+ * optional LogHistogramSnapshot snapshot = 1;
1959
+ * @return {?proto.gateway.web.v1.LogHistogramSnapshot}
1960
+ */
1961
+ proto.gateway.web.v1.LogHistogramEnvelope.prototype.getSnapshot = function() {
1962
+ return /** @type{?proto.gateway.web.v1.LogHistogramSnapshot} */ (
1963
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.LogHistogramSnapshot, 1));
1964
+ };
1965
+
1966
+
1967
+ /**
1968
+ * @param {?proto.gateway.web.v1.LogHistogramSnapshot|undefined} value
1969
+ * @return {!proto.gateway.web.v1.LogHistogramEnvelope} returns this
1970
+ */
1971
+ proto.gateway.web.v1.LogHistogramEnvelope.prototype.setSnapshot = function(value) {
1972
+ return jspb.Message.setOneofWrapperField(this, 1, proto.gateway.web.v1.LogHistogramEnvelope.oneofGroups_[0], value);
1973
+ };
1974
+
1975
+
1976
+ /**
1977
+ * Clears the message field making it undefined.
1978
+ * @return {!proto.gateway.web.v1.LogHistogramEnvelope} returns this
1979
+ */
1980
+ proto.gateway.web.v1.LogHistogramEnvelope.prototype.clearSnapshot = function() {
1981
+ return this.setSnapshot(undefined);
1982
+ };
1983
+
1984
+
1985
+ /**
1986
+ * Returns whether this field is set.
1987
+ * @return {boolean}
1988
+ */
1989
+ proto.gateway.web.v1.LogHistogramEnvelope.prototype.hasSnapshot = function() {
1990
+ return jspb.Message.getField(this, 1) != null;
1991
+ };
1992
+
1993
+
1994
+
1995
+ /**
1996
+ * List of repeated fields within this message type.
1997
+ * @private {!Array<number>}
1998
+ * @const
1999
+ */
2000
+ proto.gateway.web.v1.LogHistogramSnapshot.repeatedFields_ = [1];
2001
+
2002
+
2003
+
2004
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2005
+ /**
2006
+ * Creates an object representation of this proto.
2007
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2008
+ * Optional fields that are not set will be set to undefined.
2009
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2010
+ * For the list of reserved names please see:
2011
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2012
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2013
+ * JSPB instance for transitional soy proto support:
2014
+ * http://goto/soy-param-migration
2015
+ * @return {!Object}
2016
+ */
2017
+ proto.gateway.web.v1.LogHistogramSnapshot.prototype.toObject = function(opt_includeInstance) {
2018
+ return proto.gateway.web.v1.LogHistogramSnapshot.toObject(opt_includeInstance, this);
2019
+ };
2020
+
2021
+
2022
+ /**
2023
+ * Static version of the {@see toObject} method.
2024
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2025
+ * the JSPB instance for transitional soy proto support:
2026
+ * http://goto/soy-param-migration
2027
+ * @param {!proto.gateway.web.v1.LogHistogramSnapshot} msg The msg instance to transform.
2028
+ * @return {!Object}
2029
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2030
+ */
2031
+ proto.gateway.web.v1.LogHistogramSnapshot.toObject = function(includeInstance, msg) {
2032
+ var f, obj = {
2033
+ bucketsList: jspb.Message.toObjectList(msg.getBucketsList(),
2034
+ proto.gateway.web.v1.LogHistogramBucket.toObject, includeInstance),
2035
+ rangeStart: (f = msg.getRangeStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
2036
+ rangeEnd: (f = msg.getRangeEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
2037
+ bucketSizeMs: jspb.Message.getFieldWithDefault(msg, 4, 0),
2038
+ expectedBucketCount: jspb.Message.getFieldWithDefault(msg, 5, 0)
2039
+ };
2040
+
2041
+ if (includeInstance) {
2042
+ obj.$jspbMessageInstance = msg;
2043
+ }
2044
+ return obj;
2045
+ };
2046
+ }
2047
+
2048
+
2049
+ /**
2050
+ * Deserializes binary data (in protobuf wire format).
2051
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2052
+ * @return {!proto.gateway.web.v1.LogHistogramSnapshot}
2053
+ */
2054
+ proto.gateway.web.v1.LogHistogramSnapshot.deserializeBinary = function(bytes) {
2055
+ var reader = new jspb.BinaryReader(bytes);
2056
+ var msg = new proto.gateway.web.v1.LogHistogramSnapshot;
2057
+ return proto.gateway.web.v1.LogHistogramSnapshot.deserializeBinaryFromReader(msg, reader);
2058
+ };
2059
+
2060
+
2061
+ /**
2062
+ * Deserializes binary data (in protobuf wire format) from the
2063
+ * given reader into the given message object.
2064
+ * @param {!proto.gateway.web.v1.LogHistogramSnapshot} msg The message object to deserialize into.
2065
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2066
+ * @return {!proto.gateway.web.v1.LogHistogramSnapshot}
2067
+ */
2068
+ proto.gateway.web.v1.LogHistogramSnapshot.deserializeBinaryFromReader = function(msg, reader) {
2069
+ while (reader.nextField()) {
2070
+ if (reader.isEndGroup()) {
2071
+ break;
2072
+ }
2073
+ var field = reader.getFieldNumber();
2074
+ switch (field) {
2075
+ case 1:
2076
+ var value = new proto.gateway.web.v1.LogHistogramBucket;
2077
+ reader.readMessage(value,proto.gateway.web.v1.LogHistogramBucket.deserializeBinaryFromReader);
2078
+ msg.addBuckets(value);
2079
+ break;
2080
+ case 2:
2081
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2082
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2083
+ msg.setRangeStart(value);
2084
+ break;
2085
+ case 3:
2086
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2087
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2088
+ msg.setRangeEnd(value);
2089
+ break;
2090
+ case 4:
2091
+ var value = /** @type {number} */ (reader.readInt64());
2092
+ msg.setBucketSizeMs(value);
2093
+ break;
2094
+ case 5:
2095
+ var value = /** @type {number} */ (reader.readInt32());
2096
+ msg.setExpectedBucketCount(value);
2097
+ break;
2098
+ default:
2099
+ reader.skipField();
2100
+ break;
2101
+ }
2102
+ }
2103
+ return msg;
2104
+ };
2105
+
2106
+
2107
+ /**
2108
+ * Serializes the message to binary data (in protobuf wire format).
2109
+ * @return {!Uint8Array}
2110
+ */
2111
+ proto.gateway.web.v1.LogHistogramSnapshot.prototype.serializeBinary = function() {
2112
+ var writer = new jspb.BinaryWriter();
2113
+ proto.gateway.web.v1.LogHistogramSnapshot.serializeBinaryToWriter(this, writer);
2114
+ return writer.getResultBuffer();
2115
+ };
2116
+
2117
+
2118
+ /**
2119
+ * Serializes the given message to binary data (in protobuf wire
2120
+ * format), writing to the given BinaryWriter.
2121
+ * @param {!proto.gateway.web.v1.LogHistogramSnapshot} message
2122
+ * @param {!jspb.BinaryWriter} writer
2123
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2124
+ */
2125
+ proto.gateway.web.v1.LogHistogramSnapshot.serializeBinaryToWriter = function(message, writer) {
2126
+ var f = undefined;
2127
+ f = message.getBucketsList();
2128
+ if (f.length > 0) {
2129
+ writer.writeRepeatedMessage(
2130
+ 1,
2131
+ f,
2132
+ proto.gateway.web.v1.LogHistogramBucket.serializeBinaryToWriter
2133
+ );
2134
+ }
2135
+ f = message.getRangeStart();
2136
+ if (f != null) {
2137
+ writer.writeMessage(
2138
+ 2,
2139
+ f,
2140
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2141
+ );
2142
+ }
2143
+ f = message.getRangeEnd();
2144
+ if (f != null) {
2145
+ writer.writeMessage(
2146
+ 3,
2147
+ f,
2148
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2149
+ );
2150
+ }
2151
+ f = message.getBucketSizeMs();
2152
+ if (f !== 0) {
2153
+ writer.writeInt64(
2154
+ 4,
2155
+ f
2156
+ );
2157
+ }
2158
+ f = message.getExpectedBucketCount();
2159
+ if (f !== 0) {
2160
+ writer.writeInt32(
2161
+ 5,
2162
+ f
2163
+ );
2164
+ }
2165
+ };
2166
+
2167
+
2168
+ /**
2169
+ * repeated LogHistogramBucket buckets = 1;
2170
+ * @return {!Array<!proto.gateway.web.v1.LogHistogramBucket>}
2171
+ */
2172
+ proto.gateway.web.v1.LogHistogramSnapshot.prototype.getBucketsList = function() {
2173
+ return /** @type{!Array<!proto.gateway.web.v1.LogHistogramBucket>} */ (
2174
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.LogHistogramBucket, 1));
2175
+ };
2176
+
2177
+
2178
+ /**
2179
+ * @param {!Array<!proto.gateway.web.v1.LogHistogramBucket>} value
2180
+ * @return {!proto.gateway.web.v1.LogHistogramSnapshot} returns this
2181
+ */
2182
+ proto.gateway.web.v1.LogHistogramSnapshot.prototype.setBucketsList = function(value) {
2183
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2184
+ };
2185
+
2186
+
2187
+ /**
2188
+ * @param {!proto.gateway.web.v1.LogHistogramBucket=} opt_value
2189
+ * @param {number=} opt_index
2190
+ * @return {!proto.gateway.web.v1.LogHistogramBucket}
2191
+ */
2192
+ proto.gateway.web.v1.LogHistogramSnapshot.prototype.addBuckets = function(opt_value, opt_index) {
2193
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gateway.web.v1.LogHistogramBucket, opt_index);
2194
+ };
2195
+
2196
+
2197
+ /**
2198
+ * Clears the list making it empty but non-null.
2199
+ * @return {!proto.gateway.web.v1.LogHistogramSnapshot} returns this
2200
+ */
2201
+ proto.gateway.web.v1.LogHistogramSnapshot.prototype.clearBucketsList = function() {
2202
+ return this.setBucketsList([]);
2203
+ };
2204
+
2205
+
2206
+ /**
2207
+ * optional google.protobuf.Timestamp range_start = 2;
2208
+ * @return {?proto.google.protobuf.Timestamp}
2209
+ */
2210
+ proto.gateway.web.v1.LogHistogramSnapshot.prototype.getRangeStart = function() {
2211
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2212
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
2213
+ };
2214
+
2215
+
2216
+ /**
2217
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2218
+ * @return {!proto.gateway.web.v1.LogHistogramSnapshot} returns this
2219
+ */
2220
+ proto.gateway.web.v1.LogHistogramSnapshot.prototype.setRangeStart = function(value) {
2221
+ return jspb.Message.setWrapperField(this, 2, value);
2222
+ };
2223
+
2224
+
2225
+ /**
2226
+ * Clears the message field making it undefined.
2227
+ * @return {!proto.gateway.web.v1.LogHistogramSnapshot} returns this
2228
+ */
2229
+ proto.gateway.web.v1.LogHistogramSnapshot.prototype.clearRangeStart = function() {
2230
+ return this.setRangeStart(undefined);
2231
+ };
2232
+
2233
+
2234
+ /**
2235
+ * Returns whether this field is set.
2236
+ * @return {boolean}
2237
+ */
2238
+ proto.gateway.web.v1.LogHistogramSnapshot.prototype.hasRangeStart = function() {
2239
+ return jspb.Message.getField(this, 2) != null;
2240
+ };
2241
+
2242
+
2243
+ /**
2244
+ * optional google.protobuf.Timestamp range_end = 3;
2245
+ * @return {?proto.google.protobuf.Timestamp}
2246
+ */
2247
+ proto.gateway.web.v1.LogHistogramSnapshot.prototype.getRangeEnd = function() {
2248
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2249
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
2250
+ };
2251
+
2252
+
2253
+ /**
2254
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2255
+ * @return {!proto.gateway.web.v1.LogHistogramSnapshot} returns this
2256
+ */
2257
+ proto.gateway.web.v1.LogHistogramSnapshot.prototype.setRangeEnd = function(value) {
2258
+ return jspb.Message.setWrapperField(this, 3, value);
2259
+ };
2260
+
2261
+
2262
+ /**
2263
+ * Clears the message field making it undefined.
2264
+ * @return {!proto.gateway.web.v1.LogHistogramSnapshot} returns this
2265
+ */
2266
+ proto.gateway.web.v1.LogHistogramSnapshot.prototype.clearRangeEnd = function() {
2267
+ return this.setRangeEnd(undefined);
2268
+ };
2269
+
2270
+
2271
+ /**
2272
+ * Returns whether this field is set.
2273
+ * @return {boolean}
2274
+ */
2275
+ proto.gateway.web.v1.LogHistogramSnapshot.prototype.hasRangeEnd = function() {
2276
+ return jspb.Message.getField(this, 3) != null;
2277
+ };
2278
+
2279
+
2280
+ /**
2281
+ * optional int64 bucket_size_ms = 4;
2282
+ * @return {number}
2283
+ */
2284
+ proto.gateway.web.v1.LogHistogramSnapshot.prototype.getBucketSizeMs = function() {
2285
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
2286
+ };
2287
+
2288
+
2289
+ /**
2290
+ * @param {number} value
2291
+ * @return {!proto.gateway.web.v1.LogHistogramSnapshot} returns this
2292
+ */
2293
+ proto.gateway.web.v1.LogHistogramSnapshot.prototype.setBucketSizeMs = function(value) {
2294
+ return jspb.Message.setProto3IntField(this, 4, value);
2295
+ };
2296
+
2297
+
2298
+ /**
2299
+ * optional int32 expected_bucket_count = 5;
2300
+ * @return {number}
2301
+ */
2302
+ proto.gateway.web.v1.LogHistogramSnapshot.prototype.getExpectedBucketCount = function() {
2303
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2304
+ };
2305
+
2306
+
2307
+ /**
2308
+ * @param {number} value
2309
+ * @return {!proto.gateway.web.v1.LogHistogramSnapshot} returns this
2310
+ */
2311
+ proto.gateway.web.v1.LogHistogramSnapshot.prototype.setExpectedBucketCount = function(value) {
2312
+ return jspb.Message.setProto3IntField(this, 5, value);
2313
+ };
2314
+
2315
+
2316
+
2317
+
2318
+
2319
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2320
+ /**
2321
+ * Creates an object representation of this proto.
2322
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2323
+ * Optional fields that are not set will be set to undefined.
2324
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2325
+ * For the list of reserved names please see:
2326
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2327
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2328
+ * JSPB instance for transitional soy proto support:
2329
+ * http://goto/soy-param-migration
2330
+ * @return {!Object}
2331
+ */
2332
+ proto.gateway.web.v1.LogHistogramBucket.prototype.toObject = function(opt_includeInstance) {
2333
+ return proto.gateway.web.v1.LogHistogramBucket.toObject(opt_includeInstance, this);
2334
+ };
2335
+
2336
+
2337
+ /**
2338
+ * Static version of the {@see toObject} method.
2339
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2340
+ * the JSPB instance for transitional soy proto support:
2341
+ * http://goto/soy-param-migration
2342
+ * @param {!proto.gateway.web.v1.LogHistogramBucket} msg The msg instance to transform.
2343
+ * @return {!Object}
2344
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2345
+ */
2346
+ proto.gateway.web.v1.LogHistogramBucket.toObject = function(includeInstance, msg) {
2347
+ var f, obj = {
2348
+ bucketStart: (f = msg.getBucketStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
2349
+ level: jspb.Message.getFieldWithDefault(msg, 2, ""),
2350
+ count: jspb.Message.getFieldWithDefault(msg, 3, 0)
2351
+ };
2352
+
2353
+ if (includeInstance) {
2354
+ obj.$jspbMessageInstance = msg;
2355
+ }
2356
+ return obj;
2357
+ };
2358
+ }
2359
+
2360
+
2361
+ /**
2362
+ * Deserializes binary data (in protobuf wire format).
2363
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2364
+ * @return {!proto.gateway.web.v1.LogHistogramBucket}
2365
+ */
2366
+ proto.gateway.web.v1.LogHistogramBucket.deserializeBinary = function(bytes) {
2367
+ var reader = new jspb.BinaryReader(bytes);
2368
+ var msg = new proto.gateway.web.v1.LogHistogramBucket;
2369
+ return proto.gateway.web.v1.LogHistogramBucket.deserializeBinaryFromReader(msg, reader);
2370
+ };
2371
+
2372
+
2373
+ /**
2374
+ * Deserializes binary data (in protobuf wire format) from the
2375
+ * given reader into the given message object.
2376
+ * @param {!proto.gateway.web.v1.LogHistogramBucket} msg The message object to deserialize into.
2377
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2378
+ * @return {!proto.gateway.web.v1.LogHistogramBucket}
2379
+ */
2380
+ proto.gateway.web.v1.LogHistogramBucket.deserializeBinaryFromReader = function(msg, reader) {
2381
+ while (reader.nextField()) {
2382
+ if (reader.isEndGroup()) {
2383
+ break;
2384
+ }
2385
+ var field = reader.getFieldNumber();
2386
+ switch (field) {
2387
+ case 1:
2388
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2389
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2390
+ msg.setBucketStart(value);
2391
+ break;
2392
+ case 2:
2393
+ var value = /** @type {string} */ (reader.readString());
2394
+ msg.setLevel(value);
2395
+ break;
2396
+ case 3:
2397
+ var value = /** @type {number} */ (reader.readUint64());
2398
+ msg.setCount(value);
2399
+ break;
2400
+ default:
2401
+ reader.skipField();
2402
+ break;
2403
+ }
2404
+ }
2405
+ return msg;
2406
+ };
2407
+
2408
+
2409
+ /**
2410
+ * Serializes the message to binary data (in protobuf wire format).
2411
+ * @return {!Uint8Array}
2412
+ */
2413
+ proto.gateway.web.v1.LogHistogramBucket.prototype.serializeBinary = function() {
2414
+ var writer = new jspb.BinaryWriter();
2415
+ proto.gateway.web.v1.LogHistogramBucket.serializeBinaryToWriter(this, writer);
2416
+ return writer.getResultBuffer();
2417
+ };
2418
+
2419
+
2420
+ /**
2421
+ * Serializes the given message to binary data (in protobuf wire
2422
+ * format), writing to the given BinaryWriter.
2423
+ * @param {!proto.gateway.web.v1.LogHistogramBucket} message
2424
+ * @param {!jspb.BinaryWriter} writer
2425
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2426
+ */
2427
+ proto.gateway.web.v1.LogHistogramBucket.serializeBinaryToWriter = function(message, writer) {
2428
+ var f = undefined;
2429
+ f = message.getBucketStart();
2430
+ if (f != null) {
2431
+ writer.writeMessage(
2432
+ 1,
2433
+ f,
2434
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2435
+ );
2436
+ }
2437
+ f = message.getLevel();
2438
+ if (f.length > 0) {
2439
+ writer.writeString(
2440
+ 2,
2441
+ f
2442
+ );
2443
+ }
2444
+ f = message.getCount();
2445
+ if (f !== 0) {
2446
+ writer.writeUint64(
2447
+ 3,
2448
+ f
2449
+ );
2450
+ }
2451
+ };
2452
+
2453
+
2454
+ /**
2455
+ * optional google.protobuf.Timestamp bucket_start = 1;
2456
+ * @return {?proto.google.protobuf.Timestamp}
2457
+ */
2458
+ proto.gateway.web.v1.LogHistogramBucket.prototype.getBucketStart = function() {
2459
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2460
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
2461
+ };
2462
+
2463
+
2464
+ /**
2465
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2466
+ * @return {!proto.gateway.web.v1.LogHistogramBucket} returns this
2467
+ */
2468
+ proto.gateway.web.v1.LogHistogramBucket.prototype.setBucketStart = function(value) {
2469
+ return jspb.Message.setWrapperField(this, 1, value);
2470
+ };
2471
+
2472
+
2473
+ /**
2474
+ * Clears the message field making it undefined.
2475
+ * @return {!proto.gateway.web.v1.LogHistogramBucket} returns this
2476
+ */
2477
+ proto.gateway.web.v1.LogHistogramBucket.prototype.clearBucketStart = function() {
2478
+ return this.setBucketStart(undefined);
2479
+ };
2480
+
2481
+
2482
+ /**
2483
+ * Returns whether this field is set.
2484
+ * @return {boolean}
2485
+ */
2486
+ proto.gateway.web.v1.LogHistogramBucket.prototype.hasBucketStart = function() {
2487
+ return jspb.Message.getField(this, 1) != null;
2488
+ };
2489
+
2490
+
2491
+ /**
2492
+ * optional string level = 2;
2493
+ * @return {string}
2494
+ */
2495
+ proto.gateway.web.v1.LogHistogramBucket.prototype.getLevel = function() {
2496
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2497
+ };
2498
+
2499
+
2500
+ /**
2501
+ * @param {string} value
2502
+ * @return {!proto.gateway.web.v1.LogHistogramBucket} returns this
2503
+ */
2504
+ proto.gateway.web.v1.LogHistogramBucket.prototype.setLevel = function(value) {
2505
+ return jspb.Message.setProto3StringField(this, 2, value);
2506
+ };
2507
+
2508
+
2509
+ /**
2510
+ * optional uint64 count = 3;
2511
+ * @return {number}
2512
+ */
2513
+ proto.gateway.web.v1.LogHistogramBucket.prototype.getCount = function() {
2514
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2515
+ };
2516
+
2517
+
2518
+ /**
2519
+ * @param {number} value
2520
+ * @return {!proto.gateway.web.v1.LogHistogramBucket} returns this
2521
+ */
2522
+ proto.gateway.web.v1.LogHistogramBucket.prototype.setCount = function(value) {
2523
+ return jspb.Message.setProto3IntField(this, 3, value);
2524
+ };
2525
+
2526
+
2527
+
2528
+
2529
+
2530
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2531
+ /**
2532
+ * Creates an object representation of this proto.
2533
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2534
+ * Optional fields that are not set will be set to undefined.
2535
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2536
+ * For the list of reserved names please see:
2537
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2538
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2539
+ * JSPB instance for transitional soy proto support:
2540
+ * http://goto/soy-param-migration
2541
+ * @return {!Object}
2542
+ */
2543
+ proto.gateway.web.v1.StreamLogAttributesRequest.prototype.toObject = function(opt_includeInstance) {
2544
+ return proto.gateway.web.v1.StreamLogAttributesRequest.toObject(opt_includeInstance, this);
2545
+ };
2546
+
2547
+
2548
+ /**
2549
+ * Static version of the {@see toObject} method.
2550
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2551
+ * the JSPB instance for transitional soy proto support:
2552
+ * http://goto/soy-param-migration
2553
+ * @param {!proto.gateway.web.v1.StreamLogAttributesRequest} msg The msg instance to transform.
2554
+ * @return {!Object}
2555
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2556
+ */
2557
+ proto.gateway.web.v1.StreamLogAttributesRequest.toObject = function(includeInstance, msg) {
2558
+ var f, obj = {
2559
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2560
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, "")
2561
+ };
2562
+
2563
+ if (includeInstance) {
2564
+ obj.$jspbMessageInstance = msg;
2565
+ }
2566
+ return obj;
2567
+ };
2568
+ }
2569
+
2570
+
2571
+ /**
2572
+ * Deserializes binary data (in protobuf wire format).
2573
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2574
+ * @return {!proto.gateway.web.v1.StreamLogAttributesRequest}
2575
+ */
2576
+ proto.gateway.web.v1.StreamLogAttributesRequest.deserializeBinary = function(bytes) {
2577
+ var reader = new jspb.BinaryReader(bytes);
2578
+ var msg = new proto.gateway.web.v1.StreamLogAttributesRequest;
2579
+ return proto.gateway.web.v1.StreamLogAttributesRequest.deserializeBinaryFromReader(msg, reader);
2580
+ };
2581
+
2582
+
2583
+ /**
2584
+ * Deserializes binary data (in protobuf wire format) from the
2585
+ * given reader into the given message object.
2586
+ * @param {!proto.gateway.web.v1.StreamLogAttributesRequest} msg The message object to deserialize into.
2587
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2588
+ * @return {!proto.gateway.web.v1.StreamLogAttributesRequest}
2589
+ */
2590
+ proto.gateway.web.v1.StreamLogAttributesRequest.deserializeBinaryFromReader = function(msg, reader) {
2591
+ while (reader.nextField()) {
2592
+ if (reader.isEndGroup()) {
2593
+ break;
2594
+ }
2595
+ var field = reader.getFieldNumber();
2596
+ switch (field) {
2597
+ case 1:
2598
+ var value = /** @type {string} */ (reader.readString());
2599
+ msg.setOrganizationId(value);
2600
+ break;
2601
+ case 2:
2602
+ var value = /** @type {string} */ (reader.readString());
2603
+ msg.setProjectId(value);
2604
+ break;
2605
+ default:
2606
+ reader.skipField();
2607
+ break;
2608
+ }
2609
+ }
2610
+ return msg;
2611
+ };
2612
+
2613
+
2614
+ /**
2615
+ * Serializes the message to binary data (in protobuf wire format).
2616
+ * @return {!Uint8Array}
2617
+ */
2618
+ proto.gateway.web.v1.StreamLogAttributesRequest.prototype.serializeBinary = function() {
2619
+ var writer = new jspb.BinaryWriter();
2620
+ proto.gateway.web.v1.StreamLogAttributesRequest.serializeBinaryToWriter(this, writer);
2621
+ return writer.getResultBuffer();
2622
+ };
2623
+
2624
+
2625
+ /**
2626
+ * Serializes the given message to binary data (in protobuf wire
2627
+ * format), writing to the given BinaryWriter.
2628
+ * @param {!proto.gateway.web.v1.StreamLogAttributesRequest} message
2629
+ * @param {!jspb.BinaryWriter} writer
2630
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2631
+ */
2632
+ proto.gateway.web.v1.StreamLogAttributesRequest.serializeBinaryToWriter = function(message, writer) {
2633
+ var f = undefined;
2634
+ f = message.getOrganizationId();
2635
+ if (f.length > 0) {
2636
+ writer.writeString(
2637
+ 1,
2638
+ f
2639
+ );
2640
+ }
2641
+ f = message.getProjectId();
2642
+ if (f.length > 0) {
2643
+ writer.writeString(
2644
+ 2,
2645
+ f
2646
+ );
2647
+ }
2648
+ };
2649
+
2650
+
2651
+ /**
2652
+ * optional string organization_id = 1;
2653
+ * @return {string}
2654
+ */
2655
+ proto.gateway.web.v1.StreamLogAttributesRequest.prototype.getOrganizationId = function() {
2656
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2657
+ };
2658
+
2659
+
2660
+ /**
2661
+ * @param {string} value
2662
+ * @return {!proto.gateway.web.v1.StreamLogAttributesRequest} returns this
2663
+ */
2664
+ proto.gateway.web.v1.StreamLogAttributesRequest.prototype.setOrganizationId = function(value) {
2665
+ return jspb.Message.setProto3StringField(this, 1, value);
2666
+ };
2667
+
2668
+
2669
+ /**
2670
+ * optional string project_id = 2;
2671
+ * @return {string}
2672
+ */
2673
+ proto.gateway.web.v1.StreamLogAttributesRequest.prototype.getProjectId = function() {
2674
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2675
+ };
2676
+
2677
+
2678
+ /**
2679
+ * @param {string} value
2680
+ * @return {!proto.gateway.web.v1.StreamLogAttributesRequest} returns this
2681
+ */
2682
+ proto.gateway.web.v1.StreamLogAttributesRequest.prototype.setProjectId = function(value) {
2683
+ return jspb.Message.setProto3StringField(this, 2, value);
2684
+ };
2685
+
2686
+
2687
+
2688
+ /**
2689
+ * Oneof group definitions for this message. Each group defines the field
2690
+ * numbers belonging to that group. When of these fields' value is set, all
2691
+ * other fields in the group are cleared. During deserialization, if multiple
2692
+ * fields are encountered for a group, only the last value seen will be kept.
2693
+ * @private {!Array<!Array<number>>}
2694
+ * @const
2695
+ */
2696
+ proto.gateway.web.v1.LogAttributeEnvelope.oneofGroups_ = [[1,2]];
2697
+
2698
+ /**
2699
+ * @enum {number}
2700
+ */
2701
+ proto.gateway.web.v1.LogAttributeEnvelope.EventCase = {
2702
+ EVENT_NOT_SET: 0,
2703
+ SNAPSHOT: 1,
2704
+ ADDED: 2
2705
+ };
2706
+
2707
+ /**
2708
+ * @return {proto.gateway.web.v1.LogAttributeEnvelope.EventCase}
2709
+ */
2710
+ proto.gateway.web.v1.LogAttributeEnvelope.prototype.getEventCase = function() {
2711
+ return /** @type {proto.gateway.web.v1.LogAttributeEnvelope.EventCase} */(jspb.Message.computeOneofCase(this, proto.gateway.web.v1.LogAttributeEnvelope.oneofGroups_[0]));
2712
+ };
2713
+
2714
+
2715
+
2716
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2717
+ /**
2718
+ * Creates an object representation of this proto.
2719
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2720
+ * Optional fields that are not set will be set to undefined.
2721
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2722
+ * For the list of reserved names please see:
2723
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2724
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2725
+ * JSPB instance for transitional soy proto support:
2726
+ * http://goto/soy-param-migration
2727
+ * @return {!Object}
2728
+ */
2729
+ proto.gateway.web.v1.LogAttributeEnvelope.prototype.toObject = function(opt_includeInstance) {
2730
+ return proto.gateway.web.v1.LogAttributeEnvelope.toObject(opt_includeInstance, this);
2731
+ };
2732
+
2733
+
2734
+ /**
2735
+ * Static version of the {@see toObject} method.
2736
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2737
+ * the JSPB instance for transitional soy proto support:
2738
+ * http://goto/soy-param-migration
2739
+ * @param {!proto.gateway.web.v1.LogAttributeEnvelope} msg The msg instance to transform.
2740
+ * @return {!Object}
2741
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2742
+ */
2743
+ proto.gateway.web.v1.LogAttributeEnvelope.toObject = function(includeInstance, msg) {
2744
+ var f, obj = {
2745
+ snapshot: (f = msg.getSnapshot()) && proto.gateway.web.v1.LogAttributeSnapshot.toObject(includeInstance, f),
2746
+ added: (f = msg.getAdded()) && proto.gateway.web.v1.LogAttribute.toObject(includeInstance, f)
2747
+ };
2748
+
2749
+ if (includeInstance) {
2750
+ obj.$jspbMessageInstance = msg;
2751
+ }
2752
+ return obj;
2753
+ };
2754
+ }
2755
+
2756
+
2757
+ /**
2758
+ * Deserializes binary data (in protobuf wire format).
2759
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2760
+ * @return {!proto.gateway.web.v1.LogAttributeEnvelope}
2761
+ */
2762
+ proto.gateway.web.v1.LogAttributeEnvelope.deserializeBinary = function(bytes) {
2763
+ var reader = new jspb.BinaryReader(bytes);
2764
+ var msg = new proto.gateway.web.v1.LogAttributeEnvelope;
2765
+ return proto.gateway.web.v1.LogAttributeEnvelope.deserializeBinaryFromReader(msg, reader);
2766
+ };
2767
+
2768
+
2769
+ /**
2770
+ * Deserializes binary data (in protobuf wire format) from the
2771
+ * given reader into the given message object.
2772
+ * @param {!proto.gateway.web.v1.LogAttributeEnvelope} msg The message object to deserialize into.
2773
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2774
+ * @return {!proto.gateway.web.v1.LogAttributeEnvelope}
2775
+ */
2776
+ proto.gateway.web.v1.LogAttributeEnvelope.deserializeBinaryFromReader = function(msg, reader) {
2777
+ while (reader.nextField()) {
2778
+ if (reader.isEndGroup()) {
2779
+ break;
2780
+ }
2781
+ var field = reader.getFieldNumber();
2782
+ switch (field) {
2783
+ case 1:
2784
+ var value = new proto.gateway.web.v1.LogAttributeSnapshot;
2785
+ reader.readMessage(value,proto.gateway.web.v1.LogAttributeSnapshot.deserializeBinaryFromReader);
2786
+ msg.setSnapshot(value);
2787
+ break;
2788
+ case 2:
2789
+ var value = new proto.gateway.web.v1.LogAttribute;
2790
+ reader.readMessage(value,proto.gateway.web.v1.LogAttribute.deserializeBinaryFromReader);
2791
+ msg.setAdded(value);
2792
+ break;
2793
+ default:
2794
+ reader.skipField();
2795
+ break;
2796
+ }
2797
+ }
2798
+ return msg;
2799
+ };
2800
+
2801
+
2802
+ /**
2803
+ * Serializes the message to binary data (in protobuf wire format).
2804
+ * @return {!Uint8Array}
2805
+ */
2806
+ proto.gateway.web.v1.LogAttributeEnvelope.prototype.serializeBinary = function() {
2807
+ var writer = new jspb.BinaryWriter();
2808
+ proto.gateway.web.v1.LogAttributeEnvelope.serializeBinaryToWriter(this, writer);
2809
+ return writer.getResultBuffer();
2810
+ };
2811
+
2812
+
2813
+ /**
2814
+ * Serializes the given message to binary data (in protobuf wire
2815
+ * format), writing to the given BinaryWriter.
2816
+ * @param {!proto.gateway.web.v1.LogAttributeEnvelope} message
2817
+ * @param {!jspb.BinaryWriter} writer
2818
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2819
+ */
2820
+ proto.gateway.web.v1.LogAttributeEnvelope.serializeBinaryToWriter = function(message, writer) {
2821
+ var f = undefined;
2822
+ f = message.getSnapshot();
2823
+ if (f != null) {
2824
+ writer.writeMessage(
2825
+ 1,
2826
+ f,
2827
+ proto.gateway.web.v1.LogAttributeSnapshot.serializeBinaryToWriter
2828
+ );
2829
+ }
2830
+ f = message.getAdded();
2831
+ if (f != null) {
2832
+ writer.writeMessage(
2833
+ 2,
2834
+ f,
2835
+ proto.gateway.web.v1.LogAttribute.serializeBinaryToWriter
2836
+ );
2837
+ }
2838
+ };
2839
+
2840
+
2841
+ /**
2842
+ * optional LogAttributeSnapshot snapshot = 1;
2843
+ * @return {?proto.gateway.web.v1.LogAttributeSnapshot}
2844
+ */
2845
+ proto.gateway.web.v1.LogAttributeEnvelope.prototype.getSnapshot = function() {
2846
+ return /** @type{?proto.gateway.web.v1.LogAttributeSnapshot} */ (
2847
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.LogAttributeSnapshot, 1));
2848
+ };
2849
+
2850
+
2851
+ /**
2852
+ * @param {?proto.gateway.web.v1.LogAttributeSnapshot|undefined} value
2853
+ * @return {!proto.gateway.web.v1.LogAttributeEnvelope} returns this
2854
+ */
2855
+ proto.gateway.web.v1.LogAttributeEnvelope.prototype.setSnapshot = function(value) {
2856
+ return jspb.Message.setOneofWrapperField(this, 1, proto.gateway.web.v1.LogAttributeEnvelope.oneofGroups_[0], value);
2857
+ };
2858
+
2859
+
2860
+ /**
2861
+ * Clears the message field making it undefined.
2862
+ * @return {!proto.gateway.web.v1.LogAttributeEnvelope} returns this
2863
+ */
2864
+ proto.gateway.web.v1.LogAttributeEnvelope.prototype.clearSnapshot = function() {
2865
+ return this.setSnapshot(undefined);
2866
+ };
2867
+
2868
+
2869
+ /**
2870
+ * Returns whether this field is set.
2871
+ * @return {boolean}
2872
+ */
2873
+ proto.gateway.web.v1.LogAttributeEnvelope.prototype.hasSnapshot = function() {
2874
+ return jspb.Message.getField(this, 1) != null;
2875
+ };
2876
+
2877
+
2878
+ /**
2879
+ * optional LogAttribute added = 2;
2880
+ * @return {?proto.gateway.web.v1.LogAttribute}
2881
+ */
2882
+ proto.gateway.web.v1.LogAttributeEnvelope.prototype.getAdded = function() {
2883
+ return /** @type{?proto.gateway.web.v1.LogAttribute} */ (
2884
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.LogAttribute, 2));
2885
+ };
2886
+
2887
+
2888
+ /**
2889
+ * @param {?proto.gateway.web.v1.LogAttribute|undefined} value
2890
+ * @return {!proto.gateway.web.v1.LogAttributeEnvelope} returns this
2891
+ */
2892
+ proto.gateway.web.v1.LogAttributeEnvelope.prototype.setAdded = function(value) {
2893
+ return jspb.Message.setOneofWrapperField(this, 2, proto.gateway.web.v1.LogAttributeEnvelope.oneofGroups_[0], value);
2894
+ };
2895
+
2896
+
2897
+ /**
2898
+ * Clears the message field making it undefined.
2899
+ * @return {!proto.gateway.web.v1.LogAttributeEnvelope} returns this
2900
+ */
2901
+ proto.gateway.web.v1.LogAttributeEnvelope.prototype.clearAdded = function() {
2902
+ return this.setAdded(undefined);
2903
+ };
2904
+
2905
+
2906
+ /**
2907
+ * Returns whether this field is set.
2908
+ * @return {boolean}
2909
+ */
2910
+ proto.gateway.web.v1.LogAttributeEnvelope.prototype.hasAdded = function() {
2911
+ return jspb.Message.getField(this, 2) != null;
2912
+ };
2913
+
2914
+
2915
+
2916
+ /**
2917
+ * List of repeated fields within this message type.
2918
+ * @private {!Array<number>}
2919
+ * @const
2920
+ */
2921
+ proto.gateway.web.v1.LogAttributeSnapshot.repeatedFields_ = [1];
2922
+
2923
+
2924
+
2925
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2926
+ /**
2927
+ * Creates an object representation of this proto.
2928
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2929
+ * Optional fields that are not set will be set to undefined.
2930
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2931
+ * For the list of reserved names please see:
2932
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2933
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2934
+ * JSPB instance for transitional soy proto support:
2935
+ * http://goto/soy-param-migration
2936
+ * @return {!Object}
2937
+ */
2938
+ proto.gateway.web.v1.LogAttributeSnapshot.prototype.toObject = function(opt_includeInstance) {
2939
+ return proto.gateway.web.v1.LogAttributeSnapshot.toObject(opt_includeInstance, this);
2940
+ };
2941
+
2942
+
2943
+ /**
2944
+ * Static version of the {@see toObject} method.
2945
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2946
+ * the JSPB instance for transitional soy proto support:
2947
+ * http://goto/soy-param-migration
2948
+ * @param {!proto.gateway.web.v1.LogAttributeSnapshot} msg The msg instance to transform.
2949
+ * @return {!Object}
2950
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2951
+ */
2952
+ proto.gateway.web.v1.LogAttributeSnapshot.toObject = function(includeInstance, msg) {
2953
+ var f, obj = {
2954
+ attributesList: jspb.Message.toObjectList(msg.getAttributesList(),
2955
+ proto.gateway.web.v1.LogAttribute.toObject, includeInstance)
2956
+ };
2957
+
2958
+ if (includeInstance) {
2959
+ obj.$jspbMessageInstance = msg;
2960
+ }
2961
+ return obj;
2962
+ };
2963
+ }
2964
+
2965
+
2966
+ /**
2967
+ * Deserializes binary data (in protobuf wire format).
2968
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2969
+ * @return {!proto.gateway.web.v1.LogAttributeSnapshot}
2970
+ */
2971
+ proto.gateway.web.v1.LogAttributeSnapshot.deserializeBinary = function(bytes) {
2972
+ var reader = new jspb.BinaryReader(bytes);
2973
+ var msg = new proto.gateway.web.v1.LogAttributeSnapshot;
2974
+ return proto.gateway.web.v1.LogAttributeSnapshot.deserializeBinaryFromReader(msg, reader);
2975
+ };
2976
+
2977
+
2978
+ /**
2979
+ * Deserializes binary data (in protobuf wire format) from the
2980
+ * given reader into the given message object.
2981
+ * @param {!proto.gateway.web.v1.LogAttributeSnapshot} msg The message object to deserialize into.
2982
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2983
+ * @return {!proto.gateway.web.v1.LogAttributeSnapshot}
2984
+ */
2985
+ proto.gateway.web.v1.LogAttributeSnapshot.deserializeBinaryFromReader = function(msg, reader) {
2986
+ while (reader.nextField()) {
2987
+ if (reader.isEndGroup()) {
2988
+ break;
2989
+ }
2990
+ var field = reader.getFieldNumber();
2991
+ switch (field) {
2992
+ case 1:
2993
+ var value = new proto.gateway.web.v1.LogAttribute;
2994
+ reader.readMessage(value,proto.gateway.web.v1.LogAttribute.deserializeBinaryFromReader);
2995
+ msg.addAttributes(value);
2996
+ break;
2997
+ default:
2998
+ reader.skipField();
2999
+ break;
3000
+ }
3001
+ }
3002
+ return msg;
3003
+ };
3004
+
3005
+
3006
+ /**
3007
+ * Serializes the message to binary data (in protobuf wire format).
3008
+ * @return {!Uint8Array}
3009
+ */
3010
+ proto.gateway.web.v1.LogAttributeSnapshot.prototype.serializeBinary = function() {
3011
+ var writer = new jspb.BinaryWriter();
3012
+ proto.gateway.web.v1.LogAttributeSnapshot.serializeBinaryToWriter(this, writer);
3013
+ return writer.getResultBuffer();
3014
+ };
3015
+
3016
+
3017
+ /**
3018
+ * Serializes the given message to binary data (in protobuf wire
3019
+ * format), writing to the given BinaryWriter.
3020
+ * @param {!proto.gateway.web.v1.LogAttributeSnapshot} message
3021
+ * @param {!jspb.BinaryWriter} writer
3022
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3023
+ */
3024
+ proto.gateway.web.v1.LogAttributeSnapshot.serializeBinaryToWriter = function(message, writer) {
3025
+ var f = undefined;
3026
+ f = message.getAttributesList();
3027
+ if (f.length > 0) {
3028
+ writer.writeRepeatedMessage(
3029
+ 1,
3030
+ f,
3031
+ proto.gateway.web.v1.LogAttribute.serializeBinaryToWriter
3032
+ );
3033
+ }
3034
+ };
3035
+
3036
+
3037
+ /**
3038
+ * repeated LogAttribute attributes = 1;
3039
+ * @return {!Array<!proto.gateway.web.v1.LogAttribute>}
3040
+ */
3041
+ proto.gateway.web.v1.LogAttributeSnapshot.prototype.getAttributesList = function() {
3042
+ return /** @type{!Array<!proto.gateway.web.v1.LogAttribute>} */ (
3043
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.LogAttribute, 1));
3044
+ };
3045
+
3046
+
3047
+ /**
3048
+ * @param {!Array<!proto.gateway.web.v1.LogAttribute>} value
3049
+ * @return {!proto.gateway.web.v1.LogAttributeSnapshot} returns this
3050
+ */
3051
+ proto.gateway.web.v1.LogAttributeSnapshot.prototype.setAttributesList = function(value) {
3052
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3053
+ };
3054
+
3055
+
3056
+ /**
3057
+ * @param {!proto.gateway.web.v1.LogAttribute=} opt_value
3058
+ * @param {number=} opt_index
3059
+ * @return {!proto.gateway.web.v1.LogAttribute}
3060
+ */
3061
+ proto.gateway.web.v1.LogAttributeSnapshot.prototype.addAttributes = function(opt_value, opt_index) {
3062
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gateway.web.v1.LogAttribute, opt_index);
3063
+ };
3064
+
3065
+
3066
+ /**
3067
+ * Clears the list making it empty but non-null.
3068
+ * @return {!proto.gateway.web.v1.LogAttributeSnapshot} returns this
3069
+ */
3070
+ proto.gateway.web.v1.LogAttributeSnapshot.prototype.clearAttributesList = function() {
3071
+ return this.setAttributesList([]);
3072
+ };
3073
+
3074
+
3075
+
3076
+ /**
3077
+ * List of repeated fields within this message type.
3078
+ * @private {!Array<number>}
3079
+ * @const
3080
+ */
3081
+ proto.gateway.web.v1.LogAttribute.repeatedFields_ = [2];
3082
+
3083
+
3084
+
3085
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3086
+ /**
3087
+ * Creates an object representation of this proto.
3088
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3089
+ * Optional fields that are not set will be set to undefined.
3090
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3091
+ * For the list of reserved names please see:
3092
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3093
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3094
+ * JSPB instance for transitional soy proto support:
3095
+ * http://goto/soy-param-migration
3096
+ * @return {!Object}
3097
+ */
3098
+ proto.gateway.web.v1.LogAttribute.prototype.toObject = function(opt_includeInstance) {
3099
+ return proto.gateway.web.v1.LogAttribute.toObject(opt_includeInstance, this);
3100
+ };
3101
+
3102
+
3103
+ /**
3104
+ * Static version of the {@see toObject} method.
3105
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3106
+ * the JSPB instance for transitional soy proto support:
3107
+ * http://goto/soy-param-migration
3108
+ * @param {!proto.gateway.web.v1.LogAttribute} msg The msg instance to transform.
3109
+ * @return {!Object}
3110
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3111
+ */
3112
+ proto.gateway.web.v1.LogAttribute.toObject = function(includeInstance, msg) {
3113
+ var f, obj = {
3114
+ key: jspb.Message.getFieldWithDefault(msg, 1, ""),
3115
+ valuesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
3116
+ };
3117
+
3118
+ if (includeInstance) {
3119
+ obj.$jspbMessageInstance = msg;
3120
+ }
3121
+ return obj;
3122
+ };
3123
+ }
3124
+
3125
+
3126
+ /**
3127
+ * Deserializes binary data (in protobuf wire format).
3128
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3129
+ * @return {!proto.gateway.web.v1.LogAttribute}
3130
+ */
3131
+ proto.gateway.web.v1.LogAttribute.deserializeBinary = function(bytes) {
3132
+ var reader = new jspb.BinaryReader(bytes);
3133
+ var msg = new proto.gateway.web.v1.LogAttribute;
3134
+ return proto.gateway.web.v1.LogAttribute.deserializeBinaryFromReader(msg, reader);
3135
+ };
3136
+
3137
+
3138
+ /**
3139
+ * Deserializes binary data (in protobuf wire format) from the
3140
+ * given reader into the given message object.
3141
+ * @param {!proto.gateway.web.v1.LogAttribute} msg The message object to deserialize into.
3142
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3143
+ * @return {!proto.gateway.web.v1.LogAttribute}
3144
+ */
3145
+ proto.gateway.web.v1.LogAttribute.deserializeBinaryFromReader = function(msg, reader) {
3146
+ while (reader.nextField()) {
3147
+ if (reader.isEndGroup()) {
3148
+ break;
3149
+ }
3150
+ var field = reader.getFieldNumber();
3151
+ switch (field) {
3152
+ case 1:
3153
+ var value = /** @type {string} */ (reader.readString());
3154
+ msg.setKey(value);
3155
+ break;
3156
+ case 2:
3157
+ var value = /** @type {string} */ (reader.readString());
3158
+ msg.addValues(value);
3159
+ break;
3160
+ default:
3161
+ reader.skipField();
3162
+ break;
3163
+ }
3164
+ }
3165
+ return msg;
3166
+ };
3167
+
3168
+
3169
+ /**
3170
+ * Serializes the message to binary data (in protobuf wire format).
3171
+ * @return {!Uint8Array}
3172
+ */
3173
+ proto.gateway.web.v1.LogAttribute.prototype.serializeBinary = function() {
3174
+ var writer = new jspb.BinaryWriter();
3175
+ proto.gateway.web.v1.LogAttribute.serializeBinaryToWriter(this, writer);
3176
+ return writer.getResultBuffer();
3177
+ };
3178
+
3179
+
3180
+ /**
3181
+ * Serializes the given message to binary data (in protobuf wire
3182
+ * format), writing to the given BinaryWriter.
3183
+ * @param {!proto.gateway.web.v1.LogAttribute} message
3184
+ * @param {!jspb.BinaryWriter} writer
3185
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3186
+ */
3187
+ proto.gateway.web.v1.LogAttribute.serializeBinaryToWriter = function(message, writer) {
3188
+ var f = undefined;
3189
+ f = message.getKey();
3190
+ if (f.length > 0) {
3191
+ writer.writeString(
3192
+ 1,
3193
+ f
3194
+ );
3195
+ }
3196
+ f = message.getValuesList();
3197
+ if (f.length > 0) {
3198
+ writer.writeRepeatedString(
3199
+ 2,
3200
+ f
3201
+ );
3202
+ }
3203
+ };
3204
+
3205
+
3206
+ /**
3207
+ * optional string key = 1;
3208
+ * @return {string}
3209
+ */
3210
+ proto.gateway.web.v1.LogAttribute.prototype.getKey = function() {
3211
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3212
+ };
3213
+
3214
+
3215
+ /**
3216
+ * @param {string} value
3217
+ * @return {!proto.gateway.web.v1.LogAttribute} returns this
3218
+ */
3219
+ proto.gateway.web.v1.LogAttribute.prototype.setKey = function(value) {
3220
+ return jspb.Message.setProto3StringField(this, 1, value);
3221
+ };
3222
+
3223
+
3224
+ /**
3225
+ * repeated string values = 2;
3226
+ * @return {!Array<string>}
3227
+ */
3228
+ proto.gateway.web.v1.LogAttribute.prototype.getValuesList = function() {
3229
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
3230
+ };
3231
+
3232
+
3233
+ /**
3234
+ * @param {!Array<string>} value
3235
+ * @return {!proto.gateway.web.v1.LogAttribute} returns this
3236
+ */
3237
+ proto.gateway.web.v1.LogAttribute.prototype.setValuesList = function(value) {
3238
+ return jspb.Message.setField(this, 2, value || []);
3239
+ };
3240
+
3241
+
3242
+ /**
3243
+ * @param {string} value
3244
+ * @param {number=} opt_index
3245
+ * @return {!proto.gateway.web.v1.LogAttribute} returns this
3246
+ */
3247
+ proto.gateway.web.v1.LogAttribute.prototype.addValues = function(value, opt_index) {
3248
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
3249
+ };
3250
+
3251
+
3252
+ /**
3253
+ * Clears the list making it empty but non-null.
3254
+ * @return {!proto.gateway.web.v1.LogAttribute} returns this
3255
+ */
3256
+ proto.gateway.web.v1.LogAttribute.prototype.clearValuesList = function() {
3257
+ return this.setValuesList([]);
3258
+ };
3259
+
3260
+
3261
+ goog.object.extend(exports, proto.gateway.web.v1);